Skip to content

Commit 4dc218a

Browse files
committed
Merge branch 'nodejs-error-reporting-migration' of github.com:googleapis/google-cloud-node into nodejs-error-reporting-migration
2 parents 364cb33 + aedfc73 commit 4dc218a

43 files changed

Lines changed: 3790 additions & 204 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"packages/google-cloud-configdelivery": "0.1.1",
6868
"packages/google-cloud-connectors": "0.5.1",
6969
"packages/google-cloud-contactcenterinsights": "4.1.1",
70-
"packages/google-cloud-contentwarehouse": "2.3.0",
70+
"packages/google-cloud-contentwarehouse": "2.4.0",
7171
"packages/google-cloud-datacatalog": "5.2.1",
7272
"packages/google-cloud-datacatalog-lineage": "2.1.1",
7373
"packages/google-cloud-dataform": "2.2.1",

changelog.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
{
22
"repository": "googleapis/google-cloud-node",
33
"entries": [
4+
{
5+
"changes": [
6+
{
7+
"type": "feat",
8+
"sha": "7eb5628e05f7592c7c3857035f82e9f44d8d4ef4",
9+
"message": "[contentwarehouse] Added a field for enabling image and table annotation for layout parser processor",
10+
"issues": [
11+
"7319"
12+
]
13+
}
14+
],
15+
"version": "2.4.0",
16+
"language": "JAVASCRIPT",
17+
"artifactName": "@google-cloud/contentwarehouse",
18+
"id": "cfb064a7-0554-4ef7-ae1e-824c41504a8a",
19+
"createTime": "2026-03-04T19:33:12.038Z"
20+
},
421
{
522
"changes": [
623
{
@@ -68685,5 +68702,5 @@
6868568702
"createTime": "2023-01-28T04:18:24.718Z"
6868668703
}
6868768704
],
68688-
"updateTime": "2026-03-02T16:41:40.032Z"
68705+
"updateTime": "2026-03-04T19:33:12.038Z"
6868968706
}

handwritten/error-reporting/README.md

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010

1111

1212

13-
> Node.js idiomatic client for [Error Reporting][product-docs].
14-
15-
[Error Reporting](https://cloud.google.com/error-reporting/docs/) aggregates and displays errors produced in your running cloud services.
13+
Error Reporting Client Library for Node.js
1614

1715

1816
A comprehensive list of changes in each version may be found in
@@ -45,7 +43,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].
4543

4644
1. [Select or create a Cloud Platform project][projects].
4745
1. [Enable the Error Reporting API][enable_api].
48-
1. [Set up authentication with a service account][auth] so you can access the
46+
1. [Set up authentication][auth] so you can access the
4947
API from your local workstation.
5048

5149
### Installing the client library
@@ -54,35 +52,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].
5452
npm install @google-cloud/error-reporting
5553
```
5654

57-
This module provides custom Error Reporting support for Node.js applications.
58-
[Error Reporting](https://cloud.google.com/error-reporting/) is a feature of
59-
Google Cloud Platform that allows in-depth monitoring and viewing of errors reported by
60-
applications running in almost any environment.
61-
62-
However, note that [@google-cloud/logging-winston](https://github.com/googleapis/nodejs-logging-winston) and [@google-cloud/logging-bunyan](https://github.com/googleapis/nodejs-logging-bunyan) automatically integrate with the Error Reporting service for Error objects logged at severity `error` or higher, for applications running on Google Cloud Platform.
63-
64-
Thus, if you are already using Winston or Bunyan in your application, and don't need custom error reporting capabilities, you do not need to use the `@google-cloud/error-reporting` library directly to report errors to the Error Reporting Console.
65-
66-
![Error Reporting overview](https://raw.githubusercontent.com/googleapis/nodejs-error-reporting/master/doc/images/errors-overview.png)
67-
68-
# When Errors Are Reported
69-
70-
The `reportMode` configuration option is used to specify when errors are reported to the Error Reporting Console. It can have one of three values:
71-
* `'production'` (default): Only report errors if the NODE_ENV environment variable is set to "production".
72-
* `'always'`: Always report errors regardless of the value of NODE_ENV.
73-
* `'never'`: Never report errors regardless of the value of NODE_ENV.
74-
75-
The `reportMode` configuration option replaces the deprecated `ignoreEnvironmentCheck` configuration option. If both the `reportMode` and `ignoreEnvironmentCheck` options are specified, the `reportMode` configuration option takes precedence.
76-
77-
The `ignoreEnvironmentCheck` option should not be used. However, if it is used, and the `reportMode` option is not specified, it can have the values:
78-
* `false` (default): Only report errors if the NODE_ENV environment variable is set to "production".
79-
* `true`: Always report errors regardless of the value of NODE_ENV.
80-
81-
## Setup, Configuration, and Examples
82-
83-
See the documentation for setup instructions, configuration options, and examples: https://cloud.google.com/error-reporting/docs/setup/nodejs
8455

85-
Additional code samples can also be found here: https://github.com/GoogleCloudPlatform/nodejs-docs-samples/tree/main/error-reporting
8656

8757

8858

@@ -152,4 +122,4 @@ See [LICENSE](https://github.com/googleapis/nodejs-error-reporting/blob/main/LIC
152122
[projects]: https://console.cloud.google.com/project
153123
[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
154124
[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=clouderrorreporting.googleapis.com
155-
[auth]: https://cloud.google.com/docs/authentication/getting-started
125+
[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local

handwritten/storage/system-test/fixtures/index-cjs.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
/* eslint-disable node/no-missing-require, no-unused-vars, no-undef */
15+
// eslint-disable-next-line no-undef
1616
const {Storage} = require('@google-cloud/storage');
1717

1818
function main() {
19+
// eslint-disable-next-line no-unused-vars
1920
const storage = new Storage();
2021
}
2122

handwritten/storage/system-test/fixtures/index-esm.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
/* eslint-disable node/no-missing-import, no-unused-vars */
16-
import {Storage} from '@google-cloud/storage';
15+
// eslint-disable-next-line no-undef
16+
const {Storage} = require('@google-cloud/storage');
1717

1818
function main() {
19+
// eslint-disable-next-line no-unused-vars
1920
const storage = new Storage();
2021
}
2122

packages/google-cloud-ces/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ
139139
| get deployment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-ces/samples/generated/v1beta/agent_service.get_deployment.js) |
140140
| get example | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-ces/samples/generated/v1beta/agent_service.get_example.js) |
141141
| get guardrail | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-ces/samples/generated/v1beta/agent_service.get_guardrail.js) |
142+
| get security settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-ces/samples/generated/v1beta/agent_service.get_security_settings.js) |
142143
| get tool | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-ces/samples/generated/v1beta/agent_service.get_tool.js) |
143144
| get toolset | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-ces/samples/generated/v1beta/agent_service.get_toolset.js) |
144145
| import app | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-ces/samples/generated/v1beta/agent_service.import_app.js) |
@@ -158,6 +159,7 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ
158159
| update deployment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-ces/samples/generated/v1beta/agent_service.update_deployment.js) |
159160
| update example | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-ces/samples/generated/v1beta/agent_service.update_example.js) |
160161
| update guardrail | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-ces/samples/generated/v1beta/agent_service.update_guardrail.js) |
162+
| update security settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-ces/samples/generated/v1beta/agent_service.update_security_settings.js) |
161163
| update tool | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-ces/samples/generated/v1beta/agent_service.update_tool.js) |
162164
| update toolset | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-ces/samples/generated/v1beta/agent_service.update_toolset.js) |
163165
| create evaluation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-ces/samples/generated/v1beta/evaluation_service.create_evaluation.js) |

packages/google-cloud-ces/protos/google/cloud/ces/v1beta/agent_service.proto

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import "google/cloud/ces/v1beta/deployment.proto";
2929
import "google/cloud/ces/v1beta/evaluation.proto";
3030
import "google/cloud/ces/v1beta/example.proto";
3131
import "google/cloud/ces/v1beta/guardrail.proto";
32+
import "google/cloud/ces/v1beta/security_settings.proto";
3233
import "google/cloud/ces/v1beta/tool.proto";
3334
import "google/cloud/ces/v1beta/toolset.proto";
3435
import "google/longrunning/operations.proto";
@@ -130,6 +131,25 @@ service AgentService {
130131
};
131132
}
132133

134+
// Retrieves the security settings for the project and location.
135+
rpc GetSecuritySettings(GetSecuritySettingsRequest)
136+
returns (SecuritySettings) {
137+
option (google.api.http) = {
138+
get: "/v1beta/{name=projects/*/locations/*/securitySettings}"
139+
};
140+
option (google.api.method_signature) = "name";
141+
}
142+
143+
// Updates the security settings for the project and location.
144+
rpc UpdateSecuritySettings(UpdateSecuritySettingsRequest)
145+
returns (SecuritySettings) {
146+
option (google.api.http) = {
147+
patch: "/v1beta/{security_settings.name=projects/*/locations/*/securitySettings}"
148+
body: "security_settings"
149+
};
150+
option (google.api.method_signature) = "security_settings,update_mask";
151+
}
152+
133153
// Lists agents in the given app.
134154
rpc ListAgents(ListAgentsRequest) returns (ListAgentsResponse) {
135155
option (google.api.http) = {
@@ -1754,3 +1774,29 @@ message GetChangelogRequest {
17541774
(google.api.resource_reference) = { type: "ces.googleapis.com/Changelog" }
17551775
];
17561776
}
1777+
1778+
// Request message for
1779+
// [AgentService.GetSecuritySettings][google.cloud.ces.v1beta.AgentService.GetSecuritySettings].
1780+
message GetSecuritySettingsRequest {
1781+
// Required. The resource name of the security settings to retrieve.
1782+
// Format: `projects/{project}/locations/{location}/securitySettings`
1783+
string name = 1 [
1784+
(google.api.field_behavior) = REQUIRED,
1785+
(google.api.resource_reference) = {
1786+
type: "ces.googleapis.com/SecuritySettings"
1787+
}
1788+
];
1789+
}
1790+
1791+
// Request message for
1792+
// [AgentService.UpdateSecuritySettings][google.cloud.ces.v1beta.AgentService.UpdateSecuritySettings].
1793+
message UpdateSecuritySettingsRequest {
1794+
// Required. The security settings to update.
1795+
SecuritySettings security_settings = 1
1796+
[(google.api.field_behavior) = REQUIRED];
1797+
1798+
// Optional. Field mask is used to control which fields get updated. If the
1799+
// mask is not present, all fields will be updated.
1800+
google.protobuf.FieldMask update_mask = 2
1801+
[(google.api.field_behavior) = OPTIONAL];
1802+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// Copyright 2026 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
syntax = "proto3";
16+
17+
package google.cloud.ces.v1beta;
18+
19+
import "google/api/field_behavior.proto";
20+
import "google/api/resource.proto";
21+
22+
option go_package = "cloud.google.com/go/ces/apiv1beta/cespb;cespb";
23+
option java_multiple_files = true;
24+
option java_outer_classname = "AgentToolProto";
25+
option java_package = "com.google.cloud.ces.v1beta";
26+
27+
// Represents a tool that allows the agent to call another agent.
28+
message AgentTool {
29+
// Required. The name of the agent tool.
30+
string name = 1 [(google.api.field_behavior) = REQUIRED];
31+
32+
// Optional. Description of the tool's purpose.
33+
string description = 2 [(google.api.field_behavior) = OPTIONAL];
34+
35+
// Optional. The resource name of the root agent that is the entry point of
36+
// the tool. Format: `projects/{project}/locations/{location}/agents/{agent}`
37+
string root_agent = 3 [
38+
(google.api.field_behavior) = OPTIONAL,
39+
(google.api.resource_reference) = { type: "ces.googleapis.com/Agent" }
40+
];
41+
}

packages/google-cloud-ces/protos/google/cloud/ces/v1beta/common.proto

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,14 @@ message TlsConfig {
148148
// is empty or unspecified, CES will use Google's default trust
149149
// store to verify certificates. N.B. Make sure the HTTPS server
150150
// certificates are signed with "subject alt name". For instance a
151-
// certificate can be self-signed using the following command,
151+
// certificate can be self-signed using the following command:
152+
//
153+
// ```
152154
// openssl x509 -req -days 200 -in example.com.csr \
153155
// -signkey example.com.key \
154156
// -out example.com.crt \
155157
// -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
158+
// ```
156159
bytes cert = 2 [(google.api.field_behavior) = REQUIRED];
157160
}
158161

packages/google-cloud-ces/protos/google/cloud/ces/v1beta/evaluation_service.proto

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ service EvaluationService {
6161
rpc UploadEvaluationAudio(UploadEvaluationAudioRequest)
6262
returns (UploadEvaluationAudioResponse) {
6363
option (google.api.http) = {
64-
post: "/v1beta/{app=projects/*/locations/*/apps/*}:uploadEvaluationAudio"
64+
post: "/v1beta/{name=projects/*/locations/*/apps/*/evaluations/*}:uploadEvaluationAudio"
6565
body: "*"
6666
};
67-
option (google.api.method_signature) = "app,audio_content";
67+
option (google.api.method_signature) = "name,audio_content";
6868
}
6969

7070
// Creates an evaluation.
@@ -1044,17 +1044,22 @@ message TestPersonaVoiceRequest {
10441044
// Request message for
10451045
// [EvaluationService.UploadEvaluationAudio][google.cloud.ces.v1beta.EvaluationService.UploadEvaluationAudio].
10461046
message UploadEvaluationAudioRequest {
1047-
// Required. The resource name of the App for which to upload the evaluation
1048-
// audio. Format: `projects/{project}/locations/{location}/apps/{app}`
1049-
string app = 1 [
1047+
// Required. The resource name of the Evaluation for which to upload the
1048+
// evaluation audio. Format:
1049+
// `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}`
1050+
string name = 1 [
10501051
(google.api.field_behavior) = REQUIRED,
1051-
(google.api.resource_reference) = { type: "ces.googleapis.com/App" }
1052+
(google.api.resource_reference) = { type: "ces.googleapis.com/Evaluation" }
10521053
];
10531054

10541055
// Required. The raw audio bytes.
10551056
// The format of the audio must be single-channel LINEAR16 with a sample
10561057
// rate of 16kHz (default InputAudioConfig).
10571058
bytes audio_content = 2 [(google.api.field_behavior) = REQUIRED];
1059+
1060+
// Optional. The Google Cloud Storage URI of the previously uploaded audio
1061+
// file to be deleted. Format: `gs://<bucket-name>/<object-name>`
1062+
string previous_audio_gcs_uri = 3 [(google.api.field_behavior) = OPTIONAL];
10581063
}
10591064

10601065
// Response message for
@@ -1064,11 +1069,11 @@ message UploadEvaluationAudioResponse {
10641069
// Format: `gs://<bucket-name>/<object-name>`
10651070
string audio_gcs_uri = 1;
10661071

1067-
// The transcribed text from the audio, generated by Cloud Speech-to-Text.
1068-
string audio_transcript = 2;
1072+
// The transcript of the audio, generated by Cloud Speech-to-Text.
1073+
string transcript = 2;
10691074

10701075
// The duration of the audio.
1071-
google.protobuf.Duration audio_duration = 3;
1076+
google.protobuf.Duration duration = 3;
10721077
}
10731078

10741079
// Response message for

0 commit comments

Comments
 (0)