| 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/attachment_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 ListAttachments endpoint. |
| 43 |
type ListAttachmentsRequest struct { |
| 44 |
state protoimpl.MessageState |
| 45 |
sizeCache protoimpl.SizeCache |
| 46 |
unknownFields protoimpl.UnknownFields |
| 47 |
|
| 48 |
// Required. The name of the case for which attachments should be listed. |
| 49 |
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` |
| 50 |
// The maximum number of attachments fetched with each request. |
| 51 |
// |
| 52 |
// If not provided, the default is 10. The maximum page size that will be |
| 53 |
// returned is 100. |
| 54 |
// |
| 55 |
// The size of each page can be smaller than the requested page size and can |
| 56 |
// include zero. For example, you could request 100 attachments on one page, |
| 57 |
// receive 0, and then on the next page, receive 90. |
| 58 |
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` |
| 59 |
// A token identifying the page of results to return. If unspecified, the |
| 60 |
// first page is retrieved. |
| 61 |
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` |
| 62 |
} |
| 63 |
|
| 64 |
func (x *ListAttachmentsRequest) Reset() { |
| 65 |
*x = ListAttachmentsRequest{} |
| 66 |
mi := &file_google_cloud_support_v2beta_attachment_service_proto_msgTypes[0] |
| 67 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 68 |
ms.StoreMessageInfo(mi) |
| 69 |
} |
| 70 |
|
| 71 |
func (x *ListAttachmentsRequest) String() string { |
| 72 |
return protoimpl.X.MessageStringOf(x) |
| 73 |
} |
| 74 |
|
| 75 |
func (*ListAttachmentsRequest) ProtoMessage() {} |
| 76 |
|
| 77 |
func (x *ListAttachmentsRequest) ProtoReflect() protoreflect.Message { |
| 78 |
mi := &file_google_cloud_support_v2beta_attachment_service_proto_msgTypes[0] |
| 79 |
if x != nil { |
| 80 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 81 |
if ms.LoadMessageInfo() == nil { |
| 82 |
ms.StoreMessageInfo(mi) |
| 83 |
} |
| 84 |
return ms |
| 85 |
} |
| 86 |
return mi.MessageOf(x) |
| 87 |
} |
| 88 |
|
| 89 |
// Deprecated: Use ListAttachmentsRequest.ProtoReflect.Descriptor instead. |
| 90 |
func (*ListAttachmentsRequest) Descriptor() ([]byte, []int) { |
| 91 |
return file_google_cloud_support_v2beta_attachment_service_proto_rawDescGZIP(), []int{0} |
| 92 |
} |
| 93 |
|
| 94 |
func (x *ListAttachmentsRequest) GetParent() string { |
| 95 |
if x != nil { |
| 96 |
return x.Parent |
| 97 |
} |
| 98 |
return "" |
| 99 |
} |
| 100 |
|
| 101 |
func (x *ListAttachmentsRequest) GetPageSize() int32 { |
| 102 |
if x != nil { |
| 103 |
return x.PageSize |
| 104 |
} |
| 105 |
return 0 |
| 106 |
} |
| 107 |
|
| 108 |
func (x *ListAttachmentsRequest) GetPageToken() string { |
| 109 |
if x != nil { |
| 110 |
return x.PageToken |
| 111 |
} |
| 112 |
return "" |
| 113 |
} |
| 114 |
|
| 115 |
// Request for getting an attachment. |
| 116 |
type GetAttachmentRequest struct { |
| 117 |
state protoimpl.MessageState |
| 118 |
sizeCache protoimpl.SizeCache |
| 119 |
unknownFields protoimpl.UnknownFields |
| 120 |
|
| 121 |
// Required. The name of the attachment to get. |
| 122 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 123 |
} |
| 124 |
|
| 125 |
func (x *GetAttachmentRequest) Reset() { |
| 126 |
*x = GetAttachmentRequest{} |
| 127 |
mi := &file_google_cloud_support_v2beta_attachment_service_proto_msgTypes[1] |
| 128 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 129 |
ms.StoreMessageInfo(mi) |
| 130 |
} |
| 131 |
|
| 132 |
func (x *GetAttachmentRequest) String() string { |
| 133 |
return protoimpl.X.MessageStringOf(x) |
| 134 |
} |
| 135 |
|
| 136 |
func (*GetAttachmentRequest) ProtoMessage() {} |
| 137 |
|
| 138 |
func (x *GetAttachmentRequest) ProtoReflect() protoreflect.Message { |
| 139 |
mi := &file_google_cloud_support_v2beta_attachment_service_proto_msgTypes[1] |
| 140 |
if x != nil { |
| 141 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 142 |
if ms.LoadMessageInfo() == nil { |
| 143 |
ms.StoreMessageInfo(mi) |
| 144 |
} |
| 145 |
return ms |
| 146 |
} |
| 147 |
return mi.MessageOf(x) |
| 148 |
} |
| 149 |
|
| 150 |
// Deprecated: Use GetAttachmentRequest.ProtoReflect.Descriptor instead. |
| 151 |
func (*GetAttachmentRequest) Descriptor() ([]byte, []int) { |
| 152 |
return file_google_cloud_support_v2beta_attachment_service_proto_rawDescGZIP(), []int{1} |
| 153 |
} |
| 154 |
|
| 155 |
func (x *GetAttachmentRequest) GetName() string { |
| 156 |
if x != nil { |
| 157 |
return x.Name |
| 158 |
} |
| 159 |
return "" |
| 160 |
} |
| 161 |
|
| 162 |
// The response message for the ListAttachments endpoint. |
| 163 |
type ListAttachmentsResponse struct { |
| 164 |
state protoimpl.MessageState |
| 165 |
sizeCache protoimpl.SizeCache |
| 166 |
unknownFields protoimpl.UnknownFields |
| 167 |
|
| 168 |
// The list of attachments associated with a case. |
| 169 |
Attachments []*Attachment `protobuf:"bytes,1,rep,name=attachments,proto3" json:"attachments,omitempty"` |
| 170 |
// A token to retrieve the next page of results. Set this in the `page_token` |
| 171 |
// field of subsequent `cases.attachments.list` requests. If unspecified, |
| 172 |
// there are no more results to retrieve. |
| 173 |
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` |
| 174 |
} |
| 175 |
|
| 176 |
func (x *ListAttachmentsResponse) Reset() { |
| 177 |
*x = ListAttachmentsResponse{} |
| 178 |
mi := &file_google_cloud_support_v2beta_attachment_service_proto_msgTypes[2] |
| 179 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 180 |
ms.StoreMessageInfo(mi) |
| 181 |
} |
| 182 |
|
| 183 |
func (x *ListAttachmentsResponse) String() string { |
| 184 |
return protoimpl.X.MessageStringOf(x) |
| 185 |
} |
| 186 |
|
| 187 |
func (*ListAttachmentsResponse) ProtoMessage() {} |
| 188 |
|
| 189 |
func (x *ListAttachmentsResponse) ProtoReflect() protoreflect.Message { |
| 190 |
mi := &file_google_cloud_support_v2beta_attachment_service_proto_msgTypes[2] |
| 191 |
if x != nil { |
| 192 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 193 |
if ms.LoadMessageInfo() == nil { |
| 194 |
ms.StoreMessageInfo(mi) |
| 195 |
} |
| 196 |
return ms |
| 197 |
} |
| 198 |
return mi.MessageOf(x) |
| 199 |
} |
| 200 |
|
| 201 |
// Deprecated: Use ListAttachmentsResponse.ProtoReflect.Descriptor instead. |
| 202 |
func (*ListAttachmentsResponse) Descriptor() ([]byte, []int) { |
| 203 |
return file_google_cloud_support_v2beta_attachment_service_proto_rawDescGZIP(), []int{2} |
| 204 |
} |
| 205 |
|
| 206 |
func (x *ListAttachmentsResponse) GetAttachments() []*Attachment { |
| 207 |
if x != nil { |
| 208 |
return x.Attachments |
| 209 |
} |
| 210 |
return nil |
| 211 |
} |
| 212 |
|
| 213 |
func (x *ListAttachmentsResponse) GetNextPageToken() string { |
| 214 |
if x != nil { |
| 215 |
return x.NextPageToken |
| 216 |
} |
| 217 |
return "" |
| 218 |
} |
| 219 |
|
| 220 |
var File_google_cloud_support_v2beta_attachment_service_proto protoreflect.FileDescriptor |
| 221 |
|
| 222 |
var file_google_cloud_support_v2beta_attachment_service_proto_rawDesc = []byte{ |
| 223 |
0x0a, 0x34, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, |
| 224 |
0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x61, 0x74, |
| 225 |
0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, |
| 226 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 227 |
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32, 0x62, |
| 228 |
0x65, 0x74, 0x61, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, |
| 229 |
0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 230 |
0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, |
| 231 |
0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, |
| 232 |
0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, |
| 233 |
0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, |
| 234 |
0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, |
| 235 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, |
| 236 |
0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x76, 0x32, 0x62, |
| 237 |
0x65, 0x74, 0x61, 0x2f, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, |
| 238 |
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x96, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x74, 0x74, |
| 239 |
0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, |
| 240 |
0x40, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, |
| 241 |
0x28, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x22, 0x0a, 0x20, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x73, 0x75, |
| 242 |
0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, |
| 243 |
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x61, 0x73, 0x65, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, |
| 244 |
0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, |
| 245 |
0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, |
| 246 |
0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, |
| 247 |
0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x5a, 0x0a, |
| 248 |
0x14, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, |
| 249 |
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, |
| 250 |
0x01, 0x28, 0x09, 0x42, 0x2e, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x28, 0x0a, 0x26, 0x63, 0x6c, 0x6f, |
| 251 |
0x75, 0x64, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 252 |
0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, |
| 253 |
0x65, 0x6e, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x8c, 0x01, 0x0a, 0x17, 0x4c, 0x69, |
| 254 |
0x73, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, |
| 255 |
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, |
| 256 |
0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, |
| 257 |
0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, |
| 258 |
0x74, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, |
| 259 |
0x65, 0x6e, 0x74, 0x52, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, |
| 260 |
0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, |
| 261 |
0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, |
| 262 |
0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0x88, 0x04, 0x0a, 0x15, 0x43, 0x61, 0x73, |
| 263 |
0x65, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, |
| 264 |
0x63, 0x65, 0x12, 0xf6, 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, |
| 265 |
0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 266 |
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32, |
| 267 |
0x62, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, |
| 268 |
0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x67, 0x6f, |
| 269 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, |
| 270 |
0x72, 0x74, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x74, |
| 271 |
0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, |
| 272 |
0x65, 0x22, 0x78, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, |
| 273 |
0x02, 0x69, 0x5a, 0x36, 0x12, 0x34, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x70, |
| 274 |
0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, |
| 275 |
0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x61, |
| 276 |
0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2f, 0x2f, 0x76, 0x32, 0x62, |
| 277 |
0x65, 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, |
| 278 |
0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, |
| 279 |
0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0xa4, 0x01, 0x0a, 0x0d, |
| 280 |
0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x31, 0x2e, |
| 281 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x75, 0x70, |
| 282 |
0x70, 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x41, |
| 283 |
0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, |
| 284 |
0x1a, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 285 |
0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x41, |
| 286 |
0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x37, 0xda, 0x41, 0x04, 0x6e, 0x61, |
| 287 |
0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, |
| 288 |
0x61, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x2a, 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x73, 0x65, |
| 289 |
0x73, 0x2f, 0x2a, 0x2f, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, |
| 290 |
0x2a, 0x7d, 0x1a, 0x4f, 0xca, 0x41, 0x1b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x73, 0x75, 0x70, 0x70, |
| 291 |
0x6f, 0x72, 0x74, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, |
| 292 |
0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, |
| 293 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, |
| 294 |
0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, |
| 295 |
0x6f, 0x72, 0x6d, 0x42, 0xd3, 0x01, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 296 |
0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, |
| 297 |
0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x42, 0x16, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, |
| 298 |
0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, |
| 299 |
0x01, 0x5a, 0x39, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 300 |
0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x61, |
| 301 |
0x70, 0x69, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, |
| 302 |
0x70, 0x62, 0x3b, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x70, 0x62, 0xaa, 0x02, 0x1b, 0x47, |
| 303 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x75, 0x70, 0x70, |
| 304 |
0x6f, 0x72, 0x74, 0x2e, 0x56, 0x32, 0x42, 0x65, 0x74, 0x61, 0xca, 0x02, 0x1b, 0x47, 0x6f, 0x6f, |
| 305 |
0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, |
| 306 |
0x74, 0x5c, 0x56, 0x32, 0x62, 0x65, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, |
| 307 |
0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, |
| 308 |
0x74, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 309 |
0x33, |
| 310 |
} |
| 311 |
|
| 312 |
var ( |
| 313 |
file_google_cloud_support_v2beta_attachment_service_proto_rawDescOnce sync.Once |
| 314 |
file_google_cloud_support_v2beta_attachment_service_proto_rawDescData = file_google_cloud_support_v2beta_attachment_service_proto_rawDesc |
| 315 |
) |
| 316 |
|
| 317 |
func file_google_cloud_support_v2beta_attachment_service_proto_rawDescGZIP() []byte { |
| 318 |
file_google_cloud_support_v2beta_attachment_service_proto_rawDescOnce.Do(func() { |
| 319 |
file_google_cloud_support_v2beta_attachment_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_support_v2beta_attachment_service_proto_rawDescData) |
| 320 |
}) |
| 321 |
return file_google_cloud_support_v2beta_attachment_service_proto_rawDescData |
| 322 |
} |
| 323 |
|
| 324 |
var file_google_cloud_support_v2beta_attachment_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3) |
| 325 |
var file_google_cloud_support_v2beta_attachment_service_proto_goTypes = []any{ |
| 326 |
(*ListAttachmentsRequest)(nil), // 0: google.cloud.support.v2beta.ListAttachmentsRequest |
| 327 |
(*GetAttachmentRequest)(nil), // 1: google.cloud.support.v2beta.GetAttachmentRequest |
| 328 |
(*ListAttachmentsResponse)(nil), // 2: google.cloud.support.v2beta.ListAttachmentsResponse |
| 329 |
(*Attachment)(nil), // 3: google.cloud.support.v2beta.Attachment |
| 330 |
} |
| 331 |
var file_google_cloud_support_v2beta_attachment_service_proto_depIdxs = []int32{ |
| 332 |
3, // 0: google.cloud.support.v2beta.ListAttachmentsResponse.attachments:type_name -> google.cloud.support.v2beta.Attachment |
| 333 |
0, // 1: google.cloud.support.v2beta.CaseAttachmentService.ListAttachments:input_type -> google.cloud.support.v2beta.ListAttachmentsRequest |
| 334 |
1, // 2: google.cloud.support.v2beta.CaseAttachmentService.GetAttachment:input_type -> google.cloud.support.v2beta.GetAttachmentRequest |
| 335 |
2, // 3: google.cloud.support.v2beta.CaseAttachmentService.ListAttachments:output_type -> google.cloud.support.v2beta.ListAttachmentsResponse |
| 336 |
3, // 4: google.cloud.support.v2beta.CaseAttachmentService.GetAttachment:output_type -> google.cloud.support.v2beta.Attachment |
| 337 |
3, // [3:5] is the sub-list for method output_type |
| 338 |
1, // [1:3] is the sub-list for method input_type |
| 339 |
1, // [1:1] is the sub-list for extension type_name |
| 340 |
1, // [1:1] is the sub-list for extension extendee |
| 341 |
0, // [0:1] is the sub-list for field type_name |
| 342 |
} |
| 343 |
|
| 344 |
func init() { file_google_cloud_support_v2beta_attachment_service_proto_init() } |
| 345 |
func file_google_cloud_support_v2beta_attachment_service_proto_init() { |
| 346 |
if File_google_cloud_support_v2beta_attachment_service_proto != nil { |
| 347 |
return |
| 348 |
} |
| 349 |
file_google_cloud_support_v2beta_attachment_proto_init() |
| 350 |
type x struct{} |
| 351 |
out := protoimpl.TypeBuilder{ |
| 352 |
File: protoimpl.DescBuilder{ |
| 353 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 354 |
RawDescriptor: file_google_cloud_support_v2beta_attachment_service_proto_rawDesc, |
| 355 |
NumEnums: 0, |
| 356 |
NumMessages: 3, |
| 357 |
NumExtensions: 0, |
| 358 |
NumServices: 1, |
| 359 |
}, |
| 360 |
GoTypes: file_google_cloud_support_v2beta_attachment_service_proto_goTypes, |
| 361 |
DependencyIndexes: file_google_cloud_support_v2beta_attachment_service_proto_depIdxs, |
| 362 |
MessageInfos: file_google_cloud_support_v2beta_attachment_service_proto_msgTypes, |
| 363 |
}.Build() |
| 364 |
File_google_cloud_support_v2beta_attachment_service_proto = out.File |
| 365 |
file_google_cloud_support_v2beta_attachment_service_proto_rawDesc = nil |
| 366 |
file_google_cloud_support_v2beta_attachment_service_proto_goTypes = nil |
| 367 |
file_google_cloud_support_v2beta_attachment_service_proto_depIdxs = nil |
| 368 |
} |
| 369 |
|
| 370 |
// Reference imports to suppress errors if they are not otherwise used. |
| 371 |
var _ context.Context |
| 372 |
var _ grpc.ClientConnInterface |
| 373 |
|
| 374 |
// This is a compile-time assertion to ensure that this generated file |
| 375 |
// is compatible with the grpc package it is being compiled against. |
| 376 |
const _ = grpc.SupportPackageIsVersion6 |
| 377 |
|
| 378 |
// CaseAttachmentServiceClient is the client API for CaseAttachmentService service. |
| 379 |
// |
| 380 |
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 381 |
type CaseAttachmentServiceClient interface { |
| 382 |
// List all the attachments associated with a support case. |
| 383 |
ListAttachments(ctx context.Context, in *ListAttachmentsRequest, opts ...grpc.CallOption) (*ListAttachmentsResponse, error) |
| 384 |
// Retrieve an attachment. |
| 385 |
GetAttachment(ctx context.Context, in *GetAttachmentRequest, opts ...grpc.CallOption) (*Attachment, error) |
| 386 |
} |
| 387 |
|
| 388 |
type caseAttachmentServiceClient struct { |
| 389 |
cc grpc.ClientConnInterface |
| 390 |
} |
| 391 |
|
| 392 |
func NewCaseAttachmentServiceClient(cc grpc.ClientConnInterface) CaseAttachmentServiceClient { |
| 393 |
return &caseAttachmentServiceClient{cc} |
| 394 |
} |
| 395 |
|
| 396 |
func (c *caseAttachmentServiceClient) ListAttachments(ctx context.Context, in *ListAttachmentsRequest, opts ...grpc.CallOption) (*ListAttachmentsResponse, error) { |
| 397 |
out := new(ListAttachmentsResponse) |
| 398 |
err := c.cc.Invoke(ctx, "/google.cloud.support.v2beta.CaseAttachmentService/ListAttachments", in, out, opts...) |
| 399 |
if err != nil { |
| 400 |
return nil, err |
| 401 |
} |
| 402 |
return out, nil |
| 403 |
} |
| 404 |
|
| 405 |
func (c *caseAttachmentServiceClient) GetAttachment(ctx context.Context, in *GetAttachmentRequest, opts ...grpc.CallOption) (*Attachment, error) { |
| 406 |
out := new(Attachment) |
| 407 |
err := c.cc.Invoke(ctx, "/google.cloud.support.v2beta.CaseAttachmentService/GetAttachment", in, out, opts...) |
| 408 |
if err != nil { |
| 409 |
return nil, err |
| 410 |
} |
| 411 |
return out, nil |
| 412 |
} |
| 413 |
|
| 414 |
// CaseAttachmentServiceServer is the server API for CaseAttachmentService service. |
| 415 |
type CaseAttachmentServiceServer interface { |
| 416 |
// List all the attachments associated with a support case. |
| 417 |
ListAttachments(context.Context, *ListAttachmentsRequest) (*ListAttachmentsResponse, error) |
| 418 |
// Retrieve an attachment. |
| 419 |
GetAttachment(context.Context, *GetAttachmentRequest) (*Attachment, error) |
| 420 |
} |
| 421 |
|
| 422 |
// UnimplementedCaseAttachmentServiceServer can be embedded to have forward compatible implementations. |
| 423 |
type UnimplementedCaseAttachmentServiceServer struct { |
| 424 |
} |
| 425 |
|
| 426 |
func (*UnimplementedCaseAttachmentServiceServer) ListAttachments(context.Context, *ListAttachmentsRequest) (*ListAttachmentsResponse, error) { |
| 427 |
return nil, status.Errorf(codes.Unimplemented, "method ListAttachments not implemented") |
| 428 |
} |
| 429 |
func (*UnimplementedCaseAttachmentServiceServer) GetAttachment(context.Context, *GetAttachmentRequest) (*Attachment, error) { |
| 430 |
return nil, status.Errorf(codes.Unimplemented, "method GetAttachment not implemented") |
| 431 |
} |
| 432 |
|
| 433 |
func RegisterCaseAttachmentServiceServer(s *grpc.Server, srv CaseAttachmentServiceServer) { |
| 434 |
s.RegisterService(&_CaseAttachmentService_serviceDesc, srv) |
| 435 |
} |
| 436 |
|
| 437 |
func _CaseAttachmentService_ListAttachments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 438 |
in := new(ListAttachmentsRequest) |
| 439 |
if err := dec(in); err != nil { |
| 440 |
return nil, err |
| 441 |
} |
| 442 |
if interceptor == nil { |
| 443 |
return srv.(CaseAttachmentServiceServer).ListAttachments(ctx, in) |
| 444 |
} |
| 445 |
info := &grpc.UnaryServerInfo{ |
| 446 |
Server: srv, |
| 447 |
FullMethod: "/google.cloud.support.v2beta.CaseAttachmentService/ListAttachments", |
| 448 |
} |
| 449 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 450 |
return srv.(CaseAttachmentServiceServer).ListAttachments(ctx, req.(*ListAttachmentsRequest)) |
| 451 |
} |
| 452 |
return interceptor(ctx, in, info, handler) |
| 453 |
} |
| 454 |
|
| 455 |
func _CaseAttachmentService_GetAttachment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 456 |
in := new(GetAttachmentRequest) |
| 457 |
if err := dec(in); err != nil { |
| 458 |
return nil, err |
| 459 |
} |
| 460 |
if interceptor == nil { |
| 461 |
return srv.(CaseAttachmentServiceServer).GetAttachment(ctx, in) |
| 462 |
} |
| 463 |
info := &grpc.UnaryServerInfo{ |
| 464 |
Server: srv, |
| 465 |
FullMethod: "/google.cloud.support.v2beta.CaseAttachmentService/GetAttachment", |
| 466 |
} |
| 467 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 468 |
return srv.(CaseAttachmentServiceServer).GetAttachment(ctx, req.(*GetAttachmentRequest)) |
| 469 |
} |
| 470 |
return interceptor(ctx, in, info, handler) |
| 471 |
} |
| 472 |
|
| 473 |
var _CaseAttachmentService_serviceDesc = grpc.ServiceDesc{ |
| 474 |
ServiceName: "google.cloud.support.v2beta.CaseAttachmentService", |
| 475 |
HandlerType: (*CaseAttachmentServiceServer)(nil), |
| 476 |
Methods: []grpc.MethodDesc{ |
| 477 |
{ |
| 478 |
MethodName: "ListAttachments", |
| 479 |
Handler: _CaseAttachmentService_ListAttachments_Handler, |
| 480 |
}, |
| 481 |
{ |
| 482 |
MethodName: "GetAttachment", |
| 483 |
Handler: _CaseAttachmentService_GetAttachment_Handler, |
| 484 |
}, |
| 485 |
}, |
| 486 |
Streams: []grpc.StreamDesc{}, |
| 487 |
Metadata: "google/cloud/support/v2beta/attachment_service.proto", |
| 488 |
} |