common.proto 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. // Copyright 2022 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.channel.v1;
  16. import "google/api/field_behavior.proto";
  17. import "google/protobuf/any.proto";
  18. option go_package = "google.golang.org/genproto/googleapis/cloud/channel/v1;channel";
  19. option java_multiple_files = true;
  20. option java_outer_classname = "CommonProto";
  21. option java_package = "com.google.cloud.channel.v1";
  22. // Required Edu Attributes
  23. message EduData {
  24. // Enum to specify the institute type.
  25. enum InstituteType {
  26. // Not used.
  27. INSTITUTE_TYPE_UNSPECIFIED = 0;
  28. // Elementary/Secondary Schools & Districts
  29. K12 = 1;
  30. // Higher Education Universities & Colleges
  31. UNIVERSITY = 2;
  32. }
  33. // Number of students and staff the institute has.
  34. enum InstituteSize {
  35. // Not used.
  36. INSTITUTE_SIZE_UNSPECIFIED = 0;
  37. // 1 - 100
  38. SIZE_1_100 = 1;
  39. // 101 - 500
  40. SIZE_101_500 = 2;
  41. // 501 - 1,000
  42. SIZE_501_1000 = 3;
  43. // 1,001 - 2,000
  44. SIZE_1001_2000 = 4;
  45. // 2,001 - 5,000
  46. SIZE_2001_5000 = 5;
  47. // 5,001 - 10,000
  48. SIZE_5001_10000 = 6;
  49. // 10,001 +
  50. SIZE_10001_OR_MORE = 7;
  51. }
  52. // Designated institute type of customer.
  53. InstituteType institute_type = 1;
  54. // Size of the institute.
  55. InstituteSize institute_size = 2;
  56. // Web address for the edu customer's institution.
  57. string website = 3;
  58. }
  59. // Cloud Identity information for the Cloud Channel Customer.
  60. message CloudIdentityInfo {
  61. // CustomerType of the customer
  62. enum CustomerType {
  63. // Not used.
  64. CUSTOMER_TYPE_UNSPECIFIED = 0;
  65. // Domain-owning customer which needs domain verification to use services.
  66. DOMAIN = 1;
  67. // Team customer which needs email verification to use services.
  68. TEAM = 2;
  69. }
  70. // CustomerType indicates verification type needed for using services.
  71. CustomerType customer_type = 1;
  72. // Output only. The primary domain name.
  73. string primary_domain = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
  74. // Output only. Whether the domain is verified.
  75. // This field is not returned for a Customer's cloud_identity_info resource.
  76. // Partners can use the domains.get() method of the Workspace SDK's
  77. // Directory API, or listen to the PRIMARY_DOMAIN_VERIFIED Pub/Sub event in
  78. // to track domain verification of their resolve Workspace customers.
  79. bool is_domain_verified = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  80. // The alternate email.
  81. string alternate_email = 6;
  82. // Phone number associated with the Cloud Identity.
  83. string phone_number = 7;
  84. // Language code.
  85. string language_code = 8;
  86. // Output only. URI of Customer's Admin console dashboard.
  87. string admin_console_uri = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
  88. // Edu information about the customer.
  89. EduData edu_data = 22;
  90. }
  91. // Data type and value of a parameter.
  92. message Value {
  93. // The kind of value.
  94. oneof kind {
  95. // Represents an int64 value.
  96. int64 int64_value = 1;
  97. // Represents a string value.
  98. string string_value = 2;
  99. // Represents a double value.
  100. double double_value = 3;
  101. // Represents an 'Any' proto value.
  102. google.protobuf.Any proto_value = 4;
  103. // Represents a boolean value.
  104. bool bool_value = 5;
  105. }
  106. }
  107. // Information needed to create an Admin User for Google Workspace.
  108. message AdminUser {
  109. // Primary email of the admin user.
  110. string email = 1;
  111. // Given name of the admin user.
  112. string given_name = 2;
  113. // Family name of the admin user.
  114. string family_name = 3;
  115. }