Skip to content

Commit 49235a9

Browse files
Google APIscopybara-github
authored andcommitted
feat: A new method_signature parent,submission is added to method SubmitUri in service WebRiskService
docs: A comment for message `ThreatInfo` is changed docs: A comment for message `SubmitUriMetadata` is changed PiperOrigin-RevId: 743172371
1 parent eaefcef commit 49235a9

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

google/cloud/webrisk/v1/BUILD.bazel

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@
99
# * extra_protoc_file_parameters
1010
# The complete list of preserved parameters can be found in the source code.
1111

12+
# buildifier: disable=load-on-top
13+
1214
# This is an API workspace, having public visibility by default makes perfect sense.
1315
package(default_visibility = ["//visibility:public"])
1416

1517
##############################################################################
1618
# Common
1719
##############################################################################
18-
load("@rules_proto//proto:defs.bzl", "proto_library")
20+
# buildifier: disable=same-origin-load
1921
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
22+
load("@rules_proto//proto:defs.bzl", "proto_library")
2023

2124
proto_library(
2225
name = "webrisk_proto",
@@ -44,6 +47,7 @@ proto_library_with_info(
4447
##############################################################################
4548
# Java
4649
##############################################################################
50+
# buildifier: disable=same-origin-load
4751
load(
4852
"@com_google_googleapis_imports//:imports.bzl",
4953
"java_gapic_assembly_gradle_pkg",
@@ -106,6 +110,7 @@ java_gapic_assembly_gradle_pkg(
106110
##############################################################################
107111
# Go
108112
##############################################################################
113+
# buildifier: disable=same-origin-load
109114
load(
110115
"@com_google_googleapis_imports//:imports.bzl",
111116
"go_gapic_assembly_pkg",
@@ -157,6 +162,7 @@ go_gapic_assembly_pkg(
157162
##############################################################################
158163
# Python
159164
##############################################################################
165+
# buildifier: disable=same-origin-load
160166
load(
161167
"@com_google_googleapis_imports//:imports.bzl",
162168
"py_gapic_assembly_pkg",
@@ -196,6 +202,7 @@ py_gapic_assembly_pkg(
196202
##############################################################################
197203
# PHP
198204
##############################################################################
205+
# buildifier: disable=same-origin-load
199206
load(
200207
"@com_google_googleapis_imports//:imports.bzl",
201208
"php_gapic_assembly_pkg",
@@ -216,7 +223,9 @@ php_gapic_library(
216223
rest_numeric_enums = True,
217224
service_yaml = "webrisk_v1.yaml",
218225
transport = "grpc+rest",
219-
deps = [":webrisk_php_proto"],
226+
deps = [
227+
":webrisk_php_proto",
228+
],
220229
)
221230

222231
# Open Source Packages
@@ -231,6 +240,7 @@ php_gapic_assembly_pkg(
231240
##############################################################################
232241
# Node.js
233242
##############################################################################
243+
# buildifier: disable=same-origin-load
234244
load(
235245
"@com_google_googleapis_imports//:imports.bzl",
236246
"nodejs_gapic_assembly_pkg",
@@ -261,6 +271,7 @@ nodejs_gapic_assembly_pkg(
261271
##############################################################################
262272
# Ruby
263273
##############################################################################
274+
# buildifier: disable=same-origin-load
264275
load(
265276
"@com_google_googleapis_imports//:imports.bzl",
266277
"ruby_cloud_gapic_library",
@@ -315,6 +326,7 @@ ruby_gapic_assembly_pkg(
315326
##############################################################################
316327
# C#
317328
##############################################################################
329+
# buildifier: disable=same-origin-load
318330
load(
319331
"@com_google_googleapis_imports//:imports.bzl",
320332
"csharp_gapic_assembly_pkg",
@@ -325,6 +337,7 @@ load(
325337

326338
csharp_proto_library(
327339
name = "webrisk_csharp_proto",
340+
extra_opts = [],
328341
deps = [":webrisk_proto"],
329342
)
330343

@@ -361,6 +374,7 @@ csharp_gapic_assembly_pkg(
361374
##############################################################################
362375
# C++
363376
##############################################################################
377+
# buildifier: disable=same-origin-load
364378
load(
365379
"@com_google_googleapis_imports//:imports.bzl",
366380
"cc_grpc_library",

google/cloud/webrisk/v1/webrisk.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ service WebRiskService {
108108
post: "/v1/{parent=projects/*}/uris:submit"
109109
body: "*"
110110
};
111+
option (google.api.method_signature) = "parent,submission";
111112
option (google.longrunning.operation_info) = {
112113
response_type: "Submission"
113114
metadata_type: "SubmitUriMetadata"
@@ -382,7 +383,6 @@ message Submission {
382383

383384
// Context about the submission including the type of abuse found on the URI and
384385
// supporting details.
385-
// option (google.api.message_visibility).restriction = "TRUSTED_TESTER";
386386
message ThreatInfo {
387387
// The abuse type found on the URI.
388388
enum AbuseType {
@@ -526,7 +526,6 @@ message SubmitUriRequest {
526526
}
527527

528528
// Metadata for the Submit URI long-running operation.
529-
// option (google.api.message_visibility).restriction = "TRUSTED_TESTER";
530529
message SubmitUriMetadata {
531530
// Enum that represents the state of the long-running operation.
532531
enum State {

0 commit comments

Comments
 (0)