1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38
39
40 type ChangeType int32
41
42 const (
43
44 ChangeType_CHANGE_TYPE_UNSPECIFIED ChangeType = 0
45
46
47 ChangeType_ADDED ChangeType = 1
48
49
50 ChangeType_REMOVED ChangeType = 2
51
52
53 ChangeType_MODIFIED ChangeType = 3
54 )
55
56
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
95 func (ChangeType) EnumDescriptor() ([]byte, []int) {
96 return file_google_api_config_change_proto_rawDescGZIP(), []int{0}
97 }
98
99
100
101
102
103
104
105 type ConfigChange struct {
106 state protoimpl.MessageState
107 sizeCache protoimpl.SizeCache
108 unknownFields protoimpl.UnknownFields
109
110
111
112
113
114
115
116
117
118
119 Element string `protobuf:"bytes,1,opt,name=element,proto3" json:"element,omitempty"`
120
121
122 OldValue string `protobuf:"bytes,2,opt,name=old_value,json=oldValue,proto3" json:"old_value,omitempty"`
123
124
125 NewValue string `protobuf:"bytes,3,opt,name=new_value,json=newValue,proto3" json:"new_value,omitempty"`
126
127 ChangeType ChangeType `protobuf:"varint,4,opt,name=change_type,json=changeType,proto3,enum=google.api.ChangeType" json:"change_type,omitempty"`
128
129
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
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
201
202 type Advice struct {
203 state protoimpl.MessageState
204 sizeCache protoimpl.SizeCache
205 unknownFields protoimpl.UnknownFields
206
207
208
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
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),
303 (*ConfigChange)(nil),
304 (*Advice)(nil),
305 }
306 var file_google_api_config_change_proto_depIdxs = []int32{
307 0,
308 2,
309 2,
310 2,
311 2,
312 2,
313 0,
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 }
367
View as plain text