Skip to content

Commit 88e4f47

Browse files
authored
Merge branch 'main' into nodejs-error-reporting-migration
2 parents 70cb8ca + 345bf5d commit 88e4f47

42 files changed

Lines changed: 3787 additions & 171 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/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
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
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+
import "google/protobuf/timestamp.proto";
22+
23+
option go_package = "cloud.google.com/go/ces/apiv1beta/cespb;cespb";
24+
option java_multiple_files = true;
25+
option java_outer_classname = "SecuritySettingsProto";
26+
option java_package = "com.google.cloud.ces.v1beta";
27+
28+
// Project/Location level security settings for CES.
29+
message SecuritySettings {
30+
option (google.api.resource) = {
31+
type: "ces.googleapis.com/SecuritySettings"
32+
pattern: "projects/{project}/locations/{location}/securitySettings"
33+
plural: "securitySettings"
34+
singular: "securitySettings"
35+
};
36+
37+
// Identifier. The unique identifier of the security settings.
38+
// Format: `projects/{project}/locations/{location}/securitySettings`
39+
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
40+
41+
// Optional. Endpoint control related settings.
42+
EndpointControlPolicy endpoint_control_policy = 2
43+
[(google.api.field_behavior) = OPTIONAL];
44+
45+
// Output only. Create time of the security settings.
46+
google.protobuf.Timestamp create_time = 3
47+
[(google.api.field_behavior) = OUTPUT_ONLY];
48+
49+
// Output only. Last update time of the security settings.
50+
google.protobuf.Timestamp update_time = 4
51+
[(google.api.field_behavior) = OUTPUT_ONLY];
52+
53+
// Output only. Etag of the security settings.
54+
string etag = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
55+
}
56+
57+
// Defines project/location level endpoint control policy.
58+
message EndpointControlPolicy {
59+
// Defines the scope in which this policy's allowed_origins list is
60+
// enforced.
61+
enum EnforcementScope {
62+
// Unspecified. This policy will be treated as VPCSC_ONLY.
63+
ENFORCEMENT_SCOPE_UNSPECIFIED = 0;
64+
65+
// This policy applies only when VPC-SC is active.
66+
VPCSC_ONLY = 1;
67+
68+
// This policy ALWAYS applies, regardless of VPC-SC status.
69+
ALWAYS = 2;
70+
}
71+
72+
// Optional. The scope in which this policy's allowed_origins list is
73+
// enforced.
74+
EnforcementScope enforcement_scope = 1
75+
[(google.api.field_behavior) = OPTIONAL];
76+
77+
// Optional. The allowed HTTP(s) origins that tools in the App are able to
78+
// directly call. The enforcement depends on the value of
79+
// enforcement_scope and the VPC-SC status of the project.
80+
// If a port number is not provided, all ports will be allowed. Otherwise,
81+
// the port number must match exactly. For example, "https://example.com"
82+
// will match "https://example.com:443" and any other port.
83+
// "https://example.com:443" will only match "https://example.com:443".
84+
repeated string allowed_origins = 2 [(google.api.field_behavior) = OPTIONAL];
85+
}

0 commit comments

Comments
 (0)