phishingprotection.proto 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. // Copyright 2019 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. package google.cloud.phishingprotection.v1beta1;
  17. import "google/api/annotations.proto";
  18. import "google/api/client.proto";
  19. import "google/api/field_behavior.proto";
  20. import "google/api/resource.proto";
  21. option csharp_namespace = "Google.Cloud.PhishingProtection.V1Beta1";
  22. option go_package = "google.golang.org/genproto/googleapis/cloud/phishingprotection/v1beta1;phishingprotection";
  23. option java_multiple_files = true;
  24. option java_outer_classname = "PhishingProtectionProto";
  25. option java_package = "com.google.phishingprotection.v1beta1";
  26. option objc_class_prefix = "GCPP";
  27. option php_namespace = "Google\\Cloud\\PhishingProtection\\V1beta1";
  28. option ruby_package = "Google::Cloud::PhishingProtection::V1beta1";
  29. // Service to report phishing URIs.
  30. service PhishingProtectionServiceV1Beta1 {
  31. option (google.api.default_host) = "phishingprotection.googleapis.com";
  32. option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
  33. // Reports a URI suspected of containing phishing content to be reviewed. Once
  34. // the report review is complete, its result can be found in the Cloud
  35. // Security Command Center findings dashboard for Phishing Protection. If the
  36. // result verifies the existence of malicious phishing content, the site will
  37. // be added the to [Google's Social Engineering
  38. // lists](https://support.google.com/webmasters/answer/6350487/) in order to
  39. // protect users that could get exposed to this threat in the future.
  40. rpc ReportPhishing(ReportPhishingRequest) returns (ReportPhishingResponse) {
  41. option (google.api.http) = {
  42. post: "/v1beta1/{parent=projects/*}/phishing:report"
  43. body: "*"
  44. };
  45. option (google.api.method_signature) = "parent,uri";
  46. }
  47. }
  48. // The ReportPhishing request message.
  49. message ReportPhishingRequest {
  50. // Required. The name of the project for which the report will be created,
  51. // in the format "projects/{project_number}".
  52. string parent = 1 [
  53. (google.api.field_behavior) = REQUIRED,
  54. (google.api.resource_reference) = {
  55. type: "cloudresourcemanager.googleapis.com/Project"
  56. }
  57. ];
  58. // Required. The URI that is being reported for phishing content to be analyzed.
  59. string uri = 2 [(google.api.field_behavior) = REQUIRED];
  60. }
  61. // The ReportPhishing (empty) response message.
  62. message ReportPhishingResponse {
  63. }