enums.proto 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // Copyright 2021 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. syntax = "proto3";
  15. package google.cloud.essentialcontacts.v1;
  16. option go_package = "google.golang.org/genproto/googleapis/cloud/essentialcontacts/v1;essentialcontacts";
  17. option java_multiple_files = true;
  18. option java_outer_classname = "EnumsProto";
  19. option java_package = "com.google.cloud.essentialcontacts.v1";
  20. option csharp_namespace = "Google.Cloud.EssentialContacts.V1";
  21. option php_namespace = "Google\\Cloud\\EssentialContacts\\V1";
  22. option ruby_package = "Google::Cloud::EssentialContacts::V1";
  23. // The notification categories that an essential contact can be subscribed to.
  24. // Each notification will be categorized by the sender into one of the following
  25. // categories. All contacts that are subscribed to that category will receive
  26. // the notification.
  27. enum NotificationCategory {
  28. // Notification category is unrecognized or unspecified.
  29. NOTIFICATION_CATEGORY_UNSPECIFIED = 0;
  30. // All notifications related to the resource, including notifications
  31. // pertaining to categories added in the future.
  32. ALL = 2;
  33. // Notifications related to imminent account suspension.
  34. SUSPENSION = 3;
  35. // Notifications related to security/privacy incidents, notifications, and
  36. // vulnerabilities.
  37. SECURITY = 5;
  38. // Notifications related to technical events and issues such as outages,
  39. // errors, or bugs.
  40. TECHNICAL = 6;
  41. // Notifications related to billing and payments notifications, price updates,
  42. // errors, or credits.
  43. BILLING = 7;
  44. // Notifications related to enforcement actions, regulatory compliance, or
  45. // government notices.
  46. LEGAL = 8;
  47. // Notifications related to new versions, product terms updates, or
  48. // deprecations.
  49. PRODUCT_UPDATES = 9;
  50. // Child category of TECHNICAL. If assigned, technical incident notifications
  51. // will go to these contacts instead of TECHNICAL.
  52. TECHNICAL_INCIDENTS = 10;
  53. }
  54. // A contact's validation state indicates whether or not it is the correct
  55. // contact to be receiving notifications for a particular resource.
  56. enum ValidationState {
  57. // The validation state is unknown or unspecified.
  58. VALIDATION_STATE_UNSPECIFIED = 0;
  59. // The contact is marked as valid. This is usually done manually by the
  60. // contact admin. All new contacts begin in the valid state.
  61. VALID = 1;
  62. // The contact is considered invalid. This may become the state if the
  63. // contact's email is found to be unreachable.
  64. INVALID = 2;
  65. }