Debian Codegraph @

support/apiv2beta/supportpb/feed_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/feed_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 ShowFeed endpoint.
43 type ShowFeedRequest struct {
44 state protoimpl.MessageState
45 sizeCache protoimpl.SizeCache
46 unknownFields protoimpl.UnknownFields
47
48 // Required. The resource name of the case for which feed items should be
49 // listed.
50 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
51 // Optional. Field to order feed items by, followed by `asc` or `desc`
52 // postfix. The only valid field is
53 // `creation_time`. This list is case-insensitive, default sorting order is
54 // ascending, and the redundant space characters are insignificant.
55 //
56 // Example: `creation_time desc`
57 OrderBy string `protobuf:"bytes,2,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
58 // Optional. The maximum number of feed items fetched with each request.
59 PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
60 // Optional. A token identifying the page of results to return. If
61 // unspecified, it retrieves the first page.
62 PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
63 }
64
65 func (x *ShowFeedRequest) Reset() {
66 *x = ShowFeedRequest{}
67 mi := &file_google_cloud_support_v2beta_feed_service_proto_msgTypes[0]
68 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
69 ms.StoreMessageInfo(mi)
70 }
71
72 func (x *ShowFeedRequest) String() string {
73 return protoimpl.X.MessageStringOf(x)
74 }
75
76 func (*ShowFeedRequest) ProtoMessage() {}
77
78 func (x *ShowFeedRequest) ProtoReflect() protoreflect.Message {
79 mi := &file_google_cloud_support_v2beta_feed_service_proto_msgTypes[0]
80 if x != nil {
81 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
82 if ms.LoadMessageInfo() == nil {
83 ms.StoreMessageInfo(mi)
84 }
85 return ms
86 }
87 return mi.MessageOf(x)
88 }
89
90 // Deprecated: Use ShowFeedRequest.ProtoReflect.Descriptor instead.
91 func (*ShowFeedRequest) Descriptor() ([]byte, []int) {
92 return file_google_cloud_support_v2beta_feed_service_proto_rawDescGZIP(), []int{0}
93 }
94
95 func (x *ShowFeedRequest) GetParent() string {
96 if x != nil {
97 return x.Parent
98 }
99 return ""
100 }
101
102 func (x *ShowFeedRequest) GetOrderBy() string {
103 if x != nil {
104 return x.OrderBy
105 }
106 return ""
107 }
108
109 func (x *ShowFeedRequest) GetPageSize() int32 {
110 if x != nil {
111 return x.PageSize
112 }
113 return 0
114 }
115
116 func (x *ShowFeedRequest) GetPageToken() string {
117 if x != nil {
118 return x.PageToken
119 }
120 return ""
121 }
122
123 // The response message for the ShowFeed endpoint.
124 type ShowFeedResponse struct {
125 state protoimpl.MessageState
126 sizeCache protoimpl.SizeCache
127 unknownFields protoimpl.UnknownFields
128
129 // The list of feed items associated with the given Case.
130 FeedItems []*FeedItem `protobuf:"bytes,1,rep,name=feed_items,json=feedItems,proto3" json:"feed_items,omitempty"`
131 // A token to retrieve the next page of results. This should be set in the
132 // `page_token` field of subsequent `ShowFeedRequests`.
133 // If unspecified, there are no more results to retrieve.
134 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
135 }
136
137 func (x *ShowFeedResponse) Reset() {
138 *x = ShowFeedResponse{}
139 mi := &file_google_cloud_support_v2beta_feed_service_proto_msgTypes[1]
140 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
141 ms.StoreMessageInfo(mi)
142 }
143
144 func (x *ShowFeedResponse) String() string {
145 return protoimpl.X.MessageStringOf(x)
146 }
147
148 func (*ShowFeedResponse) ProtoMessage() {}
149
150 func (x *ShowFeedResponse) ProtoReflect() protoreflect.Message {
151 mi := &file_google_cloud_support_v2beta_feed_service_proto_msgTypes[1]
152 if x != nil {
153 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
154 if ms.LoadMessageInfo() == nil {
155 ms.StoreMessageInfo(mi)
156 }
157 return ms
158 }
159 return mi.MessageOf(x)
160 }
161
162 // Deprecated: Use ShowFeedResponse.ProtoReflect.Descriptor instead.
163 func (*ShowFeedResponse) Descriptor() ([]byte, []int) {
164 return file_google_cloud_support_v2beta_feed_service_proto_rawDescGZIP(), []int{1}
165 }
166
167 func (x *ShowFeedResponse) GetFeedItems() []*FeedItem {
168 if x != nil {
169 return x.FeedItems
170 }
171 return nil
172 }
173
174 func (x *ShowFeedResponse) GetNextPageToken() string {
175 if x != nil {
176 return x.NextPageToken
177 }
178 return ""
179 }
180
181 var File_google_cloud_support_v2beta_feed_service_proto protoreflect.FileDescriptor
182
183 var file_google_cloud_support_v2beta_feed_service_proto_rawDesc = []byte{
184 0x0a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
185 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x66, 0x65,
186 0x65, 0x64, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
187 0x12, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73,
188 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x1a, 0x1c, 0x67,
189 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61,
190 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f,
191 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70,
192 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
193 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e,
194 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
195 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
196 0x1a, 0x2b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
197 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x66, 0x65,
198 0x65, 0x64, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb9, 0x01,
199 0x0a, 0x0f, 0x53, 0x68, 0x6f, 0x77, 0x46, 0x65, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
200 0x74, 0x12, 0x40, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
201 0x09, 0x42, 0x28, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x22, 0x0a, 0x20, 0x63, 0x6c, 0x6f, 0x75, 0x64,
202 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
203 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x61, 0x73, 0x65, 0x52, 0x06, 0x70, 0x61, 0x72,
204 0x65, 0x6e, 0x74, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18,
205 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65,
206 0x72, 0x42, 0x79, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65,
207 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67,
208 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f,
209 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09,
210 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x80, 0x01, 0x0a, 0x10, 0x53, 0x68,
211 0x6f, 0x77, 0x46, 0x65, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44,
212 0x0a, 0x0a, 0x66, 0x65, 0x65, 0x64, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03,
213 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
214 0x64, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61,
215 0x2e, 0x46, 0x65, 0x65, 0x64, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x09, 0x66, 0x65, 0x65, 0x64, 0x49,
216 0x74, 0x65, 0x6d, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67,
217 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e,
218 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0xbc, 0x02, 0x0a,
219 0x0b, 0x46, 0x65, 0x65, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xdb, 0x01, 0x0a,
220 0x08, 0x53, 0x68, 0x6f, 0x77, 0x46, 0x65, 0x65, 0x64, 0x12, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
221 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74,
222 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x53, 0x68, 0x6f, 0x77, 0x46, 0x65, 0x65, 0x64,
223 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
224 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x76,
225 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x53, 0x68, 0x6f, 0x77, 0x46, 0x65, 0x65, 0x64, 0x52, 0x65,
226 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x72, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,
227 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x63, 0x5a, 0x33, 0x12, 0x31, 0x2f, 0x76, 0x32, 0x62, 0x65,
228 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x6f, 0x72, 0x67, 0x61, 0x6e,
229 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x73, 0x65, 0x73,
230 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x68, 0x6f, 0x77, 0x46, 0x65, 0x65, 0x64, 0x12, 0x2c, 0x2f, 0x76,
231 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72,
232 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a,
233 0x7d, 0x3a, 0x73, 0x68, 0x6f, 0x77, 0x46, 0x65, 0x65, 0x64, 0x1a, 0x4f, 0xca, 0x41, 0x1b, 0x63,
234 0x6c, 0x6f, 0x75, 0x64, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
235 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74,
236 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
237 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f,
238 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xcd, 0x01, 0x0a, 0x1f,
239 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
240 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x42,
241 0x10, 0x46, 0x65, 0x65, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74,
242 0x6f, 0x50, 0x01, 0x5a, 0x39, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
243 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74,
244 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6f,
245 0x72, 0x74, 0x70, 0x62, 0x3b, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x70, 0x62, 0xaa, 0x02,
246 0x1b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x75,
247 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x56, 0x32, 0x42, 0x65, 0x74, 0x61, 0xca, 0x02, 0x1b, 0x47,
248 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x75, 0x70, 0x70,
249 0x6f, 0x72, 0x74, 0x5c, 0x56, 0x32, 0x62, 0x65, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x47, 0x6f, 0x6f,
250 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x75, 0x70, 0x70,
251 0x6f, 0x72, 0x74, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f,
252 0x74, 0x6f, 0x33,
253 }
254
255 var (
256 file_google_cloud_support_v2beta_feed_service_proto_rawDescOnce sync.Once
257 file_google_cloud_support_v2beta_feed_service_proto_rawDescData = file_google_cloud_support_v2beta_feed_service_proto_rawDesc
258 )
259
260 func file_google_cloud_support_v2beta_feed_service_proto_rawDescGZIP() []byte {
261 file_google_cloud_support_v2beta_feed_service_proto_rawDescOnce.Do(func() {
262 file_google_cloud_support_v2beta_feed_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_support_v2beta_feed_service_proto_rawDescData)
263 })
264 return file_google_cloud_support_v2beta_feed_service_proto_rawDescData
265 }
266
267 var file_google_cloud_support_v2beta_feed_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
268 var file_google_cloud_support_v2beta_feed_service_proto_goTypes = []any{
269 (*ShowFeedRequest)(nil), // 0: google.cloud.support.v2beta.ShowFeedRequest
270 (*ShowFeedResponse)(nil), // 1: google.cloud.support.v2beta.ShowFeedResponse
271 (*FeedItem)(nil), // 2: google.cloud.support.v2beta.FeedItem
272 }
273 var file_google_cloud_support_v2beta_feed_service_proto_depIdxs = []int32{
274 2, // 0: google.cloud.support.v2beta.ShowFeedResponse.feed_items:type_name -> google.cloud.support.v2beta.FeedItem
275 0, // 1: google.cloud.support.v2beta.FeedService.ShowFeed:input_type -> google.cloud.support.v2beta.ShowFeedRequest
276 1, // 2: google.cloud.support.v2beta.FeedService.ShowFeed:output_type -> google.cloud.support.v2beta.ShowFeedResponse
277 2, // [2:3] is the sub-list for method output_type
278 1, // [1:2] is the sub-list for method input_type
279 1, // [1:1] is the sub-list for extension type_name
280 1, // [1:1] is the sub-list for extension extendee
281 0, // [0:1] is the sub-list for field type_name
282 }
283
284 func init() { file_google_cloud_support_v2beta_feed_service_proto_init() }
285 func file_google_cloud_support_v2beta_feed_service_proto_init() {
286 if File_google_cloud_support_v2beta_feed_service_proto != nil {
287 return
288 }
289 file_google_cloud_support_v2beta_feed_item_proto_init()
290 type x struct{}
291 out := protoimpl.TypeBuilder{
292 File: protoimpl.DescBuilder{
293 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
294 RawDescriptor: file_google_cloud_support_v2beta_feed_service_proto_rawDesc,
295 NumEnums: 0,
296 NumMessages: 2,
297 NumExtensions: 0,
298 NumServices: 1,
299 },
300 GoTypes: file_google_cloud_support_v2beta_feed_service_proto_goTypes,
301 DependencyIndexes: file_google_cloud_support_v2beta_feed_service_proto_depIdxs,
302 MessageInfos: file_google_cloud_support_v2beta_feed_service_proto_msgTypes,
303 }.Build()
304 File_google_cloud_support_v2beta_feed_service_proto = out.File
305 file_google_cloud_support_v2beta_feed_service_proto_rawDesc = nil
306 file_google_cloud_support_v2beta_feed_service_proto_goTypes = nil
307 file_google_cloud_support_v2beta_feed_service_proto_depIdxs = nil
308 }
309
310 // Reference imports to suppress errors if they are not otherwise used.
311 var _ context.Context
312 var _ grpc.ClientConnInterface
313
314 // This is a compile-time assertion to ensure that this generated file
315 // is compatible with the grpc package it is being compiled against.
316 const _ = grpc.SupportPackageIsVersion6
317
318 // FeedServiceClient is the client API for FeedService service.
319 //
320 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
321 type FeedServiceClient interface {
322 // Show items in the feed of this case, including case emails,
323 // attachments, and comments.
324 ShowFeed(ctx context.Context, in *ShowFeedRequest, opts ...grpc.CallOption) (*ShowFeedResponse, error)
325 }
326
327 type feedServiceClient struct {
328 cc grpc.ClientConnInterface
329 }
330
331 func NewFeedServiceClient(cc grpc.ClientConnInterface) FeedServiceClient {
332 return &feedServiceClient{cc}
333 }
334
335 func (c *feedServiceClient) ShowFeed(ctx context.Context, in *ShowFeedRequest, opts ...grpc.CallOption) (*ShowFeedResponse, error) {
336 out := new(ShowFeedResponse)
337 err := c.cc.Invoke(ctx, "/google.cloud.support.v2beta.FeedService/ShowFeed", in, out, opts...)
338 if err != nil {
339 return nil, err
340 }
341 return out, nil
342 }
343
344 // FeedServiceServer is the server API for FeedService service.
345 type FeedServiceServer interface {
346 // Show items in the feed of this case, including case emails,
347 // attachments, and comments.
348 ShowFeed(context.Context, *ShowFeedRequest) (*ShowFeedResponse, error)
349 }
350
351 // UnimplementedFeedServiceServer can be embedded to have forward compatible implementations.
352 type UnimplementedFeedServiceServer struct {
353 }
354
355 func (*UnimplementedFeedServiceServer) ShowFeed(context.Context, *ShowFeedRequest) (*ShowFeedResponse, error) {
356 return nil, status.Errorf(codes.Unimplemented, "method ShowFeed not implemented")
357 }
358
359 func RegisterFeedServiceServer(s *grpc.Server, srv FeedServiceServer) {
360 s.RegisterService(&_FeedService_serviceDesc, srv)
361 }
362
363 func _FeedService_ShowFeed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
364 in := new(ShowFeedRequest)
365 if err := dec(in); err != nil {
366 return nil, err
367 }
368 if interceptor == nil {
369 return srv.(FeedServiceServer).ShowFeed(ctx, in)
370 }
371 info := &grpc.UnaryServerInfo{
372 Server: srv,
373 FullMethod: "/google.cloud.support.v2beta.FeedService/ShowFeed",
374 }
375 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
376 return srv.(FeedServiceServer).ShowFeed(ctx, req.(*ShowFeedRequest))
377 }
378 return interceptor(ctx, in, info, handler)
379 }
380
381 var _FeedService_serviceDesc = grpc.ServiceDesc{
382 ServiceName: "google.cloud.support.v2beta.FeedService",
383 HandlerType: (*FeedServiceServer)(nil),
384 Methods: []grpc.MethodDesc{
385 {
386 MethodName: "ShowFeed",
387 Handler: _FeedService_ShowFeed_Handler,
388 },
389 },
390 Streams: []grpc.StreamDesc{},
391 Metadata: "google/cloud/support/v2beta/feed_service.proto",
392 }