OSDN Git Service

new repo
[bytom/vapor.git] / vendor / google.golang.org / genproto / googleapis / cloud / support / v1alpha1 / cloud_support.pb.go
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/cloud/support/v1alpha1/cloud_support.proto
3
4 /*
5 Package support is a generated protocol buffer package.
6
7 It is generated from these files:
8         google/cloud/support/v1alpha1/cloud_support.proto
9
10 It has these top-level messages:
11         GetSupportAccountRequest
12         ListSupportAccountsRequest
13         ListSupportAccountsResponse
14         GetCaseRequest
15         ListCasesRequest
16         ListCasesResponse
17         ListCommentsRequest
18         ListCommentsResponse
19         CreateCaseRequest
20         UpdateCaseRequest
21         CreateCommentRequest
22         GetIssueTaxonomyRequest
23 */
24 package support
25
26 import proto "github.com/golang/protobuf/proto"
27 import fmt "fmt"
28 import math "math"
29 import _ "google.golang.org/genproto/googleapis/api/annotations"
30 import google_cloud_support_common "google.golang.org/genproto/googleapis/cloud/support/common"
31 import _ "github.com/golang/protobuf/ptypes/empty"
32 import google_protobuf3 "google.golang.org/genproto/protobuf/field_mask"
33
34 import (
35         context "golang.org/x/net/context"
36         grpc "google.golang.org/grpc"
37 )
38
39 // Reference imports to suppress errors if they are not otherwise used.
40 var _ = proto.Marshal
41 var _ = fmt.Errorf
42 var _ = math.Inf
43
44 // This is a compile-time assertion to ensure that this generated file
45 // is compatible with the proto package it is being compiled against.
46 // A compilation error at this line likely means your copy of the
47 // proto package needs to be updated.
48 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
49
50 // The request message for `GetSupportAccount`.
51 type GetSupportAccountRequest struct {
52         // The resource name of the support accounts. For example:
53         // `supportAccounts/accountA`.
54         Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
55 }
56
57 func (m *GetSupportAccountRequest) Reset()                    { *m = GetSupportAccountRequest{} }
58 func (m *GetSupportAccountRequest) String() string            { return proto.CompactTextString(m) }
59 func (*GetSupportAccountRequest) ProtoMessage()               {}
60 func (*GetSupportAccountRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
61
62 func (m *GetSupportAccountRequest) GetName() string {
63         if m != nil {
64                 return m.Name
65         }
66         return ""
67 }
68
69 // The request message for `ListSupportAccount`.
70 type ListSupportAccountsRequest struct {
71         // The filter applied to search results. It only supports filtering a support
72         // account list by a cloud_resource. For example, to filter results by support
73         // accounts associated with an Organization, its value should be:
74         // "cloud_resource:organizations/<organization_id>"
75         Filter string `protobuf:"bytes,1,opt,name=filter" json:"filter,omitempty"`
76         // Maximum number of accounts fetched with each request.
77         PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
78         // A token identifying the page of results to return. If unspecified, the
79         // first page is retrieved.
80         PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
81 }
82
83 func (m *ListSupportAccountsRequest) Reset()                    { *m = ListSupportAccountsRequest{} }
84 func (m *ListSupportAccountsRequest) String() string            { return proto.CompactTextString(m) }
85 func (*ListSupportAccountsRequest) ProtoMessage()               {}
86 func (*ListSupportAccountsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
87
88 func (m *ListSupportAccountsRequest) GetFilter() string {
89         if m != nil {
90                 return m.Filter
91         }
92         return ""
93 }
94
95 func (m *ListSupportAccountsRequest) GetPageSize() int64 {
96         if m != nil {
97                 return m.PageSize
98         }
99         return 0
100 }
101
102 func (m *ListSupportAccountsRequest) GetPageToken() string {
103         if m != nil {
104                 return m.PageToken
105         }
106         return ""
107 }
108
109 // The response message for `ListSupportAccount`.
110 type ListSupportAccountsResponse struct {
111         // A list of support accounts.
112         Accounts []*google_cloud_support_common.SupportAccount `protobuf:"bytes,1,rep,name=accounts" json:"accounts,omitempty"`
113         // A token to retrieve the next page of results. This should be passed on in
114         // `page_token` field of `ListSupportAccountRequest` for next request. If
115         // unspecified, there are no more results to retrieve.
116         NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
117 }
118
119 func (m *ListSupportAccountsResponse) Reset()                    { *m = ListSupportAccountsResponse{} }
120 func (m *ListSupportAccountsResponse) String() string            { return proto.CompactTextString(m) }
121 func (*ListSupportAccountsResponse) ProtoMessage()               {}
122 func (*ListSupportAccountsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
123
124 func (m *ListSupportAccountsResponse) GetAccounts() []*google_cloud_support_common.SupportAccount {
125         if m != nil {
126                 return m.Accounts
127         }
128         return nil
129 }
130
131 func (m *ListSupportAccountsResponse) GetNextPageToken() string {
132         if m != nil {
133                 return m.NextPageToken
134         }
135         return ""
136 }
137
138 // The request message for `GetCase` method.
139 type GetCaseRequest struct {
140         // Name of case resource requested.
141         // For example: "supportAccounts/accountA/cases/123"
142         Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
143 }
144
145 func (m *GetCaseRequest) Reset()                    { *m = GetCaseRequest{} }
146 func (m *GetCaseRequest) String() string            { return proto.CompactTextString(m) }
147 func (*GetCaseRequest) ProtoMessage()               {}
148 func (*GetCaseRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
149
150 func (m *GetCaseRequest) GetName() string {
151         if m != nil {
152                 return m.Name
153         }
154         return ""
155 }
156
157 // The request message for `ListCase` method.
158 type ListCasesRequest struct {
159         // Name of the account resource for which cases are requested. For example:
160         // "supportAccounts/accountA"
161         Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
162         // The filter applied to the search results. Currently it only accepts "OPEN"
163         // or "CLOSED" strings, filtering out cases that are open or resolved.
164         Filter string `protobuf:"bytes,2,opt,name=filter" json:"filter,omitempty"`
165         // Maximum number of cases fetched with each request.
166         PageSize int64 `protobuf:"varint,3,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
167         // A token identifying the page of results to return. If unspecified, the
168         // first page is retrieved.
169         PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
170 }
171
172 func (m *ListCasesRequest) Reset()                    { *m = ListCasesRequest{} }
173 func (m *ListCasesRequest) String() string            { return proto.CompactTextString(m) }
174 func (*ListCasesRequest) ProtoMessage()               {}
175 func (*ListCasesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
176
177 func (m *ListCasesRequest) GetName() string {
178         if m != nil {
179                 return m.Name
180         }
181         return ""
182 }
183
184 func (m *ListCasesRequest) GetFilter() string {
185         if m != nil {
186                 return m.Filter
187         }
188         return ""
189 }
190
191 func (m *ListCasesRequest) GetPageSize() int64 {
192         if m != nil {
193                 return m.PageSize
194         }
195         return 0
196 }
197
198 func (m *ListCasesRequest) GetPageToken() string {
199         if m != nil {
200                 return m.PageToken
201         }
202         return ""
203 }
204
205 // The response message for `ListCase` method.
206 type ListCasesResponse struct {
207         // A list of cases.
208         Cases []*google_cloud_support_common.Case `protobuf:"bytes,1,rep,name=cases" json:"cases,omitempty"`
209         // A token to retrieve the next page of results. This should be passed on in
210         // `page_token` field of `ListCaseRequest` for next request. If unspecified,
211         // there are no more results to retrieve.
212         NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
213 }
214
215 func (m *ListCasesResponse) Reset()                    { *m = ListCasesResponse{} }
216 func (m *ListCasesResponse) String() string            { return proto.CompactTextString(m) }
217 func (*ListCasesResponse) ProtoMessage()               {}
218 func (*ListCasesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
219
220 func (m *ListCasesResponse) GetCases() []*google_cloud_support_common.Case {
221         if m != nil {
222                 return m.Cases
223         }
224         return nil
225 }
226
227 func (m *ListCasesResponse) GetNextPageToken() string {
228         if m != nil {
229                 return m.NextPageToken
230         }
231         return ""
232 }
233
234 // The request message for `ListComments` method.
235 type ListCommentsRequest struct {
236         // The resource name of case for which comments should be listed.
237         Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
238 }
239
240 func (m *ListCommentsRequest) Reset()                    { *m = ListCommentsRequest{} }
241 func (m *ListCommentsRequest) String() string            { return proto.CompactTextString(m) }
242 func (*ListCommentsRequest) ProtoMessage()               {}
243 func (*ListCommentsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
244
245 func (m *ListCommentsRequest) GetName() string {
246         if m != nil {
247                 return m.Name
248         }
249         return ""
250 }
251
252 // The response message for `ListComments` method.
253 type ListCommentsResponse struct {
254         // A list of comments.
255         Comments []*google_cloud_support_common.Comment `protobuf:"bytes,1,rep,name=comments" json:"comments,omitempty"`
256 }
257
258 func (m *ListCommentsResponse) Reset()                    { *m = ListCommentsResponse{} }
259 func (m *ListCommentsResponse) String() string            { return proto.CompactTextString(m) }
260 func (*ListCommentsResponse) ProtoMessage()               {}
261 func (*ListCommentsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
262
263 func (m *ListCommentsResponse) GetComments() []*google_cloud_support_common.Comment {
264         if m != nil {
265                 return m.Comments
266         }
267         return nil
268 }
269
270 // The request message for `CreateCase` method.
271 type CreateCaseRequest struct {
272         // The resource name for `SupportAccount` under which this case is created.
273         Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
274         // The case resource to create.
275         Case *google_cloud_support_common.Case `protobuf:"bytes,2,opt,name=case" json:"case,omitempty"`
276 }
277
278 func (m *CreateCaseRequest) Reset()                    { *m = CreateCaseRequest{} }
279 func (m *CreateCaseRequest) String() string            { return proto.CompactTextString(m) }
280 func (*CreateCaseRequest) ProtoMessage()               {}
281 func (*CreateCaseRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
282
283 func (m *CreateCaseRequest) GetParent() string {
284         if m != nil {
285                 return m.Parent
286         }
287         return ""
288 }
289
290 func (m *CreateCaseRequest) GetCase() *google_cloud_support_common.Case {
291         if m != nil {
292                 return m.Case
293         }
294         return nil
295 }
296
297 // The request message for `UpdateCase` method.
298 type UpdateCaseRequest struct {
299         // The case resource to update.
300         Case *google_cloud_support_common.Case `protobuf:"bytes,1,opt,name=case" json:"case,omitempty"`
301         // A field that represents attributes of a Case object that should be updated
302         // as part of this request.
303         UpdateMask *google_protobuf3.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask" json:"update_mask,omitempty"`
304 }
305
306 func (m *UpdateCaseRequest) Reset()                    { *m = UpdateCaseRequest{} }
307 func (m *UpdateCaseRequest) String() string            { return proto.CompactTextString(m) }
308 func (*UpdateCaseRequest) ProtoMessage()               {}
309 func (*UpdateCaseRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
310
311 func (m *UpdateCaseRequest) GetCase() *google_cloud_support_common.Case {
312         if m != nil {
313                 return m.Case
314         }
315         return nil
316 }
317
318 func (m *UpdateCaseRequest) GetUpdateMask() *google_protobuf3.FieldMask {
319         if m != nil {
320                 return m.UpdateMask
321         }
322         return nil
323 }
324
325 // The request message for `CreateComment` method.
326 type CreateCommentRequest struct {
327         // The resource name of case to which this comment should be added.
328         Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
329         // The `Comment` to be added to this case.
330         Comment *google_cloud_support_common.Comment `protobuf:"bytes,2,opt,name=comment" json:"comment,omitempty"`
331 }
332
333 func (m *CreateCommentRequest) Reset()                    { *m = CreateCommentRequest{} }
334 func (m *CreateCommentRequest) String() string            { return proto.CompactTextString(m) }
335 func (*CreateCommentRequest) ProtoMessage()               {}
336 func (*CreateCommentRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
337
338 func (m *CreateCommentRequest) GetName() string {
339         if m != nil {
340                 return m.Name
341         }
342         return ""
343 }
344
345 func (m *CreateCommentRequest) GetComment() *google_cloud_support_common.Comment {
346         if m != nil {
347                 return m.Comment
348         }
349         return nil
350 }
351
352 // The request message for `GetIssueTaxonomy` method.
353 type GetIssueTaxonomyRequest struct {
354 }
355
356 func (m *GetIssueTaxonomyRequest) Reset()                    { *m = GetIssueTaxonomyRequest{} }
357 func (m *GetIssueTaxonomyRequest) String() string            { return proto.CompactTextString(m) }
358 func (*GetIssueTaxonomyRequest) ProtoMessage()               {}
359 func (*GetIssueTaxonomyRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
360
361 func init() {
362         proto.RegisterType((*GetSupportAccountRequest)(nil), "google.cloud.support.v1alpha1.GetSupportAccountRequest")
363         proto.RegisterType((*ListSupportAccountsRequest)(nil), "google.cloud.support.v1alpha1.ListSupportAccountsRequest")
364         proto.RegisterType((*ListSupportAccountsResponse)(nil), "google.cloud.support.v1alpha1.ListSupportAccountsResponse")
365         proto.RegisterType((*GetCaseRequest)(nil), "google.cloud.support.v1alpha1.GetCaseRequest")
366         proto.RegisterType((*ListCasesRequest)(nil), "google.cloud.support.v1alpha1.ListCasesRequest")
367         proto.RegisterType((*ListCasesResponse)(nil), "google.cloud.support.v1alpha1.ListCasesResponse")
368         proto.RegisterType((*ListCommentsRequest)(nil), "google.cloud.support.v1alpha1.ListCommentsRequest")
369         proto.RegisterType((*ListCommentsResponse)(nil), "google.cloud.support.v1alpha1.ListCommentsResponse")
370         proto.RegisterType((*CreateCaseRequest)(nil), "google.cloud.support.v1alpha1.CreateCaseRequest")
371         proto.RegisterType((*UpdateCaseRequest)(nil), "google.cloud.support.v1alpha1.UpdateCaseRequest")
372         proto.RegisterType((*CreateCommentRequest)(nil), "google.cloud.support.v1alpha1.CreateCommentRequest")
373         proto.RegisterType((*GetIssueTaxonomyRequest)(nil), "google.cloud.support.v1alpha1.GetIssueTaxonomyRequest")
374 }
375
376 // Reference imports to suppress errors if they are not otherwise used.
377 var _ context.Context
378 var _ grpc.ClientConn
379
380 // This is a compile-time assertion to ensure that this generated file
381 // is compatible with the grpc package it is being compiled against.
382 const _ = grpc.SupportPackageIsVersion4
383
384 // Client API for CloudSupport service
385
386 type CloudSupportClient interface {
387         // Retrieves the support account details given an account identifier.
388         // The authenticated user calling this method must be the account owner.
389         GetSupportAccount(ctx context.Context, in *GetSupportAccountRequest, opts ...grpc.CallOption) (*google_cloud_support_common.SupportAccount, error)
390         // Retrieves the list of accounts the current authenticated user has access
391         // to.
392         ListSupportAccounts(ctx context.Context, in *ListSupportAccountsRequest, opts ...grpc.CallOption) (*ListSupportAccountsResponse, error)
393         // Retrieves the details for a support case. The current authenticated user
394         // calling this method must have permissions to view this case.
395         GetCase(ctx context.Context, in *GetCaseRequest, opts ...grpc.CallOption) (*google_cloud_support_common.Case, error)
396         // Retrieves the list of support cases associated with an account. The current
397         // authenticated user must have the permission to list and view these cases.
398         ListCases(ctx context.Context, in *ListCasesRequest, opts ...grpc.CallOption) (*ListCasesResponse, error)
399         // Lists all comments from a case.
400         ListComments(ctx context.Context, in *ListCommentsRequest, opts ...grpc.CallOption) (*ListCommentsResponse, error)
401         // Creates a case and associates it with a
402         // [SupportAccount][google.cloud.support.v1alpha2.SupportAcccount]. The
403         // authenticated user attempting this action must have permissions to create a
404         // `Case` under that [SupportAccount].
405         CreateCase(ctx context.Context, in *CreateCaseRequest, opts ...grpc.CallOption) (*google_cloud_support_common.Case, error)
406         // Updates a support case. Only a small set of details (priority, subject and
407         // cc_address) can be update after a case is created.
408         UpdateCase(ctx context.Context, in *UpdateCaseRequest, opts ...grpc.CallOption) (*google_cloud_support_common.Case, error)
409         // Adds a new comment to a case.
410         CreateComment(ctx context.Context, in *CreateCommentRequest, opts ...grpc.CallOption) (*google_cloud_support_common.Comment, error)
411         // Retrieves the taxonomy of product categories and components to be used
412         // while creating a support case.
413         GetIssueTaxonomy(ctx context.Context, in *GetIssueTaxonomyRequest, opts ...grpc.CallOption) (*google_cloud_support_common.IssueTaxonomy, error)
414 }
415
416 type cloudSupportClient struct {
417         cc *grpc.ClientConn
418 }
419
420 func NewCloudSupportClient(cc *grpc.ClientConn) CloudSupportClient {
421         return &cloudSupportClient{cc}
422 }
423
424 func (c *cloudSupportClient) GetSupportAccount(ctx context.Context, in *GetSupportAccountRequest, opts ...grpc.CallOption) (*google_cloud_support_common.SupportAccount, error) {
425         out := new(google_cloud_support_common.SupportAccount)
426         err := grpc.Invoke(ctx, "/google.cloud.support.v1alpha1.CloudSupport/GetSupportAccount", in, out, c.cc, opts...)
427         if err != nil {
428                 return nil, err
429         }
430         return out, nil
431 }
432
433 func (c *cloudSupportClient) ListSupportAccounts(ctx context.Context, in *ListSupportAccountsRequest, opts ...grpc.CallOption) (*ListSupportAccountsResponse, error) {
434         out := new(ListSupportAccountsResponse)
435         err := grpc.Invoke(ctx, "/google.cloud.support.v1alpha1.CloudSupport/ListSupportAccounts", in, out, c.cc, opts...)
436         if err != nil {
437                 return nil, err
438         }
439         return out, nil
440 }
441
442 func (c *cloudSupportClient) GetCase(ctx context.Context, in *GetCaseRequest, opts ...grpc.CallOption) (*google_cloud_support_common.Case, error) {
443         out := new(google_cloud_support_common.Case)
444         err := grpc.Invoke(ctx, "/google.cloud.support.v1alpha1.CloudSupport/GetCase", in, out, c.cc, opts...)
445         if err != nil {
446                 return nil, err
447         }
448         return out, nil
449 }
450
451 func (c *cloudSupportClient) ListCases(ctx context.Context, in *ListCasesRequest, opts ...grpc.CallOption) (*ListCasesResponse, error) {
452         out := new(ListCasesResponse)
453         err := grpc.Invoke(ctx, "/google.cloud.support.v1alpha1.CloudSupport/ListCases", in, out, c.cc, opts...)
454         if err != nil {
455                 return nil, err
456         }
457         return out, nil
458 }
459
460 func (c *cloudSupportClient) ListComments(ctx context.Context, in *ListCommentsRequest, opts ...grpc.CallOption) (*ListCommentsResponse, error) {
461         out := new(ListCommentsResponse)
462         err := grpc.Invoke(ctx, "/google.cloud.support.v1alpha1.CloudSupport/ListComments", in, out, c.cc, opts...)
463         if err != nil {
464                 return nil, err
465         }
466         return out, nil
467 }
468
469 func (c *cloudSupportClient) CreateCase(ctx context.Context, in *CreateCaseRequest, opts ...grpc.CallOption) (*google_cloud_support_common.Case, error) {
470         out := new(google_cloud_support_common.Case)
471         err := grpc.Invoke(ctx, "/google.cloud.support.v1alpha1.CloudSupport/CreateCase", in, out, c.cc, opts...)
472         if err != nil {
473                 return nil, err
474         }
475         return out, nil
476 }
477
478 func (c *cloudSupportClient) UpdateCase(ctx context.Context, in *UpdateCaseRequest, opts ...grpc.CallOption) (*google_cloud_support_common.Case, error) {
479         out := new(google_cloud_support_common.Case)
480         err := grpc.Invoke(ctx, "/google.cloud.support.v1alpha1.CloudSupport/UpdateCase", in, out, c.cc, opts...)
481         if err != nil {
482                 return nil, err
483         }
484         return out, nil
485 }
486
487 func (c *cloudSupportClient) CreateComment(ctx context.Context, in *CreateCommentRequest, opts ...grpc.CallOption) (*google_cloud_support_common.Comment, error) {
488         out := new(google_cloud_support_common.Comment)
489         err := grpc.Invoke(ctx, "/google.cloud.support.v1alpha1.CloudSupport/CreateComment", in, out, c.cc, opts...)
490         if err != nil {
491                 return nil, err
492         }
493         return out, nil
494 }
495
496 func (c *cloudSupportClient) GetIssueTaxonomy(ctx context.Context, in *GetIssueTaxonomyRequest, opts ...grpc.CallOption) (*google_cloud_support_common.IssueTaxonomy, error) {
497         out := new(google_cloud_support_common.IssueTaxonomy)
498         err := grpc.Invoke(ctx, "/google.cloud.support.v1alpha1.CloudSupport/GetIssueTaxonomy", in, out, c.cc, opts...)
499         if err != nil {
500                 return nil, err
501         }
502         return out, nil
503 }
504
505 // Server API for CloudSupport service
506
507 type CloudSupportServer interface {
508         // Retrieves the support account details given an account identifier.
509         // The authenticated user calling this method must be the account owner.
510         GetSupportAccount(context.Context, *GetSupportAccountRequest) (*google_cloud_support_common.SupportAccount, error)
511         // Retrieves the list of accounts the current authenticated user has access
512         // to.
513         ListSupportAccounts(context.Context, *ListSupportAccountsRequest) (*ListSupportAccountsResponse, error)
514         // Retrieves the details for a support case. The current authenticated user
515         // calling this method must have permissions to view this case.
516         GetCase(context.Context, *GetCaseRequest) (*google_cloud_support_common.Case, error)
517         // Retrieves the list of support cases associated with an account. The current
518         // authenticated user must have the permission to list and view these cases.
519         ListCases(context.Context, *ListCasesRequest) (*ListCasesResponse, error)
520         // Lists all comments from a case.
521         ListComments(context.Context, *ListCommentsRequest) (*ListCommentsResponse, error)
522         // Creates a case and associates it with a
523         // [SupportAccount][google.cloud.support.v1alpha2.SupportAcccount]. The
524         // authenticated user attempting this action must have permissions to create a
525         // `Case` under that [SupportAccount].
526         CreateCase(context.Context, *CreateCaseRequest) (*google_cloud_support_common.Case, error)
527         // Updates a support case. Only a small set of details (priority, subject and
528         // cc_address) can be update after a case is created.
529         UpdateCase(context.Context, *UpdateCaseRequest) (*google_cloud_support_common.Case, error)
530         // Adds a new comment to a case.
531         CreateComment(context.Context, *CreateCommentRequest) (*google_cloud_support_common.Comment, error)
532         // Retrieves the taxonomy of product categories and components to be used
533         // while creating a support case.
534         GetIssueTaxonomy(context.Context, *GetIssueTaxonomyRequest) (*google_cloud_support_common.IssueTaxonomy, error)
535 }
536
537 func RegisterCloudSupportServer(s *grpc.Server, srv CloudSupportServer) {
538         s.RegisterService(&_CloudSupport_serviceDesc, srv)
539 }
540
541 func _CloudSupport_GetSupportAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
542         in := new(GetSupportAccountRequest)
543         if err := dec(in); err != nil {
544                 return nil, err
545         }
546         if interceptor == nil {
547                 return srv.(CloudSupportServer).GetSupportAccount(ctx, in)
548         }
549         info := &grpc.UnaryServerInfo{
550                 Server:     srv,
551                 FullMethod: "/google.cloud.support.v1alpha1.CloudSupport/GetSupportAccount",
552         }
553         handler := func(ctx context.Context, req interface{}) (interface{}, error) {
554                 return srv.(CloudSupportServer).GetSupportAccount(ctx, req.(*GetSupportAccountRequest))
555         }
556         return interceptor(ctx, in, info, handler)
557 }
558
559 func _CloudSupport_ListSupportAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
560         in := new(ListSupportAccountsRequest)
561         if err := dec(in); err != nil {
562                 return nil, err
563         }
564         if interceptor == nil {
565                 return srv.(CloudSupportServer).ListSupportAccounts(ctx, in)
566         }
567         info := &grpc.UnaryServerInfo{
568                 Server:     srv,
569                 FullMethod: "/google.cloud.support.v1alpha1.CloudSupport/ListSupportAccounts",
570         }
571         handler := func(ctx context.Context, req interface{}) (interface{}, error) {
572                 return srv.(CloudSupportServer).ListSupportAccounts(ctx, req.(*ListSupportAccountsRequest))
573         }
574         return interceptor(ctx, in, info, handler)
575 }
576
577 func _CloudSupport_GetCase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
578         in := new(GetCaseRequest)
579         if err := dec(in); err != nil {
580                 return nil, err
581         }
582         if interceptor == nil {
583                 return srv.(CloudSupportServer).GetCase(ctx, in)
584         }
585         info := &grpc.UnaryServerInfo{
586                 Server:     srv,
587                 FullMethod: "/google.cloud.support.v1alpha1.CloudSupport/GetCase",
588         }
589         handler := func(ctx context.Context, req interface{}) (interface{}, error) {
590                 return srv.(CloudSupportServer).GetCase(ctx, req.(*GetCaseRequest))
591         }
592         return interceptor(ctx, in, info, handler)
593 }
594
595 func _CloudSupport_ListCases_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
596         in := new(ListCasesRequest)
597         if err := dec(in); err != nil {
598                 return nil, err
599         }
600         if interceptor == nil {
601                 return srv.(CloudSupportServer).ListCases(ctx, in)
602         }
603         info := &grpc.UnaryServerInfo{
604                 Server:     srv,
605                 FullMethod: "/google.cloud.support.v1alpha1.CloudSupport/ListCases",
606         }
607         handler := func(ctx context.Context, req interface{}) (interface{}, error) {
608                 return srv.(CloudSupportServer).ListCases(ctx, req.(*ListCasesRequest))
609         }
610         return interceptor(ctx, in, info, handler)
611 }
612
613 func _CloudSupport_ListComments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
614         in := new(ListCommentsRequest)
615         if err := dec(in); err != nil {
616                 return nil, err
617         }
618         if interceptor == nil {
619                 return srv.(CloudSupportServer).ListComments(ctx, in)
620         }
621         info := &grpc.UnaryServerInfo{
622                 Server:     srv,
623                 FullMethod: "/google.cloud.support.v1alpha1.CloudSupport/ListComments",
624         }
625         handler := func(ctx context.Context, req interface{}) (interface{}, error) {
626                 return srv.(CloudSupportServer).ListComments(ctx, req.(*ListCommentsRequest))
627         }
628         return interceptor(ctx, in, info, handler)
629 }
630
631 func _CloudSupport_CreateCase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
632         in := new(CreateCaseRequest)
633         if err := dec(in); err != nil {
634                 return nil, err
635         }
636         if interceptor == nil {
637                 return srv.(CloudSupportServer).CreateCase(ctx, in)
638         }
639         info := &grpc.UnaryServerInfo{
640                 Server:     srv,
641                 FullMethod: "/google.cloud.support.v1alpha1.CloudSupport/CreateCase",
642         }
643         handler := func(ctx context.Context, req interface{}) (interface{}, error) {
644                 return srv.(CloudSupportServer).CreateCase(ctx, req.(*CreateCaseRequest))
645         }
646         return interceptor(ctx, in, info, handler)
647 }
648
649 func _CloudSupport_UpdateCase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
650         in := new(UpdateCaseRequest)
651         if err := dec(in); err != nil {
652                 return nil, err
653         }
654         if interceptor == nil {
655                 return srv.(CloudSupportServer).UpdateCase(ctx, in)
656         }
657         info := &grpc.UnaryServerInfo{
658                 Server:     srv,
659                 FullMethod: "/google.cloud.support.v1alpha1.CloudSupport/UpdateCase",
660         }
661         handler := func(ctx context.Context, req interface{}) (interface{}, error) {
662                 return srv.(CloudSupportServer).UpdateCase(ctx, req.(*UpdateCaseRequest))
663         }
664         return interceptor(ctx, in, info, handler)
665 }
666
667 func _CloudSupport_CreateComment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
668         in := new(CreateCommentRequest)
669         if err := dec(in); err != nil {
670                 return nil, err
671         }
672         if interceptor == nil {
673                 return srv.(CloudSupportServer).CreateComment(ctx, in)
674         }
675         info := &grpc.UnaryServerInfo{
676                 Server:     srv,
677                 FullMethod: "/google.cloud.support.v1alpha1.CloudSupport/CreateComment",
678         }
679         handler := func(ctx context.Context, req interface{}) (interface{}, error) {
680                 return srv.(CloudSupportServer).CreateComment(ctx, req.(*CreateCommentRequest))
681         }
682         return interceptor(ctx, in, info, handler)
683 }
684
685 func _CloudSupport_GetIssueTaxonomy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
686         in := new(GetIssueTaxonomyRequest)
687         if err := dec(in); err != nil {
688                 return nil, err
689         }
690         if interceptor == nil {
691                 return srv.(CloudSupportServer).GetIssueTaxonomy(ctx, in)
692         }
693         info := &grpc.UnaryServerInfo{
694                 Server:     srv,
695                 FullMethod: "/google.cloud.support.v1alpha1.CloudSupport/GetIssueTaxonomy",
696         }
697         handler := func(ctx context.Context, req interface{}) (interface{}, error) {
698                 return srv.(CloudSupportServer).GetIssueTaxonomy(ctx, req.(*GetIssueTaxonomyRequest))
699         }
700         return interceptor(ctx, in, info, handler)
701 }
702
703 var _CloudSupport_serviceDesc = grpc.ServiceDesc{
704         ServiceName: "google.cloud.support.v1alpha1.CloudSupport",
705         HandlerType: (*CloudSupportServer)(nil),
706         Methods: []grpc.MethodDesc{
707                 {
708                         MethodName: "GetSupportAccount",
709                         Handler:    _CloudSupport_GetSupportAccount_Handler,
710                 },
711                 {
712                         MethodName: "ListSupportAccounts",
713                         Handler:    _CloudSupport_ListSupportAccounts_Handler,
714                 },
715                 {
716                         MethodName: "GetCase",
717                         Handler:    _CloudSupport_GetCase_Handler,
718                 },
719                 {
720                         MethodName: "ListCases",
721                         Handler:    _CloudSupport_ListCases_Handler,
722                 },
723                 {
724                         MethodName: "ListComments",
725                         Handler:    _CloudSupport_ListComments_Handler,
726                 },
727                 {
728                         MethodName: "CreateCase",
729                         Handler:    _CloudSupport_CreateCase_Handler,
730                 },
731                 {
732                         MethodName: "UpdateCase",
733                         Handler:    _CloudSupport_UpdateCase_Handler,
734                 },
735                 {
736                         MethodName: "CreateComment",
737                         Handler:    _CloudSupport_CreateComment_Handler,
738                 },
739                 {
740                         MethodName: "GetIssueTaxonomy",
741                         Handler:    _CloudSupport_GetIssueTaxonomy_Handler,
742                 },
743         },
744         Streams:  []grpc.StreamDesc{},
745         Metadata: "google/cloud/support/v1alpha1/cloud_support.proto",
746 }
747
748 func init() { proto.RegisterFile("google/cloud/support/v1alpha1/cloud_support.proto", fileDescriptor0) }
749
750 var fileDescriptor0 = []byte{
751         // 863 bytes of a gzipped FileDescriptorProto
752         0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x41, 0x4f, 0x33, 0x45,
753         0x18, 0xce, 0xb4, 0xc8, 0x07, 0x2f, 0xdf, 0xa7, 0x5f, 0x47, 0x82, 0x65, 0x0b, 0x49, 0x3b, 0x21,
754         0xa6, 0x56, 0xdd, 0x85, 0x36, 0x88, 0x96, 0x40, 0x14, 0x88, 0x8d, 0x89, 0x26, 0xa4, 0x60, 0x62,
755         0xbc, 0x34, 0x43, 0x19, 0xd6, 0x95, 0xee, 0xce, 0xda, 0x99, 0x1a, 0x40, 0xbd, 0x78, 0xf1, 0xa6,
756         0x07, 0x6f, 0x7a, 0xe1, 0xe2, 0x59, 0x0f, 0xfe, 0x13, 0xff, 0x82, 0xfe, 0x0f, 0xb3, 0xb3, 0xb3,
757         0xed, 0x76, 0x69, 0x77, 0x17, 0x6e, 0xdd, 0x77, 0xde, 0xe7, 0x7d, 0x9f, 0x79, 0xe6, 0x9d, 0x67,
758         0x0a, 0x3b, 0x36, 0xe7, 0xf6, 0x80, 0x59, 0xfd, 0x01, 0x1f, 0x5d, 0x5a, 0x62, 0xe4, 0xfb, 0x7c,
759         0x28, 0xad, 0x6f, 0x77, 0xe8, 0xc0, 0xff, 0x8a, 0xee, 0x84, 0xe1, 0x9e, 0x0e, 0x9b, 0xfe, 0x90,
760         0x4b, 0x8e, 0x37, 0x43, 0x88, 0xa9, 0xd6, 0xcc, 0x68, 0x2d, 0x82, 0x18, 0x1b, 0xba, 0x22, 0xf5,
761         0x1d, 0x8b, 0x7a, 0x1e, 0x97, 0x54, 0x3a, 0xdc, 0x13, 0x21, 0xd8, 0xa8, 0xcd, 0xec, 0xd7, 0xe7,
762         0xae, 0xcb, 0x3d, 0x9d, 0x52, 0xd1, 0x29, 0xea, 0xeb, 0x62, 0x74, 0x65, 0x31, 0xd7, 0x97, 0xb7,
763         0x7a, 0xb1, 0x9a, 0x5c, 0xbc, 0x72, 0xd8, 0xe0, 0xb2, 0xe7, 0x52, 0x71, 0x1d, 0x66, 0x10, 0x13,
764         0xca, 0x1d, 0x26, 0xcf, 0xc2, 0xca, 0x1f, 0xf5, 0xfb, 0x7c, 0xe4, 0xc9, 0x2e, 0xfb, 0x66, 0xc4,
765         0x84, 0xc4, 0x18, 0x16, 0x3c, 0xea, 0xb2, 0x32, 0xaa, 0xa2, 0xfa, 0x72, 0x57, 0xfd, 0x26, 0x3e,
766         0x18, 0x9f, 0x3a, 0x22, 0x01, 0x10, 0x11, 0x62, 0x0d, 0x16, 0xaf, 0x9c, 0x81, 0x64, 0x43, 0x8d,
767         0xd1, 0x5f, 0xb8, 0x02, 0xcb, 0x3e, 0xb5, 0x59, 0x4f, 0x38, 0x77, 0xac, 0x5c, 0xa8, 0xa2, 0x7a,
768         0xb1, 0xbb, 0x14, 0x04, 0xce, 0x9c, 0x3b, 0x86, 0x37, 0x01, 0xd4, 0xa2, 0xe4, 0xd7, 0xcc, 0x2b,
769         0x17, 0x15, 0x50, 0xa5, 0x9f, 0x07, 0x01, 0xf2, 0x33, 0x82, 0xca, 0xcc, 0x96, 0xc2, 0xe7, 0x9e,
770         0x60, 0xb8, 0x03, 0x4b, 0x54, 0xc7, 0xca, 0xa8, 0x5a, 0xac, 0xaf, 0x34, 0xdf, 0x36, 0x67, 0x6a,
771         0xae, 0x65, 0x4b, 0xec, 0x75, 0x0c, 0xc6, 0x6f, 0xc2, 0x6b, 0x1e, 0xbb, 0x91, 0xbd, 0x18, 0x99,
772         0x82, 0x22, 0xf3, 0x22, 0x08, 0x9f, 0x8e, 0x09, 0x6d, 0xc1, 0xab, 0x1d, 0x26, 0x8f, 0xa9, 0x60,
773         0x69, 0x42, 0xdd, 0xc1, 0xcb, 0x80, 0x75, 0x90, 0x26, 0x52, 0xf2, 0x62, 0x92, 0x15, 0xe6, 0x4b,
774         0x56, 0x4c, 0x95, 0x6c, 0x21, 0x29, 0x99, 0x84, 0x52, 0xac, 0xb7, 0xd6, 0x69, 0x0f, 0x5e, 0xe9,
775         0x07, 0x01, 0x2d, 0x52, 0x2d, 0x55, 0x24, 0xb5, 0xbb, 0x30, 0x3f, 0xb7, 0x2e, 0x6f, 0xc1, 0xeb,
776         0xaa, 0x2b, 0x77, 0x5d, 0x16, 0x9b, 0x89, 0x59, 0xe2, 0x7c, 0x01, 0xab, 0xd3, 0xa9, 0x9a, 0xe3,
777         0x87, 0xb0, 0xd4, 0xd7, 0x31, 0x4d, 0x73, 0x2b, 0x9d, 0x66, 0x98, 0xdc, 0x1d, 0xa3, 0xc8, 0x05,
778         0x94, 0x8e, 0x87, 0x8c, 0x4a, 0x16, 0x3f, 0x9f, 0x35, 0x58, 0xf4, 0xe9, 0x90, 0x79, 0x32, 0x1a,
779         0xcb, 0xf0, 0x0b, 0xef, 0xc2, 0x42, 0xb0, 0x45, 0xb5, 0x9d, 0x5c, 0x8a, 0xa8, 0x74, 0xf2, 0x13,
780         0x82, 0xd2, 0xe7, 0xfe, 0x65, 0xa2, 0x49, 0x54, 0x0c, 0x3d, 0xaa, 0x18, 0xde, 0x87, 0x95, 0x91,
781         0xaa, 0xa5, 0x6e, 0xa5, 0xa6, 0x62, 0x44, 0xe8, 0xe8, 0xe2, 0x9a, 0x1f, 0x07, 0x17, 0xf7, 0x33,
782         0x2a, 0xae, 0xbb, 0x10, 0xa6, 0x07, 0xbf, 0xc9, 0xd7, 0xb0, 0xaa, 0x77, 0xab, 0x85, 0x48, 0x19,
783         0xb4, 0x43, 0x78, 0xa6, 0x55, 0xd2, 0x4d, 0xf2, 0x49, 0x1b, 0x81, 0xc8, 0x3a, 0xbc, 0xd1, 0x61,
784         0xf2, 0x13, 0x21, 0x46, 0xec, 0x9c, 0xde, 0x70, 0x8f, 0xbb, 0xb7, 0xba, 0x5d, 0xf3, 0xbf, 0x15,
785         0x78, 0x7e, 0x1c, 0x14, 0xd1, 0x77, 0x0b, 0xff, 0x81, 0xa0, 0xf4, 0xc0, 0x56, 0xf0, 0x9e, 0x99,
786         0xea, 0x85, 0xe6, 0x3c, 0x23, 0x32, 0x1e, 0x73, 0xa1, 0x49, 0xe3, 0xc7, 0x7f, 0xfe, 0xfd, 0xb5,
787         0xb0, 0x85, 0xc9, 0xc4, 0x97, 0xbf, 0x0b, 0x04, 0x38, 0x10, 0xd3, 0x06, 0x62, 0x35, 0x7e, 0xc0,
788         0x7f, 0xa2, 0x70, 0x66, 0x13, 0xde, 0x82, 0x3f, 0xc8, 0x60, 0x3a, 0xdf, 0x02, 0x8d, 0xf6, 0x53,
789         0xa0, 0xe1, 0xf8, 0x93, 0x9a, 0xa2, 0x5e, 0xc1, 0xeb, 0x13, 0xea, 0x09, 0xd2, 0xf8, 0x17, 0x04,
790         0xcf, 0xb4, 0xfb, 0xe0, 0x77, 0xb3, 0xf5, 0x8c, 0x0d, 0xa8, 0x91, 0x3d, 0x92, 0xa4, 0xa9, 0x08,
791         0xbc, 0x83, 0x1b, 0x99, 0xda, 0x59, 0xca, 0x1b, 0x02, 0x0d, 0xef, 0x11, 0x2c, 0x8f, 0xdd, 0x06,
792         0x5b, 0x39, 0xb6, 0x1f, 0xf7, 0x44, 0x63, 0x3b, 0x3f, 0x40, 0xab, 0xb4, 0xad, 0x48, 0x36, 0x70,
793         0x3d, 0xfb, 0x80, 0x43, 0x96, 0xf8, 0x6f, 0x04, 0xcf, 0xe3, 0x7e, 0x83, 0x9b, 0x79, 0x9a, 0x4e,
794         0xfb, 0x98, 0xd1, 0x7a, 0x14, 0x46, 0x73, 0xdd, 0x57, 0x5c, 0x77, 0x71, 0x2b, 0xbf, 0xa0, 0x56,
795         0xe4, 0x65, 0xf8, 0x77, 0x04, 0x30, 0x31, 0x33, 0x9c, 0xa5, 0xd4, 0x03, 0xdf, 0xcb, 0x73, 0xe2,
796         0xef, 0x2b, 0x82, 0x4d, 0x12, 0x3f, 0xf1, 0xd0, 0x1d, 0xe7, 0xca, 0xd9, 0x0e, 0x8d, 0xeb, 0x1e,
797         0x01, 0x4c, 0x5c, 0x30, 0x93, 0xdd, 0x03, 0xc3, 0xcc, 0xc3, 0xee, 0x40, 0xb1, 0xdb, 0x6b, 0x5a,
798         0x31, 0x76, 0x41, 0x73, 0x33, 0x43, 0x43, 0x4d, 0xf1, 0x2f, 0x04, 0x2f, 0xa6, 0xfc, 0x11, 0xb7,
799         0xf2, 0x69, 0x38, 0xe5, 0xa6, 0x46, 0x2e, 0xa3, 0x24, 0x27, 0x8a, 0xeb, 0x21, 0x79, 0xca, 0x51,
800         0xb7, 0x23, 0x97, 0xc5, 0xbf, 0x21, 0x78, 0x99, 0xb4, 0x59, 0xfc, 0x5e, 0xf6, 0x45, 0x9f, 0xe5,
801         0xcb, 0x46, 0x23, 0x95, 0xf8, 0x14, 0x84, 0x10, 0x45, 0x7f, 0x03, 0x1b, 0x63, 0xfa, 0x6d, 0x3b,
802         0x51, 0xf6, 0xe8, 0x7b, 0xa8, 0xf5, 0xb9, 0x9b, 0x4e, 0xe6, 0xa8, 0x14, 0x7f, 0x09, 0x4e, 0x83,
803         0xf7, 0xeb, 0xcb, 0x13, 0x8d, 0xb0, 0xf9, 0x80, 0x7a, 0xb6, 0xc9, 0x87, 0xb6, 0x65, 0x33, 0x4f,
804         0xbd, 0x6d, 0x56, 0xb8, 0x44, 0x7d, 0x47, 0xcc, 0xf9, 0x57, 0xbd, 0xaf, 0x03, 0x17, 0x8b, 0x0a,
805         0xd0, 0xfa, 0x3f, 0x00, 0x00, 0xff, 0xff, 0xad, 0xe1, 0xf2, 0x57, 0x85, 0x0b, 0x00, 0x00,
806 }