Debian Codegraph @

essentialcontacts/apiv1/essentialcontactspb/enums.pb.go

raw
1 // Copyright 2025 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 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/cloud/essentialcontacts/v1/enums.proto
20
21 package essentialcontactspb
22
23 import (
24 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 reflect "reflect"
27 sync "sync"
28 )
29
30 const (
31 // Verify that this generated code is sufficiently up-to-date.
32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
33 // Verify that runtime/protoimpl is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
35 )
36
37 // The notification categories that an essential contact can be subscribed to.
38 // Each notification will be categorized by the sender into one of the following
39 // categories. All contacts that are subscribed to that category will receive
40 // the notification.
41 type NotificationCategory int32
42
43 const (
44 // Notification category is unrecognized or unspecified.
45 NotificationCategory_NOTIFICATION_CATEGORY_UNSPECIFIED NotificationCategory = 0
46 // All notifications related to the resource, including notifications
47 // pertaining to categories added in the future.
48 NotificationCategory_ALL NotificationCategory = 2
49 // Notifications related to imminent account suspension.
50 NotificationCategory_SUSPENSION NotificationCategory = 3
51 // Notifications related to security/privacy incidents, notifications, and
52 // vulnerabilities.
53 NotificationCategory_SECURITY NotificationCategory = 5
54 // Notifications related to technical events and issues such as outages,
55 // errors, or bugs.
56 NotificationCategory_TECHNICAL NotificationCategory = 6
57 // Notifications related to billing and payments notifications, price updates,
58 // errors, or credits.
59 NotificationCategory_BILLING NotificationCategory = 7
60 // Notifications related to enforcement actions, regulatory compliance, or
61 // government notices.
62 NotificationCategory_LEGAL NotificationCategory = 8
63 // Notifications related to new versions, product terms updates, or
64 // deprecations.
65 NotificationCategory_PRODUCT_UPDATES NotificationCategory = 9
66 // Child category of TECHNICAL. If assigned, technical incident notifications
67 // will go to these contacts instead of TECHNICAL.
68 NotificationCategory_TECHNICAL_INCIDENTS NotificationCategory = 10
69 )
70
71 // Enum value maps for NotificationCategory.
72 var (
73 NotificationCategory_name = map[int32]string{
74 0: "NOTIFICATION_CATEGORY_UNSPECIFIED",
75 2: "ALL",
76 3: "SUSPENSION",
77 5: "SECURITY",
78 6: "TECHNICAL",
79 7: "BILLING",
80 8: "LEGAL",
81 9: "PRODUCT_UPDATES",
82 10: "TECHNICAL_INCIDENTS",
83 }
84 NotificationCategory_value = map[string]int32{
85 "NOTIFICATION_CATEGORY_UNSPECIFIED": 0,
86 "ALL": 2,
87 "SUSPENSION": 3,
88 "SECURITY": 5,
89 "TECHNICAL": 6,
90 "BILLING": 7,
91 "LEGAL": 8,
92 "PRODUCT_UPDATES": 9,
93 "TECHNICAL_INCIDENTS": 10,
94 }
95 )
96
97 func (x NotificationCategory) Enum() *NotificationCategory {
98 p := new(NotificationCategory)
99 *p = x
100 return p
101 }
102
103 func (x NotificationCategory) String() string {
104 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
105 }
106
107 func (NotificationCategory) Descriptor() protoreflect.EnumDescriptor {
108 return file_google_cloud_essentialcontacts_v1_enums_proto_enumTypes[0].Descriptor()
109 }
110
111 func (NotificationCategory) Type() protoreflect.EnumType {
112 return &file_google_cloud_essentialcontacts_v1_enums_proto_enumTypes[0]
113 }
114
115 func (x NotificationCategory) Number() protoreflect.EnumNumber {
116 return protoreflect.EnumNumber(x)
117 }
118
119 // Deprecated: Use NotificationCategory.Descriptor instead.
120 func (NotificationCategory) EnumDescriptor() ([]byte, []int) {
121 return file_google_cloud_essentialcontacts_v1_enums_proto_rawDescGZIP(), []int{0}
122 }
123
124 // A contact's validation state indicates whether or not it is the correct
125 // contact to be receiving notifications for a particular resource.
126 type ValidationState int32
127
128 const (
129 // The validation state is unknown or unspecified.
130 ValidationState_VALIDATION_STATE_UNSPECIFIED ValidationState = 0
131 // The contact is marked as valid. This is usually done manually by the
132 // contact admin. All new contacts begin in the valid state.
133 ValidationState_VALID ValidationState = 1
134 // The contact is considered invalid. This may become the state if the
135 // contact's email is found to be unreachable.
136 ValidationState_INVALID ValidationState = 2
137 )
138
139 // Enum value maps for ValidationState.
140 var (
141 ValidationState_name = map[int32]string{
142 0: "VALIDATION_STATE_UNSPECIFIED",
143 1: "VALID",
144 2: "INVALID",
145 }
146 ValidationState_value = map[string]int32{
147 "VALIDATION_STATE_UNSPECIFIED": 0,
148 "VALID": 1,
149 "INVALID": 2,
150 }
151 )
152
153 func (x ValidationState) Enum() *ValidationState {
154 p := new(ValidationState)
155 *p = x
156 return p
157 }
158
159 func (x ValidationState) String() string {
160 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
161 }
162
163 func (ValidationState) Descriptor() protoreflect.EnumDescriptor {
164 return file_google_cloud_essentialcontacts_v1_enums_proto_enumTypes[1].Descriptor()
165 }
166
167 func (ValidationState) Type() protoreflect.EnumType {
168 return &file_google_cloud_essentialcontacts_v1_enums_proto_enumTypes[1]
169 }
170
171 func (x ValidationState) Number() protoreflect.EnumNumber {
172 return protoreflect.EnumNumber(x)
173 }
174
175 // Deprecated: Use ValidationState.Descriptor instead.
176 func (ValidationState) EnumDescriptor() ([]byte, []int) {
177 return file_google_cloud_essentialcontacts_v1_enums_proto_rawDescGZIP(), []int{1}
178 }
179
180 var File_google_cloud_essentialcontacts_v1_enums_proto protoreflect.FileDescriptor
181
182 var file_google_cloud_essentialcontacts_v1_enums_proto_rawDesc = []byte{
183 0x0a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x65,
184 0x73, 0x73, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x73,
185 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
186 0x21, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x65, 0x73,
187 0x73, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x73, 0x2e,
188 0x76, 0x31, 0x2a, 0xb9, 0x01, 0x0a, 0x14, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
189 0x69, 0x6f, 0x6e, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x25, 0x0a, 0x21, 0x4e,
190 0x4f, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x41, 0x54, 0x45,
191 0x47, 0x4f, 0x52, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,
192 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4c, 0x4c, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x53,
193 0x55, 0x53, 0x50, 0x45, 0x4e, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x53,
194 0x45, 0x43, 0x55, 0x52, 0x49, 0x54, 0x59, 0x10, 0x05, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x45, 0x43,
195 0x48, 0x4e, 0x49, 0x43, 0x41, 0x4c, 0x10, 0x06, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x49, 0x4c, 0x4c,
196 0x49, 0x4e, 0x47, 0x10, 0x07, 0x12, 0x09, 0x0a, 0x05, 0x4c, 0x45, 0x47, 0x41, 0x4c, 0x10, 0x08,
197 0x12, 0x13, 0x0a, 0x0f, 0x50, 0x52, 0x4f, 0x44, 0x55, 0x43, 0x54, 0x5f, 0x55, 0x50, 0x44, 0x41,
198 0x54, 0x45, 0x53, 0x10, 0x09, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x45, 0x43, 0x48, 0x4e, 0x49, 0x43,
199 0x41, 0x4c, 0x5f, 0x49, 0x4e, 0x43, 0x49, 0x44, 0x45, 0x4e, 0x54, 0x53, 0x10, 0x0a, 0x2a, 0x4b,
200 0x0a, 0x0f, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74,
201 0x65, 0x12, 0x20, 0x0a, 0x1c, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f,
202 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,
203 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x01, 0x12, 0x0b,
204 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x02, 0x42, 0xf9, 0x01, 0x0a, 0x25,
205 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
206 0x2e, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63,
207 0x74, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x45, 0x6e, 0x75, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74,
208 0x6f, 0x50, 0x01, 0x5a, 0x53, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
209 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x74, 0x69,
210 0x61, 0x6c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31,
211 0x2f, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63,
212 0x74, 0x73, 0x70, 0x62, 0x3b, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x63, 0x6f,
213 0x6e, 0x74, 0x61, 0x63, 0x74, 0x73, 0x70, 0x62, 0xaa, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
214 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x45, 0x73, 0x73, 0x65, 0x6e, 0x74, 0x69, 0x61,
215 0x6c, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x21, 0x47,
216 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x45, 0x73, 0x73, 0x65,
217 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x73, 0x5c, 0x56, 0x31,
218 0xea, 0x02, 0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64,
219 0x3a, 0x3a, 0x45, 0x73, 0x73, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x74, 0x61,
220 0x63, 0x74, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
221 }
222
223 var (
224 file_google_cloud_essentialcontacts_v1_enums_proto_rawDescOnce sync.Once
225 file_google_cloud_essentialcontacts_v1_enums_proto_rawDescData = file_google_cloud_essentialcontacts_v1_enums_proto_rawDesc
226 )
227
228 func file_google_cloud_essentialcontacts_v1_enums_proto_rawDescGZIP() []byte {
229 file_google_cloud_essentialcontacts_v1_enums_proto_rawDescOnce.Do(func() {
230 file_google_cloud_essentialcontacts_v1_enums_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_essentialcontacts_v1_enums_proto_rawDescData)
231 })
232 return file_google_cloud_essentialcontacts_v1_enums_proto_rawDescData
233 }
234
235 var file_google_cloud_essentialcontacts_v1_enums_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
236 var file_google_cloud_essentialcontacts_v1_enums_proto_goTypes = []any{
237 (NotificationCategory)(0), // 0: google.cloud.essentialcontacts.v1.NotificationCategory
238 (ValidationState)(0), // 1: google.cloud.essentialcontacts.v1.ValidationState
239 }
240 var file_google_cloud_essentialcontacts_v1_enums_proto_depIdxs = []int32{
241 0, // [0:0] is the sub-list for method output_type
242 0, // [0:0] is the sub-list for method input_type
243 0, // [0:0] is the sub-list for extension type_name
244 0, // [0:0] is the sub-list for extension extendee
245 0, // [0:0] is the sub-list for field type_name
246 }
247
248 func init() { file_google_cloud_essentialcontacts_v1_enums_proto_init() }
249 func file_google_cloud_essentialcontacts_v1_enums_proto_init() {
250 if File_google_cloud_essentialcontacts_v1_enums_proto != nil {
251 return
252 }
253 type x struct{}
254 out := protoimpl.TypeBuilder{
255 File: protoimpl.DescBuilder{
256 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
257 RawDescriptor: file_google_cloud_essentialcontacts_v1_enums_proto_rawDesc,
258 NumEnums: 2,
259 NumMessages: 0,
260 NumExtensions: 0,
261 NumServices: 0,
262 },
263 GoTypes: file_google_cloud_essentialcontacts_v1_enums_proto_goTypes,
264 DependencyIndexes: file_google_cloud_essentialcontacts_v1_enums_proto_depIdxs,
265 EnumInfos: file_google_cloud_essentialcontacts_v1_enums_proto_enumTypes,
266 }.Build()
267 File_google_cloud_essentialcontacts_v1_enums_proto = out.File
268 file_google_cloud_essentialcontacts_v1_enums_proto_rawDesc = nil
269 file_google_cloud_essentialcontacts_v1_enums_proto_goTypes = nil
270 file_google_cloud_essentialcontacts_v1_enums_proto_depIdxs = nil
271 }