github.com/mutagen-io/mutagen@v0.18.0-rc1/pkg/service/prompting/prompting.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.33.0 4 // protoc v5.26.1 5 // source: service/prompting/prompting.proto 6 7 package prompting 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 // HostRequest encodes either an initial request to perform prompt hosting or a 24 // follow-up response to a message or prompt. 25 type HostRequest struct { 26 state protoimpl.MessageState 27 sizeCache protoimpl.SizeCache 28 unknownFields protoimpl.UnknownFields 29 30 // AllowPrompts indicates whether or not the hoster will allow prompts. If 31 // not, it will only receive message requests. This field may only be set on 32 // the initial request. 33 AllowPrompts bool `protobuf:"varint,1,opt,name=allowPrompts,proto3" json:"allowPrompts,omitempty"` 34 // Response is the prompt response, if any. On the initial request, this 35 // must be an empty string. When responding to a prompt, it may be any 36 // value. When responding to a message, it must be an empty string. 37 Response string `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"` 38 } 39 40 func (x *HostRequest) Reset() { 41 *x = HostRequest{} 42 if protoimpl.UnsafeEnabled { 43 mi := &file_service_prompting_prompting_proto_msgTypes[0] 44 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 45 ms.StoreMessageInfo(mi) 46 } 47 } 48 49 func (x *HostRequest) String() string { 50 return protoimpl.X.MessageStringOf(x) 51 } 52 53 func (*HostRequest) ProtoMessage() {} 54 55 func (x *HostRequest) ProtoReflect() protoreflect.Message { 56 mi := &file_service_prompting_prompting_proto_msgTypes[0] 57 if protoimpl.UnsafeEnabled && x != nil { 58 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 59 if ms.LoadMessageInfo() == nil { 60 ms.StoreMessageInfo(mi) 61 } 62 return ms 63 } 64 return mi.MessageOf(x) 65 } 66 67 // Deprecated: Use HostRequest.ProtoReflect.Descriptor instead. 68 func (*HostRequest) Descriptor() ([]byte, []int) { 69 return file_service_prompting_prompting_proto_rawDescGZIP(), []int{0} 70 } 71 72 func (x *HostRequest) GetAllowPrompts() bool { 73 if x != nil { 74 return x.AllowPrompts 75 } 76 return false 77 } 78 79 func (x *HostRequest) GetResponse() string { 80 if x != nil { 81 return x.Response 82 } 83 return "" 84 } 85 86 // HostResponse encodes either an initial response to perform prompt hosting or 87 // a follow-up request for messaging or prompting. 88 type HostResponse struct { 89 state protoimpl.MessageState 90 sizeCache protoimpl.SizeCache 91 unknownFields protoimpl.UnknownFields 92 93 // Identifier is the prompter identifier. It is only set in the initial 94 // response sent after the initial request. 95 Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` 96 // IsPrompt indicates if the response is requesting a prompt (as opposed to 97 // simple message display). 98 IsPrompt bool `protobuf:"varint,2,opt,name=isPrompt,proto3" json:"isPrompt,omitempty"` 99 // Message is the message associated with the prompt or message. 100 Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` 101 } 102 103 func (x *HostResponse) Reset() { 104 *x = HostResponse{} 105 if protoimpl.UnsafeEnabled { 106 mi := &file_service_prompting_prompting_proto_msgTypes[1] 107 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 108 ms.StoreMessageInfo(mi) 109 } 110 } 111 112 func (x *HostResponse) String() string { 113 return protoimpl.X.MessageStringOf(x) 114 } 115 116 func (*HostResponse) ProtoMessage() {} 117 118 func (x *HostResponse) ProtoReflect() protoreflect.Message { 119 mi := &file_service_prompting_prompting_proto_msgTypes[1] 120 if protoimpl.UnsafeEnabled && x != nil { 121 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 122 if ms.LoadMessageInfo() == nil { 123 ms.StoreMessageInfo(mi) 124 } 125 return ms 126 } 127 return mi.MessageOf(x) 128 } 129 130 // Deprecated: Use HostResponse.ProtoReflect.Descriptor instead. 131 func (*HostResponse) Descriptor() ([]byte, []int) { 132 return file_service_prompting_prompting_proto_rawDescGZIP(), []int{1} 133 } 134 135 func (x *HostResponse) GetIdentifier() string { 136 if x != nil { 137 return x.Identifier 138 } 139 return "" 140 } 141 142 func (x *HostResponse) GetIsPrompt() bool { 143 if x != nil { 144 return x.IsPrompt 145 } 146 return false 147 } 148 149 func (x *HostResponse) GetMessage() string { 150 if x != nil { 151 return x.Message 152 } 153 return "" 154 } 155 156 // PromptRequest encodes a request for prompting by a specific prompter. 157 type PromptRequest struct { 158 state protoimpl.MessageState 159 sizeCache protoimpl.SizeCache 160 unknownFields protoimpl.UnknownFields 161 162 // Prompter is the prompter identifier. 163 Prompter string `protobuf:"bytes,1,opt,name=prompter,proto3" json:"prompter,omitempty"` 164 // Prompt is the prompt to present. 165 Prompt string `protobuf:"bytes,2,opt,name=prompt,proto3" json:"prompt,omitempty"` 166 } 167 168 func (x *PromptRequest) Reset() { 169 *x = PromptRequest{} 170 if protoimpl.UnsafeEnabled { 171 mi := &file_service_prompting_prompting_proto_msgTypes[2] 172 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 173 ms.StoreMessageInfo(mi) 174 } 175 } 176 177 func (x *PromptRequest) String() string { 178 return protoimpl.X.MessageStringOf(x) 179 } 180 181 func (*PromptRequest) ProtoMessage() {} 182 183 func (x *PromptRequest) ProtoReflect() protoreflect.Message { 184 mi := &file_service_prompting_prompting_proto_msgTypes[2] 185 if protoimpl.UnsafeEnabled && x != nil { 186 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 187 if ms.LoadMessageInfo() == nil { 188 ms.StoreMessageInfo(mi) 189 } 190 return ms 191 } 192 return mi.MessageOf(x) 193 } 194 195 // Deprecated: Use PromptRequest.ProtoReflect.Descriptor instead. 196 func (*PromptRequest) Descriptor() ([]byte, []int) { 197 return file_service_prompting_prompting_proto_rawDescGZIP(), []int{2} 198 } 199 200 func (x *PromptRequest) GetPrompter() string { 201 if x != nil { 202 return x.Prompter 203 } 204 return "" 205 } 206 207 func (x *PromptRequest) GetPrompt() string { 208 if x != nil { 209 return x.Prompt 210 } 211 return "" 212 } 213 214 // PromptResponse encodes the response from a prompter. 215 type PromptResponse struct { 216 state protoimpl.MessageState 217 sizeCache protoimpl.SizeCache 218 unknownFields protoimpl.UnknownFields 219 220 // Response is the response returned by the prompter. 221 Response string `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` 222 } 223 224 func (x *PromptResponse) Reset() { 225 *x = PromptResponse{} 226 if protoimpl.UnsafeEnabled { 227 mi := &file_service_prompting_prompting_proto_msgTypes[3] 228 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 229 ms.StoreMessageInfo(mi) 230 } 231 } 232 233 func (x *PromptResponse) String() string { 234 return protoimpl.X.MessageStringOf(x) 235 } 236 237 func (*PromptResponse) ProtoMessage() {} 238 239 func (x *PromptResponse) ProtoReflect() protoreflect.Message { 240 mi := &file_service_prompting_prompting_proto_msgTypes[3] 241 if protoimpl.UnsafeEnabled && x != nil { 242 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 243 if ms.LoadMessageInfo() == nil { 244 ms.StoreMessageInfo(mi) 245 } 246 return ms 247 } 248 return mi.MessageOf(x) 249 } 250 251 // Deprecated: Use PromptResponse.ProtoReflect.Descriptor instead. 252 func (*PromptResponse) Descriptor() ([]byte, []int) { 253 return file_service_prompting_prompting_proto_rawDescGZIP(), []int{3} 254 } 255 256 func (x *PromptResponse) GetResponse() string { 257 if x != nil { 258 return x.Response 259 } 260 return "" 261 } 262 263 var File_service_prompting_prompting_proto protoreflect.FileDescriptor 264 265 var file_service_prompting_prompting_proto_rawDesc = []byte{ 266 0x0a, 0x21, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 267 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 268 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x4d, 269 0x0a, 0x0b, 0x48, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 270 0x0c, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x73, 0x18, 0x01, 0x20, 271 0x01, 0x28, 0x08, 0x52, 0x0c, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 272 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x02, 0x20, 273 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x64, 0x0a, 274 0x0c, 0x48, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 275 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 276 0x09, 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x1a, 0x0a, 277 0x08, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 278 0x08, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 279 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 280 0x61, 0x67, 0x65, 0x22, 0x43, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x52, 0x65, 0x71, 281 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x65, 0x72, 282 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x65, 0x72, 283 0x12, 0x16, 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 284 0x52, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x22, 0x2c, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x6d, 285 0x70, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 286 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 287 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x8b, 0x01, 0x0a, 0x09, 0x50, 0x72, 0x6f, 0x6d, 0x70, 288 0x74, 0x69, 0x6e, 0x67, 0x12, 0x3d, 0x0a, 0x04, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x16, 0x2e, 0x70, 289 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x71, 290 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x69, 0x6e, 0x67, 291 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 292 0x01, 0x30, 0x01, 0x12, 0x3f, 0x0a, 0x06, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x12, 0x18, 0x2e, 293 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 294 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 295 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 296 0x73, 0x65, 0x22, 0x00, 0x42, 0x35, 0x5a, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 297 0x6f, 0x6d, 0x2f, 0x6d, 0x75, 0x74, 0x61, 0x67, 0x65, 0x6e, 0x2d, 0x69, 0x6f, 0x2f, 0x6d, 0x75, 298 0x74, 0x61, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 299 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x69, 0x6e, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 300 0x74, 0x6f, 0x33, 301 } 302 303 var ( 304 file_service_prompting_prompting_proto_rawDescOnce sync.Once 305 file_service_prompting_prompting_proto_rawDescData = file_service_prompting_prompting_proto_rawDesc 306 ) 307 308 func file_service_prompting_prompting_proto_rawDescGZIP() []byte { 309 file_service_prompting_prompting_proto_rawDescOnce.Do(func() { 310 file_service_prompting_prompting_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_prompting_prompting_proto_rawDescData) 311 }) 312 return file_service_prompting_prompting_proto_rawDescData 313 } 314 315 var file_service_prompting_prompting_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 316 var file_service_prompting_prompting_proto_goTypes = []interface{}{ 317 (*HostRequest)(nil), // 0: prompting.HostRequest 318 (*HostResponse)(nil), // 1: prompting.HostResponse 319 (*PromptRequest)(nil), // 2: prompting.PromptRequest 320 (*PromptResponse)(nil), // 3: prompting.PromptResponse 321 } 322 var file_service_prompting_prompting_proto_depIdxs = []int32{ 323 0, // 0: prompting.Prompting.Host:input_type -> prompting.HostRequest 324 2, // 1: prompting.Prompting.Prompt:input_type -> prompting.PromptRequest 325 1, // 2: prompting.Prompting.Host:output_type -> prompting.HostResponse 326 3, // 3: prompting.Prompting.Prompt:output_type -> prompting.PromptResponse 327 2, // [2:4] is the sub-list for method output_type 328 0, // [0:2] is the sub-list for method input_type 329 0, // [0:0] is the sub-list for extension type_name 330 0, // [0:0] is the sub-list for extension extendee 331 0, // [0:0] is the sub-list for field type_name 332 } 333 334 func init() { file_service_prompting_prompting_proto_init() } 335 func file_service_prompting_prompting_proto_init() { 336 if File_service_prompting_prompting_proto != nil { 337 return 338 } 339 if !protoimpl.UnsafeEnabled { 340 file_service_prompting_prompting_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 341 switch v := v.(*HostRequest); i { 342 case 0: 343 return &v.state 344 case 1: 345 return &v.sizeCache 346 case 2: 347 return &v.unknownFields 348 default: 349 return nil 350 } 351 } 352 file_service_prompting_prompting_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 353 switch v := v.(*HostResponse); i { 354 case 0: 355 return &v.state 356 case 1: 357 return &v.sizeCache 358 case 2: 359 return &v.unknownFields 360 default: 361 return nil 362 } 363 } 364 file_service_prompting_prompting_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 365 switch v := v.(*PromptRequest); i { 366 case 0: 367 return &v.state 368 case 1: 369 return &v.sizeCache 370 case 2: 371 return &v.unknownFields 372 default: 373 return nil 374 } 375 } 376 file_service_prompting_prompting_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 377 switch v := v.(*PromptResponse); i { 378 case 0: 379 return &v.state 380 case 1: 381 return &v.sizeCache 382 case 2: 383 return &v.unknownFields 384 default: 385 return nil 386 } 387 } 388 } 389 type x struct{} 390 out := protoimpl.TypeBuilder{ 391 File: protoimpl.DescBuilder{ 392 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 393 RawDescriptor: file_service_prompting_prompting_proto_rawDesc, 394 NumEnums: 0, 395 NumMessages: 4, 396 NumExtensions: 0, 397 NumServices: 1, 398 }, 399 GoTypes: file_service_prompting_prompting_proto_goTypes, 400 DependencyIndexes: file_service_prompting_prompting_proto_depIdxs, 401 MessageInfos: file_service_prompting_prompting_proto_msgTypes, 402 }.Build() 403 File_service_prompting_prompting_proto = out.File 404 file_service_prompting_prompting_proto_rawDesc = nil 405 file_service_prompting_prompting_proto_goTypes = nil 406 file_service_prompting_prompting_proto_depIdxs = nil 407 }