Debian Codegraph @

googleapis/api/configchange/config_change.pb.go

raw
1 // Copyright 2026 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.26.0
18 // protoc v4.24.4
19 // source: google/api/config_change.proto
20
21 package configchange
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 )
30
31 const (
32 // Verify that this generated code is sufficiently up-to-date.
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34 // Verify that runtime/protoimpl is sufficiently up-to-date.
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38 // Classifies set of possible modifications to an object in the service
39 // configuration.
40 type ChangeType int32
41
42 const (
43 // No value was provided.
44 ChangeType_CHANGE_TYPE_UNSPECIFIED ChangeType = 0
45 // The changed object exists in the 'new' service configuration, but not
46 // in the 'old' service configuration.
47 ChangeType_ADDED ChangeType = 1
48 // The changed object exists in the 'old' service configuration, but not
49 // in the 'new' service configuration.
50 ChangeType_REMOVED ChangeType = 2
51 // The changed object exists in both service configurations, but its value
52 // is different.
53 ChangeType_MODIFIED ChangeType = 3
54 )
55
56 // Enum value maps for ChangeType.
57 var (
58 ChangeType_name = map[int32]string{
59 0: "CHANGE_TYPE_UNSPECIFIED",
60 1: "ADDED",
61 2: "REMOVED",
62 3: "MODIFIED",
63 }
64 ChangeType_value = map[string]int32{
65 "CHANGE_TYPE_UNSPECIFIED": 0,
66 "ADDED": 1,
67 "REMOVED": 2,
68 "MODIFIED": 3,
69 }
70 )
71
72 func (x ChangeType) Enum() *ChangeType {
73 p := new(ChangeType)
74 *p = x
75 return p
76 }
77
78 func (x ChangeType) String() string {
79 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
80 }
81
82 func (ChangeType) Descriptor() protoreflect.EnumDescriptor {
83 return file_google_api_config_change_proto_enumTypes[0].Descriptor()
84 }
85
86 func (ChangeType) Type() protoreflect.EnumType {
87 return &file_google_api_config_change_proto_enumTypes[0]
88 }
89
90 func (x ChangeType) Number() protoreflect.EnumNumber {
91 return protoreflect.EnumNumber(x)
92 }
93
94 // Deprecated: Use ChangeType.Descriptor instead.
95 func (ChangeType) EnumDescriptor() ([]byte, []int) {
96 return file_google_api_config_change_proto_rawDescGZIP(), []int{0}
97 }
98
99 // Output generated from semantically comparing two versions of a service
100 // configuration.
101 //
102 // Includes detailed information about a field that have changed with
103 // applicable advice about potential consequences for the change, such as
104 // backwards-incompatibility.
105 type ConfigChange struct {
106 state protoimpl.MessageState
107 sizeCache protoimpl.SizeCache
108 unknownFields protoimpl.UnknownFields
109
110 // Object hierarchy path to the change, with levels separated by a '.'
111 // character. For repeated fields, an applicable unique identifier field is
112 // used for the index (usually selector, name, or id). For maps, the term
113 // 'key' is used. If the field has no unique identifier, the numeric index
114 // is used.
115 // Examples:
116 // - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction
117 // - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value
118 // - logging.producer_destinations[0]
119 Element string `protobuf:"bytes,1,opt,name=element,proto3" json:"element,omitempty"`
120 // Value of the changed object in the old Service configuration,
121 // in JSON format. This field will not be populated if ChangeType == ADDED.
122 OldValue string `protobuf:"bytes,2,opt,name=old_value,json=oldValue,proto3" json:"old_value,omitempty"`
123 // Value of the changed object in the new Service configuration,
124 // in JSON format. This field will not be populated if ChangeType == REMOVED.
125 NewValue string `protobuf:"bytes,3,opt,name=new_value,json=newValue,proto3" json:"new_value,omitempty"`
126 // The type for this change, either ADDED, REMOVED, or MODIFIED.
127 ChangeType ChangeType `protobuf:"varint,4,opt,name=change_type,json=changeType,proto3,enum=google.api.ChangeType" json:"change_type,omitempty"`
128 // Collection of advice provided for this change, useful for determining the
129 // possible impact of this change.
130 Advices []*Advice `protobuf:"bytes,5,rep,name=advices,proto3" json:"advices,omitempty"`
131 }
132
133 func (x *ConfigChange) Reset() {
134 *x = ConfigChange{}
135 if protoimpl.UnsafeEnabled {
136 mi := &file_google_api_config_change_proto_msgTypes[0]
137 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
138 ms.StoreMessageInfo(mi)
139 }
140 }
141
142 func (x *ConfigChange) String() string {
143 return protoimpl.X.MessageStringOf(x)
144 }
145
146 func (*ConfigChange) ProtoMessage() {}
147
148 func (x *ConfigChange) ProtoReflect() protoreflect.Message {
149 mi := &file_google_api_config_change_proto_msgTypes[0]
150 if protoimpl.UnsafeEnabled && x != nil {
151 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
152 if ms.LoadMessageInfo() == nil {
153 ms.StoreMessageInfo(mi)
154 }
155 return ms
156 }
157 return mi.MessageOf(x)
158 }
159
160 // Deprecated: Use ConfigChange.ProtoReflect.Descriptor instead.
161 func (*ConfigChange) Descriptor() ([]byte, []int) {
162 return file_google_api_config_change_proto_rawDescGZIP(), []int{0}
163 }
164
165 func (x *ConfigChange) GetElement() string {
166 if x != nil {
167 return x.Element
168 }
169 return ""
170 }
171
172 func (x *ConfigChange) GetOldValue() string {
173 if x != nil {
174 return x.OldValue
175 }
176 return ""
177 }
178
179 func (x *ConfigChange) GetNewValue() string {
180 if x != nil {
181 return x.NewValue
182 }
183 return ""
184 }
185
186 func (x *ConfigChange) GetChangeType() ChangeType {
187 if x != nil {
188 return x.ChangeType
189 }
190 return ChangeType_CHANGE_TYPE_UNSPECIFIED
191 }
192
193 func (x *ConfigChange) GetAdvices() []*Advice {
194 if x != nil {
195 return x.Advices
196 }
197 return nil
198 }
199
200 // Generated advice about this change, used for providing more
201 // information about how a change will affect the existing service.
202 type Advice struct {
203 state protoimpl.MessageState
204 sizeCache protoimpl.SizeCache
205 unknownFields protoimpl.UnknownFields
206
207 // Useful description for why this advice was applied and what actions should
208 // be taken to mitigate any implied risks.
209 Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
210 }
211
212 func (x *Advice) Reset() {
213 *x = Advice{}
214 if protoimpl.UnsafeEnabled {
215 mi := &file_google_api_config_change_proto_msgTypes[1]
216 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
217 ms.StoreMessageInfo(mi)
218 }
219 }
220
221 func (x *Advice) String() string {
222 return protoimpl.X.MessageStringOf(x)
223 }
224
225 func (*Advice) ProtoMessage() {}
226
227 func (x *Advice) ProtoReflect() protoreflect.Message {
228 mi := &file_google_api_config_change_proto_msgTypes[1]
229 if protoimpl.UnsafeEnabled && x != nil {
230 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
231 if ms.LoadMessageInfo() == nil {
232 ms.StoreMessageInfo(mi)
233 }
234 return ms
235 }
236 return mi.MessageOf(x)
237 }
238
239 // Deprecated: Use Advice.ProtoReflect.Descriptor instead.
240 func (*Advice) Descriptor() ([]byte, []int) {
241 return file_google_api_config_change_proto_rawDescGZIP(), []int{1}
242 }
243
244 func (x *Advice) GetDescription() string {
245 if x != nil {
246 return x.Description
247 }
248 return ""
249 }
250
251 var File_google_api_config_change_proto protoreflect.FileDescriptor
252
253 var file_google_api_config_change_proto_rawDesc = []byte{
254 0x0a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6e,
255 0x66, 0x69, 0x67, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
256 0x12, 0x0a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x22, 0xc9, 0x01, 0x0a,
257 0x0c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x18, 0x0a,
258 0x07, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
259 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x6c, 0x64, 0x5f, 0x76,
260 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x6c, 0x64, 0x56,
261 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x76, 0x61, 0x6c, 0x75,
262 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x56, 0x61, 0x6c, 0x75,
263 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65,
264 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
265 0x61, 0x70, 0x69, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a,
266 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2c, 0x0a, 0x07, 0x61, 0x64,
267 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f,
268 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x41, 0x64, 0x76, 0x69, 0x63, 0x65, 0x52,
269 0x07, 0x61, 0x64, 0x76, 0x69, 0x63, 0x65, 0x73, 0x22, 0x2a, 0x0a, 0x06, 0x41, 0x64, 0x76, 0x69,
270 0x63, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
271 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
272 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x4f, 0x0a, 0x0a, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x79,
273 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x54, 0x59, 0x50,
274 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
275 0x09, 0x0a, 0x05, 0x41, 0x44, 0x44, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x45,
276 0x4d, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x4d, 0x4f, 0x44, 0x49, 0x46,
277 0x49, 0x45, 0x44, 0x10, 0x03, 0x42, 0x71, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f,
278 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x42, 0x11, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x43,
279 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x43, 0x67, 0x6f,
280 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f,
281 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
282 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x63, 0x68,
283 0x61, 0x6e, 0x67, 0x65, 0x3b, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x63, 0x68, 0x61, 0x6e, 0x67,
284 0x65, 0xa2, 0x02, 0x04, 0x47, 0x41, 0x50, 0x49, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
285 }
286
287 var (
288 file_google_api_config_change_proto_rawDescOnce sync.Once
289 file_google_api_config_change_proto_rawDescData = file_google_api_config_change_proto_rawDesc
290 )
291
292 func file_google_api_config_change_proto_rawDescGZIP() []byte {
293 file_google_api_config_change_proto_rawDescOnce.Do(func() {
294 file_google_api_config_change_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_config_change_proto_rawDescData)
295 })
296 return file_google_api_config_change_proto_rawDescData
297 }
298
299 var file_google_api_config_change_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
300 var file_google_api_config_change_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
301 var file_google_api_config_change_proto_goTypes = []interface{}{
302 (ChangeType)(0), // 0: google.api.ChangeType
303 (*ConfigChange)(nil), // 1: google.api.ConfigChange
304 (*Advice)(nil), // 2: google.api.Advice
305 }
306 var file_google_api_config_change_proto_depIdxs = []int32{
307 0, // 0: google.api.ConfigChange.change_type:type_name -> google.api.ChangeType
308 2, // 1: google.api.ConfigChange.advices:type_name -> google.api.Advice
309 2, // [2:2] is the sub-list for method output_type
310 2, // [2:2] is the sub-list for method input_type
311 2, // [2:2] is the sub-list for extension type_name
312 2, // [2:2] is the sub-list for extension extendee
313 0, // [0:2] is the sub-list for field type_name
314 }
315
316 func init() { file_google_api_config_change_proto_init() }
317 func file_google_api_config_change_proto_init() {
318 if File_google_api_config_change_proto != nil {
319 return
320 }
321 if !protoimpl.UnsafeEnabled {
322 file_google_api_config_change_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
323 switch v := v.(*ConfigChange); i {
324 case 0:
325 return &v.state
326 case 1:
327 return &v.sizeCache
328 case 2:
329 return &v.unknownFields
330 default:
331 return nil
332 }
333 }
334 file_google_api_config_change_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
335 switch v := v.(*Advice); i {
336 case 0:
337 return &v.state
338 case 1:
339 return &v.sizeCache
340 case 2:
341 return &v.unknownFields
342 default:
343 return nil
344 }
345 }
346 }
347 type x struct{}
348 out := protoimpl.TypeBuilder{
349 File: protoimpl.DescBuilder{
350 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
351 RawDescriptor: file_google_api_config_change_proto_rawDesc,
352 NumEnums: 1,
353 NumMessages: 2,
354 NumExtensions: 0,
355 NumServices: 0,
356 },
357 GoTypes: file_google_api_config_change_proto_goTypes,
358 DependencyIndexes: file_google_api_config_change_proto_depIdxs,
359 EnumInfos: file_google_api_config_change_proto_enumTypes,
360 MessageInfos: file_google_api_config_change_proto_msgTypes,
361 }.Build()
362 File_google_api_config_change_proto = out.File
363 file_google_api_config_change_proto_rawDesc = nil
364 file_google_api_config_change_proto_goTypes = nil
365 file_google_api_config_change_proto_depIdxs = nil
366 }