Debian Codegraph @

apihub/apiv1/apihubpb/linting_service.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/apihub/v1/linting_service.proto
20
21 package apihubpb
22
23 import (
24 _ "google.golang.org/genproto/googleapis/api/annotations"
25 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
26 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
27 emptypb "google.golang.org/protobuf/types/known/emptypb"
28 fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
29 reflect "reflect"
30 sync "sync"
31 )
32
33 const (
34 // Verify that this generated code is sufficiently up-to-date.
35 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
36 // Verify that runtime/protoimpl is sufficiently up-to-date.
37 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
38 )
39
40 // The [GetStyleGuide][google.cloud.apihub.v1.LintingService.GetStyleGuide]
41 // method's request.
42 type GetStyleGuideRequest struct {
43 state protoimpl.MessageState
44 sizeCache protoimpl.SizeCache
45 unknownFields protoimpl.UnknownFields
46
47 // Required. The name of the spec to retrieve.
48 // Format:
49 // `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`.
50 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
51 }
52
53 func (x *GetStyleGuideRequest) Reset() {
54 *x = GetStyleGuideRequest{}
55 mi := &file_google_cloud_apihub_v1_linting_service_proto_msgTypes[0]
56 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
57 ms.StoreMessageInfo(mi)
58 }
59
60 func (x *GetStyleGuideRequest) String() string {
61 return protoimpl.X.MessageStringOf(x)
62 }
63
64 func (*GetStyleGuideRequest) ProtoMessage() {}
65
66 func (x *GetStyleGuideRequest) ProtoReflect() protoreflect.Message {
67 mi := &file_google_cloud_apihub_v1_linting_service_proto_msgTypes[0]
68 if x != nil {
69 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
70 if ms.LoadMessageInfo() == nil {
71 ms.StoreMessageInfo(mi)
72 }
73 return ms
74 }
75 return mi.MessageOf(x)
76 }
77
78 // Deprecated: Use GetStyleGuideRequest.ProtoReflect.Descriptor instead.
79 func (*GetStyleGuideRequest) Descriptor() ([]byte, []int) {
80 return file_google_cloud_apihub_v1_linting_service_proto_rawDescGZIP(), []int{0}
81 }
82
83 func (x *GetStyleGuideRequest) GetName() string {
84 if x != nil {
85 return x.Name
86 }
87 return ""
88 }
89
90 // The
91 // [UpdateStyleGuide][google.cloud.apihub.v1.LintingService.UpdateStyleGuide]
92 // method's request.
93 type UpdateStyleGuideRequest struct {
94 state protoimpl.MessageState
95 sizeCache protoimpl.SizeCache
96 unknownFields protoimpl.UnknownFields
97
98 // Required. The Style guide resource to update.
99 StyleGuide *StyleGuide `protobuf:"bytes,1,opt,name=style_guide,json=styleGuide,proto3" json:"style_guide,omitempty"`
100 // Optional. The list of fields to update.
101 UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
102 }
103
104 func (x *UpdateStyleGuideRequest) Reset() {
105 *x = UpdateStyleGuideRequest{}
106 mi := &file_google_cloud_apihub_v1_linting_service_proto_msgTypes[1]
107 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
108 ms.StoreMessageInfo(mi)
109 }
110
111 func (x *UpdateStyleGuideRequest) String() string {
112 return protoimpl.X.MessageStringOf(x)
113 }
114
115 func (*UpdateStyleGuideRequest) ProtoMessage() {}
116
117 func (x *UpdateStyleGuideRequest) ProtoReflect() protoreflect.Message {
118 mi := &file_google_cloud_apihub_v1_linting_service_proto_msgTypes[1]
119 if x != nil {
120 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
121 if ms.LoadMessageInfo() == nil {
122 ms.StoreMessageInfo(mi)
123 }
124 return ms
125 }
126 return mi.MessageOf(x)
127 }
128
129 // Deprecated: Use UpdateStyleGuideRequest.ProtoReflect.Descriptor instead.
130 func (*UpdateStyleGuideRequest) Descriptor() ([]byte, []int) {
131 return file_google_cloud_apihub_v1_linting_service_proto_rawDescGZIP(), []int{1}
132 }
133
134 func (x *UpdateStyleGuideRequest) GetStyleGuide() *StyleGuide {
135 if x != nil {
136 return x.StyleGuide
137 }
138 return nil
139 }
140
141 func (x *UpdateStyleGuideRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
142 if x != nil {
143 return x.UpdateMask
144 }
145 return nil
146 }
147
148 // The
149 // [GetStyleGuideContents][google.cloud.apihub.v1.LintingService.GetStyleGuideContents]
150 // method's request.
151 type GetStyleGuideContentsRequest struct {
152 state protoimpl.MessageState
153 sizeCache protoimpl.SizeCache
154 unknownFields protoimpl.UnknownFields
155
156 // Required. The name of the StyleGuide whose contents need to be retrieved.
157 // There is exactly one style guide resource per project per location.
158 // The expected format is
159 // `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`.
160 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
161 }
162
163 func (x *GetStyleGuideContentsRequest) Reset() {
164 *x = GetStyleGuideContentsRequest{}
165 mi := &file_google_cloud_apihub_v1_linting_service_proto_msgTypes[2]
166 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
167 ms.StoreMessageInfo(mi)
168 }
169
170 func (x *GetStyleGuideContentsRequest) String() string {
171 return protoimpl.X.MessageStringOf(x)
172 }
173
174 func (*GetStyleGuideContentsRequest) ProtoMessage() {}
175
176 func (x *GetStyleGuideContentsRequest) ProtoReflect() protoreflect.Message {
177 mi := &file_google_cloud_apihub_v1_linting_service_proto_msgTypes[2]
178 if x != nil {
179 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
180 if ms.LoadMessageInfo() == nil {
181 ms.StoreMessageInfo(mi)
182 }
183 return ms
184 }
185 return mi.MessageOf(x)
186 }
187
188 // Deprecated: Use GetStyleGuideContentsRequest.ProtoReflect.Descriptor instead.
189 func (*GetStyleGuideContentsRequest) Descriptor() ([]byte, []int) {
190 return file_google_cloud_apihub_v1_linting_service_proto_rawDescGZIP(), []int{2}
191 }
192
193 func (x *GetStyleGuideContentsRequest) GetName() string {
194 if x != nil {
195 return x.Name
196 }
197 return ""
198 }
199
200 // The [LintSpec][google.cloud.apihub.v1.LintingService.LintSpec] method's
201 // request.
202 type LintSpecRequest struct {
203 state protoimpl.MessageState
204 sizeCache protoimpl.SizeCache
205 unknownFields protoimpl.UnknownFields
206
207 // Required. The name of the spec to be linted.
208 // Format:
209 // `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
210 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
211 }
212
213 func (x *LintSpecRequest) Reset() {
214 *x = LintSpecRequest{}
215 mi := &file_google_cloud_apihub_v1_linting_service_proto_msgTypes[3]
216 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
217 ms.StoreMessageInfo(mi)
218 }
219
220 func (x *LintSpecRequest) String() string {
221 return protoimpl.X.MessageStringOf(x)
222 }
223
224 func (*LintSpecRequest) ProtoMessage() {}
225
226 func (x *LintSpecRequest) ProtoReflect() protoreflect.Message {
227 mi := &file_google_cloud_apihub_v1_linting_service_proto_msgTypes[3]
228 if x != nil {
229 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
230 if ms.LoadMessageInfo() == nil {
231 ms.StoreMessageInfo(mi)
232 }
233 return ms
234 }
235 return mi.MessageOf(x)
236 }
237
238 // Deprecated: Use LintSpecRequest.ProtoReflect.Descriptor instead.
239 func (*LintSpecRequest) Descriptor() ([]byte, []int) {
240 return file_google_cloud_apihub_v1_linting_service_proto_rawDescGZIP(), []int{3}
241 }
242
243 func (x *LintSpecRequest) GetName() string {
244 if x != nil {
245 return x.Name
246 }
247 return ""
248 }
249
250 // The style guide contents.
251 type StyleGuideContents struct {
252 state protoimpl.MessageState
253 sizeCache protoimpl.SizeCache
254 unknownFields protoimpl.UnknownFields
255
256 // Required. The contents of the style guide.
257 Contents []byte `protobuf:"bytes,1,opt,name=contents,proto3" json:"contents,omitempty"`
258 // Required. The mime type of the content.
259 MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
260 }
261
262 func (x *StyleGuideContents) Reset() {
263 *x = StyleGuideContents{}
264 mi := &file_google_cloud_apihub_v1_linting_service_proto_msgTypes[4]
265 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
266 ms.StoreMessageInfo(mi)
267 }
268
269 func (x *StyleGuideContents) String() string {
270 return protoimpl.X.MessageStringOf(x)
271 }
272
273 func (*StyleGuideContents) ProtoMessage() {}
274
275 func (x *StyleGuideContents) ProtoReflect() protoreflect.Message {
276 mi := &file_google_cloud_apihub_v1_linting_service_proto_msgTypes[4]
277 if x != nil {
278 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
279 if ms.LoadMessageInfo() == nil {
280 ms.StoreMessageInfo(mi)
281 }
282 return ms
283 }
284 return mi.MessageOf(x)
285 }
286
287 // Deprecated: Use StyleGuideContents.ProtoReflect.Descriptor instead.
288 func (*StyleGuideContents) Descriptor() ([]byte, []int) {
289 return file_google_cloud_apihub_v1_linting_service_proto_rawDescGZIP(), []int{4}
290 }
291
292 func (x *StyleGuideContents) GetContents() []byte {
293 if x != nil {
294 return x.Contents
295 }
296 return nil
297 }
298
299 func (x *StyleGuideContents) GetMimeType() string {
300 if x != nil {
301 return x.MimeType
302 }
303 return ""
304 }
305
306 // Represents a singleton style guide resource to be used for linting Open API
307 // specs.
308 type StyleGuide struct {
309 state protoimpl.MessageState
310 sizeCache protoimpl.SizeCache
311 unknownFields protoimpl.UnknownFields
312
313 // Identifier. The name of the style guide.
314 //
315 // Format:
316 // `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`
317 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
318 // Required. Target linter for the style guide.
319 Linter Linter `protobuf:"varint,2,opt,name=linter,proto3,enum=google.cloud.apihub.v1.Linter" json:"linter,omitempty"`
320 // Required. Input only. The contents of the uploaded style guide.
321 Contents *StyleGuideContents `protobuf:"bytes,3,opt,name=contents,proto3" json:"contents,omitempty"`
322 }
323
324 func (x *StyleGuide) Reset() {
325 *x = StyleGuide{}
326 mi := &file_google_cloud_apihub_v1_linting_service_proto_msgTypes[5]
327 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
328 ms.StoreMessageInfo(mi)
329 }
330
331 func (x *StyleGuide) String() string {
332 return protoimpl.X.MessageStringOf(x)
333 }
334
335 func (*StyleGuide) ProtoMessage() {}
336
337 func (x *StyleGuide) ProtoReflect() protoreflect.Message {
338 mi := &file_google_cloud_apihub_v1_linting_service_proto_msgTypes[5]
339 if x != nil {
340 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
341 if ms.LoadMessageInfo() == nil {
342 ms.StoreMessageInfo(mi)
343 }
344 return ms
345 }
346 return mi.MessageOf(x)
347 }
348
349 // Deprecated: Use StyleGuide.ProtoReflect.Descriptor instead.
350 func (*StyleGuide) Descriptor() ([]byte, []int) {
351 return file_google_cloud_apihub_v1_linting_service_proto_rawDescGZIP(), []int{5}
352 }
353
354 func (x *StyleGuide) GetName() string {
355 if x != nil {
356 return x.Name
357 }
358 return ""
359 }
360
361 func (x *StyleGuide) GetLinter() Linter {
362 if x != nil {
363 return x.Linter
364 }
365 return Linter_LINTER_UNSPECIFIED
366 }
367
368 func (x *StyleGuide) GetContents() *StyleGuideContents {
369 if x != nil {
370 return x.Contents
371 }
372 return nil
373 }
374
375 var File_google_cloud_apihub_v1_linting_service_proto protoreflect.FileDescriptor
376
377 var file_google_cloud_apihub_v1_linting_service_proto_rawDesc = []byte{
378 0x0a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
379 0x70, 0x69, 0x68, 0x75, 0x62, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x69, 0x6e, 0x74, 0x69, 0x6e, 0x67,
380 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16,
381 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69,
382 0x68, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
383 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
384 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
385 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67,
386 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f,
387 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19,
388 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75,
389 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
390 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x68, 0x75, 0x62, 0x2f, 0x76,
391 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x2e,
392 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
393 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f,
394 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
395 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70,
396 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x54, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x53, 0x74, 0x79, 0x6c, 0x65,
397 0x47, 0x75, 0x69, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x04,
398 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x28, 0xe0, 0x41, 0x02, 0xfa,
399 0x41, 0x22, 0x0a, 0x20, 0x61, 0x70, 0x69, 0x68, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
400 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x47,
401 0x75, 0x69, 0x64, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xa5, 0x01, 0x0a, 0x17, 0x55,
402 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x47, 0x75, 0x69, 0x64, 0x65, 0x52,
403 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x48, 0x0a, 0x0b, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x5f,
404 0x67, 0x75, 0x69, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f,
405 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x68, 0x75,
406 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x47, 0x75, 0x69, 0x64, 0x65, 0x42,
407 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x47, 0x75, 0x69, 0x64, 0x65,
408 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18,
409 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
410 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73,
411 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61,
412 0x73, 0x6b, 0x22, 0x5c, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x47, 0x75,
413 0x69, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
414 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
415 0x42, 0x28, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x22, 0x0a, 0x20, 0x61, 0x70, 0x69, 0x68, 0x75, 0x62,
416 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
417 0x53, 0x74, 0x79, 0x6c, 0x65, 0x47, 0x75, 0x69, 0x64, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
418 0x22, 0x49, 0x0a, 0x0f, 0x4c, 0x69, 0x6e, 0x74, 0x53, 0x70, 0x65, 0x63, 0x52, 0x65, 0x71, 0x75,
419 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
420 0x09, 0x42, 0x22, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x1c, 0x0a, 0x1a, 0x61, 0x70, 0x69, 0x68, 0x75,
421 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d,
422 0x2f, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x57, 0x0a, 0x12, 0x53,
423 0x74, 0x79, 0x6c, 0x65, 0x47, 0x75, 0x69, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
424 0x73, 0x12, 0x1f, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20,
425 0x01, 0x28, 0x0c, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
426 0x74, 0x73, 0x12, 0x20, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18,
427 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65,
428 0x54, 0x79, 0x70, 0x65, 0x22, 0xb9, 0x02, 0x0a, 0x0a, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x47, 0x75,
429 0x69, 0x64, 0x65, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
430 0x09, 0x42, 0x03, 0xe0, 0x41, 0x08, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x06,
431 0x6c, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x67,
432 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x68,
433 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x42, 0x03, 0xe0, 0x41,
434 0x02, 0x52, 0x06, 0x6c, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x4e, 0x0a, 0x08, 0x63, 0x6f, 0x6e,
435 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f,
436 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x68, 0x75,
437 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x47, 0x75, 0x69, 0x64, 0x65, 0x43,
438 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x06, 0xe0, 0x41, 0x02, 0xe0, 0x41, 0x04, 0x52,
439 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x84, 0x01, 0xea, 0x41, 0x80, 0x01,
440 0x0a, 0x20, 0x61, 0x70, 0x69, 0x68, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
441 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x47, 0x75, 0x69,
442 0x64, 0x65, 0x12, 0x43, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72,
443 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
444 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x70, 0x6c, 0x75, 0x67,
445 0x69, 0x6e, 0x73, 0x2f, 0x7b, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x7d, 0x2f, 0x73, 0x74, 0x79,
446 0x6c, 0x65, 0x47, 0x75, 0x69, 0x64, 0x65, 0x2a, 0x0b, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x47, 0x75,
447 0x69, 0x64, 0x65, 0x73, 0x32, 0x0a, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x47, 0x75, 0x69, 0x64, 0x65,
448 0x32, 0xca, 0x06, 0x0a, 0x0e, 0x4c, 0x69, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76,
449 0x69, 0x63, 0x65, 0x12, 0xa8, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x53, 0x74, 0x79, 0x6c, 0x65,
450 0x47, 0x75, 0x69, 0x64, 0x65, 0x12, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
451 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x68, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x47,
452 0x65, 0x74, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x47, 0x75, 0x69, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75,
453 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
454 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x68, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x79,
455 0x6c, 0x65, 0x47, 0x75, 0x69, 0x64, 0x65, 0x22, 0x45, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65,
456 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x38, 0x12, 0x36, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,
457 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63,
458 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73,
459 0x2f, 0x2a, 0x2f, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x47, 0x75, 0x69, 0x64, 0x65, 0x7d, 0x12, 0xda,
460 0x01, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x47, 0x75,
461 0x69, 0x64, 0x65, 0x12, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
462 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x68, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64,
463 0x61, 0x74, 0x65, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x47, 0x75, 0x69, 0x64, 0x65, 0x52, 0x65, 0x71,
464 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
465 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x68, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74,
466 0x79, 0x6c, 0x65, 0x47, 0x75, 0x69, 0x64, 0x65, 0x22, 0x71, 0xda, 0x41, 0x17, 0x73, 0x74, 0x79,
467 0x6c, 0x65, 0x5f, 0x67, 0x75, 0x69, 0x64, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f,
468 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x51, 0x3a, 0x0b, 0x73, 0x74, 0x79, 0x6c,
469 0x65, 0x5f, 0x67, 0x75, 0x69, 0x64, 0x65, 0x32, 0x42, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x74,
470 0x79, 0x6c, 0x65, 0x5f, 0x67, 0x75, 0x69, 0x64, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70,
471 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69,
472 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2f, 0x2a, 0x2f,
473 0x73, 0x74, 0x79, 0x6c, 0x65, 0x47, 0x75, 0x69, 0x64, 0x65, 0x7d, 0x12, 0xc9, 0x01, 0x0a, 0x15,
474 0x47, 0x65, 0x74, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x47, 0x75, 0x69, 0x64, 0x65, 0x43, 0x6f, 0x6e,
475 0x74, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
476 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x68, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x47,
477 0x65, 0x74, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x47, 0x75, 0x69, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x74,
478 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x67, 0x6f,
479 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x68, 0x75,
480 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x47, 0x75, 0x69, 0x64, 0x65, 0x43,
481 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x4e, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65,
482 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x41, 0x12, 0x3f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,
483 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63,
484 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73,
485 0x2f, 0x2a, 0x2f, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x47, 0x75, 0x69, 0x64, 0x65, 0x7d, 0x3a, 0x63,
486 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x98, 0x01, 0x0a, 0x08, 0x4c, 0x69, 0x6e, 0x74,
487 0x53, 0x70, 0x65, 0x63, 0x12, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
488 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x68, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69,
489 0x6e, 0x74, 0x53, 0x70, 0x65, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e,
490 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
491 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x4b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x3a, 0x01, 0x2a,
492 0x22, 0x40, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a,
493 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
494 0x2f, 0x2a, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x2a, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
495 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x70, 0x65, 0x63, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x6c, 0x69,
496 0x6e, 0x74, 0x1a, 0x49, 0xca, 0x41, 0x15, 0x61, 0x70, 0x69, 0x68, 0x75, 0x62, 0x2e, 0x67, 0x6f,
497 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68,
498 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
499 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63,
500 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xb5, 0x01,
501 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
502 0x75, 0x64, 0x2e, 0x61, 0x70, 0x69, 0x68, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x42, 0x13, 0x4c, 0x69,
503 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74,
504 0x6f, 0x50, 0x01, 0x5a, 0x32, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
505 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x68, 0x75, 0x62, 0x2f,
506 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x61, 0x70, 0x69, 0x68, 0x75, 0x62, 0x70, 0x62, 0x3b, 0x61,
507 0x70, 0x69, 0x68, 0x75, 0x62, 0x70, 0x62, 0xaa, 0x02, 0x16, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
508 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x70, 0x69, 0x48, 0x75, 0x62, 0x2e, 0x56, 0x31,
509 0xca, 0x02, 0x16, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c,
510 0x41, 0x70, 0x69, 0x48, 0x75, 0x62, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x19, 0x47, 0x6f, 0x6f, 0x67,
511 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x48, 0x75,
512 0x62, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
513 }
514
515 var (
516 file_google_cloud_apihub_v1_linting_service_proto_rawDescOnce sync.Once
517 file_google_cloud_apihub_v1_linting_service_proto_rawDescData = file_google_cloud_apihub_v1_linting_service_proto_rawDesc
518 )
519
520 func file_google_cloud_apihub_v1_linting_service_proto_rawDescGZIP() []byte {
521 file_google_cloud_apihub_v1_linting_service_proto_rawDescOnce.Do(func() {
522 file_google_cloud_apihub_v1_linting_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_apihub_v1_linting_service_proto_rawDescData)
523 })
524 return file_google_cloud_apihub_v1_linting_service_proto_rawDescData
525 }
526
527 var file_google_cloud_apihub_v1_linting_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
528 var file_google_cloud_apihub_v1_linting_service_proto_goTypes = []any{
529 (*GetStyleGuideRequest)(nil), // 0: google.cloud.apihub.v1.GetStyleGuideRequest
530 (*UpdateStyleGuideRequest)(nil), // 1: google.cloud.apihub.v1.UpdateStyleGuideRequest
531 (*GetStyleGuideContentsRequest)(nil), // 2: google.cloud.apihub.v1.GetStyleGuideContentsRequest
532 (*LintSpecRequest)(nil), // 3: google.cloud.apihub.v1.LintSpecRequest
533 (*StyleGuideContents)(nil), // 4: google.cloud.apihub.v1.StyleGuideContents
534 (*StyleGuide)(nil), // 5: google.cloud.apihub.v1.StyleGuide
535 (*fieldmaskpb.FieldMask)(nil), // 6: google.protobuf.FieldMask
536 (Linter)(0), // 7: google.cloud.apihub.v1.Linter
537 (*emptypb.Empty)(nil), // 8: google.protobuf.Empty
538 }
539 var file_google_cloud_apihub_v1_linting_service_proto_depIdxs = []int32{
540 5, // 0: google.cloud.apihub.v1.UpdateStyleGuideRequest.style_guide:type_name -> google.cloud.apihub.v1.StyleGuide
541 6, // 1: google.cloud.apihub.v1.UpdateStyleGuideRequest.update_mask:type_name -> google.protobuf.FieldMask
542 7, // 2: google.cloud.apihub.v1.StyleGuide.linter:type_name -> google.cloud.apihub.v1.Linter
543 4, // 3: google.cloud.apihub.v1.StyleGuide.contents:type_name -> google.cloud.apihub.v1.StyleGuideContents
544 0, // 4: google.cloud.apihub.v1.LintingService.GetStyleGuide:input_type -> google.cloud.apihub.v1.GetStyleGuideRequest
545 1, // 5: google.cloud.apihub.v1.LintingService.UpdateStyleGuide:input_type -> google.cloud.apihub.v1.UpdateStyleGuideRequest
546 2, // 6: google.cloud.apihub.v1.LintingService.GetStyleGuideContents:input_type -> google.cloud.apihub.v1.GetStyleGuideContentsRequest
547 3, // 7: google.cloud.apihub.v1.LintingService.LintSpec:input_type -> google.cloud.apihub.v1.LintSpecRequest
548 5, // 8: google.cloud.apihub.v1.LintingService.GetStyleGuide:output_type -> google.cloud.apihub.v1.StyleGuide
549 5, // 9: google.cloud.apihub.v1.LintingService.UpdateStyleGuide:output_type -> google.cloud.apihub.v1.StyleGuide
550 4, // 10: google.cloud.apihub.v1.LintingService.GetStyleGuideContents:output_type -> google.cloud.apihub.v1.StyleGuideContents
551 8, // 11: google.cloud.apihub.v1.LintingService.LintSpec:output_type -> google.protobuf.Empty
552 8, // [8:12] is the sub-list for method output_type
553 4, // [4:8] is the sub-list for method input_type
554 4, // [4:4] is the sub-list for extension type_name
555 4, // [4:4] is the sub-list for extension extendee
556 0, // [0:4] is the sub-list for field type_name
557 }
558
559 func init() { file_google_cloud_apihub_v1_linting_service_proto_init() }
560 func file_google_cloud_apihub_v1_linting_service_proto_init() {
561 if File_google_cloud_apihub_v1_linting_service_proto != nil {
562 return
563 }
564 file_google_cloud_apihub_v1_common_fields_proto_init()
565 type x struct{}
566 out := protoimpl.TypeBuilder{
567 File: protoimpl.DescBuilder{
568 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
569 RawDescriptor: file_google_cloud_apihub_v1_linting_service_proto_rawDesc,
570 NumEnums: 0,
571 NumMessages: 6,
572 NumExtensions: 0,
573 NumServices: 1,
574 },
575 GoTypes: file_google_cloud_apihub_v1_linting_service_proto_goTypes,
576 DependencyIndexes: file_google_cloud_apihub_v1_linting_service_proto_depIdxs,
577 MessageInfos: file_google_cloud_apihub_v1_linting_service_proto_msgTypes,
578 }.Build()
579 File_google_cloud_apihub_v1_linting_service_proto = out.File
580 file_google_cloud_apihub_v1_linting_service_proto_rawDesc = nil
581 file_google_cloud_apihub_v1_linting_service_proto_goTypes = nil
582 file_google_cloud_apihub_v1_linting_service_proto_depIdxs = nil
583 }