github.com/ronaksoft/rony@v0.16.26-0.20230807065236-1743dbfe6959/options.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc v3.17.3 5 // source: options.proto 6 7 package rony 8 9 import ( 10 reflect "reflect" 11 sync "sync" 12 13 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 14 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 15 descriptorpb "google.golang.org/protobuf/types/descriptorpb" 16 ) 17 18 const ( 19 // Verify that this generated code is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 21 // Verify that runtime/protoimpl is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 23 ) 24 25 // RestOpt is the container message for all the required and optional parameters for REST setup. 26 // By adding 'rony_rest' option to the method definition a REST wrapper will be generated for that 27 // method and that RPC handler will become accessible using REST endpoint. 28 type RestOpt struct { 29 state protoimpl.MessageState 30 sizeCache protoimpl.SizeCache 31 unknownFields protoimpl.UnknownFields 32 33 // method identifies the HTTP command: i.e. 'get', 'post', 'put', ... 34 Method *string `protobuf:"bytes,1,req,name=method" json:"method,omitempty"` 35 // path identifies the path that this RPC method will be available as REST endpoint. 36 Path *string `protobuf:"bytes,2,req,name=path" json:"path,omitempty"` 37 // bind_path_variables is a list of pair of bindings. For example if we have a path '/part1/:var1/:var2' 38 // and we want to bind 'var1' to field 'fieldVar1': "var1=fieldVar1" 39 BindPathParam []string `protobuf:"bytes,3,rep,name=bind_path_param,json=bindPathParam" json:"bind_path_param,omitempty"` 40 // bind_query_param is a list of pair of bindings. For example if we have a query param var1 41 // and we want to bind 'var1' to field 'fieldVar1': "var1=fieldVar1" 42 BindQueryParam []string `protobuf:"bytes,4,rep,name=bind_query_param,json=bindQueryParam" json:"bind_query_param,omitempty"` 43 // json_encode if is set then input and output data are json encoded version of the proto messages 44 JsonEncode *bool `protobuf:"varint,5,opt,name=json_encode,json=jsonEncode" json:"json_encode,omitempty"` 45 } 46 47 func (x *RestOpt) Reset() { 48 *x = RestOpt{} 49 if protoimpl.UnsafeEnabled { 50 mi := &file_options_proto_msgTypes[0] 51 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 52 ms.StoreMessageInfo(mi) 53 } 54 } 55 56 func (x *RestOpt) String() string { 57 return protoimpl.X.MessageStringOf(x) 58 } 59 60 func (*RestOpt) ProtoMessage() {} 61 62 func (x *RestOpt) ProtoReflect() protoreflect.Message { 63 mi := &file_options_proto_msgTypes[0] 64 if protoimpl.UnsafeEnabled && x != nil { 65 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 66 if ms.LoadMessageInfo() == nil { 67 ms.StoreMessageInfo(mi) 68 } 69 return ms 70 } 71 return mi.MessageOf(x) 72 } 73 74 // Deprecated: Use RestOpt.ProtoReflect.Descriptor instead. 75 func (*RestOpt) Descriptor() ([]byte, []int) { 76 return file_options_proto_rawDescGZIP(), []int{0} 77 } 78 79 func (x *RestOpt) GetMethod() string { 80 if x != nil && x.Method != nil { 81 return *x.Method 82 } 83 return "" 84 } 85 86 func (x *RestOpt) GetPath() string { 87 if x != nil && x.Path != nil { 88 return *x.Path 89 } 90 return "" 91 } 92 93 func (x *RestOpt) GetBindPathParam() []string { 94 if x != nil { 95 return x.BindPathParam 96 } 97 return nil 98 } 99 100 func (x *RestOpt) GetBindQueryParam() []string { 101 if x != nil { 102 return x.BindQueryParam 103 } 104 return nil 105 } 106 107 func (x *RestOpt) GetJsonEncode() bool { 108 if x != nil && x.JsonEncode != nil { 109 return *x.JsonEncode 110 } 111 return false 112 } 113 114 // ModelOpt holds all the information if you want to create a model from your proto message. 115 type ModelOpt struct { 116 state protoimpl.MessageState 117 sizeCache protoimpl.SizeCache 118 unknownFields protoimpl.UnknownFields 119 120 // singleton marks this model as a singleton. 121 Singleton *bool `protobuf:"varint,1,opt,name=singleton" json:"singleton,omitempty"` 122 // global_datasource generates the code for remote repository 123 // POSSIBLE VALUES: cql, sql 124 GlobalDatasource *string `protobuf:"bytes,2,opt,name=global_datasource,json=globalDatasource" json:"global_datasource,omitempty"` 125 // local_datasource generates the code for local repository 126 // POSSIBLE VALUES: store, cql, sql 127 LocalDatasource *string `protobuf:"bytes,3,opt,name=local_datasource,json=localDatasource" json:"local_datasource,omitempty"` 128 // table a virtual table presentation to hold instances of this message, like rows in a table 129 // PRIMARY KEY FORMAT: ( (partitionKey1, partitionKey2, ...), clusteringKey1, clusteringKey2, ...) 130 Table *PrimaryKeyOpt `protobuf:"bytes,4,opt,name=table" json:"table,omitempty"` 131 // view creates a materialized view of the aggregate based on the primary key. 132 // PRIMARY KEY FORMAT: ( (partitionKey1, partitionKey2, ...), clusteringKey1, clusteringKey2, ...) 133 // NOTE: The primary key of the view must contains all the primary key items of the table. They don't need to 134 // follow the same order as table. for example the following is correct: 135 // table = ((a, b), c) 136 // view = ((c, a), d, b) 137 View []*PrimaryKeyOpt `protobuf:"bytes,5,rep,name=view" json:"view,omitempty"` 138 } 139 140 func (x *ModelOpt) Reset() { 141 *x = ModelOpt{} 142 if protoimpl.UnsafeEnabled { 143 mi := &file_options_proto_msgTypes[1] 144 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 145 ms.StoreMessageInfo(mi) 146 } 147 } 148 149 func (x *ModelOpt) String() string { 150 return protoimpl.X.MessageStringOf(x) 151 } 152 153 func (*ModelOpt) ProtoMessage() {} 154 155 func (x *ModelOpt) ProtoReflect() protoreflect.Message { 156 mi := &file_options_proto_msgTypes[1] 157 if protoimpl.UnsafeEnabled && x != nil { 158 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 159 if ms.LoadMessageInfo() == nil { 160 ms.StoreMessageInfo(mi) 161 } 162 return ms 163 } 164 return mi.MessageOf(x) 165 } 166 167 // Deprecated: Use ModelOpt.ProtoReflect.Descriptor instead. 168 func (*ModelOpt) Descriptor() ([]byte, []int) { 169 return file_options_proto_rawDescGZIP(), []int{1} 170 } 171 172 func (x *ModelOpt) GetSingleton() bool { 173 if x != nil && x.Singleton != nil { 174 return *x.Singleton 175 } 176 return false 177 } 178 179 func (x *ModelOpt) GetGlobalDatasource() string { 180 if x != nil && x.GlobalDatasource != nil { 181 return *x.GlobalDatasource 182 } 183 return "" 184 } 185 186 func (x *ModelOpt) GetLocalDatasource() string { 187 if x != nil && x.LocalDatasource != nil { 188 return *x.LocalDatasource 189 } 190 return "" 191 } 192 193 func (x *ModelOpt) GetTable() *PrimaryKeyOpt { 194 if x != nil { 195 return x.Table 196 } 197 return nil 198 } 199 200 func (x *ModelOpt) GetView() []*PrimaryKeyOpt { 201 if x != nil { 202 return x.View 203 } 204 return nil 205 } 206 207 // PrimaryKeyOpt is the container for aggregate primary key settings. It is going to replace old 208 // rony_aggregate_table & rony_aggregate_view options. 209 type PrimaryKeyOpt struct { 210 state protoimpl.MessageState 211 sizeCache protoimpl.SizeCache 212 unknownFields protoimpl.UnknownFields 213 214 PartKey []string `protobuf:"bytes,1,rep,name=part_key,json=partKey" json:"part_key,omitempty"` 215 SortKey []string `protobuf:"bytes,2,rep,name=sort_key,json=sortKey" json:"sort_key,omitempty"` 216 // Alias could be used to override the name of materialized view. If this is not set, Rony automatically 217 // generates for you. 218 Alias *string `protobuf:"bytes,4,opt,name=alias" json:"alias,omitempty"` 219 } 220 221 func (x *PrimaryKeyOpt) Reset() { 222 *x = PrimaryKeyOpt{} 223 if protoimpl.UnsafeEnabled { 224 mi := &file_options_proto_msgTypes[2] 225 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 226 ms.StoreMessageInfo(mi) 227 } 228 } 229 230 func (x *PrimaryKeyOpt) String() string { 231 return protoimpl.X.MessageStringOf(x) 232 } 233 234 func (*PrimaryKeyOpt) ProtoMessage() {} 235 236 func (x *PrimaryKeyOpt) ProtoReflect() protoreflect.Message { 237 mi := &file_options_proto_msgTypes[2] 238 if protoimpl.UnsafeEnabled && x != nil { 239 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 240 if ms.LoadMessageInfo() == nil { 241 ms.StoreMessageInfo(mi) 242 } 243 return ms 244 } 245 return mi.MessageOf(x) 246 } 247 248 // Deprecated: Use PrimaryKeyOpt.ProtoReflect.Descriptor instead. 249 func (*PrimaryKeyOpt) Descriptor() ([]byte, []int) { 250 return file_options_proto_rawDescGZIP(), []int{2} 251 } 252 253 func (x *PrimaryKeyOpt) GetPartKey() []string { 254 if x != nil { 255 return x.PartKey 256 } 257 return nil 258 } 259 260 func (x *PrimaryKeyOpt) GetSortKey() []string { 261 if x != nil { 262 return x.SortKey 263 } 264 return nil 265 } 266 267 func (x *PrimaryKeyOpt) GetAlias() string { 268 if x != nil && x.Alias != nil { 269 return *x.Alias 270 } 271 return "" 272 } 273 274 type CliOpt struct { 275 state protoimpl.MessageState 276 sizeCache protoimpl.SizeCache 277 unknownFields protoimpl.UnknownFields 278 279 // protocol defines what protocol should client use to communicate with server. 280 // POSSIBLE VALUES: "ws", "http" 281 Protocol *string `protobuf:"bytes,1,opt,name=protocol" json:"protocol,omitempty"` 282 } 283 284 func (x *CliOpt) Reset() { 285 *x = CliOpt{} 286 if protoimpl.UnsafeEnabled { 287 mi := &file_options_proto_msgTypes[3] 288 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 289 ms.StoreMessageInfo(mi) 290 } 291 } 292 293 func (x *CliOpt) String() string { 294 return protoimpl.X.MessageStringOf(x) 295 } 296 297 func (*CliOpt) ProtoMessage() {} 298 299 func (x *CliOpt) ProtoReflect() protoreflect.Message { 300 mi := &file_options_proto_msgTypes[3] 301 if protoimpl.UnsafeEnabled && x != nil { 302 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 303 if ms.LoadMessageInfo() == nil { 304 ms.StoreMessageInfo(mi) 305 } 306 return ms 307 } 308 return mi.MessageOf(x) 309 } 310 311 // Deprecated: Use CliOpt.ProtoReflect.Descriptor instead. 312 func (*CliOpt) Descriptor() ([]byte, []int) { 313 return file_options_proto_rawDescGZIP(), []int{3} 314 } 315 316 func (x *CliOpt) GetProtocol() string { 317 if x != nil && x.Protocol != nil { 318 return *x.Protocol 319 } 320 return "" 321 } 322 323 var file_options_proto_extTypes = []protoimpl.ExtensionInfo{ 324 { 325 ExtendedType: (*descriptorpb.ServiceOptions)(nil), 326 ExtensionType: (*CliOpt)(nil), 327 Field: 50001, 328 Name: "rony_cli", 329 Tag: "bytes,50001,opt,name=rony_cli", 330 Filename: "options.proto", 331 }, 332 { 333 ExtendedType: (*descriptorpb.ServiceOptions)(nil), 334 ExtensionType: (*bool)(nil), 335 Field: 50003, 336 Name: "rony_no_client", 337 Tag: "varint,50003,opt,name=rony_no_client", 338 Filename: "options.proto", 339 }, 340 { 341 ExtendedType: (*descriptorpb.MethodOptions)(nil), 342 ExtensionType: (*bool)(nil), 343 Field: 50002, 344 Name: "rony_internal", 345 Tag: "varint,50002,opt,name=rony_internal", 346 Filename: "options.proto", 347 }, 348 { 349 ExtendedType: (*descriptorpb.MethodOptions)(nil), 350 ExtensionType: (*RestOpt)(nil), 351 Field: 50003, 352 Name: "rony_rest", 353 Tag: "bytes,50003,opt,name=rony_rest", 354 Filename: "options.proto", 355 }, 356 { 357 ExtendedType: (*descriptorpb.MessageOptions)(nil), 358 ExtensionType: (*ModelOpt)(nil), 359 Field: 50001, 360 Name: "rony_model", 361 Tag: "bytes,50001,opt,name=rony_model", 362 Filename: "options.proto", 363 }, 364 { 365 ExtendedType: (*descriptorpb.MessageOptions)(nil), 366 ExtensionType: (*bool)(nil), 367 Field: 50031, 368 Name: "rony_envelope", 369 Tag: "varint,50031,opt,name=rony_envelope", 370 Filename: "options.proto", 371 }, 372 { 373 ExtendedType: (*descriptorpb.MessageOptions)(nil), 374 ExtensionType: (*bool)(nil), 375 Field: 50032, 376 Name: "rony_skip_json", 377 Tag: "varint,50032,opt,name=rony_skip_json", 378 Filename: "options.proto", 379 }, 380 { 381 ExtendedType: (*descriptorpb.FieldOptions)(nil), 382 ExtensionType: (*bool)(nil), 383 Field: 50001, 384 Name: "rony_index", 385 Tag: "varint,50001,opt,name=rony_index", 386 Filename: "options.proto", 387 }, 388 { 389 ExtendedType: (*descriptorpb.FieldOptions)(nil), 390 ExtensionType: (*string)(nil), 391 Field: 50002, 392 Name: "rony_help", 393 Tag: "bytes,50002,opt,name=rony_help", 394 Filename: "options.proto", 395 }, 396 { 397 ExtendedType: (*descriptorpb.FieldOptions)(nil), 398 ExtensionType: (*string)(nil), 399 Field: 50003, 400 Name: "rony_default", 401 Tag: "bytes,50003,opt,name=rony_default", 402 Filename: "options.proto", 403 }, 404 } 405 406 // Extension fields to descriptorpb.ServiceOptions. 407 var ( 408 // rony_cli generates the boiler plate code for client stub of rpc methods. 409 // 410 // optional CliOpt rony_cli = 50001; 411 E_RonyCli = &file_options_proto_extTypes[0] 412 // rony_no_client if is set then no client code will be generated. This flag is for internal usage. 413 // DO NOT USE IT. 414 // 415 // optional bool rony_no_client = 50003; 416 E_RonyNoClient = &file_options_proto_extTypes[1] 417 ) 418 419 // Extension fields to descriptorpb.MethodOptions. 420 var ( 421 // rony_internal marks this method internal, hence only edges could execute this rpc through tunnel messages. In other words, 422 // this command is not exposed to external clients connected through th gateway. 423 // 424 // optional bool rony_internal = 50002; 425 E_RonyInternal = &file_options_proto_extTypes[2] 426 // optional RestOpt rony_rest = 50003; 427 E_RonyRest = &file_options_proto_extTypes[3] 428 ) 429 430 // Extension fields to descriptorpb.MessageOptions. 431 var ( 432 // optional ModelOpt rony_model = 50001; 433 E_RonyModel = &file_options_proto_extTypes[4] 434 // optional bool rony_envelope = 50031; 435 E_RonyEnvelope = &file_options_proto_extTypes[5] 436 // rony_skip_json will not generate de/serializer for JSON. If you use this option, then you need to 437 // write them manually otherwise you will get compiler error. 438 // 439 // optional bool rony_skip_json = 50032; 440 E_RonySkipJson = &file_options_proto_extTypes[6] 441 ) 442 443 // Extension fields to descriptorpb.FieldOptions. 444 var ( 445 // rony_index marks this field as an indexed field. Some queries will be generated for this indexed field. 446 // 447 // optional bool rony_index = 50001; 448 E_RonyIndex = &file_options_proto_extTypes[7] 449 // rony_default set the help text in generated cli client. This flag only works if rony_cobra_cmd is set 450 // in the service. 451 // 452 // optional string rony_help = 50002; 453 E_RonyHelp = &file_options_proto_extTypes[8] 454 // rony_default set the default value in generated cli client. This flag only works if rony_cobra_cmd is set 455 // in the service. 456 // 457 // optional string rony_default = 50003; 458 E_RonyDefault = &file_options_proto_extTypes[9] 459 ) 460 461 var File_options_proto protoreflect.FileDescriptor 462 463 var file_options_proto_rawDesc = []byte{ 464 0x0a, 0x0d, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 465 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 466 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 467 0x6f, 0x22, 0xa8, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x12, 0x16, 0x0a, 468 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x02, 0x28, 0x09, 0x52, 0x06, 0x6d, 469 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 470 0x02, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x26, 0x0a, 0x0f, 0x62, 0x69, 0x6e, 471 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x18, 0x03, 0x20, 0x03, 472 0x28, 0x09, 0x52, 0x0d, 0x62, 0x69, 0x6e, 0x64, 0x50, 0x61, 0x74, 0x68, 0x50, 0x61, 0x72, 0x61, 473 0x6d, 0x12, 0x28, 0x0a, 0x10, 0x62, 0x69, 0x6e, 0x64, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 474 0x70, 0x61, 0x72, 0x61, 0x6d, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x62, 0x69, 0x6e, 475 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x1f, 0x0a, 0x0b, 0x6a, 476 0x73, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 477 0x52, 0x0a, 0x6a, 0x73, 0x6f, 0x6e, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x22, 0xca, 0x01, 0x0a, 478 0x08, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x4f, 0x70, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x6e, 479 0x67, 0x6c, 0x65, 0x74, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x73, 0x69, 480 0x6e, 0x67, 0x6c, 0x65, 0x74, 0x6f, 0x6e, 0x12, 0x2b, 0x0a, 0x11, 0x67, 0x6c, 0x6f, 0x62, 0x61, 481 0x6c, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 482 0x28, 0x09, 0x52, 0x10, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x73, 0x6f, 483 0x75, 0x72, 0x63, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x64, 0x61, 484 0x74, 0x61, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 485 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 486 0x24, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 487 0x2e, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x4f, 0x70, 0x74, 0x52, 0x05, 488 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x22, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x05, 0x20, 489 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x4b, 0x65, 0x79, 490 0x4f, 0x70, 0x74, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77, 0x22, 0x5b, 0x0a, 0x0d, 0x50, 0x72, 0x69, 491 0x6d, 0x61, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x4f, 0x70, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 492 0x72, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 493 0x72, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x6b, 0x65, 494 0x79, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x4b, 0x65, 0x79, 495 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 496 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x22, 0x24, 0x0a, 0x06, 0x43, 0x6c, 0x69, 0x4f, 0x70, 0x74, 497 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 498 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x3a, 0x45, 0x0a, 0x08, 499 0x72, 0x6f, 0x6e, 0x79, 0x5f, 0x63, 0x6c, 0x69, 0x12, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 500 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 501 0x63, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xd1, 0x86, 0x03, 0x20, 0x01, 0x28, 502 0x0b, 0x32, 0x07, 0x2e, 0x43, 0x6c, 0x69, 0x4f, 0x70, 0x74, 0x52, 0x07, 0x72, 0x6f, 0x6e, 0x79, 503 0x43, 0x6c, 0x69, 0x3a, 0x47, 0x0a, 0x0e, 0x72, 0x6f, 0x6e, 0x79, 0x5f, 0x6e, 0x6f, 0x5f, 0x63, 504 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 505 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4f, 506 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xd3, 0x86, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 507 0x72, 0x6f, 0x6e, 0x79, 0x4e, 0x6f, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x3a, 0x45, 0x0a, 0x0d, 508 0x72, 0x6f, 0x6e, 0x79, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x12, 0x1e, 0x2e, 509 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 510 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xd2, 0x86, 511 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x72, 0x6f, 0x6e, 0x79, 0x49, 0x6e, 0x74, 0x65, 0x72, 512 0x6e, 0x61, 0x6c, 0x3a, 0x47, 0x0a, 0x09, 0x72, 0x6f, 0x6e, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x74, 513 0x12, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 514 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 515 0x18, 0xd3, 0x86, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x4f, 516 0x70, 0x74, 0x52, 0x08, 0x72, 0x6f, 0x6e, 0x79, 0x52, 0x65, 0x73, 0x74, 0x3a, 0x4b, 0x0a, 0x0a, 517 0x72, 0x6f, 0x6e, 0x79, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 518 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x73, 519 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xd1, 0x86, 0x03, 0x20, 520 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x4f, 0x70, 0x74, 0x52, 0x09, 521 0x72, 0x6f, 0x6e, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x3a, 0x46, 0x0a, 0x0d, 0x72, 0x6f, 0x6e, 522 0x79, 0x5f, 0x65, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 523 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x73, 524 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xef, 0x86, 0x03, 0x20, 525 0x01, 0x28, 0x08, 0x52, 0x0c, 0x72, 0x6f, 0x6e, 0x79, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 526 0x65, 0x3a, 0x47, 0x0a, 0x0e, 0x72, 0x6f, 0x6e, 0x79, 0x5f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x6a, 527 0x73, 0x6f, 0x6e, 0x12, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 528 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 529 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xf0, 0x86, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x72, 0x6f, 530 0x6e, 0x79, 0x53, 0x6b, 0x69, 0x70, 0x4a, 0x73, 0x6f, 0x6e, 0x3a, 0x3e, 0x0a, 0x0a, 0x72, 0x6f, 531 0x6e, 0x79, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 532 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 533 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xd1, 0x86, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 534 0x09, 0x72, 0x6f, 0x6e, 0x79, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x3c, 0x0a, 0x09, 0x72, 0x6f, 535 0x6e, 0x79, 0x5f, 0x68, 0x65, 0x6c, 0x70, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 536 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 537 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xd2, 0x86, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 538 0x72, 0x6f, 0x6e, 0x79, 0x48, 0x65, 0x6c, 0x70, 0x3a, 0x42, 0x0a, 0x0c, 0x72, 0x6f, 0x6e, 0x79, 539 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 540 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 541 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xd3, 0x86, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 542 0x0b, 0x72, 0x6f, 0x6e, 0x79, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x42, 0x1b, 0x5a, 0x19, 543 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x6f, 0x6e, 0x61, 0x6b, 544 0x73, 0x6f, 0x66, 0x74, 0x2f, 0x72, 0x6f, 0x6e, 0x79, 545 } 546 547 var ( 548 file_options_proto_rawDescOnce sync.Once 549 file_options_proto_rawDescData = file_options_proto_rawDesc 550 ) 551 552 func file_options_proto_rawDescGZIP() []byte { 553 file_options_proto_rawDescOnce.Do(func() { 554 file_options_proto_rawDescData = protoimpl.X.CompressGZIP(file_options_proto_rawDescData) 555 }) 556 return file_options_proto_rawDescData 557 } 558 559 var file_options_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 560 var file_options_proto_goTypes = []interface{}{ 561 (*RestOpt)(nil), // 0: RestOpt 562 (*ModelOpt)(nil), // 1: ModelOpt 563 (*PrimaryKeyOpt)(nil), // 2: PrimaryKeyOpt 564 (*CliOpt)(nil), // 3: CliOpt 565 (*descriptorpb.ServiceOptions)(nil), // 4: google.protobuf.ServiceOptions 566 (*descriptorpb.MethodOptions)(nil), // 5: google.protobuf.MethodOptions 567 (*descriptorpb.MessageOptions)(nil), // 6: google.protobuf.MessageOptions 568 (*descriptorpb.FieldOptions)(nil), // 7: google.protobuf.FieldOptions 569 } 570 var file_options_proto_depIdxs = []int32{ 571 2, // 0: ModelOpt.table:type_name -> PrimaryKeyOpt 572 2, // 1: ModelOpt.view:type_name -> PrimaryKeyOpt 573 4, // 2: rony_cli:extendee -> google.protobuf.ServiceOptions 574 4, // 3: rony_no_client:extendee -> google.protobuf.ServiceOptions 575 5, // 4: rony_internal:extendee -> google.protobuf.MethodOptions 576 5, // 5: rony_rest:extendee -> google.protobuf.MethodOptions 577 6, // 6: rony_model:extendee -> google.protobuf.MessageOptions 578 6, // 7: rony_envelope:extendee -> google.protobuf.MessageOptions 579 6, // 8: rony_skip_json:extendee -> google.protobuf.MessageOptions 580 7, // 9: rony_index:extendee -> google.protobuf.FieldOptions 581 7, // 10: rony_help:extendee -> google.protobuf.FieldOptions 582 7, // 11: rony_default:extendee -> google.protobuf.FieldOptions 583 3, // 12: rony_cli:type_name -> CliOpt 584 0, // 13: rony_rest:type_name -> RestOpt 585 1, // 14: rony_model:type_name -> ModelOpt 586 15, // [15:15] is the sub-list for method output_type 587 15, // [15:15] is the sub-list for method input_type 588 12, // [12:15] is the sub-list for extension type_name 589 2, // [2:12] is the sub-list for extension extendee 590 0, // [0:2] is the sub-list for field type_name 591 } 592 593 func init() { file_options_proto_init() } 594 func file_options_proto_init() { 595 if File_options_proto != nil { 596 return 597 } 598 if !protoimpl.UnsafeEnabled { 599 file_options_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 600 switch v := v.(*RestOpt); i { 601 case 0: 602 return &v.state 603 case 1: 604 return &v.sizeCache 605 case 2: 606 return &v.unknownFields 607 default: 608 return nil 609 } 610 } 611 file_options_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 612 switch v := v.(*ModelOpt); i { 613 case 0: 614 return &v.state 615 case 1: 616 return &v.sizeCache 617 case 2: 618 return &v.unknownFields 619 default: 620 return nil 621 } 622 } 623 file_options_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 624 switch v := v.(*PrimaryKeyOpt); i { 625 case 0: 626 return &v.state 627 case 1: 628 return &v.sizeCache 629 case 2: 630 return &v.unknownFields 631 default: 632 return nil 633 } 634 } 635 file_options_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 636 switch v := v.(*CliOpt); i { 637 case 0: 638 return &v.state 639 case 1: 640 return &v.sizeCache 641 case 2: 642 return &v.unknownFields 643 default: 644 return nil 645 } 646 } 647 } 648 type x struct{} 649 out := protoimpl.TypeBuilder{ 650 File: protoimpl.DescBuilder{ 651 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 652 RawDescriptor: file_options_proto_rawDesc, 653 NumEnums: 0, 654 NumMessages: 4, 655 NumExtensions: 10, 656 NumServices: 0, 657 }, 658 GoTypes: file_options_proto_goTypes, 659 DependencyIndexes: file_options_proto_depIdxs, 660 MessageInfos: file_options_proto_msgTypes, 661 ExtensionInfos: file_options_proto_extTypes, 662 }.Build() 663 File_options_proto = out.File 664 file_options_proto_rawDesc = nil 665 file_options_proto_goTypes = nil 666 file_options_proto_depIdxs = nil 667 }