Debian Codegraph @

support/apiv2beta/supportpb/comment_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/support/v2beta/comment_service.proto
20
21 package supportpb
22
23 import (
24 context "context"
25 _ "google.golang.org/genproto/googleapis/api/annotations"
26 grpc "google.golang.org/grpc"
27 codes "google.golang.org/grpc/codes"
28 status "google.golang.org/grpc/status"
29 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
30 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
31 reflect "reflect"
32 sync "sync"
33 )
34
35 const (
36 // Verify that this generated code is sufficiently up-to-date.
37 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
38 // Verify that runtime/protoimpl is sufficiently up-to-date.
39 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
40 )
41
42 // The request message for the ListComments endpoint.
43 type ListCommentsRequest struct {
44 state protoimpl.MessageState
45 sizeCache protoimpl.SizeCache
46 unknownFields protoimpl.UnknownFields
47
48 // Required. The name of the case for which to list comments.
49 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
50 // The maximum number of comments to fetch. Defaults to 10.
51 PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
52 // A token identifying the page of results to return. If unspecified, the
53 // first page is returned.
54 PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
55 }
56
57 func (x *ListCommentsRequest) Reset() {
58 *x = ListCommentsRequest{}
59 mi := &file_google_cloud_support_v2beta_comment_service_proto_msgTypes[0]
60 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
61 ms.StoreMessageInfo(mi)
62 }
63
64 func (x *ListCommentsRequest) String() string {
65 return protoimpl.X.MessageStringOf(x)
66 }
67
68 func (*ListCommentsRequest) ProtoMessage() {}
69
70 func (x *ListCommentsRequest) ProtoReflect() protoreflect.Message {
71 mi := &file_google_cloud_support_v2beta_comment_service_proto_msgTypes[0]
72 if x != nil {
73 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
74 if ms.LoadMessageInfo() == nil {
75 ms.StoreMessageInfo(mi)
76 }
77 return ms
78 }
79 return mi.MessageOf(x)
80 }
81
82 // Deprecated: Use ListCommentsRequest.ProtoReflect.Descriptor instead.
83 func (*ListCommentsRequest) Descriptor() ([]byte, []int) {
84 return file_google_cloud_support_v2beta_comment_service_proto_rawDescGZIP(), []int{0}
85 }
86
87 func (x *ListCommentsRequest) GetParent() string {
88 if x != nil {
89 return x.Parent
90 }
91 return ""
92 }
93
94 func (x *ListCommentsRequest) GetPageSize() int32 {
95 if x != nil {
96 return x.PageSize
97 }
98 return 0
99 }
100
101 func (x *ListCommentsRequest) GetPageToken() string {
102 if x != nil {
103 return x.PageToken
104 }
105 return ""
106 }
107
108 // The response message for the ListComments endpoint.
109 type ListCommentsResponse struct {
110 state protoimpl.MessageState
111 sizeCache protoimpl.SizeCache
112 unknownFields protoimpl.UnknownFields
113
114 // List of the comments associated with the case.
115 Comments []*Comment `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"`
116 // A token to retrieve the next page of results. Set this in the `page_token`
117 // field of subsequent `cases.comments.list` requests. If unspecified, there
118 // are no more results to retrieve.
119 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
120 }
121
122 func (x *ListCommentsResponse) Reset() {
123 *x = ListCommentsResponse{}
124 mi := &file_google_cloud_support_v2beta_comment_service_proto_msgTypes[1]
125 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
126 ms.StoreMessageInfo(mi)
127 }
128
129 func (x *ListCommentsResponse) String() string {
130 return protoimpl.X.MessageStringOf(x)
131 }
132
133 func (*ListCommentsResponse) ProtoMessage() {}
134
135 func (x *ListCommentsResponse) ProtoReflect() protoreflect.Message {
136 mi := &file_google_cloud_support_v2beta_comment_service_proto_msgTypes[1]
137 if x != nil {
138 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
139 if ms.LoadMessageInfo() == nil {
140 ms.StoreMessageInfo(mi)
141 }
142 return ms
143 }
144 return mi.MessageOf(x)
145 }
146
147 // Deprecated: Use ListCommentsResponse.ProtoReflect.Descriptor instead.
148 func (*ListCommentsResponse) Descriptor() ([]byte, []int) {
149 return file_google_cloud_support_v2beta_comment_service_proto_rawDescGZIP(), []int{1}
150 }
151
152 func (x *ListCommentsResponse) GetComments() []*Comment {
153 if x != nil {
154 return x.Comments
155 }
156 return nil
157 }
158
159 func (x *ListCommentsResponse) GetNextPageToken() string {
160 if x != nil {
161 return x.NextPageToken
162 }
163 return ""
164 }
165
166 // The request message for the CreateComment endpoint.
167 type CreateCommentRequest struct {
168 state protoimpl.MessageState
169 sizeCache protoimpl.SizeCache
170 unknownFields protoimpl.UnknownFields
171
172 // Required. The name of the case to which the comment should be added.
173 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
174 // Required. The comment to be added.
175 Comment *Comment `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
176 }
177
178 func (x *CreateCommentRequest) Reset() {
179 *x = CreateCommentRequest{}
180 mi := &file_google_cloud_support_v2beta_comment_service_proto_msgTypes[2]
181 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
182 ms.StoreMessageInfo(mi)
183 }
184
185 func (x *CreateCommentRequest) String() string {
186 return protoimpl.X.MessageStringOf(x)
187 }
188
189 func (*CreateCommentRequest) ProtoMessage() {}
190
191 func (x *CreateCommentRequest) ProtoReflect() protoreflect.Message {
192 mi := &file_google_cloud_support_v2beta_comment_service_proto_msgTypes[2]
193 if x != nil {
194 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
195 if ms.LoadMessageInfo() == nil {
196 ms.StoreMessageInfo(mi)
197 }
198 return ms
199 }
200 return mi.MessageOf(x)
201 }
202
203 // Deprecated: Use CreateCommentRequest.ProtoReflect.Descriptor instead.
204 func (*CreateCommentRequest) Descriptor() ([]byte, []int) {
205 return file_google_cloud_support_v2beta_comment_service_proto_rawDescGZIP(), []int{2}
206 }
207
208 func (x *CreateCommentRequest) GetParent() string {
209 if x != nil {
210 return x.Parent
211 }
212 return ""
213 }
214
215 func (x *CreateCommentRequest) GetComment() *Comment {
216 if x != nil {
217 return x.Comment
218 }
219 return nil
220 }
221
222 // The request message for the GetComment endpoint.
223 type GetCommentRequest struct {
224 state protoimpl.MessageState
225 sizeCache protoimpl.SizeCache
226 unknownFields protoimpl.UnknownFields
227
228 // Required. The name of the comment to retrieve.
229 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
230 }
231
232 func (x *GetCommentRequest) Reset() {
233 *x = GetCommentRequest{}
234 mi := &file_google_cloud_support_v2beta_comment_service_proto_msgTypes[3]
235 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
236 ms.StoreMessageInfo(mi)
237 }
238
239 func (x *GetCommentRequest) String() string {
240 return protoimpl.X.MessageStringOf(x)
241 }
242
243 func (*GetCommentRequest) ProtoMessage() {}
244
245 func (x *GetCommentRequest) ProtoReflect() protoreflect.Message {
246 mi := &file_google_cloud_support_v2beta_comment_service_proto_msgTypes[3]
247 if x != nil {
248 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
249 if ms.LoadMessageInfo() == nil {
250 ms.StoreMessageInfo(mi)
251 }
252 return ms
253 }
254 return mi.MessageOf(x)
255 }
256
257 // Deprecated: Use GetCommentRequest.ProtoReflect.Descriptor instead.
258 func (*GetCommentRequest) Descriptor() ([]byte, []int) {
259 return file_google_cloud_support_v2beta_comment_service_proto_rawDescGZIP(), []int{3}
260 }
261
262 func (x *GetCommentRequest) GetName() string {
263 if x != nil {
264 return x.Name
265 }
266 return ""
267 }
268
269 var File_google_cloud_support_v2beta_comment_service_proto protoreflect.FileDescriptor
270
271 var file_google_cloud_support_v2beta_comment_service_proto_rawDesc = []byte{
272 0x0a, 0x31, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
273 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x63, 0x6f,
274 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72,
275 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
276 0x64, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61,
277 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e,
278 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17,
279 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e,
280 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
281 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69,
282 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
283 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72,
284 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75,
285 0x64, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61,
286 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x93,
287 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52,
288 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
289 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x28, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x22, 0x0a, 0x20,
290 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x67, 0x6f, 0x6f,
291 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x61, 0x73, 0x65,
292 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65,
293 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67,
294 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f,
295 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54,
296 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x80, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d,
297 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a,
298 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
299 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73,
300 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x6f,
301 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12,
302 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b,
303 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61,
304 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x9d, 0x01, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61,
305 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
306 0x12, 0x40, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
307 0x42, 0x28, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x22, 0x0a, 0x20, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x73,
308 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
309 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x61, 0x73, 0x65, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65,
310 0x6e, 0x74, 0x12, 0x43, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20,
311 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
312 0x75, 0x64, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74,
313 0x61, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07,
314 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x54, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x43, 0x6f,
315 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x04,
316 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xe0, 0x41, 0x02, 0xfa,
317 0x41, 0x25, 0x0a, 0x23, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74,
318 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
319 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x32, 0xe0, 0x05,
320 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
321 0x12, 0xe7, 0x01, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74,
322 0x73, 0x12, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
323 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e,
324 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75,
325 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
326 0x75, 0x64, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74,
327 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65,
328 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x72, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,
329 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x63, 0x5a, 0x33, 0x12, 0x31, 0x2f, 0x76, 0x32, 0x62, 0x65,
330 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x6f, 0x72, 0x67, 0x61, 0x6e,
331 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x73, 0x65, 0x73,
332 0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2c, 0x2f, 0x76,
333 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72,
334 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a,
335 0x7d, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0xf7, 0x01, 0x0a, 0x0d, 0x43,
336 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x31, 0x2e, 0x67,
337 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x75, 0x70, 0x70,
338 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74,
339 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
340 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73,
341 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x6f,
342 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x8c, 0x01, 0xda, 0x41, 0x0e, 0x70, 0x61, 0x72, 0x65, 0x6e,
343 0x74, 0x2c, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x75, 0x3a,
344 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x5a, 0x3c, 0x3a, 0x07, 0x63, 0x6f, 0x6d, 0x6d,
345 0x65, 0x6e, 0x74, 0x22, 0x31, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x61,
346 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f,
347 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x6f,
348 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x2c, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f,
349 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,
350 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x6f, 0x6d, 0x6d,
351 0x65, 0x6e, 0x74, 0x73, 0x12, 0x98, 0x01, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d,
352 0x65, 0x6e, 0x74, 0x12, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
353 0x75, 0x64, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74,
354 0x61, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75,
355 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
356 0x75, 0x64, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74,
357 0x61, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x34, 0xda, 0x41, 0x04, 0x6e, 0x61,
358 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74,
359 0x61, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x2a, 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x73, 0x65,
360 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x1a,
361 0x4f, 0xca, 0x41, 0x1b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74,
362 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2,
363 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f,
364 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74,
365 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
366 0x42, 0xd0, 0x01, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
367 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32,
368 0x62, 0x65, 0x74, 0x61, 0x42, 0x13, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72,
369 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x39, 0x63, 0x6c, 0x6f,
370 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f,
371 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x62, 0x65,
372 0x74, 0x61, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x70, 0x62, 0x3b, 0x73, 0x75, 0x70,
373 0x70, 0x6f, 0x72, 0x74, 0x70, 0x62, 0xaa, 0x02, 0x1b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
374 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x56, 0x32,
375 0x42, 0x65, 0x74, 0x61, 0xca, 0x02, 0x1b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c,
376 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x5c, 0x56, 0x32, 0x62, 0x65,
377 0x74, 0x61, 0xea, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f,
378 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x3a, 0x3a, 0x56, 0x32, 0x62,
379 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
380 }
381
382 var (
383 file_google_cloud_support_v2beta_comment_service_proto_rawDescOnce sync.Once
384 file_google_cloud_support_v2beta_comment_service_proto_rawDescData = file_google_cloud_support_v2beta_comment_service_proto_rawDesc
385 )
386
387 func file_google_cloud_support_v2beta_comment_service_proto_rawDescGZIP() []byte {
388 file_google_cloud_support_v2beta_comment_service_proto_rawDescOnce.Do(func() {
389 file_google_cloud_support_v2beta_comment_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_support_v2beta_comment_service_proto_rawDescData)
390 })
391 return file_google_cloud_support_v2beta_comment_service_proto_rawDescData
392 }
393
394 var file_google_cloud_support_v2beta_comment_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
395 var file_google_cloud_support_v2beta_comment_service_proto_goTypes = []any{
396 (*ListCommentsRequest)(nil), // 0: google.cloud.support.v2beta.ListCommentsRequest
397 (*ListCommentsResponse)(nil), // 1: google.cloud.support.v2beta.ListCommentsResponse
398 (*CreateCommentRequest)(nil), // 2: google.cloud.support.v2beta.CreateCommentRequest
399 (*GetCommentRequest)(nil), // 3: google.cloud.support.v2beta.GetCommentRequest
400 (*Comment)(nil), // 4: google.cloud.support.v2beta.Comment
401 }
402 var file_google_cloud_support_v2beta_comment_service_proto_depIdxs = []int32{
403 4, // 0: google.cloud.support.v2beta.ListCommentsResponse.comments:type_name -> google.cloud.support.v2beta.Comment
404 4, // 1: google.cloud.support.v2beta.CreateCommentRequest.comment:type_name -> google.cloud.support.v2beta.Comment
405 0, // 2: google.cloud.support.v2beta.CommentService.ListComments:input_type -> google.cloud.support.v2beta.ListCommentsRequest
406 2, // 3: google.cloud.support.v2beta.CommentService.CreateComment:input_type -> google.cloud.support.v2beta.CreateCommentRequest
407 3, // 4: google.cloud.support.v2beta.CommentService.GetComment:input_type -> google.cloud.support.v2beta.GetCommentRequest
408 1, // 5: google.cloud.support.v2beta.CommentService.ListComments:output_type -> google.cloud.support.v2beta.ListCommentsResponse
409 4, // 6: google.cloud.support.v2beta.CommentService.CreateComment:output_type -> google.cloud.support.v2beta.Comment
410 4, // 7: google.cloud.support.v2beta.CommentService.GetComment:output_type -> google.cloud.support.v2beta.Comment
411 5, // [5:8] is the sub-list for method output_type
412 2, // [2:5] is the sub-list for method input_type
413 2, // [2:2] is the sub-list for extension type_name
414 2, // [2:2] is the sub-list for extension extendee
415 0, // [0:2] is the sub-list for field type_name
416 }
417
418 func init() { file_google_cloud_support_v2beta_comment_service_proto_init() }
419 func file_google_cloud_support_v2beta_comment_service_proto_init() {
420 if File_google_cloud_support_v2beta_comment_service_proto != nil {
421 return
422 }
423 file_google_cloud_support_v2beta_comment_proto_init()
424 type x struct{}
425 out := protoimpl.TypeBuilder{
426 File: protoimpl.DescBuilder{
427 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
428 RawDescriptor: file_google_cloud_support_v2beta_comment_service_proto_rawDesc,
429 NumEnums: 0,
430 NumMessages: 4,
431 NumExtensions: 0,
432 NumServices: 1,
433 },
434 GoTypes: file_google_cloud_support_v2beta_comment_service_proto_goTypes,
435 DependencyIndexes: file_google_cloud_support_v2beta_comment_service_proto_depIdxs,
436 MessageInfos: file_google_cloud_support_v2beta_comment_service_proto_msgTypes,
437 }.Build()
438 File_google_cloud_support_v2beta_comment_service_proto = out.File
439 file_google_cloud_support_v2beta_comment_service_proto_rawDesc = nil
440 file_google_cloud_support_v2beta_comment_service_proto_goTypes = nil
441 file_google_cloud_support_v2beta_comment_service_proto_depIdxs = nil
442 }
443
444 // Reference imports to suppress errors if they are not otherwise used.
445 var _ context.Context
446 var _ grpc.ClientConnInterface
447
448 // This is a compile-time assertion to ensure that this generated file
449 // is compatible with the grpc package it is being compiled against.
450 const _ = grpc.SupportPackageIsVersion6
451
452 // CommentServiceClient is the client API for CommentService service.
453 //
454 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
455 type CommentServiceClient interface {
456 // List all the comments associated with a case.
457 ListComments(ctx context.Context, in *ListCommentsRequest, opts ...grpc.CallOption) (*ListCommentsResponse, error)
458 // Add a new comment to a case.
459 //
460 // The comment must have the following fields set: `body`.
461 CreateComment(ctx context.Context, in *CreateCommentRequest, opts ...grpc.CallOption) (*Comment, error)
462 // Retrieve a comment.
463 GetComment(ctx context.Context, in *GetCommentRequest, opts ...grpc.CallOption) (*Comment, error)
464 }
465
466 type commentServiceClient struct {
467 cc grpc.ClientConnInterface
468 }
469
470 func NewCommentServiceClient(cc grpc.ClientConnInterface) CommentServiceClient {
471 return &commentServiceClient{cc}
472 }
473
474 func (c *commentServiceClient) ListComments(ctx context.Context, in *ListCommentsRequest, opts ...grpc.CallOption) (*ListCommentsResponse, error) {
475 out := new(ListCommentsResponse)
476 err := c.cc.Invoke(ctx, "/google.cloud.support.v2beta.CommentService/ListComments", in, out, opts...)
477 if err != nil {
478 return nil, err
479 }
480 return out, nil
481 }
482
483 func (c *commentServiceClient) CreateComment(ctx context.Context, in *CreateCommentRequest, opts ...grpc.CallOption) (*Comment, error) {
484 out := new(Comment)
485 err := c.cc.Invoke(ctx, "/google.cloud.support.v2beta.CommentService/CreateComment", in, out, opts...)
486 if err != nil {
487 return nil, err
488 }
489 return out, nil
490 }
491
492 func (c *commentServiceClient) GetComment(ctx context.Context, in *GetCommentRequest, opts ...grpc.CallOption) (*Comment, error) {
493 out := new(Comment)
494 err := c.cc.Invoke(ctx, "/google.cloud.support.v2beta.CommentService/GetComment", in, out, opts...)
495 if err != nil {
496 return nil, err
497 }
498 return out, nil
499 }
500
501 // CommentServiceServer is the server API for CommentService service.
502 type CommentServiceServer interface {
503 // List all the comments associated with a case.
504 ListComments(context.Context, *ListCommentsRequest) (*ListCommentsResponse, error)
505 // Add a new comment to a case.
506 //
507 // The comment must have the following fields set: `body`.
508 CreateComment(context.Context, *CreateCommentRequest) (*Comment, error)
509 // Retrieve a comment.
510 GetComment(context.Context, *GetCommentRequest) (*Comment, error)
511 }
512
513 // UnimplementedCommentServiceServer can be embedded to have forward compatible implementations.
514 type UnimplementedCommentServiceServer struct {
515 }
516
517 func (*UnimplementedCommentServiceServer) ListComments(context.Context, *ListCommentsRequest) (*ListCommentsResponse, error) {
518 return nil, status.Errorf(codes.Unimplemented, "method ListComments not implemented")
519 }
520 func (*UnimplementedCommentServiceServer) CreateComment(context.Context, *CreateCommentRequest) (*Comment, error) {
521 return nil, status.Errorf(codes.Unimplemented, "method CreateComment not implemented")
522 }
523 func (*UnimplementedCommentServiceServer) GetComment(context.Context, *GetCommentRequest) (*Comment, error) {
524 return nil, status.Errorf(codes.Unimplemented, "method GetComment not implemented")
525 }
526
527 func RegisterCommentServiceServer(s *grpc.Server, srv CommentServiceServer) {
528 s.RegisterService(&_CommentService_serviceDesc, srv)
529 }
530
531 func _CommentService_ListComments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
532 in := new(ListCommentsRequest)
533 if err := dec(in); err != nil {
534 return nil, err
535 }
536 if interceptor == nil {
537 return srv.(CommentServiceServer).ListComments(ctx, in)
538 }
539 info := &grpc.UnaryServerInfo{
540 Server: srv,
541 FullMethod: "/google.cloud.support.v2beta.CommentService/ListComments",
542 }
543 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
544 return srv.(CommentServiceServer).ListComments(ctx, req.(*ListCommentsRequest))
545 }
546 return interceptor(ctx, in, info, handler)
547 }
548
549 func _CommentService_CreateComment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
550 in := new(CreateCommentRequest)
551 if err := dec(in); err != nil {
552 return nil, err
553 }
554 if interceptor == nil {
555 return srv.(CommentServiceServer).CreateComment(ctx, in)
556 }
557 info := &grpc.UnaryServerInfo{
558 Server: srv,
559 FullMethod: "/google.cloud.support.v2beta.CommentService/CreateComment",
560 }
561 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
562 return srv.(CommentServiceServer).CreateComment(ctx, req.(*CreateCommentRequest))
563 }
564 return interceptor(ctx, in, info, handler)
565 }
566
567 func _CommentService_GetComment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
568 in := new(GetCommentRequest)
569 if err := dec(in); err != nil {
570 return nil, err
571 }
572 if interceptor == nil {
573 return srv.(CommentServiceServer).GetComment(ctx, in)
574 }
575 info := &grpc.UnaryServerInfo{
576 Server: srv,
577 FullMethod: "/google.cloud.support.v2beta.CommentService/GetComment",
578 }
579 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
580 return srv.(CommentServiceServer).GetComment(ctx, req.(*GetCommentRequest))
581 }
582 return interceptor(ctx, in, info, handler)
583 }
584
585 var _CommentService_serviceDesc = grpc.ServiceDesc{
586 ServiceName: "google.cloud.support.v2beta.CommentService",
587 HandlerType: (*CommentServiceServer)(nil),
588 Methods: []grpc.MethodDesc{
589 {
590 MethodName: "ListComments",
591 Handler: _CommentService_ListComments_Handler,
592 },
593 {
594 MethodName: "CreateComment",
595 Handler: _CommentService_CreateComment_Handler,
596 },
597 {
598 MethodName: "GetComment",
599 Handler: _CommentService_GetComment_Handler,
600 },
601 },
602 Streams: []grpc.StreamDesc{},
603 Metadata: "google/cloud/support/v2beta/comment_service.proto",
604 }