diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index 43aa08ef1bf..f7cfdc0b0db 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -3217,7 +3217,7 @@ ], "parameters": { "filter": { - "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `endpoint` supports = and !=. `endpoint` represents the Endpoint ID, i.e. the last segment of the Endpoint's resource name. * `display_name` supports = and, != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `endpoint=1` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`", + "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `endpoint` supports = and !=. `endpoint` represents the Endpoint ID, i.e. the last segment of the Endpoint's resource name. * `display_name` supports = and, != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. * `base_model_name` only supports = Some examples: * `endpoint=1` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"` * `baseModelName=\"text-bison\"`", "location": "query", "type": "string" }, @@ -10036,7 +10036,7 @@ ], "parameters": { "filter": { - "description": "An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `model` supports = and !=. `model` represents the Model ID, i.e. the last segment of the Model's resource name. * `display_name` supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `model=1234` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`", + "description": "An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `model` supports = and !=. `model` represents the Model ID, i.e. the last segment of the Model's resource name. * `display_name` supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. * `base_model_name` only supports = Some examples: * `model=1234` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"` * `baseModelName=\"text-bison\"`", "location": "query", "type": "string" }, @@ -15557,6 +15557,64 @@ } } } + }, + "tuningJobs": { + "resources": { + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tuningJobs/{tuningJobsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.tuningJobs.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tuningJobs/{tuningJobsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.tuningJobs.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } } } } @@ -15618,7 +15676,7 @@ } } }, - "revision": "20240229", + "revision": "20240301", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionEmbedVideoResponse": { @@ -16237,6 +16295,10 @@ "description": "A single part of a message.", "id": "CloudAiNlLlmProtoServicePart", "properties": { + "documentMetadata": { + "$ref": "CloudAiNlLlmProtoServicePartDocumentMetadata", + "description": "Document metadata. The metadata should only be used by the Cloud LLM when supporting document mime types. It will only be populated when this image input part is converted from a document input part." + }, "fileData": { "$ref": "CloudAiNlLlmProtoServicePartFileData", "description": "URI-based data." @@ -16284,6 +16346,22 @@ }, "type": "object" }, + "CloudAiNlLlmProtoServicePartDocumentMetadata": { + "description": "Metadata describes the original input document content.", + "id": "CloudAiNlLlmProtoServicePartDocumentMetadata", + "properties": { + "originalDocumentBlob": { + "$ref": "CloudAiNlLlmProtoServicePartBlob", + "description": "The original document blob." + }, + "pageNumber": { + "description": "The (1-indexed) page number of the image in the original document. The first page carries the original document content and mime type.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "CloudAiNlLlmProtoServicePartFileData": { "description": "Represents file data.", "id": "CloudAiNlLlmProtoServicePartFileData", @@ -16429,6 +16507,13 @@ "description": "Whether the category is flagged as being present. Currently, this is set to true if score \u003e= 0.5.", "type": "boolean" }, + "influentialTerms": { + "description": "The influential terms that could potentially block the response.", + "items": { + "$ref": "CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm" + }, + "type": "array" + }, "raiCategory": { "description": "The RAI category.", "enum": [ @@ -16517,6 +16602,41 @@ }, "type": "object" }, + "CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm": { + "description": "The influential term that could potentially block the response.", + "id": "CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm", + "properties": { + "beginOffset": { + "description": "The beginning offset of the influential term.", + "format": "int32", + "type": "integer" + }, + "confidence": { + "description": "The confidence score of the influential term.", + "format": "float", + "type": "number" + }, + "source": { + "description": "The source of the influential term, prompt or response.", + "enum": [ + "SOURCE_UNSPECIFIED", + "PROMPT", + "RESPONSE" + ], + "enumDescriptions": [ + "Unspecified source.", + "The influential term comes from the prompt.", + "The influential term comes from the response." + ], + "type": "string" + }, + "term": { + "description": "The influential term.", + "type": "string" + } + }, + "type": "object" + }, "CloudAiNlLlmProtoServiceSafetyRating": { "description": "Safety rating corresponding to the generated content.", "id": "CloudAiNlLlmProtoServiceSafetyRating", @@ -17827,7 +17947,10 @@ "MAX_TOKENS", "SAFETY", "RECITATION", - "OTHER" + "OTHER", + "BLOCKLIST", + "PROHIBITED_CONTENT", + "SPII" ], "enumDescriptions": [ "The finish reason is unspecified.", @@ -17835,7 +17958,10 @@ "The maximum number of tokens as specified in the request was reached.", "The token generation was stopped as the response was flagged for safety reasons. NOTE: When streaming the Candidate.content will be empty if content filters blocked the output.", "The token generation was stopped as the response was flagged for unauthorized citations.", - "All other reasons that stopped the token generation" + "All other reasons that stopped the token generation", + "The token generation was stopped as the response was flagged for the terms which are included from the terminology blocklist.", + "The token generation was stopped as the response was flagged for the prohibited contents.", + "The token generation was stopped as the response was flagged for Sensitive Personally Identifiable Information (SPII) contents." ], "readOnly": true, "type": "string" @@ -21798,7 +21924,7 @@ "type": "object" }, "GoogleCloudAiplatformV1FindNeighborsRequest": { - "description": "The request message for MatchService.FindNeighbors.", + "description": "LINT.IfChange The request message for MatchService.FindNeighbors.", "id": "GoogleCloudAiplatformV1FindNeighborsRequest", "properties": { "deployedIndexId": { @@ -22067,12 +22193,16 @@ "enum": [ "BLOCKED_REASON_UNSPECIFIED", "SAFETY", - "OTHER" + "OTHER", + "BLOCKLIST", + "PROHIBITED_CONTENT" ], "enumDescriptions": [ "Unspecified blocked reason.", "Candidates blocked due to safety.", - "Candidates blocked due to other reason." + "Candidates blocked due to other reason.", + "Candidates blocked due to the terms which are included from the terminology blocklist.", + "Candidates blocked due to prohibited content." ], "readOnly": true, "type": "string" @@ -27240,7 +27370,6 @@ "description": "Optional. Indicates the launch stage of the model.", "enum": [ "LAUNCH_STAGE_UNSPECIFIED", - "DOGFOOD", "EXPERIMENTAL", "PRIVATE_PREVIEW", "PUBLIC_PREVIEW", @@ -27248,7 +27377,6 @@ ], "enumDescriptions": [ "The model launch stage is unspecified.", - "Used to indicate the PublisherModel is at Google internal testing launch stage.", "Used to indicate the PublisherModel is at Experimental launch stage, available to a small set of customers.", "Used to indicate the PublisherModel is at Private Preview launch stage, only available to a small set of customers, although a larger set of customers than an Experimental launch. Previews are the first launch stage used to get feedback from customers.", "Used to indicate the PublisherModel is at Public Preview launch stage, available to all customers, although not supported for production workloads.", @@ -38113,6 +38241,7 @@ "C", "DART", "GRADLE", + "GROOVY", "JAVADOC", "JSON", "MAKEFILE", @@ -38140,6 +38269,7 @@ "C code.", "Dart code.", "Gradle code.", + "Groovy code.", "API documentation.", "JSON code.", "Makefile code.", diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index 1a02ca85ab1..713df7dd61f 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -209,6 +209,7 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs.Studies = NewProjectsLocationsStudiesService(s) rs.Tensorboards = NewProjectsLocationsTensorboardsService(s) rs.TrainingPipelines = NewProjectsLocationsTrainingPipelinesService(s) + rs.TuningJobs = NewProjectsLocationsTuningJobsService(s) return rs } @@ -268,6 +269,8 @@ type ProjectsLocationsService struct { Tensorboards *ProjectsLocationsTensorboardsService TrainingPipelines *ProjectsLocationsTrainingPipelinesService + + TuningJobs *ProjectsLocationsTuningJobsService } func NewProjectsLocationsBatchPredictionJobsService(s *Service) *ProjectsLocationsBatchPredictionJobsService { @@ -1221,6 +1224,27 @@ type ProjectsLocationsTrainingPipelinesOperationsService struct { s *Service } +func NewProjectsLocationsTuningJobsService(s *Service) *ProjectsLocationsTuningJobsService { + rs := &ProjectsLocationsTuningJobsService{s: s} + rs.Operations = NewProjectsLocationsTuningJobsOperationsService(s) + return rs +} + +type ProjectsLocationsTuningJobsService struct { + s *Service + + Operations *ProjectsLocationsTuningJobsOperationsService +} + +func NewProjectsLocationsTuningJobsOperationsService(s *Service) *ProjectsLocationsTuningJobsOperationsService { + rs := &ProjectsLocationsTuningJobsOperationsService{s: s} + return rs +} + +type ProjectsLocationsTuningJobsOperationsService struct { + s *Service +} + func NewPublishersService(s *Service) *PublishersService { rs := &PublishersService{s: s} rs.Models = NewPublishersModelsService(s) @@ -2197,6 +2221,12 @@ func (s *CloudAiNlLlmProtoServiceMessageMetadata) MarshalJSON() ([]byte, error) // CloudAiNlLlmProtoServicePart: A single part of a message. type CloudAiNlLlmProtoServicePart struct { + // DocumentMetadata: Document metadata. The metadata should only be used + // by the Cloud LLM when supporting document mime types. It will only be + // populated when this image input part is converted from a document + // input part. + DocumentMetadata *CloudAiNlLlmProtoServicePartDocumentMetadata `json:"documentMetadata,omitempty"` + // FileData: URI-based data. FileData *CloudAiNlLlmProtoServicePartFileData `json:"fileData,omitempty"` @@ -2216,7 +2246,7 @@ type CloudAiNlLlmProtoServicePart struct { // while the video data is presented in inline_data or file_data. VideoMetadata *CloudAiNlLlmProtoServicePartVideoMetadata `json:"videoMetadata,omitempty"` - // ForceSendFields is a list of field names (e.g. "FileData") to + // ForceSendFields is a list of field names (e.g. "DocumentMetadata") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2224,12 +2254,13 @@ type CloudAiNlLlmProtoServicePart struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FileData") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DocumentMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -2274,6 +2305,42 @@ func (s *CloudAiNlLlmProtoServicePartBlob) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CloudAiNlLlmProtoServicePartDocumentMetadata: Metadata describes the +// original input document content. +type CloudAiNlLlmProtoServicePartDocumentMetadata struct { + // OriginalDocumentBlob: The original document blob. + OriginalDocumentBlob *CloudAiNlLlmProtoServicePartBlob `json:"originalDocumentBlob,omitempty"` + + // PageNumber: The (1-indexed) page number of the image in the original + // document. The first page carries the original document content and + // mime type. + PageNumber int64 `json:"pageNumber,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "OriginalDocumentBlob") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "OriginalDocumentBlob") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CloudAiNlLlmProtoServicePartDocumentMetadata) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiNlLlmProtoServicePartDocumentMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CloudAiNlLlmProtoServicePartFileData: Represents file data. type CloudAiNlLlmProtoServicePartFileData struct { // FileUri: Inline data. @@ -2461,6 +2528,10 @@ type CloudAiNlLlmProtoServiceRaiSignal struct { // this is set to true if score >= 0.5. Flagged bool `json:"flagged,omitempty"` + // InfluentialTerms: The influential terms that could potentially block + // the response. + InfluentialTerms []*CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm `json:"influentialTerms,omitempty"` + // RaiCategory: The RAI category. // // Possible values: @@ -2542,6 +2613,63 @@ func (s *CloudAiNlLlmProtoServiceRaiSignal) UnmarshalJSON(data []byte) error { return nil } +// CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm: The influential +// term that could potentially block the response. +type CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm struct { + // BeginOffset: The beginning offset of the influential term. + BeginOffset int64 `json:"beginOffset,omitempty"` + + // Confidence: The confidence score of the influential term. + Confidence float64 `json:"confidence,omitempty"` + + // Source: The source of the influential term, prompt or response. + // + // Possible values: + // "SOURCE_UNSPECIFIED" - Unspecified source. + // "PROMPT" - The influential term comes from the prompt. + // "RESPONSE" - The influential term comes from the response. + Source string `json:"source,omitempty"` + + // Term: The influential term. + Term string `json:"term,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BeginOffset") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BeginOffset") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm) UnmarshalJSON(data []byte) error { + type NoMethod CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm + var s1 struct { + Confidence gensupport.JSONFloat64 `json:"confidence"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Confidence = float64(s1.Confidence) + return nil +} + // CloudAiNlLlmProtoServiceSafetyRating: Safety rating corresponding to // the generated content. type CloudAiNlLlmProtoServiceSafetyRating struct { @@ -4999,6 +5127,14 @@ type GoogleCloudAiplatformV1Candidate struct { // "RECITATION" - The token generation was stopped as the response was // flagged for unauthorized citations. // "OTHER" - All other reasons that stopped the token generation + // "BLOCKLIST" - The token generation was stopped as the response was + // flagged for the terms which are included from the terminology + // blocklist. + // "PROHIBITED_CONTENT" - The token generation was stopped as the + // response was flagged for the prohibited contents. + // "SPII" - The token generation was stopped as the response was + // flagged for Sensitive Personally Identifiable Information (SPII) + // contents. FinishReason string `json:"finishReason,omitempty"` // GroundingMetadata: Output only. Metadata specifies sources used to @@ -12508,8 +12644,8 @@ func (s *GoogleCloudAiplatformV1FilterSplit) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1FindNeighborsRequest: The request message for -// MatchService.FindNeighbors. +// GoogleCloudAiplatformV1FindNeighborsRequest: LINT.IfChange The +// request message for MatchService.FindNeighbors. type GoogleCloudAiplatformV1FindNeighborsRequest struct { // DeployedIndexId: The ID of the DeployedIndex that will serve the // request. This request is sent to a specific IndexEndpoint, as per the @@ -13086,6 +13222,10 @@ type GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback struct { // "BLOCKED_REASON_UNSPECIFIED" - Unspecified blocked reason. // "SAFETY" - Candidates blocked due to safety. // "OTHER" - Candidates blocked due to other reason. + // "BLOCKLIST" - Candidates blocked due to the terms which are + // included from the terminology blocklist. + // "PROHIBITED_CONTENT" - Candidates blocked due to prohibited + // content. BlockReason string `json:"blockReason,omitempty"` // BlockReasonMessage: Output only. A readable block reason message. @@ -22097,8 +22237,6 @@ type GoogleCloudAiplatformV1PublisherModel struct { // // Possible values: // "LAUNCH_STAGE_UNSPECIFIED" - The model launch stage is unspecified. - // "DOGFOOD" - Used to indicate the PublisherModel is at Google - // internal testing launch stage. // "EXPERIMENTAL" - Used to indicate the PublisherModel is at // Experimental launch stage, available to a small set of customers. // "PRIVATE_PREVIEW" - Used to indicate the PublisherModel is at @@ -39823,6 +39961,7 @@ type LearningGenaiRootCodeyChatMetadata struct { // "C" - C code. // "DART" - Dart code. // "GRADLE" - Gradle code. + // "GROOVY" - Groovy code. // "JAVADOC" - API documentation. // "JSON" - JSON code. // "MAKEFILE" - Makefile code. @@ -56640,9 +56779,10 @@ func (r *ProjectsLocationsEndpointsService) List(parent string) *ProjectsLocatio // Endpoint's resource name. * `display_name` supports = and, != * // `labels` supports general map functions that is: * `labels.key=value` // - key:value equality * `labels.key:* or labels:key - key existence * -// A key including a space must be quoted. `labels."a key". Some -// examples: * `endpoint=1` * `displayName="myDisplayName" * -// `labels.myKey="myValue" +// A key including a space must be quoted. `labels."a key". * +// `base_model_name` only supports = Some examples: * `endpoint=1` * +// `displayName="myDisplayName" * `labels.myKey="myValue" * +// `baseModelName="text-bison" func (c *ProjectsLocationsEndpointsListCall) Filter(filter string) *ProjectsLocationsEndpointsListCall { c.urlParams_.Set("filter", filter) return c @@ -56791,7 +56931,7 @@ func (c *ProjectsLocationsEndpointsListCall) Do(opts ...googleapi.CallOption) (* // ], // "parameters": { // "filter": { - // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `endpoint` supports = and !=. `endpoint` represents the Endpoint ID, i.e. the last segment of the Endpoint's resource name. * `display_name` supports = and, != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `endpoint=1` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`", + // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `endpoint` supports = and !=. `endpoint` represents the Endpoint ID, i.e. the last segment of the Endpoint's resource name. * `display_name` supports = and, != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. * `base_model_name` only supports = Some examples: * `endpoint=1` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"` * `baseModelName=\"text-bison\"`", // "location": "query", // "type": "string" // }, @@ -91535,9 +91675,10 @@ func (r *ProjectsLocationsModelsService) List(parent string) *ProjectsLocationsM // resource name. * `display_name` supports = and != * `labels` supports // general map functions that is: * `labels.key=value` - key:value // equality * `labels.key:* or labels:key - key existence * A key -// including a space must be quoted. `labels."a key". Some examples: * -// `model=1234` * `displayName="myDisplayName" * -// `labels.myKey="myValue" +// including a space must be quoted. `labels."a key". * +// `base_model_name` only supports = Some examples: * `model=1234` * +// `displayName="myDisplayName" * `labels.myKey="myValue" * +// `baseModelName="text-bison" func (c *ProjectsLocationsModelsListCall) Filter(filter string) *ProjectsLocationsModelsListCall { c.urlParams_.Set("filter", filter) return c @@ -91685,7 +91826,7 @@ func (c *ProjectsLocationsModelsListCall) Do(opts ...googleapi.CallOption) (*Goo // ], // "parameters": { // "filter": { - // "description": "An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `model` supports = and !=. `model` represents the Model ID, i.e. the last segment of the Model's resource name. * `display_name` supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `model=1234` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`", + // "description": "An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `model` supports = and !=. `model` represents the Model ID, i.e. the last segment of the Model's resource name. * `display_name` supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. * `base_model_name` only supports = Some examples: * `model=1234` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"` * `baseModelName=\"text-bison\"`", // "location": "query", // "type": "string" // }, @@ -119748,6 +119889,295 @@ func (c *ProjectsLocationsTrainingPipelinesOperationsWaitCall) Do(opts ...google } +// method id "aiplatform.projects.locations.tuningJobs.operations.cancel": + +type ProjectsLocationsTuningJobsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. +// +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsTuningJobsOperationsService) Cancel(name string) *ProjectsLocationsTuningJobsOperationsCancelCall { + c := &ProjectsLocationsTuningJobsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsTuningJobsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsTuningJobsOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsTuningJobsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsTuningJobsOperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsTuningJobsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTuningJobsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.tuningJobs.operations.cancel" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsTuningJobsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tuningJobs/{tuningJobsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.tuningJobs.operations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be cancelled.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:cancel", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.tuningJobs.operations.get": + +type ProjectsLocationsTuningJobsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +// +// - name: The name of the operation resource. +func (r *ProjectsLocationsTuningJobsOperationsService) Get(name string) *ProjectsLocationsTuningJobsOperationsGetCall { + c := &ProjectsLocationsTuningJobsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsTuningJobsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTuningJobsOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsTuningJobsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsTuningJobsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsTuningJobsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsTuningJobsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsTuningJobsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTuningJobsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.tuningJobs.operations.get" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsTuningJobsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tuningJobs/{tuningJobsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.tuningJobs.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "aiplatform.publishers.models.get": type PublishersModelsGetCall struct { diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index 372ad6fc405..b6692359938 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -990,7 +990,7 @@ } } }, - "revision": "20240305", + "revision": "20240310", "rootUrl": "https://chat.googleapis.com/", "schemas": { "ActionParameter": { @@ -1111,6 +1111,10 @@ "format": "int32", "type": "integer" }, + "richLinkMetadata": { + "$ref": "RichLinkMetadata", + "description": "The metadata for a rich link." + }, "slashCommand": { "$ref": "SlashCommandMetadata", "description": "The metadata for a slash command." @@ -1125,12 +1129,14 @@ "enum": [ "ANNOTATION_TYPE_UNSPECIFIED", "USER_MENTION", - "SLASH_COMMAND" + "SLASH_COMMAND", + "RICH_LINK" ], "enumDescriptions": [ "Default value for the enum. Don't use.", "A user is mentioned.", - "A slash command is invoked." + "A slash command is invoked.", + "A rich link annotation." ], "type": "string" }, @@ -1673,6 +1679,21 @@ }, "type": "object" }, + "DriveLinkData": { + "description": "Data for Google Drive links.", + "id": "DriveLinkData", + "properties": { + "driveDataRef": { + "$ref": "DriveDataRef", + "description": "A [DriveDataRef](https://developers.google.com/chat/api/reference/rest/v1/spaces.messages.attachments#drivedataref) which references a Google Drive file." + }, + "mimeType": { + "description": "The mime type of the linked Google Drive resource.", + "type": "string" + } + }, + "type": "object" + }, "Emoji": { "description": "An emoji that is used as a reaction to a message.", "id": "Emoji", @@ -3372,6 +3393,33 @@ }, "type": "object" }, + "RichLinkMetadata": { + "description": "A rich link to a resource.", + "id": "RichLinkMetadata", + "properties": { + "driveLinkData": { + "$ref": "DriveLinkData", + "description": "Data for a drive link." + }, + "richLinkType": { + "description": "The rich link type.", + "enum": [ + "RICH_LINK_TYPE_UNSPECIFIED", + "DRIVE_FILE" + ], + "enumDescriptions": [ + "Default value for the enum. Don't use.", + "A Google Drive rich link type." + ], + "type": "string" + }, + "uri": { + "description": "The URI of this link.", + "type": "string" + } + }, + "type": "object" + }, "Section": { "description": "A section contains a collection of widgets that are rendered (vertically) in the order that they are specified. Across all platforms, cards have a narrow fixed width, so there's currently no need for layout properties (for example, float).", "id": "Section", diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 1518e7c6f03..29f9942ddec 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -517,6 +517,9 @@ type Annotation struct { // annotation corresponds to. Length int64 `json:"length,omitempty"` + // RichLinkMetadata: The metadata for a rich link. + RichLinkMetadata *RichLinkMetadata `json:"richLinkMetadata,omitempty"` + // SlashCommand: The metadata for a slash command. SlashCommand *SlashCommandMetadata `json:"slashCommand,omitempty"` @@ -531,6 +534,7 @@ type Annotation struct { // use. // "USER_MENTION" - A user is mentioned. // "SLASH_COMMAND" - A slash command is invoked. + // "RICH_LINK" - A rich link annotation. Type string `json:"type,omitempty"` // UserMention: The metadata of user mention. @@ -1535,6 +1539,39 @@ func (s *DriveDataRef) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DriveLinkData: Data for Google Drive links. +type DriveLinkData struct { + // DriveDataRef: A DriveDataRef + // (https://developers.google.com/chat/api/reference/rest/v1/spaces.messages.attachments#drivedataref) + // which references a Google Drive file. + DriveDataRef *DriveDataRef `json:"driveDataRef,omitempty"` + + // MimeType: The mime type of the linked Google Drive resource. + MimeType string `json:"mimeType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DriveDataRef") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DriveDataRef") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DriveLinkData) MarshalJSON() ([]byte, error) { + type NoMethod DriveLinkData + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Emoji: An emoji that is used as a reaction to a message. type Emoji struct { // CustomEmoji: Output only. A custom emoji. @@ -4550,6 +4587,45 @@ func (s *Reaction) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// RichLinkMetadata: A rich link to a resource. +type RichLinkMetadata struct { + // DriveLinkData: Data for a drive link. + DriveLinkData *DriveLinkData `json:"driveLinkData,omitempty"` + + // RichLinkType: The rich link type. + // + // Possible values: + // "RICH_LINK_TYPE_UNSPECIFIED" - Default value for the enum. Don't + // use. + // "DRIVE_FILE" - A Google Drive rich link type. + RichLinkType string `json:"richLinkType,omitempty"` + + // Uri: The URI of this link. + Uri string `json:"uri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DriveLinkData") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DriveLinkData") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RichLinkMetadata) MarshalJSON() ([]byte, error) { + type NoMethod RichLinkMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Section: A section contains a collection of widgets that are rendered // (vertically) in the order that they are specified. Across all // platforms, cards have a narrow fixed width, so there's currently no diff --git a/cloudidentity/v1/cloudidentity-api.json b/cloudidentity/v1/cloudidentity-api.json index cfa3ae22a7b..dd4c9ebdf0c 100644 --- a/cloudidentity/v1/cloudidentity-api.json +++ b/cloudidentity/v1/cloudidentity-api.json @@ -1990,7 +1990,7 @@ } } }, - "revision": "20240206", + "revision": "20240312", "rootUrl": "https://cloudidentity.googleapis.com/", "schemas": { "AddIdpCredentialOperationMetadata": { @@ -2324,6 +2324,128 @@ }, "type": "object" }, + "GoogleAppsCloudidentityDevicesV1BrowserAttributes": { + "description": "Contains information about browser profiles reported by the [Endpoint Verification extension](https://chromewebstore.google.com/detail/endpoint-verification/callobklhcbilhphinckomhgkigmfocg?pli=1).", + "id": "GoogleAppsCloudidentityDevicesV1BrowserAttributes", + "properties": { + "chromeBrowserInfo": { + "$ref": "GoogleAppsCloudidentityDevicesV1BrowserInfo", + "description": "Represents the current state of the [Chrome browser attributes](https://cloud.google.com/access-context-manager/docs/browser-attributes) sent by the [Endpoint Verification extension](https://chromewebstore.google.com/detail/endpoint-verification/callobklhcbilhphinckomhgkigmfocg?pli=1)." + }, + "chromeProfileId": { + "description": "Chrome profile ID that is exposed by the Chrome API. It is unique for each device.", + "type": "string" + }, + "lastProfileSyncTime": { + "description": "Timestamp in milliseconds since Epoch when the profile/gcm id was last synced.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "GoogleAppsCloudidentityDevicesV1BrowserInfo": { + "description": "Browser-specific fields reported by the [Endpoint Verification extension](https://chromewebstore.google.com/detail/endpoint-verification/callobklhcbilhphinckomhgkigmfocg?pli=1). LINT.IfChange", + "id": "GoogleAppsCloudidentityDevicesV1BrowserInfo", + "properties": { + "browserManagementState": { + "description": "Output only. Browser's management state.", + "enum": [ + "UNSPECIFIED", + "UNMANAGED", + "MANAGED_BY_OTHER_DOMAIN", + "PROFILE_MANAGED", + "BROWSER_MANAGED" + ], + "enumDescriptions": [ + "Management state is not specified.", + "Browser/Profile is not managed by any customer.", + "Browser/Profile is managed, but by some other customer.", + "Profile is managed by customer.", + "Browser is managed by customer." + ], + "readOnly": true, + "type": "string" + }, + "browserVersion": { + "description": "Version of the request initiating browser.", + "type": "string" + }, + "isBuiltInDnsClientEnabled": { + "description": "Current state of [built-in DNS client](https://chromeenterprise.google/policies/#BuiltInDnsClientEnabled).", + "type": "boolean" + }, + "isBulkDataEntryAnalysisEnabled": { + "description": "Current state of [bulk data analysis](https://chromeenterprise.google/policies/#OnBulkDataEntryEnterpriseConnector). Set to true if provider list from Chrome is non-empty.", + "type": "boolean" + }, + "isChromeCleanupEnabled": { + "description": "Current state of [Chrome Cleanup](https://chromeenterprise.google/policies/#ChromeCleanupEnabled).", + "type": "boolean" + }, + "isChromeRemoteDesktopAppBlocked": { + "description": "Current state of [Chrome Remote Desktop app](https://chromeenterprise.google/policies/#URLBlocklist).", + "type": "boolean" + }, + "isFileDownloadAnalysisEnabled": { + "description": "Current state of [file download analysis](https://chromeenterprise.google/policies/#OnFileDownloadedEnterpriseConnector). Set to true if provider list from Chrome is non-empty.", + "type": "boolean" + }, + "isFileUploadAnalysisEnabled": { + "description": "Current state of [file upload analysis](https://chromeenterprise.google/policies/#OnFileAttachedEnterpriseConnector). Set to true if provider list from Chrome is non-empty.", + "type": "boolean" + }, + "isRealtimeUrlCheckEnabled": { + "description": "Current state of [real-time URL check](https://chromeenterprise.google/policies/#EnterpriseRealTimeUrlCheckMode). Set to true if provider list from Chrome is non-empty.", + "type": "boolean" + }, + "isSecurityEventAnalysisEnabled": { + "description": "Current state of [security event analysis](https://chromeenterprise.google/policies/#OnSecurityEventEnterpriseConnector). Set to true if provider list from Chrome is non-empty.", + "type": "boolean" + }, + "isSiteIsolationEnabled": { + "description": "Current state of [site isolation](https://chromeenterprise.google/policies/?policy=IsolateOrigins).", + "type": "boolean" + }, + "isThirdPartyBlockingEnabled": { + "description": "Current state of [third-party blocking](https://chromeenterprise.google/policies/#ThirdPartyBlockingEnabled).", + "type": "boolean" + }, + "passwordProtectionWarningTrigger": { + "description": "Current state of [password protection trigger](https://chromeenterprise.google/policies/#PasswordProtectionWarningTrigger).", + "enum": [ + "PASSWORD_PROTECTION_TRIGGER_UNSPECIFIED", + "PROTECTION_OFF", + "PASSWORD_REUSE", + "PHISHING_REUSE" + ], + "enumDescriptions": [ + "Password protection is not specified.", + "Password reuse is never detected.", + "Warning is shown when the user reuses their protected password on a non-allowed site.", + "Warning is shown when the user reuses their protected password on a phishing site." + ], + "type": "string" + }, + "safeBrowsingProtectionLevel": { + "description": "Current state of [Safe Browsing protection level](https://chromeenterprise.google/policies/#SafeBrowsingProtectionLevel).", + "enum": [ + "SAFE_BROWSING_LEVEL_UNSPECIFIED", + "DISABLED", + "STANDARD", + "ENHANCED" + ], + "enumDescriptions": [ + "Browser protection level is not specified.", + "No protection against dangerous websites, downloads, and extensions.", + "Standard protection against websites, downloads, and extensions that are known to be dangerous.", + "Faster, proactive protection against dangerous websites, downloads, and extensions." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleAppsCloudidentityDevicesV1CancelWipeDeviceMetadata": { "description": "Metadata for CancelWipeDevice LRO.", "id": "GoogleAppsCloudidentityDevicesV1CancelWipeDeviceMetadata", @@ -2380,6 +2502,83 @@ }, "type": "object" }, + "GoogleAppsCloudidentityDevicesV1CertificateAttributes": { + "description": "Stores information about a certificate.", + "id": "GoogleAppsCloudidentityDevicesV1CertificateAttributes", + "properties": { + "certificateTemplate": { + "$ref": "GoogleAppsCloudidentityDevicesV1CertificateTemplate", + "description": "The X.509 extension for CertificateTemplate." + }, + "fingerprint": { + "description": "The encoded certificate fingerprint.", + "type": "string" + }, + "issuer": { + "description": "The name of the issuer of this certificate.", + "type": "string" + }, + "serialNumber": { + "description": "Serial number of the certificate, Example: \"123456789\".", + "type": "string" + }, + "subject": { + "description": "The subject name of this certificate.", + "type": "string" + }, + "thumbprint": { + "description": "The certificate thumbprint.", + "type": "string" + }, + "validationState": { + "description": "Output only. Validation state of this certificate.", + "enum": [ + "CERTIFICATE_VALIDATION_STATE_UNSPECIFIED", + "VALIDATION_SUCCESSFUL", + "VALIDATION_FAILED" + ], + "enumDescriptions": [ + "Default value.", + "Certificate validation was successful.", + "Certificate validation failed." + ], + "readOnly": true, + "type": "string" + }, + "validityExpirationTime": { + "description": "Certificate not valid at or after this timestamp.", + "format": "google-datetime", + "type": "string" + }, + "validityStartTime": { + "description": "Certificate not valid before this timestamp.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "GoogleAppsCloudidentityDevicesV1CertificateTemplate": { + "description": "CertificateTemplate (v3 Extension in X.509).", + "id": "GoogleAppsCloudidentityDevicesV1CertificateTemplate", + "properties": { + "id": { + "description": "The template id of the template. Example: \"1.3.6.1.4.1.311.21.8.15608621.11768144.5720724.16068415.6889630.81.2472537.7784047\".", + "type": "string" + }, + "majorVersion": { + "description": "The Major version of the template. Example: 100.", + "format": "int32", + "type": "integer" + }, + "minorVersion": { + "description": "The minor version of the template. Example: 12.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "GoogleAppsCloudidentityDevicesV1ClientState": { "description": "Represents the state associated with an API client calling the Devices API. Resource representing ClientState and supports updates from API users", "id": "GoogleAppsCloudidentityDevicesV1ClientState", @@ -2641,6 +2840,11 @@ "readOnly": true, "type": "string" }, + "endpointVerificationSpecificAttributes": { + "$ref": "GoogleAppsCloudidentityDevicesV1EndpointVerificationSpecificAttributes", + "description": "Output only. Attributes specific to [Endpoint Verification](https://cloud.google.com/endpoint-verification/docs/overview) devices.", + "readOnly": true + }, "hostname": { "description": "Host name of the device.", "type": "string" @@ -2855,6 +3059,35 @@ }, "type": "object" }, + "GoogleAppsCloudidentityDevicesV1EndpointVerificationSpecificAttributes": { + "description": "Resource representing the [Endpoint Verification-specific attributes](https://cloud.google.com/endpoint-verification/docs/device-information) of a device.", + "id": "GoogleAppsCloudidentityDevicesV1EndpointVerificationSpecificAttributes", + "properties": { + "additionalSignals": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Additional signals reported by Endpoint Verification. It includes the following attributes: 1. Non-configurable attributes: hotfixes, av_installed, av_enabled, windows_domain_name, is_os_native_firewall_enabled, and is_secure_boot_enabled. 2. [Configurable attributes](https://cloud.google.com/endpoint-verification/docs/collect-config-attributes): file, folder, and binary attributes; registry entries; and properties in a plist.", + "type": "object" + }, + "browserAttributes": { + "description": "Details of browser profiles reported by Endpoint Verification.", + "items": { + "$ref": "GoogleAppsCloudidentityDevicesV1BrowserAttributes" + }, + "type": "array" + }, + "certificateAttributes": { + "description": "Details of certificates.", + "items": { + "$ref": "GoogleAppsCloudidentityDevicesV1CertificateAttributes" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleAppsCloudidentityDevicesV1ListClientStatesResponse": { "description": "Response message that is returned in ListClientStates.", "id": "GoogleAppsCloudidentityDevicesV1ListClientStatesResponse", diff --git a/cloudidentity/v1/cloudidentity-gen.go b/cloudidentity/v1/cloudidentity-gen.go index ad3f4ed2690..0b7f20400fc 100644 --- a/cloudidentity/v1/cloudidentity-gen.go +++ b/cloudidentity/v1/cloudidentity-gen.go @@ -884,6 +884,170 @@ func (s *GoogleAppsCloudidentityDevicesV1BlockDeviceUserResponse) MarshalJSON() return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAppsCloudidentityDevicesV1BrowserAttributes: Contains +// information about browser profiles reported by the Endpoint +// Verification extension +// (https://chromewebstore.google.com/detail/endpoint-verification/callobklhcbilhphinckomhgkigmfocg?pli=1). +type GoogleAppsCloudidentityDevicesV1BrowserAttributes struct { + // ChromeBrowserInfo: Represents the current state of the Chrome browser + // attributes + // (https://cloud.google.com/access-context-manager/docs/browser-attributes) + // sent by the Endpoint Verification extension + // (https://chromewebstore.google.com/detail/endpoint-verification/callobklhcbilhphinckomhgkigmfocg?pli=1). + ChromeBrowserInfo *GoogleAppsCloudidentityDevicesV1BrowserInfo `json:"chromeBrowserInfo,omitempty"` + + // ChromeProfileId: Chrome profile ID that is exposed by the Chrome API. + // It is unique for each device. + ChromeProfileId string `json:"chromeProfileId,omitempty"` + + // LastProfileSyncTime: Timestamp in milliseconds since Epoch when the + // profile/gcm id was last synced. + LastProfileSyncTime string `json:"lastProfileSyncTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ChromeBrowserInfo") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ChromeBrowserInfo") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAppsCloudidentityDevicesV1BrowserAttributes) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAppsCloudidentityDevicesV1BrowserAttributes + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAppsCloudidentityDevicesV1BrowserInfo: Browser-specific fields +// reported by the Endpoint Verification extension +// (https://chromewebstore.google.com/detail/endpoint-verification/callobklhcbilhphinckomhgkigmfocg?pli=1). +// LINT.IfChange +type GoogleAppsCloudidentityDevicesV1BrowserInfo struct { + // BrowserManagementState: Output only. Browser's management state. + // + // Possible values: + // "UNSPECIFIED" - Management state is not specified. + // "UNMANAGED" - Browser/Profile is not managed by any customer. + // "MANAGED_BY_OTHER_DOMAIN" - Browser/Profile is managed, but by some + // other customer. + // "PROFILE_MANAGED" - Profile is managed by customer. + // "BROWSER_MANAGED" - Browser is managed by customer. + BrowserManagementState string `json:"browserManagementState,omitempty"` + + // BrowserVersion: Version of the request initiating browser. + BrowserVersion string `json:"browserVersion,omitempty"` + + // IsBuiltInDnsClientEnabled: Current state of built-in DNS client + // (https://chromeenterprise.google/policies/#BuiltInDnsClientEnabled). + IsBuiltInDnsClientEnabled bool `json:"isBuiltInDnsClientEnabled,omitempty"` + + // IsBulkDataEntryAnalysisEnabled: Current state of bulk data analysis + // (https://chromeenterprise.google/policies/#OnBulkDataEntryEnterpriseConnector). + // Set to true if provider list from Chrome is non-empty. + IsBulkDataEntryAnalysisEnabled bool `json:"isBulkDataEntryAnalysisEnabled,omitempty"` + + // IsChromeCleanupEnabled: Current state of Chrome Cleanup + // (https://chromeenterprise.google/policies/#ChromeCleanupEnabled). + IsChromeCleanupEnabled bool `json:"isChromeCleanupEnabled,omitempty"` + + // IsChromeRemoteDesktopAppBlocked: Current state of Chrome Remote + // Desktop app (https://chromeenterprise.google/policies/#URLBlocklist). + IsChromeRemoteDesktopAppBlocked bool `json:"isChromeRemoteDesktopAppBlocked,omitempty"` + + // IsFileDownloadAnalysisEnabled: Current state of file download + // analysis + // (https://chromeenterprise.google/policies/#OnFileDownloadedEnterpriseConnector). + // Set to true if provider list from Chrome is non-empty. + IsFileDownloadAnalysisEnabled bool `json:"isFileDownloadAnalysisEnabled,omitempty"` + + // IsFileUploadAnalysisEnabled: Current state of file upload analysis + // (https://chromeenterprise.google/policies/#OnFileAttachedEnterpriseConnector). + // Set to true if provider list from Chrome is non-empty. + IsFileUploadAnalysisEnabled bool `json:"isFileUploadAnalysisEnabled,omitempty"` + + // IsRealtimeUrlCheckEnabled: Current state of real-time URL check + // (https://chromeenterprise.google/policies/#EnterpriseRealTimeUrlCheckMode). + // Set to true if provider list from Chrome is non-empty. + IsRealtimeUrlCheckEnabled bool `json:"isRealtimeUrlCheckEnabled,omitempty"` + + // IsSecurityEventAnalysisEnabled: Current state of security event + // analysis + // (https://chromeenterprise.google/policies/#OnSecurityEventEnterpriseConnector). + // Set to true if provider list from Chrome is non-empty. + IsSecurityEventAnalysisEnabled bool `json:"isSecurityEventAnalysisEnabled,omitempty"` + + // IsSiteIsolationEnabled: Current state of site isolation + // (https://chromeenterprise.google/policies/?policy=IsolateOrigins). + IsSiteIsolationEnabled bool `json:"isSiteIsolationEnabled,omitempty"` + + // IsThirdPartyBlockingEnabled: Current state of third-party blocking + // (https://chromeenterprise.google/policies/#ThirdPartyBlockingEnabled). + IsThirdPartyBlockingEnabled bool `json:"isThirdPartyBlockingEnabled,omitempty"` + + // PasswordProtectionWarningTrigger: Current state of password + // protection trigger + // (https://chromeenterprise.google/policies/#PasswordProtectionWarningTrigger). + // + // Possible values: + // "PASSWORD_PROTECTION_TRIGGER_UNSPECIFIED" - Password protection is + // not specified. + // "PROTECTION_OFF" - Password reuse is never detected. + // "PASSWORD_REUSE" - Warning is shown when the user reuses their + // protected password on a non-allowed site. + // "PHISHING_REUSE" - Warning is shown when the user reuses their + // protected password on a phishing site. + PasswordProtectionWarningTrigger string `json:"passwordProtectionWarningTrigger,omitempty"` + + // SafeBrowsingProtectionLevel: Current state of Safe Browsing + // protection level + // (https://chromeenterprise.google/policies/#SafeBrowsingProtectionLevel). + // + // Possible values: + // "SAFE_BROWSING_LEVEL_UNSPECIFIED" - Browser protection level is not + // specified. + // "DISABLED" - No protection against dangerous websites, downloads, + // and extensions. + // "STANDARD" - Standard protection against websites, downloads, and + // extensions that are known to be dangerous. + // "ENHANCED" - Faster, proactive protection against dangerous + // websites, downloads, and extensions. + SafeBrowsingProtectionLevel string `json:"safeBrowsingProtectionLevel,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "BrowserManagementState") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BrowserManagementState") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAppsCloudidentityDevicesV1BrowserInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAppsCloudidentityDevicesV1BrowserInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAppsCloudidentityDevicesV1CancelWipeDeviceMetadata: Metadata // for CancelWipeDevice LRO. type GoogleAppsCloudidentityDevicesV1CancelWipeDeviceMetadata struct { @@ -1021,6 +1185,103 @@ func (s *GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserResponse) MarshalJS return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAppsCloudidentityDevicesV1CertificateAttributes: Stores +// information about a certificate. +type GoogleAppsCloudidentityDevicesV1CertificateAttributes struct { + // CertificateTemplate: The X.509 extension for CertificateTemplate. + CertificateTemplate *GoogleAppsCloudidentityDevicesV1CertificateTemplate `json:"certificateTemplate,omitempty"` + + // Fingerprint: The encoded certificate fingerprint. + Fingerprint string `json:"fingerprint,omitempty"` + + // Issuer: The name of the issuer of this certificate. + Issuer string `json:"issuer,omitempty"` + + // SerialNumber: Serial number of the certificate, Example: "123456789". + SerialNumber string `json:"serialNumber,omitempty"` + + // Subject: The subject name of this certificate. + Subject string `json:"subject,omitempty"` + + // Thumbprint: The certificate thumbprint. + Thumbprint string `json:"thumbprint,omitempty"` + + // ValidationState: Output only. Validation state of this certificate. + // + // Possible values: + // "CERTIFICATE_VALIDATION_STATE_UNSPECIFIED" - Default value. + // "VALIDATION_SUCCESSFUL" - Certificate validation was successful. + // "VALIDATION_FAILED" - Certificate validation failed. + ValidationState string `json:"validationState,omitempty"` + + // ValidityExpirationTime: Certificate not valid at or after this + // timestamp. + ValidityExpirationTime string `json:"validityExpirationTime,omitempty"` + + // ValidityStartTime: Certificate not valid before this timestamp. + ValidityStartTime string `json:"validityStartTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CertificateTemplate") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CertificateTemplate") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAppsCloudidentityDevicesV1CertificateAttributes) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAppsCloudidentityDevicesV1CertificateAttributes + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAppsCloudidentityDevicesV1CertificateTemplate: +// CertificateTemplate (v3 Extension in X.509). +type GoogleAppsCloudidentityDevicesV1CertificateTemplate struct { + // Id: The template id of the template. Example: + // "1.3.6.1.4.1.311.21.8.15608621.11768144.5720724.16068415.6889630.81.24 + // 72537.7784047". + Id string `json:"id,omitempty"` + + // MajorVersion: The Major version of the template. Example: 100. + MajorVersion int64 `json:"majorVersion,omitempty"` + + // MinorVersion: The minor version of the template. Example: 12. + MinorVersion int64 `json:"minorVersion,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Id") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Id") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAppsCloudidentityDevicesV1CertificateTemplate) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAppsCloudidentityDevicesV1CertificateTemplate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAppsCloudidentityDevicesV1ClientState: Represents the state // associated with an API client calling the Devices API. Resource // representing ClientState and supports updates from API users @@ -1280,6 +1541,12 @@ type GoogleAppsCloudidentityDevicesV1Device struct { // "NOT_ENCRYPTED" - Device is not encrypted. EncryptionState string `json:"encryptionState,omitempty"` + // EndpointVerificationSpecificAttributes: Output only. Attributes + // specific to Endpoint Verification + // (https://cloud.google.com/endpoint-verification/docs/overview) + // devices. + EndpointVerificationSpecificAttributes *GoogleAppsCloudidentityDevicesV1EndpointVerificationSpecificAttributes `json:"endpointVerificationSpecificAttributes,omitempty"` + // Hostname: Host name of the device. Hostname string `json:"hostname,omitempty"` @@ -1484,6 +1751,52 @@ func (s *GoogleAppsCloudidentityDevicesV1DeviceUser) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAppsCloudidentityDevicesV1EndpointVerificationSpecificAttributes +// : Resource representing the Endpoint Verification-specific attributes +// (https://cloud.google.com/endpoint-verification/docs/device-information) +// of a device. +type GoogleAppsCloudidentityDevicesV1EndpointVerificationSpecificAttributes struct { + // AdditionalSignals: Additional signals reported by Endpoint + // Verification. It includes the following attributes: 1. + // Non-configurable attributes: hotfixes, av_installed, av_enabled, + // windows_domain_name, is_os_native_firewall_enabled, and + // is_secure_boot_enabled. 2. Configurable attributes + // (https://cloud.google.com/endpoint-verification/docs/collect-config-attributes): + // file, folder, and binary attributes; registry entries; and properties + // in a plist. + AdditionalSignals googleapi.RawMessage `json:"additionalSignals,omitempty"` + + // BrowserAttributes: Details of browser profiles reported by Endpoint + // Verification. + BrowserAttributes []*GoogleAppsCloudidentityDevicesV1BrowserAttributes `json:"browserAttributes,omitempty"` + + // CertificateAttributes: Details of certificates. + CertificateAttributes []*GoogleAppsCloudidentityDevicesV1CertificateAttributes `json:"certificateAttributes,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AdditionalSignals") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AdditionalSignals") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAppsCloudidentityDevicesV1EndpointVerificationSpecificAttributes) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAppsCloudidentityDevicesV1EndpointVerificationSpecificAttributes + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAppsCloudidentityDevicesV1ListClientStatesResponse: Response // message that is returned in ListClientStates. type GoogleAppsCloudidentityDevicesV1ListClientStatesResponse struct { diff --git a/datacatalog/v1/datacatalog-api.json b/datacatalog/v1/datacatalog-api.json index b76c5f5378c..9b951625110 100644 --- a/datacatalog/v1/datacatalog-api.json +++ b/datacatalog/v1/datacatalog-api.json @@ -346,7 +346,7 @@ ], "parameters": { "name": { - "description": "The resource name of the entry group in URL format. Note: The entry group itself and its child resources might not be stored in the location specified in its name.", + "description": "Identifier. The resource name of the entry group in URL format. Note: The entry group itself and its child resources might not be stored in the location specified in its name.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$", "required": true, @@ -677,7 +677,7 @@ ], "parameters": { "name": { - "description": "Output only. The resource name of an entry in URL format. Note: The entry itself and its child resources might not be stored in the location specified in its name.", + "description": "Output only. Identifier. The resource name of an entry in URL format. Note: The entry itself and its child resources might not be stored in the location specified in its name.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$", "required": true, @@ -888,7 +888,7 @@ ], "parameters": { "name": { - "description": "The resource name of the tag in URL format where tag ID is a system-generated identifier. Note: The tag itself might not be stored in the location specified in its name.", + "description": "Identifier. The resource name of the tag in URL format where tag ID is a system-generated identifier. Note: The tag itself might not be stored in the location specified in its name.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+/tags/[^/]+$", "required": true, @@ -1045,7 +1045,7 @@ ], "parameters": { "name": { - "description": "The resource name of the tag in URL format where tag ID is a system-generated identifier. Note: The tag itself might not be stored in the location specified in its name.", + "description": "Identifier. The resource name of the tag in URL format where tag ID is a system-generated identifier. Note: The tag itself might not be stored in the location specified in its name.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/tags/[^/]+$", "required": true, @@ -1321,7 +1321,7 @@ ], "parameters": { "name": { - "description": "The resource name of the tag template in URL format. Note: The tag template itself and its child resources might not be stored in the location specified in its name.", + "description": "Identifier. The resource name of the tag template in URL format. Note: The tag template itself and its child resources might not be stored in the location specified in its name.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$", "required": true, @@ -2144,7 +2144,7 @@ } } }, - "revision": "20240220", + "revision": "20240311", "rootUrl": "https://datacatalog.googleapis.com/", "schemas": { "Binding": { @@ -2914,7 +2914,7 @@ "description": "Model specification." }, "name": { - "description": "Output only. The resource name of an entry in URL format. Note: The entry itself and its child resources might not be stored in the location specified in its name.", + "description": "Output only. Identifier. The resource name of an entry in URL format. Note: The entry itself and its child resources might not be stored in the location specified in its name.", "readOnly": true, "type": "string" }, @@ -3022,7 +3022,7 @@ "type": "string" }, "name": { - "description": "The resource name of the entry group in URL format. Note: The entry group itself and its child resources might not be stored in the location specified in its name.", + "description": "Identifier. The resource name of the entry group in URL format. Note: The entry group itself and its child resources might not be stored in the location specified in its name.", "type": "string" } }, @@ -4131,7 +4131,7 @@ "type": "object" }, "name": { - "description": "The resource name of the tag in URL format where tag ID is a system-generated identifier. Note: The tag itself might not be stored in the location specified in its name.", + "description": "Identifier. The resource name of the tag in URL format where tag ID is a system-generated identifier. Note: The tag itself might not be stored in the location specified in its name.", "type": "string" }, "template": { @@ -4221,7 +4221,7 @@ "type": "boolean" }, "name": { - "description": "The resource name of the tag template in URL format. Note: The tag template itself and its child resources might not be stored in the location specified in its name.", + "description": "Identifier. The resource name of the tag template in URL format. Note: The tag template itself and its child resources might not be stored in the location specified in its name.", "type": "string" } }, @@ -4244,8 +4244,7 @@ "type": "boolean" }, "name": { - "description": "Output only. The resource name of the tag template field in URL format. Example: `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}` Note: The tag template field itself might not be stored in the location specified in its name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 64 characters.", - "readOnly": true, + "description": "Identifier. The resource name of the tag template field in URL format. Example: `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}` Note: The tag template field itself might not be stored in the location specified in its name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 64 characters.", "type": "string" }, "order": { diff --git a/datacatalog/v1/datacatalog-gen.go b/datacatalog/v1/datacatalog-gen.go index bdb3111e747..9781ec04a12 100644 --- a/datacatalog/v1/datacatalog-gen.go +++ b/datacatalog/v1/datacatalog-gen.go @@ -1683,9 +1683,9 @@ type GoogleCloudDatacatalogV1Entry struct { // ModelSpec: Model specification. ModelSpec *GoogleCloudDatacatalogV1ModelSpec `json:"modelSpec,omitempty"` - // Name: Output only. The resource name of an entry in URL format. Note: - // The entry itself and its child resources might not be stored in the - // location specified in its name. + // Name: Output only. Identifier. The resource name of an entry in URL + // format. Note: The entry itself and its child resources might not be + // stored in the location specified in its name. Name string `json:"name,omitempty"` // PersonalDetails: Output only. Additional information related to the @@ -1820,9 +1820,9 @@ type GoogleCloudDatacatalogV1EntryGroup struct { // "analytics data - jan 2011". Default value is an empty string. DisplayName string `json:"displayName,omitempty"` - // Name: The resource name of the entry group in URL format. Note: The - // entry group itself and its child resources might not be stored in the - // location specified in its name. + // Name: Identifier. The resource name of the entry group in URL format. + // Note: The entry group itself and its child resources might not be + // stored in the location specified in its name. Name string `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -3892,9 +3892,9 @@ type GoogleCloudDatacatalogV1Tag struct { // field IDs. A tag must have at least 1 field and at most 500 fields. Fields map[string]GoogleCloudDatacatalogV1TagField `json:"fields,omitempty"` - // Name: The resource name of the tag in URL format where tag ID is a - // system-generated identifier. Note: The tag itself might not be stored - // in the location specified in its name. + // Name: Identifier. The resource name of the tag in URL format where + // tag ID is a system-generated identifier. Note: The tag itself might + // not be stored in the location specified in its name. Name string `json:"name,omitempty"` // Template: Required. The resource name of the tag template this tag @@ -4068,9 +4068,9 @@ type GoogleCloudDatacatalogV1TagTemplate struct { // ``tag:`` predicate. IsPubliclyReadable bool `json:"isPubliclyReadable,omitempty"` - // Name: The resource name of the tag template in URL format. Note: The - // tag template itself and its child resources might not be stored in - // the location specified in its name. + // Name: Identifier. The resource name of the tag template in URL + // format. Note: The tag template itself and its child resources might + // not be stored in the location specified in its name. Name string `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -4116,7 +4116,7 @@ type GoogleCloudDatacatalogV1TagTemplateField struct { // IsRequired: If true, this field is required. Defaults to false. IsRequired bool `json:"isRequired,omitempty"` - // Name: Output only. The resource name of the tag template field in URL + // Name: Identifier. The resource name of the tag template field in URL // format. Example: // `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE // }/fields/{FIELD}` Note: The tag template field itself might not be @@ -6185,9 +6185,9 @@ type ProjectsLocationsEntryGroupsPatchCall struct { // more information, see Data Catalog resource project // (https://cloud.google.com/data-catalog/docs/concepts/resource-project). // -// - name: The resource name of the entry group in URL format. Note: The -// entry group itself and its child resources might not be stored in -// the location specified in its name. +// - name: Identifier. The resource name of the entry group in URL +// format. Note: The entry group itself and its child resources might +// not be stored in the location specified in its name. func (r *ProjectsLocationsEntryGroupsService) Patch(name string, googleclouddatacatalogv1entrygroup *GoogleCloudDatacatalogV1EntryGroup) *ProjectsLocationsEntryGroupsPatchCall { c := &ProjectsLocationsEntryGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -6306,7 +6306,7 @@ func (c *ProjectsLocationsEntryGroupsPatchCall) Do(opts ...googleapi.CallOption) // ], // "parameters": { // "name": { - // "description": "The resource name of the entry group in URL format. Note: The entry group itself and its child resources might not be stored in the location specified in its name.", + // "description": "Identifier. The resource name of the entry group in URL format. Note: The entry group itself and its child resources might not be stored in the location specified in its name.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$", // "required": true, @@ -7910,9 +7910,9 @@ type ProjectsLocationsEntryGroupsEntriesPatchCall struct { // information, see Data Catalog resource project // (https://cloud.google.com/data-catalog/docs/concepts/resource-project). // -// - name: Output only. The resource name of an entry in URL format. -// Note: The entry itself and its child resources might not be stored -// in the location specified in its name. +// - name: Output only. Identifier. The resource name of an entry in URL +// format. Note: The entry itself and its child resources might not be +// stored in the location specified in its name. func (r *ProjectsLocationsEntryGroupsEntriesService) Patch(name string, googleclouddatacatalogv1entry *GoogleCloudDatacatalogV1Entry) *ProjectsLocationsEntryGroupsEntriesPatchCall { c := &ProjectsLocationsEntryGroupsEntriesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -8036,7 +8036,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) Do(opts ...googleapi.Call // ], // "parameters": { // "name": { - // "description": "Output only. The resource name of an entry in URL format. Note: The entry itself and its child resources might not be stored in the location specified in its name.", + // "description": "Output only. Identifier. The resource name of an entry in URL format. Note: The entry itself and its child resources might not be stored in the location specified in its name.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$", // "required": true, @@ -9000,9 +9000,9 @@ type ProjectsLocationsEntryGroupsEntriesTagsPatchCall struct { // Patch: Updates an existing tag. // -// - name: The resource name of the tag in URL format where tag ID is a -// system-generated identifier. Note: The tag itself might not be -// stored in the location specified in its name. +// - name: Identifier. The resource name of the tag in URL format where +// tag ID is a system-generated identifier. Note: The tag itself might +// not be stored in the location specified in its name. func (r *ProjectsLocationsEntryGroupsEntriesTagsService) Patch(nameid string, googleclouddatacatalogv1tag *GoogleCloudDatacatalogV1Tag) *ProjectsLocationsEntryGroupsEntriesTagsPatchCall { c := &ProjectsLocationsEntryGroupsEntriesTagsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.nameid = nameid @@ -9121,7 +9121,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) Do(opts ...googleapi. // ], // "parameters": { // "name": { - // "description": "The resource name of the tag in URL format where tag ID is a system-generated identifier. Note: The tag itself might not be stored in the location specified in its name.", + // "description": "Identifier. The resource name of the tag in URL format where tag ID is a system-generated identifier. Note: The tag itself might not be stored in the location specified in its name.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+/tags/[^/]+$", // "required": true, @@ -9791,9 +9791,9 @@ type ProjectsLocationsEntryGroupsTagsPatchCall struct { // Patch: Updates an existing tag. // -// - name: The resource name of the tag in URL format where tag ID is a -// system-generated identifier. Note: The tag itself might not be -// stored in the location specified in its name. +// - name: Identifier. The resource name of the tag in URL format where +// tag ID is a system-generated identifier. Note: The tag itself might +// not be stored in the location specified in its name. func (r *ProjectsLocationsEntryGroupsTagsService) Patch(nameid string, googleclouddatacatalogv1tag *GoogleCloudDatacatalogV1Tag) *ProjectsLocationsEntryGroupsTagsPatchCall { c := &ProjectsLocationsEntryGroupsTagsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.nameid = nameid @@ -9912,7 +9912,7 @@ func (c *ProjectsLocationsEntryGroupsTagsPatchCall) Do(opts ...googleapi.CallOpt // ], // "parameters": { // "name": { - // "description": "The resource name of the tag in URL format where tag ID is a system-generated identifier. Note: The tag itself might not be stored in the location specified in its name.", + // "description": "Identifier. The resource name of the tag in URL format where tag ID is a system-generated identifier. Note: The tag itself might not be stored in the location specified in its name.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/tags/[^/]+$", // "required": true, @@ -11198,9 +11198,9 @@ type ProjectsLocationsTagTemplatesPatchCall struct { // For more information, see Data Catalog resource project // (https://cloud.google.com/data-catalog/docs/concepts/resource-project). // -// - name: The resource name of the tag template in URL format. Note: -// The tag template itself and its child resources might not be stored -// in the location specified in its name. +// - name: Identifier. The resource name of the tag template in URL +// format. Note: The tag template itself and its child resources might +// not be stored in the location specified in its name. func (r *ProjectsLocationsTagTemplatesService) Patch(name string, googleclouddatacatalogv1tagtemplate *GoogleCloudDatacatalogV1TagTemplate) *ProjectsLocationsTagTemplatesPatchCall { c := &ProjectsLocationsTagTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -11321,7 +11321,7 @@ func (c *ProjectsLocationsTagTemplatesPatchCall) Do(opts ...googleapi.CallOption // ], // "parameters": { // "name": { - // "description": "The resource name of the tag template in URL format. Note: The tag template itself and its child resources might not be stored in the location specified in its name.", + // "description": "Identifier. The resource name of the tag template in URL format. Note: The tag template itself and its child resources might not be stored in the location specified in its name.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$", // "required": true, diff --git a/datacatalog/v1beta1/datacatalog-api.json b/datacatalog/v1beta1/datacatalog-api.json index 45b4e019b4d..662488d4902 100644 --- a/datacatalog/v1beta1/datacatalog-api.json +++ b/datacatalog/v1beta1/datacatalog-api.json @@ -331,7 +331,7 @@ ], "parameters": { "name": { - "description": "The resource name of the entry group in URL format. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} Note that this EntryGroup and its child resources may not actually be stored in the location in this name.", + "description": "Identifier. The resource name of the entry group in URL format. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} Note that this EntryGroup and its child resources may not actually be stored in the location in this name.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$", "required": true, @@ -578,7 +578,7 @@ ], "parameters": { "name": { - "description": "Output only. The Data Catalog resource name of the entry in URL format. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} Note that this Entry and its child resources may not actually be stored in the location in this name.", + "description": "Output only. Identifier. The Data Catalog resource name of the entry in URL format. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} Note that this Entry and its child resources may not actually be stored in the location in this name.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$", "required": true, @@ -733,7 +733,7 @@ ], "parameters": { "name": { - "description": "The resource name of the tag in URL format. Example: * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} where `tag_id` is a system-generated identifier. Note that this Tag may not actually be stored in the location in this name.", + "description": "Identifier. The resource name of the tag in URL format. Example: * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} where `tag_id` is a system-generated identifier. Note that this Tag may not actually be stored in the location in this name.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+/tags/[^/]+$", "required": true, @@ -862,7 +862,7 @@ ], "parameters": { "name": { - "description": "The resource name of the tag in URL format. Example: * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} where `tag_id` is a system-generated identifier. Note that this Tag may not actually be stored in the location in this name.", + "description": "Identifier. The resource name of the tag in URL format. Example: * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} where `tag_id` is a system-generated identifier. Note that this Tag may not actually be stored in the location in this name.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/tags/[^/]+$", "required": true, @@ -1018,7 +1018,7 @@ ], "parameters": { "name": { - "description": "The resource name of the tag template in URL format. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} Note that this TagTemplate and its child resources may not actually be stored in the location in this name.", + "description": "Identifier. The resource name of the tag template in URL format. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} Note that this TagTemplate and its child resources may not actually be stored in the location in this name.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$", "required": true, @@ -1813,7 +1813,7 @@ } } }, - "revision": "20240220", + "revision": "20240311", "rootUrl": "https://datacatalog.googleapis.com/", "schemas": { "Binding": { @@ -2572,7 +2572,7 @@ "description": "Model specification." }, "name": { - "description": "Output only. The resource name of an entry in URL format. Note: The entry itself and its child resources might not be stored in the location specified in its name.", + "description": "Output only. Identifier. The resource name of an entry in URL format. Note: The entry itself and its child resources might not be stored in the location specified in its name.", "readOnly": true, "type": "string" }, @@ -3179,7 +3179,7 @@ "type": "object" }, "name": { - "description": "The resource name of the tag in URL format where tag ID is a system-generated identifier. Note: The tag itself might not be stored in the location specified in its name.", + "description": "Identifier. The resource name of the tag in URL format where tag ID is a system-generated identifier. Note: The tag itself might not be stored in the location specified in its name.", "type": "string" }, "template": { @@ -3579,7 +3579,7 @@ "type": "string" }, "name": { - "description": "Output only. The Data Catalog resource name of the entry in URL format. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} Note that this Entry and its child resources may not actually be stored in the location in this name.", + "description": "Output only. Identifier. The Data Catalog resource name of the entry in URL format. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} Note that this Entry and its child resources may not actually be stored in the location in this name.", "readOnly": true, "type": "string" }, @@ -3644,7 +3644,7 @@ "type": "string" }, "name": { - "description": "The resource name of the entry group in URL format. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} Note that this EntryGroup and its child resources may not actually be stored in the location in this name.", + "description": "Identifier. The resource name of the entry group in URL format. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} Note that this EntryGroup and its child resources may not actually be stored in the location in this name.", "type": "string" } }, @@ -4198,7 +4198,7 @@ "type": "object" }, "name": { - "description": "The resource name of the tag in URL format. Example: * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} where `tag_id` is a system-generated identifier. Note that this Tag may not actually be stored in the location in this name.", + "description": "Identifier. The resource name of the tag in URL format. Example: * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} where `tag_id` is a system-generated identifier. Note that this Tag may not actually be stored in the location in this name.", "type": "string" }, "template": { @@ -4280,7 +4280,7 @@ "type": "object" }, "name": { - "description": "The resource name of the tag template in URL format. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} Note that this TagTemplate and its child resources may not actually be stored in the location in this name.", + "description": "Identifier. The resource name of the tag template in URL format. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} Note that this TagTemplate and its child resources may not actually be stored in the location in this name.", "type": "string" } }, @@ -4303,7 +4303,7 @@ "type": "boolean" }, "name": { - "description": "Output only. The resource name of the tag template field in URL format. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field} Note that this TagTemplateField may not actually be stored in the location in this name.", + "description": "Output only. Identifier. The resource name of the tag template field in URL format. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field} Note that this TagTemplateField may not actually be stored in the location in this name.", "readOnly": true, "type": "string" }, diff --git a/datacatalog/v1beta1/datacatalog-gen.go b/datacatalog/v1beta1/datacatalog-gen.go index fdd4817f7ca..6418d7c6395 100644 --- a/datacatalog/v1beta1/datacatalog-gen.go +++ b/datacatalog/v1beta1/datacatalog-gen.go @@ -1637,9 +1637,9 @@ type GoogleCloudDatacatalogV1Entry struct { // ModelSpec: Model specification. ModelSpec *GoogleCloudDatacatalogV1ModelSpec `json:"modelSpec,omitempty"` - // Name: Output only. The resource name of an entry in URL format. Note: - // The entry itself and its child resources might not be stored in the - // location specified in its name. + // Name: Output only. Identifier. The resource name of an entry in URL + // format. Note: The entry itself and its child resources might not be + // stored in the location specified in its name. Name string `json:"name,omitempty"` // PersonalDetails: Output only. Additional information related to the @@ -2691,9 +2691,9 @@ type GoogleCloudDatacatalogV1Tag struct { // field IDs. A tag must have at least 1 field and at most 500 fields. Fields map[string]GoogleCloudDatacatalogV1TagField `json:"fields,omitempty"` - // Name: The resource name of the tag in URL format where tag ID is a - // system-generated identifier. Note: The tag itself might not be stored - // in the location specified in its name. + // Name: Identifier. The resource name of the tag in URL format where + // tag ID is a system-generated identifier. Note: The tag itself might + // not be stored in the location specified in its name. Name string `json:"name,omitempty"` // Template: Required. The resource name of the tag template this tag @@ -3337,8 +3337,8 @@ type GoogleCloudDatacatalogV1beta1Entry struct { // to an empty string. LinkedResource string `json:"linkedResource,omitempty"` - // Name: Output only. The Data Catalog resource name of the entry in URL - // format. Example: * + // Name: Output only. Identifier. The Data Catalog resource name of the + // entry in URL format. Example: * // projects/{project_id}/locations/{location}/entryGroups/{entry_group_id // }/entries/{entry_id} Note that this Entry and its child resources may // not actually be stored in the location in this name. @@ -3439,7 +3439,8 @@ type GoogleCloudDatacatalogV1beta1EntryGroup struct { // "analytics data - jan 2011". Default value is an empty string. DisplayName string `json:"displayName,omitempty"` - // Name: The resource name of the entry group in URL format. Example: * + // Name: Identifier. The resource name of the entry group in URL format. + // Example: * // projects/{project_id}/locations/{location}/entryGroups/{entry_group_id // } Note that this EntryGroup and its child resources may not actually // be stored in the location in this name. @@ -4536,7 +4537,8 @@ type GoogleCloudDatacatalogV1beta1Tag struct { // 500 fields. Fields map[string]GoogleCloudDatacatalogV1beta1TagField `json:"fields,omitempty"` - // Name: The resource name of the tag in URL format. Example: * + // Name: Identifier. The resource name of the tag in URL format. + // Example: * // projects/{project_id}/locations/{location}/entrygroups/{entry_group_id // }/entries/{entry_id}/tags/{tag_id} where `tag_id` is a // system-generated identifier. Note that this Tag may not actually be @@ -4698,7 +4700,8 @@ type GoogleCloudDatacatalogV1beta1TagTemplate struct { // long. Field IDs must start with a letter or underscore. Fields map[string]GoogleCloudDatacatalogV1beta1TagTemplateField `json:"fields,omitempty"` - // Name: The resource name of the tag template in URL format. Example: * + // Name: Identifier. The resource name of the tag template in URL + // format. Example: * // projects/{project_id}/locations/{location}/tagTemplates/{tag_template_ // id} Note that this TagTemplate and its child resources may not // actually be stored in the location in this name. @@ -4745,8 +4748,8 @@ type GoogleCloudDatacatalogV1beta1TagTemplateField struct { // IsRequired: Whether this is a required field. Defaults to false. IsRequired bool `json:"isRequired,omitempty"` - // Name: Output only. The resource name of the tag template field in URL - // format. Example: * + // Name: Output only. Identifier. The resource name of the tag template + // field in URL format. Example: * // projects/{project_id}/locations/{location}/tagTemplates/{tag_template} // /fields/{field} Note that this TagTemplateField may not actually be // stored in the location in this name. @@ -6452,8 +6455,8 @@ type ProjectsLocationsEntryGroupsPatchCall struct { // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) // for more information). // -// - name: The resource name of the entry group in URL format. Example: -// * +// - name: Identifier. The resource name of the entry group in URL +// format. Example: * // projects/{project_id}/locations/{location}/entryGroups/{entry_group_ // id} Note that this EntryGroup and its child resources may not // actually be stored in the location in this name. @@ -6575,7 +6578,7 @@ func (c *ProjectsLocationsEntryGroupsPatchCall) Do(opts ...googleapi.CallOption) // ], // "parameters": { // "name": { - // "description": "The resource name of the entry group in URL format. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} Note that this EntryGroup and its child resources may not actually be stored in the location in this name.", + // "description": "Identifier. The resource name of the entry group in URL format. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} Note that this EntryGroup and its child resources may not actually be stored in the location in this name.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$", // "required": true, @@ -7745,8 +7748,8 @@ type ProjectsLocationsEntryGroupsEntriesPatchCall struct { // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) // for more information). // -// - name: Output only. The Data Catalog resource name of the entry in -// URL format. Example: * +// - name: Output only. Identifier. The Data Catalog resource name of +// the entry in URL format. Example: * // projects/{project_id}/locations/{location}/entryGroups/{entry_group_ // id}/entries/{entry_id} Note that this Entry and its child resources // may not actually be stored in the location in this name. @@ -7874,7 +7877,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) Do(opts ...googleapi.Call // ], // "parameters": { // "name": { - // "description": "Output only. The Data Catalog resource name of the entry in URL format. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} Note that this Entry and its child resources may not actually be stored in the location in this name.", + // "description": "Output only. Identifier. The Data Catalog resource name of the entry in URL format. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} Note that this Entry and its child resources may not actually be stored in the location in this name.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$", // "required": true, @@ -8552,7 +8555,8 @@ type ProjectsLocationsEntryGroupsEntriesTagsPatchCall struct { // Patch: Updates an existing tag. // -// - name: The resource name of the tag in URL format. Example: * +// - name: Identifier. The resource name of the tag in URL format. +// Example: * // projects/{project_id}/locations/{location}/entrygroups/{entry_group_ // id}/entries/{entry_id}/tags/{tag_id} where `tag_id` is a // system-generated identifier. Note that this Tag may not actually be @@ -8676,7 +8680,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) Do(opts ...googleapi. // ], // "parameters": { // "name": { - // "description": "The resource name of the tag in URL format. Example: * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} where `tag_id` is a system-generated identifier. Note that this Tag may not actually be stored in the location in this name.", + // "description": "Identifier. The resource name of the tag in URL format. Example: * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} where `tag_id` is a system-generated identifier. Note that this Tag may not actually be stored in the location in this name.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+/tags/[^/]+$", // "required": true, @@ -9202,7 +9206,8 @@ type ProjectsLocationsEntryGroupsTagsPatchCall struct { // Patch: Updates an existing tag. // -// - name: The resource name of the tag in URL format. Example: * +// - name: Identifier. The resource name of the tag in URL format. +// Example: * // projects/{project_id}/locations/{location}/entrygroups/{entry_group_ // id}/entries/{entry_id}/tags/{tag_id} where `tag_id` is a // system-generated identifier. Note that this Tag may not actually be @@ -9326,7 +9331,7 @@ func (c *ProjectsLocationsEntryGroupsTagsPatchCall) Do(opts ...googleapi.CallOpt // ], // "parameters": { // "name": { - // "description": "The resource name of the tag in URL format. Example: * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} where `tag_id` is a system-generated identifier. Note that this Tag may not actually be stored in the location in this name.", + // "description": "Identifier. The resource name of the tag in URL format. Example: * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} where `tag_id` is a system-generated identifier. Note that this Tag may not actually be stored in the location in this name.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/tags/[^/]+$", // "required": true, @@ -9992,8 +9997,8 @@ type ProjectsLocationsTagTemplatesPatchCall struct { // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) // for more information). // -// - name: The resource name of the tag template in URL format. Example: -// * +// - name: Identifier. The resource name of the tag template in URL +// format. Example: * // projects/{project_id}/locations/{location}/tagTemplates/{tag_templat // e_id} Note that this TagTemplate and its child resources may not // actually be stored in the location in this name. @@ -10117,7 +10122,7 @@ func (c *ProjectsLocationsTagTemplatesPatchCall) Do(opts ...googleapi.CallOption // ], // "parameters": { // "name": { - // "description": "The resource name of the tag template in URL format. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} Note that this TagTemplate and its child resources may not actually be stored in the location in this name.", + // "description": "Identifier. The resource name of the tag template in URL format. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} Note that this TagTemplate and its child resources may not actually be stored in the location in this name.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$", // "required": true, diff --git a/discoveryengine/v1alpha/discoveryengine-api.json b/discoveryengine/v1alpha/discoveryengine-api.json index 141ea0b753b..6e3b6118b22 100644 --- a/discoveryengine/v1alpha/discoveryengine-api.json +++ b/discoveryengine/v1alpha/discoveryengine-api.json @@ -413,7 +413,7 @@ "type": "string" }, "queryModel": { - "description": "Specifies the autocomplete data model. This overrides any model specified in the Configuration \u003e Autocomplete section of the Cloud console. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for site search dataStores. *", + "description": "Specifies the autocomplete data model. This overrides any model specified in the Configuration \u003e Autocomplete section of the Cloud console. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for site search dataStores.", "location": "query", "type": "string" }, @@ -926,6 +926,79 @@ "https://www.googleapis.com/auth/cloud-platform" ] } + }, + "resources": { + "chunks": { + "methods": { + "get": { + "description": "Gets a Document.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/collections/{collectionsId}/dataStores/{dataStoresId}/branches/{branchesId}/documents/{documentsId}/chunks/{chunksId}", + "httpMethod": "GET", + "id": "discoveryengine.projects.locations.collections.dataStores.branches.documents.chunks.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Full resource name of Chunk, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}`. If the caller does not have permission to access the Chunk, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. If the requested Chunk does not exist, a `NOT_FOUND` error is returned.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/branches/[^/]+/documents/[^/]+/chunks/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleCloudDiscoveryengineV1alphaChunk" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Gets a list of Chunks.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/collections/{collectionsId}/dataStores/{dataStoresId}/branches/{branchesId}/documents/{documentsId}/chunks", + "httpMethod": "GET", + "id": "discoveryengine.projects.locations.collections.dataStores.branches.documents.chunks.list", + "parameterOrder": [ + "parent", + "documentsId" + ], + "parameters": { + "documentsId": { + "location": "path", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Maximum number of Chunks to return. If unspecified, defaults to 100. The maximum allowed value is 1000. Values above 1000 will be coerced to 1000. If this field is negative, an `INVALID_ARGUMENT` error is returned.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token ListChunksResponse.next_page_token, received from a previous ChunkService.ListChunks call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ChunkService.ListChunks must match the call that provided the page token. Otherwise, an `INVALID_ARGUMENT` error is returned.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent document resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. If the caller does not have permission to list Chunks under this document, regardless of whether or not this document exists, a `PERMISSION_DENIED` error is returned.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/branches/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/documents/{documentsId}/chunks", + "response": { + "$ref": "GoogleCloudDiscoveryengineV1alphaListChunksResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } } }, "operations": { @@ -1574,7 +1647,7 @@ ], "parameters": { "name": { - "description": "Required. The resource name of the ServingConfig to get. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config_id}`", + "description": "Required. The resource name of the ServingConfig to get. Format: `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", "required": true, @@ -1610,7 +1683,7 @@ "type": "string" }, "parent": { - "description": "Required. The dataStore resource name. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}`", + "description": "Required. Full resource name of the parent resource. Format: `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "required": true, @@ -1635,7 +1708,7 @@ ], "parameters": { "name": { - "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`", + "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", "required": true, @@ -2896,7 +2969,7 @@ ], "parameters": { "name": { - "description": "Required. The resource name of the ServingConfig to get. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config_id}`", + "description": "Required. The resource name of the ServingConfig to get. Format: `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/servingConfigs/[^/]+$", "required": true, @@ -2932,7 +3005,7 @@ "type": "string" }, "parent": { - "description": "Required. The dataStore resource name. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}`", + "description": "Required. Full resource name of the parent resource. Format: `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$", "required": true, @@ -2957,7 +3030,7 @@ ], "parameters": { "name": { - "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`", + "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/servingConfigs/[^/]+$", "required": true, @@ -3142,7 +3215,7 @@ "type": "string" }, "queryModel": { - "description": "Specifies the autocomplete data model. This overrides any model specified in the Configuration \u003e Autocomplete section of the Cloud console. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for site search dataStores. *", + "description": "Specifies the autocomplete data model. This overrides any model specified in the Configuration \u003e Autocomplete section of the Cloud console. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for site search dataStores.", "location": "query", "type": "string" }, @@ -3627,6 +3700,79 @@ "https://www.googleapis.com/auth/cloud-platform" ] } + }, + "resources": { + "chunks": { + "methods": { + "get": { + "description": "Gets a Document.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/dataStores/{dataStoresId}/branches/{branchesId}/documents/{documentsId}/chunks/{chunksId}", + "httpMethod": "GET", + "id": "discoveryengine.projects.locations.dataStores.branches.documents.chunks.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Full resource name of Chunk, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}`. If the caller does not have permission to access the Chunk, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. If the requested Chunk does not exist, a `NOT_FOUND` error is returned.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/branches/[^/]+/documents/[^/]+/chunks/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleCloudDiscoveryengineV1alphaChunk" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Gets a list of Chunks.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/dataStores/{dataStoresId}/branches/{branchesId}/documents/{documentsId}/chunks", + "httpMethod": "GET", + "id": "discoveryengine.projects.locations.dataStores.branches.documents.chunks.list", + "parameterOrder": [ + "parent", + "documentsId" + ], + "parameters": { + "documentsId": { + "location": "path", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Maximum number of Chunks to return. If unspecified, defaults to 100. The maximum allowed value is 1000. Values above 1000 will be coerced to 1000. If this field is negative, an `INVALID_ARGUMENT` error is returned.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token ListChunksResponse.next_page_token, received from a previous ChunkService.ListChunks call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ChunkService.ListChunks must match the call that provided the page token. Otherwise, an `INVALID_ARGUMENT` error is returned.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent document resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. If the caller does not have permission to list Chunks under this document, regardless of whether or not this document exists, a `PERMISSION_DENIED` error is returned.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/branches/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/documents/{documentsId}/chunks", + "response": { + "$ref": "GoogleCloudDiscoveryengineV1alphaListChunksResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } } }, "operations": { @@ -4203,7 +4349,7 @@ ], "parameters": { "name": { - "description": "Required. The resource name of the ServingConfig to get. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config_id}`", + "description": "Required. The resource name of the ServingConfig to get. Format: `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", "required": true, @@ -4239,7 +4385,7 @@ "type": "string" }, "parent": { - "description": "Required. The dataStore resource name. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}`", + "description": "Required. Full resource name of the parent resource. Format: `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", "required": true, @@ -4264,7 +4410,7 @@ ], "parameters": { "name": { - "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`", + "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", "required": true, @@ -4946,7 +5092,7 @@ } } }, - "revision": "20240305", + "revision": "20240307", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -6222,7 +6368,7 @@ "type": "string" }, "queryModel": { - "description": "Specifies the autocomplete data model. This overrides any model specified in the Configuration \u003e Autocomplete section of the Cloud console. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for site search dataStores. *", + "description": "Specifies the autocomplete data model. This overrides any model specified in the Configuration \u003e Autocomplete section of the Cloud console. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for site search dataStores.", "type": "string" }, "userPseudoId": { @@ -6820,6 +6966,7 @@ "id": "GoogleCloudDiscoveryengineV1alphaDocumentAclInfo", "properties": { "readers": { + "description": "Readers of the document.", "items": { "$ref": "GoogleCloudDiscoveryengineV1alphaDocumentAclInfoAccessRestriction" }, @@ -6909,11 +7056,6 @@ "description": "The full resource name of the Document Processing Config. Format: `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.", "type": "string" }, - "ocrConfig": { - "$ref": "GoogleCloudDiscoveryengineV1alphaOcrConfig", - "deprecated": true, - "description": "[DEPRECATED] This field is deprecated. To specify OCR parsing config, please specify `ocr_parsing_config` in `default_parsing_config` field The OCR config. Currently it only applies to PDFs." - }, "parsingConfigOverrides": { "additionalProperties": { "$ref": "GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig" @@ -7029,10 +7171,6 @@ "description": "Metadata that describes the training and serving parameters of an Engine.", "id": "GoogleCloudDiscoveryengineV1alphaEngine", "properties": { - "allowMultipleDataStoresSearchEngine": { - "description": "Whether the search engine can associate with multiple data stores. If true, the generic search engine can associate with one or more data stores. This is an input-only field.", - "type": "boolean" - }, "chatEngineConfig": { "$ref": "GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig", "description": "Configurations for the Chat Engine. Only applicable if solution_type is SOLUTION_TYPE_CHAT." @@ -7948,6 +8086,24 @@ "properties": {}, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaListChunksResponse": { + "description": "Response message for ChunkService.ListChunks method.", + "id": "GoogleCloudDiscoveryengineV1alphaListChunksResponse", + "properties": { + "chunks": { + "description": "The Chunks.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1alphaChunk" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token that can be sent as ListChunksRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaListConversationsResponse": { "description": "Response for ListConversations method.", "id": "GoogleCloudDiscoveryengineV1alphaListConversationsResponse", @@ -8118,29 +8274,6 @@ }, "type": "object" }, - "GoogleCloudDiscoveryengineV1alphaOcrConfig": { - "deprecated": true, - "description": "The OCR options for parsing documents.", - "id": "GoogleCloudDiscoveryengineV1alphaOcrConfig", - "properties": { - "enabled": { - "description": "Required. If OCR is enabled or not. OCR must be enabled for other OcrConfig options to apply. We will only perform OCR on the first 80 pages of the PDF files.", - "type": "boolean" - }, - "enhancedDocumentElements": { - "description": "Apply additional enhanced OCR processing to a list of document elements. Supported values: * `table`: advanced table parsing model.", - "items": { - "type": "string" - }, - "type": "array" - }, - "useNativeText": { - "description": "If true, will use native text instead of OCR text on pages containing native text.", - "type": "boolean" - } - }, - "type": "object" - }, "GoogleCloudDiscoveryengineV1alphaOcrParsingConfig": { "description": "The OCR parsing configurations for documents.", "id": "GoogleCloudDiscoveryengineV1alphaOcrParsingConfig", @@ -8751,6 +8884,13 @@ "$ref": "GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec", "description": "Custom fine tuning configs." }, + "dataStoreSpecs": { + "description": "A list of data store specs to apply on a search call.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec" + }, + "type": "array" + }, "embeddingSpec": { "$ref": "GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec", "description": "Uses the provided embedding to do additional semantic document retrieval. The retrieval is based on the dot product of SearchRequest.EmbeddingSpec.EmbeddingVector.vector and the document embedding that is provided in SearchRequest.EmbeddingSpec.EmbeddingVector.field_path. If SearchRequest.EmbeddingSpec.EmbeddingVector.field_path is not provided, it will use ServingConfig.EmbeddingConfig.field_path." @@ -8978,7 +9118,7 @@ "description": "If specified, the spec will be used to modify the model specification provided to the LLM." }, "summaryResultCount": { - "description": "The number of top results to generate the summary from. If the number of results returned is less than `summaryResultCount`, the summary is generated from all of the results. At most five results can be used to generate a summary.", + "description": "The number of top results to generate the summary from. If the number of results returned is less than `summaryResultCount`, the summary is generated from all of the results. At most 10 results can be used to generate a summary.", "format": "int32", "type": "integer" } @@ -9007,6 +9147,17 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec": { + "description": "A struct to define data stores to filter on in a search call.", + "id": "GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec", + "properties": { + "dataStore": { + "description": "Required. Full resource name of DataStore, such as `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec": { "description": "The specification that uses customized query embedding vector to do semantic document retrieval.", "id": "GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec", @@ -9599,7 +9750,7 @@ "type": "string" }, "name": { - "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`", + "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`", "type": "string" }, "onewaySynonymsControlIds": { @@ -11417,6 +11568,45 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata": { + "description": "Metadata related to the progress of the TrainCustomModel operation. This is returned by the google.longrunning.Operation.metadata field.", + "id": "GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata", + "properties": { + "createTime": { + "description": "Operation create time.", + "format": "google-datetime", + "type": "string" + }, + "updateTime": { + "description": "Operation last update time. If the operation is done, this is also the finish time.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse": { + "description": "Response of the TrainCustomModelRequest. This message is returned by the google.longrunning.Operations.response field.", + "id": "GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse", + "properties": { + "errorConfig": { + "$ref": "GoogleCloudDiscoveryengineV1betaImportErrorConfig", + "description": "Echoes the destination for the complete errors in the request if set." + }, + "errorSamples": { + "description": "A sample of errors encountered while processing the data.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + }, + "modelStatus": { + "description": "The trained model status. Possible values are: * **bad-data**: The training data quality is bad. * **no-improvement**: Tuning didn't improve performance. Won't deploy. * **in-progress**: Model training is in progress. * **ready**: The model is ready for serving.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata": { "description": "Metadata for UpdateSchema LRO.", "id": "GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata", diff --git a/discoveryengine/v1alpha/discoveryengine-gen.go b/discoveryengine/v1alpha/discoveryengine-gen.go index 04c022581a4..dd4d0c29398 100644 --- a/discoveryengine/v1alpha/discoveryengine-gen.go +++ b/discoveryengine/v1alpha/discoveryengine-gen.go @@ -295,11 +295,23 @@ type ProjectsLocationsCollectionsDataStoresBranchesService struct { func NewProjectsLocationsCollectionsDataStoresBranchesDocumentsService(s *Service) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService { rs := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsService{s: s} + rs.Chunks = NewProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksService(s) return rs } type ProjectsLocationsCollectionsDataStoresBranchesDocumentsService struct { s *Service + + Chunks *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksService +} + +func NewProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksService(s *Service) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksService { + rs := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksService{s: s} + return rs +} + +type ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksService struct { + s *Service } func NewProjectsLocationsCollectionsDataStoresBranchesOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresBranchesOperationsService { @@ -550,11 +562,23 @@ type ProjectsLocationsDataStoresBranchesService struct { func NewProjectsLocationsDataStoresBranchesDocumentsService(s *Service) *ProjectsLocationsDataStoresBranchesDocumentsService { rs := &ProjectsLocationsDataStoresBranchesDocumentsService{s: s} + rs.Chunks = NewProjectsLocationsDataStoresBranchesDocumentsChunksService(s) return rs } type ProjectsLocationsDataStoresBranchesDocumentsService struct { s *Service + + Chunks *ProjectsLocationsDataStoresBranchesDocumentsChunksService +} + +func NewProjectsLocationsDataStoresBranchesDocumentsChunksService(s *Service) *ProjectsLocationsDataStoresBranchesDocumentsChunksService { + rs := &ProjectsLocationsDataStoresBranchesDocumentsChunksService{s: s} + return rs +} + +type ProjectsLocationsDataStoresBranchesDocumentsChunksService struct { + s *Service } func NewProjectsLocationsDataStoresBranchesOperationsService(s *Service) *ProjectsLocationsDataStoresBranchesOperationsService { @@ -2895,6 +2919,10 @@ type GoogleCloudDiscoveryengineV1alphaChunk struct { // limit of 1024 characters. Name string `json:"name,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Content") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -2981,7 +3009,7 @@ type GoogleCloudDiscoveryengineV1alphaCompleteQueryRequest struct { // suggestions taken directly from user-imported document fields marked // as completable. Default values: * `document` is the default model for // regular dataStores. * `search-history` is the default model for site - // search dataStores. * + // search dataStores. QueryModel string `json:"queryModel,omitempty"` // UserPseudoId: A unique identifier for tracking visitors. For example, @@ -4043,6 +4071,7 @@ func (s *GoogleCloudDiscoveryengineV1alphaDocument) MarshalJSON() ([]byte, error // GoogleCloudDiscoveryengineV1alphaDocumentAclInfo: ACL Information of // the Document. type GoogleCloudDiscoveryengineV1alphaDocumentAclInfo struct { + // Readers: Readers of the document. Readers []*GoogleCloudDiscoveryengineV1alphaDocumentAclInfoAccessRestriction `json:"readers,omitempty"` // ForceSendFields is a list of field names (e.g. "Readers") to @@ -4226,12 +4255,6 @@ type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig struct { // onfig`. Name string `json:"name,omitempty"` - // OcrConfig: [DEPRECATED] This field is deprecated. To specify OCR - // parsing config, please specify `ocr_parsing_config` in - // `default_parsing_config` field The OCR config. Currently it only - // applies to PDFs. - OcrConfig *GoogleCloudDiscoveryengineV1alphaOcrConfig `json:"ocrConfig,omitempty"` - // ParsingConfigOverrides: Map from file type to override the default // parsing configuration based on the file type. Supported keys: * // `pdf`: Override parsing config for PDF files, either digital parsing, @@ -4500,12 +4523,6 @@ type GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchResponse struct { // GoogleCloudDiscoveryengineV1alphaEngine: Metadata that describes the // training and serving parameters of an Engine. type GoogleCloudDiscoveryengineV1alphaEngine struct { - // AllowMultipleDataStoresSearchEngine: Whether the search engine can - // associate with multiple data stores. If true, the generic search - // engine can associate with one or more data stores. This is an - // input-only field. - AllowMultipleDataStoresSearchEngine bool `json:"allowMultipleDataStoresSearchEngine,omitempty"` - // ChatEngineConfig: Configurations for the Chat Engine. Only applicable // if solution_type is SOLUTION_TYPE_CHAT. ChatEngineConfig *GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig `json:"chatEngineConfig,omitempty"` @@ -4592,22 +4609,21 @@ type GoogleCloudDiscoveryengineV1alphaEngine struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. - // "AllowMultipleDataStoresSearchEngine") to unconditionally include in - // API requests. By default, fields with empty or default values are - // omitted from API requests. However, any non-pointer, non-interface - // field appearing in ForceSendFields will be sent to the server - // regardless of whether the field is empty or not. This may be used to - // include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ChatEngineConfig") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. - // "AllowMultipleDataStoresSearchEngine") to include in API requests - // with the JSON null value. By default, fields with empty values are - // omitted from API requests. However, any field with an empty value - // appearing in NullFields will be sent to the server as null. It is an - // error if a field in this list has a non-empty value. This may be used - // to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ChatEngineConfig") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -6164,6 +6180,44 @@ func (s *GoogleCloudDiscoveryengineV1alphaInterval) UnmarshalJSON(data []byte) e type GoogleCloudDiscoveryengineV1alphaLayoutParsingConfig struct { } +// GoogleCloudDiscoveryengineV1alphaListChunksResponse: Response message +// for ChunkService.ListChunks method. +type GoogleCloudDiscoveryengineV1alphaListChunksResponse struct { + // Chunks: The Chunks. + Chunks []*GoogleCloudDiscoveryengineV1alphaChunk `json:"chunks,omitempty"` + + // NextPageToken: A token that can be sent as + // ListChunksRequest.page_token to retrieve the next page. If this field + // is omitted, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Chunks") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Chunks") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDiscoveryengineV1alphaListChunksResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaListChunksResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaListConversationsResponse: Response // for ListConversations method. type GoogleCloudDiscoveryengineV1alphaListConversationsResponse struct { @@ -6551,46 +6605,6 @@ func (s *GoogleCloudDiscoveryengineV1alphaMediaInfo) UnmarshalJSON(data []byte) return nil } -// GoogleCloudDiscoveryengineV1alphaOcrConfig: The OCR options for -// parsing documents. -type GoogleCloudDiscoveryengineV1alphaOcrConfig struct { - // Enabled: Required. If OCR is enabled or not. OCR must be enabled for - // other OcrConfig options to apply. We will only perform OCR on the - // first 80 pages of the PDF files. - Enabled bool `json:"enabled,omitempty"` - - // EnhancedDocumentElements: Apply additional enhanced OCR processing to - // a list of document elements. Supported values: * `table`: advanced - // table parsing model. - EnhancedDocumentElements []string `json:"enhancedDocumentElements,omitempty"` - - // UseNativeText: If true, will use native text instead of OCR text on - // pages containing native text. - UseNativeText bool `json:"useNativeText,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Enabled") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Enabled") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDiscoveryengineV1alphaOcrConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDiscoveryengineV1alphaOcrConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudDiscoveryengineV1alphaOcrParsingConfig: The OCR parsing // configurations for documents. type GoogleCloudDiscoveryengineV1alphaOcrParsingConfig struct { @@ -7712,6 +7726,9 @@ type GoogleCloudDiscoveryengineV1alphaSearchRequest struct { // CustomFineTuningSpec: Custom fine tuning configs. CustomFineTuningSpec *GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec `json:"customFineTuningSpec,omitempty"` + // DataStoreSpecs: A list of data store specs to apply on a search call. + DataStoreSpecs []*GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec `json:"dataStoreSpecs,omitempty"` + // EmbeddingSpec: Uses the provided embedding to do additional semantic // document retrieval. The retrieval is based on the dot product of // SearchRequest.EmbeddingSpec.EmbeddingVector.vector and the document @@ -8185,7 +8202,7 @@ type GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpec // SummaryResultCount: The number of top results to generate the summary // from. If the number of results returned is less than // `summaryResultCount`, the summary is generated from all of the - // results. At most five results can be used to generate a summary. + // results. At most 10 results can be used to generate a summary. SummaryResultCount int64 `json:"summaryResultCount,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -8278,6 +8295,37 @@ func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummaryS return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec: A struct +// to define data stores to filter on in a search call. +type GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec struct { + // DataStore: Required. Full resource name of DataStore, such as + // `projects/{project}/locations/{location}/collections/{collection_id}/d + // ataStores/{data_store_id}`. + DataStore string `json:"dataStore,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DataStore") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DataStore") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec: The // specification that uses customized query embedding vector to do // semantic document retrieval. @@ -9309,8 +9357,8 @@ type GoogleCloudDiscoveryengineV1alphaServingConfig struct { ModelId string `json:"modelId,omitempty"` // Name: Immutable. Fully qualified name - // `projects/{project}/locations/{location}/collections/{collection_id}/d - // ataStores/{data_store_id}/servingConfigs/{serving_config_id}` + // `projects/{project}/locations/{location}/collections/{collection_id}/e + // ngines/{engine_id}/servingConfigs/{serving_config_id}` Name string `json:"name,omitempty"` // OnewaySynonymsControlIds: Condition oneway synonyms specifications. @@ -12493,6 +12541,82 @@ func (s *GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure) Ma return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata: Metadata +// related to the progress of the TrainCustomModel operation. This is +// returned by the google.longrunning.Operation.metadata field. +type GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata struct { + // CreateTime: Operation create time. + CreateTime string `json:"createTime,omitempty"` + + // UpdateTime: Operation last update time. If the operation is done, + // this is also the finish time. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse: Response of +// the TrainCustomModelRequest. This message is returned by the +// google.longrunning.Operations.response field. +type GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse struct { + // ErrorConfig: Echoes the destination for the complete errors in the + // request if set. + ErrorConfig *GoogleCloudDiscoveryengineV1betaImportErrorConfig `json:"errorConfig,omitempty"` + + // ErrorSamples: A sample of errors encountered while processing the + // data. + ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"` + + // ModelStatus: The trained model status. Possible values are: * + // **bad-data**: The training data quality is bad. * **no-improvement**: + // Tuning didn't improve performance. Won't deploy. * **in-progress**: + // Model training is in progress. * **ready**: The model is ready for + // serving. + ModelStatus string `json:"modelStatus,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ErrorConfig") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ErrorConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata: Metadata for // UpdateSchema LRO. type GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata struct { @@ -14200,7 +14324,7 @@ func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Query(query st // `document-completable` - Using suggestions taken directly from // user-imported document fields marked as completable. Default values: // * `document` is the default model for regular dataStores. * -// `search-history` is the default model for site search dataStores. * +// `search-history` is the default model for site search dataStores. func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) QueryModel(queryModel string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall { c.urlParams_.Set("queryModel", queryModel) return c @@ -14349,7 +14473,7 @@ func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Do(opts ...goo // "type": "string" // }, // "queryModel": { - // "description": "Specifies the autocomplete data model. This overrides any model specified in the Configuration \u003e Autocomplete section of the Cloud console. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for site search dataStores. *", + // "description": "Specifies the autocomplete data model. This overrides any model specified in the Configuration \u003e Autocomplete section of the Cloud console. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for site search dataStores.", // "location": "query", // "type": "string" // }, @@ -16964,6 +17088,374 @@ func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) Do(op } +// method id "discoveryengine.projects.locations.collections.dataStores.branches.documents.chunks.get": + +type ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a Document. +// +// - name: Full resource name of Chunk, such as +// `projects/{project}/locations/{location}/collections/{collection}/da +// taStores/{data_store}/branches/{branch}/documents/{document}/chunks/ +// {chunk}`. If the caller does not have permission to access the +// Chunk, regardless of whether or not it exists, a +// `PERMISSION_DENIED` error is returned. If the requested Chunk does +// not exist, a `NOT_FOUND` error is returned. +func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksService) Get(name string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall { + c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.chunks.get" call. +// Exactly one of *GoogleCloudDiscoveryengineV1alphaChunk or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudDiscoveryengineV1alphaChunk.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaChunk, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudDiscoveryengineV1alphaChunk{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a Document.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/collections/{collectionsId}/dataStores/{dataStoresId}/branches/{branchesId}/documents/{documentsId}/chunks/{chunksId}", + // "httpMethod": "GET", + // "id": "discoveryengine.projects.locations.collections.dataStores.branches.documents.chunks.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Full resource name of Chunk, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}`. If the caller does not have permission to access the Chunk, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. If the requested Chunk does not exist, a `NOT_FOUND` error is returned.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/branches/[^/]+/documents/[^/]+/chunks/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "GoogleCloudDiscoveryengineV1alphaChunk" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "discoveryengine.projects.locations.collections.dataStores.branches.documents.chunks.list": + +type ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall struct { + s *Service + parent string + documentsId string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Gets a list of Chunks. +// +// - documentsId: . +// - parent: The parent document resource name, such as +// `projects/{project}/locations/{location}/collections/{collection}/da +// taStores/{data_store}/branches/{branch}/documents/{document}`. If +// the caller does not have permission to list Chunks under this +// document, regardless of whether or not this document exists, a +// `PERMISSION_DENIED` error is returned. +func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksService) List(parent string, documentsId string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall { + c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.documentsId = documentsId + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// Chunks to return. If unspecified, defaults to 100. The maximum +// allowed value is 1000. Values above 1000 will be coerced to 1000. If +// this field is negative, an `INVALID_ARGUMENT` error is returned. +func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token +// ListChunksResponse.next_page_token, received from a previous +// ChunkService.ListChunks call. Provide this to retrieve the subsequent +// page. When paginating, all other parameters provided to +// ChunkService.ListChunks must match the call that provided the page +// token. Otherwise, an `INVALID_ARGUMENT` error is returned. +func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/documents/{documentsId}/chunks") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + "documentsId": c.documentsId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.chunks.list" call. +// Exactly one of *GoogleCloudDiscoveryengineV1alphaListChunksResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudDiscoveryengineV1alphaListChunksResponse.ServerResponse.He +// ader or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListChunksResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudDiscoveryengineV1alphaListChunksResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a list of Chunks.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/collections/{collectionsId}/dataStores/{dataStoresId}/branches/{branchesId}/documents/{documentsId}/chunks", + // "httpMethod": "GET", + // "id": "discoveryengine.projects.locations.collections.dataStores.branches.documents.chunks.list", + // "parameterOrder": [ + // "parent", + // "documentsId" + // ], + // "parameters": { + // "documentsId": { + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "Maximum number of Chunks to return. If unspecified, defaults to 100. The maximum allowed value is 1000. Values above 1000 will be coerced to 1000. If this field is negative, an `INVALID_ARGUMENT` error is returned.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token ListChunksResponse.next_page_token, received from a previous ChunkService.ListChunks call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ChunkService.ListChunks must match the call that provided the page token. Otherwise, an `INVALID_ARGUMENT` error is returned.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent document resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. If the caller does not have permission to list Chunks under this document, regardless of whether or not this document exists, a `PERMISSION_DENIED` error is returned.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/branches/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/documents/{documentsId}/chunks", + // "response": { + // "$ref": "GoogleCloudDiscoveryengineV1alphaListChunksResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListChunksResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + // method id "discoveryengine.projects.locations.collections.dataStores.branches.operations.get": type ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall struct { @@ -20178,7 +20670,7 @@ type ProjectsLocationsCollectionsDataStoresServingConfigsGetCall struct { // // - name: The resource name of the ServingConfig to get. Format: // `projects/{project_number}/locations/{location}/collections/{collect -// ion}/dataStores/{data_store}/servingConfigs/{serving_config_id}`. +// ion}/engines/{engine}/servingConfigs/{serving_config_id}`. func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Get(name string) *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall { c := &ProjectsLocationsCollectionsDataStoresServingConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -20295,7 +20787,7 @@ func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) Do(opts .. // ], // "parameters": { // "name": { - // "description": "Required. The resource name of the ServingConfig to get. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config_id}`", + // "description": "Required. The resource name of the ServingConfig to get. Format: `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", // "required": true, @@ -20326,9 +20818,9 @@ type ProjectsLocationsCollectionsDataStoresServingConfigsListCall struct { // List: Lists all ServingConfigs linked to this dataStore. // -// - parent: The dataStore resource name. Format: +// - parent: Full resource name of the parent resource. Format: // `projects/{project_number}/locations/{location}/collections/{collect -// ion}/dataStores/{data_store}`. +// ion}/engines/{engine}`. func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) List(parent string) *ProjectsLocationsCollectionsDataStoresServingConfigsListCall { c := &ProjectsLocationsCollectionsDataStoresServingConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -20473,7 +20965,7 @@ func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) Do(opts . // "type": "string" // }, // "parent": { - // "description": "Required. The dataStore resource name. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}`", + // "description": "Required. Full resource name of the parent resource. Format: `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", // "required": true, @@ -20528,7 +21020,7 @@ type ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall struct { // // - name: Immutable. Fully qualified name // `projects/{project}/locations/{location}/collections/{collection_id} -// /dataStores/{data_store_id}/servingConfigs/{serving_config_id}`. +// /engines/{engine_id}/servingConfigs/{serving_config_id}`. func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Patch(name string, googleclouddiscoveryenginev1alphaservingconfig *GoogleCloudDiscoveryengineV1alphaServingConfig) *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall { c := &ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -20647,7 +21139,7 @@ func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) Do(opts // ], // "parameters": { // "name": { - // "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`", + // "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", // "required": true, @@ -26960,7 +27452,7 @@ type ProjectsLocationsCollectionsEnginesServingConfigsGetCall struct { // // - name: The resource name of the ServingConfig to get. Format: // `projects/{project_number}/locations/{location}/collections/{collect -// ion}/dataStores/{data_store}/servingConfigs/{serving_config_id}`. +// ion}/engines/{engine}/servingConfigs/{serving_config_id}`. func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Get(name string) *ProjectsLocationsCollectionsEnginesServingConfigsGetCall { c := &ProjectsLocationsCollectionsEnginesServingConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -27077,7 +27569,7 @@ func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) Do(opts ...go // ], // "parameters": { // "name": { - // "description": "Required. The resource name of the ServingConfig to get. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config_id}`", + // "description": "Required. The resource name of the ServingConfig to get. Format: `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/servingConfigs/[^/]+$", // "required": true, @@ -27108,9 +27600,9 @@ type ProjectsLocationsCollectionsEnginesServingConfigsListCall struct { // List: Lists all ServingConfigs linked to this dataStore. // -// - parent: The dataStore resource name. Format: +// - parent: Full resource name of the parent resource. Format: // `projects/{project_number}/locations/{location}/collections/{collect -// ion}/dataStores/{data_store}`. +// ion}/engines/{engine}`. func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) List(parent string) *ProjectsLocationsCollectionsEnginesServingConfigsListCall { c := &ProjectsLocationsCollectionsEnginesServingConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -27255,7 +27747,7 @@ func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) Do(opts ...g // "type": "string" // }, // "parent": { - // "description": "Required. The dataStore resource name. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}`", + // "description": "Required. Full resource name of the parent resource. Format: `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$", // "required": true, @@ -27310,7 +27802,7 @@ type ProjectsLocationsCollectionsEnginesServingConfigsPatchCall struct { // // - name: Immutable. Fully qualified name // `projects/{project}/locations/{location}/collections/{collection_id} -// /dataStores/{data_store_id}/servingConfigs/{serving_config_id}`. +// /engines/{engine_id}/servingConfigs/{serving_config_id}`. func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Patch(name string, googleclouddiscoveryenginev1alphaservingconfig *GoogleCloudDiscoveryengineV1alphaServingConfig) *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall { c := &ProjectsLocationsCollectionsEnginesServingConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -27429,7 +27921,7 @@ func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) Do(opts ... // ], // "parameters": { // "name": { - // "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`", + // "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/servingConfigs/[^/]+$", // "required": true, @@ -28193,7 +28685,7 @@ func (c *ProjectsLocationsDataStoresCompleteQueryCall) Query(query string) *Proj // `document-completable` - Using suggestions taken directly from // user-imported document fields marked as completable. Default values: // * `document` is the default model for regular dataStores. * -// `search-history` is the default model for site search dataStores. * +// `search-history` is the default model for site search dataStores. func (c *ProjectsLocationsDataStoresCompleteQueryCall) QueryModel(queryModel string) *ProjectsLocationsDataStoresCompleteQueryCall { c.urlParams_.Set("queryModel", queryModel) return c @@ -28342,7 +28834,7 @@ func (c *ProjectsLocationsDataStoresCompleteQueryCall) Do(opts ...googleapi.Call // "type": "string" // }, // "queryModel": { - // "description": "Specifies the autocomplete data model. This overrides any model specified in the Configuration \u003e Autocomplete section of the Cloud console. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for site search dataStores. *", + // "description": "Specifies the autocomplete data model. This overrides any model specified in the Configuration \u003e Autocomplete section of the Cloud console. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for site search dataStores.", // "location": "query", // "type": "string" // }, @@ -30812,6 +31304,374 @@ func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) Do(opts ...googl } +// method id "discoveryengine.projects.locations.dataStores.branches.documents.chunks.get": + +type ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a Document. +// +// - name: Full resource name of Chunk, such as +// `projects/{project}/locations/{location}/collections/{collection}/da +// taStores/{data_store}/branches/{branch}/documents/{document}/chunks/ +// {chunk}`. If the caller does not have permission to access the +// Chunk, regardless of whether or not it exists, a +// `PERMISSION_DENIED` error is returned. If the requested Chunk does +// not exist, a `NOT_FOUND` error is returned. +func (r *ProjectsLocationsDataStoresBranchesDocumentsChunksService) Get(name string) *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall { + c := &ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.chunks.get" call. +// Exactly one of *GoogleCloudDiscoveryengineV1alphaChunk or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudDiscoveryengineV1alphaChunk.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaChunk, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudDiscoveryengineV1alphaChunk{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a Document.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/dataStores/{dataStoresId}/branches/{branchesId}/documents/{documentsId}/chunks/{chunksId}", + // "httpMethod": "GET", + // "id": "discoveryengine.projects.locations.dataStores.branches.documents.chunks.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Full resource name of Chunk, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}`. If the caller does not have permission to access the Chunk, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. If the requested Chunk does not exist, a `NOT_FOUND` error is returned.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/branches/[^/]+/documents/[^/]+/chunks/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "GoogleCloudDiscoveryengineV1alphaChunk" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "discoveryengine.projects.locations.dataStores.branches.documents.chunks.list": + +type ProjectsLocationsDataStoresBranchesDocumentsChunksListCall struct { + s *Service + parent string + documentsId string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Gets a list of Chunks. +// +// - documentsId: . +// - parent: The parent document resource name, such as +// `projects/{project}/locations/{location}/collections/{collection}/da +// taStores/{data_store}/branches/{branch}/documents/{document}`. If +// the caller does not have permission to list Chunks under this +// document, regardless of whether or not this document exists, a +// `PERMISSION_DENIED` error is returned. +func (r *ProjectsLocationsDataStoresBranchesDocumentsChunksService) List(parent string, documentsId string) *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall { + c := &ProjectsLocationsDataStoresBranchesDocumentsChunksListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.documentsId = documentsId + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// Chunks to return. If unspecified, defaults to 100. The maximum +// allowed value is 1000. Values above 1000 will be coerced to 1000. If +// this field is negative, an `INVALID_ARGUMENT` error is returned. +func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token +// ListChunksResponse.next_page_token, received from a previous +// ChunkService.ListChunks call. Provide this to retrieve the subsequent +// page. When paginating, all other parameters provided to +// ChunkService.ListChunks must match the call that provided the page +// token. Otherwise, an `INVALID_ARGUMENT` error is returned. +func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/documents/{documentsId}/chunks") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + "documentsId": c.documentsId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.chunks.list" call. +// Exactly one of *GoogleCloudDiscoveryengineV1alphaListChunksResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudDiscoveryengineV1alphaListChunksResponse.ServerResponse.He +// ader or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListChunksResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudDiscoveryengineV1alphaListChunksResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a list of Chunks.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/dataStores/{dataStoresId}/branches/{branchesId}/documents/{documentsId}/chunks", + // "httpMethod": "GET", + // "id": "discoveryengine.projects.locations.dataStores.branches.documents.chunks.list", + // "parameterOrder": [ + // "parent", + // "documentsId" + // ], + // "parameters": { + // "documentsId": { + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "Maximum number of Chunks to return. If unspecified, defaults to 100. The maximum allowed value is 1000. Values above 1000 will be coerced to 1000. If this field is negative, an `INVALID_ARGUMENT` error is returned.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token ListChunksResponse.next_page_token, received from a previous ChunkService.ListChunks call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ChunkService.ListChunks must match the call that provided the page token. Otherwise, an `INVALID_ARGUMENT` error is returned.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent document resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. If the caller does not have permission to list Chunks under this document, regardless of whether or not this document exists, a `PERMISSION_DENIED` error is returned.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/branches/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/documents/{documentsId}/chunks", + // "response": { + // "$ref": "GoogleCloudDiscoveryengineV1alphaListChunksResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListChunksResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + // method id "discoveryengine.projects.locations.dataStores.branches.operations.get": type ProjectsLocationsDataStoresBranchesOperationsGetCall struct { @@ -33671,7 +34531,7 @@ type ProjectsLocationsDataStoresServingConfigsGetCall struct { // // - name: The resource name of the ServingConfig to get. Format: // `projects/{project_number}/locations/{location}/collections/{collect -// ion}/dataStores/{data_store}/servingConfigs/{serving_config_id}`. +// ion}/engines/{engine}/servingConfigs/{serving_config_id}`. func (r *ProjectsLocationsDataStoresServingConfigsService) Get(name string) *ProjectsLocationsDataStoresServingConfigsGetCall { c := &ProjectsLocationsDataStoresServingConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -33788,7 +34648,7 @@ func (c *ProjectsLocationsDataStoresServingConfigsGetCall) Do(opts ...googleapi. // ], // "parameters": { // "name": { - // "description": "Required. The resource name of the ServingConfig to get. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config_id}`", + // "description": "Required. The resource name of the ServingConfig to get. Format: `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", // "required": true, @@ -33819,9 +34679,9 @@ type ProjectsLocationsDataStoresServingConfigsListCall struct { // List: Lists all ServingConfigs linked to this dataStore. // -// - parent: The dataStore resource name. Format: +// - parent: Full resource name of the parent resource. Format: // `projects/{project_number}/locations/{location}/collections/{collect -// ion}/dataStores/{data_store}`. +// ion}/engines/{engine}`. func (r *ProjectsLocationsDataStoresServingConfigsService) List(parent string) *ProjectsLocationsDataStoresServingConfigsListCall { c := &ProjectsLocationsDataStoresServingConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -33966,7 +34826,7 @@ func (c *ProjectsLocationsDataStoresServingConfigsListCall) Do(opts ...googleapi // "type": "string" // }, // "parent": { - // "description": "Required. The dataStore resource name. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}`", + // "description": "Required. Full resource name of the parent resource. Format: `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", // "required": true, @@ -34021,7 +34881,7 @@ type ProjectsLocationsDataStoresServingConfigsPatchCall struct { // // - name: Immutable. Fully qualified name // `projects/{project}/locations/{location}/collections/{collection_id} -// /dataStores/{data_store_id}/servingConfigs/{serving_config_id}`. +// /engines/{engine_id}/servingConfigs/{serving_config_id}`. func (r *ProjectsLocationsDataStoresServingConfigsService) Patch(name string, googleclouddiscoveryenginev1alphaservingconfig *GoogleCloudDiscoveryengineV1alphaServingConfig) *ProjectsLocationsDataStoresServingConfigsPatchCall { c := &ProjectsLocationsDataStoresServingConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -34140,7 +35000,7 @@ func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) Do(opts ...googleap // ], // "parameters": { // "name": { - // "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`", + // "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", // "required": true, diff --git a/discoveryengine/v1beta/discoveryengine-api.json b/discoveryengine/v1beta/discoveryengine-api.json index cadf4795c61..d25471b68b0 100644 --- a/discoveryengine/v1beta/discoveryengine-api.json +++ b/discoveryengine/v1beta/discoveryengine-api.json @@ -214,7 +214,7 @@ "type": "string" }, "queryModel": { - "description": "Specifies the autocomplete data model. This overrides any model specified in the Configuration \u003e Autocomplete section of the Cloud console. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for site search dataStores. *", + "description": "Specifies the autocomplete data model. This overrides any model specified in the Configuration \u003e Autocomplete section of the Cloud console. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for site search dataStores.", "location": "query", "type": "string" }, @@ -1282,7 +1282,7 @@ ], "parameters": { "name": { - "description": "Required. The resource name of the ServingConfig to get. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config_id}`", + "description": "Required. The resource name of the ServingConfig to get. Format: `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", "required": true, @@ -1318,7 +1318,7 @@ "type": "string" }, "parent": { - "description": "Required. The dataStore resource name. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}`", + "description": "Required. Full resource name of the parent resource. Format: `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", "required": true, @@ -1343,7 +1343,7 @@ ], "parameters": { "name": { - "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`", + "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", "required": true, @@ -2492,7 +2492,7 @@ ], "parameters": { "name": { - "description": "Required. The resource name of the ServingConfig to get. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config_id}`", + "description": "Required. The resource name of the ServingConfig to get. Format: `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/servingConfigs/[^/]+$", "required": true, @@ -2528,7 +2528,7 @@ "type": "string" }, "parent": { - "description": "Required. The dataStore resource name. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}`", + "description": "Required. Full resource name of the parent resource. Format: `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$", "required": true, @@ -2553,7 +2553,7 @@ ], "parameters": { "name": { - "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`", + "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/servingConfigs/[^/]+$", "required": true, @@ -2738,7 +2738,7 @@ "type": "string" }, "queryModel": { - "description": "Specifies the autocomplete data model. This overrides any model specified in the Configuration \u003e Autocomplete section of the Cloud console. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for site search dataStores. *", + "description": "Specifies the autocomplete data model. This overrides any model specified in the Configuration \u003e Autocomplete section of the Cloud console. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for site search dataStores.", "location": "query", "type": "string" }, @@ -3734,7 +3734,7 @@ ], "parameters": { "name": { - "description": "Required. The resource name of the ServingConfig to get. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config_id}`", + "description": "Required. The resource name of the ServingConfig to get. Format: `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", "required": true, @@ -3770,7 +3770,7 @@ "type": "string" }, "parent": { - "description": "Required. The dataStore resource name. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}`", + "description": "Required. Full resource name of the parent resource. Format: `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", "required": true, @@ -3795,7 +3795,7 @@ ], "parameters": { "name": { - "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`", + "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", "required": true, @@ -4449,7 +4449,7 @@ } } }, - "revision": "20240305", + "revision": "20240307", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -5872,11 +5872,6 @@ "description": "The full resource name of the Document Processing Config. Format: `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.", "type": "string" }, - "ocrConfig": { - "$ref": "GoogleCloudDiscoveryengineV1alphaOcrConfig", - "deprecated": true, - "description": "[DEPRECATED] This field is deprecated. To specify OCR parsing config, please specify `ocr_parsing_config` in `default_parsing_config` field The OCR config. Currently it only applies to PDFs." - }, "parsingConfigOverrides": { "additionalProperties": { "$ref": "GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig" @@ -5960,10 +5955,6 @@ "description": "Metadata that describes the training and serving parameters of an Engine.", "id": "GoogleCloudDiscoveryengineV1alphaEngine", "properties": { - "allowMultipleDataStoresSearchEngine": { - "description": "Whether the search engine can associate with multiple data stores. If true, the generic search engine can associate with one or more data stores. This is an input-only field.", - "type": "boolean" - }, "chatEngineConfig": { "$ref": "GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig", "description": "Configurations for the Chat Engine. Only applicable if solution_type is SOLUTION_TYPE_CHAT." @@ -6603,29 +6594,6 @@ "properties": {}, "type": "object" }, - "GoogleCloudDiscoveryengineV1alphaOcrConfig": { - "deprecated": true, - "description": "The OCR options for parsing documents.", - "id": "GoogleCloudDiscoveryengineV1alphaOcrConfig", - "properties": { - "enabled": { - "description": "Required. If OCR is enabled or not. OCR must be enabled for other OcrConfig options to apply. We will only perform OCR on the first 80 pages of the PDF files.", - "type": "boolean" - }, - "enhancedDocumentElements": { - "description": "Apply additional enhanced OCR processing to a list of document elements. Supported values: * `table`: advanced table parsing model.", - "items": { - "type": "string" - }, - "type": "array" - }, - "useNativeText": { - "description": "If true, will use native text instead of OCR text on pages containing native text.", - "type": "boolean" - } - }, - "type": "object" - }, "GoogleCloudDiscoveryengineV1alphaOcrParsingConfig": { "description": "The OCR parsing configurations for documents.", "id": "GoogleCloudDiscoveryengineV1alphaOcrParsingConfig", @@ -8964,6 +8932,13 @@ "$ref": "GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec", "description": "A specification for configuring the behavior of content search." }, + "dataStoreSpecs": { + "description": "A list of data store specs to apply on a search call.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec" + }, + "type": "array" + }, "embeddingSpec": { "$ref": "GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec", "description": "Uses the provided embedding to do additional semantic document retrieval. The retrieval is based on the dot product of SearchRequest.EmbeddingSpec.EmbeddingVector.vector and the document embedding that is provided in SearchRequest.EmbeddingSpec.EmbeddingVector.field_path. If SearchRequest.EmbeddingSpec.EmbeddingVector.field_path is not provided, it will use ServingConfig.EmbeddingConfig.field_path." @@ -9173,7 +9148,7 @@ "description": "If specified, the spec will be used to modify the model specification provided to the LLM." }, "summaryResultCount": { - "description": "The number of top results to generate the summary from. If the number of results returned is less than `summaryResultCount`, the summary is generated from all of the results. At most five results can be used to generate a summary.", + "description": "The number of top results to generate the summary from. If the number of results returned is less than `summaryResultCount`, the summary is generated from all of the results. At most 10 results can be used to generate a summary.", "format": "int32", "type": "integer" } @@ -9202,6 +9177,17 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec": { + "description": "A struct to define data stores to filter on in a search call.", + "id": "GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec", + "properties": { + "dataStore": { + "description": "Required. Full resource name of DataStore, such as `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec": { "description": "The specification that uses customized query embedding vector to do semantic document retrieval.", "id": "GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec", @@ -9782,7 +9768,7 @@ "type": "string" }, "name": { - "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`", + "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`", "type": "string" }, "onewaySynonymsControlIds": { @@ -10061,6 +10047,45 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata": { + "description": "Metadata related to the progress of the TrainCustomModel operation. This is returned by the google.longrunning.Operation.metadata field.", + "id": "GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata", + "properties": { + "createTime": { + "description": "Operation create time.", + "format": "google-datetime", + "type": "string" + }, + "updateTime": { + "description": "Operation last update time. If the operation is done, this is also the finish time.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse": { + "description": "Response of the TrainCustomModelRequest. This message is returned by the google.longrunning.Operations.response field.", + "id": "GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse", + "properties": { + "errorConfig": { + "$ref": "GoogleCloudDiscoveryengineV1betaImportErrorConfig", + "description": "Echoes the destination for the complete errors in the request if set." + }, + "errorSamples": { + "description": "A sample of errors encountered while processing the data.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + }, + "modelStatus": { + "description": "The trained model status. Possible values are: * **bad-data**: The training data quality is bad. * **no-improvement**: Tuning didn't improve performance. Won't deploy. * **in-progress**: Model training is in progress. * **ready**: The model is ready for serving.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaTransactionInfo": { "description": "A transaction represents the entire purchase transaction.", "id": "GoogleCloudDiscoveryengineV1betaTransactionInfo", diff --git a/discoveryengine/v1beta/discoveryengine-gen.go b/discoveryengine/v1beta/discoveryengine-gen.go index 9fd4ab84ae7..61cd7ec6384 100644 --- a/discoveryengine/v1beta/discoveryengine-gen.go +++ b/discoveryengine/v1beta/discoveryengine-gen.go @@ -3181,12 +3181,6 @@ type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig struct { // onfig`. Name string `json:"name,omitempty"` - // OcrConfig: [DEPRECATED] This field is deprecated. To specify OCR - // parsing config, please specify `ocr_parsing_config` in - // `default_parsing_config` field The OCR config. Currently it only - // applies to PDFs. - OcrConfig *GoogleCloudDiscoveryengineV1alphaOcrConfig `json:"ocrConfig,omitempty"` - // ParsingConfigOverrides: Map from file type to override the default // parsing configuration based on the file type. Supported keys: * // `pdf`: Override parsing config for PDF files, either digital parsing, @@ -3371,12 +3365,6 @@ type GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchResponse struct { // GoogleCloudDiscoveryengineV1alphaEngine: Metadata that describes the // training and serving parameters of an Engine. type GoogleCloudDiscoveryengineV1alphaEngine struct { - // AllowMultipleDataStoresSearchEngine: Whether the search engine can - // associate with multiple data stores. If true, the generic search - // engine can associate with one or more data stores. This is an - // input-only field. - AllowMultipleDataStoresSearchEngine bool `json:"allowMultipleDataStoresSearchEngine,omitempty"` - // ChatEngineConfig: Configurations for the Chat Engine. Only applicable // if solution_type is SOLUTION_TYPE_CHAT. ChatEngineConfig *GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig `json:"chatEngineConfig,omitempty"` @@ -3459,22 +3447,21 @@ type GoogleCloudDiscoveryengineV1alphaEngine struct { // updated. UpdateTime string `json:"updateTime,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "AllowMultipleDataStoresSearchEngine") to unconditionally include in - // API requests. By default, fields with empty or default values are - // omitted from API requests. However, any non-pointer, non-interface - // field appearing in ForceSendFields will be sent to the server - // regardless of whether the field is empty or not. This may be used to - // include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. "ChatEngineConfig") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. - // "AllowMultipleDataStoresSearchEngine") to include in API requests - // with the JSON null value. By default, fields with empty values are - // omitted from API requests. However, any field with an empty value - // appearing in NullFields will be sent to the server as null. It is an - // error if a field in this list has a non-empty value. This may be used - // to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ChatEngineConfig") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -4449,46 +4436,6 @@ func (s *GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse) MarshalJSON( type GoogleCloudDiscoveryengineV1alphaLayoutParsingConfig struct { } -// GoogleCloudDiscoveryengineV1alphaOcrConfig: The OCR options for -// parsing documents. -type GoogleCloudDiscoveryengineV1alphaOcrConfig struct { - // Enabled: Required. If OCR is enabled or not. OCR must be enabled for - // other OcrConfig options to apply. We will only perform OCR on the - // first 80 pages of the PDF files. - Enabled bool `json:"enabled,omitempty"` - - // EnhancedDocumentElements: Apply additional enhanced OCR processing to - // a list of document elements. Supported values: * `table`: advanced - // table parsing model. - EnhancedDocumentElements []string `json:"enhancedDocumentElements,omitempty"` - - // UseNativeText: If true, will use native text instead of OCR text on - // pages containing native text. - UseNativeText bool `json:"useNativeText,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Enabled") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Enabled") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDiscoveryengineV1alphaOcrConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDiscoveryengineV1alphaOcrConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudDiscoveryengineV1alphaOcrParsingConfig: The OCR parsing // configurations for documents. type GoogleCloudDiscoveryengineV1alphaOcrParsingConfig struct { @@ -8804,6 +8751,9 @@ type GoogleCloudDiscoveryengineV1betaSearchRequest struct { // content search. ContentSearchSpec *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec `json:"contentSearchSpec,omitempty"` + // DataStoreSpecs: A list of data store specs to apply on a search call. + DataStoreSpecs []*GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec `json:"dataStoreSpecs,omitempty"` + // EmbeddingSpec: Uses the provided embedding to do additional semantic // document retrieval. The retrieval is based on the dot product of // SearchRequest.EmbeddingSpec.EmbeddingVector.vector and the document @@ -9254,7 +9204,7 @@ type GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpec s // SummaryResultCount: The number of top results to generate the summary // from. If the number of results returned is less than // `summaryResultCount`, the summary is generated from all of the - // results. At most five results can be used to generate a summary. + // results. At most 10 results can be used to generate a summary. SummaryResultCount int64 `json:"summaryResultCount,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -9347,6 +9297,37 @@ func (s *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySp return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec: A struct +// to define data stores to filter on in a search call. +type GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec struct { + // DataStore: Required. Full resource name of DataStore, such as + // `projects/{project}/locations/{location}/collections/{collection_id}/d + // ataStores/{data_store_id}`. + DataStore string `json:"dataStore,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DataStore") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DataStore") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec: The // specification that uses customized query embedding vector to do // semantic document retrieval. @@ -10370,8 +10351,8 @@ type GoogleCloudDiscoveryengineV1betaServingConfig struct { ModelId string `json:"modelId,omitempty"` // Name: Immutable. Fully qualified name - // `projects/{project}/locations/{location}/collections/{collection_id}/d - // ataStores/{data_store_id}/servingConfigs/{serving_config_id}` + // `projects/{project}/locations/{location}/collections/{collection_id}/e + // ngines/{engine_id}/servingConfigs/{serving_config_id}` Name string `json:"name,omitempty"` // OnewaySynonymsControlIds: Condition oneway synonyms specifications. @@ -10874,6 +10855,82 @@ func (s *GoogleCloudDiscoveryengineV1betaTextInput) MarshalJSON() ([]byte, error return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata: Metadata +// related to the progress of the TrainCustomModel operation. This is +// returned by the google.longrunning.Operation.metadata field. +type GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata struct { + // CreateTime: Operation create time. + CreateTime string `json:"createTime,omitempty"` + + // UpdateTime: Operation last update time. If the operation is done, + // this is also the finish time. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse: Response of +// the TrainCustomModelRequest. This message is returned by the +// google.longrunning.Operations.response field. +type GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse struct { + // ErrorConfig: Echoes the destination for the complete errors in the + // request if set. + ErrorConfig *GoogleCloudDiscoveryengineV1betaImportErrorConfig `json:"errorConfig,omitempty"` + + // ErrorSamples: A sample of errors encountered while processing the + // data. + ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"` + + // ModelStatus: The trained model status. Possible values are: * + // **bad-data**: The training data quality is bad. * **no-improvement**: + // Tuning didn't improve performance. Won't deploy. * **in-progress**: + // Model training is in progress. * **ready**: The model is ready for + // serving. + ModelStatus string `json:"modelStatus,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ErrorConfig") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ErrorConfig") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaTransactionInfo: A transaction // represents the entire purchase transaction. type GoogleCloudDiscoveryengineV1betaTransactionInfo struct { @@ -11843,7 +11900,7 @@ func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Query(query st // `document-completable` - Using suggestions taken directly from // user-imported document fields marked as completable. Default values: // * `document` is the default model for regular dataStores. * -// `search-history` is the default model for site search dataStores. * +// `search-history` is the default model for site search dataStores. func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) QueryModel(queryModel string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall { c.urlParams_.Set("queryModel", queryModel) return c @@ -11991,7 +12048,7 @@ func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Do(opts ...goo // "type": "string" // }, // "queryModel": { - // "description": "Specifies the autocomplete data model. This overrides any model specified in the Configuration \u003e Autocomplete section of the Cloud console. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for site search dataStores. *", + // "description": "Specifies the autocomplete data model. This overrides any model specified in the Configuration \u003e Autocomplete section of the Cloud console. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for site search dataStores.", // "location": "query", // "type": "string" // }, @@ -17342,7 +17399,7 @@ type ProjectsLocationsCollectionsDataStoresServingConfigsGetCall struct { // // - name: The resource name of the ServingConfig to get. Format: // `projects/{project_number}/locations/{location}/collections/{collect -// ion}/dataStores/{data_store}/servingConfigs/{serving_config_id}`. +// ion}/engines/{engine}/servingConfigs/{serving_config_id}`. func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Get(name string) *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall { c := &ProjectsLocationsCollectionsDataStoresServingConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -17459,7 +17516,7 @@ func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) Do(opts .. // ], // "parameters": { // "name": { - // "description": "Required. The resource name of the ServingConfig to get. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config_id}`", + // "description": "Required. The resource name of the ServingConfig to get. Format: `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", // "required": true, @@ -17490,9 +17547,9 @@ type ProjectsLocationsCollectionsDataStoresServingConfigsListCall struct { // List: Lists all ServingConfigs linked to this dataStore. // -// - parent: The dataStore resource name. Format: +// - parent: Full resource name of the parent resource. Format: // `projects/{project_number}/locations/{location}/collections/{collect -// ion}/dataStores/{data_store}`. +// ion}/engines/{engine}`. func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) List(parent string) *ProjectsLocationsCollectionsDataStoresServingConfigsListCall { c := &ProjectsLocationsCollectionsDataStoresServingConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -17637,7 +17694,7 @@ func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) Do(opts . // "type": "string" // }, // "parent": { - // "description": "Required. The dataStore resource name. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}`", + // "description": "Required. Full resource name of the parent resource. Format: `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+$", // "required": true, @@ -17692,7 +17749,7 @@ type ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall struct { // // - name: Immutable. Fully qualified name // `projects/{project}/locations/{location}/collections/{collection_id} -// /dataStores/{data_store_id}/servingConfigs/{serving_config_id}`. +// /engines/{engine_id}/servingConfigs/{serving_config_id}`. func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Patch(name string, googleclouddiscoveryenginev1betaservingconfig *GoogleCloudDiscoveryengineV1betaServingConfig) *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall { c := &ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -17811,7 +17868,7 @@ func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) Do(opts // ], // "parameters": { // "name": { - // "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`", + // "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", // "required": true, @@ -23539,7 +23596,7 @@ type ProjectsLocationsCollectionsEnginesServingConfigsGetCall struct { // // - name: The resource name of the ServingConfig to get. Format: // `projects/{project_number}/locations/{location}/collections/{collect -// ion}/dataStores/{data_store}/servingConfigs/{serving_config_id}`. +// ion}/engines/{engine}/servingConfigs/{serving_config_id}`. func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Get(name string) *ProjectsLocationsCollectionsEnginesServingConfigsGetCall { c := &ProjectsLocationsCollectionsEnginesServingConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -23656,7 +23713,7 @@ func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) Do(opts ...go // ], // "parameters": { // "name": { - // "description": "Required. The resource name of the ServingConfig to get. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config_id}`", + // "description": "Required. The resource name of the ServingConfig to get. Format: `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/servingConfigs/[^/]+$", // "required": true, @@ -23687,9 +23744,9 @@ type ProjectsLocationsCollectionsEnginesServingConfigsListCall struct { // List: Lists all ServingConfigs linked to this dataStore. // -// - parent: The dataStore resource name. Format: +// - parent: Full resource name of the parent resource. Format: // `projects/{project_number}/locations/{location}/collections/{collect -// ion}/dataStores/{data_store}`. +// ion}/engines/{engine}`. func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) List(parent string) *ProjectsLocationsCollectionsEnginesServingConfigsListCall { c := &ProjectsLocationsCollectionsEnginesServingConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -23834,7 +23891,7 @@ func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) Do(opts ...g // "type": "string" // }, // "parent": { - // "description": "Required. The dataStore resource name. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}`", + // "description": "Required. Full resource name of the parent resource. Format: `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$", // "required": true, @@ -23889,7 +23946,7 @@ type ProjectsLocationsCollectionsEnginesServingConfigsPatchCall struct { // // - name: Immutable. Fully qualified name // `projects/{project}/locations/{location}/collections/{collection_id} -// /dataStores/{data_store_id}/servingConfigs/{serving_config_id}`. +// /engines/{engine_id}/servingConfigs/{serving_config_id}`. func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Patch(name string, googleclouddiscoveryenginev1betaservingconfig *GoogleCloudDiscoveryengineV1betaServingConfig) *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall { c := &ProjectsLocationsCollectionsEnginesServingConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -24008,7 +24065,7 @@ func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) Do(opts ... // ], // "parameters": { // "name": { - // "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`", + // "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/servingConfigs/[^/]+$", // "required": true, @@ -24770,7 +24827,7 @@ func (c *ProjectsLocationsDataStoresCompleteQueryCall) Query(query string) *Proj // `document-completable` - Using suggestions taken directly from // user-imported document fields marked as completable. Default values: // * `document` is the default model for regular dataStores. * -// `search-history` is the default model for site search dataStores. * +// `search-history` is the default model for site search dataStores. func (c *ProjectsLocationsDataStoresCompleteQueryCall) QueryModel(queryModel string) *ProjectsLocationsDataStoresCompleteQueryCall { c.urlParams_.Set("queryModel", queryModel) return c @@ -24918,7 +24975,7 @@ func (c *ProjectsLocationsDataStoresCompleteQueryCall) Do(opts ...googleapi.Call // "type": "string" // }, // "queryModel": { - // "description": "Specifies the autocomplete data model. This overrides any model specified in the Configuration \u003e Autocomplete section of the Cloud console. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for site search dataStores. *", + // "description": "Specifies the autocomplete data model. This overrides any model specified in the Configuration \u003e Autocomplete section of the Cloud console. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for site search dataStores.", // "location": "query", // "type": "string" // }, @@ -29914,7 +29971,7 @@ type ProjectsLocationsDataStoresServingConfigsGetCall struct { // // - name: The resource name of the ServingConfig to get. Format: // `projects/{project_number}/locations/{location}/collections/{collect -// ion}/dataStores/{data_store}/servingConfigs/{serving_config_id}`. +// ion}/engines/{engine}/servingConfigs/{serving_config_id}`. func (r *ProjectsLocationsDataStoresServingConfigsService) Get(name string) *ProjectsLocationsDataStoresServingConfigsGetCall { c := &ProjectsLocationsDataStoresServingConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -30031,7 +30088,7 @@ func (c *ProjectsLocationsDataStoresServingConfigsGetCall) Do(opts ...googleapi. // ], // "parameters": { // "name": { - // "description": "Required. The resource name of the ServingConfig to get. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config_id}`", + // "description": "Required. The resource name of the ServingConfig to get. Format: `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", // "required": true, @@ -30062,9 +30119,9 @@ type ProjectsLocationsDataStoresServingConfigsListCall struct { // List: Lists all ServingConfigs linked to this dataStore. // -// - parent: The dataStore resource name. Format: +// - parent: Full resource name of the parent resource. Format: // `projects/{project_number}/locations/{location}/collections/{collect -// ion}/dataStores/{data_store}`. +// ion}/engines/{engine}`. func (r *ProjectsLocationsDataStoresServingConfigsService) List(parent string) *ProjectsLocationsDataStoresServingConfigsListCall { c := &ProjectsLocationsDataStoresServingConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -30209,7 +30266,7 @@ func (c *ProjectsLocationsDataStoresServingConfigsListCall) Do(opts ...googleapi // "type": "string" // }, // "parent": { - // "description": "Required. The dataStore resource name. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}`", + // "description": "Required. Full resource name of the parent resource. Format: `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/dataStores/[^/]+$", // "required": true, @@ -30264,7 +30321,7 @@ type ProjectsLocationsDataStoresServingConfigsPatchCall struct { // // - name: Immutable. Fully qualified name // `projects/{project}/locations/{location}/collections/{collection_id} -// /dataStores/{data_store_id}/servingConfigs/{serving_config_id}`. +// /engines/{engine_id}/servingConfigs/{serving_config_id}`. func (r *ProjectsLocationsDataStoresServingConfigsService) Patch(name string, googleclouddiscoveryenginev1betaservingconfig *GoogleCloudDiscoveryengineV1betaServingConfig) *ProjectsLocationsDataStoresServingConfigsPatchCall { c := &ProjectsLocationsDataStoresServingConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -30383,7 +30440,7 @@ func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) Do(opts ...googleap // ], // "parameters": { // "name": { - // "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`", + // "description": "Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+$", // "required": true, diff --git a/documentai/v1/documentai-api.json b/documentai/v1/documentai-api.json index a9b222822f4..53904a1f949 100644 --- a/documentai/v1/documentai-api.json +++ b/documentai/v1/documentai-api.json @@ -1042,7 +1042,7 @@ } } }, - "revision": "20240223", + "revision": "20240307", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": { @@ -4646,6 +4646,10 @@ "$ref": "GoogleCloudDocumentaiV1DocumentSchema", "description": "Optional. The schema the processor version will be trained with." }, + "foundationModelTuningOptions": { + "$ref": "GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions", + "description": "Options to control foundation model tuning of a processor." + }, "inputData": { "$ref": "GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData", "description": "Optional. The input data used to train the ProcessorVersion." @@ -4678,6 +4682,23 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions": { + "description": "Options to control foundation model tuning of the processor.", + "id": "GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions", + "properties": { + "learningRateMultiplier": { + "description": "Optional. The multiplier to apply to the recommended learning rate. Valid values are between 0.1 and 10. If not provided, recommended learning rate will be used.", + "format": "float", + "type": "number" + }, + "trainSteps": { + "description": "Optional. The number of steps to run for model tuning. Valid values are between 1 and 400. If not provided, recommended steps will be used.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData": { "description": "The input data used to train a new ProcessorVersion.", "id": "GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData", diff --git a/documentai/v1/documentai-gen.go b/documentai/v1/documentai-gen.go index f5a9895c80c..d9e9eb21a3a 100644 --- a/documentai/v1/documentai-gen.go +++ b/documentai/v1/documentai-gen.go @@ -6384,6 +6384,10 @@ type GoogleCloudDocumentaiV1TrainProcessorVersionRequest struct { // trained with. DocumentSchema *GoogleCloudDocumentaiV1DocumentSchema `json:"documentSchema,omitempty"` + // FoundationModelTuningOptions: Options to control foundation model + // tuning of a processor. + FoundationModelTuningOptions *GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions `json:"foundationModelTuningOptions,omitempty"` + // InputData: Optional. The input data used to train the // ProcessorVersion. InputData *GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData `json:"inputData,omitempty"` @@ -6452,6 +6456,59 @@ func (s *GoogleCloudDocumentaiV1TrainProcessorVersionRequestCustomDocumentExtrac return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuni +// ngOptions: Options to control foundation model tuning of the +// processor. +type GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions struct { + // LearningRateMultiplier: Optional. The multiplier to apply to the + // recommended learning rate. Valid values are between 0.1 and 10. If + // not provided, recommended learning rate will be used. + LearningRateMultiplier float64 `json:"learningRateMultiplier,omitempty"` + + // TrainSteps: Optional. The number of steps to run for model tuning. + // Valid values are between 1 and 400. If not provided, recommended + // steps will be used. + TrainSteps int64 `json:"trainSteps,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "LearningRateMultiplier") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LearningRateMultiplier") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions + var s1 struct { + LearningRateMultiplier gensupport.JSONFloat64 `json:"learningRateMultiplier"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.LearningRateMultiplier = float64(s1.LearningRateMultiplier) + return nil +} + // GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData: The // input data used to train a new ProcessorVersion. type GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData struct { diff --git a/documentai/v1beta3/documentai-api.json b/documentai/v1beta3/documentai-api.json index 83a99076390..da791fcf496 100644 --- a/documentai/v1beta3/documentai-api.json +++ b/documentai/v1beta3/documentai-api.json @@ -1284,7 +1284,7 @@ } } }, - "revision": "20240223", + "revision": "20240307", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": { @@ -7862,7 +7862,7 @@ "description": "The source processor version to import from. It can be from a different environment and region than the destination processor." }, "processorVersionSource": { - "description": "The source processor version to import from. The source processor version and destination processor need to be in the same environment and region.", + "description": "The source processor version to import from. The source processor version and destination processor need to be in the same environment and region. Note that ProcessorVersions with `model_type` `MODEL_TYPE_LLM` are not supported.", "type": "string" } }, diff --git a/documentai/v1beta3/documentai-gen.go b/documentai/v1beta3/documentai-gen.go index c7d575e6f37..d3f5a9f4361 100644 --- a/documentai/v1beta3/documentai-gen.go +++ b/documentai/v1beta3/documentai-gen.go @@ -11328,7 +11328,8 @@ type GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequest struct { // ProcessorVersionSource: The source processor version to import from. // The source processor version and destination processor need to be in - // the same environment and region. + // the same environment and region. Note that ProcessorVersions with + // `model_type` `MODEL_TYPE_LLM` are not supported. ProcessorVersionSource string `json:"processorVersionSource,omitempty"` // ForceSendFields is a list of field names (e.g. diff --git a/spanner/v1/spanner-api.json b/spanner/v1/spanner-api.json index b5a2d670221..0fac5168e29 100644 --- a/spanner/v1/spanner-api.json +++ b/spanner/v1/spanner-api.json @@ -2729,7 +2729,7 @@ } } }, - "revision": "20240228", + "revision": "20240307", "rootUrl": "https://spanner.googleapis.com/", "schemas": { "AutoscalingConfig": { @@ -2944,6 +2944,10 @@ "description": "The request for BatchWrite.", "id": "BatchWriteRequest", "properties": { + "excludeTxnFromChangeStreams": { + "description": "Optional. When `exclude_txn_from_change_streams` is set to `true`: * Mutations from all transactions in this batch write operation will not be recorded in change streams with DDL option `allow_txn_exclusion=true` that are tracking columns modified by these transactions. * Mutations from all transactions in this batch write operation will be recorded in change streams with DDL option `allow_txn_exclusion=false or not set` that are tracking columns modified by these transactions. When `exclude_txn_from_change_streams` is set to `false` or not set, mutations from all transactions in this batch write operation will be recorded in all change streams that are tracking columns modified by these transactions.", + "type": "boolean" + }, "mutationGroups": { "description": "Required. The groups of mutations to be applied.", "items": { @@ -5555,6 +5559,10 @@ "description": "The labels for the session. * Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. * Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. * No more than 64 labels can be associated with a given session. See https://goo.gl/xmQnxf for more information on and examples of labels.", "type": "object" }, + "multiplexed": { + "description": "Optional. If true, specifies a multiplexed session. A multiplexed session may be used for multiple, concurrent read-only operations but can not be used for read-write transactions, partitioned reads, or partitioned queries. Multiplexed sessions can be created via CreateSession but not via BatchCreateSessions. Multiplexed sessions may not be deleted nor listed.", + "type": "boolean" + }, "name": { "description": "Output only. The name of the session. This is always system-assigned.", "readOnly": true, @@ -5709,6 +5717,10 @@ "description": "Transactions: Each session can have at most one active transaction at a time (note that standalone reads and queries use a transaction internally and do count towards the one transaction limit). After the active transaction is completed, the session can immediately be re-used for the next transaction. It is not necessary to create a new session for each transaction. Transaction modes: Cloud Spanner supports three transaction modes: 1. Locking read-write. This type of transaction is the only way to write data into Cloud Spanner. These transactions rely on pessimistic locking and, if necessary, two-phase commit. Locking read-write transactions may abort, requiring the application to retry. 2. Snapshot read-only. Snapshot read-only transactions provide guaranteed consistency across several reads, but do not allow writes. Snapshot read-only transactions can be configured to read at timestamps in the past, or configured to perform a strong read (where Spanner will select a timestamp such that the read is guaranteed to see the effects of all transactions that have committed before the start of the read). Snapshot read-only transactions do not need to be committed. Queries on change streams must be performed with the snapshot read-only transaction mode, specifying a strong read. Please see TransactionOptions.ReadOnly.strong for more details. 3. Partitioned DML. This type of transaction is used to execute a single Partitioned DML statement. Partitioned DML partitions the key space and runs the DML statement over each partition in parallel using separate, internal transactions that commit independently. Partitioned DML transactions do not need to be committed. For transactions that only read, snapshot read-only transactions provide simpler semantics and are almost always faster. In particular, read-only transactions do not take locks, so they do not conflict with read-write transactions. As a consequence of not taking locks, they also do not abort, so retry loops are not needed. Transactions may only read-write data in a single database. They may, however, read-write data in different tables within that database. Locking read-write transactions: Locking transactions may be used to atomically read-modify-write data anywhere in a database. This type of transaction is externally consistent. Clients should attempt to minimize the amount of time a transaction is active. Faster transactions commit with higher probability and cause less contention. Cloud Spanner attempts to keep read locks active as long as the transaction continues to do reads, and the transaction has not been terminated by Commit or Rollback. Long periods of inactivity at the client may cause Cloud Spanner to release a transaction's locks and abort it. Conceptually, a read-write transaction consists of zero or more reads or SQL statements followed by Commit. At any time before Commit, the client can send a Rollback request to abort the transaction. Semantics: Cloud Spanner can commit the transaction if all read locks it acquired are still valid at commit time, and it is able to acquire write locks for all writes. Cloud Spanner can abort the transaction for any reason. If a commit attempt returns `ABORTED`, Cloud Spanner guarantees that the transaction has not modified any user data in Cloud Spanner. Unless the transaction commits, Cloud Spanner makes no guarantees about how long the transaction's locks were held for. It is an error to use Cloud Spanner locks for any sort of mutual exclusion other than between Cloud Spanner transactions themselves. Retrying aborted transactions: When a transaction aborts, the application can choose to retry the whole transaction again. To maximize the chances of successfully committing the retry, the client should execute the retry in the same session as the original attempt. The original session's lock priority increases with each consecutive abort, meaning that each attempt has a slightly better chance of success than the previous. Under some circumstances (for example, many transactions attempting to modify the same row(s)), a transaction can abort many times in a short period before successfully committing. Thus, it is not a good idea to cap the number of retries a transaction can attempt; instead, it is better to limit the total amount of time spent retrying. Idle transactions: A transaction is considered idle if it has no outstanding reads or SQL queries and has not started a read or SQL query within the last 10 seconds. Idle transactions can be aborted by Cloud Spanner so that they don't hold on to locks indefinitely. If an idle transaction is aborted, the commit will fail with error `ABORTED`. If this behavior is undesirable, periodically executing a simple SQL query in the transaction (for example, `SELECT 1`) prevents the transaction from becoming idle. Snapshot read-only transactions: Snapshot read-only transactions provides a simpler method than locking read-write transactions for doing several consistent reads. However, this type of transaction does not support writes. Snapshot transactions do not take locks. Instead, they work by choosing a Cloud Spanner timestamp, then executing all reads at that timestamp. Since they do not acquire locks, they do not block concurrent read-write transactions. Unlike locking read-write transactions, snapshot read-only transactions never abort. They can fail if the chosen read timestamp is garbage collected; however, the default garbage collection policy is generous enough that most applications do not need to worry about this in practice. Snapshot read-only transactions do not need to call Commit or Rollback (and in fact are not permitted to do so). To execute a snapshot transaction, the client specifies a timestamp bound, which tells Cloud Spanner how to choose a read timestamp. The types of timestamp bound are: - Strong (the default). - Bounded staleness. - Exact staleness. If the Cloud Spanner database to be read is geographically distributed, stale read-only transactions can execute more quickly than strong or read-write transactions, because they are able to execute far from the leader replica. Each type of timestamp bound is discussed in detail below. Strong: Strong reads are guaranteed to see the effects of all transactions that have committed before the start of the read. Furthermore, all rows yielded by a single read are consistent with each other -- if any part of the read observes a transaction, all parts of the read see the transaction. Strong reads are not repeatable: two consecutive strong read-only transactions might return inconsistent results if there are concurrent writes. If consistency across reads is required, the reads should be executed within a transaction or at an exact read timestamp. Queries on change streams (see below for more details) must also specify the strong read timestamp bound. See TransactionOptions.ReadOnly.strong. Exact staleness: These timestamp bounds execute reads at a user-specified timestamp. Reads at a timestamp are guaranteed to see a consistent prefix of the global transaction history: they observe modifications done by all transactions with a commit timestamp less than or equal to the read timestamp, and observe none of the modifications done by transactions with a larger commit timestamp. They will block until all conflicting transactions that may be assigned commit timestamps \u003c= the read timestamp have finished. The timestamp can either be expressed as an absolute Cloud Spanner commit timestamp or a staleness relative to the current time. These modes do not require a \"negotiation phase\" to pick a timestamp. As a result, they execute slightly faster than the equivalent boundedly stale concurrency modes. On the other hand, boundedly stale reads usually return fresher results. See TransactionOptions.ReadOnly.read_timestamp and TransactionOptions.ReadOnly.exact_staleness. Bounded staleness: Bounded staleness modes allow Cloud Spanner to pick the read timestamp, subject to a user-provided staleness bound. Cloud Spanner chooses the newest timestamp within the staleness bound that allows execution of the reads at the closest available replica without blocking. All rows yielded are consistent with each other -- if any part of the read observes a transaction, all parts of the read see the transaction. Boundedly stale reads are not repeatable: two stale reads, even if they use the same staleness bound, can execute at different timestamps and thus return inconsistent results. Boundedly stale reads execute in two phases: the first phase negotiates a timestamp among all replicas needed to serve the read. In the second phase, reads are executed at the negotiated timestamp. As a result of the two phase execution, bounded staleness reads are usually a little slower than comparable exact staleness reads. However, they are typically able to return fresher results, and are more likely to execute at the closest replica. Because the timestamp negotiation requires up-front knowledge of which rows will be read, it can only be used with single-use read-only transactions. See TransactionOptions.ReadOnly.max_staleness and TransactionOptions.ReadOnly.min_read_timestamp. Old read timestamps and garbage collection: Cloud Spanner continuously garbage collects deleted and overwritten data in the background to reclaim storage space. This process is known as \"version GC\". By default, version GC reclaims versions after they are one hour old. Because of this, Cloud Spanner cannot perform reads at read timestamps more than one hour in the past. This restriction also applies to in-progress reads and/or SQL queries whose timestamp become too old while executing. Reads and SQL queries with too-old read timestamps fail with the error `FAILED_PRECONDITION`. You can configure and extend the `VERSION_RETENTION_PERIOD` of a database up to a period as long as one week, which allows Cloud Spanner to perform reads up to one week in the past. Querying change Streams: A Change Stream is a schema object that can be configured to watch data changes on the entire database, a set of tables, or a set of columns in a database. When a change stream is created, Spanner automatically defines a corresponding SQL Table-Valued Function (TVF) that can be used to query the change records in the associated change stream using the ExecuteStreamingSql API. The name of the TVF for a change stream is generated from the name of the change stream: READ_. All queries on change stream TVFs must be executed using the ExecuteStreamingSql API with a single-use read-only transaction with a strong read-only timestamp_bound. The change stream TVF allows users to specify the start_timestamp and end_timestamp for the time range of interest. All change records within the retention period is accessible using the strong read-only timestamp_bound. All other TransactionOptions are invalid for change stream queries. In addition, if TransactionOptions.read_only.return_read_timestamp is set to true, a special value of 2^63 - 2 will be returned in the Transaction message that describes the transaction, instead of a valid read timestamp. This special value should be discarded and not used for any subsequent queries. Please see https://cloud.google.com/spanner/docs/change-streams for more details on how to query the change stream TVFs. Partitioned DML transactions: Partitioned DML transactions are used to execute DML statements with a different execution strategy that provides different, and often better, scalability properties for large, table-wide operations than DML in a ReadWrite transaction. Smaller scoped statements, such as an OLTP workload, should prefer using ReadWrite transactions. Partitioned DML partitions the keyspace and runs the DML statement on each partition in separate, internal transactions. These transactions commit automatically when complete, and run independently from one another. To reduce lock contention, this execution strategy only acquires read locks on rows that match the WHERE clause of the statement. Additionally, the smaller per-partition transactions hold locks for less time. That said, Partitioned DML is not a drop-in replacement for standard DML used in ReadWrite transactions. - The DML statement must be fully-partitionable. Specifically, the statement must be expressible as the union of many statements which each access only a single row of the table. - The statement is not applied atomically to all rows of the table. Rather, the statement is applied atomically to partitions of the table, in independent transactions. Secondary index rows are updated atomically with the base table rows. - Partitioned DML does not guarantee exactly-once execution semantics against a partition. The statement will be applied at least once to each partition. It is strongly recommended that the DML statement should be idempotent to avoid unexpected results. For instance, it is potentially dangerous to run a statement such as `UPDATE table SET column = column + 1` as it could be run multiple times against some rows. - The partitions are committed automatically - there is no support for Commit or Rollback. If the call returns an error, or if the client issuing the ExecuteSql call dies, it is possible that some rows had the statement executed on them successfully. It is also possible that statement was never executed against other rows. - Partitioned DML transactions may only contain the execution of a single DML statement via ExecuteSql or ExecuteStreamingSql. - If any error is encountered during the execution of the partitioned DML operation (for instance, a UNIQUE INDEX violation, division by zero, or a value that cannot be stored due to schema constraints), then the operation is stopped at that point and an error is returned. It is possible that at this point, some partitions have been committed (or even committed multiple times), and other partitions have not been run at all. Given the above, Partitioned DML is good fit for large, database-wide, operations that are idempotent, such as deleting old rows from a very large table.", "id": "TransactionOptions", "properties": { + "excludeTxnFromChangeStreams": { + "description": "When `exclude_txn_from_change_streams` is set to `true`: * Mutations from this transaction will not be recorded in change streams with DDL option `allow_txn_exclusion=true` that are tracking columns modified by these transactions. * Mutations from this transaction will be recorded in change streams with DDL option `allow_txn_exclusion=false or not set` that are tracking columns modified by these transactions. When `exclude_txn_from_change_streams` is set to `false` or not set, mutations from this transaction will be recorded in all change streams that are tracking columns modified by these transactions. `exclude_txn_from_change_streams` may only be specified for read-write or partitioned-dml transactions, otherwise the API will return an `INVALID_ARGUMENT` error.", + "type": "boolean" + }, "partitionedDml": { "$ref": "PartitionedDml", "description": "Partitioned DML transaction. Authorization to begin a Partitioned DML transaction requires `spanner.databases.beginPartitionedDmlTransaction` permission on the `session` resource." diff --git a/spanner/v1/spanner-gen.go b/spanner/v1/spanner-gen.go index 7f742613739..87c77f1b416 100644 --- a/spanner/v1/spanner-gen.go +++ b/spanner/v1/spanner-gen.go @@ -738,27 +738,42 @@ func (s *BatchCreateSessionsResponse) MarshalJSON() ([]byte, error) { // BatchWriteRequest: The request for BatchWrite. type BatchWriteRequest struct { + // ExcludeTxnFromChangeStreams: Optional. When + // `exclude_txn_from_change_streams` is set to `true`: * Mutations from + // all transactions in this batch write operation will not be recorded + // in change streams with DDL option `allow_txn_exclusion=true` that are + // tracking columns modified by these transactions. * Mutations from all + // transactions in this batch write operation will be recorded in change + // streams with DDL option `allow_txn_exclusion=false or not set` that + // are tracking columns modified by these transactions. When + // `exclude_txn_from_change_streams` is set to `false` or not set, + // mutations from all transactions in this batch write operation will be + // recorded in all change streams that are tracking columns modified by + // these transactions. + ExcludeTxnFromChangeStreams bool `json:"excludeTxnFromChangeStreams,omitempty"` + // MutationGroups: Required. The groups of mutations to be applied. MutationGroups []*MutationGroup `json:"mutationGroups,omitempty"` // RequestOptions: Common options for this request. RequestOptions *RequestOptions `json:"requestOptions,omitempty"` - // ForceSendFields is a list of field names (e.g. "MutationGroups") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. + // "ExcludeTxnFromChangeStreams") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MutationGroups") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. + // "ExcludeTxnFromChangeStreams") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. NullFields []string `json:"-"` } @@ -5662,6 +5677,14 @@ type Session struct { // more information on and examples of labels. Labels map[string]string `json:"labels,omitempty"` + // Multiplexed: Optional. If true, specifies a multiplexed session. A + // multiplexed session may be used for multiple, concurrent read-only + // operations but can not be used for read-write transactions, + // partitioned reads, or partitioned queries. Multiplexed sessions can + // be created via CreateSession but not via BatchCreateSessions. + // Multiplexed sessions may not be deleted nor listed. + Multiplexed bool `json:"multiplexed,omitempty"` + // Name: Output only. The name of the session. This is always // system-assigned. Name string `json:"name,omitempty"` @@ -6209,6 +6232,21 @@ func (s *Transaction) MarshalJSON() ([]byte, error) { // operations that are idempotent, such as deleting old rows from a very // large table. type TransactionOptions struct { + // ExcludeTxnFromChangeStreams: When `exclude_txn_from_change_streams` + // is set to `true`: * Mutations from this transaction will not be + // recorded in change streams with DDL option `allow_txn_exclusion=true` + // that are tracking columns modified by these transactions. * Mutations + // from this transaction will be recorded in change streams with DDL + // option `allow_txn_exclusion=false or not set` that are tracking + // columns modified by these transactions. When + // `exclude_txn_from_change_streams` is set to `false` or not set, + // mutations from this transaction will be recorded in all change + // streams that are tracking columns modified by these transactions. + // `exclude_txn_from_change_streams` may only be specified for + // read-write or partitioned-dml transactions, otherwise the API will + // return an `INVALID_ARGUMENT` error. + ExcludeTxnFromChangeStreams bool `json:"excludeTxnFromChangeStreams,omitempty"` + // PartitionedDml: Partitioned DML transaction. Authorization to begin a // Partitioned DML transaction requires // `spanner.databases.beginPartitionedDmlTransaction` permission on the @@ -6227,21 +6265,22 @@ type TransactionOptions struct { // the `session` resource. ReadWrite *ReadWrite `json:"readWrite,omitempty"` - // ForceSendFields is a list of field names (e.g. "PartitionedDml") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. + // "ExcludeTxnFromChangeStreams") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PartitionedDml") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. + // "ExcludeTxnFromChangeStreams") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. NullFields []string `json:"-"` } diff --git a/walletobjects/v1/walletobjects-api.json b/walletobjects/v1/walletobjects-api.json index 3b93de33dd8..e25aeb083d4 100644 --- a/walletobjects/v1/walletobjects-api.json +++ b/walletobjects/v1/walletobjects-api.json @@ -2681,7 +2681,7 @@ } } }, - "revision": "20240220", + "revision": "20240312", "rootUrl": "https://walletobjects.googleapis.com/", "schemas": { "ActivationOptions": { @@ -3153,11 +3153,11 @@ "properties": { "updateRequestUrl": { "deprecated": true, - "description": "URL for the merchant endpoint that would be called to request updates. The URL should be hosted on HTTPS and robots.txt should allow the URL path to be accessible by UserAgent:Google-Valuables. Deprecated.", + "description": "URL for the merchant endpoint that would be called to request updates. The URL should be hosted on HTTPS and robots.txt should allow the URL path to be accessible by UserAgent:Googlebot. Deprecated.", "type": "string" }, "url": { - "description": "The HTTPS url configured by the merchant. The URL should be hosted on HTTPS and robots.txt should allow the URL path to be accessible by UserAgent:Google-Valuables.", + "description": "The HTTPS url configured by the merchant. The URL should be hosted on HTTPS and robots.txt should allow the URL path to be accessible by UserAgent:Googlebot.", "type": "string" } }, diff --git a/walletobjects/v1/walletobjects-gen.go b/walletobjects/v1/walletobjects-gen.go index c0bc3a65c70..4e67469400a 100644 --- a/walletobjects/v1/walletobjects-gen.go +++ b/walletobjects/v1/walletobjects-gen.go @@ -986,13 +986,13 @@ func (s *BoardingAndSeatingPolicy) MarshalJSON() ([]byte, error) { type CallbackOptions struct { // UpdateRequestUrl: URL for the merchant endpoint that would be called // to request updates. The URL should be hosted on HTTPS and robots.txt - // should allow the URL path to be accessible by - // UserAgent:Google-Valuables. Deprecated. + // should allow the URL path to be accessible by UserAgent:Googlebot. + // Deprecated. UpdateRequestUrl string `json:"updateRequestUrl,omitempty"` // Url: The HTTPS url configured by the merchant. The URL should be // hosted on HTTPS and robots.txt should allow the URL path to be - // accessible by UserAgent:Google-Valuables. + // accessible by UserAgent:Googlebot. Url string `json:"url,omitempty"` // ForceSendFields is a list of field names (e.g. "UpdateRequestUrl") to