diff --git a/aiplatform/apiv1beta1/dataset_client.go b/aiplatform/apiv1beta1/dataset_client.go index df94bfc3d17a..497dbeca9015 100755 --- a/aiplatform/apiv1beta1/dataset_client.go +++ b/aiplatform/apiv1beta1/dataset_client.go @@ -1444,6 +1444,11 @@ func (c *datasetRESTClient) CreateDataset(ctx context.Context, req *aiplatformpb } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/datasets", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -1504,6 +1509,7 @@ func (c *datasetRESTClient) GetDataset(ctx context.Context, req *aiplatformpb.Ge baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetReadMask() != nil { readMask, err := protojson.Marshal(req.GetReadMask()) if err != nil { @@ -1577,6 +1583,7 @@ func (c *datasetRESTClient) UpdateDataset(ctx context.Context, req *aiplatformpb baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetDataset().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetUpdateMask() != nil { updateMask, err := protojson.Marshal(req.GetUpdateMask()) if err != nil { @@ -1656,6 +1663,7 @@ func (c *datasetRESTClient) ListDatasets(ctx context.Context, req *aiplatformpb. baseUrl.Path += fmt.Sprintf("/v1beta1/%v/datasets", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1743,6 +1751,11 @@ func (c *datasetRESTClient) DeleteDataset(ctx context.Context, req *aiplatformpb } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1808,6 +1821,11 @@ func (c *datasetRESTClient) ImportData(ctx context.Context, req *aiplatformpb.Im } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:import", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1873,6 +1891,11 @@ func (c *datasetRESTClient) ExportData(ctx context.Context, req *aiplatformpb.Ex } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:export", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1939,6 +1962,11 @@ func (c *datasetRESTClient) CreateDatasetVersion(ctx context.Context, req *aipla } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/datasetVersions", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -2006,6 +2034,7 @@ func (c *datasetRESTClient) UpdateDatasetVersion(ctx context.Context, req *aipla baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetDatasetVersion().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetUpdateMask() != nil { updateMask, err := protojson.Marshal(req.GetUpdateMask()) if err != nil { @@ -2071,6 +2100,11 @@ func (c *datasetRESTClient) DeleteDatasetVersion(ctx context.Context, req *aipla } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2131,6 +2165,7 @@ func (c *datasetRESTClient) GetDatasetVersion(ctx context.Context, req *aiplatfo baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetReadMask() != nil { readMask, err := protojson.Marshal(req.GetReadMask()) if err != nil { @@ -2210,6 +2245,7 @@ func (c *datasetRESTClient) ListDatasetVersions(ctx context.Context, req *aiplat baseUrl.Path += fmt.Sprintf("/v1beta1/%v/datasetVersions", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2297,6 +2333,11 @@ func (c *datasetRESTClient) RestoreDatasetVersion(ctx context.Context, req *aipl } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:restore", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2370,6 +2411,7 @@ func (c *datasetRESTClient) ListDataItems(ctx context.Context, req *aiplatformpb baseUrl.Path += fmt.Sprintf("/v1beta1/%v/dataItems", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2471,6 +2513,7 @@ func (c *datasetRESTClient) SearchDataItems(ctx context.Context, req *aiplatform baseUrl.Path += fmt.Sprintf("/v1beta1/%v:searchDataItems", req.GetDataset()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if items := req.GetAnnotationFilters(); len(items) > 0 { for _, item := range items { params.Add("annotationFilters", fmt.Sprintf("%v", item)) @@ -2596,6 +2639,7 @@ func (c *datasetRESTClient) ListSavedQueries(ctx context.Context, req *aiplatfor baseUrl.Path += fmt.Sprintf("/v1beta1/%v/savedQueries", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2683,6 +2727,11 @@ func (c *datasetRESTClient) DeleteSavedQuery(ctx context.Context, req *aiplatfor } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2743,6 +2792,7 @@ func (c *datasetRESTClient) GetAnnotationSpec(ctx context.Context, req *aiplatfo baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetReadMask() != nil { readMask, err := protojson.Marshal(req.GetReadMask()) if err != nil { @@ -2822,6 +2872,7 @@ func (c *datasetRESTClient) ListAnnotations(ctx context.Context, req *aiplatform baseUrl.Path += fmt.Sprintf("/v1beta1/%v/annotations", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2909,6 +2960,11 @@ func (c *datasetRESTClient) GetLocation(ctx context.Context, req *locationpb.Get } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2978,6 +3034,7 @@ func (c *datasetRESTClient) ListLocations(ctx context.Context, req *locationpb.L baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -3062,6 +3119,11 @@ func (c *datasetRESTClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamP } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -3127,6 +3189,11 @@ func (c *datasetRESTClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamP } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -3194,6 +3261,11 @@ func (c *datasetRESTClient) TestIamPermissions(ctx context.Context, req *iampb.T } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -3249,6 +3321,11 @@ func (c *datasetRESTClient) CancelOperation(ctx context.Context, req *longrunnin } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -3286,6 +3363,11 @@ func (c *datasetRESTClient) DeleteOperation(ctx context.Context, req *longrunnin } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -3323,6 +3405,11 @@ func (c *datasetRESTClient) GetOperation(ctx context.Context, req *longrunningpb } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -3392,6 +3479,7 @@ func (c *datasetRESTClient) ListOperations(ctx context.Context, req *longrunning baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -3470,6 +3558,7 @@ func (c *datasetRESTClient) WaitOperation(ctx context.Context, req *longrunningp baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/deployment_resource_pool_client.go b/aiplatform/apiv1beta1/deployment_resource_pool_client.go index ac47af831598..72788bef8e80 100755 --- a/aiplatform/apiv1beta1/deployment_resource_pool_client.go +++ b/aiplatform/apiv1beta1/deployment_resource_pool_client.go @@ -894,6 +894,11 @@ func (c *deploymentResourcePoolRESTClient) CreateDeploymentResourcePool(ctx cont } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/deploymentResourcePools", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -953,6 +958,11 @@ func (c *deploymentResourcePoolRESTClient) GetDeploymentResourcePool(ctx context } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1022,6 +1032,7 @@ func (c *deploymentResourcePoolRESTClient) ListDeploymentResourcePools(ctx conte baseUrl.Path += fmt.Sprintf("/v1beta1/%v/deploymentResourcePools", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetPageSize() != 0 { params.Add("pageSize", fmt.Sprintf("%v", req.GetPageSize())) } @@ -1104,6 +1115,7 @@ func (c *deploymentResourcePoolRESTClient) UpdateDeploymentResourcePool(ctx cont baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetDeploymentResourcePool().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetUpdateMask() != nil { updateMask, err := protojson.Marshal(req.GetUpdateMask()) if err != nil { @@ -1173,6 +1185,11 @@ func (c *deploymentResourcePoolRESTClient) DeleteDeploymentResourcePool(ctx cont } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1246,6 +1263,7 @@ func (c *deploymentResourcePoolRESTClient) QueryDeployedModels(ctx context.Conte baseUrl.Path += fmt.Sprintf("/v1beta1/%v:queryDeployedModels", req.GetDeploymentResourcePool()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetPageSize() != 0 { params.Add("pageSize", fmt.Sprintf("%v", req.GetPageSize())) } @@ -1320,6 +1338,11 @@ func (c *deploymentResourcePoolRESTClient) GetLocation(ctx context.Context, req } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1389,6 +1412,7 @@ func (c *deploymentResourcePoolRESTClient) ListLocations(ctx context.Context, re baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1473,6 +1497,11 @@ func (c *deploymentResourcePoolRESTClient) GetIamPolicy(ctx context.Context, req } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1538,6 +1567,11 @@ func (c *deploymentResourcePoolRESTClient) SetIamPolicy(ctx context.Context, req } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1605,6 +1639,11 @@ func (c *deploymentResourcePoolRESTClient) TestIamPermissions(ctx context.Contex } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1660,6 +1699,11 @@ func (c *deploymentResourcePoolRESTClient) CancelOperation(ctx context.Context, } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1697,6 +1741,11 @@ func (c *deploymentResourcePoolRESTClient) DeleteOperation(ctx context.Context, } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1734,6 +1783,11 @@ func (c *deploymentResourcePoolRESTClient) GetOperation(ctx context.Context, req } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1803,6 +1857,7 @@ func (c *deploymentResourcePoolRESTClient) ListOperations(ctx context.Context, r baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1881,6 +1936,7 @@ func (c *deploymentResourcePoolRESTClient) WaitOperation(ctx context.Context, re baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/endpoint_client.go b/aiplatform/apiv1beta1/endpoint_client.go index 587e76d9933b..0ae6db0559f5 100755 --- a/aiplatform/apiv1beta1/endpoint_client.go +++ b/aiplatform/apiv1beta1/endpoint_client.go @@ -973,6 +973,7 @@ func (c *endpointRESTClient) CreateEndpoint(ctx context.Context, req *aiplatform baseUrl.Path += fmt.Sprintf("/v1beta1/%v/endpoints", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetEndpointId() != "" { params.Add("endpointId", fmt.Sprintf("%v", req.GetEndpointId())) } @@ -1038,6 +1039,11 @@ func (c *endpointRESTClient) GetEndpoint(ctx context.Context, req *aiplatformpb. } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1107,6 +1113,7 @@ func (c *endpointRESTClient) ListEndpoints(ctx context.Context, req *aiplatformp baseUrl.Path += fmt.Sprintf("/v1beta1/%v/endpoints", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1199,6 +1206,7 @@ func (c *endpointRESTClient) UpdateEndpoint(ctx context.Context, req *aiplatform baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetEndpoint().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetUpdateMask() != nil { updateMask, err := protojson.Marshal(req.GetUpdateMask()) if err != nil { @@ -1264,6 +1272,11 @@ func (c *endpointRESTClient) DeleteEndpoint(ctx context.Context, req *aiplatform } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1329,6 +1342,11 @@ func (c *endpointRESTClient) DeployModel(ctx context.Context, req *aiplatformpb. } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:deployModel", req.GetEndpoint()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "endpoint", url.QueryEscape(req.GetEndpoint()))} @@ -1395,6 +1413,11 @@ func (c *endpointRESTClient) UndeployModel(ctx context.Context, req *aiplatformp } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:undeployModel", req.GetEndpoint()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "endpoint", url.QueryEscape(req.GetEndpoint()))} @@ -1463,6 +1486,11 @@ func (c *endpointRESTClient) MutateDeployedModel(ctx context.Context, req *aipla } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:mutateDeployedModel", req.GetEndpoint()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "endpoint", url.QueryEscape(req.GetEndpoint()))} @@ -1522,6 +1550,11 @@ func (c *endpointRESTClient) GetLocation(ctx context.Context, req *locationpb.Ge } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1591,6 +1624,7 @@ func (c *endpointRESTClient) ListLocations(ctx context.Context, req *locationpb. baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1675,6 +1709,11 @@ func (c *endpointRESTClient) GetIamPolicy(ctx context.Context, req *iampb.GetIam } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1740,6 +1779,11 @@ func (c *endpointRESTClient) SetIamPolicy(ctx context.Context, req *iampb.SetIam } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1807,6 +1851,11 @@ func (c *endpointRESTClient) TestIamPermissions(ctx context.Context, req *iampb. } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1862,6 +1911,11 @@ func (c *endpointRESTClient) CancelOperation(ctx context.Context, req *longrunni } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1899,6 +1953,11 @@ func (c *endpointRESTClient) DeleteOperation(ctx context.Context, req *longrunni } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1936,6 +1995,11 @@ func (c *endpointRESTClient) GetOperation(ctx context.Context, req *longrunningp } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2005,6 +2069,7 @@ func (c *endpointRESTClient) ListOperations(ctx context.Context, req *longrunnin baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2083,6 +2148,7 @@ func (c *endpointRESTClient) WaitOperation(ctx context.Context, req *longrunning baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/evaluation_client.go b/aiplatform/apiv1beta1/evaluation_client.go index b00fcfc8719c..d3a4824e978b 100755 --- a/aiplatform/apiv1beta1/evaluation_client.go +++ b/aiplatform/apiv1beta1/evaluation_client.go @@ -643,6 +643,11 @@ func (c *evaluationRESTClient) EvaluateInstances(ctx context.Context, req *aipla } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:evaluateInstances", req.GetLocation()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "location", url.QueryEscape(req.GetLocation()))} @@ -698,6 +703,11 @@ func (c *evaluationRESTClient) GetLocation(ctx context.Context, req *locationpb. } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -767,6 +777,7 @@ func (c *evaluationRESTClient) ListLocations(ctx context.Context, req *locationp baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -851,6 +862,11 @@ func (c *evaluationRESTClient) GetIamPolicy(ctx context.Context, req *iampb.GetI } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -916,6 +932,11 @@ func (c *evaluationRESTClient) SetIamPolicy(ctx context.Context, req *iampb.SetI } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -983,6 +1004,11 @@ func (c *evaluationRESTClient) TestIamPermissions(ctx context.Context, req *iamp } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1038,6 +1064,11 @@ func (c *evaluationRESTClient) CancelOperation(ctx context.Context, req *longrun } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1075,6 +1106,11 @@ func (c *evaluationRESTClient) DeleteOperation(ctx context.Context, req *longrun } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1112,6 +1148,11 @@ func (c *evaluationRESTClient) GetOperation(ctx context.Context, req *longrunnin } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1181,6 +1222,7 @@ func (c *evaluationRESTClient) ListOperations(ctx context.Context, req *longrunn baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1259,6 +1301,7 @@ func (c *evaluationRESTClient) WaitOperation(ctx context.Context, req *longrunni baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/extension_execution_client.go b/aiplatform/apiv1beta1/extension_execution_client.go index a9d30ec27a11..fe57ebc57587 100755 --- a/aiplatform/apiv1beta1/extension_execution_client.go +++ b/aiplatform/apiv1beta1/extension_execution_client.go @@ -665,6 +665,11 @@ func (c *extensionExecutionRESTClient) ExecuteExtension(ctx context.Context, req } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:execute", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -726,6 +731,11 @@ func (c *extensionExecutionRESTClient) QueryExtension(ctx context.Context, req * } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:query", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -781,6 +791,11 @@ func (c *extensionExecutionRESTClient) GetLocation(ctx context.Context, req *loc } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -850,6 +865,7 @@ func (c *extensionExecutionRESTClient) ListLocations(ctx context.Context, req *l baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -934,6 +950,11 @@ func (c *extensionExecutionRESTClient) GetIamPolicy(ctx context.Context, req *ia } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -999,6 +1020,11 @@ func (c *extensionExecutionRESTClient) SetIamPolicy(ctx context.Context, req *ia } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1066,6 +1092,11 @@ func (c *extensionExecutionRESTClient) TestIamPermissions(ctx context.Context, r } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1121,6 +1152,11 @@ func (c *extensionExecutionRESTClient) CancelOperation(ctx context.Context, req } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1158,6 +1194,11 @@ func (c *extensionExecutionRESTClient) DeleteOperation(ctx context.Context, req } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1195,6 +1236,11 @@ func (c *extensionExecutionRESTClient) GetOperation(ctx context.Context, req *lo } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1264,6 +1310,7 @@ func (c *extensionExecutionRESTClient) ListOperations(ctx context.Context, req * baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1342,6 +1389,7 @@ func (c *extensionExecutionRESTClient) WaitOperation(ctx context.Context, req *l baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/extension_registry_client.go b/aiplatform/apiv1beta1/extension_registry_client.go index 8875f30ee892..417dc7fb18bb 100755 --- a/aiplatform/apiv1beta1/extension_registry_client.go +++ b/aiplatform/apiv1beta1/extension_registry_client.go @@ -831,6 +831,11 @@ func (c *extensionRegistryRESTClient) ImportExtension(ctx context.Context, req * } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/extensions:import", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -890,6 +895,11 @@ func (c *extensionRegistryRESTClient) GetExtension(ctx context.Context, req *aip } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -959,6 +969,7 @@ func (c *extensionRegistryRESTClient) ListExtensions(ctx context.Context, req *a baseUrl.Path += fmt.Sprintf("/v1beta1/%v/extensions", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1047,6 +1058,7 @@ func (c *extensionRegistryRESTClient) UpdateExtension(ctx context.Context, req * baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetExtension().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetUpdateMask() != nil { updateMask, err := protojson.Marshal(req.GetUpdateMask()) if err != nil { @@ -1112,6 +1124,11 @@ func (c *extensionRegistryRESTClient) DeleteExtension(ctx context.Context, req * } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1171,6 +1188,11 @@ func (c *extensionRegistryRESTClient) GetLocation(ctx context.Context, req *loca } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1240,6 +1262,7 @@ func (c *extensionRegistryRESTClient) ListLocations(ctx context.Context, req *lo baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1324,6 +1347,11 @@ func (c *extensionRegistryRESTClient) GetIamPolicy(ctx context.Context, req *iam } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1389,6 +1417,11 @@ func (c *extensionRegistryRESTClient) SetIamPolicy(ctx context.Context, req *iam } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1456,6 +1489,11 @@ func (c *extensionRegistryRESTClient) TestIamPermissions(ctx context.Context, re } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1511,6 +1549,11 @@ func (c *extensionRegistryRESTClient) CancelOperation(ctx context.Context, req * } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1548,6 +1591,11 @@ func (c *extensionRegistryRESTClient) DeleteOperation(ctx context.Context, req * } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1585,6 +1633,11 @@ func (c *extensionRegistryRESTClient) GetOperation(ctx context.Context, req *lon } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1654,6 +1707,7 @@ func (c *extensionRegistryRESTClient) ListOperations(ctx context.Context, req *l baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1732,6 +1786,7 @@ func (c *extensionRegistryRESTClient) WaitOperation(ctx context.Context, req *lo baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/feature_online_store_admin_client.go b/aiplatform/apiv1beta1/feature_online_store_admin_client.go index 675c497777c7..21c8d6357b40 100755 --- a/aiplatform/apiv1beta1/feature_online_store_admin_client.go +++ b/aiplatform/apiv1beta1/feature_online_store_admin_client.go @@ -1185,6 +1185,7 @@ func (c *featureOnlineStoreAdminRESTClient) CreateFeatureOnlineStore(ctx context baseUrl.Path += fmt.Sprintf("/v1beta1/%v/featureOnlineStores", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") params.Add("featureOnlineStoreId", fmt.Sprintf("%v", req.GetFeatureOnlineStoreId())) baseUrl.RawQuery = params.Encode() @@ -1248,6 +1249,11 @@ func (c *featureOnlineStoreAdminRESTClient) GetFeatureOnlineStore(ctx context.Co } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1317,6 +1323,7 @@ func (c *featureOnlineStoreAdminRESTClient) ListFeatureOnlineStores(ctx context. baseUrl.Path += fmt.Sprintf("/v1beta1/%v/featureOnlineStores", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1405,6 +1412,7 @@ func (c *featureOnlineStoreAdminRESTClient) UpdateFeatureOnlineStore(ctx context baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetFeatureOnlineStore().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetUpdateMask() != nil { updateMask, err := protojson.Marshal(req.GetUpdateMask()) if err != nil { @@ -1476,6 +1484,7 @@ func (c *featureOnlineStoreAdminRESTClient) DeleteFeatureOnlineStore(ctx context baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetForce() { params.Add("force", fmt.Sprintf("%v", req.GetForce())) } @@ -1549,6 +1558,7 @@ func (c *featureOnlineStoreAdminRESTClient) CreateFeatureView(ctx context.Contex baseUrl.Path += fmt.Sprintf("/v1beta1/%v/featureViews", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") params.Add("featureViewId", fmt.Sprintf("%v", req.GetFeatureViewId())) if req.GetRunSyncImmediately() { params.Add("runSyncImmediately", fmt.Sprintf("%v", req.GetRunSyncImmediately())) @@ -1615,6 +1625,11 @@ func (c *featureOnlineStoreAdminRESTClient) GetFeatureView(ctx context.Context, } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1684,6 +1699,7 @@ func (c *featureOnlineStoreAdminRESTClient) ListFeatureViews(ctx context.Context baseUrl.Path += fmt.Sprintf("/v1beta1/%v/featureViews", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1772,6 +1788,7 @@ func (c *featureOnlineStoreAdminRESTClient) UpdateFeatureView(ctx context.Contex baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetFeatureView().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetUpdateMask() != nil { updateMask, err := protojson.Marshal(req.GetUpdateMask()) if err != nil { @@ -1841,6 +1858,11 @@ func (c *featureOnlineStoreAdminRESTClient) DeleteFeatureView(ctx context.Contex } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1906,6 +1928,11 @@ func (c *featureOnlineStoreAdminRESTClient) SyncFeatureView(ctx context.Context, } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:sync", req.GetFeatureView()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "feature_view", url.QueryEscape(req.GetFeatureView()))} @@ -1961,6 +1988,11 @@ func (c *featureOnlineStoreAdminRESTClient) GetFeatureViewSync(ctx context.Conte } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2030,6 +2062,7 @@ func (c *featureOnlineStoreAdminRESTClient) ListFeatureViewSyncs(ctx context.Con baseUrl.Path += fmt.Sprintf("/v1beta1/%v/featureViewSyncs", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2110,6 +2143,11 @@ func (c *featureOnlineStoreAdminRESTClient) GetLocation(ctx context.Context, req } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2179,6 +2217,7 @@ func (c *featureOnlineStoreAdminRESTClient) ListLocations(ctx context.Context, r baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2263,6 +2302,11 @@ func (c *featureOnlineStoreAdminRESTClient) GetIamPolicy(ctx context.Context, re } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -2328,6 +2372,11 @@ func (c *featureOnlineStoreAdminRESTClient) SetIamPolicy(ctx context.Context, re } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -2395,6 +2444,11 @@ func (c *featureOnlineStoreAdminRESTClient) TestIamPermissions(ctx context.Conte } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -2450,6 +2504,11 @@ func (c *featureOnlineStoreAdminRESTClient) CancelOperation(ctx context.Context, } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2487,6 +2546,11 @@ func (c *featureOnlineStoreAdminRESTClient) DeleteOperation(ctx context.Context, } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2524,6 +2588,11 @@ func (c *featureOnlineStoreAdminRESTClient) GetOperation(ctx context.Context, re } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2593,6 +2662,7 @@ func (c *featureOnlineStoreAdminRESTClient) ListOperations(ctx context.Context, baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2671,6 +2741,7 @@ func (c *featureOnlineStoreAdminRESTClient) WaitOperation(ctx context.Context, r baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/feature_online_store_client.go b/aiplatform/apiv1beta1/feature_online_store_client.go index 9b153d0b8067..f047598cf323 100755 --- a/aiplatform/apiv1beta1/feature_online_store_client.go +++ b/aiplatform/apiv1beta1/feature_online_store_client.go @@ -696,6 +696,11 @@ func (c *featureOnlineStoreRESTClient) FetchFeatureValues(ctx context.Context, r } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:fetchFeatureValues", req.GetFeatureView()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "feature_view", url.QueryEscape(req.GetFeatureView()))} @@ -768,6 +773,11 @@ func (c *featureOnlineStoreRESTClient) SearchNearestEntities(ctx context.Context } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:searchNearestEntities", req.GetFeatureView()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "feature_view", url.QueryEscape(req.GetFeatureView()))} @@ -823,6 +833,11 @@ func (c *featureOnlineStoreRESTClient) GetLocation(ctx context.Context, req *loc } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -892,6 +907,7 @@ func (c *featureOnlineStoreRESTClient) ListLocations(ctx context.Context, req *l baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -976,6 +992,11 @@ func (c *featureOnlineStoreRESTClient) GetIamPolicy(ctx context.Context, req *ia } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1041,6 +1062,11 @@ func (c *featureOnlineStoreRESTClient) SetIamPolicy(ctx context.Context, req *ia } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1108,6 +1134,11 @@ func (c *featureOnlineStoreRESTClient) TestIamPermissions(ctx context.Context, r } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1163,6 +1194,11 @@ func (c *featureOnlineStoreRESTClient) CancelOperation(ctx context.Context, req } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1200,6 +1236,11 @@ func (c *featureOnlineStoreRESTClient) DeleteOperation(ctx context.Context, req } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1237,6 +1278,11 @@ func (c *featureOnlineStoreRESTClient) GetOperation(ctx context.Context, req *lo } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1306,6 +1352,7 @@ func (c *featureOnlineStoreRESTClient) ListOperations(ctx context.Context, req * baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1384,6 +1431,7 @@ func (c *featureOnlineStoreRESTClient) WaitOperation(ctx context.Context, req *l baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/feature_registry_client.go b/aiplatform/apiv1beta1/feature_registry_client.go index a64d9eaab4d7..17b250d6797c 100755 --- a/aiplatform/apiv1beta1/feature_registry_client.go +++ b/aiplatform/apiv1beta1/feature_registry_client.go @@ -1034,6 +1034,7 @@ func (c *featureRegistryRESTClient) CreateFeatureGroup(ctx context.Context, req baseUrl.Path += fmt.Sprintf("/v1beta1/%v/featureGroups", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") params.Add("featureGroupId", fmt.Sprintf("%v", req.GetFeatureGroupId())) baseUrl.RawQuery = params.Encode() @@ -1097,6 +1098,11 @@ func (c *featureRegistryRESTClient) GetFeatureGroup(ctx context.Context, req *ai } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1166,6 +1172,7 @@ func (c *featureRegistryRESTClient) ListFeatureGroups(ctx context.Context, req * baseUrl.Path += fmt.Sprintf("/v1beta1/%v/featureGroups", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1254,6 +1261,7 @@ func (c *featureRegistryRESTClient) UpdateFeatureGroup(ctx context.Context, req baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetFeatureGroup().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetUpdateMask() != nil { updateMask, err := protojson.Marshal(req.GetUpdateMask()) if err != nil { @@ -1324,6 +1332,7 @@ func (c *featureRegistryRESTClient) DeleteFeatureGroup(ctx context.Context, req baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetForce() { params.Add("force", fmt.Sprintf("%v", req.GetForce())) } @@ -1397,6 +1406,7 @@ func (c *featureRegistryRESTClient) CreateFeature(ctx context.Context, req *aipl baseUrl.Path += fmt.Sprintf("/v1beta1/%v/features", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") params.Add("featureId", fmt.Sprintf("%v", req.GetFeatureId())) baseUrl.RawQuery = params.Encode() @@ -1460,6 +1470,11 @@ func (c *featureRegistryRESTClient) GetFeature(ctx context.Context, req *aiplatf } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1529,6 +1544,7 @@ func (c *featureRegistryRESTClient) ListFeatures(ctx context.Context, req *aipla baseUrl.Path += fmt.Sprintf("/v1beta1/%v/features", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1627,6 +1643,7 @@ func (c *featureRegistryRESTClient) UpdateFeature(ctx context.Context, req *aipl baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetFeature().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetUpdateMask() != nil { updateMask, err := protojson.Marshal(req.GetUpdateMask()) if err != nil { @@ -1696,6 +1713,11 @@ func (c *featureRegistryRESTClient) DeleteFeature(ctx context.Context, req *aipl } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1755,6 +1777,11 @@ func (c *featureRegistryRESTClient) GetLocation(ctx context.Context, req *locati } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1824,6 +1851,7 @@ func (c *featureRegistryRESTClient) ListLocations(ctx context.Context, req *loca baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1908,6 +1936,11 @@ func (c *featureRegistryRESTClient) GetIamPolicy(ctx context.Context, req *iampb } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1973,6 +2006,11 @@ func (c *featureRegistryRESTClient) SetIamPolicy(ctx context.Context, req *iampb } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -2040,6 +2078,11 @@ func (c *featureRegistryRESTClient) TestIamPermissions(ctx context.Context, req } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -2095,6 +2138,11 @@ func (c *featureRegistryRESTClient) CancelOperation(ctx context.Context, req *lo } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2132,6 +2180,11 @@ func (c *featureRegistryRESTClient) DeleteOperation(ctx context.Context, req *lo } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2169,6 +2222,11 @@ func (c *featureRegistryRESTClient) GetOperation(ctx context.Context, req *longr } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2238,6 +2296,7 @@ func (c *featureRegistryRESTClient) ListOperations(ctx context.Context, req *lon baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2316,6 +2375,7 @@ func (c *featureRegistryRESTClient) WaitOperation(ctx context.Context, req *long baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/featurestore_client.go b/aiplatform/apiv1beta1/featurestore_client.go index cc472a263937..462fc9f11151 100755 --- a/aiplatform/apiv1beta1/featurestore_client.go +++ b/aiplatform/apiv1beta1/featurestore_client.go @@ -1552,6 +1552,7 @@ func (c *featurestoreRESTClient) CreateFeaturestore(ctx context.Context, req *ai baseUrl.Path += fmt.Sprintf("/v1beta1/%v/featurestores", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") params.Add("featurestoreId", fmt.Sprintf("%v", req.GetFeaturestoreId())) baseUrl.RawQuery = params.Encode() @@ -1615,6 +1616,11 @@ func (c *featurestoreRESTClient) GetFeaturestore(ctx context.Context, req *aipla } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1684,6 +1690,7 @@ func (c *featurestoreRESTClient) ListFeaturestores(ctx context.Context, req *aip baseUrl.Path += fmt.Sprintf("/v1beta1/%v/featurestores", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1779,6 +1786,7 @@ func (c *featurestoreRESTClient) UpdateFeaturestore(ctx context.Context, req *ai baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetFeaturestore().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetUpdateMask() != nil { updateMask, err := protojson.Marshal(req.GetUpdateMask()) if err != nil { @@ -1850,6 +1858,7 @@ func (c *featurestoreRESTClient) DeleteFeaturestore(ctx context.Context, req *ai baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetForce() { params.Add("force", fmt.Sprintf("%v", req.GetForce())) } @@ -1923,6 +1932,7 @@ func (c *featurestoreRESTClient) CreateEntityType(ctx context.Context, req *aipl baseUrl.Path += fmt.Sprintf("/v1beta1/%v/entityTypes", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") params.Add("entityTypeId", fmt.Sprintf("%v", req.GetEntityTypeId())) baseUrl.RawQuery = params.Encode() @@ -1986,6 +1996,11 @@ func (c *featurestoreRESTClient) GetEntityType(ctx context.Context, req *aiplatf } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2055,6 +2070,7 @@ func (c *featurestoreRESTClient) ListEntityTypes(ctx context.Context, req *aipla baseUrl.Path += fmt.Sprintf("/v1beta1/%v/entityTypes", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2150,6 +2166,7 @@ func (c *featurestoreRESTClient) UpdateEntityType(ctx context.Context, req *aipl baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetEntityType().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetUpdateMask() != nil { updateMask, err := protojson.Marshal(req.GetUpdateMask()) if err != nil { @@ -2217,6 +2234,7 @@ func (c *featurestoreRESTClient) DeleteEntityType(ctx context.Context, req *aipl baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetForce() { params.Add("force", fmt.Sprintf("%v", req.GetForce())) } @@ -2290,6 +2308,7 @@ func (c *featurestoreRESTClient) CreateFeature(ctx context.Context, req *aiplatf baseUrl.Path += fmt.Sprintf("/v1beta1/%v/features", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") params.Add("featureId", fmt.Sprintf("%v", req.GetFeatureId())) baseUrl.RawQuery = params.Encode() @@ -2359,6 +2378,11 @@ func (c *featurestoreRESTClient) BatchCreateFeatures(ctx context.Context, req *a } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/features:batchCreate", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -2418,6 +2442,11 @@ func (c *featurestoreRESTClient) GetFeature(ctx context.Context, req *aiplatform } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2487,6 +2516,7 @@ func (c *featurestoreRESTClient) ListFeatures(ctx context.Context, req *aiplatfo baseUrl.Path += fmt.Sprintf("/v1beta1/%v/features", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2585,6 +2615,7 @@ func (c *featurestoreRESTClient) UpdateFeature(ctx context.Context, req *aiplatf baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetFeature().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetUpdateMask() != nil { updateMask, err := protojson.Marshal(req.GetUpdateMask()) if err != nil { @@ -2650,6 +2681,11 @@ func (c *featurestoreRESTClient) DeleteFeature(ctx context.Context, req *aiplatf } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2736,6 +2772,11 @@ func (c *featurestoreRESTClient) ImportFeatureValues(ctx context.Context, req *a } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:importFeatureValues", req.GetEntityType()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "entity_type", url.QueryEscape(req.GetEntityType()))} @@ -2806,6 +2847,11 @@ func (c *featurestoreRESTClient) BatchReadFeatureValues(ctx context.Context, req } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:batchReadFeatureValues", req.GetFeaturestore()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "featurestore", url.QueryEscape(req.GetFeaturestore()))} @@ -2871,6 +2917,11 @@ func (c *featurestoreRESTClient) ExportFeatureValues(ctx context.Context, req *a } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:exportFeatureValues", req.GetEntityType()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "entity_type", url.QueryEscape(req.GetEntityType()))} @@ -2945,6 +2996,11 @@ func (c *featurestoreRESTClient) DeleteFeatureValues(ctx context.Context, req *a } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:deleteFeatureValues", req.GetEntityType()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "entity_type", url.QueryEscape(req.GetEntityType()))} @@ -3018,6 +3074,7 @@ func (c *featurestoreRESTClient) SearchFeatures(ctx context.Context, req *aiplat baseUrl.Path += fmt.Sprintf("/v1beta1/%v/featurestores:searchFeatures", req.GetLocation()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetPageSize() != 0 { params.Add("pageSize", fmt.Sprintf("%v", req.GetPageSize())) } @@ -3095,6 +3152,11 @@ func (c *featurestoreRESTClient) GetLocation(ctx context.Context, req *locationp } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -3164,6 +3226,7 @@ func (c *featurestoreRESTClient) ListLocations(ctx context.Context, req *locatio baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -3248,6 +3311,11 @@ func (c *featurestoreRESTClient) GetIamPolicy(ctx context.Context, req *iampb.Ge } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -3313,6 +3381,11 @@ func (c *featurestoreRESTClient) SetIamPolicy(ctx context.Context, req *iampb.Se } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -3380,6 +3453,11 @@ func (c *featurestoreRESTClient) TestIamPermissions(ctx context.Context, req *ia } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -3435,6 +3513,11 @@ func (c *featurestoreRESTClient) CancelOperation(ctx context.Context, req *longr } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -3472,6 +3555,11 @@ func (c *featurestoreRESTClient) DeleteOperation(ctx context.Context, req *longr } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -3509,6 +3597,11 @@ func (c *featurestoreRESTClient) GetOperation(ctx context.Context, req *longrunn } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -3578,6 +3671,7 @@ func (c *featurestoreRESTClient) ListOperations(ctx context.Context, req *longru baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -3656,6 +3750,7 @@ func (c *featurestoreRESTClient) WaitOperation(ctx context.Context, req *longrun baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/featurestore_online_serving_client.go b/aiplatform/apiv1beta1/featurestore_online_serving_client.go index b9ed284d465f..fc79e77a28df 100755 --- a/aiplatform/apiv1beta1/featurestore_online_serving_client.go +++ b/aiplatform/apiv1beta1/featurestore_online_serving_client.go @@ -711,6 +711,11 @@ func (c *featurestoreOnlineServingRESTClient) ReadFeatureValues(ctx context.Cont } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:readFeatureValues", req.GetEntityType()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "entity_type", url.QueryEscape(req.GetEntityType()))} @@ -774,6 +779,11 @@ func (c *featurestoreOnlineServingRESTClient) StreamingReadFeatureValues(ctx con } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:streamingReadFeatureValues", req.GetEntityType()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "entity_type", url.QueryEscape(req.GetEntityType()))} @@ -879,6 +889,11 @@ func (c *featurestoreOnlineServingRESTClient) WriteFeatureValues(ctx context.Con } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:writeFeatureValues", req.GetEntityType()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "entity_type", url.QueryEscape(req.GetEntityType()))} @@ -934,6 +949,11 @@ func (c *featurestoreOnlineServingRESTClient) GetLocation(ctx context.Context, r } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1003,6 +1023,7 @@ func (c *featurestoreOnlineServingRESTClient) ListLocations(ctx context.Context, baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1087,6 +1108,11 @@ func (c *featurestoreOnlineServingRESTClient) GetIamPolicy(ctx context.Context, } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1152,6 +1178,11 @@ func (c *featurestoreOnlineServingRESTClient) SetIamPolicy(ctx context.Context, } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1219,6 +1250,11 @@ func (c *featurestoreOnlineServingRESTClient) TestIamPermissions(ctx context.Con } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1274,6 +1310,11 @@ func (c *featurestoreOnlineServingRESTClient) CancelOperation(ctx context.Contex } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1311,6 +1352,11 @@ func (c *featurestoreOnlineServingRESTClient) DeleteOperation(ctx context.Contex } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1348,6 +1394,11 @@ func (c *featurestoreOnlineServingRESTClient) GetOperation(ctx context.Context, } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1417,6 +1468,7 @@ func (c *featurestoreOnlineServingRESTClient) ListOperations(ctx context.Context baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1495,6 +1547,7 @@ func (c *featurestoreOnlineServingRESTClient) WaitOperation(ctx context.Context, baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/gen_ai_cache_client.go b/aiplatform/apiv1beta1/gen_ai_cache_client.go index 04bd4449c2b8..8ae9fa3f5bcc 100755 --- a/aiplatform/apiv1beta1/gen_ai_cache_client.go +++ b/aiplatform/apiv1beta1/gen_ai_cache_client.go @@ -773,6 +773,11 @@ func (c *genAiCacheRESTClient) CreateCachedContent(ctx context.Context, req *aip } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/cachedContents", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -828,6 +833,11 @@ func (c *genAiCacheRESTClient) GetCachedContent(ctx context.Context, req *aiplat } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -891,6 +901,7 @@ func (c *genAiCacheRESTClient) UpdateCachedContent(ctx context.Context, req *aip baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetCachedContent().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetUpdateMask() != nil { updateMask, err := protojson.Marshal(req.GetUpdateMask()) if err != nil { @@ -956,6 +967,11 @@ func (c *genAiCacheRESTClient) DeleteCachedContent(ctx context.Context, req *aip } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1007,6 +1023,7 @@ func (c *genAiCacheRESTClient) ListCachedContents(ctx context.Context, req *aipl baseUrl.Path += fmt.Sprintf("/v1beta1/%v/cachedContents", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetPageSize() != 0 { params.Add("pageSize", fmt.Sprintf("%v", req.GetPageSize())) } @@ -1081,6 +1098,11 @@ func (c *genAiCacheRESTClient) GetLocation(ctx context.Context, req *locationpb. } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1150,6 +1172,7 @@ func (c *genAiCacheRESTClient) ListLocations(ctx context.Context, req *locationp baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1234,6 +1257,11 @@ func (c *genAiCacheRESTClient) GetIamPolicy(ctx context.Context, req *iampb.GetI } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1299,6 +1327,11 @@ func (c *genAiCacheRESTClient) SetIamPolicy(ctx context.Context, req *iampb.SetI } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1366,6 +1399,11 @@ func (c *genAiCacheRESTClient) TestIamPermissions(ctx context.Context, req *iamp } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1421,6 +1459,11 @@ func (c *genAiCacheRESTClient) CancelOperation(ctx context.Context, req *longrun } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1458,6 +1501,11 @@ func (c *genAiCacheRESTClient) DeleteOperation(ctx context.Context, req *longrun } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1495,6 +1543,11 @@ func (c *genAiCacheRESTClient) GetOperation(ctx context.Context, req *longrunnin } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1564,6 +1617,7 @@ func (c *genAiCacheRESTClient) ListOperations(ctx context.Context, req *longrunn baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1642,6 +1696,7 @@ func (c *genAiCacheRESTClient) WaitOperation(ctx context.Context, req *longrunni baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/gen_ai_tuning_client.go b/aiplatform/apiv1beta1/gen_ai_tuning_client.go index 31b366ef6b8c..f0132b5d9d07 100755 --- a/aiplatform/apiv1beta1/gen_ai_tuning_client.go +++ b/aiplatform/apiv1beta1/gen_ai_tuning_client.go @@ -757,6 +757,11 @@ func (c *genAiTuningRESTClient) CreateTuningJob(ctx context.Context, req *aiplat } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/tuningJobs", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -812,6 +817,11 @@ func (c *genAiTuningRESTClient) GetTuningJob(ctx context.Context, req *aiplatfor } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -881,6 +891,7 @@ func (c *genAiTuningRESTClient) ListTuningJobs(ctx context.Context, req *aiplatf baseUrl.Path += fmt.Sprintf("/v1beta1/%v/tuningJobs", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -975,6 +986,11 @@ func (c *genAiTuningRESTClient) CancelTuningJob(ctx context.Context, req *aiplat } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1012,6 +1028,11 @@ func (c *genAiTuningRESTClient) GetLocation(ctx context.Context, req *locationpb } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1081,6 +1102,7 @@ func (c *genAiTuningRESTClient) ListLocations(ctx context.Context, req *location baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1165,6 +1187,11 @@ func (c *genAiTuningRESTClient) GetIamPolicy(ctx context.Context, req *iampb.Get } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1230,6 +1257,11 @@ func (c *genAiTuningRESTClient) SetIamPolicy(ctx context.Context, req *iampb.Set } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1297,6 +1329,11 @@ func (c *genAiTuningRESTClient) TestIamPermissions(ctx context.Context, req *iam } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1352,6 +1389,11 @@ func (c *genAiTuningRESTClient) CancelOperation(ctx context.Context, req *longru } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1389,6 +1431,11 @@ func (c *genAiTuningRESTClient) DeleteOperation(ctx context.Context, req *longru } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1426,6 +1473,11 @@ func (c *genAiTuningRESTClient) GetOperation(ctx context.Context, req *longrunni } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1495,6 +1547,7 @@ func (c *genAiTuningRESTClient) ListOperations(ctx context.Context, req *longrun baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1573,6 +1626,7 @@ func (c *genAiTuningRESTClient) WaitOperation(ctx context.Context, req *longrunn baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/index_client.go b/aiplatform/apiv1beta1/index_client.go index 416496f5c8c5..797507ef7c5f 100755 --- a/aiplatform/apiv1beta1/index_client.go +++ b/aiplatform/apiv1beta1/index_client.go @@ -918,6 +918,11 @@ func (c *indexRESTClient) CreateIndex(ctx context.Context, req *aiplatformpb.Cre } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/indexes", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -977,6 +982,11 @@ func (c *indexRESTClient) GetIndex(ctx context.Context, req *aiplatformpb.GetInd } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1046,6 +1056,7 @@ func (c *indexRESTClient) ListIndexes(ctx context.Context, req *aiplatformpb.Lis baseUrl.Path += fmt.Sprintf("/v1beta1/%v/indexes", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1138,6 +1149,7 @@ func (c *indexRESTClient) UpdateIndex(ctx context.Context, req *aiplatformpb.Upd baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetIndex().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetUpdateMask() != nil { updateMask, err := protojson.Marshal(req.GetUpdateMask()) if err != nil { @@ -1210,6 +1222,11 @@ func (c *indexRESTClient) DeleteIndex(ctx context.Context, req *aiplatformpb.Del } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1275,6 +1292,11 @@ func (c *indexRESTClient) UpsertDatapoints(ctx context.Context, req *aiplatformp } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:upsertDatapoints", req.GetIndex()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "index", url.QueryEscape(req.GetIndex()))} @@ -1336,6 +1358,11 @@ func (c *indexRESTClient) RemoveDatapoints(ctx context.Context, req *aiplatformp } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:removeDatapoints", req.GetIndex()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "index", url.QueryEscape(req.GetIndex()))} @@ -1391,6 +1418,11 @@ func (c *indexRESTClient) GetLocation(ctx context.Context, req *locationpb.GetLo } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1460,6 +1492,7 @@ func (c *indexRESTClient) ListLocations(ctx context.Context, req *locationpb.Lis baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1544,6 +1577,11 @@ func (c *indexRESTClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPol } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1609,6 +1647,11 @@ func (c *indexRESTClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPol } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1676,6 +1719,11 @@ func (c *indexRESTClient) TestIamPermissions(ctx context.Context, req *iampb.Tes } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1731,6 +1779,11 @@ func (c *indexRESTClient) CancelOperation(ctx context.Context, req *longrunningp } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1768,6 +1821,11 @@ func (c *indexRESTClient) DeleteOperation(ctx context.Context, req *longrunningp } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1805,6 +1863,11 @@ func (c *indexRESTClient) GetOperation(ctx context.Context, req *longrunningpb.G } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1874,6 +1937,7 @@ func (c *indexRESTClient) ListOperations(ctx context.Context, req *longrunningpb baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1952,6 +2016,7 @@ func (c *indexRESTClient) WaitOperation(ctx context.Context, req *longrunningpb. baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/index_endpoint_client.go b/aiplatform/apiv1beta1/index_endpoint_client.go index a41050c958c7..447dd2d1f0d7 100755 --- a/aiplatform/apiv1beta1/index_endpoint_client.go +++ b/aiplatform/apiv1beta1/index_endpoint_client.go @@ -971,6 +971,11 @@ func (c *indexEndpointRESTClient) CreateIndexEndpoint(ctx context.Context, req * } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/indexEndpoints", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -1030,6 +1035,11 @@ func (c *indexEndpointRESTClient) GetIndexEndpoint(ctx context.Context, req *aip } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1099,6 +1109,7 @@ func (c *indexEndpointRESTClient) ListIndexEndpoints(ctx context.Context, req *a baseUrl.Path += fmt.Sprintf("/v1beta1/%v/indexEndpoints", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1191,6 +1202,7 @@ func (c *indexEndpointRESTClient) UpdateIndexEndpoint(ctx context.Context, req * baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetIndexEndpoint().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetUpdateMask() != nil { updateMask, err := protojson.Marshal(req.GetUpdateMask()) if err != nil { @@ -1256,6 +1268,11 @@ func (c *indexEndpointRESTClient) DeleteIndexEndpoint(ctx context.Context, req * } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1323,6 +1340,11 @@ func (c *indexEndpointRESTClient) DeployIndex(ctx context.Context, req *aiplatfo } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:deployIndex", req.GetIndexEndpoint()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "index_endpoint", url.QueryEscape(req.GetIndexEndpoint()))} @@ -1389,6 +1411,11 @@ func (c *indexEndpointRESTClient) UndeployIndex(ctx context.Context, req *aiplat } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:undeployIndex", req.GetIndexEndpoint()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "index_endpoint", url.QueryEscape(req.GetIndexEndpoint()))} @@ -1455,6 +1482,11 @@ func (c *indexEndpointRESTClient) MutateDeployedIndex(ctx context.Context, req * } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:mutateDeployedIndex", req.GetIndexEndpoint()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "index_endpoint", url.QueryEscape(req.GetIndexEndpoint()))} @@ -1514,6 +1546,11 @@ func (c *indexEndpointRESTClient) GetLocation(ctx context.Context, req *location } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1583,6 +1620,7 @@ func (c *indexEndpointRESTClient) ListLocations(ctx context.Context, req *locati baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1667,6 +1705,11 @@ func (c *indexEndpointRESTClient) GetIamPolicy(ctx context.Context, req *iampb.G } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1732,6 +1775,11 @@ func (c *indexEndpointRESTClient) SetIamPolicy(ctx context.Context, req *iampb.S } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1799,6 +1847,11 @@ func (c *indexEndpointRESTClient) TestIamPermissions(ctx context.Context, req *i } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1854,6 +1907,11 @@ func (c *indexEndpointRESTClient) CancelOperation(ctx context.Context, req *long } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1891,6 +1949,11 @@ func (c *indexEndpointRESTClient) DeleteOperation(ctx context.Context, req *long } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1928,6 +1991,11 @@ func (c *indexEndpointRESTClient) GetOperation(ctx context.Context, req *longrun } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1997,6 +2065,7 @@ func (c *indexEndpointRESTClient) ListOperations(ctx context.Context, req *longr baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2075,6 +2144,7 @@ func (c *indexEndpointRESTClient) WaitOperation(ctx context.Context, req *longru baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/job_client.go b/aiplatform/apiv1beta1/job_client.go index ca16cd61b76e..0b37868734b1 100755 --- a/aiplatform/apiv1beta1/job_client.go +++ b/aiplatform/apiv1beta1/job_client.go @@ -2025,6 +2025,11 @@ func (c *jobRESTClient) CreateCustomJob(ctx context.Context, req *aiplatformpb.C } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/customJobs", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -2080,6 +2085,11 @@ func (c *jobRESTClient) GetCustomJob(ctx context.Context, req *aiplatformpb.GetC } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2149,6 +2159,7 @@ func (c *jobRESTClient) ListCustomJobs(ctx context.Context, req *aiplatformpb.Li baseUrl.Path += fmt.Sprintf("/v1beta1/%v/customJobs", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2233,6 +2244,11 @@ func (c *jobRESTClient) DeleteCustomJob(ctx context.Context, req *aiplatformpb.D } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2310,6 +2326,11 @@ func (c *jobRESTClient) CancelCustomJob(ctx context.Context, req *aiplatformpb.C } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2354,6 +2375,11 @@ func (c *jobRESTClient) CreateDataLabelingJob(ctx context.Context, req *aiplatfo } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/dataLabelingJobs", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -2409,6 +2435,11 @@ func (c *jobRESTClient) GetDataLabelingJob(ctx context.Context, req *aiplatformp } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2478,6 +2509,7 @@ func (c *jobRESTClient) ListDataLabelingJobs(ctx context.Context, req *aiplatfor baseUrl.Path += fmt.Sprintf("/v1beta1/%v/dataLabelingJobs", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2565,6 +2597,11 @@ func (c *jobRESTClient) DeleteDataLabelingJob(ctx context.Context, req *aiplatfo } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2630,6 +2667,11 @@ func (c *jobRESTClient) CancelDataLabelingJob(ctx context.Context, req *aiplatfo } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2674,6 +2716,11 @@ func (c *jobRESTClient) CreateHyperparameterTuningJob(ctx context.Context, req * } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/hyperparameterTuningJobs", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -2729,6 +2776,11 @@ func (c *jobRESTClient) GetHyperparameterTuningJob(ctx context.Context, req *aip } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2798,6 +2850,7 @@ func (c *jobRESTClient) ListHyperparameterTuningJobs(ctx context.Context, req *a baseUrl.Path += fmt.Sprintf("/v1beta1/%v/hyperparameterTuningJobs", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2882,6 +2935,11 @@ func (c *jobRESTClient) DeleteHyperparameterTuningJob(ctx context.Context, req * } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2960,6 +3018,11 @@ func (c *jobRESTClient) CancelHyperparameterTuningJob(ctx context.Context, req * } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -3004,6 +3067,11 @@ func (c *jobRESTClient) CreateNasJob(ctx context.Context, req *aiplatformpb.Crea } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/nasJobs", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -3059,6 +3127,11 @@ func (c *jobRESTClient) GetNasJob(ctx context.Context, req *aiplatformpb.GetNasJ } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -3128,6 +3201,7 @@ func (c *jobRESTClient) ListNasJobs(ctx context.Context, req *aiplatformpb.ListN baseUrl.Path += fmt.Sprintf("/v1beta1/%v/nasJobs", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -3212,6 +3286,11 @@ func (c *jobRESTClient) DeleteNasJob(ctx context.Context, req *aiplatformpb.Dele } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -3289,6 +3368,11 @@ func (c *jobRESTClient) CancelNasJob(ctx context.Context, req *aiplatformpb.Canc } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -3326,6 +3410,11 @@ func (c *jobRESTClient) GetNasTrialDetail(ctx context.Context, req *aiplatformpb } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -3395,6 +3484,7 @@ func (c *jobRESTClient) ListNasTrialDetails(ctx context.Context, req *aiplatform baseUrl.Path += fmt.Sprintf("/v1beta1/%v/nasTrialDetails", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetPageSize() != 0 { params.Add("pageSize", fmt.Sprintf("%v", req.GetPageSize())) } @@ -3477,6 +3567,11 @@ func (c *jobRESTClient) CreateBatchPredictionJob(ctx context.Context, req *aipla } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/batchPredictionJobs", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -3532,6 +3627,11 @@ func (c *jobRESTClient) GetBatchPredictionJob(ctx context.Context, req *aiplatfo } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -3601,6 +3701,7 @@ func (c *jobRESTClient) ListBatchPredictionJobs(ctx context.Context, req *aiplat baseUrl.Path += fmt.Sprintf("/v1beta1/%v/batchPredictionJobs", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -3686,6 +3787,11 @@ func (c *jobRESTClient) DeleteBatchPredictionJob(ctx context.Context, req *aipla } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -3762,6 +3868,11 @@ func (c *jobRESTClient) CancelBatchPredictionJob(ctx context.Context, req *aipla } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -3807,6 +3918,11 @@ func (c *jobRESTClient) CreateModelDeploymentMonitoringJob(ctx context.Context, } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/modelDeploymentMonitoringJobs", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -3881,6 +3997,11 @@ func (c *jobRESTClient) SearchModelDeploymentMonitoringStatsAnomalies(ctx contex } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:searchModelDeploymentMonitoringStatsAnomalies", req.GetModelDeploymentMonitoringJob()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := append(c.xGoogHeaders, "Content-Type", "application/json") headers := gax.BuildHeaders(ctx, hds...) @@ -3946,6 +4067,11 @@ func (c *jobRESTClient) GetModelDeploymentMonitoringJob(ctx context.Context, req } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -4015,6 +4141,7 @@ func (c *jobRESTClient) ListModelDeploymentMonitoringJobs(ctx context.Context, r baseUrl.Path += fmt.Sprintf("/v1beta1/%v/modelDeploymentMonitoringJobs", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -4107,6 +4234,7 @@ func (c *jobRESTClient) UpdateModelDeploymentMonitoringJob(ctx context.Context, baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetModelDeploymentMonitoringJob().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetUpdateMask() != nil { updateMask, err := protojson.Marshal(req.GetUpdateMask()) if err != nil { @@ -4176,6 +4304,11 @@ func (c *jobRESTClient) DeleteModelDeploymentMonitoringJob(ctx context.Context, } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -4244,6 +4377,11 @@ func (c *jobRESTClient) PauseModelDeploymentMonitoringJob(ctx context.Context, r } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:pause", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -4289,6 +4427,11 @@ func (c *jobRESTClient) ResumeModelDeploymentMonitoringJob(ctx context.Context, } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:resume", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -4326,6 +4469,11 @@ func (c *jobRESTClient) GetLocation(ctx context.Context, req *locationpb.GetLoca } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -4395,6 +4543,7 @@ func (c *jobRESTClient) ListLocations(ctx context.Context, req *locationpb.ListL baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -4479,6 +4628,11 @@ func (c *jobRESTClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolic } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -4544,6 +4698,11 @@ func (c *jobRESTClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolic } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -4611,6 +4770,11 @@ func (c *jobRESTClient) TestIamPermissions(ctx context.Context, req *iampb.TestI } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -4666,6 +4830,11 @@ func (c *jobRESTClient) CancelOperation(ctx context.Context, req *longrunningpb. } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -4703,6 +4872,11 @@ func (c *jobRESTClient) DeleteOperation(ctx context.Context, req *longrunningpb. } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -4740,6 +4914,11 @@ func (c *jobRESTClient) GetOperation(ctx context.Context, req *longrunningpb.Get } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -4809,6 +4988,7 @@ func (c *jobRESTClient) ListOperations(ctx context.Context, req *longrunningpb.L baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -4887,6 +5067,7 @@ func (c *jobRESTClient) WaitOperation(ctx context.Context, req *longrunningpb.Wa baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/llm_utility_client.go b/aiplatform/apiv1beta1/llm_utility_client.go index c9a9103937b8..a02c971e113b 100755 --- a/aiplatform/apiv1beta1/llm_utility_client.go +++ b/aiplatform/apiv1beta1/llm_utility_client.go @@ -638,6 +638,11 @@ func (c *llmUtilityRESTClient) ComputeTokens(ctx context.Context, req *aiplatfor } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:computeTokens", req.GetEndpoint()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "endpoint", url.QueryEscape(req.GetEndpoint()))} @@ -693,6 +698,11 @@ func (c *llmUtilityRESTClient) GetLocation(ctx context.Context, req *locationpb. } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -762,6 +772,7 @@ func (c *llmUtilityRESTClient) ListLocations(ctx context.Context, req *locationp baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -846,6 +857,11 @@ func (c *llmUtilityRESTClient) GetIamPolicy(ctx context.Context, req *iampb.GetI } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -911,6 +927,11 @@ func (c *llmUtilityRESTClient) SetIamPolicy(ctx context.Context, req *iampb.SetI } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -978,6 +999,11 @@ func (c *llmUtilityRESTClient) TestIamPermissions(ctx context.Context, req *iamp } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1033,6 +1059,11 @@ func (c *llmUtilityRESTClient) CancelOperation(ctx context.Context, req *longrun } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1070,6 +1101,11 @@ func (c *llmUtilityRESTClient) DeleteOperation(ctx context.Context, req *longrun } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1107,6 +1143,11 @@ func (c *llmUtilityRESTClient) GetOperation(ctx context.Context, req *longrunnin } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1176,6 +1217,7 @@ func (c *llmUtilityRESTClient) ListOperations(ctx context.Context, req *longrunn baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1254,6 +1296,7 @@ func (c *llmUtilityRESTClient) WaitOperation(ctx context.Context, req *longrunni baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/match_client.go b/aiplatform/apiv1beta1/match_client.go index 86fe45edb4fd..41bb832fece6 100755 --- a/aiplatform/apiv1beta1/match_client.go +++ b/aiplatform/apiv1beta1/match_client.go @@ -669,6 +669,11 @@ func (c *matchRESTClient) FindNeighbors(ctx context.Context, req *aiplatformpb.F } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:findNeighbors", req.GetIndexEndpoint()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "index_endpoint", url.QueryEscape(req.GetIndexEndpoint()))} @@ -731,6 +736,11 @@ func (c *matchRESTClient) ReadIndexDatapoints(ctx context.Context, req *aiplatfo } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:readIndexDatapoints", req.GetIndexEndpoint()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "index_endpoint", url.QueryEscape(req.GetIndexEndpoint()))} @@ -786,6 +796,11 @@ func (c *matchRESTClient) GetLocation(ctx context.Context, req *locationpb.GetLo } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -855,6 +870,7 @@ func (c *matchRESTClient) ListLocations(ctx context.Context, req *locationpb.Lis baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -939,6 +955,11 @@ func (c *matchRESTClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPol } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1004,6 +1025,11 @@ func (c *matchRESTClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPol } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1071,6 +1097,11 @@ func (c *matchRESTClient) TestIamPermissions(ctx context.Context, req *iampb.Tes } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1126,6 +1157,11 @@ func (c *matchRESTClient) CancelOperation(ctx context.Context, req *longrunningp } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1163,6 +1199,11 @@ func (c *matchRESTClient) DeleteOperation(ctx context.Context, req *longrunningp } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1200,6 +1241,11 @@ func (c *matchRESTClient) GetOperation(ctx context.Context, req *longrunningpb.G } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1269,6 +1315,7 @@ func (c *matchRESTClient) ListOperations(ctx context.Context, req *longrunningpb baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1347,6 +1394,7 @@ func (c *matchRESTClient) WaitOperation(ctx context.Context, req *longrunningpb. baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/metadata_client.go b/aiplatform/apiv1beta1/metadata_client.go index cc5b50429887..c53c8075ec82 100755 --- a/aiplatform/apiv1beta1/metadata_client.go +++ b/aiplatform/apiv1beta1/metadata_client.go @@ -1844,6 +1844,7 @@ func (c *metadataRESTClient) CreateMetadataStore(ctx context.Context, req *aipla baseUrl.Path += fmt.Sprintf("/v1beta1/%v/metadataStores", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetMetadataStoreId() != "" { params.Add("metadataStoreId", fmt.Sprintf("%v", req.GetMetadataStoreId())) } @@ -1909,6 +1910,11 @@ func (c *metadataRESTClient) GetMetadataStore(ctx context.Context, req *aiplatfo } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1978,6 +1984,7 @@ func (c *metadataRESTClient) ListMetadataStores(ctx context.Context, req *aiplat baseUrl.Path += fmt.Sprintf("/v1beta1/%v/metadataStores", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetPageSize() != 0 { params.Add("pageSize", fmt.Sprintf("%v", req.GetPageSize())) } @@ -2054,6 +2061,7 @@ func (c *metadataRESTClient) DeleteMetadataStore(ctx context.Context, req *aipla baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetForce() { params.Add("force", fmt.Sprintf("%v", req.GetForce())) } @@ -2127,6 +2135,7 @@ func (c *metadataRESTClient) CreateArtifact(ctx context.Context, req *aiplatform baseUrl.Path += fmt.Sprintf("/v1beta1/%v/artifacts", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetArtifactId() != "" { params.Add("artifactId", fmt.Sprintf("%v", req.GetArtifactId())) } @@ -2188,6 +2197,11 @@ func (c *metadataRESTClient) GetArtifact(ctx context.Context, req *aiplatformpb. } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2257,6 +2271,7 @@ func (c *metadataRESTClient) ListArtifacts(ctx context.Context, req *aiplatformp baseUrl.Path += fmt.Sprintf("/v1beta1/%v/artifacts", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2345,6 +2360,7 @@ func (c *metadataRESTClient) UpdateArtifact(ctx context.Context, req *aiplatform baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetArtifact().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetAllowMissing() { params.Add("allowMissing", fmt.Sprintf("%v", req.GetAllowMissing())) } @@ -2414,6 +2430,7 @@ func (c *metadataRESTClient) DeleteArtifact(ctx context.Context, req *aiplatform baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetEtag() != "" { params.Add("etag", fmt.Sprintf("%v", req.GetEtag())) } @@ -2485,6 +2502,11 @@ func (c *metadataRESTClient) PurgeArtifacts(ctx context.Context, req *aiplatform } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/artifacts:purge", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -2552,6 +2574,7 @@ func (c *metadataRESTClient) CreateContext(ctx context.Context, req *aiplatformp baseUrl.Path += fmt.Sprintf("/v1beta1/%v/contexts", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetContextId() != "" { params.Add("contextId", fmt.Sprintf("%v", req.GetContextId())) } @@ -2613,6 +2636,11 @@ func (c *metadataRESTClient) GetContext(ctx context.Context, req *aiplatformpb.G } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2682,6 +2710,7 @@ func (c *metadataRESTClient) ListContexts(ctx context.Context, req *aiplatformpb baseUrl.Path += fmt.Sprintf("/v1beta1/%v/contexts", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2770,6 +2799,7 @@ func (c *metadataRESTClient) UpdateContext(ctx context.Context, req *aiplatformp baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetContext().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetAllowMissing() { params.Add("allowMissing", fmt.Sprintf("%v", req.GetAllowMissing())) } @@ -2839,6 +2869,7 @@ func (c *metadataRESTClient) DeleteContext(ctx context.Context, req *aiplatformp baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetEtag() != "" { params.Add("etag", fmt.Sprintf("%v", req.GetEtag())) } @@ -2913,6 +2944,11 @@ func (c *metadataRESTClient) PurgeContexts(ctx context.Context, req *aiplatformp } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/contexts:purge", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -2980,6 +3016,11 @@ func (c *metadataRESTClient) AddContextArtifactsAndExecutions(ctx context.Contex } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:addContextArtifactsAndExecutions", req.GetContext()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "context", url.QueryEscape(req.GetContext()))} @@ -3045,6 +3086,11 @@ func (c *metadataRESTClient) AddContextChildren(ctx context.Context, req *aiplat } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:addContextChildren", req.GetContext()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "context", url.QueryEscape(req.GetContext()))} @@ -3108,6 +3154,11 @@ func (c *metadataRESTClient) RemoveContextChildren(ctx context.Context, req *aip } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:removeContextChildren", req.GetContext()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "context", url.QueryEscape(req.GetContext()))} @@ -3164,6 +3215,11 @@ func (c *metadataRESTClient) QueryContextLineageSubgraph(ctx context.Context, re } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:queryContextLineageSubgraph", req.GetContext()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "context", url.QueryEscape(req.GetContext()))} @@ -3227,6 +3283,7 @@ func (c *metadataRESTClient) CreateExecution(ctx context.Context, req *aiplatfor baseUrl.Path += fmt.Sprintf("/v1beta1/%v/executions", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetExecutionId() != "" { params.Add("executionId", fmt.Sprintf("%v", req.GetExecutionId())) } @@ -3288,6 +3345,11 @@ func (c *metadataRESTClient) GetExecution(ctx context.Context, req *aiplatformpb } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -3357,6 +3419,7 @@ func (c *metadataRESTClient) ListExecutions(ctx context.Context, req *aiplatform baseUrl.Path += fmt.Sprintf("/v1beta1/%v/executions", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -3445,6 +3508,7 @@ func (c *metadataRESTClient) UpdateExecution(ctx context.Context, req *aiplatfor baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetExecution().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetAllowMissing() { params.Add("allowMissing", fmt.Sprintf("%v", req.GetAllowMissing())) } @@ -3514,6 +3578,7 @@ func (c *metadataRESTClient) DeleteExecution(ctx context.Context, req *aiplatfor baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetEtag() != "" { params.Add("etag", fmt.Sprintf("%v", req.GetEtag())) } @@ -3585,6 +3650,11 @@ func (c *metadataRESTClient) PurgeExecutions(ctx context.Context, req *aiplatfor } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/executions:purge", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -3653,6 +3723,11 @@ func (c *metadataRESTClient) AddExecutionEvents(ctx context.Context, req *aiplat } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:addExecutionEvents", req.GetExecution()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "execution", url.QueryEscape(req.GetExecution()))} @@ -3710,6 +3785,11 @@ func (c *metadataRESTClient) QueryExecutionInputsAndOutputs(ctx context.Context, } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:queryExecutionInputsAndOutputs", req.GetExecution()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "execution", url.QueryEscape(req.GetExecution()))} @@ -3773,6 +3853,7 @@ func (c *metadataRESTClient) CreateMetadataSchema(ctx context.Context, req *aipl baseUrl.Path += fmt.Sprintf("/v1beta1/%v/metadataSchemas", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetMetadataSchemaId() != "" { params.Add("metadataSchemaId", fmt.Sprintf("%v", req.GetMetadataSchemaId())) } @@ -3834,6 +3915,11 @@ func (c *metadataRESTClient) GetMetadataSchema(ctx context.Context, req *aiplatf } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -3903,6 +3989,7 @@ func (c *metadataRESTClient) ListMetadataSchemas(ctx context.Context, req *aipla baseUrl.Path += fmt.Sprintf("/v1beta1/%v/metadataSchemas", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -3982,6 +4069,7 @@ func (c *metadataRESTClient) QueryArtifactLineageSubgraph(ctx context.Context, r baseUrl.Path += fmt.Sprintf("/v1beta1/%v:queryArtifactLineageSubgraph", req.GetArtifact()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -4046,6 +4134,11 @@ func (c *metadataRESTClient) GetLocation(ctx context.Context, req *locationpb.Ge } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -4115,6 +4208,7 @@ func (c *metadataRESTClient) ListLocations(ctx context.Context, req *locationpb. baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -4199,6 +4293,11 @@ func (c *metadataRESTClient) GetIamPolicy(ctx context.Context, req *iampb.GetIam } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -4264,6 +4363,11 @@ func (c *metadataRESTClient) SetIamPolicy(ctx context.Context, req *iampb.SetIam } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -4331,6 +4435,11 @@ func (c *metadataRESTClient) TestIamPermissions(ctx context.Context, req *iampb. } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -4386,6 +4495,11 @@ func (c *metadataRESTClient) CancelOperation(ctx context.Context, req *longrunni } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -4423,6 +4537,11 @@ func (c *metadataRESTClient) DeleteOperation(ctx context.Context, req *longrunni } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -4460,6 +4579,11 @@ func (c *metadataRESTClient) GetOperation(ctx context.Context, req *longrunningp } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -4529,6 +4653,7 @@ func (c *metadataRESTClient) ListOperations(ctx context.Context, req *longrunnin baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -4607,6 +4732,7 @@ func (c *metadataRESTClient) WaitOperation(ctx context.Context, req *longrunning baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/migration_client.go b/aiplatform/apiv1beta1/migration_client.go index b807d1a5c732..829b4022acf0 100755 --- a/aiplatform/apiv1beta1/migration_client.go +++ b/aiplatform/apiv1beta1/migration_client.go @@ -761,6 +761,11 @@ func (c *migrationRESTClient) SearchMigratableResources(ctx context.Context, req } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/migratableResources:search", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := append(c.xGoogHeaders, "Content-Type", "application/json") headers := gax.BuildHeaders(ctx, hds...) @@ -833,6 +838,11 @@ func (c *migrationRESTClient) BatchMigrateResources(ctx context.Context, req *ai } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/migratableResources:batchMigrate", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -892,6 +902,11 @@ func (c *migrationRESTClient) GetLocation(ctx context.Context, req *locationpb.G } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -961,6 +976,7 @@ func (c *migrationRESTClient) ListLocations(ctx context.Context, req *locationpb baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1045,6 +1061,11 @@ func (c *migrationRESTClient) GetIamPolicy(ctx context.Context, req *iampb.GetIa } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1110,6 +1131,11 @@ func (c *migrationRESTClient) SetIamPolicy(ctx context.Context, req *iampb.SetIa } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1177,6 +1203,11 @@ func (c *migrationRESTClient) TestIamPermissions(ctx context.Context, req *iampb } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1232,6 +1263,11 @@ func (c *migrationRESTClient) CancelOperation(ctx context.Context, req *longrunn } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1269,6 +1305,11 @@ func (c *migrationRESTClient) DeleteOperation(ctx context.Context, req *longrunn } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1306,6 +1347,11 @@ func (c *migrationRESTClient) GetOperation(ctx context.Context, req *longrunning } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1375,6 +1421,7 @@ func (c *migrationRESTClient) ListOperations(ctx context.Context, req *longrunni baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1453,6 +1500,7 @@ func (c *migrationRESTClient) WaitOperation(ctx context.Context, req *longrunnin baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/model_client.go b/aiplatform/apiv1beta1/model_client.go index a85911571b86..6b3d79354113 100755 --- a/aiplatform/apiv1beta1/model_client.go +++ b/aiplatform/apiv1beta1/model_client.go @@ -1367,6 +1367,11 @@ func (c *modelRESTClient) UploadModel(ctx context.Context, req *aiplatformpb.Upl } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/models:upload", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -1426,6 +1431,11 @@ func (c *modelRESTClient) GetModel(ctx context.Context, req *aiplatformpb.GetMod } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1495,6 +1505,7 @@ func (c *modelRESTClient) ListModels(ctx context.Context, req *aiplatformpb.List baseUrl.Path += fmt.Sprintf("/v1beta1/%v/models", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1593,6 +1604,7 @@ func (c *modelRESTClient) ListModelVersions(ctx context.Context, req *aiplatform baseUrl.Path += fmt.Sprintf("/v1beta1/%v:listVersions", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1688,6 +1700,7 @@ func (c *modelRESTClient) UpdateModel(ctx context.Context, req *aiplatformpb.Upd baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetModel().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetUpdateMask() != nil { updateMask, err := protojson.Marshal(req.GetUpdateMask()) if err != nil { @@ -1759,6 +1772,11 @@ func (c *modelRESTClient) UpdateExplanationDataset(ctx context.Context, req *aip } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:updateExplanationDataset", req.GetModel()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "model", url.QueryEscape(req.GetModel()))} @@ -1825,6 +1843,11 @@ func (c *modelRESTClient) DeleteModel(ctx context.Context, req *aiplatformpb.Del } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1890,6 +1913,11 @@ func (c *modelRESTClient) DeleteModelVersion(ctx context.Context, req *aiplatfor } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:deleteVersion", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1955,6 +1983,11 @@ func (c *modelRESTClient) MergeVersionAliases(ctx context.Context, req *aiplatfo } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:mergeVersionAliases", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2019,6 +2052,11 @@ func (c *modelRESTClient) ExportModel(ctx context.Context, req *aiplatformpb.Exp } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:export", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2089,6 +2127,11 @@ func (c *modelRESTClient) CopyModel(ctx context.Context, req *aiplatformpb.CopyM } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/models:copy", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -2154,6 +2197,11 @@ func (c *modelRESTClient) ImportModelEvaluation(ctx context.Context, req *aiplat } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/evaluations:import", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -2215,6 +2263,11 @@ func (c *modelRESTClient) BatchImportModelEvaluationSlices(ctx context.Context, } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/slices:batchImport", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -2276,6 +2329,11 @@ func (c *modelRESTClient) BatchImportEvaluatedAnnotations(ctx context.Context, r } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:batchImport", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -2331,6 +2389,11 @@ func (c *modelRESTClient) GetModelEvaluation(ctx context.Context, req *aiplatfor } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2400,6 +2463,7 @@ func (c *modelRESTClient) ListModelEvaluations(ctx context.Context, req *aiplatf baseUrl.Path += fmt.Sprintf("/v1beta1/%v/evaluations", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2484,6 +2548,11 @@ func (c *modelRESTClient) GetModelEvaluationSlice(ctx context.Context, req *aipl } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2553,6 +2622,7 @@ func (c *modelRESTClient) ListModelEvaluationSlices(ctx context.Context, req *ai baseUrl.Path += fmt.Sprintf("/v1beta1/%v/slices", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2637,6 +2707,11 @@ func (c *modelRESTClient) GetLocation(ctx context.Context, req *locationpb.GetLo } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2706,6 +2781,7 @@ func (c *modelRESTClient) ListLocations(ctx context.Context, req *locationpb.Lis baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2790,6 +2866,11 @@ func (c *modelRESTClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPol } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -2855,6 +2936,11 @@ func (c *modelRESTClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPol } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -2922,6 +3008,11 @@ func (c *modelRESTClient) TestIamPermissions(ctx context.Context, req *iampb.Tes } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -2977,6 +3068,11 @@ func (c *modelRESTClient) CancelOperation(ctx context.Context, req *longrunningp } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -3014,6 +3110,11 @@ func (c *modelRESTClient) DeleteOperation(ctx context.Context, req *longrunningp } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -3051,6 +3152,11 @@ func (c *modelRESTClient) GetOperation(ctx context.Context, req *longrunningpb.G } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -3120,6 +3226,7 @@ func (c *modelRESTClient) ListOperations(ctx context.Context, req *longrunningpb baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -3198,6 +3305,7 @@ func (c *modelRESTClient) WaitOperation(ctx context.Context, req *longrunningpb. baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/model_garden_client.go b/aiplatform/apiv1beta1/model_garden_client.go index 09c08caaf637..7d08d7c96c90 100755 --- a/aiplatform/apiv1beta1/model_garden_client.go +++ b/aiplatform/apiv1beta1/model_garden_client.go @@ -688,6 +688,7 @@ func (c *modelGardenRESTClient) GetPublisherModel(ctx context.Context, req *aipl baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetLanguageCode() != "" { params.Add("languageCode", fmt.Sprintf("%v", req.GetLanguageCode())) } @@ -766,6 +767,7 @@ func (c *modelGardenRESTClient) ListPublisherModels(ctx context.Context, req *ai baseUrl.Path += fmt.Sprintf("/v1beta1/%v/models", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -852,6 +854,11 @@ func (c *modelGardenRESTClient) GetLocation(ctx context.Context, req *locationpb } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -921,6 +928,7 @@ func (c *modelGardenRESTClient) ListLocations(ctx context.Context, req *location baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1005,6 +1013,11 @@ func (c *modelGardenRESTClient) GetIamPolicy(ctx context.Context, req *iampb.Get } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1070,6 +1083,11 @@ func (c *modelGardenRESTClient) SetIamPolicy(ctx context.Context, req *iampb.Set } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1137,6 +1155,11 @@ func (c *modelGardenRESTClient) TestIamPermissions(ctx context.Context, req *iam } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1192,6 +1215,11 @@ func (c *modelGardenRESTClient) CancelOperation(ctx context.Context, req *longru } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1229,6 +1257,11 @@ func (c *modelGardenRESTClient) DeleteOperation(ctx context.Context, req *longru } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1266,6 +1299,11 @@ func (c *modelGardenRESTClient) GetOperation(ctx context.Context, req *longrunni } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1335,6 +1373,7 @@ func (c *modelGardenRESTClient) ListOperations(ctx context.Context, req *longrun baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1413,6 +1452,7 @@ func (c *modelGardenRESTClient) WaitOperation(ctx context.Context, req *longrunn baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/model_monitoring_client.go b/aiplatform/apiv1beta1/model_monitoring_client.go index efaa50f7be63..49b095607ef9 100755 --- a/aiplatform/apiv1beta1/model_monitoring_client.go +++ b/aiplatform/apiv1beta1/model_monitoring_client.go @@ -1104,6 +1104,7 @@ func (c *modelMonitoringRESTClient) CreateModelMonitor(ctx context.Context, req baseUrl.Path += fmt.Sprintf("/v1beta1/%v/modelMonitors", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetModelMonitorId() != "" { params.Add("modelMonitorId", fmt.Sprintf("%v", req.GetModelMonitorId())) } @@ -1177,6 +1178,7 @@ func (c *modelMonitoringRESTClient) UpdateModelMonitor(ctx context.Context, req baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetModelMonitor().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetUpdateMask() != nil { updateMask, err := protojson.Marshal(req.GetUpdateMask()) if err != nil { @@ -1246,6 +1248,11 @@ func (c *modelMonitoringRESTClient) GetModelMonitor(ctx context.Context, req *ai } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1315,6 +1322,7 @@ func (c *modelMonitoringRESTClient) ListModelMonitors(ctx context.Context, req * baseUrl.Path += fmt.Sprintf("/v1beta1/%v/modelMonitors", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1400,6 +1408,7 @@ func (c *modelMonitoringRESTClient) DeleteModelMonitor(ctx context.Context, req baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetForce() { params.Add("force", fmt.Sprintf("%v", req.GetForce())) } @@ -1473,6 +1482,7 @@ func (c *modelMonitoringRESTClient) CreateModelMonitoringJob(ctx context.Context baseUrl.Path += fmt.Sprintf("/v1beta1/%v/modelMonitoringJobs", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetModelMonitoringJobId() != "" { params.Add("modelMonitoringJobId", fmt.Sprintf("%v", req.GetModelMonitoringJobId())) } @@ -1534,6 +1544,11 @@ func (c *modelMonitoringRESTClient) GetModelMonitoringJob(ctx context.Context, r } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1608,6 +1623,7 @@ func (c *modelMonitoringRESTClient) ListModelMonitoringJobs(ctx context.Context, baseUrl.Path += fmt.Sprintf("/v1beta1/%v/modelMonitoringJobs", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1692,6 +1708,11 @@ func (c *modelMonitoringRESTClient) DeleteModelMonitoringJob(ctx context.Context } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1770,6 +1791,11 @@ func (c *modelMonitoringRESTClient) SearchModelMonitoringStats(ctx context.Conte } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:searchModelMonitoringStats", req.GetModelMonitor()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := append(c.xGoogHeaders, "Content-Type", "application/json") headers := gax.BuildHeaders(ctx, hds...) @@ -1854,6 +1880,11 @@ func (c *modelMonitoringRESTClient) SearchModelMonitoringAlerts(ctx context.Cont } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:searchModelMonitoringAlerts", req.GetModelMonitor()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := append(c.xGoogHeaders, "Content-Type", "application/json") headers := gax.BuildHeaders(ctx, hds...) @@ -1919,6 +1950,11 @@ func (c *modelMonitoringRESTClient) GetLocation(ctx context.Context, req *locati } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1988,6 +2024,7 @@ func (c *modelMonitoringRESTClient) ListLocations(ctx context.Context, req *loca baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2072,6 +2109,11 @@ func (c *modelMonitoringRESTClient) GetIamPolicy(ctx context.Context, req *iampb } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -2137,6 +2179,11 @@ func (c *modelMonitoringRESTClient) SetIamPolicy(ctx context.Context, req *iampb } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -2204,6 +2251,11 @@ func (c *modelMonitoringRESTClient) TestIamPermissions(ctx context.Context, req } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -2259,6 +2311,11 @@ func (c *modelMonitoringRESTClient) CancelOperation(ctx context.Context, req *lo } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2296,6 +2353,11 @@ func (c *modelMonitoringRESTClient) DeleteOperation(ctx context.Context, req *lo } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2333,6 +2395,11 @@ func (c *modelMonitoringRESTClient) GetOperation(ctx context.Context, req *longr } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2402,6 +2469,7 @@ func (c *modelMonitoringRESTClient) ListOperations(ctx context.Context, req *lon baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2480,6 +2548,7 @@ func (c *modelMonitoringRESTClient) WaitOperation(ctx context.Context, req *long baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/notebook_client.go b/aiplatform/apiv1beta1/notebook_client.go index d57ccfb86e68..bec27e6a6c9d 100755 --- a/aiplatform/apiv1beta1/notebook_client.go +++ b/aiplatform/apiv1beta1/notebook_client.go @@ -1213,6 +1213,7 @@ func (c *notebookRESTClient) CreateNotebookRuntimeTemplate(ctx context.Context, baseUrl.Path += fmt.Sprintf("/v1beta1/%v/notebookRuntimeTemplates", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetNotebookRuntimeTemplateId() != "" { params.Add("notebookRuntimeTemplateId", fmt.Sprintf("%v", req.GetNotebookRuntimeTemplateId())) } @@ -1278,6 +1279,11 @@ func (c *notebookRESTClient) GetNotebookRuntimeTemplate(ctx context.Context, req } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1347,6 +1353,7 @@ func (c *notebookRESTClient) ListNotebookRuntimeTemplates(ctx context.Context, r baseUrl.Path += fmt.Sprintf("/v1beta1/%v/notebookRuntimeTemplates", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1434,6 +1441,11 @@ func (c *notebookRESTClient) DeleteNotebookRuntimeTemplate(ctx context.Context, } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1501,6 +1513,7 @@ func (c *notebookRESTClient) UpdateNotebookRuntimeTemplate(ctx context.Context, baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetNotebookRuntimeTemplate().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetUpdateMask() != nil { updateMask, err := protojson.Marshal(req.GetUpdateMask()) if err != nil { @@ -1573,6 +1586,11 @@ func (c *notebookRESTClient) AssignNotebookRuntime(ctx context.Context, req *aip } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/notebookRuntimes:assign", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -1632,6 +1650,11 @@ func (c *notebookRESTClient) GetNotebookRuntime(ctx context.Context, req *aiplat } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1701,6 +1724,7 @@ func (c *notebookRESTClient) ListNotebookRuntimes(ctx context.Context, req *aipl baseUrl.Path += fmt.Sprintf("/v1beta1/%v/notebookRuntimes", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1788,6 +1812,11 @@ func (c *notebookRESTClient) DeleteNotebookRuntime(ctx context.Context, req *aip } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1853,6 +1882,11 @@ func (c *notebookRESTClient) UpgradeNotebookRuntime(ctx context.Context, req *ai } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:upgrade", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1918,6 +1952,11 @@ func (c *notebookRESTClient) StartNotebookRuntime(ctx context.Context, req *aipl } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:start", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1985,6 +2024,7 @@ func (c *notebookRESTClient) CreateNotebookExecutionJob(ctx context.Context, req baseUrl.Path += fmt.Sprintf("/v1beta1/%v/notebookExecutionJobs", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetNotebookExecutionJobId() != "" { params.Add("notebookExecutionJobId", fmt.Sprintf("%v", req.GetNotebookExecutionJobId())) } @@ -2051,6 +2091,7 @@ func (c *notebookRESTClient) GetNotebookExecutionJob(ctx context.Context, req *a baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetView() != 0 { params.Add("view", fmt.Sprintf("%v", req.GetView())) } @@ -2126,6 +2167,7 @@ func (c *notebookRESTClient) ListNotebookExecutionJobs(ctx context.Context, req baseUrl.Path += fmt.Sprintf("/v1beta1/%v/notebookExecutionJobs", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2209,6 +2251,11 @@ func (c *notebookRESTClient) DeleteNotebookExecutionJob(ctx context.Context, req } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2268,6 +2315,11 @@ func (c *notebookRESTClient) GetLocation(ctx context.Context, req *locationpb.Ge } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2337,6 +2389,7 @@ func (c *notebookRESTClient) ListLocations(ctx context.Context, req *locationpb. baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2421,6 +2474,11 @@ func (c *notebookRESTClient) GetIamPolicy(ctx context.Context, req *iampb.GetIam } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -2486,6 +2544,11 @@ func (c *notebookRESTClient) SetIamPolicy(ctx context.Context, req *iampb.SetIam } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -2553,6 +2616,11 @@ func (c *notebookRESTClient) TestIamPermissions(ctx context.Context, req *iampb. } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -2608,6 +2676,11 @@ func (c *notebookRESTClient) CancelOperation(ctx context.Context, req *longrunni } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2645,6 +2718,11 @@ func (c *notebookRESTClient) DeleteOperation(ctx context.Context, req *longrunni } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2682,6 +2760,11 @@ func (c *notebookRESTClient) GetOperation(ctx context.Context, req *longrunningp } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2751,6 +2834,7 @@ func (c *notebookRESTClient) ListOperations(ctx context.Context, req *longrunnin baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2829,6 +2913,7 @@ func (c *notebookRESTClient) WaitOperation(ctx context.Context, req *longrunning baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/persistent_resource_client.go b/aiplatform/apiv1beta1/persistent_resource_client.go index 770f50301a6f..c33dc61caf92 100755 --- a/aiplatform/apiv1beta1/persistent_resource_client.go +++ b/aiplatform/apiv1beta1/persistent_resource_client.go @@ -877,6 +877,7 @@ func (c *persistentResourceRESTClient) CreatePersistentResource(ctx context.Cont baseUrl.Path += fmt.Sprintf("/v1beta1/%v/persistentResources", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") params.Add("persistentResourceId", fmt.Sprintf("%v", req.GetPersistentResourceId())) baseUrl.RawQuery = params.Encode() @@ -940,6 +941,11 @@ func (c *persistentResourceRESTClient) GetPersistentResource(ctx context.Context } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1009,6 +1015,7 @@ func (c *persistentResourceRESTClient) ListPersistentResources(ctx context.Conte baseUrl.Path += fmt.Sprintf("/v1beta1/%v/persistentResources", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetPageSize() != 0 { params.Add("pageSize", fmt.Sprintf("%v", req.GetPageSize())) } @@ -1083,6 +1090,11 @@ func (c *persistentResourceRESTClient) DeletePersistentResource(ctx context.Cont } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1150,6 +1162,7 @@ func (c *persistentResourceRESTClient) UpdatePersistentResource(ctx context.Cont baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetPersistentResource().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetUpdateMask() != nil { updateMask, err := protojson.Marshal(req.GetUpdateMask()) if err != nil { @@ -1225,6 +1238,11 @@ func (c *persistentResourceRESTClient) RebootPersistentResource(ctx context.Cont } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:reboot", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1284,6 +1302,11 @@ func (c *persistentResourceRESTClient) GetLocation(ctx context.Context, req *loc } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1353,6 +1376,7 @@ func (c *persistentResourceRESTClient) ListLocations(ctx context.Context, req *l baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1437,6 +1461,11 @@ func (c *persistentResourceRESTClient) GetIamPolicy(ctx context.Context, req *ia } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1502,6 +1531,11 @@ func (c *persistentResourceRESTClient) SetIamPolicy(ctx context.Context, req *ia } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1569,6 +1603,11 @@ func (c *persistentResourceRESTClient) TestIamPermissions(ctx context.Context, r } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1624,6 +1663,11 @@ func (c *persistentResourceRESTClient) CancelOperation(ctx context.Context, req } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1661,6 +1705,11 @@ func (c *persistentResourceRESTClient) DeleteOperation(ctx context.Context, req } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1698,6 +1747,11 @@ func (c *persistentResourceRESTClient) GetOperation(ctx context.Context, req *lo } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1767,6 +1821,7 @@ func (c *persistentResourceRESTClient) ListOperations(ctx context.Context, req * baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1845,6 +1900,7 @@ func (c *persistentResourceRESTClient) WaitOperation(ctx context.Context, req *l baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/pipeline_client.go b/aiplatform/apiv1beta1/pipeline_client.go index 8d7a88fc7f84..62434e04e616 100755 --- a/aiplatform/apiv1beta1/pipeline_client.go +++ b/aiplatform/apiv1beta1/pipeline_client.go @@ -1120,6 +1120,11 @@ func (c *pipelineRESTClient) CreateTrainingPipeline(ctx context.Context, req *ai } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/trainingPipelines", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -1175,6 +1180,11 @@ func (c *pipelineRESTClient) GetTrainingPipeline(ctx context.Context, req *aipla } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1244,6 +1254,7 @@ func (c *pipelineRESTClient) ListTrainingPipelines(ctx context.Context, req *aip baseUrl.Path += fmt.Sprintf("/v1beta1/%v/trainingPipelines", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1328,6 +1339,11 @@ func (c *pipelineRESTClient) DeleteTrainingPipeline(ctx context.Context, req *ai } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1406,6 +1422,11 @@ func (c *pipelineRESTClient) CancelTrainingPipeline(ctx context.Context, req *ai } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1451,6 +1472,7 @@ func (c *pipelineRESTClient) CreatePipelineJob(ctx context.Context, req *aiplatf baseUrl.Path += fmt.Sprintf("/v1beta1/%v/pipelineJobs", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetPipelineJobId() != "" { params.Add("pipelineJobId", fmt.Sprintf("%v", req.GetPipelineJobId())) } @@ -1512,6 +1534,11 @@ func (c *pipelineRESTClient) GetPipelineJob(ctx context.Context, req *aiplatform } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1581,6 +1608,7 @@ func (c *pipelineRESTClient) ListPipelineJobs(ctx context.Context, req *aiplatfo baseUrl.Path += fmt.Sprintf("/v1beta1/%v/pipelineJobs", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1668,6 +1696,11 @@ func (c *pipelineRESTClient) DeletePipelineJob(ctx context.Context, req *aiplatf } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1735,6 +1768,11 @@ func (c *pipelineRESTClient) BatchDeletePipelineJobs(ctx context.Context, req *a } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/pipelineJobs:batchDelete", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -1812,6 +1850,11 @@ func (c *pipelineRESTClient) CancelPipelineJob(ctx context.Context, req *aiplatf } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1861,6 +1904,11 @@ func (c *pipelineRESTClient) BatchCancelPipelineJobs(ctx context.Context, req *a } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/pipelineJobs:batchCancel", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -1920,6 +1968,11 @@ func (c *pipelineRESTClient) GetLocation(ctx context.Context, req *locationpb.Ge } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1989,6 +2042,7 @@ func (c *pipelineRESTClient) ListLocations(ctx context.Context, req *locationpb. baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2073,6 +2127,11 @@ func (c *pipelineRESTClient) GetIamPolicy(ctx context.Context, req *iampb.GetIam } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -2138,6 +2197,11 @@ func (c *pipelineRESTClient) SetIamPolicy(ctx context.Context, req *iampb.SetIam } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -2205,6 +2269,11 @@ func (c *pipelineRESTClient) TestIamPermissions(ctx context.Context, req *iampb. } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -2260,6 +2329,11 @@ func (c *pipelineRESTClient) CancelOperation(ctx context.Context, req *longrunni } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2297,6 +2371,11 @@ func (c *pipelineRESTClient) DeleteOperation(ctx context.Context, req *longrunni } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2334,6 +2413,11 @@ func (c *pipelineRESTClient) GetOperation(ctx context.Context, req *longrunningp } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2403,6 +2487,7 @@ func (c *pipelineRESTClient) ListOperations(ctx context.Context, req *longrunnin baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2481,6 +2566,7 @@ func (c *pipelineRESTClient) WaitOperation(ctx context.Context, req *longrunning baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/prediction_client.go b/aiplatform/apiv1beta1/prediction_client.go index 9f8e74e76fc6..77946f5d3973 100755 --- a/aiplatform/apiv1beta1/prediction_client.go +++ b/aiplatform/apiv1beta1/prediction_client.go @@ -1050,6 +1050,11 @@ func (c *predictionRESTClient) Predict(ctx context.Context, req *aiplatformpb.Pr } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:predict", req.GetEndpoint()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "endpoint", url.QueryEscape(req.GetEndpoint()))} @@ -1121,6 +1126,11 @@ func (c *predictionRESTClient) RawPredict(ctx context.Context, req *aiplatformpb } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:rawPredict", req.GetEndpoint()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "endpoint", url.QueryEscape(req.GetEndpoint()))} @@ -1182,6 +1192,11 @@ func (c *predictionRESTClient) StreamRawPredict(ctx context.Context, req *aiplat } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:streamRawPredict", req.GetEndpoint()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "endpoint", url.QueryEscape(req.GetEndpoint()))} @@ -1284,6 +1299,11 @@ func (c *predictionRESTClient) DirectPredict(ctx context.Context, req *aiplatfor } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:directPredict", req.GetEndpoint()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "endpoint", url.QueryEscape(req.GetEndpoint()))} @@ -1346,6 +1366,11 @@ func (c *predictionRESTClient) DirectRawPredict(ctx context.Context, req *aiplat } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:directRawPredict", req.GetEndpoint()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "endpoint", url.QueryEscape(req.GetEndpoint()))} @@ -1432,6 +1457,11 @@ func (c *predictionRESTClient) ServerStreamingPredict(ctx context.Context, req * } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:serverStreamingPredict", req.GetEndpoint()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "endpoint", url.QueryEscape(req.GetEndpoint()))} @@ -1550,6 +1580,11 @@ func (c *predictionRESTClient) Explain(ctx context.Context, req *aiplatformpb.Ex } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:explain", req.GetEndpoint()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "endpoint", url.QueryEscape(req.GetEndpoint()))} @@ -1611,6 +1646,11 @@ func (c *predictionRESTClient) CountTokens(ctx context.Context, req *aiplatformp } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:countTokens", req.GetEndpoint()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "endpoint", url.QueryEscape(req.GetEndpoint()))} @@ -1672,6 +1712,11 @@ func (c *predictionRESTClient) GenerateContent(ctx context.Context, req *aiplatf } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:generateContent", req.GetModel()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "model", url.QueryEscape(req.GetModel()))} @@ -1733,6 +1778,11 @@ func (c *predictionRESTClient) StreamGenerateContent(ctx context.Context, req *a } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:streamGenerateContent", req.GetModel()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "model", url.QueryEscape(req.GetModel()))} @@ -1835,6 +1885,11 @@ func (c *predictionRESTClient) ChatCompletions(ctx context.Context, req *aiplatf } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/chat/completions", req.GetEndpoint()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "endpoint", url.QueryEscape(req.GetEndpoint()))} @@ -1930,6 +1985,11 @@ func (c *predictionRESTClient) GetLocation(ctx context.Context, req *locationpb. } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1999,6 +2059,7 @@ func (c *predictionRESTClient) ListLocations(ctx context.Context, req *locationp baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2083,6 +2144,11 @@ func (c *predictionRESTClient) GetIamPolicy(ctx context.Context, req *iampb.GetI } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -2148,6 +2214,11 @@ func (c *predictionRESTClient) SetIamPolicy(ctx context.Context, req *iampb.SetI } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -2215,6 +2286,11 @@ func (c *predictionRESTClient) TestIamPermissions(ctx context.Context, req *iamp } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -2270,6 +2346,11 @@ func (c *predictionRESTClient) CancelOperation(ctx context.Context, req *longrun } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2307,6 +2388,11 @@ func (c *predictionRESTClient) DeleteOperation(ctx context.Context, req *longrun } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2344,6 +2430,11 @@ func (c *predictionRESTClient) GetOperation(ctx context.Context, req *longrunnin } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2413,6 +2504,7 @@ func (c *predictionRESTClient) ListOperations(ctx context.Context, req *longrunn baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2491,6 +2583,7 @@ func (c *predictionRESTClient) WaitOperation(ctx context.Context, req *longrunni baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/reasoning_engine_client.go b/aiplatform/apiv1beta1/reasoning_engine_client.go index 40a198743777..78a941adfc70 100755 --- a/aiplatform/apiv1beta1/reasoning_engine_client.go +++ b/aiplatform/apiv1beta1/reasoning_engine_client.go @@ -840,6 +840,11 @@ func (c *reasoningEngineRESTClient) CreateReasoningEngine(ctx context.Context, r } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/reasoningEngines", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -899,6 +904,11 @@ func (c *reasoningEngineRESTClient) GetReasoningEngine(ctx context.Context, req } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -968,6 +978,7 @@ func (c *reasoningEngineRESTClient) ListReasoningEngines(ctx context.Context, re baseUrl.Path += fmt.Sprintf("/v1beta1/%v/reasoningEngines", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1053,6 +1064,7 @@ func (c *reasoningEngineRESTClient) UpdateReasoningEngine(ctx context.Context, r baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetReasoningEngine().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetUpdateMask() != nil { updateMask, err := protojson.Marshal(req.GetUpdateMask()) if err != nil { @@ -1122,6 +1134,11 @@ func (c *reasoningEngineRESTClient) DeleteReasoningEngine(ctx context.Context, r } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1181,6 +1198,11 @@ func (c *reasoningEngineRESTClient) GetLocation(ctx context.Context, req *locati } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1250,6 +1272,7 @@ func (c *reasoningEngineRESTClient) ListLocations(ctx context.Context, req *loca baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1334,6 +1357,11 @@ func (c *reasoningEngineRESTClient) GetIamPolicy(ctx context.Context, req *iampb } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1399,6 +1427,11 @@ func (c *reasoningEngineRESTClient) SetIamPolicy(ctx context.Context, req *iampb } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1466,6 +1499,11 @@ func (c *reasoningEngineRESTClient) TestIamPermissions(ctx context.Context, req } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1521,6 +1559,11 @@ func (c *reasoningEngineRESTClient) CancelOperation(ctx context.Context, req *lo } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1558,6 +1601,11 @@ func (c *reasoningEngineRESTClient) DeleteOperation(ctx context.Context, req *lo } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1595,6 +1643,11 @@ func (c *reasoningEngineRESTClient) GetOperation(ctx context.Context, req *longr } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1664,6 +1717,7 @@ func (c *reasoningEngineRESTClient) ListOperations(ctx context.Context, req *lon baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1742,6 +1796,7 @@ func (c *reasoningEngineRESTClient) WaitOperation(ctx context.Context, req *long baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/reasoning_engine_execution_client.go b/aiplatform/apiv1beta1/reasoning_engine_execution_client.go index 777826c64cd4..df6e2db835de 100755 --- a/aiplatform/apiv1beta1/reasoning_engine_execution_client.go +++ b/aiplatform/apiv1beta1/reasoning_engine_execution_client.go @@ -638,6 +638,11 @@ func (c *reasoningEngineExecutionRESTClient) QueryReasoningEngine(ctx context.Co } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:query", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -693,6 +698,11 @@ func (c *reasoningEngineExecutionRESTClient) GetLocation(ctx context.Context, re } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -762,6 +772,7 @@ func (c *reasoningEngineExecutionRESTClient) ListLocations(ctx context.Context, baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -846,6 +857,11 @@ func (c *reasoningEngineExecutionRESTClient) GetIamPolicy(ctx context.Context, r } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -911,6 +927,11 @@ func (c *reasoningEngineExecutionRESTClient) SetIamPolicy(ctx context.Context, r } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -978,6 +999,11 @@ func (c *reasoningEngineExecutionRESTClient) TestIamPermissions(ctx context.Cont } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1033,6 +1059,11 @@ func (c *reasoningEngineExecutionRESTClient) CancelOperation(ctx context.Context } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1070,6 +1101,11 @@ func (c *reasoningEngineExecutionRESTClient) DeleteOperation(ctx context.Context } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1107,6 +1143,11 @@ func (c *reasoningEngineExecutionRESTClient) GetOperation(ctx context.Context, r } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1176,6 +1217,7 @@ func (c *reasoningEngineExecutionRESTClient) ListOperations(ctx context.Context, baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1254,6 +1296,7 @@ func (c *reasoningEngineExecutionRESTClient) WaitOperation(ctx context.Context, baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/schedule_client.go b/aiplatform/apiv1beta1/schedule_client.go index f5acf1652c8a..2d64bc6e6066 100755 --- a/aiplatform/apiv1beta1/schedule_client.go +++ b/aiplatform/apiv1beta1/schedule_client.go @@ -887,6 +887,11 @@ func (c *scheduleRESTClient) CreateSchedule(ctx context.Context, req *aiplatform } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/schedules", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -942,6 +947,11 @@ func (c *scheduleRESTClient) DeleteSchedule(ctx context.Context, req *aiplatform } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1001,6 +1011,11 @@ func (c *scheduleRESTClient) GetSchedule(ctx context.Context, req *aiplatformpb. } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1070,6 +1085,7 @@ func (c *scheduleRESTClient) ListSchedules(ctx context.Context, req *aiplatformp baseUrl.Path += fmt.Sprintf("/v1beta1/%v/schedules", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1159,6 +1175,11 @@ func (c *scheduleRESTClient) PauseSchedule(ctx context.Context, req *aiplatformp } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:pause", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1209,6 +1230,11 @@ func (c *scheduleRESTClient) ResumeSchedule(ctx context.Context, req *aiplatform } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:resume", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1260,6 +1286,7 @@ func (c *scheduleRESTClient) UpdateSchedule(ctx context.Context, req *aiplatform baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetSchedule().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetUpdateMask() != nil { updateMask, err := protojson.Marshal(req.GetUpdateMask()) if err != nil { @@ -1325,6 +1352,11 @@ func (c *scheduleRESTClient) GetLocation(ctx context.Context, req *locationpb.Ge } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1394,6 +1426,7 @@ func (c *scheduleRESTClient) ListLocations(ctx context.Context, req *locationpb. baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1478,6 +1511,11 @@ func (c *scheduleRESTClient) GetIamPolicy(ctx context.Context, req *iampb.GetIam } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1543,6 +1581,11 @@ func (c *scheduleRESTClient) SetIamPolicy(ctx context.Context, req *iampb.SetIam } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1610,6 +1653,11 @@ func (c *scheduleRESTClient) TestIamPermissions(ctx context.Context, req *iampb. } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1665,6 +1713,11 @@ func (c *scheduleRESTClient) CancelOperation(ctx context.Context, req *longrunni } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1702,6 +1755,11 @@ func (c *scheduleRESTClient) DeleteOperation(ctx context.Context, req *longrunni } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1739,6 +1797,11 @@ func (c *scheduleRESTClient) GetOperation(ctx context.Context, req *longrunningp } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1808,6 +1871,7 @@ func (c *scheduleRESTClient) ListOperations(ctx context.Context, req *longrunnin baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1886,6 +1950,7 @@ func (c *scheduleRESTClient) WaitOperation(ctx context.Context, req *longrunning baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/specialist_pool_client.go b/aiplatform/apiv1beta1/specialist_pool_client.go index b07e294d6996..fad296c39b3d 100755 --- a/aiplatform/apiv1beta1/specialist_pool_client.go +++ b/aiplatform/apiv1beta1/specialist_pool_client.go @@ -876,6 +876,11 @@ func (c *specialistPoolRESTClient) CreateSpecialistPool(ctx context.Context, req } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/specialistPools", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -935,6 +940,11 @@ func (c *specialistPoolRESTClient) GetSpecialistPool(ctx context.Context, req *a } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1004,6 +1014,7 @@ func (c *specialistPoolRESTClient) ListSpecialistPools(ctx context.Context, req baseUrl.Path += fmt.Sprintf("/v1beta1/%v/specialistPools", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetPageSize() != 0 { params.Add("pageSize", fmt.Sprintf("%v", req.GetPageSize())) } @@ -1086,6 +1097,7 @@ func (c *specialistPoolRESTClient) DeleteSpecialistPool(ctx context.Context, req baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetForce() { params.Add("force", fmt.Sprintf("%v", req.GetForce())) } @@ -1159,6 +1171,7 @@ func (c *specialistPoolRESTClient) UpdateSpecialistPool(ctx context.Context, req baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetSpecialistPool().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetUpdateMask() != nil { updateMask, err := protojson.Marshal(req.GetUpdateMask()) if err != nil { @@ -1228,6 +1241,11 @@ func (c *specialistPoolRESTClient) GetLocation(ctx context.Context, req *locatio } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1297,6 +1315,7 @@ func (c *specialistPoolRESTClient) ListLocations(ctx context.Context, req *locat baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1381,6 +1400,11 @@ func (c *specialistPoolRESTClient) GetIamPolicy(ctx context.Context, req *iampb. } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1446,6 +1470,11 @@ func (c *specialistPoolRESTClient) SetIamPolicy(ctx context.Context, req *iampb. } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1513,6 +1542,11 @@ func (c *specialistPoolRESTClient) TestIamPermissions(ctx context.Context, req * } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1568,6 +1602,11 @@ func (c *specialistPoolRESTClient) CancelOperation(ctx context.Context, req *lon } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1605,6 +1644,11 @@ func (c *specialistPoolRESTClient) DeleteOperation(ctx context.Context, req *lon } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1642,6 +1686,11 @@ func (c *specialistPoolRESTClient) GetOperation(ctx context.Context, req *longru } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1711,6 +1760,7 @@ func (c *specialistPoolRESTClient) ListOperations(ctx context.Context, req *long baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1789,6 +1839,7 @@ func (c *specialistPoolRESTClient) WaitOperation(ctx context.Context, req *longr baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/tensorboard_client.go b/aiplatform/apiv1beta1/tensorboard_client.go index a4cbe94ce08e..c9f5e67b2480 100755 --- a/aiplatform/apiv1beta1/tensorboard_client.go +++ b/aiplatform/apiv1beta1/tensorboard_client.go @@ -1670,6 +1670,11 @@ func (c *tensorboardRESTClient) CreateTensorboard(ctx context.Context, req *aipl } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/tensorboards", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -1729,6 +1734,11 @@ func (c *tensorboardRESTClient) GetTensorboard(ctx context.Context, req *aiplatf } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1792,6 +1802,7 @@ func (c *tensorboardRESTClient) UpdateTensorboard(ctx context.Context, req *aipl baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetTensorboard().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetUpdateMask() != nil { updateMask, err := protojson.Marshal(req.GetUpdateMask()) if err != nil { @@ -1875,6 +1886,7 @@ func (c *tensorboardRESTClient) ListTensorboards(ctx context.Context, req *aipla baseUrl.Path += fmt.Sprintf("/v1beta1/%v/tensorboards", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1962,6 +1974,11 @@ func (c *tensorboardRESTClient) DeleteTensorboard(ctx context.Context, req *aipl } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2021,6 +2038,11 @@ func (c *tensorboardRESTClient) ReadTensorboardUsage(ctx context.Context, req *a } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:readUsage", req.GetTensorboard()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "tensorboard", url.QueryEscape(req.GetTensorboard()))} @@ -2076,6 +2098,11 @@ func (c *tensorboardRESTClient) ReadTensorboardSize(ctx context.Context, req *ai } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:readSize", req.GetTensorboard()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "tensorboard", url.QueryEscape(req.GetTensorboard()))} @@ -2139,6 +2166,7 @@ func (c *tensorboardRESTClient) CreateTensorboardExperiment(ctx context.Context, baseUrl.Path += fmt.Sprintf("/v1beta1/%v/experiments", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") params.Add("tensorboardExperimentId", fmt.Sprintf("%v", req.GetTensorboardExperimentId())) baseUrl.RawQuery = params.Encode() @@ -2198,6 +2226,11 @@ func (c *tensorboardRESTClient) GetTensorboardExperiment(ctx context.Context, re } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2261,6 +2294,7 @@ func (c *tensorboardRESTClient) UpdateTensorboardExperiment(ctx context.Context, baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetTensorboardExperiment().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetUpdateMask() != nil { updateMask, err := protojson.Marshal(req.GetUpdateMask()) if err != nil { @@ -2340,6 +2374,7 @@ func (c *tensorboardRESTClient) ListTensorboardExperiments(ctx context.Context, baseUrl.Path += fmt.Sprintf("/v1beta1/%v/experiments", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2427,6 +2462,11 @@ func (c *tensorboardRESTClient) DeleteTensorboardExperiment(ctx context.Context, } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2494,6 +2534,7 @@ func (c *tensorboardRESTClient) CreateTensorboardRun(ctx context.Context, req *a baseUrl.Path += fmt.Sprintf("/v1beta1/%v/runs", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") params.Add("tensorboardRunId", fmt.Sprintf("%v", req.GetTensorboardRunId())) baseUrl.RawQuery = params.Encode() @@ -2559,6 +2600,11 @@ func (c *tensorboardRESTClient) BatchCreateTensorboardRuns(ctx context.Context, } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/runs:batchCreate", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -2614,6 +2660,11 @@ func (c *tensorboardRESTClient) GetTensorboardRun(ctx context.Context, req *aipl } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2677,6 +2728,7 @@ func (c *tensorboardRESTClient) UpdateTensorboardRun(ctx context.Context, req *a baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetTensorboardRun().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetUpdateMask() != nil { updateMask, err := protojson.Marshal(req.GetUpdateMask()) if err != nil { @@ -2756,6 +2808,7 @@ func (c *tensorboardRESTClient) ListTensorboardRuns(ctx context.Context, req *ai baseUrl.Path += fmt.Sprintf("/v1beta1/%v/runs", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2843,6 +2896,11 @@ func (c *tensorboardRESTClient) DeleteTensorboardRun(ctx context.Context, req *a } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2908,6 +2966,11 @@ func (c *tensorboardRESTClient) BatchCreateTensorboardTimeSeries(ctx context.Con } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:batchCreate", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -2971,6 +3034,7 @@ func (c *tensorboardRESTClient) CreateTensorboardTimeSeries(ctx context.Context, baseUrl.Path += fmt.Sprintf("/v1beta1/%v/timeSeries", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTensorboardTimeSeriesId() != "" { params.Add("tensorboardTimeSeriesId", fmt.Sprintf("%v", req.GetTensorboardTimeSeriesId())) } @@ -3032,6 +3096,11 @@ func (c *tensorboardRESTClient) GetTensorboardTimeSeries(ctx context.Context, re } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -3095,6 +3164,7 @@ func (c *tensorboardRESTClient) UpdateTensorboardTimeSeries(ctx context.Context, baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetTensorboardTimeSeries().GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetUpdateMask() != nil { updateMask, err := protojson.Marshal(req.GetUpdateMask()) if err != nil { @@ -3174,6 +3244,7 @@ func (c *tensorboardRESTClient) ListTensorboardTimeSeries(ctx context.Context, r baseUrl.Path += fmt.Sprintf("/v1beta1/%v/timeSeries", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -3261,6 +3332,11 @@ func (c *tensorboardRESTClient) DeleteTensorboardTimeSeries(ctx context.Context, } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -3325,6 +3401,7 @@ func (c *tensorboardRESTClient) BatchReadTensorboardTimeSeriesData(ctx context.C baseUrl.Path += fmt.Sprintf("/v1beta1/%v:batchRead", req.GetTensorboard()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if items := req.GetTimeSeries(); len(items) > 0 { for _, item := range items { params.Add("timeSeries", fmt.Sprintf("%v", item)) @@ -3393,6 +3470,7 @@ func (c *tensorboardRESTClient) ReadTensorboardTimeSeriesData(ctx context.Contex baseUrl.Path += fmt.Sprintf("/v1beta1/%v:read", req.GetTensorboardTimeSeries()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -3461,6 +3539,7 @@ func (c *tensorboardRESTClient) ReadTensorboardBlobData(ctx context.Context, req baseUrl.Path += fmt.Sprintf("/v1beta1/%v:readBlobData", req.GetTimeSeries()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if items := req.GetBlobIds(); len(items) > 0 { for _, item := range items { params.Add("blobIds", fmt.Sprintf("%v", item)) @@ -3571,6 +3650,11 @@ func (c *tensorboardRESTClient) WriteTensorboardExperimentData(ctx context.Conte } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:write", req.GetTensorboardExperiment()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "tensorboard_experiment", url.QueryEscape(req.GetTensorboardExperiment()))} @@ -3633,6 +3717,11 @@ func (c *tensorboardRESTClient) WriteTensorboardRunData(ctx context.Context, req } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:write", req.GetTensorboardRun()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "tensorboard_run", url.QueryEscape(req.GetTensorboardRun()))} @@ -3708,6 +3797,11 @@ func (c *tensorboardRESTClient) ExportTensorboardTimeSeriesData(ctx context.Cont } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:exportTensorboardTimeSeries", req.GetTensorboardTimeSeries()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := append(c.xGoogHeaders, "Content-Type", "application/json") headers := gax.BuildHeaders(ctx, hds...) @@ -3773,6 +3867,11 @@ func (c *tensorboardRESTClient) GetLocation(ctx context.Context, req *locationpb } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -3842,6 +3941,7 @@ func (c *tensorboardRESTClient) ListLocations(ctx context.Context, req *location baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -3926,6 +4026,11 @@ func (c *tensorboardRESTClient) GetIamPolicy(ctx context.Context, req *iampb.Get } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -3991,6 +4096,11 @@ func (c *tensorboardRESTClient) SetIamPolicy(ctx context.Context, req *iampb.Set } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -4058,6 +4168,11 @@ func (c *tensorboardRESTClient) TestIamPermissions(ctx context.Context, req *iam } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -4113,6 +4228,11 @@ func (c *tensorboardRESTClient) CancelOperation(ctx context.Context, req *longru } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -4150,6 +4270,11 @@ func (c *tensorboardRESTClient) DeleteOperation(ctx context.Context, req *longru } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -4187,6 +4312,11 @@ func (c *tensorboardRESTClient) GetOperation(ctx context.Context, req *longrunni } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -4256,6 +4386,7 @@ func (c *tensorboardRESTClient) ListOperations(ctx context.Context, req *longrun baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -4334,6 +4465,7 @@ func (c *tensorboardRESTClient) WaitOperation(ctx context.Context, req *longrunn baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/vertex_rag_client.go b/aiplatform/apiv1beta1/vertex_rag_client.go index f6e290060784..94eb1b0f5560 100755 --- a/aiplatform/apiv1beta1/vertex_rag_client.go +++ b/aiplatform/apiv1beta1/vertex_rag_client.go @@ -638,6 +638,11 @@ func (c *vertexRagRESTClient) RetrieveContexts(ctx context.Context, req *aiplatf } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:retrieveContexts", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -693,6 +698,11 @@ func (c *vertexRagRESTClient) GetLocation(ctx context.Context, req *locationpb.G } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -762,6 +772,7 @@ func (c *vertexRagRESTClient) ListLocations(ctx context.Context, req *locationpb baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -846,6 +857,11 @@ func (c *vertexRagRESTClient) GetIamPolicy(ctx context.Context, req *iampb.GetIa } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -911,6 +927,11 @@ func (c *vertexRagRESTClient) SetIamPolicy(ctx context.Context, req *iampb.SetIa } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -978,6 +999,11 @@ func (c *vertexRagRESTClient) TestIamPermissions(ctx context.Context, req *iampb } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1033,6 +1059,11 @@ func (c *vertexRagRESTClient) CancelOperation(ctx context.Context, req *longrunn } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1070,6 +1101,11 @@ func (c *vertexRagRESTClient) DeleteOperation(ctx context.Context, req *longrunn } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1107,6 +1143,11 @@ func (c *vertexRagRESTClient) GetOperation(ctx context.Context, req *longrunning } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1176,6 +1217,7 @@ func (c *vertexRagRESTClient) ListOperations(ctx context.Context, req *longrunni baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1254,6 +1296,7 @@ func (c *vertexRagRESTClient) WaitOperation(ctx context.Context, req *longrunnin baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/vertex_rag_data_client.go b/aiplatform/apiv1beta1/vertex_rag_data_client.go index eee1dceda165..3fc1f1b3a104 100755 --- a/aiplatform/apiv1beta1/vertex_rag_data_client.go +++ b/aiplatform/apiv1beta1/vertex_rag_data_client.go @@ -985,6 +985,11 @@ func (c *vertexRagDataRESTClient) CreateRagCorpus(ctx context.Context, req *aipl } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/ragCorpora", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -1044,6 +1049,11 @@ func (c *vertexRagDataRESTClient) GetRagCorpus(ctx context.Context, req *aiplatf } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1113,6 +1123,7 @@ func (c *vertexRagDataRESTClient) ListRagCorpora(ctx context.Context, req *aipla baseUrl.Path += fmt.Sprintf("/v1beta1/%v/ragCorpora", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetPageSize() != 0 { params.Add("pageSize", fmt.Sprintf("%v", req.GetPageSize())) } @@ -1188,6 +1199,7 @@ func (c *vertexRagDataRESTClient) DeleteRagCorpus(ctx context.Context, req *aipl baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetForce() { params.Add("force", fmt.Sprintf("%v", req.GetForce())) } @@ -1259,6 +1271,11 @@ func (c *vertexRagDataRESTClient) UploadRagFile(ctx context.Context, req *aiplat } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/ragFiles:upload", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -1320,6 +1337,11 @@ func (c *vertexRagDataRESTClient) ImportRagFiles(ctx context.Context, req *aipla } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/ragFiles:import", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -1379,6 +1401,11 @@ func (c *vertexRagDataRESTClient) GetRagFile(ctx context.Context, req *aiplatfor } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1448,6 +1475,7 @@ func (c *vertexRagDataRESTClient) ListRagFiles(ctx context.Context, req *aiplatf baseUrl.Path += fmt.Sprintf("/v1beta1/%v/ragFiles", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetPageSize() != 0 { params.Add("pageSize", fmt.Sprintf("%v", req.GetPageSize())) } @@ -1522,6 +1550,11 @@ func (c *vertexRagDataRESTClient) DeleteRagFile(ctx context.Context, req *aiplat } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1581,6 +1614,11 @@ func (c *vertexRagDataRESTClient) GetLocation(ctx context.Context, req *location } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1650,6 +1688,7 @@ func (c *vertexRagDataRESTClient) ListLocations(ctx context.Context, req *locati baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -1734,6 +1773,11 @@ func (c *vertexRagDataRESTClient) GetIamPolicy(ctx context.Context, req *iampb.G } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1799,6 +1843,11 @@ func (c *vertexRagDataRESTClient) SetIamPolicy(ctx context.Context, req *iampb.S } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1866,6 +1915,11 @@ func (c *vertexRagDataRESTClient) TestIamPermissions(ctx context.Context, req *i } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -1921,6 +1975,11 @@ func (c *vertexRagDataRESTClient) CancelOperation(ctx context.Context, req *long } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1958,6 +2017,11 @@ func (c *vertexRagDataRESTClient) DeleteOperation(ctx context.Context, req *long } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1995,6 +2059,11 @@ func (c *vertexRagDataRESTClient) GetOperation(ctx context.Context, req *longrun } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2064,6 +2133,7 @@ func (c *vertexRagDataRESTClient) ListOperations(ctx context.Context, req *longr baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2142,6 +2212,7 @@ func (c *vertexRagDataRESTClient) WaitOperation(ctx context.Context, req *longru baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil { diff --git a/aiplatform/apiv1beta1/vizier_client.go b/aiplatform/apiv1beta1/vizier_client.go index ae7cc7a4b064..bd18e6373f82 100755 --- a/aiplatform/apiv1beta1/vizier_client.go +++ b/aiplatform/apiv1beta1/vizier_client.go @@ -1209,6 +1209,11 @@ func (c *vizierRESTClient) CreateStudy(ctx context.Context, req *aiplatformpb.Cr } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/studies", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -1264,6 +1269,11 @@ func (c *vizierRESTClient) GetStudy(ctx context.Context, req *aiplatformpb.GetSt } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1333,6 +1343,7 @@ func (c *vizierRESTClient) ListStudies(ctx context.Context, req *aiplatformpb.Li baseUrl.Path += fmt.Sprintf("/v1beta1/%v/studies", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetPageSize() != 0 { params.Add("pageSize", fmt.Sprintf("%v", req.GetPageSize())) } @@ -1407,6 +1418,11 @@ func (c *vizierRESTClient) DeleteStudy(ctx context.Context, req *aiplatformpb.De } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1451,6 +1467,11 @@ func (c *vizierRESTClient) LookupStudy(ctx context.Context, req *aiplatformpb.Lo } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/studies:lookup", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -1517,6 +1538,11 @@ func (c *vizierRESTClient) SuggestTrials(ctx context.Context, req *aiplatformpb. } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/trials:suggest", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -1583,6 +1609,11 @@ func (c *vizierRESTClient) CreateTrial(ctx context.Context, req *aiplatformpb.Cr } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/trials", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -1638,6 +1669,11 @@ func (c *vizierRESTClient) GetTrial(ctx context.Context, req *aiplatformpb.GetTr } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1707,6 +1743,7 @@ func (c *vizierRESTClient) ListTrials(ctx context.Context, req *aiplatformpb.Lis baseUrl.Path += fmt.Sprintf("/v1beta1/%v/trials", req.GetParent()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetPageSize() != 0 { params.Add("pageSize", fmt.Sprintf("%v", req.GetPageSize())) } @@ -1788,6 +1825,11 @@ func (c *vizierRESTClient) AddTrialMeasurement(ctx context.Context, req *aiplatf } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:addTrialMeasurement", req.GetTrialName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "trial_name", url.QueryEscape(req.GetTrialName()))} @@ -1849,6 +1891,11 @@ func (c *vizierRESTClient) CompleteTrial(ctx context.Context, req *aiplatformpb. } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:complete", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1904,6 +1951,11 @@ func (c *vizierRESTClient) DeleteTrial(ctx context.Context, req *aiplatformpb.De } baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -1950,6 +2002,11 @@ func (c *vizierRESTClient) CheckTrialEarlyStoppingState(ctx context.Context, req } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:checkTrialEarlyStoppingState", req.GetTrialName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "trial_name", url.QueryEscape(req.GetTrialName()))} @@ -2015,6 +2072,11 @@ func (c *vizierRESTClient) StopTrial(ctx context.Context, req *aiplatformpb.Stop } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:stop", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2079,6 +2141,11 @@ func (c *vizierRESTClient) ListOptimalTrials(ctx context.Context, req *aiplatfor } baseUrl.Path += fmt.Sprintf("/v1beta1/%v/trials:listOptimalTrials", req.GetParent()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))} @@ -2134,6 +2201,11 @@ func (c *vizierRESTClient) GetLocation(ctx context.Context, req *locationpb.GetL } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2203,6 +2275,7 @@ func (c *vizierRESTClient) ListLocations(ctx context.Context, req *locationpb.Li baseUrl.Path += fmt.Sprintf("/ui/%v/locations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2287,6 +2360,11 @@ func (c *vizierRESTClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPo } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:getIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -2352,6 +2430,11 @@ func (c *vizierRESTClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPo } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:setIamPolicy", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -2419,6 +2502,11 @@ func (c *vizierRESTClient) TestIamPermissions(ctx context.Context, req *iampb.Te } baseUrl.Path += fmt.Sprintf("/v1beta1/%v:testIamPermissions", req.GetResource()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "resource", url.QueryEscape(req.GetResource()))} @@ -2474,6 +2562,11 @@ func (c *vizierRESTClient) CancelOperation(ctx context.Context, req *longrunning } baseUrl.Path += fmt.Sprintf("/ui/%v:cancel", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2511,6 +2604,11 @@ func (c *vizierRESTClient) DeleteOperation(ctx context.Context, req *longrunning } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2548,6 +2646,11 @@ func (c *vizierRESTClient) GetOperation(ctx context.Context, req *longrunningpb. } baseUrl.Path += fmt.Sprintf("/ui/%v", req.GetName()) + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + // Build HTTP headers from client and context metadata. hds := []string{"x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))} @@ -2617,6 +2720,7 @@ func (c *vizierRESTClient) ListOperations(ctx context.Context, req *longrunningp baseUrl.Path += fmt.Sprintf("/ui/%v/operations", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } @@ -2695,6 +2799,7 @@ func (c *vizierRESTClient) WaitOperation(ctx context.Context, req *longrunningpb baseUrl.Path += fmt.Sprintf("/ui/%v:wait", req.GetName()) params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") if req.GetTimeout() != nil { timeout, err := protojson.Marshal(req.GetTimeout()) if err != nil {