From 1f4d0364a6c2e938f62fdea8622709e833f2d4af Mon Sep 17 00:00:00 2001 From: KarielHalling Date: Mon, 11 Aug 2025 11:48:30 +0800 Subject: [PATCH 1/5] feat: Added AI extension support and SQL generation APIs - Added AI extension entry and default port to the README - Added AI extension type and configuration parameters to store.ts - Added AIExtension service and SQL generation related message definitions to server.proto --- console/atest-ui/src/views/store.ts | 22 ++++++- extensions/README.md | 1 + pkg/server/server.proto | 91 +++++++++++++++++++++++++++++ 3 files changed, 113 insertions(+), 1 deletion(-) diff --git a/console/atest-ui/src/views/store.ts b/console/atest-ui/src/views/store.ts index 00c3e99d..6e57f16d 100644 --- a/console/atest-ui/src/views/store.ts +++ b/console/atest-ui/src/views/store.ts @@ -57,6 +57,7 @@ const ExtensionKindRedis = "atest-store-redis" const ExtensionKindMongoDB = "atest-store-mongodb" const ExtensionKindElasticsearch = "atest-store-elasticsearch" const ExtensionKindOpengeMini = "atest-store-opengemini" +const ExtensionKindAI = "atest-ext-ai" export const ExtensionKind = { ExtensionKindGit, @@ -68,7 +69,8 @@ export const ExtensionKind = { ExtensionKindRedis, ExtensionKindMongoDB, ExtensionKindElasticsearch, - ExtensionKindOpengeMini + ExtensionKindOpengeMini, + ExtensionKindAI } const storeExtensions = [ @@ -170,6 +172,24 @@ const storeExtensions = [ name: ExtensionKindOpengeMini, params: [], link: 'https://github.com/LinuxSuRen/atest-ext-store-opengemini' + }, + { + name: ExtensionKindAI, + params: [{ + key: 'model_provider', + defaultValue: 'ollama', + enum: ['ollama', 'openai'], + description: 'AI model provider: ollama or openai' + }, { + key: 'model_name', + defaultValue: 'llama3.2', + description: 'AI model name' + }, { + key: 'api_key', + defaultValue: '', + description: 'API key for external providers (e.g., OpenAI)' + }], + link: 'https://github.com/LinuxSuRen/atest-ext-ai' } ] as Store[] diff --git a/extensions/README.md b/extensions/README.md index ef00ebea..d37d2cfd 100644 --- a/extensions/README.md +++ b/extensions/README.md @@ -15,6 +15,7 @@ Ports in extensions: | Agent | [collector](https://github.com/LinuxSuRen/atest-ext-collector) | | | Secret | [Vault](https://github.com/LinuxSuRen/api-testing-vault-extension) | | | Data | [Swagger](https://github.com/LinuxSuRen/atest-ext-data-swagger) | | +| AI | [ai-extension](https://github.com/LinuxSuRen/atest-ext-ai) | 50051 | ## Contribute a new extension diff --git a/pkg/server/server.proto b/pkg/server/server.proto index 6ac0d5a4..c53f6889 100644 --- a/pkg/server/server.proto +++ b/pkg/server/server.proto @@ -330,6 +330,18 @@ service ThemeExtension { } } +// AIExtension service provides AI-powered capabilities for atest. +service AIExtension { + // Translates a natural language query into an SQL query, providing + // context and explanations for better accuracy and user trust. + rpc GenerateSQLFromNaturalLanguage (GenerateSQLRequest) returns (GenerateSQLResponse) { + option (google.api.http) = { + post: "/api/v1/ai/sql/generate" + body: "*" + }; + } +} + message Suites { map data = 1; } @@ -697,3 +709,82 @@ message DataMeta { string duration = 4; repeated Pair labels = 5; } + +// AI Extension related messages + +// Enum for supported database dialects to ensure type safety. +enum DatabaseType { + // DATABASE_TYPE_UNSPECIFIED indicates a missing or unknown database type. + DATABASE_TYPE_UNSPECIFIED = 0; + MYSQL = 1; + POSTGRESQL = 2; + SQLITE = 3; +} + +// Represents an example pair of natural language to SQL for few-shot prompting. +message QueryExample { + // A natural language query example. + string natural_language_prompt = 1; + // The corresponding correct SQL query for the prompt. + string sql_query = 2; +} + +// Request message for generating an SQL query from natural language. +message GenerateSQLRequest { + // The user's query in natural language. (e.g., "show me all users from California") + string natural_language_input = 1; + // Target database dialect for SQL generation. + DatabaseType database_type = 2; + // Optional: A list of DDL statements (e.g., CREATE TABLE …) for relevant tables. + // Providing schemas helps the AI generate more accurate queries. + repeated string schemas = 3; + // Optional: A session identifier to maintain context across multiple requests, + // enabling conversational query refinement. + optional string session_id = 4; + // Optional: A list of examples to guide the AI, improving accuracy for + // specific or complex domains. + repeated QueryExample examples = 5; +} + +// Response message containing the result of the SQL generation. +message GenerateSQLResponse { + // The response can be one of the following types. + oneof result { + // Contains the successful SQL generation details. + SuccessResponse success = 1; + // Contains details about why the generation failed. + ErrorResponse error = 2; + } +} + +// Represents a successful SQL generation. +message SuccessResponse { + // The generated SQL query. + string sql_query = 1; + // An explanation of how the AI interpreted the request and generated the SQL. + // This builds user trust and aids in debugging. + optional string explanation = 2; + // A score between 0.0 and 1.0 indicating the AI's confidence in the generated query. + optional float confidence_score = 3; +} + +// Enum for structured error codes. +enum ErrorCode { + ERROR_CODE_UNSPECIFIED = 0; + // The input was invalid (e.g., empty prompt). + INVALID_ARGUMENT = 1; + // The AI model failed to translate the query. + TRANSLATION_FAILED = 2; + // The requested database type is not supported. + UNSUPPORTED_DATABASE = 3; + // An internal error occurred in the service. + INTERNAL_ERROR = 4; +} + +// Represents a failed SQL generation attempt. +message ErrorResponse { + // A structured error code for programmatic handling. + ErrorCode code = 1; + // A human-readable message describing the error. + string message = 2; +} From 14edd88b2c4f1a2d4dbe102b564710c344c4f8f5 Mon Sep 17 00:00:00 2001 From: KarielHalling Date: Mon, 11 Aug 2025 22:09:24 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E4=BD=A0feat:=20implement=20unified=20AI?= =?UTF-8?q?=20extension=20service=20with=20gRPC=20interface?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add AI extension protobuf definitions with GenerateSQLFromNaturalLanguage RPC - Implement unified LLM service architecture with BaseLLMConnector interface - Update field naming to camelCase for consistency with generated protobuf code - Refactor OllamaConnector and OpenAIConnector to extend BaseLLMConnector - Add comprehensive error handling and response formatting - Integrate gRPC server with reflection support for better debugging - Update protobuf generation to support Python 3.8+ compatibility Breaking Changes: - Field names in protobuf messages now use camelCase format - LLM connector interface has been restructured for better extensibility Tested with: Python 3.8+, gRPC 1.60+, protobuf 4.25+ --- console/atest-ui/src/views/store.ts | 18 ++++++-- extensions/README.md | 61 ++++++++++++++++++++++++++ pkg/server/server.proto | 67 +++++++++++++++++++++++++---- 3 files changed, 134 insertions(+), 12 deletions(-) diff --git a/console/atest-ui/src/views/store.ts b/console/atest-ui/src/views/store.ts index 6e57f16d..66c37c80 100644 --- a/console/atest-ui/src/views/store.ts +++ b/console/atest-ui/src/views/store.ts @@ -179,15 +179,27 @@ const storeExtensions = [ key: 'model_provider', defaultValue: 'ollama', enum: ['ollama', 'openai'], - description: 'AI model provider: ollama or openai' + description: 'AI model provider used in GenerateContentRequest.parameters for content generation' }, { key: 'model_name', defaultValue: 'llama3.2', - description: 'AI model name' + description: 'AI model name passed to GenerateContentRequest.parameters["model_name"] for specific model selection' }, { key: 'api_key', defaultValue: '', - description: 'API key for external providers (e.g., OpenAI)' + description: 'API key for external providers, used in GenerateContentRequest.parameters["api_key"] for authentication' + }, { + key: 'base_url', + defaultValue: 'http://localhost:11434', + description: 'Base URL for AI service, used in GenerateContentRequest.parameters["base_url"] to specify service endpoint' + }, { + key: 'temperature', + defaultValue: '0.7', + description: 'Controls randomness in AI responses (0.0-1.0), passed via GenerateContentRequest.parameters["temperature"]' + }, { + key: 'max_tokens', + defaultValue: '2048', + description: 'Maximum tokens in AI response, used in GenerateContentRequest.parameters["max_tokens"] to limit output length' }], link: 'https://github.com/LinuxSuRen/atest-ext-ai' } diff --git a/extensions/README.md b/extensions/README.md index d37d2cfd..a116cc2a 100644 --- a/extensions/README.md +++ b/extensions/README.md @@ -17,6 +17,67 @@ Ports in extensions: | Data | [Swagger](https://github.com/LinuxSuRen/atest-ext-data-swagger) | | | AI | [ai-extension](https://github.com/LinuxSuRen/atest-ext-ai) | 50051 | +## AI Extension Interface + +The AI extension provides intelligent testing capabilities through gRPC interface on port 50051. It offers a unified AI interface that can handle various content generation tasks. + +### Available Services + +#### GenerateContent (Recommended) +A general-purpose AI interface that can handle multiple content types: +- **SQL Generation**: Convert natural language to SQL queries +- **Test Case Generation**: Automatically generate test cases based on API specifications +- **Mock Service Creation**: Generate mock services and responses +- **Test Data Generation**: Create realistic test data using AI models +- **Result Analysis**: Intelligent analysis of test results and failure patterns + +**Request Parameters:** +- `prompt`: Natural language description of what to generate +- `contentType`: Type of content ("sql", "testcase", "mock", "analysis") +- `context`: Additional context information (schemas, API specs, etc.) +- `sessionId`: Optional session ID for conversational context +- `parameters`: AI model configuration (model_provider, model_name, api_key, etc.) + +#### GenerateSQLFromNaturalLanguage (Legacy) +Specific interface for SQL generation, maintained for backward compatibility. + +### Configuration Parameters + +These parameters are configured in the store extension settings and passed to the AI service: + +- `model_provider`: AI provider ("ollama", "openai") - used in GenerateContentRequest.parameters +- `model_name`: Specific model name (e.g., "llama3.2", "gpt-4") - passed via parameters["model_name"] +- `api_key`: Authentication key for external providers - used in parameters["api_key"] +- `base_url`: Service endpoint URL - specified in parameters["base_url"] +- `temperature`: Response randomness control (0.0-1.0) - set via parameters["temperature"] +- `max_tokens`: Maximum response length - controlled by parameters["max_tokens"] + +### Usage Examples + +```protobuf +// Generate SQL query +GenerateContentRequest { + prompt: "Show me all users from California" + contentType: "sql" + context: { + "schema": "CREATE TABLE users (id INT, name VARCHAR(100), state VARCHAR(50))" + } + parameters: { + "model_provider": "ollama" + "model_name": "llama3.2" + } +} + +// Generate test case +GenerateContentRequest { + prompt: "Create a test case for user registration API" + contentType: "testcase" + context: { + "api_spec": "POST /api/users {name, email, password}" + } +} +``` + ## Contribute a new extension * First, create a repository. And please keep the same naming convertion. diff --git a/pkg/server/server.proto b/pkg/server/server.proto index c53f6889..e5b5f01c 100644 --- a/pkg/server/server.proto +++ b/pkg/server/server.proto @@ -332,8 +332,17 @@ service ThemeExtension { // AIExtension service provides AI-powered capabilities for atest. service AIExtension { - // Translates a natural language query into an SQL query, providing - // context and explanations for better accuracy and user trust. + // Generates content based on natural language prompts with context. + // This is a general-purpose AI interface that can handle SQL generation, + // test case writing, mock service creation, and other AI-powered tasks. + rpc GenerateContent (GenerateContentRequest) returns (GenerateContentResponse) { + option (google.api.http) = { + post: "/api/v1/ai/generate" + body: "*" + }; + } + + // Legacy SQL generation endpoint for backward compatibility rpc GenerateSQLFromNaturalLanguage (GenerateSQLRequest) returns (GenerateSQLResponse) { option (google.api.http) = { post: "/api/v1/ai/sql/generate" @@ -724,28 +733,53 @@ enum DatabaseType { // Represents an example pair of natural language to SQL for few-shot prompting. message QueryExample { // A natural language query example. - string natural_language_prompt = 1; + string naturalLanguagePrompt = 1; // The corresponding correct SQL query for the prompt. - string sql_query = 2; + string sqlQuery = 2; +} + +// Request message for generating content based on natural language prompts. +message GenerateContentRequest { + // The user's prompt in natural language. + string prompt = 1; + // The type of content to generate (e.g., "sql", "testcase", "mock"). + string contentType = 2; + // Context information to help with generation. + map context = 3; + // Optional: A session identifier to maintain context across multiple requests. + optional string sessionId = 4; + // Optional: Additional parameters specific to the content type. + map parameters = 5; } // Request message for generating an SQL query from natural language. message GenerateSQLRequest { // The user's query in natural language. (e.g., "show me all users from California") - string natural_language_input = 1; + string naturalLanguageInput = 1; // Target database dialect for SQL generation. - DatabaseType database_type = 2; + DatabaseType databaseType = 2; // Optional: A list of DDL statements (e.g., CREATE TABLE …) for relevant tables. // Providing schemas helps the AI generate more accurate queries. repeated string schemas = 3; // Optional: A session identifier to maintain context across multiple requests, // enabling conversational query refinement. - optional string session_id = 4; + optional string sessionId = 4; // Optional: A list of examples to guide the AI, improving accuracy for // specific or complex domains. repeated QueryExample examples = 5; } +// Response message containing the result of content generation. +message GenerateContentResponse { + // The response can be one of the following types. + oneof result { + // Contains the successful content generation details. + ContentSuccessResponse success = 1; + // Contains details about why the generation failed. + ErrorResponse error = 2; + } +} + // Response message containing the result of the SQL generation. message GenerateSQLResponse { // The response can be one of the following types. @@ -757,15 +791,30 @@ message GenerateSQLResponse { } } +// Represents a successful content generation. +message ContentSuccessResponse { + // The generated content. + string content = 1; + // The type of content that was generated. + string contentType = 2; + // An explanation of how the AI interpreted the request and generated the content. + // This builds user trust and aids in debugging. + optional string explanation = 3; + // A score between 0.0 and 1.0 indicating the AI's confidence in the generated content. + optional float confidenceScore = 4; + // Additional metadata about the generation process. + map metadata = 5; +} + // Represents a successful SQL generation. message SuccessResponse { // The generated SQL query. - string sql_query = 1; + string sqlQuery = 1; // An explanation of how the AI interpreted the request and generated the SQL. // This builds user trust and aids in debugging. optional string explanation = 2; // A score between 0.0 and 1.0 indicating the AI's confidence in the generated query. - optional float confidence_score = 3; + optional float confidenceScore = 3; } // Enum for structured error codes. From e955c688b5199570034db0accbfcc29db72c38fd Mon Sep 17 00:00:00 2001 From: KarielHalling Date: Wed, 13 Aug 2025 22:19:54 +0800 Subject: [PATCH 3/5] feat: implement protobuf generation and fix Python gRPC imports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Install and configure protobuf toolchain (protoc, protoc-gen-go, grpc-gateway) - Successfully execute make grpc grpc-gw equivalent for api-testing project - Generate Go protobuf files: server.pb.go, server.pb.gw.go, server_grpc.pb.go - Generate loader and monitor protobuf files for remote testing - Regenerate Python protobuf code: ai_extension_pb2.py, ai_extension_pb2_grpc.py - Fix Python import paths: change absolute imports to relative imports - Verify gRPC server functionality and service registration - Confirm AI extension services (GenerateSQLFromNaturalLanguage, GenerateContent) are operational Breaking changes: None Tested: ✅ gRPC server starts successfully with all services registered --- pkg/runner/monitor/monitor.pb.go | 105 +- pkg/runner/monitor/monitor_grpc.pb.go | 36 +- pkg/server/server.pb.go | 4224 +++++++++++-------------- pkg/server/server.pb.gw.go | 3577 ++++++++------------- pkg/server/server.swagger.json | 644 +++- pkg/server/server_grpc.pb.go | 780 +++-- pkg/testing/remote/loader.pb.go | 454 +-- pkg/testing/remote/loader_grpc.pb.go | 296 +- 8 files changed, 4551 insertions(+), 5565 deletions(-) diff --git a/pkg/runner/monitor/monitor.pb.go b/pkg/runner/monitor/monitor.pb.go index 0d08cb62..d7c0562d 100644 --- a/pkg/runner/monitor/monitor.pb.go +++ b/pkg/runner/monitor/monitor.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 -// protoc v4.22.2 +// protoc-gen-go v1.36.7 +// protoc v5.29.3 // source: pkg/runner/monitor/monitor.proto package monitor @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -21,21 +22,18 @@ const ( ) type ResourceUsage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Memory uint64 `protobuf:"varint,1,opt,name=memory,proto3" json:"memory,omitempty"` + Cpu uint64 `protobuf:"varint,2,opt,name=cpu,proto3" json:"cpu,omitempty"` unknownFields protoimpl.UnknownFields - - Memory uint64 `protobuf:"varint,1,opt,name=memory,proto3" json:"memory,omitempty"` - Cpu uint64 `protobuf:"varint,2,opt,name=cpu,proto3" json:"cpu,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ResourceUsage) Reset() { *x = ResourceUsage{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_runner_monitor_monitor_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_runner_monitor_monitor_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ResourceUsage) String() string { @@ -46,7 +44,7 @@ func (*ResourceUsage) ProtoMessage() {} func (x *ResourceUsage) ProtoReflect() protoreflect.Message { mi := &file_pkg_runner_monitor_monitor_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -76,20 +74,17 @@ func (x *ResourceUsage) GetCpu() uint64 { } type Target struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Target) Reset() { *x = Target{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_runner_monitor_monitor_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_runner_monitor_monitor_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Target) String() string { @@ -100,7 +95,7 @@ func (*Target) ProtoMessage() {} func (x *Target) ProtoReflect() protoreflect.Message { mi := &file_pkg_runner_monitor_monitor_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -124,40 +119,31 @@ func (x *Target) GetName() string { var File_pkg_runner_monitor_monitor_proto protoreflect.FileDescriptor -var file_pkg_runner_monitor_monitor_proto_rawDesc = []byte{ - 0x0a, 0x20, 0x70, 0x6b, 0x67, 0x2f, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x2f, 0x6d, 0x6f, 0x6e, - 0x69, 0x74, 0x6f, 0x72, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x07, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x22, 0x39, 0x0a, 0x0d, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x73, 0x61, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, - 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6d, 0x65, - 0x6d, 0x6f, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x70, 0x75, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x03, 0x63, 0x70, 0x75, 0x22, 0x1c, 0x0a, 0x06, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x32, 0x48, 0x0a, 0x07, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x12, - 0x3d, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x73, - 0x61, 0x67, 0x65, 0x12, 0x0f, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x54, 0x61, - 0x72, 0x67, 0x65, 0x74, 0x1a, 0x16, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x73, 0x61, 0x67, 0x65, 0x22, 0x00, 0x42, 0x36, - 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x69, 0x6e, - 0x75, 0x78, 0x73, 0x75, 0x72, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x74, 0x65, 0x73, 0x74, - 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x2f, 0x6d, - 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_pkg_runner_monitor_monitor_proto_rawDesc = "" + + "\n" + + " pkg/runner/monitor/monitor.proto\x12\amonitor\"9\n" + + "\rResourceUsage\x12\x16\n" + + "\x06memory\x18\x01 \x01(\x04R\x06memory\x12\x10\n" + + "\x03cpu\x18\x02 \x01(\x04R\x03cpu\"\x1c\n" + + "\x06Target\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name2H\n" + + "\aMonitor\x12=\n" + + "\x10GetResourceUsage\x12\x0f.monitor.Target\x1a\x16.monitor.ResourceUsage\"\x00B6Z4github.com/linuxsuren/api-testing/pkg/runner/monitorb\x06proto3" var ( file_pkg_runner_monitor_monitor_proto_rawDescOnce sync.Once - file_pkg_runner_monitor_monitor_proto_rawDescData = file_pkg_runner_monitor_monitor_proto_rawDesc + file_pkg_runner_monitor_monitor_proto_rawDescData []byte ) func file_pkg_runner_monitor_monitor_proto_rawDescGZIP() []byte { file_pkg_runner_monitor_monitor_proto_rawDescOnce.Do(func() { - file_pkg_runner_monitor_monitor_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_runner_monitor_monitor_proto_rawDescData) + file_pkg_runner_monitor_monitor_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_runner_monitor_monitor_proto_rawDesc), len(file_pkg_runner_monitor_monitor_proto_rawDesc))) }) return file_pkg_runner_monitor_monitor_proto_rawDescData } var file_pkg_runner_monitor_monitor_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_pkg_runner_monitor_monitor_proto_goTypes = []interface{}{ +var file_pkg_runner_monitor_monitor_proto_goTypes = []any{ (*ResourceUsage)(nil), // 0: monitor.ResourceUsage (*Target)(nil), // 1: monitor.Target } @@ -176,37 +162,11 @@ func file_pkg_runner_monitor_monitor_proto_init() { if File_pkg_runner_monitor_monitor_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_pkg_runner_monitor_monitor_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResourceUsage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_runner_monitor_monitor_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Target); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_pkg_runner_monitor_monitor_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_runner_monitor_monitor_proto_rawDesc), len(file_pkg_runner_monitor_monitor_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, @@ -217,7 +177,6 @@ func file_pkg_runner_monitor_monitor_proto_init() { MessageInfos: file_pkg_runner_monitor_monitor_proto_msgTypes, }.Build() File_pkg_runner_monitor_monitor_proto = out.File - file_pkg_runner_monitor_monitor_proto_rawDesc = nil file_pkg_runner_monitor_monitor_proto_goTypes = nil file_pkg_runner_monitor_monitor_proto_depIdxs = nil } diff --git a/pkg/runner/monitor/monitor_grpc.pb.go b/pkg/runner/monitor/monitor_grpc.pb.go index 662f57d7..2b030008 100644 --- a/pkg/runner/monitor/monitor_grpc.pb.go +++ b/pkg/runner/monitor/monitor_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v4.22.2 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: pkg/runner/monitor/monitor.proto package monitor @@ -15,8 +15,12 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + Monitor_GetResourceUsage_FullMethodName = "/monitor.Monitor/GetResourceUsage" +) // MonitorClient is the client API for Monitor service. // @@ -34,8 +38,9 @@ func NewMonitorClient(cc grpc.ClientConnInterface) MonitorClient { } func (c *monitorClient) GetResourceUsage(ctx context.Context, in *Target, opts ...grpc.CallOption) (*ResourceUsage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ResourceUsage) - err := c.cc.Invoke(ctx, "/monitor.Monitor/GetResourceUsage", in, out, opts...) + err := c.cc.Invoke(ctx, Monitor_GetResourceUsage_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -44,20 +49,24 @@ func (c *monitorClient) GetResourceUsage(ctx context.Context, in *Target, opts . // MonitorServer is the server API for Monitor service. // All implementations must embed UnimplementedMonitorServer -// for forward compatibility +// for forward compatibility. type MonitorServer interface { GetResourceUsage(context.Context, *Target) (*ResourceUsage, error) mustEmbedUnimplementedMonitorServer() } -// UnimplementedMonitorServer must be embedded to have forward compatible implementations. -type UnimplementedMonitorServer struct { -} +// UnimplementedMonitorServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedMonitorServer struct{} func (UnimplementedMonitorServer) GetResourceUsage(context.Context, *Target) (*ResourceUsage, error) { return nil, status.Errorf(codes.Unimplemented, "method GetResourceUsage not implemented") } func (UnimplementedMonitorServer) mustEmbedUnimplementedMonitorServer() {} +func (UnimplementedMonitorServer) testEmbeddedByValue() {} // UnsafeMonitorServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to MonitorServer will @@ -67,6 +76,13 @@ type UnsafeMonitorServer interface { } func RegisterMonitorServer(s grpc.ServiceRegistrar, srv MonitorServer) { + // If the following call pancis, it indicates UnimplementedMonitorServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Monitor_ServiceDesc, srv) } @@ -80,7 +96,7 @@ func _Monitor_GetResourceUsage_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/monitor.Monitor/GetResourceUsage", + FullMethod: Monitor_GetResourceUsage_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MonitorServer).GetResourceUsage(ctx, req.(*Target)) diff --git a/pkg/server/server.pb.go b/pkg/server/server.pb.go index 86a85080..d1652c1e 100644 --- a/pkg/server/server.pb.go +++ b/pkg/server/server.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 -// protoc v4.22.2 +// protoc-gen-go v1.36.7 +// protoc v5.29.3 // source: pkg/server/server.proto package server @@ -13,6 +13,7 @@ import ( timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,21 +23,132 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// Enum for supported database dialects to ensure type safety. +type DatabaseType int32 + +const ( + // DATABASE_TYPE_UNSPECIFIED indicates a missing or unknown database type. + DatabaseType_DATABASE_TYPE_UNSPECIFIED DatabaseType = 0 + DatabaseType_MYSQL DatabaseType = 1 + DatabaseType_POSTGRESQL DatabaseType = 2 + DatabaseType_SQLITE DatabaseType = 3 +) + +// Enum value maps for DatabaseType. +var ( + DatabaseType_name = map[int32]string{ + 0: "DATABASE_TYPE_UNSPECIFIED", + 1: "MYSQL", + 2: "POSTGRESQL", + 3: "SQLITE", + } + DatabaseType_value = map[string]int32{ + "DATABASE_TYPE_UNSPECIFIED": 0, + "MYSQL": 1, + "POSTGRESQL": 2, + "SQLITE": 3, + } +) + +func (x DatabaseType) Enum() *DatabaseType { + p := new(DatabaseType) + *p = x + return p +} + +func (x DatabaseType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (DatabaseType) Descriptor() protoreflect.EnumDescriptor { + return file_pkg_server_server_proto_enumTypes[0].Descriptor() +} + +func (DatabaseType) Type() protoreflect.EnumType { + return &file_pkg_server_server_proto_enumTypes[0] +} + +func (x DatabaseType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use DatabaseType.Descriptor instead. +func (DatabaseType) EnumDescriptor() ([]byte, []int) { + return file_pkg_server_server_proto_rawDescGZIP(), []int{0} +} + +// Enum for structured error codes. +type ErrorCode int32 + +const ( + ErrorCode_ERROR_CODE_UNSPECIFIED ErrorCode = 0 + // The input was invalid (e.g., empty prompt). + ErrorCode_INVALID_ARGUMENT ErrorCode = 1 + // The AI model failed to translate the query. + ErrorCode_TRANSLATION_FAILED ErrorCode = 2 + // The requested database type is not supported. + ErrorCode_UNSUPPORTED_DATABASE ErrorCode = 3 + // An internal error occurred in the service. + ErrorCode_INTERNAL_ERROR ErrorCode = 4 +) + +// Enum value maps for ErrorCode. +var ( + ErrorCode_name = map[int32]string{ + 0: "ERROR_CODE_UNSPECIFIED", + 1: "INVALID_ARGUMENT", + 2: "TRANSLATION_FAILED", + 3: "UNSUPPORTED_DATABASE", + 4: "INTERNAL_ERROR", + } + ErrorCode_value = map[string]int32{ + "ERROR_CODE_UNSPECIFIED": 0, + "INVALID_ARGUMENT": 1, + "TRANSLATION_FAILED": 2, + "UNSUPPORTED_DATABASE": 3, + "INTERNAL_ERROR": 4, + } +) + +func (x ErrorCode) Enum() *ErrorCode { + p := new(ErrorCode) + *p = x + return p +} + +func (x ErrorCode) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ErrorCode) Descriptor() protoreflect.EnumDescriptor { + return file_pkg_server_server_proto_enumTypes[1].Descriptor() +} + +func (ErrorCode) Type() protoreflect.EnumType { + return &file_pkg_server_server_proto_enumTypes[1] +} + +func (x ErrorCode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ErrorCode.Descriptor instead. +func (ErrorCode) EnumDescriptor() ([]byte, []int) { + return file_pkg_server_server_proto_rawDescGZIP(), []int{1} +} + type Suites struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data map[string]*Items `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - Data map[string]*Items `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *Suites) Reset() { *x = Suites{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Suites) String() string { @@ -47,7 +159,7 @@ func (*Suites) ProtoMessage() {} func (x *Suites) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -70,21 +182,18 @@ func (x *Suites) GetData() map[string]*Items { } type Items struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data []string `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` unknownFields protoimpl.UnknownFields - - Data []string `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` - Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Items) Reset() { *x = Items{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Items) String() string { @@ -95,7 +204,7 @@ func (*Items) ProtoMessage() {} func (x *Items) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -125,20 +234,17 @@ func (x *Items) GetKind() string { } type HistorySuites struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data map[string]*HistoryItems `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - Data map[string]*HistoryItems `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *HistorySuites) Reset() { *x = HistorySuites{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HistorySuites) String() string { @@ -149,7 +255,7 @@ func (*HistorySuites) ProtoMessage() {} func (x *HistorySuites) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -172,20 +278,17 @@ func (x *HistorySuites) GetData() map[string]*HistoryItems { } type HistoryItems struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data []*HistoryCaseIdentity `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Data []*HistoryCaseIdentity `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *HistoryItems) Reset() { *x = HistoryItems{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HistoryItems) String() string { @@ -196,7 +299,7 @@ func (*HistoryItems) ProtoMessage() {} func (x *HistoryItems) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -219,24 +322,21 @@ func (x *HistoryItems) GetData() []*HistoryCaseIdentity { } type HistoryCaseIdentity struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Suite string `protobuf:"bytes,1,opt,name=suite,proto3" json:"suite,omitempty"` - Testcase string `protobuf:"bytes,2,opt,name=testcase,proto3" json:"testcase,omitempty"` - HistorySuiteName string `protobuf:"bytes,3,opt,name=historySuiteName,proto3" json:"historySuiteName,omitempty"` - Kind string `protobuf:"bytes,4,opt,name=kind,proto3" json:"kind,omitempty"` - ID string `protobuf:"bytes,5,opt,name=ID,proto3" json:"ID,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Suite string `protobuf:"bytes,1,opt,name=suite,proto3" json:"suite,omitempty"` + Testcase string `protobuf:"bytes,2,opt,name=testcase,proto3" json:"testcase,omitempty"` + HistorySuiteName string `protobuf:"bytes,3,opt,name=historySuiteName,proto3" json:"historySuiteName,omitempty"` + Kind string `protobuf:"bytes,4,opt,name=kind,proto3" json:"kind,omitempty"` + ID string `protobuf:"bytes,5,opt,name=ID,proto3" json:"ID,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *HistoryCaseIdentity) Reset() { *x = HistoryCaseIdentity{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HistoryCaseIdentity) String() string { @@ -247,7 +347,7 @@ func (*HistoryCaseIdentity) ProtoMessage() {} func (x *HistoryCaseIdentity) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -298,22 +398,19 @@ func (x *HistoryCaseIdentity) GetID() string { } type TestCaseIdentity struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Suite string `protobuf:"bytes,1,opt,name=suite,proto3" json:"suite,omitempty"` + Testcase string `protobuf:"bytes,2,opt,name=testcase,proto3" json:"testcase,omitempty"` + Parameters []*Pair `protobuf:"bytes,3,rep,name=parameters,proto3" json:"parameters,omitempty"` unknownFields protoimpl.UnknownFields - - Suite string `protobuf:"bytes,1,opt,name=suite,proto3" json:"suite,omitempty"` - Testcase string `protobuf:"bytes,2,opt,name=testcase,proto3" json:"testcase,omitempty"` - Parameters []*Pair `protobuf:"bytes,3,rep,name=parameters,proto3" json:"parameters,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TestCaseIdentity) Reset() { *x = TestCaseIdentity{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestCaseIdentity) String() string { @@ -324,7 +421,7 @@ func (*TestCaseIdentity) ProtoMessage() {} func (x *TestCaseIdentity) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -361,22 +458,19 @@ func (x *TestCaseIdentity) GetParameters() []*Pair { } type TestSuiteSource struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` + Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` + Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` - Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` - Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TestSuiteSource) Reset() { *x = TestSuiteSource{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestSuiteSource) String() string { @@ -387,7 +481,7 @@ func (*TestSuiteSource) ProtoMessage() {} func (x *TestSuiteSource) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -424,24 +518,21 @@ func (x *TestSuiteSource) GetData() string { } type TestSuite struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Api string `protobuf:"bytes,2,opt,name=api,proto3" json:"api,omitempty"` + Param []*Pair `protobuf:"bytes,3,rep,name=param,proto3" json:"param,omitempty"` + Spec *APISpec `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"` + Proxy *ProxyConfig `protobuf:"bytes,5,opt,name=proxy,proto3" json:"proxy,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Api string `protobuf:"bytes,2,opt,name=api,proto3" json:"api,omitempty"` - Param []*Pair `protobuf:"bytes,3,rep,name=param,proto3" json:"param,omitempty"` - Spec *APISpec `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"` - Proxy *ProxyConfig `protobuf:"bytes,5,opt,name=proxy,proto3" json:"proxy,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TestSuite) Reset() { *x = TestSuite{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestSuite) String() string { @@ -452,7 +543,7 @@ func (*TestSuite) ProtoMessage() {} func (x *TestSuite) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -503,21 +594,18 @@ func (x *TestSuite) GetProxy() *ProxyConfig { } type TestSuiteWithCase struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Suite *TestSuite `protobuf:"bytes,1,opt,name=suite,proto3" json:"suite,omitempty"` + Case *TestCase `protobuf:"bytes,2,opt,name=case,proto3" json:"case,omitempty"` unknownFields protoimpl.UnknownFields - - Suite *TestSuite `protobuf:"bytes,1,opt,name=suite,proto3" json:"suite,omitempty"` - Case *TestCase `protobuf:"bytes,2,opt,name=case,proto3" json:"case,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TestSuiteWithCase) Reset() { *x = TestSuiteWithCase{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestSuiteWithCase) String() string { @@ -528,7 +616,7 @@ func (*TestSuiteWithCase) ProtoMessage() {} func (x *TestSuiteWithCase) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -558,23 +646,20 @@ func (x *TestSuiteWithCase) GetCase() *TestCase { } type APISpec struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` + Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` + Rpc *RPC `protobuf:"bytes,3,opt,name=rpc,proto3" json:"rpc,omitempty"` + Secure *Secure `protobuf:"bytes,4,opt,name=secure,proto3" json:"secure,omitempty"` unknownFields protoimpl.UnknownFields - - Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` - Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` - Rpc *RPC `protobuf:"bytes,3,opt,name=rpc,proto3" json:"rpc,omitempty"` - Secure *Secure `protobuf:"bytes,4,opt,name=secure,proto3" json:"secure,omitempty"` + sizeCache protoimpl.SizeCache } func (x *APISpec) Reset() { *x = APISpec{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *APISpec) String() string { @@ -585,7 +670,7 @@ func (*APISpec) ProtoMessage() {} func (x *APISpec) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -629,24 +714,21 @@ func (x *APISpec) GetSecure() *Secure { } type Secure struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Insecure bool `protobuf:"varint,1,opt,name=insecure,proto3" json:"insecure,omitempty"` + Cert string `protobuf:"bytes,2,opt,name=cert,proto3" json:"cert,omitempty"` + Ca string `protobuf:"bytes,3,opt,name=ca,proto3" json:"ca,omitempty"` + ServerName string `protobuf:"bytes,4,opt,name=serverName,proto3" json:"serverName,omitempty"` + Key string `protobuf:"bytes,5,opt,name=key,proto3" json:"key,omitempty"` unknownFields protoimpl.UnknownFields - - Insecure bool `protobuf:"varint,1,opt,name=insecure,proto3" json:"insecure,omitempty"` - Cert string `protobuf:"bytes,2,opt,name=cert,proto3" json:"cert,omitempty"` - Ca string `protobuf:"bytes,3,opt,name=ca,proto3" json:"ca,omitempty"` - ServerName string `protobuf:"bytes,4,opt,name=serverName,proto3" json:"serverName,omitempty"` - Key string `protobuf:"bytes,5,opt,name=key,proto3" json:"key,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Secure) Reset() { *x = Secure{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Secure) String() string { @@ -657,7 +739,7 @@ func (*Secure) ProtoMessage() {} func (x *Secure) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -708,24 +790,21 @@ func (x *Secure) GetKey() string { } type RPC struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Import []string `protobuf:"bytes,1,rep,name=import,proto3" json:"import,omitempty"` - ServerReflection bool `protobuf:"varint,2,opt,name=serverReflection,proto3" json:"serverReflection,omitempty"` - Protofile string `protobuf:"bytes,3,opt,name=protofile,proto3" json:"protofile,omitempty"` - Protoset string `protobuf:"bytes,4,opt,name=protoset,proto3" json:"protoset,omitempty"` - Raw string `protobuf:"bytes,5,opt,name=raw,proto3" json:"raw,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Import []string `protobuf:"bytes,1,rep,name=import,proto3" json:"import,omitempty"` + ServerReflection bool `protobuf:"varint,2,opt,name=serverReflection,proto3" json:"serverReflection,omitempty"` + Protofile string `protobuf:"bytes,3,opt,name=protofile,proto3" json:"protofile,omitempty"` + Protoset string `protobuf:"bytes,4,opt,name=protoset,proto3" json:"protoset,omitempty"` + Raw string `protobuf:"bytes,5,opt,name=raw,proto3" json:"raw,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RPC) Reset() { *x = RPC{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RPC) String() string { @@ -736,7 +815,7 @@ func (*RPC) ProtoMessage() {} func (x *RPC) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -787,22 +866,19 @@ func (x *RPC) GetRaw() string { } type TestSuiteIdentity struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Api string `protobuf:"bytes,2,opt,name=api,proto3" json:"api,omitempty"` + Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Api string `protobuf:"bytes,2,opt,name=api,proto3" json:"api,omitempty"` - Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TestSuiteIdentity) Reset() { *x = TestSuiteIdentity{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestSuiteIdentity) String() string { @@ -813,7 +889,7 @@ func (*TestSuiteIdentity) ProtoMessage() {} func (x *TestSuiteIdentity) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -850,21 +926,18 @@ func (x *TestSuiteIdentity) GetKind() string { } type TestSuiteDuplicate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SourceSuiteName string `protobuf:"bytes,1,opt,name=sourceSuiteName,proto3" json:"sourceSuiteName,omitempty"` - TargetSuiteName string `protobuf:"bytes,2,opt,name=targetSuiteName,proto3" json:"targetSuiteName,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SourceSuiteName string `protobuf:"bytes,1,opt,name=sourceSuiteName,proto3" json:"sourceSuiteName,omitempty"` + TargetSuiteName string `protobuf:"bytes,2,opt,name=targetSuiteName,proto3" json:"targetSuiteName,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TestSuiteDuplicate) Reset() { *x = TestSuiteDuplicate{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestSuiteDuplicate) String() string { @@ -875,7 +948,7 @@ func (*TestSuiteDuplicate) ProtoMessage() {} func (x *TestSuiteDuplicate) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -905,23 +978,20 @@ func (x *TestSuiteDuplicate) GetTargetSuiteName() string { } type TestCaseDuplicate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SourceSuiteName string `protobuf:"bytes,1,opt,name=sourceSuiteName,proto3" json:"sourceSuiteName,omitempty"` - SourceCaseName string `protobuf:"bytes,2,opt,name=sourceCaseName,proto3" json:"sourceCaseName,omitempty"` - TargetSuiteName string `protobuf:"bytes,3,opt,name=targetSuiteName,proto3" json:"targetSuiteName,omitempty"` - TargetCaseName string `protobuf:"bytes,4,opt,name=targetCaseName,proto3" json:"targetCaseName,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SourceSuiteName string `protobuf:"bytes,1,opt,name=sourceSuiteName,proto3" json:"sourceSuiteName,omitempty"` + SourceCaseName string `protobuf:"bytes,2,opt,name=sourceCaseName,proto3" json:"sourceCaseName,omitempty"` + TargetSuiteName string `protobuf:"bytes,3,opt,name=targetSuiteName,proto3" json:"targetSuiteName,omitempty"` + TargetCaseName string `protobuf:"bytes,4,opt,name=targetCaseName,proto3" json:"targetCaseName,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TestCaseDuplicate) Reset() { *x = TestCaseDuplicate{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestCaseDuplicate) String() string { @@ -932,7 +1002,7 @@ func (*TestCaseDuplicate) ProtoMessage() {} func (x *TestCaseDuplicate) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -976,25 +1046,22 @@ func (x *TestCaseDuplicate) GetTargetCaseName() string { } type TestTask struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` + CaseName string `protobuf:"bytes,3,opt,name=caseName,proto3" json:"caseName,omitempty"` + Level string `protobuf:"bytes,4,opt,name=level,proto3" json:"level,omitempty"` + Env map[string]string `protobuf:"bytes,5,rep,name=env,proto3" json:"env,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + Parameters []*Pair `protobuf:"bytes,6,rep,name=parameters,proto3" json:"parameters,omitempty"` unknownFields protoimpl.UnknownFields - - Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` - CaseName string `protobuf:"bytes,3,opt,name=caseName,proto3" json:"caseName,omitempty"` - Level string `protobuf:"bytes,4,opt,name=level,proto3" json:"level,omitempty"` - Env map[string]string `protobuf:"bytes,5,rep,name=env,proto3" json:"env,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Parameters []*Pair `protobuf:"bytes,6,rep,name=parameters,proto3" json:"parameters,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TestTask) Reset() { *x = TestTask{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestTask) String() string { @@ -1005,7 +1072,7 @@ func (*TestTask) ProtoMessage() {} func (x *TestTask) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1063,24 +1130,21 @@ func (x *TestTask) GetParameters() []*Pair { } type BatchTestTask struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + SuiteName string `protobuf:"bytes,1,opt,name=suiteName,proto3" json:"suiteName,omitempty"` + CaseName string `protobuf:"bytes,2,opt,name=caseName,proto3" json:"caseName,omitempty"` + Parameters []*Pair `protobuf:"bytes,3,rep,name=parameters,proto3" json:"parameters,omitempty"` + Count int32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` + Interval string `protobuf:"bytes,5,opt,name=interval,proto3" json:"interval,omitempty"` unknownFields protoimpl.UnknownFields - - SuiteName string `protobuf:"bytes,1,opt,name=suiteName,proto3" json:"suiteName,omitempty"` - CaseName string `protobuf:"bytes,2,opt,name=caseName,proto3" json:"caseName,omitempty"` - Parameters []*Pair `protobuf:"bytes,3,rep,name=parameters,proto3" json:"parameters,omitempty"` - Count int32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` - Interval string `protobuf:"bytes,5,opt,name=interval,proto3" json:"interval,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BatchTestTask) Reset() { *x = BatchTestTask{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BatchTestTask) String() string { @@ -1091,7 +1155,7 @@ func (*BatchTestTask) ProtoMessage() {} func (x *BatchTestTask) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1142,22 +1206,19 @@ func (x *BatchTestTask) GetInterval() string { } type TestResult struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - TestCaseResult []*TestCaseResult `protobuf:"bytes,3,rep,name=testCaseResult,proto3" json:"testCaseResult,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + TestCaseResult []*TestCaseResult `protobuf:"bytes,3,rep,name=testCaseResult,proto3" json:"testCaseResult,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TestResult) Reset() { *x = TestResult{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestResult) String() string { @@ -1168,7 +1229,7 @@ func (*TestResult) ProtoMessage() {} func (x *TestResult) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1205,24 +1266,21 @@ func (x *TestResult) GetTestCaseResult() []*TestCaseResult { } type HistoryTestResult struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` TestCaseResult []*TestCaseResult `protobuf:"bytes,3,rep,name=testCaseResult,proto3" json:"testCaseResult,omitempty"` Data *HistoryTestCase `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=createTime,proto3" json:"createTime,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *HistoryTestResult) Reset() { *x = HistoryTestResult{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HistoryTestResult) String() string { @@ -1233,7 +1291,7 @@ func (*HistoryTestResult) ProtoMessage() {} func (x *HistoryTestResult) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1284,21 +1342,18 @@ func (x *HistoryTestResult) GetCreateTime() *timestamppb.Timestamp { } type HelloReply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` unknownFields protoimpl.UnknownFields - - Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + sizeCache protoimpl.SizeCache } func (x *HelloReply) Reset() { *x = HelloReply{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HelloReply) String() string { @@ -1309,7 +1364,7 @@ func (*HelloReply) ProtoMessage() {} func (x *HelloReply) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1339,20 +1394,17 @@ func (x *HelloReply) GetError() string { } type YamlData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *YamlData) Reset() { *x = YamlData{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *YamlData) String() string { @@ -1363,7 +1415,7 @@ func (*YamlData) ProtoMessage() {} func (x *YamlData) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1386,22 +1438,19 @@ func (x *YamlData) GetData() []byte { } type Suite struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Api string `protobuf:"bytes,2,opt,name=api,proto3" json:"api,omitempty"` + Items []*TestCase `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Api string `protobuf:"bytes,2,opt,name=api,proto3" json:"api,omitempty"` - Items []*TestCase `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Suite) Reset() { *x = Suite{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Suite) String() string { @@ -1412,7 +1461,7 @@ func (*Suite) ProtoMessage() {} func (x *Suite) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1449,21 +1498,18 @@ func (x *Suite) GetItems() []*TestCase { } type TestCaseWithSuite struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + SuiteName string `protobuf:"bytes,1,opt,name=suiteName,proto3" json:"suiteName,omitempty"` + Data *TestCase `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - SuiteName string `protobuf:"bytes,1,opt,name=suiteName,proto3" json:"suiteName,omitempty"` - Data *TestCase `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TestCaseWithSuite) Reset() { *x = TestCaseWithSuite{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestCaseWithSuite) String() string { @@ -1474,7 +1520,7 @@ func (*TestCaseWithSuite) ProtoMessage() {} func (x *TestCaseWithSuite) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1504,20 +1550,17 @@ func (x *TestCaseWithSuite) GetData() *TestCase { } type TestCases struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data []*TestCase `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Data []*TestCase `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TestCases) Reset() { *x = TestCases{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestCases) String() string { @@ -1528,7 +1571,7 @@ func (*TestCases) ProtoMessage() {} func (x *TestCases) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1551,24 +1594,21 @@ func (x *TestCases) GetData() []*TestCase { } type TestCase struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + SuiteName string `protobuf:"bytes,2,opt,name=suiteName,proto3" json:"suiteName,omitempty"` + Request *Request `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"` + Response *Response `protobuf:"bytes,4,opt,name=response,proto3" json:"response,omitempty"` + Server string `protobuf:"bytes,5,opt,name=server,proto3" json:"server,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - SuiteName string `protobuf:"bytes,2,opt,name=suiteName,proto3" json:"suiteName,omitempty"` - Request *Request `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"` - Response *Response `protobuf:"bytes,4,opt,name=response,proto3" json:"response,omitempty"` - Server string `protobuf:"bytes,5,opt,name=server,proto3" json:"server,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TestCase) Reset() { *x = TestCase{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestCase) String() string { @@ -1579,7 +1619,7 @@ func (*TestCase) ProtoMessage() {} func (x *TestCase) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1630,10 +1670,7 @@ func (x *TestCase) GetServer() string { } type HistoryTestCase struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` CaseName string `protobuf:"bytes,1,opt,name=caseName,proto3" json:"caseName,omitempty"` SuiteName string `protobuf:"bytes,2,opt,name=suiteName,proto3" json:"suiteName,omitempty"` HistorySuiteName string `protobuf:"bytes,3,opt,name=historySuiteName,proto3" json:"historySuiteName,omitempty"` @@ -1645,15 +1682,15 @@ type HistoryTestCase struct { Response *Response `protobuf:"bytes,9,opt,name=response,proto3" json:"response,omitempty"` ID string `protobuf:"bytes,10,opt,name=ID,proto3" json:"ID,omitempty"` HistoryHeader []*Pair `protobuf:"bytes,11,rep,name=historyHeader,proto3" json:"historyHeader,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *HistoryTestCase) Reset() { *x = HistoryTestCase{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HistoryTestCase) String() string { @@ -1664,7 +1701,7 @@ func (*HistoryTestCase) ProtoMessage() {} func (x *HistoryTestCase) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1757,20 +1794,17 @@ func (x *HistoryTestCase) GetHistoryHeader() []*Pair { } type HistoryTestCases struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data []*HistoryTestCase `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Data []*HistoryTestCase `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *HistoryTestCases) Reset() { *x = HistoryTestCases{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HistoryTestCases) String() string { @@ -1781,7 +1815,7 @@ func (*HistoryTestCases) ProtoMessage() {} func (x *HistoryTestCases) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1804,26 +1838,23 @@ func (x *HistoryTestCases) GetData() []*HistoryTestCase { } type Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` + Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` + Header []*Pair `protobuf:"bytes,3,rep,name=header,proto3" json:"header,omitempty"` + Query []*Pair `protobuf:"bytes,4,rep,name=query,proto3" json:"query,omitempty"` + Cookie []*Pair `protobuf:"bytes,5,rep,name=cookie,proto3" json:"cookie,omitempty"` + Form []*Pair `protobuf:"bytes,6,rep,name=form,proto3" json:"form,omitempty"` + Body string `protobuf:"bytes,7,opt,name=body,proto3" json:"body,omitempty"` unknownFields protoimpl.UnknownFields - - Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` - Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` - Header []*Pair `protobuf:"bytes,3,rep,name=header,proto3" json:"header,omitempty"` - Query []*Pair `protobuf:"bytes,4,rep,name=query,proto3" json:"query,omitempty"` - Cookie []*Pair `protobuf:"bytes,5,rep,name=cookie,proto3" json:"cookie,omitempty"` - Form []*Pair `protobuf:"bytes,6,rep,name=form,proto3" json:"form,omitempty"` - Body string `protobuf:"bytes,7,opt,name=body,proto3" json:"body,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Request) Reset() { *x = Request{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Request) String() string { @@ -1834,7 +1865,7 @@ func (*Request) ProtoMessage() {} func (x *Request) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1899,26 +1930,23 @@ func (x *Request) GetBody() string { } type Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StatusCode int32 `protobuf:"varint,1,opt,name=statusCode,proto3" json:"statusCode,omitempty"` - Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` - Header []*Pair `protobuf:"bytes,3,rep,name=header,proto3" json:"header,omitempty"` - BodyFieldsExpect []*Pair `protobuf:"bytes,4,rep,name=bodyFieldsExpect,proto3" json:"bodyFieldsExpect,omitempty"` - Verify []string `protobuf:"bytes,5,rep,name=verify,proto3" json:"verify,omitempty"` - ConditionalVerify []*ConditionalVerify `protobuf:"bytes,6,rep,name=ConditionalVerify,proto3" json:"ConditionalVerify,omitempty"` - Schema string `protobuf:"bytes,7,opt,name=schema,proto3" json:"schema,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + StatusCode int32 `protobuf:"varint,1,opt,name=statusCode,proto3" json:"statusCode,omitempty"` + Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` + Header []*Pair `protobuf:"bytes,3,rep,name=header,proto3" json:"header,omitempty"` + BodyFieldsExpect []*Pair `protobuf:"bytes,4,rep,name=bodyFieldsExpect,proto3" json:"bodyFieldsExpect,omitempty"` + Verify []string `protobuf:"bytes,5,rep,name=verify,proto3" json:"verify,omitempty"` + ConditionalVerify []*ConditionalVerify `protobuf:"bytes,6,rep,name=ConditionalVerify,proto3" json:"ConditionalVerify,omitempty"` + Schema string `protobuf:"bytes,7,opt,name=schema,proto3" json:"schema,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Response) Reset() { *x = Response{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Response) String() string { @@ -1929,7 +1957,7 @@ func (*Response) ProtoMessage() {} func (x *Response) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1994,21 +2022,18 @@ func (x *Response) GetSchema() string { } type ConditionalVerify struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Condition []string `protobuf:"bytes,1,rep,name=condition,proto3" json:"condition,omitempty"` + Verify []string `protobuf:"bytes,2,rep,name=verify,proto3" json:"verify,omitempty"` unknownFields protoimpl.UnknownFields - - Condition []string `protobuf:"bytes,1,rep,name=condition,proto3" json:"condition,omitempty"` - Verify []string `protobuf:"bytes,2,rep,name=verify,proto3" json:"verify,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ConditionalVerify) Reset() { *x = ConditionalVerify{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ConditionalVerify) String() string { @@ -2019,7 +2044,7 @@ func (*ConditionalVerify) ProtoMessage() {} func (x *ConditionalVerify) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2049,25 +2074,22 @@ func (x *ConditionalVerify) GetVerify() []string { } type TestCaseResult struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + StatusCode int32 `protobuf:"varint,1,opt,name=statusCode,proto3" json:"statusCode,omitempty"` + Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` + Header []*Pair `protobuf:"bytes,3,rep,name=header,proto3" json:"header,omitempty"` + Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` + Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"` + Output string `protobuf:"bytes,6,opt,name=output,proto3" json:"output,omitempty"` unknownFields protoimpl.UnknownFields - - StatusCode int32 `protobuf:"varint,1,opt,name=statusCode,proto3" json:"statusCode,omitempty"` - Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` - Header []*Pair `protobuf:"bytes,3,rep,name=header,proto3" json:"header,omitempty"` - Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` - Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"` - Output string `protobuf:"bytes,6,opt,name=output,proto3" json:"output,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TestCaseResult) Reset() { *x = TestCaseResult{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestCaseResult) String() string { @@ -2078,7 +2100,7 @@ func (*TestCaseResult) ProtoMessage() {} func (x *TestCaseResult) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2136,22 +2158,19 @@ func (x *TestCaseResult) GetOutput() string { } type Pair struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` unknownFields protoimpl.UnknownFields - - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Pair) Reset() { *x = Pair{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Pair) String() string { @@ -2162,7 +2181,7 @@ func (*Pair) ProtoMessage() {} func (x *Pair) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2199,20 +2218,17 @@ func (x *Pair) GetDescription() string { } type Pairs struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data []*Pair `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Data []*Pair `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Pairs) Reset() { *x = Pairs{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Pairs) String() string { @@ -2223,7 +2239,7 @@ func (*Pairs) ProtoMessage() {} func (x *Pairs) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2246,21 +2262,18 @@ func (x *Pairs) GetData() []*Pair { } type SimpleQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SimpleQuery) Reset() { *x = SimpleQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SimpleQuery) String() string { @@ -2271,7 +2284,7 @@ func (*SimpleQuery) ProtoMessage() {} func (x *SimpleQuery) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2301,20 +2314,17 @@ func (x *SimpleQuery) GetKind() string { } type Stores struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data []*Store `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Data []*Store `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Stores) Reset() { *x = Stores{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Stores) String() string { @@ -2325,7 +2335,7 @@ func (*Stores) ProtoMessage() {} func (x *Stores) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2348,30 +2358,27 @@ func (x *Stores) GetData() []*Store { } type Store struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` + Username string `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"` + Password string `protobuf:"bytes,6,opt,name=password,proto3" json:"password,omitempty"` + Properties []*Pair `protobuf:"bytes,7,rep,name=properties,proto3" json:"properties,omitempty"` + Kind *StoreKind `protobuf:"bytes,8,opt,name=kind,proto3" json:"kind,omitempty"` + Ready bool `protobuf:"varint,9,opt,name=ready,proto3" json:"ready,omitempty"` + ReadOnly bool `protobuf:"varint,10,opt,name=readOnly,proto3" json:"readOnly,omitempty"` + Disabled bool `protobuf:"varint,11,opt,name=disabled,proto3" json:"disabled,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` - Username string `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"` - Password string `protobuf:"bytes,6,opt,name=password,proto3" json:"password,omitempty"` - Properties []*Pair `protobuf:"bytes,7,rep,name=properties,proto3" json:"properties,omitempty"` - Kind *StoreKind `protobuf:"bytes,8,opt,name=kind,proto3" json:"kind,omitempty"` - Ready bool `protobuf:"varint,9,opt,name=ready,proto3" json:"ready,omitempty"` - ReadOnly bool `protobuf:"varint,10,opt,name=readOnly,proto3" json:"readOnly,omitempty"` - Disabled bool `protobuf:"varint,11,opt,name=disabled,proto3" json:"disabled,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Store) Reset() { *x = Store{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Store) String() string { @@ -2382,7 +2389,7 @@ func (*Store) ProtoMessage() {} func (x *Store) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2475,20 +2482,17 @@ func (x *Store) GetDisabled() bool { } type StoreKinds struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data []*StoreKind `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Data []*StoreKind `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *StoreKinds) Reset() { *x = StoreKinds{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StoreKinds) String() string { @@ -2499,7 +2503,7 @@ func (*StoreKinds) ProtoMessage() {} func (x *StoreKinds) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2522,22 +2526,19 @@ func (x *StoreKinds) GetData() []*StoreKind { } type StoreKind struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` + Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` - Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"` + sizeCache protoimpl.SizeCache } func (x *StoreKind) Reset() { *x = StoreKind{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StoreKind) String() string { @@ -2548,7 +2549,7 @@ func (*StoreKind) ProtoMessage() {} func (x *StoreKind) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2585,21 +2586,18 @@ func (x *StoreKind) GetEnabled() bool { } type CommonResult struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` unknownFields protoimpl.UnknownFields - - Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CommonResult) Reset() { *x = CommonResult{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CommonResult) String() string { @@ -2610,7 +2608,7 @@ func (*CommonResult) ProtoMessage() {} func (x *CommonResult) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[38] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2640,20 +2638,17 @@ func (x *CommonResult) GetMessage() string { } type SimpleList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data []*Pair `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Data []*Pair `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SimpleList) Reset() { *x = SimpleList{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SimpleList) String() string { @@ -2664,7 +2659,7 @@ func (*SimpleList) ProtoMessage() {} func (x *SimpleList) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[39] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2687,20 +2682,17 @@ func (x *SimpleList) GetData() []*Pair { } type SimpleName struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SimpleName) Reset() { *x = SimpleName{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SimpleName) String() string { @@ -2711,7 +2703,7 @@ func (*SimpleName) ProtoMessage() {} func (x *SimpleName) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[40] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2734,23 +2726,20 @@ func (x *SimpleName) GetName() string { } type CodeGenerateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TestSuite string `protobuf:"bytes,1,opt,name=TestSuite,proto3" json:"TestSuite,omitempty"` + TestCase string `protobuf:"bytes,2,opt,name=TestCase,proto3" json:"TestCase,omitempty"` + Generator string `protobuf:"bytes,3,opt,name=Generator,proto3" json:"Generator,omitempty"` + ID string `protobuf:"bytes,4,opt,name=ID,proto3" json:"ID,omitempty"` unknownFields protoimpl.UnknownFields - - TestSuite string `protobuf:"bytes,1,opt,name=TestSuite,proto3" json:"TestSuite,omitempty"` - TestCase string `protobuf:"bytes,2,opt,name=TestCase,proto3" json:"TestCase,omitempty"` - Generator string `protobuf:"bytes,3,opt,name=Generator,proto3" json:"Generator,omitempty"` - ID string `protobuf:"bytes,4,opt,name=ID,proto3" json:"ID,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CodeGenerateRequest) Reset() { *x = CodeGenerateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CodeGenerateRequest) String() string { @@ -2761,7 +2750,7 @@ func (*CodeGenerateRequest) ProtoMessage() {} func (x *CodeGenerateRequest) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[41] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2805,20 +2794,17 @@ func (x *CodeGenerateRequest) GetID() string { } type Secrets struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data []*Secret `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Data []*Secret `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Secrets) Reset() { *x = Secrets{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Secrets) String() string { @@ -2829,7 +2815,7 @@ func (*Secrets) ProtoMessage() {} func (x *Secrets) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[42] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2852,22 +2838,19 @@ func (x *Secrets) GetData() []*Secret { } type Secret struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` + Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"` + Description string `protobuf:"bytes,3,opt,name=Description,proto3" json:"Description,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` - Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"` - Description string `protobuf:"bytes,3,opt,name=Description,proto3" json:"Description,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Secret) Reset() { *x = Secret{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Secret) String() string { @@ -2878,7 +2861,7 @@ func (*Secret) ProtoMessage() {} func (x *Secret) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[43] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2915,23 +2898,20 @@ func (x *Secret) GetDescription() string { } type ExtensionStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Ready bool `protobuf:"varint,1,opt,name=ready,proto3" json:"ready,omitempty"` + ReadOnly bool `protobuf:"varint,2,opt,name=readOnly,proto3" json:"readOnly,omitempty"` + Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` unknownFields protoimpl.UnknownFields - - Ready bool `protobuf:"varint,1,opt,name=ready,proto3" json:"ready,omitempty"` - ReadOnly bool `protobuf:"varint,2,opt,name=readOnly,proto3" json:"readOnly,omitempty"` - Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` - Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ExtensionStatus) Reset() { *x = ExtensionStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExtensionStatus) String() string { @@ -2942,7 +2922,7 @@ func (*ExtensionStatus) ProtoMessage() {} func (x *ExtensionStatus) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[44] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2986,20 +2966,17 @@ func (x *ExtensionStatus) GetMessage() string { } type PProfRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PProfRequest) Reset() { *x = PProfRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[45] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PProfRequest) String() string { @@ -3010,7 +2987,7 @@ func (*PProfRequest) ProtoMessage() {} func (x *PProfRequest) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[45] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3033,20 +3010,17 @@ func (x *PProfRequest) GetName() string { } type PProfData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PProfData) Reset() { *x = PProfData{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PProfData) String() string { @@ -3057,7 +3031,7 @@ func (*PProfData) ProtoMessage() {} func (x *PProfData) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[46] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3080,22 +3054,19 @@ func (x *PProfData) GetData() []byte { } type FileData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + ContentType string `protobuf:"bytes,2,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` + Filename string `protobuf:"bytes,3,opt,name=filename,proto3" json:"filename,omitempty"` unknownFields protoimpl.UnknownFields - - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - ContentType string `protobuf:"bytes,2,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` - Filename string `protobuf:"bytes,3,opt,name=filename,proto3" json:"filename,omitempty"` + sizeCache protoimpl.SizeCache } func (x *FileData) Reset() { *x = FileData{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[47] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FileData) String() string { @@ -3106,7 +3077,7 @@ func (*FileData) ProtoMessage() {} func (x *FileData) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[47] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3143,18 +3114,16 @@ func (x *FileData) GetFilename() string { } type Empty struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Empty) Reset() { *x = Empty{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[48] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Empty) String() string { @@ -3165,7 +3134,7 @@ func (*Empty) ProtoMessage() {} func (x *Empty) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[48] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3181,22 +3150,19 @@ func (*Empty) Descriptor() ([]byte, []int) { } type MockConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Prefix string `protobuf:"bytes,1,opt,name=Prefix,proto3" json:"Prefix,omitempty"` + Config string `protobuf:"bytes,2,opt,name=Config,proto3" json:"Config,omitempty"` + Port int32 `protobuf:"varint,3,opt,name=Port,proto3" json:"Port,omitempty"` unknownFields protoimpl.UnknownFields - - Prefix string `protobuf:"bytes,1,opt,name=Prefix,proto3" json:"Prefix,omitempty"` - Config string `protobuf:"bytes,2,opt,name=Config,proto3" json:"Config,omitempty"` - Port int32 `protobuf:"varint,3,opt,name=Port,proto3" json:"Port,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MockConfig) Reset() { *x = MockConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[49] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MockConfig) String() string { @@ -3207,7 +3173,7 @@ func (*MockConfig) ProtoMessage() {} func (x *MockConfig) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[49] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3244,22 +3210,19 @@ func (x *MockConfig) GetPort() int32 { } type Version struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + Commit string `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"` + Date string `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"` unknownFields protoimpl.UnknownFields - - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - Commit string `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"` - Date string `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Version) Reset() { *x = Version{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[50] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Version) String() string { @@ -3270,7 +3233,7 @@ func (*Version) ProtoMessage() {} func (x *Version) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[50] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3307,22 +3270,19 @@ func (x *Version) GetDate() string { } type ProxyConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Http string `protobuf:"bytes,1,opt,name=http,proto3" json:"http,omitempty"` // HTTP proxy URL + Https string `protobuf:"bytes,2,opt,name=https,proto3" json:"https,omitempty"` // HTTPS proxy URL + No string `protobuf:"bytes,3,opt,name=no,proto3" json:"no,omitempty"` // Comma-separated list of hosts to exclude from proxying unknownFields protoimpl.UnknownFields - - Http string `protobuf:"bytes,1,opt,name=http,proto3" json:"http,omitempty"` // HTTP proxy URL - Https string `protobuf:"bytes,2,opt,name=https,proto3" json:"https,omitempty"` // HTTPS proxy URL - No string `protobuf:"bytes,3,opt,name=no,proto3" json:"no,omitempty"` // Comma-separated list of hosts to exclude from proxying + sizeCache protoimpl.SizeCache } func (x *ProxyConfig) Reset() { *x = ProxyConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[51] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ProxyConfig) String() string { @@ -3333,7 +3293,7 @@ func (*ProxyConfig) ProtoMessage() {} func (x *ProxyConfig) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[51] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3370,24 +3330,21 @@ func (x *ProxyConfig) GetNo() string { } type DataQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Sql string `protobuf:"bytes,3,opt,name=sql,proto3" json:"sql,omitempty"` + Offset int64 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"` + Limit int64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` unknownFields protoimpl.UnknownFields - - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - Sql string `protobuf:"bytes,3,opt,name=sql,proto3" json:"sql,omitempty"` - Offset int64 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"` - Limit int64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DataQuery) Reset() { *x = DataQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[52] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[52] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DataQuery) String() string { @@ -3398,7 +3355,7 @@ func (*DataQuery) ProtoMessage() {} func (x *DataQuery) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[52] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3449,22 +3406,19 @@ func (x *DataQuery) GetLimit() int64 { } type DataQueryResult struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data []*Pair `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + Items []*Pairs `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` + Meta *DataMeta `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"` unknownFields protoimpl.UnknownFields - - Data []*Pair `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` - Items []*Pairs `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` - Meta *DataMeta `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DataQueryResult) Reset() { *x = DataQueryResult{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[53] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DataQueryResult) String() string { @@ -3475,7 +3429,7 @@ func (*DataQueryResult) ProtoMessage() {} func (x *DataQueryResult) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[53] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3512,24 +3466,21 @@ func (x *DataQueryResult) GetMeta() *DataMeta { } type DataMeta struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Databases []string `protobuf:"bytes,1,rep,name=databases,proto3" json:"databases,omitempty"` - Tables []string `protobuf:"bytes,2,rep,name=tables,proto3" json:"tables,omitempty"` - CurrentDatabase string `protobuf:"bytes,3,opt,name=currentDatabase,proto3" json:"currentDatabase,omitempty"` - Duration string `protobuf:"bytes,4,opt,name=duration,proto3" json:"duration,omitempty"` - Labels []*Pair `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Databases []string `protobuf:"bytes,1,rep,name=databases,proto3" json:"databases,omitempty"` + Tables []string `protobuf:"bytes,2,rep,name=tables,proto3" json:"tables,omitempty"` + CurrentDatabase string `protobuf:"bytes,3,opt,name=currentDatabase,proto3" json:"currentDatabase,omitempty"` + Duration string `protobuf:"bytes,4,opt,name=duration,proto3" json:"duration,omitempty"` + Labels []*Pair `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DataMeta) Reset() { *x = DataMeta{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_server_server_proto_msgTypes[54] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_server_server_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DataMeta) String() string { @@ -3540,7 +3491,7 @@ func (*DataMeta) ProtoMessage() {} func (x *DataMeta) ProtoReflect() protoreflect.Message { mi := &file_pkg_server_server_proto_msgTypes[54] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3590,1691 +3541,1326 @@ func (x *DataMeta) GetLabels() []*Pair { return nil } -var File_pkg_server_server_proto protoreflect.FileDescriptor +// Represents an example pair of natural language to SQL for few-shot prompting. +type QueryExample struct { + state protoimpl.MessageState `protogen:"open.v1"` + // A natural language query example. + NaturalLanguagePrompt string `protobuf:"bytes,1,opt,name=naturalLanguagePrompt,proto3" json:"naturalLanguagePrompt,omitempty"` + // The corresponding correct SQL query for the prompt. + SqlQuery string `protobuf:"bytes,2,opt,name=sqlQuery,proto3" json:"sqlQuery,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} -var file_pkg_server_server_proto_rawDesc = []byte{ - 0x0a, 0x17, 0x70, 0x6b, 0x67, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x73, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, - 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0x7e, 0x0a, 0x06, 0x53, 0x75, 0x69, 0x74, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x04, 0x64, 0x61, - 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x2e, 0x53, 0x75, 0x69, 0x74, 0x65, 0x73, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x46, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, - 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, - 0x22, 0x2f, 0x0a, 0x05, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, - 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, - 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, - 0x64, 0x22, 0x93, 0x01, 0x0a, 0x0d, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x75, 0x69, - 0x74, 0x65, 0x73, 0x12, 0x33, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x1f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, - 0x72, 0x79, 0x53, 0x75, 0x69, 0x74, 0x65, 0x73, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x4d, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, - 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x3f, 0x0a, 0x0c, 0x48, 0x69, 0x73, 0x74, 0x6f, - 0x72, 0x79, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x2f, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x48, - 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x43, 0x61, 0x73, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x97, 0x01, 0x0a, 0x13, 0x48, 0x69, 0x73, - 0x74, 0x6f, 0x72, 0x79, 0x43, 0x61, 0x73, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, - 0x12, 0x14, 0x0a, 0x05, 0x73, 0x75, 0x69, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x73, 0x75, 0x69, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x65, 0x73, 0x74, 0x63, 0x61, - 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x65, 0x73, 0x74, 0x63, 0x61, - 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x10, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x75, 0x69, - 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x68, 0x69, - 0x73, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x75, 0x69, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, - 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, - 0x6e, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x49, 0x44, 0x22, 0x72, 0x0a, 0x10, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x49, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x75, 0x69, 0x74, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x75, 0x69, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, - 0x74, 0x65, 0x73, 0x74, 0x63, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x74, 0x65, 0x73, 0x74, 0x63, 0x61, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, - 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x69, 0x72, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, - 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x22, 0x4b, 0x0a, 0x0f, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, - 0x69, 0x74, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x10, 0x0a, - 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, - 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, - 0x61, 0x74, 0x61, 0x22, 0xa5, 0x01, 0x0a, 0x09, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, - 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x70, 0x69, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x61, 0x70, 0x69, 0x12, 0x22, 0x0a, 0x05, 0x70, 0x61, 0x72, 0x61, 0x6d, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, - 0x50, 0x61, 0x69, 0x72, 0x52, 0x05, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x23, 0x0a, 0x04, 0x73, - 0x70, 0x65, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x2e, 0x41, 0x50, 0x49, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, - 0x12, 0x29, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x13, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x22, 0x62, 0x0a, 0x11, 0x54, - 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x57, 0x69, 0x74, 0x68, 0x43, 0x61, 0x73, 0x65, - 0x12, 0x27, 0x0a, 0x05, 0x73, 0x75, 0x69, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x11, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, - 0x74, 0x65, 0x52, 0x05, 0x73, 0x75, 0x69, 0x74, 0x65, 0x12, 0x24, 0x0a, 0x04, 0x63, 0x61, 0x73, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x52, 0x04, 0x63, 0x61, 0x73, 0x65, 0x22, - 0x76, 0x0a, 0x07, 0x41, 0x50, 0x49, 0x53, 0x70, 0x65, 0x63, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, - 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x10, - 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, - 0x12, 0x1d, 0x0a, 0x03, 0x72, 0x70, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x52, 0x50, 0x43, 0x52, 0x03, 0x72, 0x70, 0x63, 0x12, - 0x26, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x0e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x65, 0x52, - 0x06, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x22, 0x7a, 0x0a, 0x06, 0x53, 0x65, 0x63, 0x75, 0x72, - 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x12, 0x12, 0x0a, - 0x04, 0x63, 0x65, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x65, 0x72, - 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x63, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x63, - 0x61, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6b, 0x65, 0x79, 0x22, 0x95, 0x01, 0x0a, 0x03, 0x52, 0x50, 0x43, 0x12, 0x16, 0x0a, 0x06, 0x69, - 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x69, 0x6d, 0x70, - 0x6f, 0x72, 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x66, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x1a, 0x0a, - 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x65, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x61, 0x77, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x72, 0x61, 0x77, 0x22, 0x4d, 0x0a, 0x11, 0x54, - 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x70, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x61, 0x70, 0x69, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x68, 0x0a, 0x12, 0x54, 0x65, - 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, - 0x12, 0x28, 0x0a, 0x0f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x75, 0x69, 0x74, 0x65, 0x4e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x53, 0x75, 0x69, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x74, 0x61, - 0x72, 0x67, 0x65, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xb7, 0x01, 0x0a, 0x11, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, - 0x65, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x53, 0x75, 0x69, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x75, 0x69, 0x74, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x61, - 0x73, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x43, 0x61, 0x73, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x0f, - 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x75, 0x69, - 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x43, 0x61, 0x73, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, - 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x43, 0x61, 0x73, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xf7, - 0x01, 0x0a, 0x08, 0x54, 0x65, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x64, - 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, - 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, - 0x69, 0x6e, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x73, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x73, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x2b, 0x0a, 0x03, 0x65, 0x6e, 0x76, 0x18, 0x05, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, - 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x45, 0x6e, 0x76, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x03, 0x65, - 0x6e, 0x76, 0x12, 0x2c, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, - 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, - 0x50, 0x61, 0x69, 0x72, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, - 0x1a, 0x36, 0x0a, 0x08, 0x45, 0x6e, 0x76, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa9, 0x01, 0x0a, 0x0d, 0x42, 0x61, 0x74, - 0x63, 0x68, 0x54, 0x65, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x75, - 0x69, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, - 0x75, 0x69, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x73, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x73, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2c, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, - 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x2e, 0x50, 0x61, 0x69, 0x72, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, - 0x72, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, - 0x72, 0x76, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, - 0x72, 0x76, 0x61, 0x6c, 0x22, 0x7c, 0x0a, 0x0a, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, - 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, - 0x6f, 0x72, 0x12, 0x3e, 0x0a, 0x0e, 0x74, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x52, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x52, 0x0e, 0x74, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x22, 0xec, 0x01, 0x0a, 0x11, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, - 0x73, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x3e, 0x0a, 0x0e, 0x74, 0x65, 0x73, 0x74, - 0x43, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x16, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, - 0x73, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x0e, 0x74, 0x65, 0x73, 0x74, 0x43, 0x61, - 0x73, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x2b, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, - 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x52, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3a, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, - 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, - 0x65, 0x22, 0x3c, 0x0a, 0x0a, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, - 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, - 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, - 0x1e, 0x0a, 0x08, 0x59, 0x61, 0x6d, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x64, - 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, - 0x55, 0x0a, 0x05, 0x53, 0x75, 0x69, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, - 0x61, 0x70, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x61, 0x70, 0x69, 0x12, 0x26, - 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x52, - 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x57, 0x0a, 0x11, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, - 0x73, 0x65, 0x57, 0x69, 0x74, 0x68, 0x53, 0x75, 0x69, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, - 0x75, 0x69, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x73, 0x75, 0x69, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x04, 0x64, 0x61, 0x74, - 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, - 0x31, 0x0a, 0x09, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x73, 0x12, 0x24, 0x0a, 0x04, - 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x73, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x52, 0x04, 0x64, 0x61, - 0x74, 0x61, 0x22, 0xad, 0x01, 0x0a, 0x08, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x75, 0x69, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x75, 0x69, 0x74, 0x65, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x29, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x08, - 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, - 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x22, 0xc9, 0x03, 0x0a, 0x0f, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, - 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x73, 0x65, 0x4e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x73, 0x65, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x75, 0x69, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x75, 0x69, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x2a, 0x0a, 0x10, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x75, 0x69, 0x74, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x68, 0x69, 0x73, 0x74, - 0x6f, 0x72, 0x79, 0x53, 0x75, 0x69, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x0a, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2c, 0x0a, 0x0a, 0x73, 0x75, 0x69, 0x74, - 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x69, 0x72, 0x52, 0x0a, 0x73, 0x75, 0x69, 0x74, - 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x2d, 0x0a, 0x09, 0x73, 0x75, 0x69, 0x74, 0x65, 0x53, - 0x70, 0x65, 0x63, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x2e, 0x41, 0x50, 0x49, 0x53, 0x70, 0x65, 0x63, 0x52, 0x09, 0x73, 0x75, 0x69, 0x74, - 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x75, 0x69, 0x74, 0x65, 0x41, 0x70, - 0x69, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x75, 0x69, 0x74, 0x65, 0x41, 0x70, - 0x69, 0x12, 0x29, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x08, - 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, - 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, - 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x49, 0x44, 0x12, 0x32, 0x0a, 0x0d, 0x68, 0x69, - 0x73, 0x74, 0x6f, 0x72, 0x79, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x0b, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x0c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x69, 0x72, 0x52, - 0x0d, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0x3f, - 0x0a, 0x10, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, - 0x65, 0x73, 0x12, 0x2b, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x17, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, - 0x79, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, - 0xd9, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x61, - 0x70, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x61, 0x70, 0x69, 0x12, 0x16, 0x0a, - 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, - 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x24, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, - 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, - 0x61, 0x69, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x22, 0x0a, 0x05, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x73, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x69, 0x72, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, - 0x24, 0x0a, 0x06, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x0c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x69, 0x72, 0x52, 0x06, 0x63, - 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x12, 0x20, 0x0a, 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x06, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x69, - 0x72, 0x52, 0x04, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x22, 0x97, 0x02, 0x0a, 0x08, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x24, 0x0a, 0x06, - 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x69, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x12, 0x38, 0x0a, 0x10, 0x62, 0x6f, 0x64, 0x79, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, - 0x45, 0x78, 0x70, 0x65, 0x63, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x69, 0x72, 0x52, 0x10, 0x62, 0x6f, 0x64, 0x79, - 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, 0x78, 0x70, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, - 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 0x65, - 0x72, 0x69, 0x66, 0x79, 0x12, 0x47, 0x0a, 0x11, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, - 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x11, 0x43, 0x6f, 0x6e, 0x64, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x16, 0x0a, - 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x49, 0x0a, 0x11, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, - 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x63, - 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x65, 0x72, 0x69, - 0x66, 0x79, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, - 0x22, 0xa8, 0x01, 0x0a, 0x0e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, - 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x24, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x2e, 0x50, 0x61, 0x69, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, - 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, - 0x72, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x22, 0x50, 0x0a, 0x04, 0x50, - 0x61, 0x69, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, - 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x29, 0x0a, - 0x05, 0x50, 0x61, 0x69, 0x72, 0x73, 0x12, 0x20, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x61, - 0x69, 0x72, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x35, 0x0a, 0x0b, 0x53, 0x69, 0x6d, 0x70, - 0x6c, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6b, - 0x69, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, - 0x2b, 0x0a, 0x06, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x04, 0x64, 0x61, 0x74, - 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xc0, 0x02, 0x0a, - 0x05, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, - 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, - 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x2c, 0x0a, 0x0a, - 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x0c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x69, 0x72, 0x52, 0x0a, - 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x04, 0x6b, 0x69, - 0x6e, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x04, 0x6b, 0x69, 0x6e, - 0x64, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65, 0x61, 0x64, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x05, 0x72, 0x65, 0x61, 0x64, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4f, - 0x6e, 0x6c, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4f, - 0x6e, 0x6c, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, - 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, - 0x33, 0x0a, 0x0a, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x73, 0x12, 0x25, 0x0a, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x04, - 0x64, 0x61, 0x74, 0x61, 0x22, 0x4b, 0x0a, 0x09, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x4b, 0x69, 0x6e, - 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, - 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x64, 0x22, 0x42, 0x0a, 0x0c, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x2e, 0x0a, 0x0a, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4c, - 0x69, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x0c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x69, 0x72, 0x52, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x20, 0x0a, 0x0a, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x7d, 0x0a, 0x13, 0x43, 0x6f, 0x64, 0x65, 0x47, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, - 0x0a, 0x09, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, - 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x47, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x47, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x49, 0x44, 0x22, 0x2d, 0x0a, 0x07, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, - 0x73, 0x12, 0x22, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x0e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x54, 0x0a, 0x06, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, - 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x44, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x77, 0x0a, 0x0f, 0x45, - 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, - 0x0a, 0x05, 0x72, 0x65, 0x61, 0x64, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x72, - 0x65, 0x61, 0x64, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, - 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x22, 0x22, 0x0a, 0x0c, 0x50, 0x50, 0x72, 0x6f, 0x66, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x1f, 0x0a, 0x09, 0x50, 0x50, 0x72, 0x6f, - 0x66, 0x44, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x5d, 0x0a, 0x08, 0x46, 0x69, 0x6c, - 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, - 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, - 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x07, 0x0a, 0x05, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x22, 0x50, 0x0a, 0x0a, 0x4d, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, - 0x16, 0x0a, 0x06, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x16, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, - 0x12, 0x0a, 0x04, 0x50, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x50, - 0x6f, 0x72, 0x74, 0x22, 0x4f, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x18, - 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, - 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, - 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x64, 0x61, 0x74, 0x65, 0x22, 0x47, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x74, 0x74, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x68, 0x74, 0x74, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x68, 0x74, 0x74, 0x70, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x68, 0x74, 0x74, 0x70, 0x73, 0x12, 0x0e, 0x0a, - 0x02, 0x6e, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x6e, 0x6f, 0x22, 0x71, 0x0a, - 0x09, 0x44, 0x61, 0x74, 0x61, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x12, 0x10, 0x0a, 0x03, 0x73, 0x71, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, - 0x71, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, - 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, - 0x22, 0x7e, 0x0a, 0x0f, 0x44, 0x61, 0x74, 0x61, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x12, 0x20, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x0c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x69, 0x72, 0x52, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x23, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x61, - 0x69, 0x72, 0x73, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x24, 0x0a, 0x04, 0x6d, 0x65, - 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, - 0x22, 0xac, 0x01, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x61, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x1c, 0x0a, - 0x09, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x09, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x73, 0x12, 0x28, 0x0a, 0x0f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x44, 0x61, - 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x75, - 0x72, 0x72, 0x65, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x1a, 0x0a, - 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x0a, 0x06, 0x6c, 0x61, 0x62, - 0x65, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x2e, 0x50, 0x61, 0x69, 0x72, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x32, - 0x9e, 0x25, 0x0a, 0x06, 0x52, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x12, 0x43, 0x0a, 0x03, 0x52, 0x75, - 0x6e, 0x12, 0x10, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x54, - 0x61, 0x73, 0x6b, 0x1a, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, - 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x16, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x10, 0x22, - 0x0b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x75, 0x6e, 0x3a, 0x01, 0x2a, 0x12, - 0x5f, 0x0a, 0x0c, 0x52, 0x75, 0x6e, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x12, - 0x19, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, - 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x1a, 0x12, 0x2e, 0x73, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x1c, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x22, 0x11, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, - 0x72, 0x75, 0x6e, 0x2f, 0x73, 0x75, 0x69, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x28, 0x01, 0x30, 0x01, - 0x12, 0x42, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x73, 0x12, 0x0d, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x0e, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x75, 0x69, 0x74, 0x65, 0x73, 0x22, 0x16, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x10, 0x12, 0x0e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, - 0x69, 0x74, 0x65, 0x73, 0x12, 0x5b, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, - 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x12, 0x19, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x2e, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x1a, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x48, 0x65, 0x6c, 0x6c, - 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x22, 0x0e, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, 0x69, 0x74, 0x65, 0x73, 0x3a, 0x01, - 0x2a, 0x12, 0x62, 0x0a, 0x0f, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x65, 0x73, 0x74, 0x53, - 0x75, 0x69, 0x74, 0x65, 0x12, 0x17, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, - 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x14, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x22, 0x15, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, 0x69, 0x74, 0x65, 0x73, 0x2f, 0x69, 0x6d, 0x70, 0x6f, - 0x72, 0x74, 0x3a, 0x01, 0x2a, 0x12, 0x5b, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x54, 0x65, 0x73, 0x74, - 0x53, 0x75, 0x69, 0x74, 0x65, 0x12, 0x19, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, - 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, - 0x1a, 0x11, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, - 0x69, 0x74, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, 0x69, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, - 0x65, 0x7d, 0x12, 0x5a, 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x73, 0x74, - 0x53, 0x75, 0x69, 0x74, 0x65, 0x12, 0x11, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, - 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x1a, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x20, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x1a, 0x1a, 0x15, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, - 0x69, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x5f, - 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, - 0x65, 0x12, 0x19, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x53, - 0x75, 0x69, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x1a, 0x12, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, - 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x2a, 0x15, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, - 0x31, 0x2f, 0x73, 0x75, 0x69, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, - 0x7b, 0x0a, 0x12, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x54, 0x65, 0x73, 0x74, - 0x53, 0x75, 0x69, 0x74, 0x65, 0x12, 0x1a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, - 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, - 0x65, 0x1a, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, - 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x35, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x22, 0x2a, 0x2f, - 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, 0x69, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x75, 0x69, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, - 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x75, 0x0a, 0x0f, - 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x12, - 0x1a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, - 0x74, 0x65, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x1a, 0x12, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, - 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x22, 0x27, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, - 0x2f, 0x73, 0x75, 0x69, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, - 0x75, 0x69, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, - 0x3a, 0x01, 0x2a, 0x12, 0x63, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, - 0x69, 0x74, 0x65, 0x59, 0x61, 0x6d, 0x6c, 0x12, 0x19, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x2e, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x1a, 0x10, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x59, 0x61, 0x6d, 0x6c, - 0x44, 0x61, 0x74, 0x61, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, 0x69, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x6e, 0x61, - 0x6d, 0x65, 0x7d, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x12, 0x5d, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, - 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x12, 0x19, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x1a, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x75, 0x69, - 0x74, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, 0x69, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, - 0x7d, 0x2f, 0x63, 0x61, 0x73, 0x65, 0x73, 0x12, 0x77, 0x0a, 0x0b, 0x52, 0x75, 0x6e, 0x54, 0x65, - 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x12, 0x18, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, - 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, - 0x1a, 0x16, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, - 0x73, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, - 0x22, 0x2b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, 0x69, 0x74, 0x65, 0x73, - 0x2f, 0x7b, 0x73, 0x75, 0x69, 0x74, 0x65, 0x7d, 0x2f, 0x63, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x7b, - 0x74, 0x65, 0x73, 0x74, 0x63, 0x61, 0x73, 0x65, 0x7d, 0x2f, 0x72, 0x75, 0x6e, 0x3a, 0x01, 0x2a, - 0x12, 0x56, 0x0a, 0x08, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x75, 0x6e, 0x12, 0x15, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x54, 0x65, 0x73, 0x74, 0x54, - 0x61, 0x73, 0x6b, 0x1a, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, - 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x22, - 0x10, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x52, 0x75, - 0x6e, 0x3a, 0x01, 0x2a, 0x28, 0x01, 0x30, 0x01, 0x12, 0x6a, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x54, - 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x12, 0x18, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x79, 0x1a, 0x10, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, - 0x61, 0x73, 0x65, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x12, 0x27, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, 0x69, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x75, 0x69, - 0x74, 0x65, 0x7d, 0x2f, 0x63, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x74, 0x65, 0x73, 0x74, 0x63, - 0x61, 0x73, 0x65, 0x7d, 0x12, 0x6c, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, - 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x12, 0x19, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, - 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x57, 0x69, 0x74, 0x68, 0x53, 0x75, 0x69, 0x74, - 0x65, 0x1a, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, - 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x22, 0x20, 0x2f, - 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, 0x69, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x73, - 0x75, 0x69, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x63, 0x61, 0x73, 0x65, 0x73, 0x3a, - 0x01, 0x2a, 0x12, 0x78, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x73, 0x74, - 0x43, 0x61, 0x73, 0x65, 0x12, 0x19, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, - 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x57, 0x69, 0x74, 0x68, 0x53, 0x75, 0x69, 0x74, 0x65, 0x1a, - 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, - 0x70, 0x6c, 0x79, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x1a, 0x2c, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, 0x69, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x75, 0x69, - 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x63, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x6f, 0x0a, 0x0e, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x12, 0x18, - 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, - 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x1a, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x2f, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x29, 0x2a, 0x27, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, - 0x69, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x75, 0x69, 0x74, 0x65, 0x7d, 0x2f, 0x63, 0x61, 0x73, - 0x65, 0x73, 0x2f, 0x7b, 0x74, 0x65, 0x73, 0x74, 0x63, 0x61, 0x73, 0x65, 0x7d, 0x12, 0x90, 0x01, - 0x0a, 0x11, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x54, 0x65, 0x73, 0x74, 0x43, - 0x61, 0x73, 0x65, 0x12, 0x19, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, - 0x74, 0x43, 0x61, 0x73, 0x65, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x1a, 0x12, - 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, - 0x6c, 0x79, 0x22, 0x4c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x46, 0x22, 0x41, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, 0x69, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x53, 0x75, 0x69, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x63, 0x61, 0x73, - 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x61, 0x73, 0x65, 0x4e, 0x61, - 0x6d, 0x65, 0x7d, 0x2f, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, - 0x12, 0x8a, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x65, 0x73, 0x74, 0x43, - 0x61, 0x73, 0x65, 0x12, 0x19, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, - 0x74, 0x43, 0x61, 0x73, 0x65, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x1a, 0x12, - 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, - 0x6c, 0x79, 0x22, 0x49, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x43, 0x22, 0x3e, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, 0x69, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x53, 0x75, 0x69, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x63, 0x61, 0x73, - 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x61, 0x73, 0x65, 0x4e, 0x61, - 0x6d, 0x65, 0x7d, 0x2f, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x5f, 0x0a, - 0x10, 0x47, 0x65, 0x74, 0x53, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x65, 0x64, 0x41, 0x50, 0x49, - 0x73, 0x12, 0x19, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x53, - 0x75, 0x69, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x1a, 0x11, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x73, 0x22, - 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, - 0x2f, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x65, 0x64, 0x41, 0x50, 0x49, 0x73, 0x12, 0x57, - 0x0a, 0x10, 0x47, 0x65, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x75, 0x69, 0x74, - 0x65, 0x73, 0x12, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x1a, 0x15, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, - 0x72, 0x79, 0x53, 0x75, 0x69, 0x74, 0x65, 0x73, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, - 0x22, 0x15, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, - 0x79, 0x53, 0x75, 0x69, 0x74, 0x65, 0x73, 0x12, 0x82, 0x01, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x48, - 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x57, 0x69, - 0x74, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x17, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, - 0x65, 0x1a, 0x19, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, - 0x72, 0x79, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x2e, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x69, - 0x73, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x57, 0x69, 0x74, - 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2f, 0x7b, 0x49, 0x44, 0x7d, 0x12, 0x6c, 0x0a, 0x12, - 0x47, 0x65, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, - 0x73, 0x65, 0x12, 0x17, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x48, 0x69, 0x73, 0x74, - 0x6f, 0x72, 0x79, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x1a, 0x17, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, 0x73, 0x74, - 0x43, 0x61, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, 0x73, - 0x74, 0x43, 0x61, 0x73, 0x65, 0x2f, 0x7b, 0x49, 0x44, 0x7d, 0x12, 0x6a, 0x0a, 0x15, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, 0x73, 0x74, 0x43, - 0x61, 0x73, 0x65, 0x12, 0x17, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x48, 0x69, 0x73, - 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x1a, 0x12, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, - 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x2a, 0x1c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, - 0x31, 0x2f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, - 0x65, 0x2f, 0x7b, 0x49, 0x44, 0x7d, 0x12, 0x83, 0x01, 0x0a, 0x18, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x41, 0x6c, 0x6c, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, 0x73, 0x74, 0x43, - 0x61, 0x73, 0x65, 0x12, 0x17, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x48, 0x69, 0x73, - 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x1a, 0x12, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, - 0x22, 0x3a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x2a, 0x32, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, - 0x31, 0x2f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x75, 0x69, 0x74, 0x65, 0x73, 0x2f, - 0x7b, 0x73, 0x75, 0x69, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x63, 0x61, 0x73, 0x65, - 0x73, 0x2f, 0x7b, 0x63, 0x61, 0x73, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x74, 0x0a, 0x15, - 0x47, 0x65, 0x74, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x41, 0x6c, 0x6c, 0x48, 0x69, - 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x10, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, - 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x1a, 0x18, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, - 0x73, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x22, 0x27, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x76, 0x31, 0x2f, 0x73, 0x75, 0x69, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x75, 0x69, 0x74, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x63, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, - 0x65, 0x7d, 0x12, 0x56, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x47, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, - 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x18, 0x12, 0x16, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x64, 0x65, - 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x6d, 0x0a, 0x0c, 0x47, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x2e, 0x73, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x2a, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x22, 0x1f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, - 0x6f, 0x64, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x67, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x7c, 0x0a, 0x13, 0x48, 0x69, 0x73, - 0x74, 0x6f, 0x72, 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x64, 0x65, - 0x12, 0x1b, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x47, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x22, 0x27, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x6f, 0x72, 0x73, 0x2f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x67, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x4e, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x43, - 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x72, 0x12, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x1a, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x14, 0x12, 0x12, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, - 0x76, 0x65, 0x72, 0x74, 0x65, 0x72, 0x73, 0x12, 0x6c, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x76, 0x65, - 0x72, 0x74, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x12, 0x1b, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x25, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x22, 0x1a, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, - 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x65, - 0x72, 0x74, 0x3a, 0x01, 0x2a, 0x12, 0x4e, 0x0a, 0x0e, 0x50, 0x6f, 0x70, 0x75, 0x6c, 0x61, 0x72, - 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, - 0x50, 0x61, 0x69, 0x72, 0x73, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, - 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x70, 0x75, 0x6c, 0x61, 0x72, 0x48, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x4f, 0x0a, 0x0e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x13, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x0d, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x69, 0x72, 0x73, 0x22, 0x19, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x13, 0x12, 0x11, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x66, 0x75, 0x6e, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x5e, 0x0a, 0x14, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x13, - 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x1a, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x69, - 0x72, 0x73, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x76, 0x31, 0x2f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x28, 0x01, 0x30, 0x01, 0x12, 0x45, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x45, 0x6d, - 0x70, 0x74, 0x79, 0x1a, 0x0f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x56, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x17, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x12, 0x0f, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x43, 0x0a, - 0x06, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, - 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x16, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x10, 0x12, 0x0e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x61, 0x6d, 0x70, - 0x6c, 0x65, 0x12, 0x68, 0x0a, 0x14, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x10, 0x2e, 0x73, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x1a, 0x10, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x22, 0x2c, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x12, 0x24, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, - 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x2f, 0x7b, 0x72, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x62, 0x6f, 0x64, 0x79, 0x7d, 0x12, 0x50, 0x0a, 0x0d, - 0x47, 0x65, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x73, 0x12, 0x0d, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x12, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x73, - 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, - 0x31, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x73, 0x2f, 0x6b, 0x69, 0x6e, 0x64, 0x73, 0x12, 0x42, - 0x0a, 0x09, 0x47, 0x65, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x73, 0x12, 0x0d, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x0e, 0x2e, 0x73, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x73, 0x22, 0x16, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x10, 0x12, 0x0e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x74, 0x6f, 0x72, - 0x65, 0x73, 0x12, 0x46, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x74, 0x6f, 0x72, - 0x65, 0x12, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, - 0x1a, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x22, - 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x22, 0x0e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, - 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x73, 0x3a, 0x01, 0x2a, 0x12, 0x4d, 0x0a, 0x0b, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x1a, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x1a, - 0x15, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x73, 0x2f, - 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x4a, 0x0a, 0x0b, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x1a, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x2a, 0x15, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x73, 0x2f, 0x7b, - 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x5d, 0x0a, 0x0b, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, - 0x74, 0x6f, 0x72, 0x65, 0x12, 0x13, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x69, - 0x6d, 0x70, 0x6c, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x17, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x22, 0x15, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x69, 0x66, - 0x79, 0x3a, 0x01, 0x2a, 0x12, 0x45, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, - 0x74, 0x73, 0x12, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x1a, 0x0f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, - 0x74, 0x73, 0x22, 0x17, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x12, 0x0f, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0x50, 0x0a, 0x0c, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x0e, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x1a, 0x14, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x22, 0x0f, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x76, 0x31, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x3a, 0x01, 0x2a, 0x12, 0x54, 0x0a, - 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x0e, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x1a, 0x14, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x2a, 0x16, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2f, 0x7b, 0x4e, 0x61, - 0x6d, 0x65, 0x7d, 0x12, 0x57, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x63, - 0x72, 0x65, 0x74, 0x12, 0x0e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x63, - 0x72, 0x65, 0x74, 0x1a, 0x14, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6d, - 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x1b, 0x1a, 0x16, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, - 0x74, 0x73, 0x2f, 0x7b, 0x4e, 0x61, 0x6d, 0x65, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x32, 0x0a, 0x05, - 0x50, 0x50, 0x72, 0x6f, 0x66, 0x12, 0x14, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, - 0x50, 0x72, 0x6f, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x50, 0x72, 0x6f, 0x66, 0x44, 0x61, 0x74, 0x61, 0x22, 0x00, - 0x32, 0x6b, 0x0a, 0x0f, 0x52, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, - 0x69, 0x6f, 0x6e, 0x12, 0x58, 0x0a, 0x03, 0x52, 0x75, 0x6e, 0x12, 0x19, 0x2e, 0x73, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x57, 0x69, 0x74, - 0x68, 0x43, 0x61, 0x73, 0x65, 0x1a, 0x14, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x43, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x20, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x1a, 0x22, 0x15, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x78, 0x74, - 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x72, 0x75, 0x6e, 0x3a, 0x01, 0x2a, 0x32, 0xd2, 0x02, - 0x0a, 0x0e, 0x54, 0x68, 0x65, 0x6d, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, - 0x12, 0x46, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x54, 0x68, 0x65, 0x6d, 0x65, 0x73, 0x12, 0x0d, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x12, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, - 0x22, 0x16, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x10, 0x12, 0x0e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, - 0x31, 0x2f, 0x74, 0x68, 0x65, 0x6d, 0x65, 0x73, 0x12, 0x53, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x54, - 0x68, 0x65, 0x6d, 0x65, 0x12, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x69, - 0x6d, 0x70, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x14, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x1d, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, - 0x74, 0x68, 0x65, 0x6d, 0x65, 0x73, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x4a, 0x0a, - 0x0b, 0x47, 0x65, 0x74, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x0d, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x12, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x22, - 0x18, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x12, 0x10, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, - 0x2f, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x57, 0x0a, 0x0a, 0x47, 0x65, 0x74, - 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x14, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x12, 0x17, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x76, 0x31, 0x2f, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, - 0x65, 0x7d, 0x32, 0xa0, 0x01, 0x0a, 0x04, 0x4d, 0x6f, 0x63, 0x6b, 0x12, 0x4b, 0x0a, 0x06, 0x52, - 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x4d, - 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, - 0x22, 0x13, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x6f, 0x63, 0x6b, 0x2f, 0x72, - 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x3a, 0x01, 0x2a, 0x12, 0x4b, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x45, - 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x4d, 0x6f, - 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, - 0x12, 0x13, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x6f, 0x63, 0x6b, 0x2f, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x32, 0x60, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x12, 0x52, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x11, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x51, 0x75, 0x65, 0x72, 0x79, 0x1a, - 0x17, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, - 0x22, 0x12, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x3a, 0x01, 0x2a, 0x42, 0x2e, 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x73, 0x75, 0x72, 0x65, 0x6e, - 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x6b, 0x67, - 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func (x *QueryExample) Reset() { + *x = QueryExample{} + mi := &file_pkg_server_server_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -var ( - file_pkg_server_server_proto_rawDescOnce sync.Once - file_pkg_server_server_proto_rawDescData = file_pkg_server_server_proto_rawDesc -) +func (x *QueryExample) String() string { + return protoimpl.X.MessageStringOf(x) +} -func file_pkg_server_server_proto_rawDescGZIP() []byte { - file_pkg_server_server_proto_rawDescOnce.Do(func() { - file_pkg_server_server_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_server_server_proto_rawDescData) - }) - return file_pkg_server_server_proto_rawDescData +func (*QueryExample) ProtoMessage() {} + +func (x *QueryExample) ProtoReflect() protoreflect.Message { + mi := &file_pkg_server_server_proto_msgTypes[55] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var file_pkg_server_server_proto_msgTypes = make([]protoimpl.MessageInfo, 58) -var file_pkg_server_server_proto_goTypes = []interface{}{ - (*Suites)(nil), // 0: server.Suites - (*Items)(nil), // 1: server.Items - (*HistorySuites)(nil), // 2: server.HistorySuites - (*HistoryItems)(nil), // 3: server.HistoryItems - (*HistoryCaseIdentity)(nil), // 4: server.HistoryCaseIdentity - (*TestCaseIdentity)(nil), // 5: server.TestCaseIdentity - (*TestSuiteSource)(nil), // 6: server.TestSuiteSource - (*TestSuite)(nil), // 7: server.TestSuite - (*TestSuiteWithCase)(nil), // 8: server.TestSuiteWithCase - (*APISpec)(nil), // 9: server.APISpec - (*Secure)(nil), // 10: server.Secure - (*RPC)(nil), // 11: server.RPC - (*TestSuiteIdentity)(nil), // 12: server.TestSuiteIdentity - (*TestSuiteDuplicate)(nil), // 13: server.TestSuiteDuplicate - (*TestCaseDuplicate)(nil), // 14: server.TestCaseDuplicate - (*TestTask)(nil), // 15: server.TestTask - (*BatchTestTask)(nil), // 16: server.BatchTestTask - (*TestResult)(nil), // 17: server.TestResult - (*HistoryTestResult)(nil), // 18: server.HistoryTestResult - (*HelloReply)(nil), // 19: server.HelloReply - (*YamlData)(nil), // 20: server.YamlData - (*Suite)(nil), // 21: server.Suite - (*TestCaseWithSuite)(nil), // 22: server.TestCaseWithSuite - (*TestCases)(nil), // 23: server.TestCases - (*TestCase)(nil), // 24: server.TestCase - (*HistoryTestCase)(nil), // 25: server.HistoryTestCase - (*HistoryTestCases)(nil), // 26: server.HistoryTestCases - (*Request)(nil), // 27: server.Request - (*Response)(nil), // 28: server.Response - (*ConditionalVerify)(nil), // 29: server.ConditionalVerify - (*TestCaseResult)(nil), // 30: server.TestCaseResult - (*Pair)(nil), // 31: server.Pair - (*Pairs)(nil), // 32: server.Pairs - (*SimpleQuery)(nil), // 33: server.SimpleQuery - (*Stores)(nil), // 34: server.Stores - (*Store)(nil), // 35: server.Store - (*StoreKinds)(nil), // 36: server.StoreKinds - (*StoreKind)(nil), // 37: server.StoreKind - (*CommonResult)(nil), // 38: server.CommonResult - (*SimpleList)(nil), // 39: server.SimpleList - (*SimpleName)(nil), // 40: server.SimpleName - (*CodeGenerateRequest)(nil), // 41: server.CodeGenerateRequest - (*Secrets)(nil), // 42: server.Secrets - (*Secret)(nil), // 43: server.Secret - (*ExtensionStatus)(nil), // 44: server.ExtensionStatus - (*PProfRequest)(nil), // 45: server.PProfRequest - (*PProfData)(nil), // 46: server.PProfData - (*FileData)(nil), // 47: server.FileData - (*Empty)(nil), // 48: server.Empty - (*MockConfig)(nil), // 49: server.MockConfig - (*Version)(nil), // 50: server.Version - (*ProxyConfig)(nil), // 51: server.ProxyConfig - (*DataQuery)(nil), // 52: server.DataQuery - (*DataQueryResult)(nil), // 53: server.DataQueryResult - (*DataMeta)(nil), // 54: server.DataMeta - nil, // 55: server.Suites.DataEntry - nil, // 56: server.HistorySuites.DataEntry - nil, // 57: server.TestTask.EnvEntry - (*timestamppb.Timestamp)(nil), // 58: google.protobuf.Timestamp +// Deprecated: Use QueryExample.ProtoReflect.Descriptor instead. +func (*QueryExample) Descriptor() ([]byte, []int) { + return file_pkg_server_server_proto_rawDescGZIP(), []int{55} } -var file_pkg_server_server_proto_depIdxs = []int32{ - 55, // 0: server.Suites.data:type_name -> server.Suites.DataEntry - 56, // 1: server.HistorySuites.data:type_name -> server.HistorySuites.DataEntry - 4, // 2: server.HistoryItems.data:type_name -> server.HistoryCaseIdentity - 31, // 3: server.TestCaseIdentity.parameters:type_name -> server.Pair - 31, // 4: server.TestSuite.param:type_name -> server.Pair - 9, // 5: server.TestSuite.spec:type_name -> server.APISpec - 51, // 6: server.TestSuite.proxy:type_name -> server.ProxyConfig - 7, // 7: server.TestSuiteWithCase.suite:type_name -> server.TestSuite - 24, // 8: server.TestSuiteWithCase.case:type_name -> server.TestCase - 11, // 9: server.APISpec.rpc:type_name -> server.RPC - 10, // 10: server.APISpec.secure:type_name -> server.Secure - 57, // 11: server.TestTask.env:type_name -> server.TestTask.EnvEntry - 31, // 12: server.TestTask.parameters:type_name -> server.Pair - 31, // 13: server.BatchTestTask.parameters:type_name -> server.Pair - 30, // 14: server.TestResult.testCaseResult:type_name -> server.TestCaseResult - 30, // 15: server.HistoryTestResult.testCaseResult:type_name -> server.TestCaseResult - 25, // 16: server.HistoryTestResult.data:type_name -> server.HistoryTestCase - 58, // 17: server.HistoryTestResult.createTime:type_name -> google.protobuf.Timestamp - 24, // 18: server.Suite.items:type_name -> server.TestCase - 24, // 19: server.TestCaseWithSuite.data:type_name -> server.TestCase - 24, // 20: server.TestCases.data:type_name -> server.TestCase - 27, // 21: server.TestCase.request:type_name -> server.Request - 28, // 22: server.TestCase.response:type_name -> server.Response - 58, // 23: server.HistoryTestCase.createTime:type_name -> google.protobuf.Timestamp - 31, // 24: server.HistoryTestCase.suiteParam:type_name -> server.Pair - 9, // 25: server.HistoryTestCase.suiteSpec:type_name -> server.APISpec - 27, // 26: server.HistoryTestCase.request:type_name -> server.Request - 28, // 27: server.HistoryTestCase.response:type_name -> server.Response - 31, // 28: server.HistoryTestCase.historyHeader:type_name -> server.Pair - 25, // 29: server.HistoryTestCases.data:type_name -> server.HistoryTestCase - 31, // 30: server.Request.header:type_name -> server.Pair - 31, // 31: server.Request.query:type_name -> server.Pair - 31, // 32: server.Request.cookie:type_name -> server.Pair - 31, // 33: server.Request.form:type_name -> server.Pair - 31, // 34: server.Response.header:type_name -> server.Pair - 31, // 35: server.Response.bodyFieldsExpect:type_name -> server.Pair - 29, // 36: server.Response.ConditionalVerify:type_name -> server.ConditionalVerify - 31, // 37: server.TestCaseResult.header:type_name -> server.Pair - 31, // 38: server.Pairs.data:type_name -> server.Pair - 35, // 39: server.Stores.data:type_name -> server.Store - 31, // 40: server.Store.properties:type_name -> server.Pair - 37, // 41: server.Store.kind:type_name -> server.StoreKind - 37, // 42: server.StoreKinds.data:type_name -> server.StoreKind - 31, // 43: server.SimpleList.data:type_name -> server.Pair - 43, // 44: server.Secrets.data:type_name -> server.Secret - 31, // 45: server.DataQueryResult.data:type_name -> server.Pair - 32, // 46: server.DataQueryResult.items:type_name -> server.Pairs - 54, // 47: server.DataQueryResult.meta:type_name -> server.DataMeta - 31, // 48: server.DataMeta.labels:type_name -> server.Pair - 1, // 49: server.Suites.DataEntry.value:type_name -> server.Items - 3, // 50: server.HistorySuites.DataEntry.value:type_name -> server.HistoryItems - 15, // 51: server.Runner.Run:input_type -> server.TestTask - 12, // 52: server.Runner.RunTestSuite:input_type -> server.TestSuiteIdentity - 48, // 53: server.Runner.GetSuites:input_type -> server.Empty - 12, // 54: server.Runner.CreateTestSuite:input_type -> server.TestSuiteIdentity - 6, // 55: server.Runner.ImportTestSuite:input_type -> server.TestSuiteSource - 12, // 56: server.Runner.GetTestSuite:input_type -> server.TestSuiteIdentity - 7, // 57: server.Runner.UpdateTestSuite:input_type -> server.TestSuite - 12, // 58: server.Runner.DeleteTestSuite:input_type -> server.TestSuiteIdentity - 13, // 59: server.Runner.DuplicateTestSuite:input_type -> server.TestSuiteDuplicate - 13, // 60: server.Runner.RenameTestSuite:input_type -> server.TestSuiteDuplicate - 12, // 61: server.Runner.GetTestSuiteYaml:input_type -> server.TestSuiteIdentity - 12, // 62: server.Runner.ListTestCase:input_type -> server.TestSuiteIdentity - 5, // 63: server.Runner.RunTestCase:input_type -> server.TestCaseIdentity - 16, // 64: server.Runner.BatchRun:input_type -> server.BatchTestTask - 5, // 65: server.Runner.GetTestCase:input_type -> server.TestCaseIdentity - 22, // 66: server.Runner.CreateTestCase:input_type -> server.TestCaseWithSuite - 22, // 67: server.Runner.UpdateTestCase:input_type -> server.TestCaseWithSuite - 5, // 68: server.Runner.DeleteTestCase:input_type -> server.TestCaseIdentity - 14, // 69: server.Runner.DuplicateTestCase:input_type -> server.TestCaseDuplicate - 14, // 70: server.Runner.RenameTestCase:input_type -> server.TestCaseDuplicate - 12, // 71: server.Runner.GetSuggestedAPIs:input_type -> server.TestSuiteIdentity - 48, // 72: server.Runner.GetHistorySuites:input_type -> server.Empty - 25, // 73: server.Runner.GetHistoryTestCaseWithResult:input_type -> server.HistoryTestCase - 25, // 74: server.Runner.GetHistoryTestCase:input_type -> server.HistoryTestCase - 25, // 75: server.Runner.DeleteHistoryTestCase:input_type -> server.HistoryTestCase - 25, // 76: server.Runner.DeleteAllHistoryTestCase:input_type -> server.HistoryTestCase - 24, // 77: server.Runner.GetTestCaseAllHistory:input_type -> server.TestCase - 48, // 78: server.Runner.ListCodeGenerator:input_type -> server.Empty - 41, // 79: server.Runner.GenerateCode:input_type -> server.CodeGenerateRequest - 41, // 80: server.Runner.HistoryGenerateCode:input_type -> server.CodeGenerateRequest - 48, // 81: server.Runner.ListConverter:input_type -> server.Empty - 41, // 82: server.Runner.ConvertTestSuite:input_type -> server.CodeGenerateRequest - 48, // 83: server.Runner.PopularHeaders:input_type -> server.Empty - 33, // 84: server.Runner.FunctionsQuery:input_type -> server.SimpleQuery - 33, // 85: server.Runner.FunctionsQueryStream:input_type -> server.SimpleQuery - 48, // 86: server.Runner.GetVersion:input_type -> server.Empty - 48, // 87: server.Runner.Sample:input_type -> server.Empty - 24, // 88: server.Runner.DownloadResponseFile:input_type -> server.TestCase - 48, // 89: server.Runner.GetStoreKinds:input_type -> server.Empty - 48, // 90: server.Runner.GetStores:input_type -> server.Empty - 35, // 91: server.Runner.CreateStore:input_type -> server.Store - 35, // 92: server.Runner.UpdateStore:input_type -> server.Store - 35, // 93: server.Runner.DeleteStore:input_type -> server.Store - 33, // 94: server.Runner.VerifyStore:input_type -> server.SimpleQuery - 48, // 95: server.Runner.GetSecrets:input_type -> server.Empty - 43, // 96: server.Runner.CreateSecret:input_type -> server.Secret - 43, // 97: server.Runner.DeleteSecret:input_type -> server.Secret - 43, // 98: server.Runner.UpdateSecret:input_type -> server.Secret - 45, // 99: server.Runner.PProf:input_type -> server.PProfRequest - 8, // 100: server.RunnerExtension.Run:input_type -> server.TestSuiteWithCase - 48, // 101: server.ThemeExtension.GetThemes:input_type -> server.Empty - 40, // 102: server.ThemeExtension.GetTheme:input_type -> server.SimpleName - 48, // 103: server.ThemeExtension.GetBindings:input_type -> server.Empty - 40, // 104: server.ThemeExtension.GetBinding:input_type -> server.SimpleName - 49, // 105: server.Mock.Reload:input_type -> server.MockConfig - 48, // 106: server.Mock.GetConfig:input_type -> server.Empty - 52, // 107: server.DataServer.Query:input_type -> server.DataQuery - 17, // 108: server.Runner.Run:output_type -> server.TestResult - 17, // 109: server.Runner.RunTestSuite:output_type -> server.TestResult - 0, // 110: server.Runner.GetSuites:output_type -> server.Suites - 19, // 111: server.Runner.CreateTestSuite:output_type -> server.HelloReply - 38, // 112: server.Runner.ImportTestSuite:output_type -> server.CommonResult - 7, // 113: server.Runner.GetTestSuite:output_type -> server.TestSuite - 19, // 114: server.Runner.UpdateTestSuite:output_type -> server.HelloReply - 19, // 115: server.Runner.DeleteTestSuite:output_type -> server.HelloReply - 19, // 116: server.Runner.DuplicateTestSuite:output_type -> server.HelloReply - 19, // 117: server.Runner.RenameTestSuite:output_type -> server.HelloReply - 20, // 118: server.Runner.GetTestSuiteYaml:output_type -> server.YamlData - 21, // 119: server.Runner.ListTestCase:output_type -> server.Suite - 30, // 120: server.Runner.RunTestCase:output_type -> server.TestCaseResult - 17, // 121: server.Runner.BatchRun:output_type -> server.TestResult - 24, // 122: server.Runner.GetTestCase:output_type -> server.TestCase - 19, // 123: server.Runner.CreateTestCase:output_type -> server.HelloReply - 19, // 124: server.Runner.UpdateTestCase:output_type -> server.HelloReply - 19, // 125: server.Runner.DeleteTestCase:output_type -> server.HelloReply - 19, // 126: server.Runner.DuplicateTestCase:output_type -> server.HelloReply - 19, // 127: server.Runner.RenameTestCase:output_type -> server.HelloReply - 23, // 128: server.Runner.GetSuggestedAPIs:output_type -> server.TestCases - 2, // 129: server.Runner.GetHistorySuites:output_type -> server.HistorySuites - 18, // 130: server.Runner.GetHistoryTestCaseWithResult:output_type -> server.HistoryTestResult - 25, // 131: server.Runner.GetHistoryTestCase:output_type -> server.HistoryTestCase - 19, // 132: server.Runner.DeleteHistoryTestCase:output_type -> server.HelloReply - 19, // 133: server.Runner.DeleteAllHistoryTestCase:output_type -> server.HelloReply - 26, // 134: server.Runner.GetTestCaseAllHistory:output_type -> server.HistoryTestCases - 39, // 135: server.Runner.ListCodeGenerator:output_type -> server.SimpleList - 38, // 136: server.Runner.GenerateCode:output_type -> server.CommonResult - 38, // 137: server.Runner.HistoryGenerateCode:output_type -> server.CommonResult - 39, // 138: server.Runner.ListConverter:output_type -> server.SimpleList - 38, // 139: server.Runner.ConvertTestSuite:output_type -> server.CommonResult - 32, // 140: server.Runner.PopularHeaders:output_type -> server.Pairs - 32, // 141: server.Runner.FunctionsQuery:output_type -> server.Pairs - 32, // 142: server.Runner.FunctionsQueryStream:output_type -> server.Pairs - 50, // 143: server.Runner.GetVersion:output_type -> server.Version - 19, // 144: server.Runner.Sample:output_type -> server.HelloReply - 47, // 145: server.Runner.DownloadResponseFile:output_type -> server.FileData - 36, // 146: server.Runner.GetStoreKinds:output_type -> server.StoreKinds - 34, // 147: server.Runner.GetStores:output_type -> server.Stores - 35, // 148: server.Runner.CreateStore:output_type -> server.Store - 35, // 149: server.Runner.UpdateStore:output_type -> server.Store - 35, // 150: server.Runner.DeleteStore:output_type -> server.Store - 44, // 151: server.Runner.VerifyStore:output_type -> server.ExtensionStatus - 42, // 152: server.Runner.GetSecrets:output_type -> server.Secrets - 38, // 153: server.Runner.CreateSecret:output_type -> server.CommonResult - 38, // 154: server.Runner.DeleteSecret:output_type -> server.CommonResult - 38, // 155: server.Runner.UpdateSecret:output_type -> server.CommonResult - 46, // 156: server.Runner.PProf:output_type -> server.PProfData - 38, // 157: server.RunnerExtension.Run:output_type -> server.CommonResult - 39, // 158: server.ThemeExtension.GetThemes:output_type -> server.SimpleList - 38, // 159: server.ThemeExtension.GetTheme:output_type -> server.CommonResult - 39, // 160: server.ThemeExtension.GetBindings:output_type -> server.SimpleList - 38, // 161: server.ThemeExtension.GetBinding:output_type -> server.CommonResult - 48, // 162: server.Mock.Reload:output_type -> server.Empty - 49, // 163: server.Mock.GetConfig:output_type -> server.MockConfig - 53, // 164: server.DataServer.Query:output_type -> server.DataQueryResult - 108, // [108:165] is the sub-list for method output_type - 51, // [51:108] is the sub-list for method input_type - 51, // [51:51] is the sub-list for extension type_name - 51, // [51:51] is the sub-list for extension extendee - 0, // [0:51] is the sub-list for field type_name + +func (x *QueryExample) GetNaturalLanguagePrompt() string { + if x != nil { + return x.NaturalLanguagePrompt + } + return "" } -func init() { file_pkg_server_server_proto_init() } -func file_pkg_server_server_proto_init() { - if File_pkg_server_server_proto != nil { - return +func (x *QueryExample) GetSqlQuery() string { + if x != nil { + return x.SqlQuery } - if !protoimpl.UnsafeEnabled { - file_pkg_server_server_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Suites); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Items); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HistorySuites); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HistoryItems); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HistoryCaseIdentity); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TestCaseIdentity); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TestSuiteSource); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TestSuite); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TestSuiteWithCase); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*APISpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Secure); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RPC); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TestSuiteIdentity); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TestSuiteDuplicate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TestCaseDuplicate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TestTask); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BatchTestTask); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TestResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HistoryTestResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HelloReply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*YamlData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Suite); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TestCaseWithSuite); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TestCases); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TestCase); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HistoryTestCase); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HistoryTestCases); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ConditionalVerify); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TestCaseResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Pair); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Pairs); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SimpleQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } + return "" +} + +// Request message for generating content based on natural language prompts. +type GenerateContentRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + // The user's prompt in natural language. + Prompt string `protobuf:"bytes,1,opt,name=prompt,proto3" json:"prompt,omitempty"` + // The type of content to generate (e.g., "sql", "testcase", "mock"). + ContentType string `protobuf:"bytes,2,opt,name=contentType,proto3" json:"contentType,omitempty"` + // Context information to help with generation. + Context map[string]string `protobuf:"bytes,3,rep,name=context,proto3" json:"context,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + // Optional: A session identifier to maintain context across multiple requests. + SessionId *string `protobuf:"bytes,4,opt,name=sessionId,proto3,oneof" json:"sessionId,omitempty"` + // Optional: Additional parameters specific to the content type. + Parameters map[string]string `protobuf:"bytes,5,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GenerateContentRequest) Reset() { + *x = GenerateContentRequest{} + mi := &file_pkg_server_server_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GenerateContentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenerateContentRequest) ProtoMessage() {} + +func (x *GenerateContentRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_server_server_proto_msgTypes[56] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - file_pkg_server_server_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Stores); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Store); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StoreKinds); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StoreKind); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommonResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SimpleList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SimpleName); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CodeGenerateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Secrets); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Secret); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExtensionStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_server_server_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PProfRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GenerateContentRequest.ProtoReflect.Descriptor instead. +func (*GenerateContentRequest) Descriptor() ([]byte, []int) { + return file_pkg_server_server_proto_rawDescGZIP(), []int{56} +} + +func (x *GenerateContentRequest) GetPrompt() string { + if x != nil { + return x.Prompt + } + return "" +} + +func (x *GenerateContentRequest) GetContentType() string { + if x != nil { + return x.ContentType + } + return "" +} + +func (x *GenerateContentRequest) GetContext() map[string]string { + if x != nil { + return x.Context + } + return nil +} + +func (x *GenerateContentRequest) GetSessionId() string { + if x != nil && x.SessionId != nil { + return *x.SessionId + } + return "" +} + +func (x *GenerateContentRequest) GetParameters() map[string]string { + if x != nil { + return x.Parameters + } + return nil +} + +// Request message for generating an SQL query from natural language. +type GenerateSQLRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + // The user's query in natural language. (e.g., "show me all users from California") + NaturalLanguageInput string `protobuf:"bytes,1,opt,name=naturalLanguageInput,proto3" json:"naturalLanguageInput,omitempty"` + // Target database dialect for SQL generation. + DatabaseType DatabaseType `protobuf:"varint,2,opt,name=databaseType,proto3,enum=server.DatabaseType" json:"databaseType,omitempty"` + // Optional: A list of DDL statements (e.g., CREATE TABLE …) for relevant tables. + // Providing schemas helps the AI generate more accurate queries. + Schemas []string `protobuf:"bytes,3,rep,name=schemas,proto3" json:"schemas,omitempty"` + // Optional: A session identifier to maintain context across multiple requests, + // enabling conversational query refinement. + SessionId *string `protobuf:"bytes,4,opt,name=sessionId,proto3,oneof" json:"sessionId,omitempty"` + // Optional: A list of examples to guide the AI, improving accuracy for + // specific or complex domains. + Examples []*QueryExample `protobuf:"bytes,5,rep,name=examples,proto3" json:"examples,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GenerateSQLRequest) Reset() { + *x = GenerateSQLRequest{} + mi := &file_pkg_server_server_proto_msgTypes[57] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GenerateSQLRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenerateSQLRequest) ProtoMessage() {} + +func (x *GenerateSQLRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_server_server_proto_msgTypes[57] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - file_pkg_server_server_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PProfData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GenerateSQLRequest.ProtoReflect.Descriptor instead. +func (*GenerateSQLRequest) Descriptor() ([]byte, []int) { + return file_pkg_server_server_proto_rawDescGZIP(), []int{57} +} + +func (x *GenerateSQLRequest) GetNaturalLanguageInput() string { + if x != nil { + return x.NaturalLanguageInput + } + return "" +} + +func (x *GenerateSQLRequest) GetDatabaseType() DatabaseType { + if x != nil { + return x.DatabaseType + } + return DatabaseType_DATABASE_TYPE_UNSPECIFIED +} + +func (x *GenerateSQLRequest) GetSchemas() []string { + if x != nil { + return x.Schemas + } + return nil +} + +func (x *GenerateSQLRequest) GetSessionId() string { + if x != nil && x.SessionId != nil { + return *x.SessionId + } + return "" +} + +func (x *GenerateSQLRequest) GetExamples() []*QueryExample { + if x != nil { + return x.Examples + } + return nil +} + +// Response message containing the result of content generation. +type GenerateContentResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + // The response can be one of the following types. + // + // Types that are valid to be assigned to Result: + // + // *GenerateContentResponse_Success + // *GenerateContentResponse_Error + Result isGenerateContentResponse_Result `protobuf_oneof:"result"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GenerateContentResponse) Reset() { + *x = GenerateContentResponse{} + mi := &file_pkg_server_server_proto_msgTypes[58] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GenerateContentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenerateContentResponse) ProtoMessage() {} + +func (x *GenerateContentResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_server_server_proto_msgTypes[58] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - file_pkg_server_server_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FileData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GenerateContentResponse.ProtoReflect.Descriptor instead. +func (*GenerateContentResponse) Descriptor() ([]byte, []int) { + return file_pkg_server_server_proto_rawDescGZIP(), []int{58} +} + +func (x *GenerateContentResponse) GetResult() isGenerateContentResponse_Result { + if x != nil { + return x.Result + } + return nil +} + +func (x *GenerateContentResponse) GetSuccess() *ContentSuccessResponse { + if x != nil { + if x, ok := x.Result.(*GenerateContentResponse_Success); ok { + return x.Success } - file_pkg_server_server_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Empty); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } + } + return nil +} + +func (x *GenerateContentResponse) GetError() *ErrorResponse { + if x != nil { + if x, ok := x.Result.(*GenerateContentResponse_Error); ok { + return x.Error } - file_pkg_server_server_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MockConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } + } + return nil +} + +type isGenerateContentResponse_Result interface { + isGenerateContentResponse_Result() +} + +type GenerateContentResponse_Success struct { + // Contains the successful content generation details. + Success *ContentSuccessResponse `protobuf:"bytes,1,opt,name=success,proto3,oneof"` +} + +type GenerateContentResponse_Error struct { + // Contains details about why the generation failed. + Error *ErrorResponse `protobuf:"bytes,2,opt,name=error,proto3,oneof"` +} + +func (*GenerateContentResponse_Success) isGenerateContentResponse_Result() {} + +func (*GenerateContentResponse_Error) isGenerateContentResponse_Result() {} + +// Response message containing the result of the SQL generation. +type GenerateSQLResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + // The response can be one of the following types. + // + // Types that are valid to be assigned to Result: + // + // *GenerateSQLResponse_Success + // *GenerateSQLResponse_Error + Result isGenerateSQLResponse_Result `protobuf_oneof:"result"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GenerateSQLResponse) Reset() { + *x = GenerateSQLResponse{} + mi := &file_pkg_server_server_proto_msgTypes[59] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GenerateSQLResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenerateSQLResponse) ProtoMessage() {} + +func (x *GenerateSQLResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_server_server_proto_msgTypes[59] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - file_pkg_server_server_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Version); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GenerateSQLResponse.ProtoReflect.Descriptor instead. +func (*GenerateSQLResponse) Descriptor() ([]byte, []int) { + return file_pkg_server_server_proto_rawDescGZIP(), []int{59} +} + +func (x *GenerateSQLResponse) GetResult() isGenerateSQLResponse_Result { + if x != nil { + return x.Result + } + return nil +} + +func (x *GenerateSQLResponse) GetSuccess() *SuccessResponse { + if x != nil { + if x, ok := x.Result.(*GenerateSQLResponse_Success); ok { + return x.Success } - file_pkg_server_server_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProxyConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } + } + return nil +} + +func (x *GenerateSQLResponse) GetError() *ErrorResponse { + if x != nil { + if x, ok := x.Result.(*GenerateSQLResponse_Error); ok { + return x.Error } - file_pkg_server_server_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DataQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } + } + return nil +} + +type isGenerateSQLResponse_Result interface { + isGenerateSQLResponse_Result() +} + +type GenerateSQLResponse_Success struct { + // Contains the successful SQL generation details. + Success *SuccessResponse `protobuf:"bytes,1,opt,name=success,proto3,oneof"` +} + +type GenerateSQLResponse_Error struct { + // Contains details about why the generation failed. + Error *ErrorResponse `protobuf:"bytes,2,opt,name=error,proto3,oneof"` +} + +func (*GenerateSQLResponse_Success) isGenerateSQLResponse_Result() {} + +func (*GenerateSQLResponse_Error) isGenerateSQLResponse_Result() {} + +// Represents a successful content generation. +type ContentSuccessResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + // The generated content. + Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` + // The type of content that was generated. + ContentType string `protobuf:"bytes,2,opt,name=contentType,proto3" json:"contentType,omitempty"` + // An explanation of how the AI interpreted the request and generated the content. + // This builds user trust and aids in debugging. + Explanation *string `protobuf:"bytes,3,opt,name=explanation,proto3,oneof" json:"explanation,omitempty"` + // A score between 0.0 and 1.0 indicating the AI's confidence in the generated content. + ConfidenceScore *float32 `protobuf:"fixed32,4,opt,name=confidenceScore,proto3,oneof" json:"confidenceScore,omitempty"` + // Additional metadata about the generation process. + Metadata map[string]string `protobuf:"bytes,5,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ContentSuccessResponse) Reset() { + *x = ContentSuccessResponse{} + mi := &file_pkg_server_server_proto_msgTypes[60] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ContentSuccessResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContentSuccessResponse) ProtoMessage() {} + +func (x *ContentSuccessResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_server_server_proto_msgTypes[60] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - file_pkg_server_server_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DataQueryResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ContentSuccessResponse.ProtoReflect.Descriptor instead. +func (*ContentSuccessResponse) Descriptor() ([]byte, []int) { + return file_pkg_server_server_proto_rawDescGZIP(), []int{60} +} + +func (x *ContentSuccessResponse) GetContent() string { + if x != nil { + return x.Content + } + return "" +} + +func (x *ContentSuccessResponse) GetContentType() string { + if x != nil { + return x.ContentType + } + return "" +} + +func (x *ContentSuccessResponse) GetExplanation() string { + if x != nil && x.Explanation != nil { + return *x.Explanation + } + return "" +} + +func (x *ContentSuccessResponse) GetConfidenceScore() float32 { + if x != nil && x.ConfidenceScore != nil { + return *x.ConfidenceScore + } + return 0 +} + +func (x *ContentSuccessResponse) GetMetadata() map[string]string { + if x != nil { + return x.Metadata + } + return nil +} + +// Represents a successful SQL generation. +type SuccessResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + // The generated SQL query. + SqlQuery string `protobuf:"bytes,1,opt,name=sqlQuery,proto3" json:"sqlQuery,omitempty"` + // An explanation of how the AI interpreted the request and generated the SQL. + // This builds user trust and aids in debugging. + Explanation *string `protobuf:"bytes,2,opt,name=explanation,proto3,oneof" json:"explanation,omitempty"` + // A score between 0.0 and 1.0 indicating the AI's confidence in the generated query. + ConfidenceScore *float32 `protobuf:"fixed32,3,opt,name=confidenceScore,proto3,oneof" json:"confidenceScore,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SuccessResponse) Reset() { + *x = SuccessResponse{} + mi := &file_pkg_server_server_proto_msgTypes[61] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SuccessResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SuccessResponse) ProtoMessage() {} + +func (x *SuccessResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_server_server_proto_msgTypes[61] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - file_pkg_server_server_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DataMeta); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SuccessResponse.ProtoReflect.Descriptor instead. +func (*SuccessResponse) Descriptor() ([]byte, []int) { + return file_pkg_server_server_proto_rawDescGZIP(), []int{61} +} + +func (x *SuccessResponse) GetSqlQuery() string { + if x != nil { + return x.SqlQuery + } + return "" +} + +func (x *SuccessResponse) GetExplanation() string { + if x != nil && x.Explanation != nil { + return *x.Explanation + } + return "" +} + +func (x *SuccessResponse) GetConfidenceScore() float32 { + if x != nil && x.ConfidenceScore != nil { + return *x.ConfidenceScore + } + return 0 +} + +// Represents a failed SQL generation attempt. +type ErrorResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + // A structured error code for programmatic handling. + Code ErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=server.ErrorCode" json:"code,omitempty"` + // A human-readable message describing the error. + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ErrorResponse) Reset() { + *x = ErrorResponse{} + mi := &file_pkg_server_server_proto_msgTypes[62] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ErrorResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ErrorResponse) ProtoMessage() {} + +func (x *ErrorResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_server_server_proto_msgTypes[62] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ErrorResponse.ProtoReflect.Descriptor instead. +func (*ErrorResponse) Descriptor() ([]byte, []int) { + return file_pkg_server_server_proto_rawDescGZIP(), []int{62} +} + +func (x *ErrorResponse) GetCode() ErrorCode { + if x != nil { + return x.Code + } + return ErrorCode_ERROR_CODE_UNSPECIFIED +} + +func (x *ErrorResponse) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +var File_pkg_server_server_proto protoreflect.FileDescriptor + +const file_pkg_server_server_proto_rawDesc = "" + + "\n" + + "\x17pkg/server/server.proto\x12\x06server\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/api/annotations.proto\"~\n" + + "\x06Suites\x12,\n" + + "\x04data\x18\x01 \x03(\v2\x18.server.Suites.DataEntryR\x04data\x1aF\n" + + "\tDataEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12#\n" + + "\x05value\x18\x02 \x01(\v2\r.server.ItemsR\x05value:\x028\x01\"/\n" + + "\x05Items\x12\x12\n" + + "\x04data\x18\x01 \x03(\tR\x04data\x12\x12\n" + + "\x04kind\x18\x02 \x01(\tR\x04kind\"\x93\x01\n" + + "\rHistorySuites\x123\n" + + "\x04data\x18\x01 \x03(\v2\x1f.server.HistorySuites.DataEntryR\x04data\x1aM\n" + + "\tDataEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12*\n" + + "\x05value\x18\x02 \x01(\v2\x14.server.HistoryItemsR\x05value:\x028\x01\"?\n" + + "\fHistoryItems\x12/\n" + + "\x04data\x18\x01 \x03(\v2\x1b.server.HistoryCaseIdentityR\x04data\"\x97\x01\n" + + "\x13HistoryCaseIdentity\x12\x14\n" + + "\x05suite\x18\x01 \x01(\tR\x05suite\x12\x1a\n" + + "\btestcase\x18\x02 \x01(\tR\btestcase\x12*\n" + + "\x10historySuiteName\x18\x03 \x01(\tR\x10historySuiteName\x12\x12\n" + + "\x04kind\x18\x04 \x01(\tR\x04kind\x12\x0e\n" + + "\x02ID\x18\x05 \x01(\tR\x02ID\"r\n" + + "\x10TestCaseIdentity\x12\x14\n" + + "\x05suite\x18\x01 \x01(\tR\x05suite\x12\x1a\n" + + "\btestcase\x18\x02 \x01(\tR\btestcase\x12,\n" + + "\n" + + "parameters\x18\x03 \x03(\v2\f.server.PairR\n" + + "parameters\"K\n" + + "\x0fTestSuiteSource\x12\x12\n" + + "\x04kind\x18\x01 \x01(\tR\x04kind\x12\x10\n" + + "\x03url\x18\x02 \x01(\tR\x03url\x12\x12\n" + + "\x04data\x18\x03 \x01(\tR\x04data\"\xa5\x01\n" + + "\tTestSuite\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n" + + "\x03api\x18\x02 \x01(\tR\x03api\x12\"\n" + + "\x05param\x18\x03 \x03(\v2\f.server.PairR\x05param\x12#\n" + + "\x04spec\x18\x04 \x01(\v2\x0f.server.APISpecR\x04spec\x12)\n" + + "\x05proxy\x18\x05 \x01(\v2\x13.server.ProxyConfigR\x05proxy\"b\n" + + "\x11TestSuiteWithCase\x12'\n" + + "\x05suite\x18\x01 \x01(\v2\x11.server.TestSuiteR\x05suite\x12$\n" + + "\x04case\x18\x02 \x01(\v2\x10.server.TestCaseR\x04case\"v\n" + + "\aAPISpec\x12\x12\n" + + "\x04kind\x18\x01 \x01(\tR\x04kind\x12\x10\n" + + "\x03url\x18\x02 \x01(\tR\x03url\x12\x1d\n" + + "\x03rpc\x18\x03 \x01(\v2\v.server.RPCR\x03rpc\x12&\n" + + "\x06secure\x18\x04 \x01(\v2\x0e.server.SecureR\x06secure\"z\n" + + "\x06Secure\x12\x1a\n" + + "\binsecure\x18\x01 \x01(\bR\binsecure\x12\x12\n" + + "\x04cert\x18\x02 \x01(\tR\x04cert\x12\x0e\n" + + "\x02ca\x18\x03 \x01(\tR\x02ca\x12\x1e\n" + + "\n" + + "serverName\x18\x04 \x01(\tR\n" + + "serverName\x12\x10\n" + + "\x03key\x18\x05 \x01(\tR\x03key\"\x95\x01\n" + + "\x03RPC\x12\x16\n" + + "\x06import\x18\x01 \x03(\tR\x06import\x12*\n" + + "\x10serverReflection\x18\x02 \x01(\bR\x10serverReflection\x12\x1c\n" + + "\tprotofile\x18\x03 \x01(\tR\tprotofile\x12\x1a\n" + + "\bprotoset\x18\x04 \x01(\tR\bprotoset\x12\x10\n" + + "\x03raw\x18\x05 \x01(\tR\x03raw\"M\n" + + "\x11TestSuiteIdentity\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n" + + "\x03api\x18\x02 \x01(\tR\x03api\x12\x12\n" + + "\x04kind\x18\x03 \x01(\tR\x04kind\"h\n" + + "\x12TestSuiteDuplicate\x12(\n" + + "\x0fsourceSuiteName\x18\x01 \x01(\tR\x0fsourceSuiteName\x12(\n" + + "\x0ftargetSuiteName\x18\x02 \x01(\tR\x0ftargetSuiteName\"\xb7\x01\n" + + "\x11TestCaseDuplicate\x12(\n" + + "\x0fsourceSuiteName\x18\x01 \x01(\tR\x0fsourceSuiteName\x12&\n" + + "\x0esourceCaseName\x18\x02 \x01(\tR\x0esourceCaseName\x12(\n" + + "\x0ftargetSuiteName\x18\x03 \x01(\tR\x0ftargetSuiteName\x12&\n" + + "\x0etargetCaseName\x18\x04 \x01(\tR\x0etargetCaseName\"\xf7\x01\n" + + "\bTestTask\x12\x12\n" + + "\x04data\x18\x01 \x01(\tR\x04data\x12\x12\n" + + "\x04kind\x18\x02 \x01(\tR\x04kind\x12\x1a\n" + + "\bcaseName\x18\x03 \x01(\tR\bcaseName\x12\x14\n" + + "\x05level\x18\x04 \x01(\tR\x05level\x12+\n" + + "\x03env\x18\x05 \x03(\v2\x19.server.TestTask.EnvEntryR\x03env\x12,\n" + + "\n" + + "parameters\x18\x06 \x03(\v2\f.server.PairR\n" + + "parameters\x1a6\n" + + "\bEnvEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xa9\x01\n" + + "\rBatchTestTask\x12\x1c\n" + + "\tsuiteName\x18\x01 \x01(\tR\tsuiteName\x12\x1a\n" + + "\bcaseName\x18\x02 \x01(\tR\bcaseName\x12,\n" + + "\n" + + "parameters\x18\x03 \x03(\v2\f.server.PairR\n" + + "parameters\x12\x14\n" + + "\x05count\x18\x04 \x01(\x05R\x05count\x12\x1a\n" + + "\binterval\x18\x05 \x01(\tR\binterval\"|\n" + + "\n" + + "TestResult\x12\x18\n" + + "\amessage\x18\x01 \x01(\tR\amessage\x12\x14\n" + + "\x05error\x18\x02 \x01(\tR\x05error\x12>\n" + + "\x0etestCaseResult\x18\x03 \x03(\v2\x16.server.TestCaseResultR\x0etestCaseResult\"\xec\x01\n" + + "\x11HistoryTestResult\x12\x18\n" + + "\amessage\x18\x01 \x01(\tR\amessage\x12\x14\n" + + "\x05error\x18\x02 \x01(\tR\x05error\x12>\n" + + "\x0etestCaseResult\x18\x03 \x03(\v2\x16.server.TestCaseResultR\x0etestCaseResult\x12+\n" + + "\x04data\x18\x04 \x01(\v2\x17.server.HistoryTestCaseR\x04data\x12:\n" + + "\n" + + "createTime\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "createTime\"<\n" + + "\n" + + "HelloReply\x12\x18\n" + + "\amessage\x18\x01 \x01(\tR\amessage\x12\x14\n" + + "\x05error\x18\x02 \x01(\tR\x05error\"\x1e\n" + + "\bYamlData\x12\x12\n" + + "\x04data\x18\x01 \x01(\fR\x04data\"U\n" + + "\x05Suite\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n" + + "\x03api\x18\x02 \x01(\tR\x03api\x12&\n" + + "\x05items\x18\x03 \x03(\v2\x10.server.TestCaseR\x05items\"W\n" + + "\x11TestCaseWithSuite\x12\x1c\n" + + "\tsuiteName\x18\x01 \x01(\tR\tsuiteName\x12$\n" + + "\x04data\x18\x02 \x01(\v2\x10.server.TestCaseR\x04data\"1\n" + + "\tTestCases\x12$\n" + + "\x04data\x18\x01 \x03(\v2\x10.server.TestCaseR\x04data\"\xad\x01\n" + + "\bTestCase\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" + + "\tsuiteName\x18\x02 \x01(\tR\tsuiteName\x12)\n" + + "\arequest\x18\x03 \x01(\v2\x0f.server.RequestR\arequest\x12,\n" + + "\bresponse\x18\x04 \x01(\v2\x10.server.ResponseR\bresponse\x12\x16\n" + + "\x06server\x18\x05 \x01(\tR\x06server\"\xc9\x03\n" + + "\x0fHistoryTestCase\x12\x1a\n" + + "\bcaseName\x18\x01 \x01(\tR\bcaseName\x12\x1c\n" + + "\tsuiteName\x18\x02 \x01(\tR\tsuiteName\x12*\n" + + "\x10historySuiteName\x18\x03 \x01(\tR\x10historySuiteName\x12:\n" + + "\n" + + "createTime\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "createTime\x12,\n" + + "\n" + + "suiteParam\x18\x05 \x03(\v2\f.server.PairR\n" + + "suiteParam\x12-\n" + + "\tsuiteSpec\x18\x06 \x01(\v2\x0f.server.APISpecR\tsuiteSpec\x12\x1a\n" + + "\bsuiteApi\x18\a \x01(\tR\bsuiteApi\x12)\n" + + "\arequest\x18\b \x01(\v2\x0f.server.RequestR\arequest\x12,\n" + + "\bresponse\x18\t \x01(\v2\x10.server.ResponseR\bresponse\x12\x0e\n" + + "\x02ID\x18\n" + + " \x01(\tR\x02ID\x122\n" + + "\rhistoryHeader\x18\v \x03(\v2\f.server.PairR\rhistoryHeader\"?\n" + + "\x10HistoryTestCases\x12+\n" + + "\x04data\x18\x01 \x03(\v2\x17.server.HistoryTestCaseR\x04data\"\xd9\x01\n" + + "\aRequest\x12\x10\n" + + "\x03api\x18\x01 \x01(\tR\x03api\x12\x16\n" + + "\x06method\x18\x02 \x01(\tR\x06method\x12$\n" + + "\x06header\x18\x03 \x03(\v2\f.server.PairR\x06header\x12\"\n" + + "\x05query\x18\x04 \x03(\v2\f.server.PairR\x05query\x12$\n" + + "\x06cookie\x18\x05 \x03(\v2\f.server.PairR\x06cookie\x12 \n" + + "\x04form\x18\x06 \x03(\v2\f.server.PairR\x04form\x12\x12\n" + + "\x04body\x18\a \x01(\tR\x04body\"\x97\x02\n" + + "\bResponse\x12\x1e\n" + + "\n" + + "statusCode\x18\x01 \x01(\x05R\n" + + "statusCode\x12\x12\n" + + "\x04body\x18\x02 \x01(\tR\x04body\x12$\n" + + "\x06header\x18\x03 \x03(\v2\f.server.PairR\x06header\x128\n" + + "\x10bodyFieldsExpect\x18\x04 \x03(\v2\f.server.PairR\x10bodyFieldsExpect\x12\x16\n" + + "\x06verify\x18\x05 \x03(\tR\x06verify\x12G\n" + + "\x11ConditionalVerify\x18\x06 \x03(\v2\x19.server.ConditionalVerifyR\x11ConditionalVerify\x12\x16\n" + + "\x06schema\x18\a \x01(\tR\x06schema\"I\n" + + "\x11ConditionalVerify\x12\x1c\n" + + "\tcondition\x18\x01 \x03(\tR\tcondition\x12\x16\n" + + "\x06verify\x18\x02 \x03(\tR\x06verify\"\xa8\x01\n" + + "\x0eTestCaseResult\x12\x1e\n" + + "\n" + + "statusCode\x18\x01 \x01(\x05R\n" + + "statusCode\x12\x12\n" + + "\x04body\x18\x02 \x01(\tR\x04body\x12$\n" + + "\x06header\x18\x03 \x03(\v2\f.server.PairR\x06header\x12\x14\n" + + "\x05error\x18\x04 \x01(\tR\x05error\x12\x0e\n" + + "\x02id\x18\x05 \x01(\tR\x02id\x12\x16\n" + + "\x06output\x18\x06 \x01(\tR\x06output\"P\n" + + "\x04Pair\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value\x12 \n" + + "\vdescription\x18\x03 \x01(\tR\vdescription\")\n" + + "\x05Pairs\x12 \n" + + "\x04data\x18\x01 \x03(\v2\f.server.PairR\x04data\"5\n" + + "\vSimpleQuery\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" + + "\x04kind\x18\x02 \x01(\tR\x04kind\"+\n" + + "\x06Stores\x12!\n" + + "\x04data\x18\x01 \x03(\v2\r.server.StoreR\x04data\"\xc0\x02\n" + + "\x05Store\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" + + "\x05owner\x18\x02 \x01(\tR\x05owner\x12 \n" + + "\vdescription\x18\x03 \x01(\tR\vdescription\x12\x10\n" + + "\x03url\x18\x04 \x01(\tR\x03url\x12\x1a\n" + + "\busername\x18\x05 \x01(\tR\busername\x12\x1a\n" + + "\bpassword\x18\x06 \x01(\tR\bpassword\x12,\n" + + "\n" + + "properties\x18\a \x03(\v2\f.server.PairR\n" + + "properties\x12%\n" + + "\x04kind\x18\b \x01(\v2\x11.server.StoreKindR\x04kind\x12\x14\n" + + "\x05ready\x18\t \x01(\bR\x05ready\x12\x1a\n" + + "\breadOnly\x18\n" + + " \x01(\bR\breadOnly\x12\x1a\n" + + "\bdisabled\x18\v \x01(\bR\bdisabled\"3\n" + + "\n" + + "StoreKinds\x12%\n" + + "\x04data\x18\x01 \x03(\v2\x11.server.StoreKindR\x04data\"K\n" + + "\tStoreKind\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n" + + "\x03url\x18\x02 \x01(\tR\x03url\x12\x18\n" + + "\aenabled\x18\x03 \x01(\bR\aenabled\"B\n" + + "\fCommonResult\x12\x18\n" + + "\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" + + "\amessage\x18\x02 \x01(\tR\amessage\".\n" + + "\n" + + "SimpleList\x12 \n" + + "\x04data\x18\x01 \x03(\v2\f.server.PairR\x04data\" \n" + + "\n" + + "SimpleName\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\"}\n" + + "\x13CodeGenerateRequest\x12\x1c\n" + + "\tTestSuite\x18\x01 \x01(\tR\tTestSuite\x12\x1a\n" + + "\bTestCase\x18\x02 \x01(\tR\bTestCase\x12\x1c\n" + + "\tGenerator\x18\x03 \x01(\tR\tGenerator\x12\x0e\n" + + "\x02ID\x18\x04 \x01(\tR\x02ID\"-\n" + + "\aSecrets\x12\"\n" + + "\x04data\x18\x01 \x03(\v2\x0e.server.SecretR\x04data\"T\n" + + "\x06Secret\x12\x12\n" + + "\x04Name\x18\x01 \x01(\tR\x04Name\x12\x14\n" + + "\x05Value\x18\x02 \x01(\tR\x05Value\x12 \n" + + "\vDescription\x18\x03 \x01(\tR\vDescription\"w\n" + + "\x0fExtensionStatus\x12\x14\n" + + "\x05ready\x18\x01 \x01(\bR\x05ready\x12\x1a\n" + + "\breadOnly\x18\x02 \x01(\bR\breadOnly\x12\x18\n" + + "\aversion\x18\x03 \x01(\tR\aversion\x12\x18\n" + + "\amessage\x18\x04 \x01(\tR\amessage\"\"\n" + + "\fPProfRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\"\x1f\n" + + "\tPProfData\x12\x12\n" + + "\x04data\x18\x01 \x01(\fR\x04data\"]\n" + + "\bFileData\x12\x12\n" + + "\x04data\x18\x01 \x01(\fR\x04data\x12!\n" + + "\fcontent_type\x18\x02 \x01(\tR\vcontentType\x12\x1a\n" + + "\bfilename\x18\x03 \x01(\tR\bfilename\"\a\n" + + "\x05Empty\"P\n" + + "\n" + + "MockConfig\x12\x16\n" + + "\x06Prefix\x18\x01 \x01(\tR\x06Prefix\x12\x16\n" + + "\x06Config\x18\x02 \x01(\tR\x06Config\x12\x12\n" + + "\x04Port\x18\x03 \x01(\x05R\x04Port\"O\n" + + "\aVersion\x12\x18\n" + + "\aversion\x18\x01 \x01(\tR\aversion\x12\x16\n" + + "\x06commit\x18\x02 \x01(\tR\x06commit\x12\x12\n" + + "\x04date\x18\x03 \x01(\tR\x04date\"G\n" + + "\vProxyConfig\x12\x12\n" + + "\x04http\x18\x01 \x01(\tR\x04http\x12\x14\n" + + "\x05https\x18\x02 \x01(\tR\x05https\x12\x0e\n" + + "\x02no\x18\x03 \x01(\tR\x02no\"q\n" + + "\tDataQuery\x12\x12\n" + + "\x04type\x18\x01 \x01(\tR\x04type\x12\x10\n" + + "\x03key\x18\x02 \x01(\tR\x03key\x12\x10\n" + + "\x03sql\x18\x03 \x01(\tR\x03sql\x12\x16\n" + + "\x06offset\x18\x04 \x01(\x03R\x06offset\x12\x14\n" + + "\x05limit\x18\x05 \x01(\x03R\x05limit\"~\n" + + "\x0fDataQueryResult\x12 \n" + + "\x04data\x18\x01 \x03(\v2\f.server.PairR\x04data\x12#\n" + + "\x05items\x18\x02 \x03(\v2\r.server.PairsR\x05items\x12$\n" + + "\x04meta\x18\x03 \x01(\v2\x10.server.DataMetaR\x04meta\"\xac\x01\n" + + "\bDataMeta\x12\x1c\n" + + "\tdatabases\x18\x01 \x03(\tR\tdatabases\x12\x16\n" + + "\x06tables\x18\x02 \x03(\tR\x06tables\x12(\n" + + "\x0fcurrentDatabase\x18\x03 \x01(\tR\x0fcurrentDatabase\x12\x1a\n" + + "\bduration\x18\x04 \x01(\tR\bduration\x12$\n" + + "\x06labels\x18\x05 \x03(\v2\f.server.PairR\x06labels\"`\n" + + "\fQueryExample\x124\n" + + "\x15naturalLanguagePrompt\x18\x01 \x01(\tR\x15naturalLanguagePrompt\x12\x1a\n" + + "\bsqlQuery\x18\x02 \x01(\tR\bsqlQuery\"\x95\x03\n" + + "\x16GenerateContentRequest\x12\x16\n" + + "\x06prompt\x18\x01 \x01(\tR\x06prompt\x12 \n" + + "\vcontentType\x18\x02 \x01(\tR\vcontentType\x12E\n" + + "\acontext\x18\x03 \x03(\v2+.server.GenerateContentRequest.ContextEntryR\acontext\x12!\n" + + "\tsessionId\x18\x04 \x01(\tH\x00R\tsessionId\x88\x01\x01\x12N\n" + + "\n" + + "parameters\x18\x05 \x03(\v2..server.GenerateContentRequest.ParametersEntryR\n" + + "parameters\x1a:\n" + + "\fContextEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a=\n" + + "\x0fParametersEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B\f\n" + + "\n" + + "_sessionId\"\xff\x01\n" + + "\x12GenerateSQLRequest\x122\n" + + "\x14naturalLanguageInput\x18\x01 \x01(\tR\x14naturalLanguageInput\x128\n" + + "\fdatabaseType\x18\x02 \x01(\x0e2\x14.server.DatabaseTypeR\fdatabaseType\x12\x18\n" + + "\aschemas\x18\x03 \x03(\tR\aschemas\x12!\n" + + "\tsessionId\x18\x04 \x01(\tH\x00R\tsessionId\x88\x01\x01\x120\n" + + "\bexamples\x18\x05 \x03(\v2\x14.server.QueryExampleR\bexamplesB\f\n" + + "\n" + + "_sessionId\"\x8e\x01\n" + + "\x17GenerateContentResponse\x12:\n" + + "\asuccess\x18\x01 \x01(\v2\x1e.server.ContentSuccessResponseH\x00R\asuccess\x12-\n" + + "\x05error\x18\x02 \x01(\v2\x15.server.ErrorResponseH\x00R\x05errorB\b\n" + + "\x06result\"\x83\x01\n" + + "\x13GenerateSQLResponse\x123\n" + + "\asuccess\x18\x01 \x01(\v2\x17.server.SuccessResponseH\x00R\asuccess\x12-\n" + + "\x05error\x18\x02 \x01(\v2\x15.server.ErrorResponseH\x00R\x05errorB\b\n" + + "\x06result\"\xd5\x02\n" + + "\x16ContentSuccessResponse\x12\x18\n" + + "\acontent\x18\x01 \x01(\tR\acontent\x12 \n" + + "\vcontentType\x18\x02 \x01(\tR\vcontentType\x12%\n" + + "\vexplanation\x18\x03 \x01(\tH\x00R\vexplanation\x88\x01\x01\x12-\n" + + "\x0fconfidenceScore\x18\x04 \x01(\x02H\x01R\x0fconfidenceScore\x88\x01\x01\x12H\n" + + "\bmetadata\x18\x05 \x03(\v2,.server.ContentSuccessResponse.MetadataEntryR\bmetadata\x1a;\n" + + "\rMetadataEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B\x0e\n" + + "\f_explanationB\x12\n" + + "\x10_confidenceScore\"\xa7\x01\n" + + "\x0fSuccessResponse\x12\x1a\n" + + "\bsqlQuery\x18\x01 \x01(\tR\bsqlQuery\x12%\n" + + "\vexplanation\x18\x02 \x01(\tH\x00R\vexplanation\x88\x01\x01\x12-\n" + + "\x0fconfidenceScore\x18\x03 \x01(\x02H\x01R\x0fconfidenceScore\x88\x01\x01B\x0e\n" + + "\f_explanationB\x12\n" + + "\x10_confidenceScore\"P\n" + + "\rErrorResponse\x12%\n" + + "\x04code\x18\x01 \x01(\x0e2\x11.server.ErrorCodeR\x04code\x12\x18\n" + + "\amessage\x18\x02 \x01(\tR\amessage*T\n" + + "\fDatabaseType\x12\x1d\n" + + "\x19DATABASE_TYPE_UNSPECIFIED\x10\x00\x12\t\n" + + "\x05MYSQL\x10\x01\x12\x0e\n" + + "\n" + + "POSTGRESQL\x10\x02\x12\n" + + "\n" + + "\x06SQLITE\x10\x03*\x83\x01\n" + + "\tErrorCode\x12\x1a\n" + + "\x16ERROR_CODE_UNSPECIFIED\x10\x00\x12\x14\n" + + "\x10INVALID_ARGUMENT\x10\x01\x12\x16\n" + + "\x12TRANSLATION_FAILED\x10\x02\x12\x18\n" + + "\x14UNSUPPORTED_DATABASE\x10\x03\x12\x12\n" + + "\x0eINTERNAL_ERROR\x10\x042\x9e%\n" + + "\x06Runner\x12C\n" + + "\x03Run\x12\x10.server.TestTask\x1a\x12.server.TestResult\"\x16\x82\xd3\xe4\x93\x02\x10:\x01*\"\v/api/v1/run\x12_\n" + + "\fRunTestSuite\x12\x19.server.TestSuiteIdentity\x1a\x12.server.TestResult\"\x1c\x82\xd3\xe4\x93\x02\x16:\x01*\"\x11/api/v1/run/suite(\x010\x01\x12B\n" + + "\tGetSuites\x12\r.server.Empty\x1a\x0e.server.Suites\"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/api/v1/suites\x12[\n" + + "\x0fCreateTestSuite\x12\x19.server.TestSuiteIdentity\x1a\x12.server.HelloReply\"\x19\x82\xd3\xe4\x93\x02\x13:\x01*\"\x0e/api/v1/suites\x12b\n" + + "\x0fImportTestSuite\x12\x17.server.TestSuiteSource\x1a\x14.server.CommonResult\" \x82\xd3\xe4\x93\x02\x1a:\x01*\"\x15/api/v1/suites/import\x12[\n" + + "\fGetTestSuite\x12\x19.server.TestSuiteIdentity\x1a\x11.server.TestSuite\"\x1d\x82\xd3\xe4\x93\x02\x17\x12\x15/api/v1/suites/{name}\x12Z\n" + + "\x0fUpdateTestSuite\x12\x11.server.TestSuite\x1a\x12.server.HelloReply\" \x82\xd3\xe4\x93\x02\x1a:\x01*\x1a\x15/api/v1/suites/{name}\x12_\n" + + "\x0fDeleteTestSuite\x12\x19.server.TestSuiteIdentity\x1a\x12.server.HelloReply\"\x1d\x82\xd3\xe4\x93\x02\x17*\x15/api/v1/suites/{name}\x12{\n" + + "\x12DuplicateTestSuite\x12\x1a.server.TestSuiteDuplicate\x1a\x12.server.HelloReply\"5\x82\xd3\xe4\x93\x02/:\x01*\"*/api/v1/suites/{sourceSuiteName}/duplicate\x12u\n" + + "\x0fRenameTestSuite\x12\x1a.server.TestSuiteDuplicate\x1a\x12.server.HelloReply\"2\x82\xd3\xe4\x93\x02,:\x01*\"'/api/v1/suites/{sourceSuiteName}/rename\x12c\n" + + "\x10GetTestSuiteYaml\x12\x19.server.TestSuiteIdentity\x1a\x10.server.YamlData\"\"\x82\xd3\xe4\x93\x02\x1c\x12\x1a/api/v1/suites/{name}/yaml\x12]\n" + + "\fListTestCase\x12\x19.server.TestSuiteIdentity\x1a\r.server.Suite\"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/api/v1/suites/{name}/cases\x12w\n" + + "\vRunTestCase\x12\x18.server.TestCaseIdentity\x1a\x16.server.TestCaseResult\"6\x82\xd3\xe4\x93\x020:\x01*\"+/api/v1/suites/{suite}/cases/{testcase}/run\x12V\n" + + "\bBatchRun\x12\x15.server.BatchTestTask\x1a\x12.server.TestResult\"\x1b\x82\xd3\xe4\x93\x02\x15:\x01*\"\x10/api/v1/batchRun(\x010\x01\x12j\n" + + "\vGetTestCase\x12\x18.server.TestCaseIdentity\x1a\x10.server.TestCase\"/\x82\xd3\xe4\x93\x02)\x12'/api/v1/suites/{suite}/cases/{testcase}\x12l\n" + + "\x0eCreateTestCase\x12\x19.server.TestCaseWithSuite\x1a\x12.server.HelloReply\"+\x82\xd3\xe4\x93\x02%:\x01*\" /api/v1/suites/{suiteName}/cases\x12x\n" + + "\x0eUpdateTestCase\x12\x19.server.TestCaseWithSuite\x1a\x12.server.HelloReply\"7\x82\xd3\xe4\x93\x021:\x01*\x1a,/api/v1/suites/{suiteName}/cases/{data.name}\x12o\n" + + "\x0eDeleteTestCase\x12\x18.server.TestCaseIdentity\x1a\x12.server.HelloReply\"/\x82\xd3\xe4\x93\x02)*'/api/v1/suites/{suite}/cases/{testcase}\x12\x90\x01\n" + + "\x11DuplicateTestCase\x12\x19.server.TestCaseDuplicate\x1a\x12.server.HelloReply\"L\x82\xd3\xe4\x93\x02F:\x01*\"A/api/v1/suites/{sourceSuiteName}/cases/{sourceCaseName}/duplicate\x12\x8a\x01\n" + + "\x0eRenameTestCase\x12\x19.server.TestCaseDuplicate\x1a\x12.server.HelloReply\"I\x82\xd3\xe4\x93\x02C:\x01*\">/api/v1/suites/{sourceSuiteName}/cases/{sourceCaseName}/rename\x12_\n" + + "\x10GetSuggestedAPIs\x12\x19.server.TestSuiteIdentity\x1a\x11.server.TestCases\"\x1d\x82\xd3\xe4\x93\x02\x17\x12\x15/api/v1/suggestedAPIs\x12W\n" + + "\x10GetHistorySuites\x12\r.server.Empty\x1a\x15.server.HistorySuites\"\x1d\x82\xd3\xe4\x93\x02\x17\"\x15/api/v1/historySuites\x12\x82\x01\n" + + "\x1cGetHistoryTestCaseWithResult\x12\x17.server.HistoryTestCase\x1a\x19.server.HistoryTestResult\".\x82\xd3\xe4\x93\x02(\x12&/api/v1/historyTestCaseWithResult/{ID}\x12l\n" + + "\x12GetHistoryTestCase\x12\x17.server.HistoryTestCase\x1a\x17.server.HistoryTestCase\"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/api/v1/historyTestCase/{ID}\x12j\n" + + "\x15DeleteHistoryTestCase\x12\x17.server.HistoryTestCase\x1a\x12.server.HelloReply\"$\x82\xd3\xe4\x93\x02\x1e*\x1c/api/v1/historyTestCase/{ID}\x12\x83\x01\n" + + "\x18DeleteAllHistoryTestCase\x12\x17.server.HistoryTestCase\x1a\x12.server.HelloReply\":\x82\xd3\xe4\x93\x024*2/api/v1/historySuites/{suiteName}/cases/{caseName}\x12t\n" + + "\x15GetTestCaseAllHistory\x12\x10.server.TestCase\x1a\x18.server.HistoryTestCases\"/\x82\xd3\xe4\x93\x02)\"'/api/v1/suites/{suiteName}/cases/{name}\x12V\n" + + "\x11ListCodeGenerator\x12\r.server.Empty\x1a\x12.server.SimpleList\"\x1e\x82\xd3\xe4\x93\x02\x18\x12\x16/api/v1/codeGenerators\x12m\n" + + "\fGenerateCode\x12\x1b.server.CodeGenerateRequest\x1a\x14.server.CommonResult\"*\x82\xd3\xe4\x93\x02$:\x01*\"\x1f/api/v1/codeGenerators/generate\x12|\n" + + "\x13HistoryGenerateCode\x12\x1b.server.CodeGenerateRequest\x1a\x14.server.CommonResult\"2\x82\xd3\xe4\x93\x02,:\x01*\"'/api/v1/codeGenerators/history/generate\x12N\n" + + "\rListConverter\x12\r.server.Empty\x1a\x12.server.SimpleList\"\x1a\x82\xd3\xe4\x93\x02\x14\x12\x12/api/v1/converters\x12l\n" + + "\x10ConvertTestSuite\x12\x1b.server.CodeGenerateRequest\x1a\x14.server.CommonResult\"%\x82\xd3\xe4\x93\x02\x1f:\x01*\"\x1a/api/v1/converters/convert\x12N\n" + + "\x0ePopularHeaders\x12\r.server.Empty\x1a\r.server.Pairs\"\x1e\x82\xd3\xe4\x93\x02\x18\x12\x16/api/v1/popularHeaders\x12O\n" + + "\x0eFunctionsQuery\x12\x13.server.SimpleQuery\x1a\r.server.Pairs\"\x19\x82\xd3\xe4\x93\x02\x13\x12\x11/api/v1/functions\x12^\n" + + "\x14FunctionsQueryStream\x12\x13.server.SimpleQuery\x1a\r.server.Pairs\"\x1e\x82\xd3\xe4\x93\x02\x18\x12\x16/api/v1/functionsQuery(\x010\x01\x12E\n" + + "\n" + + "GetVersion\x12\r.server.Empty\x1a\x0f.server.Version\"\x17\x82\xd3\xe4\x93\x02\x11\x12\x0f/api/v1/version\x12C\n" + + "\x06Sample\x12\r.server.Empty\x1a\x12.server.HelloReply\"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/api/v1/sample\x12h\n" + + "\x14DownloadResponseFile\x12\x10.server.TestCase\x1a\x10.server.FileData\",\x82\xd3\xe4\x93\x02&\x12$/api/v1/downloadFile/{response.body}\x12P\n" + + "\rGetStoreKinds\x12\r.server.Empty\x1a\x12.server.StoreKinds\"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/api/v1/stores/kinds\x12B\n" + + "\tGetStores\x12\r.server.Empty\x1a\x0e.server.Stores\"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/api/v1/stores\x12F\n" + + "\vCreateStore\x12\r.server.Store\x1a\r.server.Store\"\x19\x82\xd3\xe4\x93\x02\x13:\x01*\"\x0e/api/v1/stores\x12M\n" + + "\vUpdateStore\x12\r.server.Store\x1a\r.server.Store\" \x82\xd3\xe4\x93\x02\x1a:\x01*\x1a\x15/api/v1/stores/{name}\x12J\n" + + "\vDeleteStore\x12\r.server.Store\x1a\r.server.Store\"\x1d\x82\xd3\xe4\x93\x02\x17*\x15/api/v1/stores/{name}\x12]\n" + + "\vVerifyStore\x12\x13.server.SimpleQuery\x1a\x17.server.ExtensionStatus\" \x82\xd3\xe4\x93\x02\x1a:\x01*\"\x15/api/v1/stores/verify\x12E\n" + + "\n" + + "GetSecrets\x12\r.server.Empty\x1a\x0f.server.Secrets\"\x17\x82\xd3\xe4\x93\x02\x11\x12\x0f/api/v1/secrets\x12P\n" + + "\fCreateSecret\x12\x0e.server.Secret\x1a\x14.server.CommonResult\"\x1a\x82\xd3\xe4\x93\x02\x14:\x01*\"\x0f/api/v1/secrets\x12T\n" + + "\fDeleteSecret\x12\x0e.server.Secret\x1a\x14.server.CommonResult\"\x1e\x82\xd3\xe4\x93\x02\x18*\x16/api/v1/secrets/{Name}\x12W\n" + + "\fUpdateSecret\x12\x0e.server.Secret\x1a\x14.server.CommonResult\"!\x82\xd3\xe4\x93\x02\x1b:\x01*\x1a\x16/api/v1/secrets/{Name}\x122\n" + + "\x05PProf\x12\x14.server.PProfRequest\x1a\x11.server.PProfData\"\x002k\n" + + "\x0fRunnerExtension\x12X\n" + + "\x03Run\x12\x19.server.TestSuiteWithCase\x1a\x14.server.CommonResult\" \x82\xd3\xe4\x93\x02\x1a:\x01*\"\x15/api/v1/extension/run2\xd2\x02\n" + + "\x0eThemeExtension\x12F\n" + + "\tGetThemes\x12\r.server.Empty\x1a\x12.server.SimpleList\"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/api/v1/themes\x12S\n" + + "\bGetTheme\x12\x12.server.SimpleName\x1a\x14.server.CommonResult\"\x1d\x82\xd3\xe4\x93\x02\x17\x12\x15/api/v1/themes/{name}\x12J\n" + + "\vGetBindings\x12\r.server.Empty\x1a\x12.server.SimpleList\"\x18\x82\xd3\xe4\x93\x02\x12\x12\x10/api/v1/bindings\x12W\n" + + "\n" + + "GetBinding\x12\x12.server.SimpleName\x1a\x14.server.CommonResult\"\x1f\x82\xd3\xe4\x93\x02\x19\x12\x17/api/v1/bindings/{name}2\x80\x02\n" + + "\vAIExtension\x12r\n" + + "\x0fGenerateContent\x12\x1e.server.GenerateContentRequest\x1a\x1f.server.GenerateContentResponse\"\x1e\x82\xd3\xe4\x93\x02\x18:\x01*\"\x13/api/v1/ai/generate\x12}\n" + + "\x1eGenerateSQLFromNaturalLanguage\x12\x1a.server.GenerateSQLRequest\x1a\x1b.server.GenerateSQLResponse\"\"\x82\xd3\xe4\x93\x02\x1c:\x01*\"\x17/api/v1/ai/sql/generate2\xa0\x01\n" + + "\x04Mock\x12K\n" + + "\x06Reload\x12\x12.server.MockConfig\x1a\r.server.Empty\"\x1e\x82\xd3\xe4\x93\x02\x18:\x01*\"\x13/api/v1/mock/reload\x12K\n" + + "\tGetConfig\x12\r.server.Empty\x1a\x12.server.MockConfig\"\x1b\x82\xd3\xe4\x93\x02\x15\x12\x13/api/v1/mock/config2`\n" + + "\n" + + "DataServer\x12R\n" + + "\x05Query\x12\x11.server.DataQuery\x1a\x17.server.DataQueryResult\"\x1d\x82\xd3\xe4\x93\x02\x17:\x01*\"\x12/api/v1/data/queryB.Z,github.com/linuxsuren/api-testing/pkg/serverb\x06proto3" + +var ( + file_pkg_server_server_proto_rawDescOnce sync.Once + file_pkg_server_server_proto_rawDescData []byte +) + +func file_pkg_server_server_proto_rawDescGZIP() []byte { + file_pkg_server_server_proto_rawDescOnce.Do(func() { + file_pkg_server_server_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_server_server_proto_rawDesc), len(file_pkg_server_server_proto_rawDesc))) + }) + return file_pkg_server_server_proto_rawDescData +} + +var file_pkg_server_server_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_pkg_server_server_proto_msgTypes = make([]protoimpl.MessageInfo, 69) +var file_pkg_server_server_proto_goTypes = []any{ + (DatabaseType)(0), // 0: server.DatabaseType + (ErrorCode)(0), // 1: server.ErrorCode + (*Suites)(nil), // 2: server.Suites + (*Items)(nil), // 3: server.Items + (*HistorySuites)(nil), // 4: server.HistorySuites + (*HistoryItems)(nil), // 5: server.HistoryItems + (*HistoryCaseIdentity)(nil), // 6: server.HistoryCaseIdentity + (*TestCaseIdentity)(nil), // 7: server.TestCaseIdentity + (*TestSuiteSource)(nil), // 8: server.TestSuiteSource + (*TestSuite)(nil), // 9: server.TestSuite + (*TestSuiteWithCase)(nil), // 10: server.TestSuiteWithCase + (*APISpec)(nil), // 11: server.APISpec + (*Secure)(nil), // 12: server.Secure + (*RPC)(nil), // 13: server.RPC + (*TestSuiteIdentity)(nil), // 14: server.TestSuiteIdentity + (*TestSuiteDuplicate)(nil), // 15: server.TestSuiteDuplicate + (*TestCaseDuplicate)(nil), // 16: server.TestCaseDuplicate + (*TestTask)(nil), // 17: server.TestTask + (*BatchTestTask)(nil), // 18: server.BatchTestTask + (*TestResult)(nil), // 19: server.TestResult + (*HistoryTestResult)(nil), // 20: server.HistoryTestResult + (*HelloReply)(nil), // 21: server.HelloReply + (*YamlData)(nil), // 22: server.YamlData + (*Suite)(nil), // 23: server.Suite + (*TestCaseWithSuite)(nil), // 24: server.TestCaseWithSuite + (*TestCases)(nil), // 25: server.TestCases + (*TestCase)(nil), // 26: server.TestCase + (*HistoryTestCase)(nil), // 27: server.HistoryTestCase + (*HistoryTestCases)(nil), // 28: server.HistoryTestCases + (*Request)(nil), // 29: server.Request + (*Response)(nil), // 30: server.Response + (*ConditionalVerify)(nil), // 31: server.ConditionalVerify + (*TestCaseResult)(nil), // 32: server.TestCaseResult + (*Pair)(nil), // 33: server.Pair + (*Pairs)(nil), // 34: server.Pairs + (*SimpleQuery)(nil), // 35: server.SimpleQuery + (*Stores)(nil), // 36: server.Stores + (*Store)(nil), // 37: server.Store + (*StoreKinds)(nil), // 38: server.StoreKinds + (*StoreKind)(nil), // 39: server.StoreKind + (*CommonResult)(nil), // 40: server.CommonResult + (*SimpleList)(nil), // 41: server.SimpleList + (*SimpleName)(nil), // 42: server.SimpleName + (*CodeGenerateRequest)(nil), // 43: server.CodeGenerateRequest + (*Secrets)(nil), // 44: server.Secrets + (*Secret)(nil), // 45: server.Secret + (*ExtensionStatus)(nil), // 46: server.ExtensionStatus + (*PProfRequest)(nil), // 47: server.PProfRequest + (*PProfData)(nil), // 48: server.PProfData + (*FileData)(nil), // 49: server.FileData + (*Empty)(nil), // 50: server.Empty + (*MockConfig)(nil), // 51: server.MockConfig + (*Version)(nil), // 52: server.Version + (*ProxyConfig)(nil), // 53: server.ProxyConfig + (*DataQuery)(nil), // 54: server.DataQuery + (*DataQueryResult)(nil), // 55: server.DataQueryResult + (*DataMeta)(nil), // 56: server.DataMeta + (*QueryExample)(nil), // 57: server.QueryExample + (*GenerateContentRequest)(nil), // 58: server.GenerateContentRequest + (*GenerateSQLRequest)(nil), // 59: server.GenerateSQLRequest + (*GenerateContentResponse)(nil), // 60: server.GenerateContentResponse + (*GenerateSQLResponse)(nil), // 61: server.GenerateSQLResponse + (*ContentSuccessResponse)(nil), // 62: server.ContentSuccessResponse + (*SuccessResponse)(nil), // 63: server.SuccessResponse + (*ErrorResponse)(nil), // 64: server.ErrorResponse + nil, // 65: server.Suites.DataEntry + nil, // 66: server.HistorySuites.DataEntry + nil, // 67: server.TestTask.EnvEntry + nil, // 68: server.GenerateContentRequest.ContextEntry + nil, // 69: server.GenerateContentRequest.ParametersEntry + nil, // 70: server.ContentSuccessResponse.MetadataEntry + (*timestamppb.Timestamp)(nil), // 71: google.protobuf.Timestamp +} +var file_pkg_server_server_proto_depIdxs = []int32{ + 65, // 0: server.Suites.data:type_name -> server.Suites.DataEntry + 66, // 1: server.HistorySuites.data:type_name -> server.HistorySuites.DataEntry + 6, // 2: server.HistoryItems.data:type_name -> server.HistoryCaseIdentity + 33, // 3: server.TestCaseIdentity.parameters:type_name -> server.Pair + 33, // 4: server.TestSuite.param:type_name -> server.Pair + 11, // 5: server.TestSuite.spec:type_name -> server.APISpec + 53, // 6: server.TestSuite.proxy:type_name -> server.ProxyConfig + 9, // 7: server.TestSuiteWithCase.suite:type_name -> server.TestSuite + 26, // 8: server.TestSuiteWithCase.case:type_name -> server.TestCase + 13, // 9: server.APISpec.rpc:type_name -> server.RPC + 12, // 10: server.APISpec.secure:type_name -> server.Secure + 67, // 11: server.TestTask.env:type_name -> server.TestTask.EnvEntry + 33, // 12: server.TestTask.parameters:type_name -> server.Pair + 33, // 13: server.BatchTestTask.parameters:type_name -> server.Pair + 32, // 14: server.TestResult.testCaseResult:type_name -> server.TestCaseResult + 32, // 15: server.HistoryTestResult.testCaseResult:type_name -> server.TestCaseResult + 27, // 16: server.HistoryTestResult.data:type_name -> server.HistoryTestCase + 71, // 17: server.HistoryTestResult.createTime:type_name -> google.protobuf.Timestamp + 26, // 18: server.Suite.items:type_name -> server.TestCase + 26, // 19: server.TestCaseWithSuite.data:type_name -> server.TestCase + 26, // 20: server.TestCases.data:type_name -> server.TestCase + 29, // 21: server.TestCase.request:type_name -> server.Request + 30, // 22: server.TestCase.response:type_name -> server.Response + 71, // 23: server.HistoryTestCase.createTime:type_name -> google.protobuf.Timestamp + 33, // 24: server.HistoryTestCase.suiteParam:type_name -> server.Pair + 11, // 25: server.HistoryTestCase.suiteSpec:type_name -> server.APISpec + 29, // 26: server.HistoryTestCase.request:type_name -> server.Request + 30, // 27: server.HistoryTestCase.response:type_name -> server.Response + 33, // 28: server.HistoryTestCase.historyHeader:type_name -> server.Pair + 27, // 29: server.HistoryTestCases.data:type_name -> server.HistoryTestCase + 33, // 30: server.Request.header:type_name -> server.Pair + 33, // 31: server.Request.query:type_name -> server.Pair + 33, // 32: server.Request.cookie:type_name -> server.Pair + 33, // 33: server.Request.form:type_name -> server.Pair + 33, // 34: server.Response.header:type_name -> server.Pair + 33, // 35: server.Response.bodyFieldsExpect:type_name -> server.Pair + 31, // 36: server.Response.ConditionalVerify:type_name -> server.ConditionalVerify + 33, // 37: server.TestCaseResult.header:type_name -> server.Pair + 33, // 38: server.Pairs.data:type_name -> server.Pair + 37, // 39: server.Stores.data:type_name -> server.Store + 33, // 40: server.Store.properties:type_name -> server.Pair + 39, // 41: server.Store.kind:type_name -> server.StoreKind + 39, // 42: server.StoreKinds.data:type_name -> server.StoreKind + 33, // 43: server.SimpleList.data:type_name -> server.Pair + 45, // 44: server.Secrets.data:type_name -> server.Secret + 33, // 45: server.DataQueryResult.data:type_name -> server.Pair + 34, // 46: server.DataQueryResult.items:type_name -> server.Pairs + 56, // 47: server.DataQueryResult.meta:type_name -> server.DataMeta + 33, // 48: server.DataMeta.labels:type_name -> server.Pair + 68, // 49: server.GenerateContentRequest.context:type_name -> server.GenerateContentRequest.ContextEntry + 69, // 50: server.GenerateContentRequest.parameters:type_name -> server.GenerateContentRequest.ParametersEntry + 0, // 51: server.GenerateSQLRequest.databaseType:type_name -> server.DatabaseType + 57, // 52: server.GenerateSQLRequest.examples:type_name -> server.QueryExample + 62, // 53: server.GenerateContentResponse.success:type_name -> server.ContentSuccessResponse + 64, // 54: server.GenerateContentResponse.error:type_name -> server.ErrorResponse + 63, // 55: server.GenerateSQLResponse.success:type_name -> server.SuccessResponse + 64, // 56: server.GenerateSQLResponse.error:type_name -> server.ErrorResponse + 70, // 57: server.ContentSuccessResponse.metadata:type_name -> server.ContentSuccessResponse.MetadataEntry + 1, // 58: server.ErrorResponse.code:type_name -> server.ErrorCode + 3, // 59: server.Suites.DataEntry.value:type_name -> server.Items + 5, // 60: server.HistorySuites.DataEntry.value:type_name -> server.HistoryItems + 17, // 61: server.Runner.Run:input_type -> server.TestTask + 14, // 62: server.Runner.RunTestSuite:input_type -> server.TestSuiteIdentity + 50, // 63: server.Runner.GetSuites:input_type -> server.Empty + 14, // 64: server.Runner.CreateTestSuite:input_type -> server.TestSuiteIdentity + 8, // 65: server.Runner.ImportTestSuite:input_type -> server.TestSuiteSource + 14, // 66: server.Runner.GetTestSuite:input_type -> server.TestSuiteIdentity + 9, // 67: server.Runner.UpdateTestSuite:input_type -> server.TestSuite + 14, // 68: server.Runner.DeleteTestSuite:input_type -> server.TestSuiteIdentity + 15, // 69: server.Runner.DuplicateTestSuite:input_type -> server.TestSuiteDuplicate + 15, // 70: server.Runner.RenameTestSuite:input_type -> server.TestSuiteDuplicate + 14, // 71: server.Runner.GetTestSuiteYaml:input_type -> server.TestSuiteIdentity + 14, // 72: server.Runner.ListTestCase:input_type -> server.TestSuiteIdentity + 7, // 73: server.Runner.RunTestCase:input_type -> server.TestCaseIdentity + 18, // 74: server.Runner.BatchRun:input_type -> server.BatchTestTask + 7, // 75: server.Runner.GetTestCase:input_type -> server.TestCaseIdentity + 24, // 76: server.Runner.CreateTestCase:input_type -> server.TestCaseWithSuite + 24, // 77: server.Runner.UpdateTestCase:input_type -> server.TestCaseWithSuite + 7, // 78: server.Runner.DeleteTestCase:input_type -> server.TestCaseIdentity + 16, // 79: server.Runner.DuplicateTestCase:input_type -> server.TestCaseDuplicate + 16, // 80: server.Runner.RenameTestCase:input_type -> server.TestCaseDuplicate + 14, // 81: server.Runner.GetSuggestedAPIs:input_type -> server.TestSuiteIdentity + 50, // 82: server.Runner.GetHistorySuites:input_type -> server.Empty + 27, // 83: server.Runner.GetHistoryTestCaseWithResult:input_type -> server.HistoryTestCase + 27, // 84: server.Runner.GetHistoryTestCase:input_type -> server.HistoryTestCase + 27, // 85: server.Runner.DeleteHistoryTestCase:input_type -> server.HistoryTestCase + 27, // 86: server.Runner.DeleteAllHistoryTestCase:input_type -> server.HistoryTestCase + 26, // 87: server.Runner.GetTestCaseAllHistory:input_type -> server.TestCase + 50, // 88: server.Runner.ListCodeGenerator:input_type -> server.Empty + 43, // 89: server.Runner.GenerateCode:input_type -> server.CodeGenerateRequest + 43, // 90: server.Runner.HistoryGenerateCode:input_type -> server.CodeGenerateRequest + 50, // 91: server.Runner.ListConverter:input_type -> server.Empty + 43, // 92: server.Runner.ConvertTestSuite:input_type -> server.CodeGenerateRequest + 50, // 93: server.Runner.PopularHeaders:input_type -> server.Empty + 35, // 94: server.Runner.FunctionsQuery:input_type -> server.SimpleQuery + 35, // 95: server.Runner.FunctionsQueryStream:input_type -> server.SimpleQuery + 50, // 96: server.Runner.GetVersion:input_type -> server.Empty + 50, // 97: server.Runner.Sample:input_type -> server.Empty + 26, // 98: server.Runner.DownloadResponseFile:input_type -> server.TestCase + 50, // 99: server.Runner.GetStoreKinds:input_type -> server.Empty + 50, // 100: server.Runner.GetStores:input_type -> server.Empty + 37, // 101: server.Runner.CreateStore:input_type -> server.Store + 37, // 102: server.Runner.UpdateStore:input_type -> server.Store + 37, // 103: server.Runner.DeleteStore:input_type -> server.Store + 35, // 104: server.Runner.VerifyStore:input_type -> server.SimpleQuery + 50, // 105: server.Runner.GetSecrets:input_type -> server.Empty + 45, // 106: server.Runner.CreateSecret:input_type -> server.Secret + 45, // 107: server.Runner.DeleteSecret:input_type -> server.Secret + 45, // 108: server.Runner.UpdateSecret:input_type -> server.Secret + 47, // 109: server.Runner.PProf:input_type -> server.PProfRequest + 10, // 110: server.RunnerExtension.Run:input_type -> server.TestSuiteWithCase + 50, // 111: server.ThemeExtension.GetThemes:input_type -> server.Empty + 42, // 112: server.ThemeExtension.GetTheme:input_type -> server.SimpleName + 50, // 113: server.ThemeExtension.GetBindings:input_type -> server.Empty + 42, // 114: server.ThemeExtension.GetBinding:input_type -> server.SimpleName + 58, // 115: server.AIExtension.GenerateContent:input_type -> server.GenerateContentRequest + 59, // 116: server.AIExtension.GenerateSQLFromNaturalLanguage:input_type -> server.GenerateSQLRequest + 51, // 117: server.Mock.Reload:input_type -> server.MockConfig + 50, // 118: server.Mock.GetConfig:input_type -> server.Empty + 54, // 119: server.DataServer.Query:input_type -> server.DataQuery + 19, // 120: server.Runner.Run:output_type -> server.TestResult + 19, // 121: server.Runner.RunTestSuite:output_type -> server.TestResult + 2, // 122: server.Runner.GetSuites:output_type -> server.Suites + 21, // 123: server.Runner.CreateTestSuite:output_type -> server.HelloReply + 40, // 124: server.Runner.ImportTestSuite:output_type -> server.CommonResult + 9, // 125: server.Runner.GetTestSuite:output_type -> server.TestSuite + 21, // 126: server.Runner.UpdateTestSuite:output_type -> server.HelloReply + 21, // 127: server.Runner.DeleteTestSuite:output_type -> server.HelloReply + 21, // 128: server.Runner.DuplicateTestSuite:output_type -> server.HelloReply + 21, // 129: server.Runner.RenameTestSuite:output_type -> server.HelloReply + 22, // 130: server.Runner.GetTestSuiteYaml:output_type -> server.YamlData + 23, // 131: server.Runner.ListTestCase:output_type -> server.Suite + 32, // 132: server.Runner.RunTestCase:output_type -> server.TestCaseResult + 19, // 133: server.Runner.BatchRun:output_type -> server.TestResult + 26, // 134: server.Runner.GetTestCase:output_type -> server.TestCase + 21, // 135: server.Runner.CreateTestCase:output_type -> server.HelloReply + 21, // 136: server.Runner.UpdateTestCase:output_type -> server.HelloReply + 21, // 137: server.Runner.DeleteTestCase:output_type -> server.HelloReply + 21, // 138: server.Runner.DuplicateTestCase:output_type -> server.HelloReply + 21, // 139: server.Runner.RenameTestCase:output_type -> server.HelloReply + 25, // 140: server.Runner.GetSuggestedAPIs:output_type -> server.TestCases + 4, // 141: server.Runner.GetHistorySuites:output_type -> server.HistorySuites + 20, // 142: server.Runner.GetHistoryTestCaseWithResult:output_type -> server.HistoryTestResult + 27, // 143: server.Runner.GetHistoryTestCase:output_type -> server.HistoryTestCase + 21, // 144: server.Runner.DeleteHistoryTestCase:output_type -> server.HelloReply + 21, // 145: server.Runner.DeleteAllHistoryTestCase:output_type -> server.HelloReply + 28, // 146: server.Runner.GetTestCaseAllHistory:output_type -> server.HistoryTestCases + 41, // 147: server.Runner.ListCodeGenerator:output_type -> server.SimpleList + 40, // 148: server.Runner.GenerateCode:output_type -> server.CommonResult + 40, // 149: server.Runner.HistoryGenerateCode:output_type -> server.CommonResult + 41, // 150: server.Runner.ListConverter:output_type -> server.SimpleList + 40, // 151: server.Runner.ConvertTestSuite:output_type -> server.CommonResult + 34, // 152: server.Runner.PopularHeaders:output_type -> server.Pairs + 34, // 153: server.Runner.FunctionsQuery:output_type -> server.Pairs + 34, // 154: server.Runner.FunctionsQueryStream:output_type -> server.Pairs + 52, // 155: server.Runner.GetVersion:output_type -> server.Version + 21, // 156: server.Runner.Sample:output_type -> server.HelloReply + 49, // 157: server.Runner.DownloadResponseFile:output_type -> server.FileData + 38, // 158: server.Runner.GetStoreKinds:output_type -> server.StoreKinds + 36, // 159: server.Runner.GetStores:output_type -> server.Stores + 37, // 160: server.Runner.CreateStore:output_type -> server.Store + 37, // 161: server.Runner.UpdateStore:output_type -> server.Store + 37, // 162: server.Runner.DeleteStore:output_type -> server.Store + 46, // 163: server.Runner.VerifyStore:output_type -> server.ExtensionStatus + 44, // 164: server.Runner.GetSecrets:output_type -> server.Secrets + 40, // 165: server.Runner.CreateSecret:output_type -> server.CommonResult + 40, // 166: server.Runner.DeleteSecret:output_type -> server.CommonResult + 40, // 167: server.Runner.UpdateSecret:output_type -> server.CommonResult + 48, // 168: server.Runner.PProf:output_type -> server.PProfData + 40, // 169: server.RunnerExtension.Run:output_type -> server.CommonResult + 41, // 170: server.ThemeExtension.GetThemes:output_type -> server.SimpleList + 40, // 171: server.ThemeExtension.GetTheme:output_type -> server.CommonResult + 41, // 172: server.ThemeExtension.GetBindings:output_type -> server.SimpleList + 40, // 173: server.ThemeExtension.GetBinding:output_type -> server.CommonResult + 60, // 174: server.AIExtension.GenerateContent:output_type -> server.GenerateContentResponse + 61, // 175: server.AIExtension.GenerateSQLFromNaturalLanguage:output_type -> server.GenerateSQLResponse + 50, // 176: server.Mock.Reload:output_type -> server.Empty + 51, // 177: server.Mock.GetConfig:output_type -> server.MockConfig + 55, // 178: server.DataServer.Query:output_type -> server.DataQueryResult + 120, // [120:179] is the sub-list for method output_type + 61, // [61:120] is the sub-list for method input_type + 61, // [61:61] is the sub-list for extension type_name + 61, // [61:61] is the sub-list for extension extendee + 0, // [0:61] is the sub-list for field type_name +} + +func init() { file_pkg_server_server_proto_init() } +func file_pkg_server_server_proto_init() { + if File_pkg_server_server_proto != nil { + return + } + file_pkg_server_server_proto_msgTypes[56].OneofWrappers = []any{} + file_pkg_server_server_proto_msgTypes[57].OneofWrappers = []any{} + file_pkg_server_server_proto_msgTypes[58].OneofWrappers = []any{ + (*GenerateContentResponse_Success)(nil), + (*GenerateContentResponse_Error)(nil), + } + file_pkg_server_server_proto_msgTypes[59].OneofWrappers = []any{ + (*GenerateSQLResponse_Success)(nil), + (*GenerateSQLResponse_Error)(nil), } + file_pkg_server_server_proto_msgTypes[60].OneofWrappers = []any{} + file_pkg_server_server_proto_msgTypes[61].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_pkg_server_server_proto_rawDesc, - NumEnums: 0, - NumMessages: 58, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_server_server_proto_rawDesc), len(file_pkg_server_server_proto_rawDesc)), + NumEnums: 2, + NumMessages: 69, NumExtensions: 0, - NumServices: 5, + NumServices: 6, }, GoTypes: file_pkg_server_server_proto_goTypes, DependencyIndexes: file_pkg_server_server_proto_depIdxs, + EnumInfos: file_pkg_server_server_proto_enumTypes, MessageInfos: file_pkg_server_server_proto_msgTypes, }.Build() File_pkg_server_server_proto = out.File - file_pkg_server_server_proto_rawDesc = nil file_pkg_server_server_proto_goTypes = nil file_pkg_server_server_proto_depIdxs = nil } diff --git a/pkg/server/server.pb.gw.go b/pkg/server/server.pb.gw.go index 4d39309b..1e39b7a7 100644 --- a/pkg/server/server.pb.gw.go +++ b/pkg/server/server.pb.gw.go @@ -10,6 +10,7 @@ package server import ( "context" + "errors" "io" "net/http" @@ -24,67 +25,63 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = errors.New + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_Runner_Run_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestTask - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq TestTask + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.Run(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_Run_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestTask - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq TestTask + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.Run(ctx, &protoReq) return msg, metadata, err - } func request_Runner_RunTestSuite_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (Runner_RunTestSuiteClient, runtime.ServerMetadata, error) { var metadata runtime.ServerMetadata stream, err := client.RunTestSuite(ctx) if err != nil { - grpclog.Infof("Failed to start streaming: %v", err) + grpclog.Errorf("Failed to start streaming: %v", err) return nil, metadata, err } dec := marshaler.NewDecoder(req.Body) handleSend := func() error { var protoReq TestSuiteIdentity err := dec.Decode(&protoReq) - if err == io.EOF { + if errors.Is(err, io.EOF) { return err } if err != nil { - grpclog.Infof("Failed to decode request: %v", err) - return err + grpclog.Errorf("Failed to decode request: %v", err) + return status.Errorf(codes.InvalidArgument, "Failed to decode request: %v", err) } if err := stream.Send(&protoReq); err != nil { - grpclog.Infof("Failed to send request: %v", err) + grpclog.Errorf("Failed to send request: %v", err) return err } return nil @@ -96,12 +93,12 @@ func request_Runner_RunTestSuite_0(ctx context.Context, marshaler runtime.Marsha } } if err := stream.CloseSend(); err != nil { - grpclog.Infof("Failed to terminate client stream: %v", err) + grpclog.Errorf("Failed to terminate client stream: %v", err) } }() header, err := stream.Header() if err != nil { - grpclog.Infof("Failed to get header from client: %v", err) + grpclog.Errorf("Failed to get header from client: %v", err) return nil, metadata, err } metadata.HeaderMD = header @@ -109,683 +106,508 @@ func request_Runner_RunTestSuite_0(ctx context.Context, marshaler runtime.Marsha } func request_Runner_GetSuites_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Empty - var metadata runtime.ServerMetadata - + var ( + protoReq Empty + metadata runtime.ServerMetadata + ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetSuites(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_GetSuites_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Empty - var metadata runtime.ServerMetadata - + var ( + protoReq Empty + metadata runtime.ServerMetadata + ) msg, err := server.GetSuites(ctx, &protoReq) return msg, metadata, err - } func request_Runner_CreateTestSuite_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestSuiteIdentity - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq TestSuiteIdentity + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.CreateTestSuite(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_CreateTestSuite_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestSuiteIdentity - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq TestSuiteIdentity + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.CreateTestSuite(ctx, &protoReq) return msg, metadata, err - } func request_Runner_ImportTestSuite_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestSuiteSource - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq TestSuiteSource + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.ImportTestSuite(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_ImportTestSuite_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestSuiteSource - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq TestSuiteSource + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.ImportTestSuite(ctx, &protoReq) return msg, metadata, err - } -var ( - filter_Runner_GetTestSuite_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} -) +var filter_Runner_GetTestSuite_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} func request_Runner_GetTestSuite_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestSuiteIdentity - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq TestSuiteIdentity + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["name"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_GetTestSuite_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.GetTestSuite(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_GetTestSuite_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestSuiteIdentity - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq TestSuiteIdentity + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["name"] + val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_GetTestSuite_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.GetTestSuite(ctx, &protoReq) return msg, metadata, err - } func request_Runner_UpdateTestSuite_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestSuite - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq TestSuite + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["name"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := client.UpdateTestSuite(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_UpdateTestSuite_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestSuite - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq TestSuite + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["name"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := server.UpdateTestSuite(ctx, &protoReq) return msg, metadata, err - } -var ( - filter_Runner_DeleteTestSuite_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} -) +var filter_Runner_DeleteTestSuite_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} func request_Runner_DeleteTestSuite_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestSuiteIdentity - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq TestSuiteIdentity + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["name"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_DeleteTestSuite_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.DeleteTestSuite(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_DeleteTestSuite_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestSuiteIdentity - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq TestSuiteIdentity + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["name"] + val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_DeleteTestSuite_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.DeleteTestSuite(ctx, &protoReq) return msg, metadata, err - } func request_Runner_DuplicateTestSuite_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestSuiteDuplicate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq TestSuiteDuplicate + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["sourceSuiteName"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["sourceSuiteName"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "sourceSuiteName") } - protoReq.SourceSuiteName, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "sourceSuiteName", err) } - msg, err := client.DuplicateTestSuite(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_DuplicateTestSuite_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestSuiteDuplicate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq TestSuiteDuplicate + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["sourceSuiteName"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["sourceSuiteName"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "sourceSuiteName") } - protoReq.SourceSuiteName, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "sourceSuiteName", err) } - msg, err := server.DuplicateTestSuite(ctx, &protoReq) return msg, metadata, err - } func request_Runner_RenameTestSuite_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestSuiteDuplicate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq TestSuiteDuplicate + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["sourceSuiteName"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["sourceSuiteName"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "sourceSuiteName") } - protoReq.SourceSuiteName, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "sourceSuiteName", err) } - msg, err := client.RenameTestSuite(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_RenameTestSuite_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestSuiteDuplicate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq TestSuiteDuplicate + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["sourceSuiteName"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["sourceSuiteName"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "sourceSuiteName") } - protoReq.SourceSuiteName, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "sourceSuiteName", err) } - msg, err := server.RenameTestSuite(ctx, &protoReq) return msg, metadata, err - } -var ( - filter_Runner_GetTestSuiteYaml_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} -) +var filter_Runner_GetTestSuiteYaml_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} func request_Runner_GetTestSuiteYaml_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestSuiteIdentity - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq TestSuiteIdentity + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["name"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_GetTestSuiteYaml_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.GetTestSuiteYaml(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_GetTestSuiteYaml_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestSuiteIdentity - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq TestSuiteIdentity + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["name"] + val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_GetTestSuiteYaml_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.GetTestSuiteYaml(ctx, &protoReq) return msg, metadata, err - } -var ( - filter_Runner_ListTestCase_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} -) +var filter_Runner_ListTestCase_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} func request_Runner_ListTestCase_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestSuiteIdentity - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq TestSuiteIdentity + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["name"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_ListTestCase_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.ListTestCase(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_ListTestCase_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestSuiteIdentity - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq TestSuiteIdentity + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["name"] + val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_ListTestCase_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.ListTestCase(ctx, &protoReq) return msg, metadata, err - } func request_Runner_RunTestCase_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestCaseIdentity - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq TestCaseIdentity + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["suite"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["suite"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "suite") } - protoReq.Suite, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "suite", err) } - val, ok = pathParams["testcase"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "testcase") } - protoReq.Testcase, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "testcase", err) } - msg, err := client.RunTestCase(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_RunTestCase_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestCaseIdentity - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq TestCaseIdentity + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["suite"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["suite"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "suite") } - protoReq.Suite, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "suite", err) } - val, ok = pathParams["testcase"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "testcase") } - protoReq.Testcase, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "testcase", err) } - msg, err := server.RunTestCase(ctx, &protoReq) return msg, metadata, err - } func request_Runner_BatchRun_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (Runner_BatchRunClient, runtime.ServerMetadata, error) { var metadata runtime.ServerMetadata stream, err := client.BatchRun(ctx) if err != nil { - grpclog.Infof("Failed to start streaming: %v", err) + grpclog.Errorf("Failed to start streaming: %v", err) return nil, metadata, err } dec := marshaler.NewDecoder(req.Body) handleSend := func() error { var protoReq BatchTestTask err := dec.Decode(&protoReq) - if err == io.EOF { + if errors.Is(err, io.EOF) { return err } if err != nil { - grpclog.Infof("Failed to decode request: %v", err) - return err + grpclog.Errorf("Failed to decode request: %v", err) + return status.Errorf(codes.InvalidArgument, "Failed to decode request: %v", err) } if err := stream.Send(&protoReq); err != nil { - grpclog.Infof("Failed to send request: %v", err) + grpclog.Errorf("Failed to send request: %v", err) return err } return nil @@ -797,1186 +619,936 @@ func request_Runner_BatchRun_0(ctx context.Context, marshaler runtime.Marshaler, } } if err := stream.CloseSend(); err != nil { - grpclog.Infof("Failed to terminate client stream: %v", err) + grpclog.Errorf("Failed to terminate client stream: %v", err) } }() header, err := stream.Header() if err != nil { - grpclog.Infof("Failed to get header from client: %v", err) + grpclog.Errorf("Failed to get header from client: %v", err) return nil, metadata, err } metadata.HeaderMD = header return stream, metadata, nil } -var ( - filter_Runner_GetTestCase_0 = &utilities.DoubleArray{Encoding: map[string]int{"suite": 0, "testcase": 1}, Base: []int{1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 2, 3, 3}} -) +var filter_Runner_GetTestCase_0 = &utilities.DoubleArray{Encoding: map[string]int{"suite": 0, "testcase": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} func request_Runner_GetTestCase_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestCaseIdentity - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq TestCaseIdentity + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["suite"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["suite"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "suite") } - protoReq.Suite, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "suite", err) } - val, ok = pathParams["testcase"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "testcase") } - protoReq.Testcase, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "testcase", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_GetTestCase_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.GetTestCase(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_GetTestCase_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestCaseIdentity - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq TestCaseIdentity + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["suite"] + val, ok := pathParams["suite"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "suite") } - protoReq.Suite, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "suite", err) } - val, ok = pathParams["testcase"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "testcase") } - protoReq.Testcase, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "testcase", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_GetTestCase_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.GetTestCase(ctx, &protoReq) return msg, metadata, err - } func request_Runner_CreateTestCase_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestCaseWithSuite - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq TestCaseWithSuite + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["suiteName"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["suiteName"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "suiteName") } - protoReq.SuiteName, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "suiteName", err) } - msg, err := client.CreateTestCase(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_CreateTestCase_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestCaseWithSuite - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq TestCaseWithSuite + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["suiteName"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["suiteName"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "suiteName") } - protoReq.SuiteName, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "suiteName", err) } - msg, err := server.CreateTestCase(ctx, &protoReq) return msg, metadata, err - } func request_Runner_UpdateTestCase_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestCaseWithSuite - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq TestCaseWithSuite + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["suiteName"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["suiteName"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "suiteName") } - protoReq.SuiteName, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "suiteName", err) } - val, ok = pathParams["data.name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "data.name") } - err = runtime.PopulateFieldFromPath(&protoReq, "data.name", val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "data.name", err) } - msg, err := client.UpdateTestCase(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_UpdateTestCase_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestCaseWithSuite - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq TestCaseWithSuite + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["suiteName"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["suiteName"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "suiteName") } - protoReq.SuiteName, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "suiteName", err) } - val, ok = pathParams["data.name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "data.name") } - err = runtime.PopulateFieldFromPath(&protoReq, "data.name", val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "data.name", err) } - msg, err := server.UpdateTestCase(ctx, &protoReq) return msg, metadata, err - } -var ( - filter_Runner_DeleteTestCase_0 = &utilities.DoubleArray{Encoding: map[string]int{"suite": 0, "testcase": 1}, Base: []int{1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 2, 3, 3}} -) +var filter_Runner_DeleteTestCase_0 = &utilities.DoubleArray{Encoding: map[string]int{"suite": 0, "testcase": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} func request_Runner_DeleteTestCase_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestCaseIdentity - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq TestCaseIdentity + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["suite"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["suite"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "suite") } - protoReq.Suite, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "suite", err) } - val, ok = pathParams["testcase"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "testcase") } - protoReq.Testcase, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "testcase", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_DeleteTestCase_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.DeleteTestCase(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_DeleteTestCase_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestCaseIdentity - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq TestCaseIdentity + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["suite"] + val, ok := pathParams["suite"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "suite") } - protoReq.Suite, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "suite", err) } - val, ok = pathParams["testcase"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "testcase") } - protoReq.Testcase, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "testcase", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_DeleteTestCase_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.DeleteTestCase(ctx, &protoReq) return msg, metadata, err - } func request_Runner_DuplicateTestCase_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestCaseDuplicate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq TestCaseDuplicate + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["sourceSuiteName"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["sourceSuiteName"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "sourceSuiteName") } - protoReq.SourceSuiteName, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "sourceSuiteName", err) } - val, ok = pathParams["sourceCaseName"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "sourceCaseName") } - protoReq.SourceCaseName, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "sourceCaseName", err) } - msg, err := client.DuplicateTestCase(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_DuplicateTestCase_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestCaseDuplicate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq TestCaseDuplicate + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["sourceSuiteName"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["sourceSuiteName"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "sourceSuiteName") } - protoReq.SourceSuiteName, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "sourceSuiteName", err) } - val, ok = pathParams["sourceCaseName"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "sourceCaseName") } - protoReq.SourceCaseName, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "sourceCaseName", err) } - msg, err := server.DuplicateTestCase(ctx, &protoReq) return msg, metadata, err - } func request_Runner_RenameTestCase_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestCaseDuplicate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq TestCaseDuplicate + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["sourceSuiteName"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["sourceSuiteName"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "sourceSuiteName") } - protoReq.SourceSuiteName, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "sourceSuiteName", err) } - val, ok = pathParams["sourceCaseName"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "sourceCaseName") } - protoReq.SourceCaseName, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "sourceCaseName", err) } - msg, err := client.RenameTestCase(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_RenameTestCase_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestCaseDuplicate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq TestCaseDuplicate + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["sourceSuiteName"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["sourceSuiteName"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "sourceSuiteName") } - protoReq.SourceSuiteName, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "sourceSuiteName", err) } - val, ok = pathParams["sourceCaseName"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "sourceCaseName") } - protoReq.SourceCaseName, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "sourceCaseName", err) } - msg, err := server.RenameTestCase(ctx, &protoReq) return msg, metadata, err - } -var ( - filter_Runner_GetSuggestedAPIs_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) +var filter_Runner_GetSuggestedAPIs_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} func request_Runner_GetSuggestedAPIs_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestSuiteIdentity - var metadata runtime.ServerMetadata - + var ( + protoReq TestSuiteIdentity + metadata runtime.ServerMetadata + ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_GetSuggestedAPIs_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.GetSuggestedAPIs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_GetSuggestedAPIs_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestSuiteIdentity - var metadata runtime.ServerMetadata - + var ( + protoReq TestSuiteIdentity + metadata runtime.ServerMetadata + ) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_GetSuggestedAPIs_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.GetSuggestedAPIs(ctx, &protoReq) return msg, metadata, err - } func request_Runner_GetHistorySuites_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Empty - var metadata runtime.ServerMetadata - + var ( + protoReq Empty + metadata runtime.ServerMetadata + ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetHistorySuites(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_GetHistorySuites_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Empty - var metadata runtime.ServerMetadata - + var ( + protoReq Empty + metadata runtime.ServerMetadata + ) msg, err := server.GetHistorySuites(ctx, &protoReq) return msg, metadata, err - } -var ( - filter_Runner_GetHistoryTestCaseWithResult_0 = &utilities.DoubleArray{Encoding: map[string]int{"ID": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} -) +var filter_Runner_GetHistoryTestCaseWithResult_0 = &utilities.DoubleArray{Encoding: map[string]int{"ID": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} func request_Runner_GetHistoryTestCaseWithResult_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq HistoryTestCase - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq HistoryTestCase + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["ID"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["ID"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.ID, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_GetHistoryTestCaseWithResult_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.GetHistoryTestCaseWithResult(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_GetHistoryTestCaseWithResult_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq HistoryTestCase - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq HistoryTestCase + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["ID"] + val, ok := pathParams["ID"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.ID, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_GetHistoryTestCaseWithResult_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.GetHistoryTestCaseWithResult(ctx, &protoReq) return msg, metadata, err - } -var ( - filter_Runner_GetHistoryTestCase_0 = &utilities.DoubleArray{Encoding: map[string]int{"ID": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} -) +var filter_Runner_GetHistoryTestCase_0 = &utilities.DoubleArray{Encoding: map[string]int{"ID": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} func request_Runner_GetHistoryTestCase_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq HistoryTestCase - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq HistoryTestCase + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["ID"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["ID"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.ID, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_GetHistoryTestCase_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.GetHistoryTestCase(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_GetHistoryTestCase_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq HistoryTestCase - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq HistoryTestCase + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["ID"] + val, ok := pathParams["ID"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.ID, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_GetHistoryTestCase_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.GetHistoryTestCase(ctx, &protoReq) return msg, metadata, err - } -var ( - filter_Runner_DeleteHistoryTestCase_0 = &utilities.DoubleArray{Encoding: map[string]int{"ID": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} -) +var filter_Runner_DeleteHistoryTestCase_0 = &utilities.DoubleArray{Encoding: map[string]int{"ID": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} func request_Runner_DeleteHistoryTestCase_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq HistoryTestCase - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq HistoryTestCase + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["ID"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["ID"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.ID, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_DeleteHistoryTestCase_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.DeleteHistoryTestCase(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_DeleteHistoryTestCase_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq HistoryTestCase - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq HistoryTestCase + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["ID"] + val, ok := pathParams["ID"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ID") } - protoReq.ID, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ID", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_DeleteHistoryTestCase_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.DeleteHistoryTestCase(ctx, &protoReq) return msg, metadata, err - } -var ( - filter_Runner_DeleteAllHistoryTestCase_0 = &utilities.DoubleArray{Encoding: map[string]int{"suiteName": 0, "caseName": 1}, Base: []int{1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 2, 3, 3}} -) +var filter_Runner_DeleteAllHistoryTestCase_0 = &utilities.DoubleArray{Encoding: map[string]int{"suiteName": 0, "caseName": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} func request_Runner_DeleteAllHistoryTestCase_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq HistoryTestCase - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq HistoryTestCase + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["suiteName"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["suiteName"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "suiteName") } - protoReq.SuiteName, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "suiteName", err) } - val, ok = pathParams["caseName"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "caseName") } - protoReq.CaseName, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "caseName", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_DeleteAllHistoryTestCase_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.DeleteAllHistoryTestCase(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_DeleteAllHistoryTestCase_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq HistoryTestCase - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq HistoryTestCase + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["suiteName"] + val, ok := pathParams["suiteName"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "suiteName") } - protoReq.SuiteName, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "suiteName", err) } - val, ok = pathParams["caseName"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "caseName") } - protoReq.CaseName, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "caseName", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_DeleteAllHistoryTestCase_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.DeleteAllHistoryTestCase(ctx, &protoReq) return msg, metadata, err - } -var ( - filter_Runner_GetTestCaseAllHistory_0 = &utilities.DoubleArray{Encoding: map[string]int{"suiteName": 0, "name": 1}, Base: []int{1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 2, 3, 3}} -) +var filter_Runner_GetTestCaseAllHistory_0 = &utilities.DoubleArray{Encoding: map[string]int{"suiteName": 0, "name": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} func request_Runner_GetTestCaseAllHistory_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestCase - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq TestCase + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["suiteName"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["suiteName"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "suiteName") } - protoReq.SuiteName, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "suiteName", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_GetTestCaseAllHistory_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.GetTestCaseAllHistory(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_GetTestCaseAllHistory_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestCase - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq TestCase + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["suiteName"] + val, ok := pathParams["suiteName"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "suiteName") } - protoReq.SuiteName, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "suiteName", err) } - val, ok = pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_GetTestCaseAllHistory_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.GetTestCaseAllHistory(ctx, &protoReq) return msg, metadata, err - } func request_Runner_ListCodeGenerator_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Empty - var metadata runtime.ServerMetadata - + var ( + protoReq Empty + metadata runtime.ServerMetadata + ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.ListCodeGenerator(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_ListCodeGenerator_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Empty - var metadata runtime.ServerMetadata - + var ( + protoReq Empty + metadata runtime.ServerMetadata + ) msg, err := server.ListCodeGenerator(ctx, &protoReq) return msg, metadata, err - } func request_Runner_GenerateCode_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CodeGenerateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq CodeGenerateRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GenerateCode(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_GenerateCode_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CodeGenerateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq CodeGenerateRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.GenerateCode(ctx, &protoReq) return msg, metadata, err - } func request_Runner_HistoryGenerateCode_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CodeGenerateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq CodeGenerateRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.HistoryGenerateCode(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_HistoryGenerateCode_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CodeGenerateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq CodeGenerateRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.HistoryGenerateCode(ctx, &protoReq) return msg, metadata, err - } func request_Runner_ListConverter_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Empty - var metadata runtime.ServerMetadata - + var ( + protoReq Empty + metadata runtime.ServerMetadata + ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.ListConverter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_ListConverter_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Empty - var metadata runtime.ServerMetadata - + var ( + protoReq Empty + metadata runtime.ServerMetadata + ) msg, err := server.ListConverter(ctx, &protoReq) return msg, metadata, err - } func request_Runner_ConvertTestSuite_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CodeGenerateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq CodeGenerateRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.ConvertTestSuite(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_ConvertTestSuite_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CodeGenerateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq CodeGenerateRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.ConvertTestSuite(ctx, &protoReq) return msg, metadata, err - } func request_Runner_PopularHeaders_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Empty - var metadata runtime.ServerMetadata - + var ( + protoReq Empty + metadata runtime.ServerMetadata + ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.PopularHeaders(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_PopularHeaders_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Empty - var metadata runtime.ServerMetadata - + var ( + protoReq Empty + metadata runtime.ServerMetadata + ) msg, err := server.PopularHeaders(ctx, &protoReq) return msg, metadata, err - } -var ( - filter_Runner_FunctionsQuery_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) +var filter_Runner_FunctionsQuery_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} func request_Runner_FunctionsQuery_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SimpleQuery - var metadata runtime.ServerMetadata - + var ( + protoReq SimpleQuery + metadata runtime.ServerMetadata + ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_FunctionsQuery_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.FunctionsQuery(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_FunctionsQuery_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SimpleQuery - var metadata runtime.ServerMetadata - + var ( + protoReq SimpleQuery + metadata runtime.ServerMetadata + ) if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_FunctionsQuery_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.FunctionsQuery(ctx, &protoReq) return msg, metadata, err - } func request_Runner_FunctionsQueryStream_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (Runner_FunctionsQueryStreamClient, runtime.ServerMetadata, error) { var metadata runtime.ServerMetadata stream, err := client.FunctionsQueryStream(ctx) if err != nil { - grpclog.Infof("Failed to start streaming: %v", err) + grpclog.Errorf("Failed to start streaming: %v", err) return nil, metadata, err } dec := marshaler.NewDecoder(req.Body) handleSend := func() error { var protoReq SimpleQuery err := dec.Decode(&protoReq) - if err == io.EOF { + if errors.Is(err, io.EOF) { return err } if err != nil { - grpclog.Infof("Failed to decode request: %v", err) - return err + grpclog.Errorf("Failed to decode request: %v", err) + return status.Errorf(codes.InvalidArgument, "Failed to decode request: %v", err) } if err := stream.Send(&protoReq); err != nil { - grpclog.Infof("Failed to send request: %v", err) + grpclog.Errorf("Failed to send request: %v", err) return err } return nil @@ -1988,12 +1560,12 @@ func request_Runner_FunctionsQueryStream_0(ctx context.Context, marshaler runtim } } if err := stream.CloseSend(); err != nil { - grpclog.Infof("Failed to terminate client stream: %v", err) + grpclog.Errorf("Failed to terminate client stream: %v", err) } }() header, err := stream.Header() if err != nil { - grpclog.Infof("Failed to get header from client: %v", err) + grpclog.Errorf("Failed to get header from client: %v", err) return nil, metadata, err } metadata.HeaderMD = header @@ -2001,852 +1573,756 @@ func request_Runner_FunctionsQueryStream_0(ctx context.Context, marshaler runtim } func request_Runner_GetVersion_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Empty - var metadata runtime.ServerMetadata - + var ( + protoReq Empty + metadata runtime.ServerMetadata + ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetVersion(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_GetVersion_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Empty - var metadata runtime.ServerMetadata - + var ( + protoReq Empty + metadata runtime.ServerMetadata + ) msg, err := server.GetVersion(ctx, &protoReq) return msg, metadata, err - } func request_Runner_Sample_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Empty - var metadata runtime.ServerMetadata - + var ( + protoReq Empty + metadata runtime.ServerMetadata + ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.Sample(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_Sample_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Empty - var metadata runtime.ServerMetadata - + var ( + protoReq Empty + metadata runtime.ServerMetadata + ) msg, err := server.Sample(ctx, &protoReq) return msg, metadata, err - } -var ( - filter_Runner_DownloadResponseFile_0 = &utilities.DoubleArray{Encoding: map[string]int{"response": 0, "body": 1}, Base: []int{1, 2, 3, 2, 0, 0}, Check: []int{0, 1, 1, 2, 4, 3}} -) +var filter_Runner_DownloadResponseFile_0 = &utilities.DoubleArray{Encoding: map[string]int{"response": 0, "body": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} func request_Runner_DownloadResponseFile_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestCase - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq TestCase + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["response.body"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["response.body"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "response.body") } - err = runtime.PopulateFieldFromPath(&protoReq, "response.body", val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "response.body", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_DownloadResponseFile_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.DownloadResponseFile(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_DownloadResponseFile_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestCase - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq TestCase + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["response.body"] + val, ok := pathParams["response.body"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "response.body") } - err = runtime.PopulateFieldFromPath(&protoReq, "response.body", val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "response.body", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_DownloadResponseFile_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.DownloadResponseFile(ctx, &protoReq) return msg, metadata, err - } func request_Runner_GetStoreKinds_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Empty - var metadata runtime.ServerMetadata - + var ( + protoReq Empty + metadata runtime.ServerMetadata + ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetStoreKinds(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_GetStoreKinds_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Empty - var metadata runtime.ServerMetadata - + var ( + protoReq Empty + metadata runtime.ServerMetadata + ) msg, err := server.GetStoreKinds(ctx, &protoReq) return msg, metadata, err - } func request_Runner_GetStores_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Empty - var metadata runtime.ServerMetadata - + var ( + protoReq Empty + metadata runtime.ServerMetadata + ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetStores(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_GetStores_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Empty - var metadata runtime.ServerMetadata - + var ( + protoReq Empty + metadata runtime.ServerMetadata + ) msg, err := server.GetStores(ctx, &protoReq) return msg, metadata, err - } func request_Runner_CreateStore_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Store - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq Store + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.CreateStore(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_CreateStore_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Store - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq Store + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.CreateStore(ctx, &protoReq) return msg, metadata, err - } func request_Runner_UpdateStore_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Store - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq Store + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["name"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := client.UpdateStore(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_UpdateStore_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Store - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq Store + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["name"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := server.UpdateStore(ctx, &protoReq) return msg, metadata, err - } -var ( - filter_Runner_DeleteStore_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} -) +var filter_Runner_DeleteStore_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} func request_Runner_DeleteStore_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Store - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq Store + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["name"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_DeleteStore_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.DeleteStore(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_DeleteStore_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Store - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq Store + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["name"] + val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_DeleteStore_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.DeleteStore(ctx, &protoReq) return msg, metadata, err - } func request_Runner_VerifyStore_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SimpleQuery - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq SimpleQuery + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.VerifyStore(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_VerifyStore_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SimpleQuery - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq SimpleQuery + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.VerifyStore(ctx, &protoReq) return msg, metadata, err - } func request_Runner_GetSecrets_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Empty - var metadata runtime.ServerMetadata - + var ( + protoReq Empty + metadata runtime.ServerMetadata + ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetSecrets(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_GetSecrets_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Empty - var metadata runtime.ServerMetadata - + var ( + protoReq Empty + metadata runtime.ServerMetadata + ) msg, err := server.GetSecrets(ctx, &protoReq) return msg, metadata, err - } func request_Runner_CreateSecret_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Secret - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq Secret + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.CreateSecret(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_CreateSecret_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Secret - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq Secret + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.CreateSecret(ctx, &protoReq) return msg, metadata, err - } -var ( - filter_Runner_DeleteSecret_0 = &utilities.DoubleArray{Encoding: map[string]int{"Name": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} -) +var filter_Runner_DeleteSecret_0 = &utilities.DoubleArray{Encoding: map[string]int{"Name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} func request_Runner_DeleteSecret_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Secret - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq Secret + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["Name"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["Name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "Name") } - protoReq.Name, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "Name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_DeleteSecret_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.DeleteSecret(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_DeleteSecret_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Secret - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq Secret + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["Name"] + val, ok := pathParams["Name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "Name") } - protoReq.Name, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "Name", err) } - if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Runner_DeleteSecret_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.DeleteSecret(ctx, &protoReq) return msg, metadata, err - } func request_Runner_UpdateSecret_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Secret - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq Secret + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["Name"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["Name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "Name") } - protoReq.Name, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "Name", err) } - msg, err := client.UpdateSecret(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_UpdateSecret_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Secret - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - var ( - val string - ok bool - err error - _ = err + protoReq Secret + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["Name"] + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + val, ok := pathParams["Name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "Name") } - protoReq.Name, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "Name", err) } - msg, err := server.UpdateSecret(ctx, &protoReq) return msg, metadata, err - } func request_Runner_PProf_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PProfRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq PProfRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.PProf(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Runner_PProf_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PProfRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq PProfRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.PProf(ctx, &protoReq) return msg, metadata, err - } func request_RunnerExtension_Run_0(ctx context.Context, marshaler runtime.Marshaler, client RunnerExtensionClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestSuiteWithCase - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq TestSuiteWithCase + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.Run(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_RunnerExtension_Run_0(ctx context.Context, marshaler runtime.Marshaler, server RunnerExtensionServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq TestSuiteWithCase - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq TestSuiteWithCase + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.Run(ctx, &protoReq) return msg, metadata, err - } func request_ThemeExtension_GetThemes_0(ctx context.Context, marshaler runtime.Marshaler, client ThemeExtensionClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Empty - var metadata runtime.ServerMetadata - + var ( + protoReq Empty + metadata runtime.ServerMetadata + ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetThemes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_ThemeExtension_GetThemes_0(ctx context.Context, marshaler runtime.Marshaler, server ThemeExtensionServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Empty - var metadata runtime.ServerMetadata - + var ( + protoReq Empty + metadata runtime.ServerMetadata + ) msg, err := server.GetThemes(ctx, &protoReq) return msg, metadata, err - } func request_ThemeExtension_GetTheme_0(ctx context.Context, marshaler runtime.Marshaler, client ThemeExtensionClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SimpleName - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq SimpleName + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["name"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := client.GetTheme(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_ThemeExtension_GetTheme_0(ctx context.Context, marshaler runtime.Marshaler, server ThemeExtensionServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SimpleName - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq SimpleName + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["name"] + val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := server.GetTheme(ctx, &protoReq) return msg, metadata, err - } func request_ThemeExtension_GetBindings_0(ctx context.Context, marshaler runtime.Marshaler, client ThemeExtensionClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Empty - var metadata runtime.ServerMetadata - + var ( + protoReq Empty + metadata runtime.ServerMetadata + ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetBindings(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_ThemeExtension_GetBindings_0(ctx context.Context, marshaler runtime.Marshaler, server ThemeExtensionServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Empty - var metadata runtime.ServerMetadata - + var ( + protoReq Empty + metadata runtime.ServerMetadata + ) msg, err := server.GetBindings(ctx, &protoReq) return msg, metadata, err - } func request_ThemeExtension_GetBinding_0(ctx context.Context, marshaler runtime.Marshaler, client ThemeExtensionClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SimpleName - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq SimpleName + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["name"] + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := client.GetBinding(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_ThemeExtension_GetBinding_0(ctx context.Context, marshaler runtime.Marshaler, server ThemeExtensionServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SimpleName - var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err + protoReq SimpleName + metadata runtime.ServerMetadata + err error ) - - val, ok = pathParams["name"] + val, ok := pathParams["name"] if !ok { return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - protoReq.Name, err = runtime.String(val) if err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } - msg, err := server.GetBinding(ctx, &protoReq) return msg, metadata, err +} +func request_AIExtension_GenerateContent_0(ctx context.Context, marshaler runtime.Marshaler, client AIExtensionClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq GenerateContentRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + msg, err := client.GenerateContent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err } -func request_Mock_Reload_0(ctx context.Context, marshaler runtime.Marshaler, client MockClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MockConfig - var metadata runtime.ServerMetadata +func local_request_AIExtension_GenerateContent_0(ctx context.Context, marshaler runtime.Marshaler, server AIExtensionServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq GenerateContentRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.GenerateContent(ctx, &protoReq) + return msg, metadata, err +} - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) +func request_AIExtension_GenerateSQLFromNaturalLanguage_0(ctx context.Context, marshaler runtime.Marshaler, client AIExtensionClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq GenerateSQLRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + msg, err := client.GenerateSQLFromNaturalLanguage(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err +} + +func local_request_AIExtension_GenerateSQLFromNaturalLanguage_0(ctx context.Context, marshaler runtime.Marshaler, server AIExtensionServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq GenerateSQLRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } + msg, err := server.GenerateSQLFromNaturalLanguage(ctx, &protoReq) + return msg, metadata, err +} +func request_Mock_Reload_0(ctx context.Context, marshaler runtime.Marshaler, client MockClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq MockConfig + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.Reload(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Mock_Reload_0(ctx context.Context, marshaler runtime.Marshaler, server MockServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MockConfig - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq MockConfig + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.Reload(ctx, &protoReq) return msg, metadata, err - } func request_Mock_GetConfig_0(ctx context.Context, marshaler runtime.Marshaler, client MockClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Empty - var metadata runtime.ServerMetadata - + var ( + protoReq Empty + metadata runtime.ServerMetadata + ) + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.GetConfig(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Mock_GetConfig_0(ctx context.Context, marshaler runtime.Marshaler, server MockServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Empty - var metadata runtime.ServerMetadata - + var ( + protoReq Empty + metadata runtime.ServerMetadata + ) msg, err := server.GetConfig(ctx, &protoReq) return msg, metadata, err - } func request_DataServer_Query_0(ctx context.Context, marshaler runtime.Marshaler, client DataServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DataQuery - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq DataQuery + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } msg, err := client.Query(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_DataServer_Query_0(ctx context.Context, marshaler runtime.Marshaler, server DataServerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DataQuery - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + var ( + protoReq DataQuery + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.Query(ctx, &protoReq) return msg, metadata, err - } // RegisterRunnerHandlerServer registers the http handlers for service Runner to "mux". // UnaryRPC :call RunnerServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterRunnerHandlerFromEndpoint instead. +// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RunnerServer) error { - - mux.Handle("POST", pattern_Runner_Run_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_Run_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/Run", runtime.WithHTTPPathPattern("/api/v1/run")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/Run", runtime.WithHTTPPathPattern("/api/v1/run")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2858,27 +2334,22 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_Run_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle("POST", pattern_Runner_RunTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_RunTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return }) - - mux.Handle("GET", pattern_Runner_GetSuites_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_GetSuites_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GetSuites", runtime.WithHTTPPathPattern("/api/v1/suites")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GetSuites", runtime.WithHTTPPathPattern("/api/v1/suites")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2890,20 +2361,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GetSuites_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_CreateTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_CreateTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/CreateTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/CreateTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2915,20 +2381,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_CreateTestSuite_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_ImportTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_ImportTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/ImportTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites/import")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/ImportTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites/import")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2940,20 +2401,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_ImportTestSuite_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_GetTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_GetTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GetTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites/{name}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GetTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2965,20 +2421,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GetTestSuite_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("PUT", pattern_Runner_UpdateTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_Runner_UpdateTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/UpdateTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites/{name}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/UpdateTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -2990,20 +2441,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_UpdateTestSuite_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("DELETE", pattern_Runner_DeleteTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_Runner_DeleteTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/DeleteTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites/{name}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/DeleteTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3015,20 +2461,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_DeleteTestSuite_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_DuplicateTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_DuplicateTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/DuplicateTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites/{sourceSuiteName}/duplicate")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/DuplicateTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites/{sourceSuiteName}/duplicate")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3040,20 +2481,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_DuplicateTestSuite_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_RenameTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_RenameTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/RenameTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites/{sourceSuiteName}/rename")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/RenameTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites/{sourceSuiteName}/rename")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3065,20 +2501,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_RenameTestSuite_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_GetTestSuiteYaml_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_GetTestSuiteYaml_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GetTestSuiteYaml", runtime.WithHTTPPathPattern("/api/v1/suites/{name}/yaml")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GetTestSuiteYaml", runtime.WithHTTPPathPattern("/api/v1/suites/{name}/yaml")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3090,20 +2521,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GetTestSuiteYaml_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_ListTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_ListTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/ListTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{name}/cases")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/ListTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{name}/cases")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3115,20 +2541,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_ListTestCase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_RunTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_RunTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/RunTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{suite}/cases/{testcase}/run")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/RunTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{suite}/cases/{testcase}/run")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3140,27 +2561,22 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_RunTestCase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle("POST", pattern_Runner_BatchRun_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_BatchRun_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return }) - - mux.Handle("GET", pattern_Runner_GetTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_GetTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GetTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{suite}/cases/{testcase}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GetTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{suite}/cases/{testcase}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3172,20 +2588,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GetTestCase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_CreateTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_CreateTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/CreateTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{suiteName}/cases")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/CreateTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{suiteName}/cases")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3197,20 +2608,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_CreateTestCase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("PUT", pattern_Runner_UpdateTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_Runner_UpdateTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/UpdateTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{suiteName}/cases/{data.name}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/UpdateTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{suiteName}/cases/{data.name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3222,20 +2628,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_UpdateTestCase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("DELETE", pattern_Runner_DeleteTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_Runner_DeleteTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/DeleteTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{suite}/cases/{testcase}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/DeleteTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{suite}/cases/{testcase}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3247,20 +2648,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_DeleteTestCase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_DuplicateTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_DuplicateTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/DuplicateTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{sourceSuiteName}/cases/{sourceCaseName}/duplicate")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/DuplicateTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{sourceSuiteName}/cases/{sourceCaseName}/duplicate")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3272,20 +2668,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_DuplicateTestCase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_RenameTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_RenameTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/RenameTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{sourceSuiteName}/cases/{sourceCaseName}/rename")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/RenameTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{sourceSuiteName}/cases/{sourceCaseName}/rename")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3297,20 +2688,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_RenameTestCase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_GetSuggestedAPIs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_GetSuggestedAPIs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GetSuggestedAPIs", runtime.WithHTTPPathPattern("/api/v1/suggestedAPIs")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GetSuggestedAPIs", runtime.WithHTTPPathPattern("/api/v1/suggestedAPIs")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3322,20 +2708,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GetSuggestedAPIs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_GetHistorySuites_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_GetHistorySuites_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GetHistorySuites", runtime.WithHTTPPathPattern("/api/v1/historySuites")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GetHistorySuites", runtime.WithHTTPPathPattern("/api/v1/historySuites")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3347,20 +2728,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GetHistorySuites_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_GetHistoryTestCaseWithResult_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_GetHistoryTestCaseWithResult_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GetHistoryTestCaseWithResult", runtime.WithHTTPPathPattern("/api/v1/historyTestCaseWithResult/{ID}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GetHistoryTestCaseWithResult", runtime.WithHTTPPathPattern("/api/v1/historyTestCaseWithResult/{ID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3372,20 +2748,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GetHistoryTestCaseWithResult_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_GetHistoryTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_GetHistoryTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GetHistoryTestCase", runtime.WithHTTPPathPattern("/api/v1/historyTestCase/{ID}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GetHistoryTestCase", runtime.WithHTTPPathPattern("/api/v1/historyTestCase/{ID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3397,20 +2768,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GetHistoryTestCase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("DELETE", pattern_Runner_DeleteHistoryTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_Runner_DeleteHistoryTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/DeleteHistoryTestCase", runtime.WithHTTPPathPattern("/api/v1/historyTestCase/{ID}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/DeleteHistoryTestCase", runtime.WithHTTPPathPattern("/api/v1/historyTestCase/{ID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3422,20 +2788,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_DeleteHistoryTestCase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("DELETE", pattern_Runner_DeleteAllHistoryTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_Runner_DeleteAllHistoryTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/DeleteAllHistoryTestCase", runtime.WithHTTPPathPattern("/api/v1/historySuites/{suiteName}/cases/{caseName}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/DeleteAllHistoryTestCase", runtime.WithHTTPPathPattern("/api/v1/historySuites/{suiteName}/cases/{caseName}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3447,20 +2808,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_DeleteAllHistoryTestCase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_GetTestCaseAllHistory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_GetTestCaseAllHistory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GetTestCaseAllHistory", runtime.WithHTTPPathPattern("/api/v1/suites/{suiteName}/cases/{name}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GetTestCaseAllHistory", runtime.WithHTTPPathPattern("/api/v1/suites/{suiteName}/cases/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3472,20 +2828,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GetTestCaseAllHistory_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_ListCodeGenerator_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_ListCodeGenerator_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/ListCodeGenerator", runtime.WithHTTPPathPattern("/api/v1/codeGenerators")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/ListCodeGenerator", runtime.WithHTTPPathPattern("/api/v1/codeGenerators")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3497,20 +2848,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_ListCodeGenerator_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_GenerateCode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_GenerateCode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GenerateCode", runtime.WithHTTPPathPattern("/api/v1/codeGenerators/generate")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GenerateCode", runtime.WithHTTPPathPattern("/api/v1/codeGenerators/generate")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3522,20 +2868,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GenerateCode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_HistoryGenerateCode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_HistoryGenerateCode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/HistoryGenerateCode", runtime.WithHTTPPathPattern("/api/v1/codeGenerators/history/generate")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/HistoryGenerateCode", runtime.WithHTTPPathPattern("/api/v1/codeGenerators/history/generate")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3547,20 +2888,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_HistoryGenerateCode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_ListConverter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_ListConverter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/ListConverter", runtime.WithHTTPPathPattern("/api/v1/converters")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/ListConverter", runtime.WithHTTPPathPattern("/api/v1/converters")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3572,20 +2908,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_ListConverter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_ConvertTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_ConvertTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/ConvertTestSuite", runtime.WithHTTPPathPattern("/api/v1/converters/convert")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/ConvertTestSuite", runtime.WithHTTPPathPattern("/api/v1/converters/convert")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3597,20 +2928,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_ConvertTestSuite_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_PopularHeaders_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_PopularHeaders_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/PopularHeaders", runtime.WithHTTPPathPattern("/api/v1/popularHeaders")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/PopularHeaders", runtime.WithHTTPPathPattern("/api/v1/popularHeaders")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3622,20 +2948,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_PopularHeaders_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_FunctionsQuery_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_FunctionsQuery_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/FunctionsQuery", runtime.WithHTTPPathPattern("/api/v1/functions")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/FunctionsQuery", runtime.WithHTTPPathPattern("/api/v1/functions")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3647,27 +2968,22 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_FunctionsQuery_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle("GET", pattern_Runner_FunctionsQueryStream_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_FunctionsQueryStream_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return }) - - mux.Handle("GET", pattern_Runner_GetVersion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_GetVersion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GetVersion", runtime.WithHTTPPathPattern("/api/v1/version")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GetVersion", runtime.WithHTTPPathPattern("/api/v1/version")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3679,20 +2995,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GetVersion_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_Sample_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_Sample_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/Sample", runtime.WithHTTPPathPattern("/api/v1/sample")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/Sample", runtime.WithHTTPPathPattern("/api/v1/sample")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3704,20 +3015,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_Sample_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_DownloadResponseFile_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_DownloadResponseFile_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/DownloadResponseFile", runtime.WithHTTPPathPattern("/api/v1/downloadFile/{response.body}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/DownloadResponseFile", runtime.WithHTTPPathPattern("/api/v1/downloadFile/{response.body}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3729,20 +3035,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_DownloadResponseFile_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_GetStoreKinds_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_GetStoreKinds_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GetStoreKinds", runtime.WithHTTPPathPattern("/api/v1/stores/kinds")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GetStoreKinds", runtime.WithHTTPPathPattern("/api/v1/stores/kinds")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3754,20 +3055,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GetStoreKinds_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_GetStores_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_GetStores_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GetStores", runtime.WithHTTPPathPattern("/api/v1/stores")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GetStores", runtime.WithHTTPPathPattern("/api/v1/stores")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3779,20 +3075,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GetStores_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_CreateStore_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_CreateStore_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/CreateStore", runtime.WithHTTPPathPattern("/api/v1/stores")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/CreateStore", runtime.WithHTTPPathPattern("/api/v1/stores")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3804,20 +3095,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_CreateStore_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("PUT", pattern_Runner_UpdateStore_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_Runner_UpdateStore_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/UpdateStore", runtime.WithHTTPPathPattern("/api/v1/stores/{name}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/UpdateStore", runtime.WithHTTPPathPattern("/api/v1/stores/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3829,20 +3115,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_UpdateStore_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("DELETE", pattern_Runner_DeleteStore_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_Runner_DeleteStore_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/DeleteStore", runtime.WithHTTPPathPattern("/api/v1/stores/{name}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/DeleteStore", runtime.WithHTTPPathPattern("/api/v1/stores/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3854,20 +3135,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_DeleteStore_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_VerifyStore_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_VerifyStore_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/VerifyStore", runtime.WithHTTPPathPattern("/api/v1/stores/verify")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/VerifyStore", runtime.WithHTTPPathPattern("/api/v1/stores/verify")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3879,20 +3155,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_VerifyStore_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_GetSecrets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_GetSecrets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GetSecrets", runtime.WithHTTPPathPattern("/api/v1/secrets")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/GetSecrets", runtime.WithHTTPPathPattern("/api/v1/secrets")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3904,20 +3175,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GetSecrets_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_CreateSecret_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_CreateSecret_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/CreateSecret", runtime.WithHTTPPathPattern("/api/v1/secrets")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/CreateSecret", runtime.WithHTTPPathPattern("/api/v1/secrets")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3929,20 +3195,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_CreateSecret_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("DELETE", pattern_Runner_DeleteSecret_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_Runner_DeleteSecret_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/DeleteSecret", runtime.WithHTTPPathPattern("/api/v1/secrets/{Name}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/DeleteSecret", runtime.WithHTTPPathPattern("/api/v1/secrets/{Name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3954,20 +3215,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_DeleteSecret_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("PUT", pattern_Runner_UpdateSecret_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_Runner_UpdateSecret_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/UpdateSecret", runtime.WithHTTPPathPattern("/api/v1/secrets/{Name}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/UpdateSecret", runtime.WithHTTPPathPattern("/api/v1/secrets/{Name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -3979,20 +3235,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_UpdateSecret_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_PProf_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_PProf_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/PProf", runtime.WithHTTPPathPattern("/server.Runner/PProf")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Runner/PProf", runtime.WithHTTPPathPattern("/server.Runner/PProf")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4004,9 +3255,7 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_PProf_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -4016,17 +3265,15 @@ func RegisterRunnerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser // UnaryRPC :call RunnerExtensionServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterRunnerExtensionHandlerFromEndpoint instead. +// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. func RegisterRunnerExtensionHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RunnerExtensionServer) error { - - mux.Handle("POST", pattern_RunnerExtension_Run_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_RunnerExtension_Run_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.RunnerExtension/Run", runtime.WithHTTPPathPattern("/api/v1/extension/run")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.RunnerExtension/Run", runtime.WithHTTPPathPattern("/api/v1/extension/run")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4038,9 +3285,7 @@ func RegisterRunnerExtensionHandlerServer(ctx context.Context, mux *runtime.Serv runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_RunnerExtension_Run_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -4050,17 +3295,15 @@ func RegisterRunnerExtensionHandlerServer(ctx context.Context, mux *runtime.Serv // UnaryRPC :call ThemeExtensionServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterThemeExtensionHandlerFromEndpoint instead. +// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. func RegisterThemeExtensionHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ThemeExtensionServer) error { - - mux.Handle("GET", pattern_ThemeExtension_GetThemes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_ThemeExtension_GetThemes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.ThemeExtension/GetThemes", runtime.WithHTTPPathPattern("/api/v1/themes")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.ThemeExtension/GetThemes", runtime.WithHTTPPathPattern("/api/v1/themes")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4072,20 +3315,15 @@ func RegisterThemeExtensionHandlerServer(ctx context.Context, mux *runtime.Serve runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ThemeExtension_GetThemes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_ThemeExtension_GetTheme_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_ThemeExtension_GetTheme_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.ThemeExtension/GetTheme", runtime.WithHTTPPathPattern("/api/v1/themes/{name}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.ThemeExtension/GetTheme", runtime.WithHTTPPathPattern("/api/v1/themes/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4097,20 +3335,15 @@ func RegisterThemeExtensionHandlerServer(ctx context.Context, mux *runtime.Serve runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ThemeExtension_GetTheme_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_ThemeExtension_GetBindings_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_ThemeExtension_GetBindings_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.ThemeExtension/GetBindings", runtime.WithHTTPPathPattern("/api/v1/bindings")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.ThemeExtension/GetBindings", runtime.WithHTTPPathPattern("/api/v1/bindings")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4122,20 +3355,15 @@ func RegisterThemeExtensionHandlerServer(ctx context.Context, mux *runtime.Serve runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ThemeExtension_GetBindings_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_ThemeExtension_GetBinding_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_ThemeExtension_GetBinding_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.ThemeExtension/GetBinding", runtime.WithHTTPPathPattern("/api/v1/bindings/{name}")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.ThemeExtension/GetBinding", runtime.WithHTTPPathPattern("/api/v1/bindings/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4147,9 +3375,57 @@ func RegisterThemeExtensionHandlerServer(ctx context.Context, mux *runtime.Serve runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ThemeExtension_GetBinding_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) + + return nil +} +// RegisterAIExtensionHandlerServer registers the http handlers for service AIExtension to "mux". +// UnaryRPC :call AIExtensionServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAIExtensionHandlerFromEndpoint instead. +// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. +func RegisterAIExtensionHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AIExtensionServer) error { + mux.Handle(http.MethodPost, pattern_AIExtension_GenerateContent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.AIExtension/GenerateContent", runtime.WithHTTPPathPattern("/api/v1/ai/generate")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AIExtension_GenerateContent_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + forward_AIExtension_GenerateContent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) + mux.Handle(http.MethodPost, pattern_AIExtension_GenerateSQLFromNaturalLanguage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.AIExtension/GenerateSQLFromNaturalLanguage", runtime.WithHTTPPathPattern("/api/v1/ai/sql/generate")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AIExtension_GenerateSQLFromNaturalLanguage_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + forward_AIExtension_GenerateSQLFromNaturalLanguage_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) return nil @@ -4159,17 +3435,15 @@ func RegisterThemeExtensionHandlerServer(ctx context.Context, mux *runtime.Serve // UnaryRPC :call MockServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterMockHandlerFromEndpoint instead. +// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. func RegisterMockHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MockServer) error { - - mux.Handle("POST", pattern_Mock_Reload_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Mock_Reload_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Mock/Reload", runtime.WithHTTPPathPattern("/api/v1/mock/reload")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Mock/Reload", runtime.WithHTTPPathPattern("/api/v1/mock/reload")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4181,20 +3455,15 @@ func RegisterMockHandlerServer(ctx context.Context, mux *runtime.ServeMux, serve runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Mock_Reload_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Mock_GetConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Mock_GetConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Mock/GetConfig", runtime.WithHTTPPathPattern("/api/v1/mock/config")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.Mock/GetConfig", runtime.WithHTTPPathPattern("/api/v1/mock/config")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4206,9 +3475,7 @@ func RegisterMockHandlerServer(ctx context.Context, mux *runtime.ServeMux, serve runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Mock_GetConfig_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -4218,17 +3485,15 @@ func RegisterMockHandlerServer(ctx context.Context, mux *runtime.ServeMux, serve // UnaryRPC :call DataServerServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterDataServerHandlerFromEndpoint instead. +// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. func RegisterDataServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DataServerServer) error { - - mux.Handle("POST", pattern_DataServer_Query_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_DataServer_Query_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/server.DataServer/Query", runtime.WithHTTPPathPattern("/api/v1/data/query")) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.DataServer/Query", runtime.WithHTTPPathPattern("/api/v1/data/query")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4240,9 +3505,7 @@ func RegisterDataServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_DataServer_Query_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -4251,25 +3514,24 @@ func RegisterDataServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, // RegisterRunnerHandlerFromEndpoint is same as RegisterRunnerHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterRunnerHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.DialContext(ctx, endpoint, opts...) + conn, err := grpc.NewClient(endpoint, opts...) if err != nil { return err } defer func() { if err != nil { if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } return } go func() { <-ctx.Done() if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } }() }() - return RegisterRunnerHandler(ctx, mux, conn) } @@ -4283,16 +3545,13 @@ func RegisterRunnerHandler(ctx context.Context, mux *runtime.ServeMux, conn *grp // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "RunnerClient". // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "RunnerClient" // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "RunnerClient" to call the correct interceptors. +// "RunnerClient" to call the correct interceptors. This client ignores the HTTP middlewares. func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RunnerClient) error { - - mux.Handle("POST", pattern_Runner_Run_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_Run_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/Run", runtime.WithHTTPPathPattern("/api/v1/run")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/Run", runtime.WithHTTPPathPattern("/api/v1/run")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4303,18 +3562,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_Run_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_RunTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_RunTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/RunTestSuite", runtime.WithHTTPPathPattern("/api/v1/run/suite")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/RunTestSuite", runtime.WithHTTPPathPattern("/api/v1/run/suite")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4325,18 +3579,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_RunTestSuite_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_GetSuites_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_GetSuites_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GetSuites", runtime.WithHTTPPathPattern("/api/v1/suites")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GetSuites", runtime.WithHTTPPathPattern("/api/v1/suites")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4347,18 +3596,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GetSuites_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_CreateTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_CreateTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/CreateTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/CreateTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4369,18 +3613,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_CreateTestSuite_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_ImportTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_ImportTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/ImportTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites/import")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/ImportTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites/import")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4391,18 +3630,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_ImportTestSuite_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_GetTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_GetTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GetTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites/{name}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GetTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4413,18 +3647,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GetTestSuite_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("PUT", pattern_Runner_UpdateTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_Runner_UpdateTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/UpdateTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites/{name}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/UpdateTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4435,18 +3664,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_UpdateTestSuite_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("DELETE", pattern_Runner_DeleteTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_Runner_DeleteTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/DeleteTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites/{name}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/DeleteTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4457,18 +3681,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_DeleteTestSuite_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_DuplicateTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_DuplicateTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/DuplicateTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites/{sourceSuiteName}/duplicate")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/DuplicateTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites/{sourceSuiteName}/duplicate")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4479,18 +3698,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_DuplicateTestSuite_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_RenameTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_RenameTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/RenameTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites/{sourceSuiteName}/rename")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/RenameTestSuite", runtime.WithHTTPPathPattern("/api/v1/suites/{sourceSuiteName}/rename")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4501,18 +3715,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_RenameTestSuite_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_GetTestSuiteYaml_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_GetTestSuiteYaml_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GetTestSuiteYaml", runtime.WithHTTPPathPattern("/api/v1/suites/{name}/yaml")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GetTestSuiteYaml", runtime.WithHTTPPathPattern("/api/v1/suites/{name}/yaml")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4523,18 +3732,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GetTestSuiteYaml_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_ListTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_ListTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/ListTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{name}/cases")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/ListTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{name}/cases")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4545,18 +3749,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_ListTestCase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_RunTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_RunTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/RunTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{suite}/cases/{testcase}/run")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/RunTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{suite}/cases/{testcase}/run")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4567,18 +3766,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_RunTestCase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_BatchRun_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_BatchRun_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/BatchRun", runtime.WithHTTPPathPattern("/api/v1/batchRun")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/BatchRun", runtime.WithHTTPPathPattern("/api/v1/batchRun")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4589,18 +3783,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_BatchRun_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_GetTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_GetTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GetTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{suite}/cases/{testcase}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GetTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{suite}/cases/{testcase}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4611,18 +3800,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GetTestCase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_CreateTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_CreateTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/CreateTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{suiteName}/cases")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/CreateTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{suiteName}/cases")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4633,18 +3817,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_CreateTestCase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("PUT", pattern_Runner_UpdateTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_Runner_UpdateTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/UpdateTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{suiteName}/cases/{data.name}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/UpdateTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{suiteName}/cases/{data.name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4655,18 +3834,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_UpdateTestCase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("DELETE", pattern_Runner_DeleteTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_Runner_DeleteTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/DeleteTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{suite}/cases/{testcase}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/DeleteTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{suite}/cases/{testcase}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4677,18 +3851,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_DeleteTestCase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_DuplicateTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_DuplicateTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/DuplicateTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{sourceSuiteName}/cases/{sourceCaseName}/duplicate")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/DuplicateTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{sourceSuiteName}/cases/{sourceCaseName}/duplicate")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4699,18 +3868,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_DuplicateTestCase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_RenameTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_RenameTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/RenameTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{sourceSuiteName}/cases/{sourceCaseName}/rename")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/RenameTestCase", runtime.WithHTTPPathPattern("/api/v1/suites/{sourceSuiteName}/cases/{sourceCaseName}/rename")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4721,18 +3885,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_RenameTestCase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_GetSuggestedAPIs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_GetSuggestedAPIs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GetSuggestedAPIs", runtime.WithHTTPPathPattern("/api/v1/suggestedAPIs")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GetSuggestedAPIs", runtime.WithHTTPPathPattern("/api/v1/suggestedAPIs")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4743,18 +3902,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GetSuggestedAPIs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_GetHistorySuites_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_GetHistorySuites_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GetHistorySuites", runtime.WithHTTPPathPattern("/api/v1/historySuites")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GetHistorySuites", runtime.WithHTTPPathPattern("/api/v1/historySuites")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4765,18 +3919,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GetHistorySuites_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_GetHistoryTestCaseWithResult_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_GetHistoryTestCaseWithResult_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GetHistoryTestCaseWithResult", runtime.WithHTTPPathPattern("/api/v1/historyTestCaseWithResult/{ID}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GetHistoryTestCaseWithResult", runtime.WithHTTPPathPattern("/api/v1/historyTestCaseWithResult/{ID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4787,18 +3936,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GetHistoryTestCaseWithResult_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_GetHistoryTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_GetHistoryTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GetHistoryTestCase", runtime.WithHTTPPathPattern("/api/v1/historyTestCase/{ID}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GetHistoryTestCase", runtime.WithHTTPPathPattern("/api/v1/historyTestCase/{ID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4809,18 +3953,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GetHistoryTestCase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("DELETE", pattern_Runner_DeleteHistoryTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_Runner_DeleteHistoryTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/DeleteHistoryTestCase", runtime.WithHTTPPathPattern("/api/v1/historyTestCase/{ID}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/DeleteHistoryTestCase", runtime.WithHTTPPathPattern("/api/v1/historyTestCase/{ID}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4831,18 +3970,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_DeleteHistoryTestCase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("DELETE", pattern_Runner_DeleteAllHistoryTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_Runner_DeleteAllHistoryTestCase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/DeleteAllHistoryTestCase", runtime.WithHTTPPathPattern("/api/v1/historySuites/{suiteName}/cases/{caseName}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/DeleteAllHistoryTestCase", runtime.WithHTTPPathPattern("/api/v1/historySuites/{suiteName}/cases/{caseName}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4853,18 +3987,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_DeleteAllHistoryTestCase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_GetTestCaseAllHistory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_GetTestCaseAllHistory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GetTestCaseAllHistory", runtime.WithHTTPPathPattern("/api/v1/suites/{suiteName}/cases/{name}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GetTestCaseAllHistory", runtime.WithHTTPPathPattern("/api/v1/suites/{suiteName}/cases/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4875,18 +4004,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GetTestCaseAllHistory_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_ListCodeGenerator_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_ListCodeGenerator_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/ListCodeGenerator", runtime.WithHTTPPathPattern("/api/v1/codeGenerators")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/ListCodeGenerator", runtime.WithHTTPPathPattern("/api/v1/codeGenerators")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4897,18 +4021,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_ListCodeGenerator_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_GenerateCode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_GenerateCode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GenerateCode", runtime.WithHTTPPathPattern("/api/v1/codeGenerators/generate")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GenerateCode", runtime.WithHTTPPathPattern("/api/v1/codeGenerators/generate")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4919,18 +4038,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GenerateCode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_HistoryGenerateCode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_HistoryGenerateCode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/HistoryGenerateCode", runtime.WithHTTPPathPattern("/api/v1/codeGenerators/history/generate")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/HistoryGenerateCode", runtime.WithHTTPPathPattern("/api/v1/codeGenerators/history/generate")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4941,18 +4055,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_HistoryGenerateCode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_ListConverter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_ListConverter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/ListConverter", runtime.WithHTTPPathPattern("/api/v1/converters")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/ListConverter", runtime.WithHTTPPathPattern("/api/v1/converters")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4963,18 +4072,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_ListConverter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_ConvertTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_ConvertTestSuite_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/ConvertTestSuite", runtime.WithHTTPPathPattern("/api/v1/converters/convert")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/ConvertTestSuite", runtime.WithHTTPPathPattern("/api/v1/converters/convert")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -4985,18 +4089,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_ConvertTestSuite_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_PopularHeaders_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_PopularHeaders_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/PopularHeaders", runtime.WithHTTPPathPattern("/api/v1/popularHeaders")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/PopularHeaders", runtime.WithHTTPPathPattern("/api/v1/popularHeaders")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5007,18 +4106,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_PopularHeaders_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_FunctionsQuery_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_FunctionsQuery_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/FunctionsQuery", runtime.WithHTTPPathPattern("/api/v1/functions")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/FunctionsQuery", runtime.WithHTTPPathPattern("/api/v1/functions")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5029,18 +4123,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_FunctionsQuery_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_FunctionsQueryStream_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_FunctionsQueryStream_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/FunctionsQueryStream", runtime.WithHTTPPathPattern("/api/v1/functionsQuery")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/FunctionsQueryStream", runtime.WithHTTPPathPattern("/api/v1/functionsQuery")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5051,18 +4140,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_FunctionsQueryStream_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_GetVersion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_GetVersion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GetVersion", runtime.WithHTTPPathPattern("/api/v1/version")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GetVersion", runtime.WithHTTPPathPattern("/api/v1/version")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5073,18 +4157,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GetVersion_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_Sample_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_Sample_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/Sample", runtime.WithHTTPPathPattern("/api/v1/sample")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/Sample", runtime.WithHTTPPathPattern("/api/v1/sample")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5095,18 +4174,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_Sample_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_DownloadResponseFile_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_DownloadResponseFile_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/DownloadResponseFile", runtime.WithHTTPPathPattern("/api/v1/downloadFile/{response.body}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/DownloadResponseFile", runtime.WithHTTPPathPattern("/api/v1/downloadFile/{response.body}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5117,18 +4191,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_DownloadResponseFile_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_GetStoreKinds_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_GetStoreKinds_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GetStoreKinds", runtime.WithHTTPPathPattern("/api/v1/stores/kinds")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GetStoreKinds", runtime.WithHTTPPathPattern("/api/v1/stores/kinds")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5139,18 +4208,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GetStoreKinds_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_GetStores_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_GetStores_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GetStores", runtime.WithHTTPPathPattern("/api/v1/stores")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GetStores", runtime.WithHTTPPathPattern("/api/v1/stores")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5161,18 +4225,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GetStores_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_CreateStore_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_CreateStore_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/CreateStore", runtime.WithHTTPPathPattern("/api/v1/stores")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/CreateStore", runtime.WithHTTPPathPattern("/api/v1/stores")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5183,18 +4242,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_CreateStore_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("PUT", pattern_Runner_UpdateStore_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_Runner_UpdateStore_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/UpdateStore", runtime.WithHTTPPathPattern("/api/v1/stores/{name}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/UpdateStore", runtime.WithHTTPPathPattern("/api/v1/stores/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5205,18 +4259,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_UpdateStore_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("DELETE", pattern_Runner_DeleteStore_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_Runner_DeleteStore_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/DeleteStore", runtime.WithHTTPPathPattern("/api/v1/stores/{name}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/DeleteStore", runtime.WithHTTPPathPattern("/api/v1/stores/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5227,18 +4276,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_DeleteStore_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_VerifyStore_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_VerifyStore_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/VerifyStore", runtime.WithHTTPPathPattern("/api/v1/stores/verify")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/VerifyStore", runtime.WithHTTPPathPattern("/api/v1/stores/verify")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5249,18 +4293,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_VerifyStore_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Runner_GetSecrets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Runner_GetSecrets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GetSecrets", runtime.WithHTTPPathPattern("/api/v1/secrets")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/GetSecrets", runtime.WithHTTPPathPattern("/api/v1/secrets")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5271,18 +4310,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_GetSecrets_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_CreateSecret_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_CreateSecret_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/CreateSecret", runtime.WithHTTPPathPattern("/api/v1/secrets")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/CreateSecret", runtime.WithHTTPPathPattern("/api/v1/secrets")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5293,18 +4327,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_CreateSecret_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("DELETE", pattern_Runner_DeleteSecret_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodDelete, pattern_Runner_DeleteSecret_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/DeleteSecret", runtime.WithHTTPPathPattern("/api/v1/secrets/{Name}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/DeleteSecret", runtime.WithHTTPPathPattern("/api/v1/secrets/{Name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5315,18 +4344,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_DeleteSecret_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("PUT", pattern_Runner_UpdateSecret_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPut, pattern_Runner_UpdateSecret_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/UpdateSecret", runtime.WithHTTPPathPattern("/api/v1/secrets/{Name}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/UpdateSecret", runtime.WithHTTPPathPattern("/api/v1/secrets/{Name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5337,18 +4361,13 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_UpdateSecret_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("POST", pattern_Runner_PProf_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Runner_PProf_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Runner/PProf", runtime.WithHTTPPathPattern("/server.Runner/PProf")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Runner/PProf", runtime.WithHTTPPathPattern("/server.Runner/PProf")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5359,236 +4378,136 @@ func RegisterRunnerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Runner_PProf_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - return nil } var ( - pattern_Runner_Run_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "run"}, "")) - - pattern_Runner_RunTestSuite_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "run", "suite"}, "")) - - pattern_Runner_GetSuites_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "suites"}, "")) - - pattern_Runner_CreateTestSuite_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "suites"}, "")) - - pattern_Runner_ImportTestSuite_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "suites", "import"}, "")) - - pattern_Runner_GetTestSuite_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "suites", "name"}, "")) - - pattern_Runner_UpdateTestSuite_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "suites", "name"}, "")) - - pattern_Runner_DeleteTestSuite_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "suites", "name"}, "")) - - pattern_Runner_DuplicateTestSuite_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "suites", "sourceSuiteName", "duplicate"}, "")) - - pattern_Runner_RenameTestSuite_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "suites", "sourceSuiteName", "rename"}, "")) - - pattern_Runner_GetTestSuiteYaml_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "suites", "name", "yaml"}, "")) - - pattern_Runner_ListTestCase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "suites", "name", "cases"}, "")) - - pattern_Runner_RunTestCase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"api", "v1", "suites", "suite", "cases", "testcase", "run"}, "")) - - pattern_Runner_BatchRun_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "batchRun"}, "")) - - pattern_Runner_GetTestCase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "suites", "suite", "cases", "testcase"}, "")) - - pattern_Runner_CreateTestCase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "suites", "suiteName", "cases"}, "")) - - pattern_Runner_UpdateTestCase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "suites", "suiteName", "cases", "data.name"}, "")) - - pattern_Runner_DeleteTestCase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "suites", "suite", "cases", "testcase"}, "")) - - pattern_Runner_DuplicateTestCase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"api", "v1", "suites", "sourceSuiteName", "cases", "sourceCaseName", "duplicate"}, "")) - - pattern_Runner_RenameTestCase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"api", "v1", "suites", "sourceSuiteName", "cases", "sourceCaseName", "rename"}, "")) - - pattern_Runner_GetSuggestedAPIs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "suggestedAPIs"}, "")) - - pattern_Runner_GetHistorySuites_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "historySuites"}, "")) - + pattern_Runner_Run_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "run"}, "")) + pattern_Runner_RunTestSuite_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "run", "suite"}, "")) + pattern_Runner_GetSuites_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "suites"}, "")) + pattern_Runner_CreateTestSuite_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "suites"}, "")) + pattern_Runner_ImportTestSuite_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "suites", "import"}, "")) + pattern_Runner_GetTestSuite_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "suites", "name"}, "")) + pattern_Runner_UpdateTestSuite_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "suites", "name"}, "")) + pattern_Runner_DeleteTestSuite_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "suites", "name"}, "")) + pattern_Runner_DuplicateTestSuite_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "suites", "sourceSuiteName", "duplicate"}, "")) + pattern_Runner_RenameTestSuite_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "suites", "sourceSuiteName", "rename"}, "")) + pattern_Runner_GetTestSuiteYaml_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "suites", "name", "yaml"}, "")) + pattern_Runner_ListTestCase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "suites", "name", "cases"}, "")) + pattern_Runner_RunTestCase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"api", "v1", "suites", "suite", "cases", "testcase", "run"}, "")) + pattern_Runner_BatchRun_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "batchRun"}, "")) + pattern_Runner_GetTestCase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "suites", "suite", "cases", "testcase"}, "")) + pattern_Runner_CreateTestCase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "suites", "suiteName", "cases"}, "")) + pattern_Runner_UpdateTestCase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "suites", "suiteName", "cases", "data.name"}, "")) + pattern_Runner_DeleteTestCase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "suites", "suite", "cases", "testcase"}, "")) + pattern_Runner_DuplicateTestCase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"api", "v1", "suites", "sourceSuiteName", "cases", "sourceCaseName", "duplicate"}, "")) + pattern_Runner_RenameTestCase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"api", "v1", "suites", "sourceSuiteName", "cases", "sourceCaseName", "rename"}, "")) + pattern_Runner_GetSuggestedAPIs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "suggestedAPIs"}, "")) + pattern_Runner_GetHistorySuites_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "historySuites"}, "")) pattern_Runner_GetHistoryTestCaseWithResult_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "historyTestCaseWithResult", "ID"}, "")) - - pattern_Runner_GetHistoryTestCase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "historyTestCase", "ID"}, "")) - - pattern_Runner_DeleteHistoryTestCase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "historyTestCase", "ID"}, "")) - - pattern_Runner_DeleteAllHistoryTestCase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "historySuites", "suiteName", "cases", "caseName"}, "")) - - pattern_Runner_GetTestCaseAllHistory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "suites", "suiteName", "cases", "name"}, "")) - - pattern_Runner_ListCodeGenerator_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "codeGenerators"}, "")) - - pattern_Runner_GenerateCode_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "codeGenerators", "generate"}, "")) - - pattern_Runner_HistoryGenerateCode_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"api", "v1", "codeGenerators", "history", "generate"}, "")) - - pattern_Runner_ListConverter_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "converters"}, "")) - - pattern_Runner_ConvertTestSuite_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "converters", "convert"}, "")) - - pattern_Runner_PopularHeaders_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "popularHeaders"}, "")) - - pattern_Runner_FunctionsQuery_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "functions"}, "")) - - pattern_Runner_FunctionsQueryStream_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "functionsQuery"}, "")) - - pattern_Runner_GetVersion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "version"}, "")) - - pattern_Runner_Sample_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "sample"}, "")) - - pattern_Runner_DownloadResponseFile_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "downloadFile", "response.body"}, "")) - - pattern_Runner_GetStoreKinds_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "stores", "kinds"}, "")) - - pattern_Runner_GetStores_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "stores"}, "")) - - pattern_Runner_CreateStore_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "stores"}, "")) - - pattern_Runner_UpdateStore_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "stores", "name"}, "")) - - pattern_Runner_DeleteStore_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "stores", "name"}, "")) - - pattern_Runner_VerifyStore_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "stores", "verify"}, "")) - - pattern_Runner_GetSecrets_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "secrets"}, "")) - - pattern_Runner_CreateSecret_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "secrets"}, "")) - - pattern_Runner_DeleteSecret_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "secrets", "Name"}, "")) - - pattern_Runner_UpdateSecret_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "secrets", "Name"}, "")) - - pattern_Runner_PProf_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"server.Runner", "PProf"}, "")) + pattern_Runner_GetHistoryTestCase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "historyTestCase", "ID"}, "")) + pattern_Runner_DeleteHistoryTestCase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "historyTestCase", "ID"}, "")) + pattern_Runner_DeleteAllHistoryTestCase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "historySuites", "suiteName", "cases", "caseName"}, "")) + pattern_Runner_GetTestCaseAllHistory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "suites", "suiteName", "cases", "name"}, "")) + pattern_Runner_ListCodeGenerator_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "codeGenerators"}, "")) + pattern_Runner_GenerateCode_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "codeGenerators", "generate"}, "")) + pattern_Runner_HistoryGenerateCode_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"api", "v1", "codeGenerators", "history", "generate"}, "")) + pattern_Runner_ListConverter_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "converters"}, "")) + pattern_Runner_ConvertTestSuite_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "converters", "convert"}, "")) + pattern_Runner_PopularHeaders_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "popularHeaders"}, "")) + pattern_Runner_FunctionsQuery_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "functions"}, "")) + pattern_Runner_FunctionsQueryStream_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "functionsQuery"}, "")) + pattern_Runner_GetVersion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "version"}, "")) + pattern_Runner_Sample_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "sample"}, "")) + pattern_Runner_DownloadResponseFile_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "downloadFile", "response.body"}, "")) + pattern_Runner_GetStoreKinds_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "stores", "kinds"}, "")) + pattern_Runner_GetStores_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "stores"}, "")) + pattern_Runner_CreateStore_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "stores"}, "")) + pattern_Runner_UpdateStore_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "stores", "name"}, "")) + pattern_Runner_DeleteStore_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "stores", "name"}, "")) + pattern_Runner_VerifyStore_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "stores", "verify"}, "")) + pattern_Runner_GetSecrets_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "secrets"}, "")) + pattern_Runner_CreateSecret_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "secrets"}, "")) + pattern_Runner_DeleteSecret_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "secrets", "Name"}, "")) + pattern_Runner_UpdateSecret_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "secrets", "Name"}, "")) + pattern_Runner_PProf_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"server.Runner", "PProf"}, "")) ) var ( - forward_Runner_Run_0 = runtime.ForwardResponseMessage - - forward_Runner_RunTestSuite_0 = runtime.ForwardResponseStream - - forward_Runner_GetSuites_0 = runtime.ForwardResponseMessage - - forward_Runner_CreateTestSuite_0 = runtime.ForwardResponseMessage - - forward_Runner_ImportTestSuite_0 = runtime.ForwardResponseMessage - - forward_Runner_GetTestSuite_0 = runtime.ForwardResponseMessage - - forward_Runner_UpdateTestSuite_0 = runtime.ForwardResponseMessage - - forward_Runner_DeleteTestSuite_0 = runtime.ForwardResponseMessage - - forward_Runner_DuplicateTestSuite_0 = runtime.ForwardResponseMessage - - forward_Runner_RenameTestSuite_0 = runtime.ForwardResponseMessage - - forward_Runner_GetTestSuiteYaml_0 = runtime.ForwardResponseMessage - - forward_Runner_ListTestCase_0 = runtime.ForwardResponseMessage - - forward_Runner_RunTestCase_0 = runtime.ForwardResponseMessage - - forward_Runner_BatchRun_0 = runtime.ForwardResponseStream - - forward_Runner_GetTestCase_0 = runtime.ForwardResponseMessage - - forward_Runner_CreateTestCase_0 = runtime.ForwardResponseMessage - - forward_Runner_UpdateTestCase_0 = runtime.ForwardResponseMessage - - forward_Runner_DeleteTestCase_0 = runtime.ForwardResponseMessage - - forward_Runner_DuplicateTestCase_0 = runtime.ForwardResponseMessage - - forward_Runner_RenameTestCase_0 = runtime.ForwardResponseMessage - - forward_Runner_GetSuggestedAPIs_0 = runtime.ForwardResponseMessage - - forward_Runner_GetHistorySuites_0 = runtime.ForwardResponseMessage - + forward_Runner_Run_0 = runtime.ForwardResponseMessage + forward_Runner_RunTestSuite_0 = runtime.ForwardResponseStream + forward_Runner_GetSuites_0 = runtime.ForwardResponseMessage + forward_Runner_CreateTestSuite_0 = runtime.ForwardResponseMessage + forward_Runner_ImportTestSuite_0 = runtime.ForwardResponseMessage + forward_Runner_GetTestSuite_0 = runtime.ForwardResponseMessage + forward_Runner_UpdateTestSuite_0 = runtime.ForwardResponseMessage + forward_Runner_DeleteTestSuite_0 = runtime.ForwardResponseMessage + forward_Runner_DuplicateTestSuite_0 = runtime.ForwardResponseMessage + forward_Runner_RenameTestSuite_0 = runtime.ForwardResponseMessage + forward_Runner_GetTestSuiteYaml_0 = runtime.ForwardResponseMessage + forward_Runner_ListTestCase_0 = runtime.ForwardResponseMessage + forward_Runner_RunTestCase_0 = runtime.ForwardResponseMessage + forward_Runner_BatchRun_0 = runtime.ForwardResponseStream + forward_Runner_GetTestCase_0 = runtime.ForwardResponseMessage + forward_Runner_CreateTestCase_0 = runtime.ForwardResponseMessage + forward_Runner_UpdateTestCase_0 = runtime.ForwardResponseMessage + forward_Runner_DeleteTestCase_0 = runtime.ForwardResponseMessage + forward_Runner_DuplicateTestCase_0 = runtime.ForwardResponseMessage + forward_Runner_RenameTestCase_0 = runtime.ForwardResponseMessage + forward_Runner_GetSuggestedAPIs_0 = runtime.ForwardResponseMessage + forward_Runner_GetHistorySuites_0 = runtime.ForwardResponseMessage forward_Runner_GetHistoryTestCaseWithResult_0 = runtime.ForwardResponseMessage - - forward_Runner_GetHistoryTestCase_0 = runtime.ForwardResponseMessage - - forward_Runner_DeleteHistoryTestCase_0 = runtime.ForwardResponseMessage - - forward_Runner_DeleteAllHistoryTestCase_0 = runtime.ForwardResponseMessage - - forward_Runner_GetTestCaseAllHistory_0 = runtime.ForwardResponseMessage - - forward_Runner_ListCodeGenerator_0 = runtime.ForwardResponseMessage - - forward_Runner_GenerateCode_0 = runtime.ForwardResponseMessage - - forward_Runner_HistoryGenerateCode_0 = runtime.ForwardResponseMessage - - forward_Runner_ListConverter_0 = runtime.ForwardResponseMessage - - forward_Runner_ConvertTestSuite_0 = runtime.ForwardResponseMessage - - forward_Runner_PopularHeaders_0 = runtime.ForwardResponseMessage - - forward_Runner_FunctionsQuery_0 = runtime.ForwardResponseMessage - - forward_Runner_FunctionsQueryStream_0 = runtime.ForwardResponseStream - - forward_Runner_GetVersion_0 = runtime.ForwardResponseMessage - - forward_Runner_Sample_0 = runtime.ForwardResponseMessage - - forward_Runner_DownloadResponseFile_0 = runtime.ForwardResponseMessage - - forward_Runner_GetStoreKinds_0 = runtime.ForwardResponseMessage - - forward_Runner_GetStores_0 = runtime.ForwardResponseMessage - - forward_Runner_CreateStore_0 = runtime.ForwardResponseMessage - - forward_Runner_UpdateStore_0 = runtime.ForwardResponseMessage - - forward_Runner_DeleteStore_0 = runtime.ForwardResponseMessage - - forward_Runner_VerifyStore_0 = runtime.ForwardResponseMessage - - forward_Runner_GetSecrets_0 = runtime.ForwardResponseMessage - - forward_Runner_CreateSecret_0 = runtime.ForwardResponseMessage - - forward_Runner_DeleteSecret_0 = runtime.ForwardResponseMessage - - forward_Runner_UpdateSecret_0 = runtime.ForwardResponseMessage - - forward_Runner_PProf_0 = runtime.ForwardResponseMessage + forward_Runner_GetHistoryTestCase_0 = runtime.ForwardResponseMessage + forward_Runner_DeleteHistoryTestCase_0 = runtime.ForwardResponseMessage + forward_Runner_DeleteAllHistoryTestCase_0 = runtime.ForwardResponseMessage + forward_Runner_GetTestCaseAllHistory_0 = runtime.ForwardResponseMessage + forward_Runner_ListCodeGenerator_0 = runtime.ForwardResponseMessage + forward_Runner_GenerateCode_0 = runtime.ForwardResponseMessage + forward_Runner_HistoryGenerateCode_0 = runtime.ForwardResponseMessage + forward_Runner_ListConverter_0 = runtime.ForwardResponseMessage + forward_Runner_ConvertTestSuite_0 = runtime.ForwardResponseMessage + forward_Runner_PopularHeaders_0 = runtime.ForwardResponseMessage + forward_Runner_FunctionsQuery_0 = runtime.ForwardResponseMessage + forward_Runner_FunctionsQueryStream_0 = runtime.ForwardResponseStream + forward_Runner_GetVersion_0 = runtime.ForwardResponseMessage + forward_Runner_Sample_0 = runtime.ForwardResponseMessage + forward_Runner_DownloadResponseFile_0 = runtime.ForwardResponseMessage + forward_Runner_GetStoreKinds_0 = runtime.ForwardResponseMessage + forward_Runner_GetStores_0 = runtime.ForwardResponseMessage + forward_Runner_CreateStore_0 = runtime.ForwardResponseMessage + forward_Runner_UpdateStore_0 = runtime.ForwardResponseMessage + forward_Runner_DeleteStore_0 = runtime.ForwardResponseMessage + forward_Runner_VerifyStore_0 = runtime.ForwardResponseMessage + forward_Runner_GetSecrets_0 = runtime.ForwardResponseMessage + forward_Runner_CreateSecret_0 = runtime.ForwardResponseMessage + forward_Runner_DeleteSecret_0 = runtime.ForwardResponseMessage + forward_Runner_UpdateSecret_0 = runtime.ForwardResponseMessage + forward_Runner_PProf_0 = runtime.ForwardResponseMessage ) // RegisterRunnerExtensionHandlerFromEndpoint is same as RegisterRunnerExtensionHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterRunnerExtensionHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.DialContext(ctx, endpoint, opts...) + conn, err := grpc.NewClient(endpoint, opts...) if err != nil { return err } defer func() { if err != nil { if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } return } go func() { <-ctx.Done() if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } }() }() - return RegisterRunnerExtensionHandler(ctx, mux, conn) } @@ -5602,16 +4521,13 @@ func RegisterRunnerExtensionHandler(ctx context.Context, mux *runtime.ServeMux, // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "RunnerExtensionClient". // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "RunnerExtensionClient" // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "RunnerExtensionClient" to call the correct interceptors. +// "RunnerExtensionClient" to call the correct interceptors. This client ignores the HTTP middlewares. func RegisterRunnerExtensionHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RunnerExtensionClient) error { - - mux.Handle("POST", pattern_RunnerExtension_Run_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_RunnerExtension_Run_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.RunnerExtension/Run", runtime.WithHTTPPathPattern("/api/v1/extension/run")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.RunnerExtension/Run", runtime.WithHTTPPathPattern("/api/v1/extension/run")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5622,11 +4538,8 @@ func RegisterRunnerExtensionHandlerClient(ctx context.Context, mux *runtime.Serv runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_RunnerExtension_Run_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - return nil } @@ -5641,25 +4554,24 @@ var ( // RegisterThemeExtensionHandlerFromEndpoint is same as RegisterThemeExtensionHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterThemeExtensionHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.DialContext(ctx, endpoint, opts...) + conn, err := grpc.NewClient(endpoint, opts...) if err != nil { return err } defer func() { if err != nil { if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } return } go func() { <-ctx.Done() if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } }() }() - return RegisterThemeExtensionHandler(ctx, mux, conn) } @@ -5673,16 +4585,13 @@ func RegisterThemeExtensionHandler(ctx context.Context, mux *runtime.ServeMux, c // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ThemeExtensionClient". // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ThemeExtensionClient" // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "ThemeExtensionClient" to call the correct interceptors. +// "ThemeExtensionClient" to call the correct interceptors. This client ignores the HTTP middlewares. func RegisterThemeExtensionHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ThemeExtensionClient) error { - - mux.Handle("GET", pattern_ThemeExtension_GetThemes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_ThemeExtension_GetThemes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.ThemeExtension/GetThemes", runtime.WithHTTPPathPattern("/api/v1/themes")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.ThemeExtension/GetThemes", runtime.WithHTTPPathPattern("/api/v1/themes")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5693,18 +4602,13 @@ func RegisterThemeExtensionHandlerClient(ctx context.Context, mux *runtime.Serve runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ThemeExtension_GetThemes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_ThemeExtension_GetTheme_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_ThemeExtension_GetTheme_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.ThemeExtension/GetTheme", runtime.WithHTTPPathPattern("/api/v1/themes/{name}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.ThemeExtension/GetTheme", runtime.WithHTTPPathPattern("/api/v1/themes/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5715,18 +4619,13 @@ func RegisterThemeExtensionHandlerClient(ctx context.Context, mux *runtime.Serve runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ThemeExtension_GetTheme_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_ThemeExtension_GetBindings_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_ThemeExtension_GetBindings_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.ThemeExtension/GetBindings", runtime.WithHTTPPathPattern("/api/v1/bindings")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.ThemeExtension/GetBindings", runtime.WithHTTPPathPattern("/api/v1/bindings")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5737,18 +4636,13 @@ func RegisterThemeExtensionHandlerClient(ctx context.Context, mux *runtime.Serve runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ThemeExtension_GetBindings_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_ThemeExtension_GetBinding_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_ThemeExtension_GetBinding_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.ThemeExtension/GetBinding", runtime.WithHTTPPathPattern("/api/v1/bindings/{name}")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.ThemeExtension/GetBinding", runtime.WithHTTPPathPattern("/api/v1/bindings/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5759,56 +4653,129 @@ func RegisterThemeExtensionHandlerClient(ctx context.Context, mux *runtime.Serve runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ThemeExtension_GetBinding_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - return nil } var ( - pattern_ThemeExtension_GetThemes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "themes"}, "")) - - pattern_ThemeExtension_GetTheme_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "themes", "name"}, "")) - + pattern_ThemeExtension_GetThemes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "themes"}, "")) + pattern_ThemeExtension_GetTheme_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "themes", "name"}, "")) pattern_ThemeExtension_GetBindings_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "bindings"}, "")) - - pattern_ThemeExtension_GetBinding_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "bindings", "name"}, "")) + pattern_ThemeExtension_GetBinding_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "bindings", "name"}, "")) ) var ( - forward_ThemeExtension_GetThemes_0 = runtime.ForwardResponseMessage + forward_ThemeExtension_GetThemes_0 = runtime.ForwardResponseMessage + forward_ThemeExtension_GetTheme_0 = runtime.ForwardResponseMessage + forward_ThemeExtension_GetBindings_0 = runtime.ForwardResponseMessage + forward_ThemeExtension_GetBinding_0 = runtime.ForwardResponseMessage +) + +// RegisterAIExtensionHandlerFromEndpoint is same as RegisterAIExtensionHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterAIExtensionHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.NewClient(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + return RegisterAIExtensionHandler(ctx, mux, conn) +} - forward_ThemeExtension_GetTheme_0 = runtime.ForwardResponseMessage +// RegisterAIExtensionHandler registers the http handlers for service AIExtension to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterAIExtensionHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterAIExtensionHandlerClient(ctx, mux, NewAIExtensionClient(conn)) +} - forward_ThemeExtension_GetBindings_0 = runtime.ForwardResponseMessage +// RegisterAIExtensionHandlerClient registers the http handlers for service AIExtension +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AIExtensionClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AIExtensionClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "AIExtensionClient" to call the correct interceptors. This client ignores the HTTP middlewares. +func RegisterAIExtensionHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AIExtensionClient) error { + mux.Handle(http.MethodPost, pattern_AIExtension_GenerateContent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.AIExtension/GenerateContent", runtime.WithHTTPPathPattern("/api/v1/ai/generate")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AIExtension_GenerateContent_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + forward_AIExtension_GenerateContent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) + mux.Handle(http.MethodPost, pattern_AIExtension_GenerateSQLFromNaturalLanguage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.AIExtension/GenerateSQLFromNaturalLanguage", runtime.WithHTTPPathPattern("/api/v1/ai/sql/generate")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AIExtension_GenerateSQLFromNaturalLanguage_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + forward_AIExtension_GenerateSQLFromNaturalLanguage_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) + return nil +} + +var ( + pattern_AIExtension_GenerateContent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "ai", "generate"}, "")) + pattern_AIExtension_GenerateSQLFromNaturalLanguage_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"api", "v1", "ai", "sql", "generate"}, "")) +) - forward_ThemeExtension_GetBinding_0 = runtime.ForwardResponseMessage +var ( + forward_AIExtension_GenerateContent_0 = runtime.ForwardResponseMessage + forward_AIExtension_GenerateSQLFromNaturalLanguage_0 = runtime.ForwardResponseMessage ) // RegisterMockHandlerFromEndpoint is same as RegisterMockHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterMockHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.DialContext(ctx, endpoint, opts...) + conn, err := grpc.NewClient(endpoint, opts...) if err != nil { return err } defer func() { if err != nil { if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } return } go func() { <-ctx.Done() if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } }() }() - return RegisterMockHandler(ctx, mux, conn) } @@ -5822,16 +4789,13 @@ func RegisterMockHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc. // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MockClient". // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MockClient" // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "MockClient" to call the correct interceptors. +// "MockClient" to call the correct interceptors. This client ignores the HTTP middlewares. func RegisterMockHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MockClient) error { - - mux.Handle("POST", pattern_Mock_Reload_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_Mock_Reload_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Mock/Reload", runtime.WithHTTPPathPattern("/api/v1/mock/reload")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Mock/Reload", runtime.WithHTTPPathPattern("/api/v1/mock/reload")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5842,18 +4806,13 @@ func RegisterMockHandlerClient(ctx context.Context, mux *runtime.ServeMux, clien runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Mock_Reload_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - mux.Handle("GET", pattern_Mock_GetConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodGet, pattern_Mock_GetConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.Mock/GetConfig", runtime.WithHTTPPathPattern("/api/v1/mock/config")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.Mock/GetConfig", runtime.WithHTTPPathPattern("/api/v1/mock/config")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5864,48 +4823,42 @@ func RegisterMockHandlerClient(ctx context.Context, mux *runtime.ServeMux, clien runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Mock_GetConfig_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - return nil } var ( - pattern_Mock_Reload_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "mock", "reload"}, "")) - + pattern_Mock_Reload_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "mock", "reload"}, "")) pattern_Mock_GetConfig_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "mock", "config"}, "")) ) var ( - forward_Mock_Reload_0 = runtime.ForwardResponseMessage - + forward_Mock_Reload_0 = runtime.ForwardResponseMessage forward_Mock_GetConfig_0 = runtime.ForwardResponseMessage ) // RegisterDataServerHandlerFromEndpoint is same as RegisterDataServerHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterDataServerHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.DialContext(ctx, endpoint, opts...) + conn, err := grpc.NewClient(endpoint, opts...) if err != nil { return err } defer func() { if err != nil { if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } return } go func() { <-ctx.Done() if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } }() }() - return RegisterDataServerHandler(ctx, mux, conn) } @@ -5919,16 +4872,13 @@ func RegisterDataServerHandler(ctx context.Context, mux *runtime.ServeMux, conn // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "DataServerClient". // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "DataServerClient" // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "DataServerClient" to call the correct interceptors. +// "DataServerClient" to call the correct interceptors. This client ignores the HTTP middlewares. func RegisterDataServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DataServerClient) error { - - mux.Handle("POST", pattern_DataServer_Query_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle(http.MethodPost, pattern_DataServer_Query_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/server.DataServer/Query", runtime.WithHTTPPathPattern("/api/v1/data/query")) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.DataServer/Query", runtime.WithHTTPPathPattern("/api/v1/data/query")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -5939,11 +4889,8 @@ func RegisterDataServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_DataServer_Query_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - return nil } diff --git a/pkg/server/server.swagger.json b/pkg/server/server.swagger.json index d1a21b8c..4820f139 100644 --- a/pkg/server/server.swagger.json +++ b/pkg/server/server.swagger.json @@ -14,6 +14,9 @@ { "name": "ThemeExtension" }, + { + "name": "AIExtension" + }, { "name": "Mock" }, @@ -28,6 +31,74 @@ "application/json" ], "paths": { + "/api/v1/ai/generate": { + "post": { + "summary": "Generates content based on natural language prompts with context.\nThis is a general-purpose AI interface that can handle SQL generation,\ntest case writing, mock service creation, and other AI-powered tasks.", + "operationId": "AIExtension_GenerateContent", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/serverGenerateContentResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "description": "Request message for generating content based on natural language prompts.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/serverGenerateContentRequest" + } + } + ], + "tags": [ + "AIExtension" + ] + } + }, + "/api/v1/ai/sql/generate": { + "post": { + "summary": "Legacy SQL generation endpoint for backward compatibility", + "operationId": "AIExtension_GenerateSQLFromNaturalLanguage", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/serverGenerateSQLResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "description": "Request message for generating an SQL query from natural language.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/serverGenerateSQLRequest" + } + } + ], + "tags": [ + "AIExtension" + ] + } + }, "/api/v1/batchRun": { "post": { "operationId": "Runner_BatchRun", @@ -70,6 +141,58 @@ ] } }, + "/api/v1/bindings": { + "get": { + "operationId": "ThemeExtension_GetBindings", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/serverSimpleList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "tags": [ + "ThemeExtension" + ] + } + }, + "/api/v1/bindings/{name}": { + "get": { + "operationId": "ThemeExtension_GetBinding", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/serverCommonResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "ThemeExtension" + ] + } + }, "/api/v1/codeGenerators": { "get": { "summary": "code generator", @@ -1499,15 +1622,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "Value": { - "type": "string" - }, - "Description": { - "type": "string" - } - } + "$ref": "#/definitions/RunnerUpdateSecretBody" } } ], @@ -1746,43 +1861,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "owner": { - "type": "string" - }, - "description": { - "type": "string" - }, - "url": { - "type": "string" - }, - "username": { - "type": "string" - }, - "password": { - "type": "string" - }, - "properties": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/serverPair" - } - }, - "kind": { - "$ref": "#/definitions/serverStoreKind" - }, - "ready": { - "type": "boolean" - }, - "readOnly": { - "type": "boolean" - }, - "disabled": { - "type": "boolean" - } - } + "$ref": "#/definitions/RunnerUpdateStoreBody" } } ], @@ -2027,25 +2106,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "api": { - "type": "string" - }, - "param": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/serverPair" - } - }, - "spec": { - "$ref": "#/definitions/serverAPISpec" - }, - "proxy": { - "$ref": "#/definitions/serverProxyConfig" - } - } + "$ref": "#/definitions/RunnerUpdateTestSuiteBody" } } ], @@ -2174,15 +2235,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "targetSuiteName": { - "type": "string" - }, - "targetCaseName": { - "type": "string" - } - } + "$ref": "#/definitions/RunnerDuplicateTestCaseBody" } } ], @@ -2226,15 +2279,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "targetSuiteName": { - "type": "string" - }, - "targetCaseName": { - "type": "string" - } - } + "$ref": "#/definitions/RunnerRenameTestCaseBody" } } ], @@ -2272,12 +2317,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "targetSuiteName": { - "type": "string" - } - } + "$ref": "#/definitions/RunnerDuplicateTestSuiteBody" } } ], @@ -2315,12 +2355,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "targetSuiteName": { - "type": "string" - } - } + "$ref": "#/definitions/RunnerRenameTestSuiteBody" } } ], @@ -2358,12 +2393,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/serverTestCase" - } - } + "$ref": "#/definitions/RunnerCreateTestCaseBody" } } ], @@ -2407,26 +2437,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "suiteName": { - "type": "string" - }, - "request": { - "$ref": "#/definitions/serverRequest" - }, - "response": { - "$ref": "#/definitions/serverResponse" - }, - "server": { - "type": "string" - } - } - } - } + "$ref": "#/definitions/RunnerUpdateTestCaseBody" } } ], @@ -2630,16 +2641,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "parameters": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/serverPair" - } - } - } + "$ref": "#/definitions/RunnerRunTestCaseBody" } } ], @@ -2648,14 +2650,14 @@ ] } }, - "/api/v1/theme/{name}": { + "/api/v1/themes": { "get": { - "operationId": "ThemeExtension_GetTheme", + "operationId": "ThemeExtension_GetThemes", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/serverCommonResult" + "$ref": "#/definitions/serverSimpleList" } }, "default": { @@ -2665,27 +2667,19 @@ } } }, - "parameters": [ - { - "name": "name", - "in": "path", - "required": true, - "type": "string" - } - ], "tags": [ "ThemeExtension" ] } }, - "/api/v1/themes": { + "/api/v1/themes/{name}": { "get": { - "operationId": "ThemeExtension_GetThemes", + "operationId": "ThemeExtension_GetTheme", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/serverSimpleList" + "$ref": "#/definitions/serverCommonResult" } }, "default": { @@ -2695,6 +2689,14 @@ } } }, + "parameters": [ + { + "name": "name", + "in": "path", + "required": true, + "type": "string" + } + ], "tags": [ "ThemeExtension" ] @@ -2757,6 +2759,157 @@ } }, "definitions": { + "RunnerCreateTestCaseBody": { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/serverTestCase" + } + } + }, + "RunnerDuplicateTestCaseBody": { + "type": "object", + "properties": { + "targetSuiteName": { + "type": "string" + }, + "targetCaseName": { + "type": "string" + } + } + }, + "RunnerDuplicateTestSuiteBody": { + "type": "object", + "properties": { + "targetSuiteName": { + "type": "string" + } + } + }, + "RunnerRenameTestCaseBody": { + "type": "object", + "properties": { + "targetSuiteName": { + "type": "string" + }, + "targetCaseName": { + "type": "string" + } + } + }, + "RunnerRenameTestSuiteBody": { + "type": "object", + "properties": { + "targetSuiteName": { + "type": "string" + } + } + }, + "RunnerRunTestCaseBody": { + "type": "object", + "properties": { + "parameters": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/serverPair" + } + } + } + }, + "RunnerUpdateSecretBody": { + "type": "object", + "properties": { + "Value": { + "type": "string" + }, + "Description": { + "type": "string" + } + } + }, + "RunnerUpdateStoreBody": { + "type": "object", + "properties": { + "owner": { + "type": "string" + }, + "description": { + "type": "string" + }, + "url": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string" + }, + "properties": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/serverPair" + } + }, + "kind": { + "$ref": "#/definitions/serverStoreKind" + }, + "ready": { + "type": "boolean" + }, + "readOnly": { + "type": "boolean" + }, + "disabled": { + "type": "boolean" + } + } + }, + "RunnerUpdateTestCaseBody": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "suiteName": { + "type": "string" + }, + "request": { + "$ref": "#/definitions/serverRequest" + }, + "response": { + "$ref": "#/definitions/serverResponse" + }, + "server": { + "type": "string" + } + } + } + } + }, + "RunnerUpdateTestSuiteBody": { + "type": "object", + "properties": { + "api": { + "type": "string" + }, + "param": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/serverPair" + } + }, + "spec": { + "$ref": "#/definitions/serverAPISpec" + }, + "proxy": { + "$ref": "#/definitions/serverProxyConfig" + } + } + }, "protobufAny": { "type": "object", "properties": { @@ -2872,6 +3025,36 @@ } } }, + "serverContentSuccessResponse": { + "type": "object", + "properties": { + "content": { + "type": "string", + "description": "The generated content." + }, + "contentType": { + "type": "string", + "description": "The type of content that was generated." + }, + "explanation": { + "type": "string", + "description": "An explanation of how the AI interpreted the request and generated the content.\nThis builds user trust and aids in debugging." + }, + "confidenceScore": { + "type": "number", + "format": "float", + "description": "A score between 0.0 and 1.0 indicating the AI's confidence in the generated content." + }, + "metadata": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Additional metadata about the generation process." + } + }, + "description": "Represents a successful content generation." + }, "serverDataMeta": { "type": "object", "properties": { @@ -2915,12 +3098,12 @@ "type": "string" }, "offset": { - "type": "integer", - "format": "int32" + "type": "string", + "format": "int64" }, "limit": { - "type": "integer", - "format": "int32" + "type": "string", + "format": "int64" } } }, @@ -2946,9 +3129,46 @@ } } }, + "serverDatabaseType": { + "type": "string", + "enum": [ + "DATABASE_TYPE_UNSPECIFIED", + "MYSQL", + "POSTGRESQL", + "SQLITE" + ], + "default": "DATABASE_TYPE_UNSPECIFIED", + "description": "Enum for supported database dialects to ensure type safety.\n\n - DATABASE_TYPE_UNSPECIFIED: DATABASE_TYPE_UNSPECIFIED indicates a missing or unknown database type." + }, "serverEmpty": { "type": "object" }, + "serverErrorCode": { + "type": "string", + "enum": [ + "ERROR_CODE_UNSPECIFIED", + "INVALID_ARGUMENT", + "TRANSLATION_FAILED", + "UNSUPPORTED_DATABASE", + "INTERNAL_ERROR" + ], + "default": "ERROR_CODE_UNSPECIFIED", + "description": "Enum for structured error codes.\n\n - INVALID_ARGUMENT: The input was invalid (e.g., empty prompt).\n - TRANSLATION_FAILED: The AI model failed to translate the query.\n - UNSUPPORTED_DATABASE: The requested database type is not supported.\n - INTERNAL_ERROR: An internal error occurred in the service." + }, + "serverErrorResponse": { + "type": "object", + "properties": { + "code": { + "$ref": "#/definitions/serverErrorCode", + "description": "A structured error code for programmatic handling." + }, + "message": { + "type": "string", + "description": "A human-readable message describing the error." + } + }, + "description": "Represents a failed SQL generation attempt." + }, "serverExtensionStatus": { "type": "object", "properties": { @@ -2981,6 +3201,99 @@ } } }, + "serverGenerateContentRequest": { + "type": "object", + "properties": { + "prompt": { + "type": "string", + "description": "The user's prompt in natural language." + }, + "contentType": { + "type": "string", + "description": "The type of content to generate (e.g., \"sql\", \"testcase\", \"mock\")." + }, + "context": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Context information to help with generation." + }, + "sessionId": { + "type": "string", + "description": "Optional: A session identifier to maintain context across multiple requests." + }, + "parameters": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Optional: Additional parameters specific to the content type." + } + }, + "description": "Request message for generating content based on natural language prompts." + }, + "serverGenerateContentResponse": { + "type": "object", + "properties": { + "success": { + "$ref": "#/definitions/serverContentSuccessResponse", + "description": "Contains the successful content generation details." + }, + "error": { + "$ref": "#/definitions/serverErrorResponse", + "description": "Contains details about why the generation failed." + } + }, + "description": "Response message containing the result of content generation." + }, + "serverGenerateSQLRequest": { + "type": "object", + "properties": { + "naturalLanguageInput": { + "type": "string", + "title": "The user's query in natural language. (e.g., \"show me all users from California\")" + }, + "databaseType": { + "$ref": "#/definitions/serverDatabaseType", + "description": "Target database dialect for SQL generation." + }, + "schemas": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Optional: A list of DDL statements (e.g., CREATE TABLE …) for relevant tables.\nProviding schemas helps the AI generate more accurate queries." + }, + "sessionId": { + "type": "string", + "description": "Optional: A session identifier to maintain context across multiple requests,\nenabling conversational query refinement." + }, + "examples": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/serverQueryExample" + }, + "description": "Optional: A list of examples to guide the AI, improving accuracy for\nspecific or complex domains." + } + }, + "description": "Request message for generating an SQL query from natural language." + }, + "serverGenerateSQLResponse": { + "type": "object", + "properties": { + "success": { + "$ref": "#/definitions/serverSuccessResponse", + "description": "Contains the successful SQL generation details." + }, + "error": { + "$ref": "#/definitions/serverErrorResponse", + "description": "Contains details about why the generation failed." + } + }, + "description": "Response message containing the result of the SQL generation." + }, "serverHelloReply": { "type": "object", "properties": { @@ -3208,6 +3521,20 @@ } } }, + "serverQueryExample": { + "type": "object", + "properties": { + "naturalLanguagePrompt": { + "type": "string", + "description": "A natural language query example." + }, + "sqlQuery": { + "type": "string", + "description": "The corresponding correct SQL query for the prompt." + } + }, + "description": "Represents an example pair of natural language to SQL for few-shot prompting." + }, "serverRPC": { "type": "object", "properties": { @@ -3464,6 +3791,25 @@ } } }, + "serverSuccessResponse": { + "type": "object", + "properties": { + "sqlQuery": { + "type": "string", + "description": "The generated SQL query." + }, + "explanation": { + "type": "string", + "description": "An explanation of how the AI interpreted the request and generated the SQL.\nThis builds user trust and aids in debugging." + }, + "confidenceScore": { + "type": "number", + "format": "float", + "description": "A score between 0.0 and 1.0 indicating the AI's confidence in the generated query." + } + }, + "description": "Represents a successful SQL generation." + }, "serverSuite": { "type": "object", "properties": { diff --git a/pkg/server/server_grpc.pb.go b/pkg/server/server_grpc.pb.go index d9c5cf68..337b5fb8 100644 --- a/pkg/server/server_grpc.pb.go +++ b/pkg/server/server_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v4.22.2 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: pkg/server/server.proto package server @@ -15,8 +15,60 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + Runner_Run_FullMethodName = "/server.Runner/Run" + Runner_RunTestSuite_FullMethodName = "/server.Runner/RunTestSuite" + Runner_GetSuites_FullMethodName = "/server.Runner/GetSuites" + Runner_CreateTestSuite_FullMethodName = "/server.Runner/CreateTestSuite" + Runner_ImportTestSuite_FullMethodName = "/server.Runner/ImportTestSuite" + Runner_GetTestSuite_FullMethodName = "/server.Runner/GetTestSuite" + Runner_UpdateTestSuite_FullMethodName = "/server.Runner/UpdateTestSuite" + Runner_DeleteTestSuite_FullMethodName = "/server.Runner/DeleteTestSuite" + Runner_DuplicateTestSuite_FullMethodName = "/server.Runner/DuplicateTestSuite" + Runner_RenameTestSuite_FullMethodName = "/server.Runner/RenameTestSuite" + Runner_GetTestSuiteYaml_FullMethodName = "/server.Runner/GetTestSuiteYaml" + Runner_ListTestCase_FullMethodName = "/server.Runner/ListTestCase" + Runner_RunTestCase_FullMethodName = "/server.Runner/RunTestCase" + Runner_BatchRun_FullMethodName = "/server.Runner/BatchRun" + Runner_GetTestCase_FullMethodName = "/server.Runner/GetTestCase" + Runner_CreateTestCase_FullMethodName = "/server.Runner/CreateTestCase" + Runner_UpdateTestCase_FullMethodName = "/server.Runner/UpdateTestCase" + Runner_DeleteTestCase_FullMethodName = "/server.Runner/DeleteTestCase" + Runner_DuplicateTestCase_FullMethodName = "/server.Runner/DuplicateTestCase" + Runner_RenameTestCase_FullMethodName = "/server.Runner/RenameTestCase" + Runner_GetSuggestedAPIs_FullMethodName = "/server.Runner/GetSuggestedAPIs" + Runner_GetHistorySuites_FullMethodName = "/server.Runner/GetHistorySuites" + Runner_GetHistoryTestCaseWithResult_FullMethodName = "/server.Runner/GetHistoryTestCaseWithResult" + Runner_GetHistoryTestCase_FullMethodName = "/server.Runner/GetHistoryTestCase" + Runner_DeleteHistoryTestCase_FullMethodName = "/server.Runner/DeleteHistoryTestCase" + Runner_DeleteAllHistoryTestCase_FullMethodName = "/server.Runner/DeleteAllHistoryTestCase" + Runner_GetTestCaseAllHistory_FullMethodName = "/server.Runner/GetTestCaseAllHistory" + Runner_ListCodeGenerator_FullMethodName = "/server.Runner/ListCodeGenerator" + Runner_GenerateCode_FullMethodName = "/server.Runner/GenerateCode" + Runner_HistoryGenerateCode_FullMethodName = "/server.Runner/HistoryGenerateCode" + Runner_ListConverter_FullMethodName = "/server.Runner/ListConverter" + Runner_ConvertTestSuite_FullMethodName = "/server.Runner/ConvertTestSuite" + Runner_PopularHeaders_FullMethodName = "/server.Runner/PopularHeaders" + Runner_FunctionsQuery_FullMethodName = "/server.Runner/FunctionsQuery" + Runner_FunctionsQueryStream_FullMethodName = "/server.Runner/FunctionsQueryStream" + Runner_GetVersion_FullMethodName = "/server.Runner/GetVersion" + Runner_Sample_FullMethodName = "/server.Runner/Sample" + Runner_DownloadResponseFile_FullMethodName = "/server.Runner/DownloadResponseFile" + Runner_GetStoreKinds_FullMethodName = "/server.Runner/GetStoreKinds" + Runner_GetStores_FullMethodName = "/server.Runner/GetStores" + Runner_CreateStore_FullMethodName = "/server.Runner/CreateStore" + Runner_UpdateStore_FullMethodName = "/server.Runner/UpdateStore" + Runner_DeleteStore_FullMethodName = "/server.Runner/DeleteStore" + Runner_VerifyStore_FullMethodName = "/server.Runner/VerifyStore" + Runner_GetSecrets_FullMethodName = "/server.Runner/GetSecrets" + Runner_CreateSecret_FullMethodName = "/server.Runner/CreateSecret" + Runner_DeleteSecret_FullMethodName = "/server.Runner/DeleteSecret" + Runner_UpdateSecret_FullMethodName = "/server.Runner/UpdateSecret" + Runner_PProf_FullMethodName = "/server.Runner/PProf" +) // RunnerClient is the client API for Runner service. // @@ -24,7 +76,7 @@ const _ = grpc.SupportPackageIsVersion7 type RunnerClient interface { // belong to a specific store Run(ctx context.Context, in *TestTask, opts ...grpc.CallOption) (*TestResult, error) - RunTestSuite(ctx context.Context, opts ...grpc.CallOption) (Runner_RunTestSuiteClient, error) + RunTestSuite(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[TestSuiteIdentity, TestResult], error) // test suites related GetSuites(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Suites, error) CreateTestSuite(ctx context.Context, in *TestSuiteIdentity, opts ...grpc.CallOption) (*HelloReply, error) @@ -39,7 +91,7 @@ type RunnerClient interface { ListTestCase(ctx context.Context, in *TestSuiteIdentity, opts ...grpc.CallOption) (*Suite, error) // run target test case of a specific test suite RunTestCase(ctx context.Context, in *TestCaseIdentity, opts ...grpc.CallOption) (*TestCaseResult, error) - BatchRun(ctx context.Context, opts ...grpc.CallOption) (Runner_BatchRunClient, error) + BatchRun(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[BatchTestTask, TestResult], error) GetTestCase(ctx context.Context, in *TestCaseIdentity, opts ...grpc.CallOption) (*TestCase, error) CreateTestCase(ctx context.Context, in *TestCaseWithSuite, opts ...grpc.CallOption) (*HelloReply, error) UpdateTestCase(ctx context.Context, in *TestCaseWithSuite, opts ...grpc.CallOption) (*HelloReply, error) @@ -64,7 +116,7 @@ type RunnerClient interface { // common services PopularHeaders(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Pairs, error) FunctionsQuery(ctx context.Context, in *SimpleQuery, opts ...grpc.CallOption) (*Pairs, error) - FunctionsQueryStream(ctx context.Context, opts ...grpc.CallOption) (Runner_FunctionsQueryStreamClient, error) + FunctionsQueryStream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[SimpleQuery, Pairs], error) GetVersion(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Version, error) Sample(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*HelloReply, error) DownloadResponseFile(ctx context.Context, in *TestCase, opts ...grpc.CallOption) (*FileData, error) @@ -93,48 +145,32 @@ func NewRunnerClient(cc grpc.ClientConnInterface) RunnerClient { } func (c *runnerClient) Run(ctx context.Context, in *TestTask, opts ...grpc.CallOption) (*TestResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TestResult) - err := c.cc.Invoke(ctx, "/server.Runner/Run", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_Run_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *runnerClient) RunTestSuite(ctx context.Context, opts ...grpc.CallOption) (Runner_RunTestSuiteClient, error) { - stream, err := c.cc.NewStream(ctx, &Runner_ServiceDesc.Streams[0], "/server.Runner/RunTestSuite", opts...) +func (c *runnerClient) RunTestSuite(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[TestSuiteIdentity, TestResult], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &Runner_ServiceDesc.Streams[0], Runner_RunTestSuite_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &runnerRunTestSuiteClient{stream} + x := &grpc.GenericClientStream[TestSuiteIdentity, TestResult]{ClientStream: stream} return x, nil } -type Runner_RunTestSuiteClient interface { - Send(*TestSuiteIdentity) error - Recv() (*TestResult, error) - grpc.ClientStream -} - -type runnerRunTestSuiteClient struct { - grpc.ClientStream -} - -func (x *runnerRunTestSuiteClient) Send(m *TestSuiteIdentity) error { - return x.ClientStream.SendMsg(m) -} - -func (x *runnerRunTestSuiteClient) Recv() (*TestResult, error) { - m := new(TestResult) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Runner_RunTestSuiteClient = grpc.BidiStreamingClient[TestSuiteIdentity, TestResult] func (c *runnerClient) GetSuites(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Suites, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Suites) - err := c.cc.Invoke(ctx, "/server.Runner/GetSuites", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_GetSuites_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -142,8 +178,9 @@ func (c *runnerClient) GetSuites(ctx context.Context, in *Empty, opts ...grpc.Ca } func (c *runnerClient) CreateTestSuite(ctx context.Context, in *TestSuiteIdentity, opts ...grpc.CallOption) (*HelloReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(HelloReply) - err := c.cc.Invoke(ctx, "/server.Runner/CreateTestSuite", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_CreateTestSuite_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -151,8 +188,9 @@ func (c *runnerClient) CreateTestSuite(ctx context.Context, in *TestSuiteIdentit } func (c *runnerClient) ImportTestSuite(ctx context.Context, in *TestSuiteSource, opts ...grpc.CallOption) (*CommonResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CommonResult) - err := c.cc.Invoke(ctx, "/server.Runner/ImportTestSuite", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_ImportTestSuite_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -160,8 +198,9 @@ func (c *runnerClient) ImportTestSuite(ctx context.Context, in *TestSuiteSource, } func (c *runnerClient) GetTestSuite(ctx context.Context, in *TestSuiteIdentity, opts ...grpc.CallOption) (*TestSuite, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TestSuite) - err := c.cc.Invoke(ctx, "/server.Runner/GetTestSuite", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_GetTestSuite_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -169,8 +208,9 @@ func (c *runnerClient) GetTestSuite(ctx context.Context, in *TestSuiteIdentity, } func (c *runnerClient) UpdateTestSuite(ctx context.Context, in *TestSuite, opts ...grpc.CallOption) (*HelloReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(HelloReply) - err := c.cc.Invoke(ctx, "/server.Runner/UpdateTestSuite", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_UpdateTestSuite_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -178,8 +218,9 @@ func (c *runnerClient) UpdateTestSuite(ctx context.Context, in *TestSuite, opts } func (c *runnerClient) DeleteTestSuite(ctx context.Context, in *TestSuiteIdentity, opts ...grpc.CallOption) (*HelloReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(HelloReply) - err := c.cc.Invoke(ctx, "/server.Runner/DeleteTestSuite", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_DeleteTestSuite_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -187,8 +228,9 @@ func (c *runnerClient) DeleteTestSuite(ctx context.Context, in *TestSuiteIdentit } func (c *runnerClient) DuplicateTestSuite(ctx context.Context, in *TestSuiteDuplicate, opts ...grpc.CallOption) (*HelloReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(HelloReply) - err := c.cc.Invoke(ctx, "/server.Runner/DuplicateTestSuite", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_DuplicateTestSuite_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -196,8 +238,9 @@ func (c *runnerClient) DuplicateTestSuite(ctx context.Context, in *TestSuiteDupl } func (c *runnerClient) RenameTestSuite(ctx context.Context, in *TestSuiteDuplicate, opts ...grpc.CallOption) (*HelloReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(HelloReply) - err := c.cc.Invoke(ctx, "/server.Runner/RenameTestSuite", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_RenameTestSuite_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -205,8 +248,9 @@ func (c *runnerClient) RenameTestSuite(ctx context.Context, in *TestSuiteDuplica } func (c *runnerClient) GetTestSuiteYaml(ctx context.Context, in *TestSuiteIdentity, opts ...grpc.CallOption) (*YamlData, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(YamlData) - err := c.cc.Invoke(ctx, "/server.Runner/GetTestSuiteYaml", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_GetTestSuiteYaml_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -214,8 +258,9 @@ func (c *runnerClient) GetTestSuiteYaml(ctx context.Context, in *TestSuiteIdenti } func (c *runnerClient) ListTestCase(ctx context.Context, in *TestSuiteIdentity, opts ...grpc.CallOption) (*Suite, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Suite) - err := c.cc.Invoke(ctx, "/server.Runner/ListTestCase", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_ListTestCase_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -223,48 +268,32 @@ func (c *runnerClient) ListTestCase(ctx context.Context, in *TestSuiteIdentity, } func (c *runnerClient) RunTestCase(ctx context.Context, in *TestCaseIdentity, opts ...grpc.CallOption) (*TestCaseResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TestCaseResult) - err := c.cc.Invoke(ctx, "/server.Runner/RunTestCase", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_RunTestCase_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *runnerClient) BatchRun(ctx context.Context, opts ...grpc.CallOption) (Runner_BatchRunClient, error) { - stream, err := c.cc.NewStream(ctx, &Runner_ServiceDesc.Streams[1], "/server.Runner/BatchRun", opts...) +func (c *runnerClient) BatchRun(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[BatchTestTask, TestResult], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &Runner_ServiceDesc.Streams[1], Runner_BatchRun_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &runnerBatchRunClient{stream} + x := &grpc.GenericClientStream[BatchTestTask, TestResult]{ClientStream: stream} return x, nil } -type Runner_BatchRunClient interface { - Send(*BatchTestTask) error - Recv() (*TestResult, error) - grpc.ClientStream -} - -type runnerBatchRunClient struct { - grpc.ClientStream -} - -func (x *runnerBatchRunClient) Send(m *BatchTestTask) error { - return x.ClientStream.SendMsg(m) -} - -func (x *runnerBatchRunClient) Recv() (*TestResult, error) { - m := new(TestResult) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Runner_BatchRunClient = grpc.BidiStreamingClient[BatchTestTask, TestResult] func (c *runnerClient) GetTestCase(ctx context.Context, in *TestCaseIdentity, opts ...grpc.CallOption) (*TestCase, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TestCase) - err := c.cc.Invoke(ctx, "/server.Runner/GetTestCase", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_GetTestCase_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -272,8 +301,9 @@ func (c *runnerClient) GetTestCase(ctx context.Context, in *TestCaseIdentity, op } func (c *runnerClient) CreateTestCase(ctx context.Context, in *TestCaseWithSuite, opts ...grpc.CallOption) (*HelloReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(HelloReply) - err := c.cc.Invoke(ctx, "/server.Runner/CreateTestCase", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_CreateTestCase_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -281,8 +311,9 @@ func (c *runnerClient) CreateTestCase(ctx context.Context, in *TestCaseWithSuite } func (c *runnerClient) UpdateTestCase(ctx context.Context, in *TestCaseWithSuite, opts ...grpc.CallOption) (*HelloReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(HelloReply) - err := c.cc.Invoke(ctx, "/server.Runner/UpdateTestCase", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_UpdateTestCase_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -290,8 +321,9 @@ func (c *runnerClient) UpdateTestCase(ctx context.Context, in *TestCaseWithSuite } func (c *runnerClient) DeleteTestCase(ctx context.Context, in *TestCaseIdentity, opts ...grpc.CallOption) (*HelloReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(HelloReply) - err := c.cc.Invoke(ctx, "/server.Runner/DeleteTestCase", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_DeleteTestCase_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -299,8 +331,9 @@ func (c *runnerClient) DeleteTestCase(ctx context.Context, in *TestCaseIdentity, } func (c *runnerClient) DuplicateTestCase(ctx context.Context, in *TestCaseDuplicate, opts ...grpc.CallOption) (*HelloReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(HelloReply) - err := c.cc.Invoke(ctx, "/server.Runner/DuplicateTestCase", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_DuplicateTestCase_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -308,8 +341,9 @@ func (c *runnerClient) DuplicateTestCase(ctx context.Context, in *TestCaseDuplic } func (c *runnerClient) RenameTestCase(ctx context.Context, in *TestCaseDuplicate, opts ...grpc.CallOption) (*HelloReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(HelloReply) - err := c.cc.Invoke(ctx, "/server.Runner/RenameTestCase", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_RenameTestCase_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -317,8 +351,9 @@ func (c *runnerClient) RenameTestCase(ctx context.Context, in *TestCaseDuplicate } func (c *runnerClient) GetSuggestedAPIs(ctx context.Context, in *TestSuiteIdentity, opts ...grpc.CallOption) (*TestCases, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TestCases) - err := c.cc.Invoke(ctx, "/server.Runner/GetSuggestedAPIs", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_GetSuggestedAPIs_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -326,8 +361,9 @@ func (c *runnerClient) GetSuggestedAPIs(ctx context.Context, in *TestSuiteIdenti } func (c *runnerClient) GetHistorySuites(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*HistorySuites, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(HistorySuites) - err := c.cc.Invoke(ctx, "/server.Runner/GetHistorySuites", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_GetHistorySuites_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -335,8 +371,9 @@ func (c *runnerClient) GetHistorySuites(ctx context.Context, in *Empty, opts ... } func (c *runnerClient) GetHistoryTestCaseWithResult(ctx context.Context, in *HistoryTestCase, opts ...grpc.CallOption) (*HistoryTestResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(HistoryTestResult) - err := c.cc.Invoke(ctx, "/server.Runner/GetHistoryTestCaseWithResult", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_GetHistoryTestCaseWithResult_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -344,8 +381,9 @@ func (c *runnerClient) GetHistoryTestCaseWithResult(ctx context.Context, in *His } func (c *runnerClient) GetHistoryTestCase(ctx context.Context, in *HistoryTestCase, opts ...grpc.CallOption) (*HistoryTestCase, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(HistoryTestCase) - err := c.cc.Invoke(ctx, "/server.Runner/GetHistoryTestCase", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_GetHistoryTestCase_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -353,8 +391,9 @@ func (c *runnerClient) GetHistoryTestCase(ctx context.Context, in *HistoryTestCa } func (c *runnerClient) DeleteHistoryTestCase(ctx context.Context, in *HistoryTestCase, opts ...grpc.CallOption) (*HelloReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(HelloReply) - err := c.cc.Invoke(ctx, "/server.Runner/DeleteHistoryTestCase", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_DeleteHistoryTestCase_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -362,8 +401,9 @@ func (c *runnerClient) DeleteHistoryTestCase(ctx context.Context, in *HistoryTes } func (c *runnerClient) DeleteAllHistoryTestCase(ctx context.Context, in *HistoryTestCase, opts ...grpc.CallOption) (*HelloReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(HelloReply) - err := c.cc.Invoke(ctx, "/server.Runner/DeleteAllHistoryTestCase", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_DeleteAllHistoryTestCase_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -371,8 +411,9 @@ func (c *runnerClient) DeleteAllHistoryTestCase(ctx context.Context, in *History } func (c *runnerClient) GetTestCaseAllHistory(ctx context.Context, in *TestCase, opts ...grpc.CallOption) (*HistoryTestCases, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(HistoryTestCases) - err := c.cc.Invoke(ctx, "/server.Runner/GetTestCaseAllHistory", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_GetTestCaseAllHistory_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -380,8 +421,9 @@ func (c *runnerClient) GetTestCaseAllHistory(ctx context.Context, in *TestCase, } func (c *runnerClient) ListCodeGenerator(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*SimpleList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SimpleList) - err := c.cc.Invoke(ctx, "/server.Runner/ListCodeGenerator", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_ListCodeGenerator_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -389,8 +431,9 @@ func (c *runnerClient) ListCodeGenerator(ctx context.Context, in *Empty, opts .. } func (c *runnerClient) GenerateCode(ctx context.Context, in *CodeGenerateRequest, opts ...grpc.CallOption) (*CommonResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CommonResult) - err := c.cc.Invoke(ctx, "/server.Runner/GenerateCode", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_GenerateCode_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -398,8 +441,9 @@ func (c *runnerClient) GenerateCode(ctx context.Context, in *CodeGenerateRequest } func (c *runnerClient) HistoryGenerateCode(ctx context.Context, in *CodeGenerateRequest, opts ...grpc.CallOption) (*CommonResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CommonResult) - err := c.cc.Invoke(ctx, "/server.Runner/HistoryGenerateCode", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_HistoryGenerateCode_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -407,8 +451,9 @@ func (c *runnerClient) HistoryGenerateCode(ctx context.Context, in *CodeGenerate } func (c *runnerClient) ListConverter(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*SimpleList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SimpleList) - err := c.cc.Invoke(ctx, "/server.Runner/ListConverter", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_ListConverter_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -416,8 +461,9 @@ func (c *runnerClient) ListConverter(ctx context.Context, in *Empty, opts ...grp } func (c *runnerClient) ConvertTestSuite(ctx context.Context, in *CodeGenerateRequest, opts ...grpc.CallOption) (*CommonResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CommonResult) - err := c.cc.Invoke(ctx, "/server.Runner/ConvertTestSuite", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_ConvertTestSuite_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -425,8 +471,9 @@ func (c *runnerClient) ConvertTestSuite(ctx context.Context, in *CodeGenerateReq } func (c *runnerClient) PopularHeaders(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Pairs, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Pairs) - err := c.cc.Invoke(ctx, "/server.Runner/PopularHeaders", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_PopularHeaders_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -434,48 +481,32 @@ func (c *runnerClient) PopularHeaders(ctx context.Context, in *Empty, opts ...gr } func (c *runnerClient) FunctionsQuery(ctx context.Context, in *SimpleQuery, opts ...grpc.CallOption) (*Pairs, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Pairs) - err := c.cc.Invoke(ctx, "/server.Runner/FunctionsQuery", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_FunctionsQuery_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *runnerClient) FunctionsQueryStream(ctx context.Context, opts ...grpc.CallOption) (Runner_FunctionsQueryStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &Runner_ServiceDesc.Streams[2], "/server.Runner/FunctionsQueryStream", opts...) +func (c *runnerClient) FunctionsQueryStream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[SimpleQuery, Pairs], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &Runner_ServiceDesc.Streams[2], Runner_FunctionsQueryStream_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &runnerFunctionsQueryStreamClient{stream} + x := &grpc.GenericClientStream[SimpleQuery, Pairs]{ClientStream: stream} return x, nil } -type Runner_FunctionsQueryStreamClient interface { - Send(*SimpleQuery) error - Recv() (*Pairs, error) - grpc.ClientStream -} - -type runnerFunctionsQueryStreamClient struct { - grpc.ClientStream -} - -func (x *runnerFunctionsQueryStreamClient) Send(m *SimpleQuery) error { - return x.ClientStream.SendMsg(m) -} - -func (x *runnerFunctionsQueryStreamClient) Recv() (*Pairs, error) { - m := new(Pairs) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Runner_FunctionsQueryStreamClient = grpc.BidiStreamingClient[SimpleQuery, Pairs] func (c *runnerClient) GetVersion(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Version, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Version) - err := c.cc.Invoke(ctx, "/server.Runner/GetVersion", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_GetVersion_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -483,8 +514,9 @@ func (c *runnerClient) GetVersion(ctx context.Context, in *Empty, opts ...grpc.C } func (c *runnerClient) Sample(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*HelloReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(HelloReply) - err := c.cc.Invoke(ctx, "/server.Runner/Sample", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_Sample_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -492,8 +524,9 @@ func (c *runnerClient) Sample(ctx context.Context, in *Empty, opts ...grpc.CallO } func (c *runnerClient) DownloadResponseFile(ctx context.Context, in *TestCase, opts ...grpc.CallOption) (*FileData, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FileData) - err := c.cc.Invoke(ctx, "/server.Runner/DownloadResponseFile", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_DownloadResponseFile_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -501,8 +534,9 @@ func (c *runnerClient) DownloadResponseFile(ctx context.Context, in *TestCase, o } func (c *runnerClient) GetStoreKinds(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*StoreKinds, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(StoreKinds) - err := c.cc.Invoke(ctx, "/server.Runner/GetStoreKinds", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_GetStoreKinds_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -510,8 +544,9 @@ func (c *runnerClient) GetStoreKinds(ctx context.Context, in *Empty, opts ...grp } func (c *runnerClient) GetStores(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Stores, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Stores) - err := c.cc.Invoke(ctx, "/server.Runner/GetStores", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_GetStores_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -519,8 +554,9 @@ func (c *runnerClient) GetStores(ctx context.Context, in *Empty, opts ...grpc.Ca } func (c *runnerClient) CreateStore(ctx context.Context, in *Store, opts ...grpc.CallOption) (*Store, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Store) - err := c.cc.Invoke(ctx, "/server.Runner/CreateStore", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_CreateStore_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -528,8 +564,9 @@ func (c *runnerClient) CreateStore(ctx context.Context, in *Store, opts ...grpc. } func (c *runnerClient) UpdateStore(ctx context.Context, in *Store, opts ...grpc.CallOption) (*Store, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Store) - err := c.cc.Invoke(ctx, "/server.Runner/UpdateStore", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_UpdateStore_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -537,8 +574,9 @@ func (c *runnerClient) UpdateStore(ctx context.Context, in *Store, opts ...grpc. } func (c *runnerClient) DeleteStore(ctx context.Context, in *Store, opts ...grpc.CallOption) (*Store, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Store) - err := c.cc.Invoke(ctx, "/server.Runner/DeleteStore", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_DeleteStore_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -546,8 +584,9 @@ func (c *runnerClient) DeleteStore(ctx context.Context, in *Store, opts ...grpc. } func (c *runnerClient) VerifyStore(ctx context.Context, in *SimpleQuery, opts ...grpc.CallOption) (*ExtensionStatus, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ExtensionStatus) - err := c.cc.Invoke(ctx, "/server.Runner/VerifyStore", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_VerifyStore_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -555,8 +594,9 @@ func (c *runnerClient) VerifyStore(ctx context.Context, in *SimpleQuery, opts .. } func (c *runnerClient) GetSecrets(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Secrets, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Secrets) - err := c.cc.Invoke(ctx, "/server.Runner/GetSecrets", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_GetSecrets_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -564,8 +604,9 @@ func (c *runnerClient) GetSecrets(ctx context.Context, in *Empty, opts ...grpc.C } func (c *runnerClient) CreateSecret(ctx context.Context, in *Secret, opts ...grpc.CallOption) (*CommonResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CommonResult) - err := c.cc.Invoke(ctx, "/server.Runner/CreateSecret", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_CreateSecret_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -573,8 +614,9 @@ func (c *runnerClient) CreateSecret(ctx context.Context, in *Secret, opts ...grp } func (c *runnerClient) DeleteSecret(ctx context.Context, in *Secret, opts ...grpc.CallOption) (*CommonResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CommonResult) - err := c.cc.Invoke(ctx, "/server.Runner/DeleteSecret", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_DeleteSecret_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -582,8 +624,9 @@ func (c *runnerClient) DeleteSecret(ctx context.Context, in *Secret, opts ...grp } func (c *runnerClient) UpdateSecret(ctx context.Context, in *Secret, opts ...grpc.CallOption) (*CommonResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CommonResult) - err := c.cc.Invoke(ctx, "/server.Runner/UpdateSecret", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_UpdateSecret_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -591,8 +634,9 @@ func (c *runnerClient) UpdateSecret(ctx context.Context, in *Secret, opts ...grp } func (c *runnerClient) PProf(ctx context.Context, in *PProfRequest, opts ...grpc.CallOption) (*PProfData, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PProfData) - err := c.cc.Invoke(ctx, "/server.Runner/PProf", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_PProf_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -601,11 +645,11 @@ func (c *runnerClient) PProf(ctx context.Context, in *PProfRequest, opts ...grpc // RunnerServer is the server API for Runner service. // All implementations must embed UnimplementedRunnerServer -// for forward compatibility +// for forward compatibility. type RunnerServer interface { // belong to a specific store Run(context.Context, *TestTask) (*TestResult, error) - RunTestSuite(Runner_RunTestSuiteServer) error + RunTestSuite(grpc.BidiStreamingServer[TestSuiteIdentity, TestResult]) error // test suites related GetSuites(context.Context, *Empty) (*Suites, error) CreateTestSuite(context.Context, *TestSuiteIdentity) (*HelloReply, error) @@ -620,7 +664,7 @@ type RunnerServer interface { ListTestCase(context.Context, *TestSuiteIdentity) (*Suite, error) // run target test case of a specific test suite RunTestCase(context.Context, *TestCaseIdentity) (*TestCaseResult, error) - BatchRun(Runner_BatchRunServer) error + BatchRun(grpc.BidiStreamingServer[BatchTestTask, TestResult]) error GetTestCase(context.Context, *TestCaseIdentity) (*TestCase, error) CreateTestCase(context.Context, *TestCaseWithSuite) (*HelloReply, error) UpdateTestCase(context.Context, *TestCaseWithSuite) (*HelloReply, error) @@ -645,7 +689,7 @@ type RunnerServer interface { // common services PopularHeaders(context.Context, *Empty) (*Pairs, error) FunctionsQuery(context.Context, *SimpleQuery) (*Pairs, error) - FunctionsQueryStream(Runner_FunctionsQueryStreamServer) error + FunctionsQueryStream(grpc.BidiStreamingServer[SimpleQuery, Pairs]) error GetVersion(context.Context, *Empty) (*Version, error) Sample(context.Context, *Empty) (*HelloReply, error) DownloadResponseFile(context.Context, *TestCase) (*FileData, error) @@ -666,14 +710,17 @@ type RunnerServer interface { mustEmbedUnimplementedRunnerServer() } -// UnimplementedRunnerServer must be embedded to have forward compatible implementations. -type UnimplementedRunnerServer struct { -} +// UnimplementedRunnerServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedRunnerServer struct{} func (UnimplementedRunnerServer) Run(context.Context, *TestTask) (*TestResult, error) { return nil, status.Errorf(codes.Unimplemented, "method Run not implemented") } -func (UnimplementedRunnerServer) RunTestSuite(Runner_RunTestSuiteServer) error { +func (UnimplementedRunnerServer) RunTestSuite(grpc.BidiStreamingServer[TestSuiteIdentity, TestResult]) error { return status.Errorf(codes.Unimplemented, "method RunTestSuite not implemented") } func (UnimplementedRunnerServer) GetSuites(context.Context, *Empty) (*Suites, error) { @@ -709,7 +756,7 @@ func (UnimplementedRunnerServer) ListTestCase(context.Context, *TestSuiteIdentit func (UnimplementedRunnerServer) RunTestCase(context.Context, *TestCaseIdentity) (*TestCaseResult, error) { return nil, status.Errorf(codes.Unimplemented, "method RunTestCase not implemented") } -func (UnimplementedRunnerServer) BatchRun(Runner_BatchRunServer) error { +func (UnimplementedRunnerServer) BatchRun(grpc.BidiStreamingServer[BatchTestTask, TestResult]) error { return status.Errorf(codes.Unimplemented, "method BatchRun not implemented") } func (UnimplementedRunnerServer) GetTestCase(context.Context, *TestCaseIdentity) (*TestCase, error) { @@ -772,7 +819,7 @@ func (UnimplementedRunnerServer) PopularHeaders(context.Context, *Empty) (*Pairs func (UnimplementedRunnerServer) FunctionsQuery(context.Context, *SimpleQuery) (*Pairs, error) { return nil, status.Errorf(codes.Unimplemented, "method FunctionsQuery not implemented") } -func (UnimplementedRunnerServer) FunctionsQueryStream(Runner_FunctionsQueryStreamServer) error { +func (UnimplementedRunnerServer) FunctionsQueryStream(grpc.BidiStreamingServer[SimpleQuery, Pairs]) error { return status.Errorf(codes.Unimplemented, "method FunctionsQueryStream not implemented") } func (UnimplementedRunnerServer) GetVersion(context.Context, *Empty) (*Version, error) { @@ -818,6 +865,7 @@ func (UnimplementedRunnerServer) PProf(context.Context, *PProfRequest) (*PProfDa return nil, status.Errorf(codes.Unimplemented, "method PProf not implemented") } func (UnimplementedRunnerServer) mustEmbedUnimplementedRunnerServer() {} +func (UnimplementedRunnerServer) testEmbeddedByValue() {} // UnsafeRunnerServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to RunnerServer will @@ -827,6 +875,13 @@ type UnsafeRunnerServer interface { } func RegisterRunnerServer(s grpc.ServiceRegistrar, srv RunnerServer) { + // If the following call pancis, it indicates UnimplementedRunnerServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Runner_ServiceDesc, srv) } @@ -840,7 +895,7 @@ func _Runner_Run_Handler(srv interface{}, ctx context.Context, dec func(interfac } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/Run", + FullMethod: Runner_Run_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).Run(ctx, req.(*TestTask)) @@ -849,30 +904,11 @@ func _Runner_Run_Handler(srv interface{}, ctx context.Context, dec func(interfac } func _Runner_RunTestSuite_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(RunnerServer).RunTestSuite(&runnerRunTestSuiteServer{stream}) + return srv.(RunnerServer).RunTestSuite(&grpc.GenericServerStream[TestSuiteIdentity, TestResult]{ServerStream: stream}) } -type Runner_RunTestSuiteServer interface { - Send(*TestResult) error - Recv() (*TestSuiteIdentity, error) - grpc.ServerStream -} - -type runnerRunTestSuiteServer struct { - grpc.ServerStream -} - -func (x *runnerRunTestSuiteServer) Send(m *TestResult) error { - return x.ServerStream.SendMsg(m) -} - -func (x *runnerRunTestSuiteServer) Recv() (*TestSuiteIdentity, error) { - m := new(TestSuiteIdentity) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Runner_RunTestSuiteServer = grpc.BidiStreamingServer[TestSuiteIdentity, TestResult] func _Runner_GetSuites_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(Empty) @@ -884,7 +920,7 @@ func _Runner_GetSuites_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/GetSuites", + FullMethod: Runner_GetSuites_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).GetSuites(ctx, req.(*Empty)) @@ -902,7 +938,7 @@ func _Runner_CreateTestSuite_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/CreateTestSuite", + FullMethod: Runner_CreateTestSuite_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).CreateTestSuite(ctx, req.(*TestSuiteIdentity)) @@ -920,7 +956,7 @@ func _Runner_ImportTestSuite_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/ImportTestSuite", + FullMethod: Runner_ImportTestSuite_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).ImportTestSuite(ctx, req.(*TestSuiteSource)) @@ -938,7 +974,7 @@ func _Runner_GetTestSuite_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/GetTestSuite", + FullMethod: Runner_GetTestSuite_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).GetTestSuite(ctx, req.(*TestSuiteIdentity)) @@ -956,7 +992,7 @@ func _Runner_UpdateTestSuite_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/UpdateTestSuite", + FullMethod: Runner_UpdateTestSuite_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).UpdateTestSuite(ctx, req.(*TestSuite)) @@ -974,7 +1010,7 @@ func _Runner_DeleteTestSuite_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/DeleteTestSuite", + FullMethod: Runner_DeleteTestSuite_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).DeleteTestSuite(ctx, req.(*TestSuiteIdentity)) @@ -992,7 +1028,7 @@ func _Runner_DuplicateTestSuite_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/DuplicateTestSuite", + FullMethod: Runner_DuplicateTestSuite_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).DuplicateTestSuite(ctx, req.(*TestSuiteDuplicate)) @@ -1010,7 +1046,7 @@ func _Runner_RenameTestSuite_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/RenameTestSuite", + FullMethod: Runner_RenameTestSuite_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).RenameTestSuite(ctx, req.(*TestSuiteDuplicate)) @@ -1028,7 +1064,7 @@ func _Runner_GetTestSuiteYaml_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/GetTestSuiteYaml", + FullMethod: Runner_GetTestSuiteYaml_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).GetTestSuiteYaml(ctx, req.(*TestSuiteIdentity)) @@ -1046,7 +1082,7 @@ func _Runner_ListTestCase_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/ListTestCase", + FullMethod: Runner_ListTestCase_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).ListTestCase(ctx, req.(*TestSuiteIdentity)) @@ -1064,7 +1100,7 @@ func _Runner_RunTestCase_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/RunTestCase", + FullMethod: Runner_RunTestCase_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).RunTestCase(ctx, req.(*TestCaseIdentity)) @@ -1073,30 +1109,11 @@ func _Runner_RunTestCase_Handler(srv interface{}, ctx context.Context, dec func( } func _Runner_BatchRun_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(RunnerServer).BatchRun(&runnerBatchRunServer{stream}) -} - -type Runner_BatchRunServer interface { - Send(*TestResult) error - Recv() (*BatchTestTask, error) - grpc.ServerStream -} - -type runnerBatchRunServer struct { - grpc.ServerStream + return srv.(RunnerServer).BatchRun(&grpc.GenericServerStream[BatchTestTask, TestResult]{ServerStream: stream}) } -func (x *runnerBatchRunServer) Send(m *TestResult) error { - return x.ServerStream.SendMsg(m) -} - -func (x *runnerBatchRunServer) Recv() (*BatchTestTask, error) { - m := new(BatchTestTask) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Runner_BatchRunServer = grpc.BidiStreamingServer[BatchTestTask, TestResult] func _Runner_GetTestCase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(TestCaseIdentity) @@ -1108,7 +1125,7 @@ func _Runner_GetTestCase_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/GetTestCase", + FullMethod: Runner_GetTestCase_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).GetTestCase(ctx, req.(*TestCaseIdentity)) @@ -1126,7 +1143,7 @@ func _Runner_CreateTestCase_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/CreateTestCase", + FullMethod: Runner_CreateTestCase_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).CreateTestCase(ctx, req.(*TestCaseWithSuite)) @@ -1144,7 +1161,7 @@ func _Runner_UpdateTestCase_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/UpdateTestCase", + FullMethod: Runner_UpdateTestCase_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).UpdateTestCase(ctx, req.(*TestCaseWithSuite)) @@ -1162,7 +1179,7 @@ func _Runner_DeleteTestCase_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/DeleteTestCase", + FullMethod: Runner_DeleteTestCase_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).DeleteTestCase(ctx, req.(*TestCaseIdentity)) @@ -1180,7 +1197,7 @@ func _Runner_DuplicateTestCase_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/DuplicateTestCase", + FullMethod: Runner_DuplicateTestCase_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).DuplicateTestCase(ctx, req.(*TestCaseDuplicate)) @@ -1198,7 +1215,7 @@ func _Runner_RenameTestCase_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/RenameTestCase", + FullMethod: Runner_RenameTestCase_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).RenameTestCase(ctx, req.(*TestCaseDuplicate)) @@ -1216,7 +1233,7 @@ func _Runner_GetSuggestedAPIs_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/GetSuggestedAPIs", + FullMethod: Runner_GetSuggestedAPIs_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).GetSuggestedAPIs(ctx, req.(*TestSuiteIdentity)) @@ -1234,7 +1251,7 @@ func _Runner_GetHistorySuites_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/GetHistorySuites", + FullMethod: Runner_GetHistorySuites_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).GetHistorySuites(ctx, req.(*Empty)) @@ -1252,7 +1269,7 @@ func _Runner_GetHistoryTestCaseWithResult_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/GetHistoryTestCaseWithResult", + FullMethod: Runner_GetHistoryTestCaseWithResult_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).GetHistoryTestCaseWithResult(ctx, req.(*HistoryTestCase)) @@ -1270,7 +1287,7 @@ func _Runner_GetHistoryTestCase_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/GetHistoryTestCase", + FullMethod: Runner_GetHistoryTestCase_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).GetHistoryTestCase(ctx, req.(*HistoryTestCase)) @@ -1288,7 +1305,7 @@ func _Runner_DeleteHistoryTestCase_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/DeleteHistoryTestCase", + FullMethod: Runner_DeleteHistoryTestCase_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).DeleteHistoryTestCase(ctx, req.(*HistoryTestCase)) @@ -1306,7 +1323,7 @@ func _Runner_DeleteAllHistoryTestCase_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/DeleteAllHistoryTestCase", + FullMethod: Runner_DeleteAllHistoryTestCase_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).DeleteAllHistoryTestCase(ctx, req.(*HistoryTestCase)) @@ -1324,7 +1341,7 @@ func _Runner_GetTestCaseAllHistory_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/GetTestCaseAllHistory", + FullMethod: Runner_GetTestCaseAllHistory_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).GetTestCaseAllHistory(ctx, req.(*TestCase)) @@ -1342,7 +1359,7 @@ func _Runner_ListCodeGenerator_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/ListCodeGenerator", + FullMethod: Runner_ListCodeGenerator_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).ListCodeGenerator(ctx, req.(*Empty)) @@ -1360,7 +1377,7 @@ func _Runner_GenerateCode_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/GenerateCode", + FullMethod: Runner_GenerateCode_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).GenerateCode(ctx, req.(*CodeGenerateRequest)) @@ -1378,7 +1395,7 @@ func _Runner_HistoryGenerateCode_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/HistoryGenerateCode", + FullMethod: Runner_HistoryGenerateCode_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).HistoryGenerateCode(ctx, req.(*CodeGenerateRequest)) @@ -1396,7 +1413,7 @@ func _Runner_ListConverter_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/ListConverter", + FullMethod: Runner_ListConverter_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).ListConverter(ctx, req.(*Empty)) @@ -1414,7 +1431,7 @@ func _Runner_ConvertTestSuite_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/ConvertTestSuite", + FullMethod: Runner_ConvertTestSuite_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).ConvertTestSuite(ctx, req.(*CodeGenerateRequest)) @@ -1432,7 +1449,7 @@ func _Runner_PopularHeaders_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/PopularHeaders", + FullMethod: Runner_PopularHeaders_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).PopularHeaders(ctx, req.(*Empty)) @@ -1450,7 +1467,7 @@ func _Runner_FunctionsQuery_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/FunctionsQuery", + FullMethod: Runner_FunctionsQuery_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).FunctionsQuery(ctx, req.(*SimpleQuery)) @@ -1459,30 +1476,11 @@ func _Runner_FunctionsQuery_Handler(srv interface{}, ctx context.Context, dec fu } func _Runner_FunctionsQueryStream_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(RunnerServer).FunctionsQueryStream(&runnerFunctionsQueryStreamServer{stream}) -} - -type Runner_FunctionsQueryStreamServer interface { - Send(*Pairs) error - Recv() (*SimpleQuery, error) - grpc.ServerStream -} - -type runnerFunctionsQueryStreamServer struct { - grpc.ServerStream + return srv.(RunnerServer).FunctionsQueryStream(&grpc.GenericServerStream[SimpleQuery, Pairs]{ServerStream: stream}) } -func (x *runnerFunctionsQueryStreamServer) Send(m *Pairs) error { - return x.ServerStream.SendMsg(m) -} - -func (x *runnerFunctionsQueryStreamServer) Recv() (*SimpleQuery, error) { - m := new(SimpleQuery) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Runner_FunctionsQueryStreamServer = grpc.BidiStreamingServer[SimpleQuery, Pairs] func _Runner_GetVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(Empty) @@ -1494,7 +1492,7 @@ func _Runner_GetVersion_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/GetVersion", + FullMethod: Runner_GetVersion_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).GetVersion(ctx, req.(*Empty)) @@ -1512,7 +1510,7 @@ func _Runner_Sample_Handler(srv interface{}, ctx context.Context, dec func(inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/Sample", + FullMethod: Runner_Sample_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).Sample(ctx, req.(*Empty)) @@ -1530,7 +1528,7 @@ func _Runner_DownloadResponseFile_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/DownloadResponseFile", + FullMethod: Runner_DownloadResponseFile_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).DownloadResponseFile(ctx, req.(*TestCase)) @@ -1548,7 +1546,7 @@ func _Runner_GetStoreKinds_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/GetStoreKinds", + FullMethod: Runner_GetStoreKinds_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).GetStoreKinds(ctx, req.(*Empty)) @@ -1566,7 +1564,7 @@ func _Runner_GetStores_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/GetStores", + FullMethod: Runner_GetStores_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).GetStores(ctx, req.(*Empty)) @@ -1584,7 +1582,7 @@ func _Runner_CreateStore_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/CreateStore", + FullMethod: Runner_CreateStore_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).CreateStore(ctx, req.(*Store)) @@ -1602,7 +1600,7 @@ func _Runner_UpdateStore_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/UpdateStore", + FullMethod: Runner_UpdateStore_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).UpdateStore(ctx, req.(*Store)) @@ -1620,7 +1618,7 @@ func _Runner_DeleteStore_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/DeleteStore", + FullMethod: Runner_DeleteStore_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).DeleteStore(ctx, req.(*Store)) @@ -1638,7 +1636,7 @@ func _Runner_VerifyStore_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/VerifyStore", + FullMethod: Runner_VerifyStore_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).VerifyStore(ctx, req.(*SimpleQuery)) @@ -1656,7 +1654,7 @@ func _Runner_GetSecrets_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/GetSecrets", + FullMethod: Runner_GetSecrets_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).GetSecrets(ctx, req.(*Empty)) @@ -1674,7 +1672,7 @@ func _Runner_CreateSecret_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/CreateSecret", + FullMethod: Runner_CreateSecret_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).CreateSecret(ctx, req.(*Secret)) @@ -1692,7 +1690,7 @@ func _Runner_DeleteSecret_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/DeleteSecret", + FullMethod: Runner_DeleteSecret_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).DeleteSecret(ctx, req.(*Secret)) @@ -1710,7 +1708,7 @@ func _Runner_UpdateSecret_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/UpdateSecret", + FullMethod: Runner_UpdateSecret_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).UpdateSecret(ctx, req.(*Secret)) @@ -1728,7 +1726,7 @@ func _Runner_PProf_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Runner/PProf", + FullMethod: Runner_PProf_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).PProf(ctx, req.(*PProfRequest)) @@ -1951,6 +1949,10 @@ var Runner_ServiceDesc = grpc.ServiceDesc{ Metadata: "pkg/server/server.proto", } +const ( + RunnerExtension_Run_FullMethodName = "/server.RunnerExtension/Run" +) + // RunnerExtensionClient is the client API for RunnerExtension service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -1967,8 +1969,9 @@ func NewRunnerExtensionClient(cc grpc.ClientConnInterface) RunnerExtensionClient } func (c *runnerExtensionClient) Run(ctx context.Context, in *TestSuiteWithCase, opts ...grpc.CallOption) (*CommonResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CommonResult) - err := c.cc.Invoke(ctx, "/server.RunnerExtension/Run", in, out, opts...) + err := c.cc.Invoke(ctx, RunnerExtension_Run_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1977,20 +1980,24 @@ func (c *runnerExtensionClient) Run(ctx context.Context, in *TestSuiteWithCase, // RunnerExtensionServer is the server API for RunnerExtension service. // All implementations must embed UnimplementedRunnerExtensionServer -// for forward compatibility +// for forward compatibility. type RunnerExtensionServer interface { Run(context.Context, *TestSuiteWithCase) (*CommonResult, error) mustEmbedUnimplementedRunnerExtensionServer() } -// UnimplementedRunnerExtensionServer must be embedded to have forward compatible implementations. -type UnimplementedRunnerExtensionServer struct { -} +// UnimplementedRunnerExtensionServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedRunnerExtensionServer struct{} func (UnimplementedRunnerExtensionServer) Run(context.Context, *TestSuiteWithCase) (*CommonResult, error) { return nil, status.Errorf(codes.Unimplemented, "method Run not implemented") } func (UnimplementedRunnerExtensionServer) mustEmbedUnimplementedRunnerExtensionServer() {} +func (UnimplementedRunnerExtensionServer) testEmbeddedByValue() {} // UnsafeRunnerExtensionServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to RunnerExtensionServer will @@ -2000,6 +2007,13 @@ type UnsafeRunnerExtensionServer interface { } func RegisterRunnerExtensionServer(s grpc.ServiceRegistrar, srv RunnerExtensionServer) { + // If the following call pancis, it indicates UnimplementedRunnerExtensionServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&RunnerExtension_ServiceDesc, srv) } @@ -2013,7 +2027,7 @@ func _RunnerExtension_Run_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.RunnerExtension/Run", + FullMethod: RunnerExtension_Run_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerExtensionServer).Run(ctx, req.(*TestSuiteWithCase)) @@ -2037,6 +2051,13 @@ var RunnerExtension_ServiceDesc = grpc.ServiceDesc{ Metadata: "pkg/server/server.proto", } +const ( + ThemeExtension_GetThemes_FullMethodName = "/server.ThemeExtension/GetThemes" + ThemeExtension_GetTheme_FullMethodName = "/server.ThemeExtension/GetTheme" + ThemeExtension_GetBindings_FullMethodName = "/server.ThemeExtension/GetBindings" + ThemeExtension_GetBinding_FullMethodName = "/server.ThemeExtension/GetBinding" +) + // ThemeExtensionClient is the client API for ThemeExtension service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -2056,8 +2077,9 @@ func NewThemeExtensionClient(cc grpc.ClientConnInterface) ThemeExtensionClient { } func (c *themeExtensionClient) GetThemes(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*SimpleList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SimpleList) - err := c.cc.Invoke(ctx, "/server.ThemeExtension/GetThemes", in, out, opts...) + err := c.cc.Invoke(ctx, ThemeExtension_GetThemes_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -2065,8 +2087,9 @@ func (c *themeExtensionClient) GetThemes(ctx context.Context, in *Empty, opts .. } func (c *themeExtensionClient) GetTheme(ctx context.Context, in *SimpleName, opts ...grpc.CallOption) (*CommonResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CommonResult) - err := c.cc.Invoke(ctx, "/server.ThemeExtension/GetTheme", in, out, opts...) + err := c.cc.Invoke(ctx, ThemeExtension_GetTheme_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -2074,8 +2097,9 @@ func (c *themeExtensionClient) GetTheme(ctx context.Context, in *SimpleName, opt } func (c *themeExtensionClient) GetBindings(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*SimpleList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SimpleList) - err := c.cc.Invoke(ctx, "/server.ThemeExtension/GetBindings", in, out, opts...) + err := c.cc.Invoke(ctx, ThemeExtension_GetBindings_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -2083,8 +2107,9 @@ func (c *themeExtensionClient) GetBindings(ctx context.Context, in *Empty, opts } func (c *themeExtensionClient) GetBinding(ctx context.Context, in *SimpleName, opts ...grpc.CallOption) (*CommonResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CommonResult) - err := c.cc.Invoke(ctx, "/server.ThemeExtension/GetBinding", in, out, opts...) + err := c.cc.Invoke(ctx, ThemeExtension_GetBinding_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -2093,7 +2118,7 @@ func (c *themeExtensionClient) GetBinding(ctx context.Context, in *SimpleName, o // ThemeExtensionServer is the server API for ThemeExtension service. // All implementations must embed UnimplementedThemeExtensionServer -// for forward compatibility +// for forward compatibility. type ThemeExtensionServer interface { GetThemes(context.Context, *Empty) (*SimpleList, error) GetTheme(context.Context, *SimpleName) (*CommonResult, error) @@ -2102,9 +2127,12 @@ type ThemeExtensionServer interface { mustEmbedUnimplementedThemeExtensionServer() } -// UnimplementedThemeExtensionServer must be embedded to have forward compatible implementations. -type UnimplementedThemeExtensionServer struct { -} +// UnimplementedThemeExtensionServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedThemeExtensionServer struct{} func (UnimplementedThemeExtensionServer) GetThemes(context.Context, *Empty) (*SimpleList, error) { return nil, status.Errorf(codes.Unimplemented, "method GetThemes not implemented") @@ -2119,6 +2147,7 @@ func (UnimplementedThemeExtensionServer) GetBinding(context.Context, *SimpleName return nil, status.Errorf(codes.Unimplemented, "method GetBinding not implemented") } func (UnimplementedThemeExtensionServer) mustEmbedUnimplementedThemeExtensionServer() {} +func (UnimplementedThemeExtensionServer) testEmbeddedByValue() {} // UnsafeThemeExtensionServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ThemeExtensionServer will @@ -2128,6 +2157,13 @@ type UnsafeThemeExtensionServer interface { } func RegisterThemeExtensionServer(s grpc.ServiceRegistrar, srv ThemeExtensionServer) { + // If the following call pancis, it indicates UnimplementedThemeExtensionServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ThemeExtension_ServiceDesc, srv) } @@ -2141,7 +2177,7 @@ func _ThemeExtension_GetThemes_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.ThemeExtension/GetThemes", + FullMethod: ThemeExtension_GetThemes_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ThemeExtensionServer).GetThemes(ctx, req.(*Empty)) @@ -2159,7 +2195,7 @@ func _ThemeExtension_GetTheme_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.ThemeExtension/GetTheme", + FullMethod: ThemeExtension_GetTheme_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ThemeExtensionServer).GetTheme(ctx, req.(*SimpleName)) @@ -2177,7 +2213,7 @@ func _ThemeExtension_GetBindings_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.ThemeExtension/GetBindings", + FullMethod: ThemeExtension_GetBindings_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ThemeExtensionServer).GetBindings(ctx, req.(*Empty)) @@ -2195,7 +2231,7 @@ func _ThemeExtension_GetBinding_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.ThemeExtension/GetBinding", + FullMethod: ThemeExtension_GetBinding_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ThemeExtensionServer).GetBinding(ctx, req.(*SimpleName)) @@ -2231,6 +2267,163 @@ var ThemeExtension_ServiceDesc = grpc.ServiceDesc{ Metadata: "pkg/server/server.proto", } +const ( + AIExtension_GenerateContent_FullMethodName = "/server.AIExtension/GenerateContent" + AIExtension_GenerateSQLFromNaturalLanguage_FullMethodName = "/server.AIExtension/GenerateSQLFromNaturalLanguage" +) + +// AIExtensionClient is the client API for AIExtension service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// AIExtension service provides AI-powered capabilities for atest. +type AIExtensionClient interface { + // Generates content based on natural language prompts with context. + // This is a general-purpose AI interface that can handle SQL generation, + // test case writing, mock service creation, and other AI-powered tasks. + GenerateContent(ctx context.Context, in *GenerateContentRequest, opts ...grpc.CallOption) (*GenerateContentResponse, error) + // Legacy SQL generation endpoint for backward compatibility + GenerateSQLFromNaturalLanguage(ctx context.Context, in *GenerateSQLRequest, opts ...grpc.CallOption) (*GenerateSQLResponse, error) +} + +type aIExtensionClient struct { + cc grpc.ClientConnInterface +} + +func NewAIExtensionClient(cc grpc.ClientConnInterface) AIExtensionClient { + return &aIExtensionClient{cc} +} + +func (c *aIExtensionClient) GenerateContent(ctx context.Context, in *GenerateContentRequest, opts ...grpc.CallOption) (*GenerateContentResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GenerateContentResponse) + err := c.cc.Invoke(ctx, AIExtension_GenerateContent_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aIExtensionClient) GenerateSQLFromNaturalLanguage(ctx context.Context, in *GenerateSQLRequest, opts ...grpc.CallOption) (*GenerateSQLResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GenerateSQLResponse) + err := c.cc.Invoke(ctx, AIExtension_GenerateSQLFromNaturalLanguage_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// AIExtensionServer is the server API for AIExtension service. +// All implementations must embed UnimplementedAIExtensionServer +// for forward compatibility. +// +// AIExtension service provides AI-powered capabilities for atest. +type AIExtensionServer interface { + // Generates content based on natural language prompts with context. + // This is a general-purpose AI interface that can handle SQL generation, + // test case writing, mock service creation, and other AI-powered tasks. + GenerateContent(context.Context, *GenerateContentRequest) (*GenerateContentResponse, error) + // Legacy SQL generation endpoint for backward compatibility + GenerateSQLFromNaturalLanguage(context.Context, *GenerateSQLRequest) (*GenerateSQLResponse, error) + mustEmbedUnimplementedAIExtensionServer() +} + +// UnimplementedAIExtensionServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedAIExtensionServer struct{} + +func (UnimplementedAIExtensionServer) GenerateContent(context.Context, *GenerateContentRequest) (*GenerateContentResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GenerateContent not implemented") +} +func (UnimplementedAIExtensionServer) GenerateSQLFromNaturalLanguage(context.Context, *GenerateSQLRequest) (*GenerateSQLResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GenerateSQLFromNaturalLanguage not implemented") +} +func (UnimplementedAIExtensionServer) mustEmbedUnimplementedAIExtensionServer() {} +func (UnimplementedAIExtensionServer) testEmbeddedByValue() {} + +// UnsafeAIExtensionServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to AIExtensionServer will +// result in compilation errors. +type UnsafeAIExtensionServer interface { + mustEmbedUnimplementedAIExtensionServer() +} + +func RegisterAIExtensionServer(s grpc.ServiceRegistrar, srv AIExtensionServer) { + // If the following call pancis, it indicates UnimplementedAIExtensionServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&AIExtension_ServiceDesc, srv) +} + +func _AIExtension_GenerateContent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GenerateContentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AIExtensionServer).GenerateContent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AIExtension_GenerateContent_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AIExtensionServer).GenerateContent(ctx, req.(*GenerateContentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AIExtension_GenerateSQLFromNaturalLanguage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GenerateSQLRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AIExtensionServer).GenerateSQLFromNaturalLanguage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AIExtension_GenerateSQLFromNaturalLanguage_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AIExtensionServer).GenerateSQLFromNaturalLanguage(ctx, req.(*GenerateSQLRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// AIExtension_ServiceDesc is the grpc.ServiceDesc for AIExtension service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var AIExtension_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "server.AIExtension", + HandlerType: (*AIExtensionServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GenerateContent", + Handler: _AIExtension_GenerateContent_Handler, + }, + { + MethodName: "GenerateSQLFromNaturalLanguage", + Handler: _AIExtension_GenerateSQLFromNaturalLanguage_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "pkg/server/server.proto", +} + +const ( + Mock_Reload_FullMethodName = "/server.Mock/Reload" + Mock_GetConfig_FullMethodName = "/server.Mock/GetConfig" +) + // MockClient is the client API for Mock service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -2248,8 +2441,9 @@ func NewMockClient(cc grpc.ClientConnInterface) MockClient { } func (c *mockClient) Reload(ctx context.Context, in *MockConfig, opts ...grpc.CallOption) (*Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Empty) - err := c.cc.Invoke(ctx, "/server.Mock/Reload", in, out, opts...) + err := c.cc.Invoke(ctx, Mock_Reload_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -2257,8 +2451,9 @@ func (c *mockClient) Reload(ctx context.Context, in *MockConfig, opts ...grpc.Ca } func (c *mockClient) GetConfig(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*MockConfig, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(MockConfig) - err := c.cc.Invoke(ctx, "/server.Mock/GetConfig", in, out, opts...) + err := c.cc.Invoke(ctx, Mock_GetConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -2267,16 +2462,19 @@ func (c *mockClient) GetConfig(ctx context.Context, in *Empty, opts ...grpc.Call // MockServer is the server API for Mock service. // All implementations must embed UnimplementedMockServer -// for forward compatibility +// for forward compatibility. type MockServer interface { Reload(context.Context, *MockConfig) (*Empty, error) GetConfig(context.Context, *Empty) (*MockConfig, error) mustEmbedUnimplementedMockServer() } -// UnimplementedMockServer must be embedded to have forward compatible implementations. -type UnimplementedMockServer struct { -} +// UnimplementedMockServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedMockServer struct{} func (UnimplementedMockServer) Reload(context.Context, *MockConfig) (*Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method Reload not implemented") @@ -2285,6 +2483,7 @@ func (UnimplementedMockServer) GetConfig(context.Context, *Empty) (*MockConfig, return nil, status.Errorf(codes.Unimplemented, "method GetConfig not implemented") } func (UnimplementedMockServer) mustEmbedUnimplementedMockServer() {} +func (UnimplementedMockServer) testEmbeddedByValue() {} // UnsafeMockServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to MockServer will @@ -2294,6 +2493,13 @@ type UnsafeMockServer interface { } func RegisterMockServer(s grpc.ServiceRegistrar, srv MockServer) { + // If the following call pancis, it indicates UnimplementedMockServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Mock_ServiceDesc, srv) } @@ -2307,7 +2513,7 @@ func _Mock_Reload_Handler(srv interface{}, ctx context.Context, dec func(interfa } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Mock/Reload", + FullMethod: Mock_Reload_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MockServer).Reload(ctx, req.(*MockConfig)) @@ -2325,7 +2531,7 @@ func _Mock_GetConfig_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.Mock/GetConfig", + FullMethod: Mock_GetConfig_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MockServer).GetConfig(ctx, req.(*Empty)) @@ -2353,6 +2559,10 @@ var Mock_ServiceDesc = grpc.ServiceDesc{ Metadata: "pkg/server/server.proto", } +const ( + DataServer_Query_FullMethodName = "/server.DataServer/Query" +) + // DataServerClient is the client API for DataServer service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -2369,8 +2579,9 @@ func NewDataServerClient(cc grpc.ClientConnInterface) DataServerClient { } func (c *dataServerClient) Query(ctx context.Context, in *DataQuery, opts ...grpc.CallOption) (*DataQueryResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DataQueryResult) - err := c.cc.Invoke(ctx, "/server.DataServer/Query", in, out, opts...) + err := c.cc.Invoke(ctx, DataServer_Query_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -2379,20 +2590,24 @@ func (c *dataServerClient) Query(ctx context.Context, in *DataQuery, opts ...grp // DataServerServer is the server API for DataServer service. // All implementations must embed UnimplementedDataServerServer -// for forward compatibility +// for forward compatibility. type DataServerServer interface { Query(context.Context, *DataQuery) (*DataQueryResult, error) mustEmbedUnimplementedDataServerServer() } -// UnimplementedDataServerServer must be embedded to have forward compatible implementations. -type UnimplementedDataServerServer struct { -} +// UnimplementedDataServerServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDataServerServer struct{} func (UnimplementedDataServerServer) Query(context.Context, *DataQuery) (*DataQueryResult, error) { return nil, status.Errorf(codes.Unimplemented, "method Query not implemented") } func (UnimplementedDataServerServer) mustEmbedUnimplementedDataServerServer() {} +func (UnimplementedDataServerServer) testEmbeddedByValue() {} // UnsafeDataServerServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to DataServerServer will @@ -2402,6 +2617,13 @@ type UnsafeDataServerServer interface { } func RegisterDataServerServer(s grpc.ServiceRegistrar, srv DataServerServer) { + // If the following call pancis, it indicates UnimplementedDataServerServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&DataServer_ServiceDesc, srv) } @@ -2415,7 +2637,7 @@ func _DataServer_Query_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/server.DataServer/Query", + FullMethod: DataServer_Query_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DataServerServer).Query(ctx, req.(*DataQuery)) diff --git a/pkg/testing/remote/loader.pb.go b/pkg/testing/remote/loader.pb.go index 8bd98414..64765d60 100644 --- a/pkg/testing/remote/loader.pb.go +++ b/pkg/testing/remote/loader.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 -// protoc v4.22.2 +// protoc-gen-go v1.36.7 +// protoc v5.29.3 // source: pkg/testing/remote/loader.proto package remote @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,20 +23,17 @@ const ( ) type TestSuites struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data []*TestSuite `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Data []*TestSuite `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TestSuites) Reset() { *x = TestSuites{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_testing_remote_loader_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_testing_remote_loader_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestSuites) String() string { @@ -46,7 +44,7 @@ func (*TestSuites) ProtoMessage() {} func (x *TestSuites) ProtoReflect() protoreflect.Message { mi := &file_pkg_testing_remote_loader_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -69,25 +67,22 @@ func (x *TestSuites) GetData() []*TestSuite { } type TestSuite struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Api string `protobuf:"bytes,2,opt,name=api,proto3" json:"api,omitempty"` + Param []*server.Pair `protobuf:"bytes,3,rep,name=param,proto3" json:"param,omitempty"` + Spec *server.APISpec `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"` + Items []*server.TestCase `protobuf:"bytes,5,rep,name=items,proto3" json:"items,omitempty"` + Full bool `protobuf:"varint,6,opt,name=full,proto3" json:"full,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Api string `protobuf:"bytes,2,opt,name=api,proto3" json:"api,omitempty"` - Param []*server.Pair `protobuf:"bytes,3,rep,name=param,proto3" json:"param,omitempty"` - Spec *server.APISpec `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"` - Items []*server.TestCase `protobuf:"bytes,5,rep,name=items,proto3" json:"items,omitempty"` - Full bool `protobuf:"varint,6,opt,name=full,proto3" json:"full,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TestSuite) Reset() { *x = TestSuite{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_testing_remote_loader_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_testing_remote_loader_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestSuite) String() string { @@ -98,7 +93,7 @@ func (*TestSuite) ProtoMessage() {} func (x *TestSuite) ProtoReflect() protoreflect.Message { mi := &file_pkg_testing_remote_loader_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -156,20 +151,17 @@ func (x *TestSuite) GetFull() bool { } type HistoryTestSuites struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data []*HistoryTestSuite `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Data []*HistoryTestSuite `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *HistoryTestSuites) Reset() { *x = HistoryTestSuites{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_testing_remote_loader_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_testing_remote_loader_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HistoryTestSuites) String() string { @@ -180,7 +172,7 @@ func (*HistoryTestSuites) ProtoMessage() {} func (x *HistoryTestSuites) ProtoReflect() protoreflect.Message { mi := &file_pkg_testing_remote_loader_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -203,21 +195,18 @@ func (x *HistoryTestSuites) GetData() []*HistoryTestSuite { } type HistoryTestSuite struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` HistorySuiteName string `protobuf:"bytes,1,opt,name=historySuiteName,proto3" json:"historySuiteName,omitempty"` Items []*server.HistoryTestCase `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *HistoryTestSuite) Reset() { *x = HistoryTestSuite{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_testing_remote_loader_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_testing_remote_loader_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HistoryTestSuite) String() string { @@ -228,7 +217,7 @@ func (*HistoryTestSuite) ProtoMessage() {} func (x *HistoryTestSuite) ProtoReflect() protoreflect.Message { mi := &file_pkg_testing_remote_loader_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -258,20 +247,17 @@ func (x *HistoryTestSuite) GetItems() []*server.HistoryTestCase { } type Configs struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data []*Config `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Data []*Config `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Configs) Reset() { *x = Configs{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_testing_remote_loader_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_testing_remote_loader_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Configs) String() string { @@ -282,7 +268,7 @@ func (*Configs) ProtoMessage() {} func (x *Configs) ProtoReflect() protoreflect.Message { mi := &file_pkg_testing_remote_loader_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -305,22 +291,19 @@ func (x *Configs) GetData() []*Config { } type Config struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Config) Reset() { *x = Config{} - if protoimpl.UnsafeEnabled { - mi := &file_pkg_testing_remote_loader_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_pkg_testing_remote_loader_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Config) String() string { @@ -331,7 +314,7 @@ func (*Config) ProtoMessage() {} func (x *Config) ProtoReflect() protoreflect.Message { mi := &file_pkg_testing_remote_loader_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -369,203 +352,89 @@ func (x *Config) GetDescription() string { var File_pkg_testing_remote_loader_proto protoreflect.FileDescriptor -var file_pkg_testing_remote_loader_proto_rawDesc = []byte{ - 0x0a, 0x1f, 0x70, 0x6b, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x72, 0x65, - 0x6d, 0x6f, 0x74, 0x65, 0x2f, 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x1a, 0x17, 0x70, 0x6b, 0x67, 0x2f, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x22, 0x33, 0x0a, 0x0a, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x73, - 0x12, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, - 0x2e, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, - 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xb6, 0x01, 0x0a, 0x09, 0x54, 0x65, 0x73, 0x74, - 0x53, 0x75, 0x69, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x70, 0x69, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x61, 0x70, 0x69, 0x12, 0x22, 0x0a, 0x05, 0x70, - 0x61, 0x72, 0x61, 0x6d, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x73, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x69, 0x72, 0x52, 0x05, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x12, - 0x23, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x41, 0x50, 0x49, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, - 0x73, 0x70, 0x65, 0x63, 0x12, 0x26, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x05, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, - 0x74, 0x43, 0x61, 0x73, 0x65, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x12, 0x0a, 0x04, - 0x66, 0x75, 0x6c, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x66, 0x75, 0x6c, 0x6c, - 0x22, 0x41, 0x0a, 0x11, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, 0x73, 0x74, 0x53, - 0x75, 0x69, 0x74, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x2e, 0x48, 0x69, 0x73, - 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x52, 0x04, 0x64, - 0x61, 0x74, 0x61, 0x22, 0x6d, 0x0a, 0x10, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, - 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x12, 0x2a, 0x0a, 0x10, 0x68, 0x69, 0x73, 0x74, 0x6f, - 0x72, 0x79, 0x53, 0x75, 0x69, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x10, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x75, 0x69, 0x74, 0x65, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x48, 0x69, 0x73, 0x74, - 0x6f, 0x72, 0x79, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x52, 0x05, 0x69, 0x74, 0x65, - 0x6d, 0x73, 0x22, 0x2d, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0x22, 0x0a, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x72, 0x65, - 0x6d, 0x6f, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x04, 0x64, 0x61, 0x74, - 0x61, 0x22, 0x54, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0xd7, 0x0c, 0x0a, 0x06, 0x4c, 0x6f, 0x61, 0x64, - 0x65, 0x72, 0x12, 0x34, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, - 0x69, 0x74, 0x65, 0x12, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x45, 0x6d, 0x70, - 0x74, 0x79, 0x1a, 0x12, 0x2e, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x2e, 0x54, 0x65, 0x73, 0x74, - 0x53, 0x75, 0x69, 0x74, 0x65, 0x73, 0x22, 0x00, 0x12, 0x35, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x12, 0x11, 0x2e, 0x72, 0x65, - 0x6d, 0x6f, 0x74, 0x65, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x1a, 0x0d, - 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, - 0x36, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x12, - 0x11, 0x2e, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, - 0x74, 0x65, 0x1a, 0x11, 0x2e, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x2e, 0x54, 0x65, 0x73, 0x74, - 0x53, 0x75, 0x69, 0x74, 0x65, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x12, 0x11, 0x2e, 0x72, 0x65, 0x6d, - 0x6f, 0x74, 0x65, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x1a, 0x11, 0x2e, - 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, - 0x22, 0x00, 0x12, 0x35, 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x73, 0x74, - 0x53, 0x75, 0x69, 0x74, 0x65, 0x12, 0x11, 0x2e, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x2e, 0x54, - 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x1a, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x0f, 0x52, 0x65, 0x6e, - 0x61, 0x6d, 0x65, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x12, 0x1a, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x44, - 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x1a, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x37, - 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x73, 0x12, - 0x11, 0x2e, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, - 0x74, 0x65, 0x1a, 0x11, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, - 0x43, 0x61, 0x73, 0x65, 0x73, 0x22, 0x00, 0x12, 0x33, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x12, 0x10, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x1a, 0x0d, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x33, 0x0a, 0x0b, - 0x47, 0x65, 0x74, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x12, 0x10, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x1a, 0x10, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x36, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x73, 0x74, 0x43, - 0x61, 0x73, 0x65, 0x12, 0x10, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, - 0x74, 0x43, 0x61, 0x73, 0x65, 0x1a, 0x10, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, - 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x22, 0x00, 0x12, 0x33, 0x0a, 0x0e, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x12, 0x10, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x1a, 0x0d, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x41, - 0x0a, 0x0e, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, - 0x12, 0x19, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, - 0x73, 0x65, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x1a, 0x12, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, - 0x00, 0x12, 0x42, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, - 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, 0x74, 0x65, 0x12, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x19, 0x2e, 0x72, 0x65, 0x6d, 0x6f, 0x74, - 0x65, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, 0x73, 0x74, 0x53, 0x75, 0x69, - 0x74, 0x65, 0x73, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, - 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x19, - 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x54, - 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x1a, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x1c, 0x47, 0x65, - 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, - 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x17, 0x2e, 0x73, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, 0x73, 0x74, 0x43, - 0x61, 0x73, 0x65, 0x1a, 0x19, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x48, 0x69, 0x73, - 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x00, - 0x12, 0x48, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, - 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x12, 0x17, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, - 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x1a, - 0x17, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, - 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x15, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, 0x73, 0x74, 0x43, - 0x61, 0x73, 0x65, 0x12, 0x17, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x48, 0x69, 0x73, - 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x1a, 0x0d, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x44, 0x0a, - 0x18, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x6c, 0x6c, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, - 0x79, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x12, 0x17, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, - 0x73, 0x65, 0x1a, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, - 0x73, 0x65, 0x41, 0x6c, 0x6c, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x10, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x1a, 0x18, - 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x54, - 0x65, 0x73, 0x74, 0x43, 0x61, 0x73, 0x65, 0x73, 0x22, 0x00, 0x12, 0x2e, 0x0a, 0x0a, 0x47, 0x65, - 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x0f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x00, 0x12, 0x32, 0x0a, 0x06, 0x56, 0x65, - 0x72, 0x69, 0x66, 0x79, 0x12, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x45, 0x6d, - 0x70, 0x74, 0x79, 0x1a, 0x17, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x45, 0x78, 0x74, - 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x00, 0x12, 0x32, - 0x0a, 0x05, 0x50, 0x50, 0x72, 0x6f, 0x66, 0x12, 0x14, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x2e, 0x50, 0x50, 0x72, 0x6f, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x50, 0x72, 0x6f, 0x66, 0x44, 0x61, 0x74, 0x61, - 0x22, 0x00, 0x12, 0x35, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x11, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x51, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x17, - 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x00, 0x12, 0x30, 0x0a, 0x09, 0x47, 0x65, 0x74, - 0x54, 0x68, 0x65, 0x6d, 0x65, 0x73, 0x12, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, - 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x00, 0x12, 0x36, 0x0a, 0x08, 0x47, - 0x65, 0x74, 0x54, 0x68, 0x65, 0x6d, 0x65, 0x12, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x14, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x22, 0x00, 0x12, 0x32, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, - 0x67, 0x73, 0x12, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x1a, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, - 0x65, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x00, 0x12, 0x38, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x42, 0x69, - 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, - 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x14, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, - 0x00, 0x32, 0x96, 0x02, 0x0a, 0x0d, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x12, 0x2d, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, - 0x12, 0x0e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, - 0x1a, 0x0e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, - 0x22, 0x00, 0x12, 0x2e, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, - 0x12, 0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, - 0x0f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, - 0x22, 0x00, 0x12, 0x36, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, - 0x65, 0x74, 0x12, 0x0e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x63, 0x72, - 0x65, 0x74, 0x1a, 0x14, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x00, 0x12, 0x36, 0x0a, 0x0c, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x0e, 0x2e, 0x73, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x1a, 0x14, 0x2e, 0x73, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x22, 0x00, 0x12, 0x36, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, - 0x65, 0x74, 0x12, 0x0e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x63, 0x72, - 0x65, 0x74, 0x1a, 0x14, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x00, 0x32, 0x9e, 0x02, 0x0a, 0x0d, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x2e, 0x0a, 0x0a, - 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0x0d, 0x2e, 0x73, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x0f, 0x2e, 0x72, 0x65, 0x6d, 0x6f, - 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x22, 0x00, 0x12, 0x31, 0x0a, 0x09, - 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x0e, 0x2e, - 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x00, 0x12, - 0x36, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, - 0x0e, 0x2e, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, - 0x14, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x00, 0x12, 0x36, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x0e, 0x2e, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, - 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x14, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x00, 0x12, - 0x3a, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, - 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4e, - 0x61, 0x6d, 0x65, 0x1a, 0x14, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6d, - 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x00, 0x42, 0x36, 0x5a, 0x34, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x73, - 0x75, 0x72, 0x65, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, - 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x72, 0x65, 0x6d, - 0x6f, 0x74, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_pkg_testing_remote_loader_proto_rawDesc = "" + + "\n" + + "\x1fpkg/testing/remote/loader.proto\x12\x06remote\x1a\x17pkg/server/server.proto\"3\n" + + "\n" + + "TestSuites\x12%\n" + + "\x04data\x18\x01 \x03(\v2\x11.remote.TestSuiteR\x04data\"\xb6\x01\n" + + "\tTestSuite\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n" + + "\x03api\x18\x02 \x01(\tR\x03api\x12\"\n" + + "\x05param\x18\x03 \x03(\v2\f.server.PairR\x05param\x12#\n" + + "\x04spec\x18\x04 \x01(\v2\x0f.server.APISpecR\x04spec\x12&\n" + + "\x05items\x18\x05 \x03(\v2\x10.server.TestCaseR\x05items\x12\x12\n" + + "\x04full\x18\x06 \x01(\bR\x04full\"A\n" + + "\x11HistoryTestSuites\x12,\n" + + "\x04data\x18\x01 \x03(\v2\x18.remote.HistoryTestSuiteR\x04data\"m\n" + + "\x10HistoryTestSuite\x12*\n" + + "\x10historySuiteName\x18\x01 \x01(\tR\x10historySuiteName\x12-\n" + + "\x05items\x18\x02 \x03(\v2\x17.server.HistoryTestCaseR\x05items\"-\n" + + "\aConfigs\x12\"\n" + + "\x04data\x18\x01 \x03(\v2\x0e.remote.ConfigR\x04data\"T\n" + + "\x06Config\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value\x12 \n" + + "\vdescription\x18\x03 \x01(\tR\vdescription2\xd7\f\n" + + "\x06Loader\x124\n" + + "\rListTestSuite\x12\r.server.Empty\x1a\x12.remote.TestSuites\"\x00\x125\n" + + "\x0fCreateTestSuite\x12\x11.remote.TestSuite\x1a\r.server.Empty\"\x00\x126\n" + + "\fGetTestSuite\x12\x11.remote.TestSuite\x1a\x11.remote.TestSuite\"\x00\x129\n" + + "\x0fUpdateTestSuite\x12\x11.remote.TestSuite\x1a\x11.remote.TestSuite\"\x00\x125\n" + + "\x0fDeleteTestSuite\x12\x11.remote.TestSuite\x1a\r.server.Empty\"\x00\x12C\n" + + "\x0fRenameTestSuite\x12\x1a.server.TestSuiteDuplicate\x1a\x12.server.HelloReply\"\x00\x127\n" + + "\rListTestCases\x12\x11.remote.TestSuite\x1a\x11.server.TestCases\"\x00\x123\n" + + "\x0eCreateTestCase\x12\x10.server.TestCase\x1a\r.server.Empty\"\x00\x123\n" + + "\vGetTestCase\x12\x10.server.TestCase\x1a\x10.server.TestCase\"\x00\x126\n" + + "\x0eUpdateTestCase\x12\x10.server.TestCase\x1a\x10.server.TestCase\"\x00\x123\n" + + "\x0eDeleteTestCase\x12\x10.server.TestCase\x1a\r.server.Empty\"\x00\x12A\n" + + "\x0eRenameTestCase\x12\x19.server.TestCaseDuplicate\x1a\x12.server.HelloReply\"\x00\x12B\n" + + "\x14ListHistoryTestSuite\x12\r.server.Empty\x1a\x19.remote.HistoryTestSuites\"\x00\x12C\n" + + "\x15CreateTestCaseHistory\x12\x19.server.HistoryTestResult\x1a\r.server.Empty\"\x00\x12T\n" + + "\x1cGetHistoryTestCaseWithResult\x12\x17.server.HistoryTestCase\x1a\x19.server.HistoryTestResult\"\x00\x12H\n" + + "\x12GetHistoryTestCase\x12\x17.server.HistoryTestCase\x1a\x17.server.HistoryTestCase\"\x00\x12A\n" + + "\x15DeleteHistoryTestCase\x12\x17.server.HistoryTestCase\x1a\r.server.Empty\"\x00\x12D\n" + + "\x18DeleteAllHistoryTestCase\x12\x17.server.HistoryTestCase\x1a\r.server.Empty\"\x00\x12E\n" + + "\x15GetTestCaseAllHistory\x12\x10.server.TestCase\x1a\x18.server.HistoryTestCases\"\x00\x12.\n" + + "\n" + + "GetVersion\x12\r.server.Empty\x1a\x0f.server.Version\"\x00\x122\n" + + "\x06Verify\x12\r.server.Empty\x1a\x17.server.ExtensionStatus\"\x00\x122\n" + + "\x05PProf\x12\x14.server.PProfRequest\x1a\x11.server.PProfData\"\x00\x125\n" + + "\x05Query\x12\x11.server.DataQuery\x1a\x17.server.DataQueryResult\"\x00\x120\n" + + "\tGetThemes\x12\r.server.Empty\x1a\x12.server.SimpleList\"\x00\x126\n" + + "\bGetTheme\x12\x12.server.SimpleName\x1a\x14.server.CommonResult\"\x00\x122\n" + + "\vGetBindings\x12\r.server.Empty\x1a\x12.server.SimpleList\"\x00\x128\n" + + "\n" + + "GetBinding\x12\x12.server.SimpleName\x1a\x14.server.CommonResult\"\x002\x96\x02\n" + + "\rSecretService\x12-\n" + + "\tGetSecret\x12\x0e.server.Secret\x1a\x0e.server.Secret\"\x00\x12.\n" + + "\n" + + "GetSecrets\x12\r.server.Empty\x1a\x0f.server.Secrets\"\x00\x126\n" + + "\fCreateSecret\x12\x0e.server.Secret\x1a\x14.server.CommonResult\"\x00\x126\n" + + "\fDeleteSecret\x12\x0e.server.Secret\x1a\x14.server.CommonResult\"\x00\x126\n" + + "\fUpdateSecret\x12\x0e.server.Secret\x1a\x14.server.CommonResult\"\x002\x9e\x02\n" + + "\rConfigService\x12.\n" + + "\n" + + "GetConfigs\x12\r.server.Empty\x1a\x0f.remote.Configs\"\x00\x121\n" + + "\tGetConfig\x12\x12.server.SimpleName\x1a\x0e.remote.Config\"\x00\x126\n" + + "\fCreateConfig\x12\x0e.remote.Config\x1a\x14.server.CommonResult\"\x00\x126\n" + + "\fUpdateConfig\x12\x0e.remote.Config\x1a\x14.server.CommonResult\"\x00\x12:\n" + + "\fDeleteConfig\x12\x12.server.SimpleName\x1a\x14.server.CommonResult\"\x00B6Z4github.com/linuxsuren/api-testing/pkg/testing/remoteb\x06proto3" var ( file_pkg_testing_remote_loader_proto_rawDescOnce sync.Once - file_pkg_testing_remote_loader_proto_rawDescData = file_pkg_testing_remote_loader_proto_rawDesc + file_pkg_testing_remote_loader_proto_rawDescData []byte ) func file_pkg_testing_remote_loader_proto_rawDescGZIP() []byte { file_pkg_testing_remote_loader_proto_rawDescOnce.Do(func() { - file_pkg_testing_remote_loader_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_testing_remote_loader_proto_rawDescData) + file_pkg_testing_remote_loader_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pkg_testing_remote_loader_proto_rawDesc), len(file_pkg_testing_remote_loader_proto_rawDesc))) }) return file_pkg_testing_remote_loader_proto_rawDescData } var file_pkg_testing_remote_loader_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_pkg_testing_remote_loader_proto_goTypes = []interface{}{ +var file_pkg_testing_remote_loader_proto_goTypes = []any{ (*TestSuites)(nil), // 0: remote.TestSuites (*TestSuite)(nil), // 1: remote.TestSuite (*HistoryTestSuites)(nil), // 2: remote.HistoryTestSuites @@ -689,85 +558,11 @@ func file_pkg_testing_remote_loader_proto_init() { if File_pkg_testing_remote_loader_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_pkg_testing_remote_loader_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TestSuites); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_testing_remote_loader_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TestSuite); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_testing_remote_loader_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HistoryTestSuites); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_testing_remote_loader_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HistoryTestSuite); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_testing_remote_loader_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Configs); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_pkg_testing_remote_loader_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Config); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_pkg_testing_remote_loader_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_testing_remote_loader_proto_rawDesc), len(file_pkg_testing_remote_loader_proto_rawDesc)), NumEnums: 0, NumMessages: 6, NumExtensions: 0, @@ -778,7 +573,6 @@ func file_pkg_testing_remote_loader_proto_init() { MessageInfos: file_pkg_testing_remote_loader_proto_msgTypes, }.Build() File_pkg_testing_remote_loader_proto = out.File - file_pkg_testing_remote_loader_proto_rawDesc = nil file_pkg_testing_remote_loader_proto_goTypes = nil file_pkg_testing_remote_loader_proto_depIdxs = nil } diff --git a/pkg/testing/remote/loader_grpc.pb.go b/pkg/testing/remote/loader_grpc.pb.go index 2f8d72c9..3b450579 100644 --- a/pkg/testing/remote/loader_grpc.pb.go +++ b/pkg/testing/remote/loader_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v4.22.2 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.3 // source: pkg/testing/remote/loader.proto package remote @@ -16,8 +16,38 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + Loader_ListTestSuite_FullMethodName = "/remote.Loader/ListTestSuite" + Loader_CreateTestSuite_FullMethodName = "/remote.Loader/CreateTestSuite" + Loader_GetTestSuite_FullMethodName = "/remote.Loader/GetTestSuite" + Loader_UpdateTestSuite_FullMethodName = "/remote.Loader/UpdateTestSuite" + Loader_DeleteTestSuite_FullMethodName = "/remote.Loader/DeleteTestSuite" + Loader_RenameTestSuite_FullMethodName = "/remote.Loader/RenameTestSuite" + Loader_ListTestCases_FullMethodName = "/remote.Loader/ListTestCases" + Loader_CreateTestCase_FullMethodName = "/remote.Loader/CreateTestCase" + Loader_GetTestCase_FullMethodName = "/remote.Loader/GetTestCase" + Loader_UpdateTestCase_FullMethodName = "/remote.Loader/UpdateTestCase" + Loader_DeleteTestCase_FullMethodName = "/remote.Loader/DeleteTestCase" + Loader_RenameTestCase_FullMethodName = "/remote.Loader/RenameTestCase" + Loader_ListHistoryTestSuite_FullMethodName = "/remote.Loader/ListHistoryTestSuite" + Loader_CreateTestCaseHistory_FullMethodName = "/remote.Loader/CreateTestCaseHistory" + Loader_GetHistoryTestCaseWithResult_FullMethodName = "/remote.Loader/GetHistoryTestCaseWithResult" + Loader_GetHistoryTestCase_FullMethodName = "/remote.Loader/GetHistoryTestCase" + Loader_DeleteHistoryTestCase_FullMethodName = "/remote.Loader/DeleteHistoryTestCase" + Loader_DeleteAllHistoryTestCase_FullMethodName = "/remote.Loader/DeleteAllHistoryTestCase" + Loader_GetTestCaseAllHistory_FullMethodName = "/remote.Loader/GetTestCaseAllHistory" + Loader_GetVersion_FullMethodName = "/remote.Loader/GetVersion" + Loader_Verify_FullMethodName = "/remote.Loader/Verify" + Loader_PProf_FullMethodName = "/remote.Loader/PProf" + Loader_Query_FullMethodName = "/remote.Loader/Query" + Loader_GetThemes_FullMethodName = "/remote.Loader/GetThemes" + Loader_GetTheme_FullMethodName = "/remote.Loader/GetTheme" + Loader_GetBindings_FullMethodName = "/remote.Loader/GetBindings" + Loader_GetBinding_FullMethodName = "/remote.Loader/GetBinding" +) // LoaderClient is the client API for Loader service. // @@ -61,8 +91,9 @@ func NewLoaderClient(cc grpc.ClientConnInterface) LoaderClient { } func (c *loaderClient) ListTestSuite(ctx context.Context, in *server.Empty, opts ...grpc.CallOption) (*TestSuites, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TestSuites) - err := c.cc.Invoke(ctx, "/remote.Loader/ListTestSuite", in, out, opts...) + err := c.cc.Invoke(ctx, Loader_ListTestSuite_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -70,8 +101,9 @@ func (c *loaderClient) ListTestSuite(ctx context.Context, in *server.Empty, opts } func (c *loaderClient) CreateTestSuite(ctx context.Context, in *TestSuite, opts ...grpc.CallOption) (*server.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.Empty) - err := c.cc.Invoke(ctx, "/remote.Loader/CreateTestSuite", in, out, opts...) + err := c.cc.Invoke(ctx, Loader_CreateTestSuite_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -79,8 +111,9 @@ func (c *loaderClient) CreateTestSuite(ctx context.Context, in *TestSuite, opts } func (c *loaderClient) GetTestSuite(ctx context.Context, in *TestSuite, opts ...grpc.CallOption) (*TestSuite, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TestSuite) - err := c.cc.Invoke(ctx, "/remote.Loader/GetTestSuite", in, out, opts...) + err := c.cc.Invoke(ctx, Loader_GetTestSuite_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -88,8 +121,9 @@ func (c *loaderClient) GetTestSuite(ctx context.Context, in *TestSuite, opts ... } func (c *loaderClient) UpdateTestSuite(ctx context.Context, in *TestSuite, opts ...grpc.CallOption) (*TestSuite, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TestSuite) - err := c.cc.Invoke(ctx, "/remote.Loader/UpdateTestSuite", in, out, opts...) + err := c.cc.Invoke(ctx, Loader_UpdateTestSuite_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -97,8 +131,9 @@ func (c *loaderClient) UpdateTestSuite(ctx context.Context, in *TestSuite, opts } func (c *loaderClient) DeleteTestSuite(ctx context.Context, in *TestSuite, opts ...grpc.CallOption) (*server.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.Empty) - err := c.cc.Invoke(ctx, "/remote.Loader/DeleteTestSuite", in, out, opts...) + err := c.cc.Invoke(ctx, Loader_DeleteTestSuite_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -106,8 +141,9 @@ func (c *loaderClient) DeleteTestSuite(ctx context.Context, in *TestSuite, opts } func (c *loaderClient) RenameTestSuite(ctx context.Context, in *server.TestSuiteDuplicate, opts ...grpc.CallOption) (*server.HelloReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.HelloReply) - err := c.cc.Invoke(ctx, "/remote.Loader/RenameTestSuite", in, out, opts...) + err := c.cc.Invoke(ctx, Loader_RenameTestSuite_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -115,8 +151,9 @@ func (c *loaderClient) RenameTestSuite(ctx context.Context, in *server.TestSuite } func (c *loaderClient) ListTestCases(ctx context.Context, in *TestSuite, opts ...grpc.CallOption) (*server.TestCases, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.TestCases) - err := c.cc.Invoke(ctx, "/remote.Loader/ListTestCases", in, out, opts...) + err := c.cc.Invoke(ctx, Loader_ListTestCases_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -124,8 +161,9 @@ func (c *loaderClient) ListTestCases(ctx context.Context, in *TestSuite, opts .. } func (c *loaderClient) CreateTestCase(ctx context.Context, in *server.TestCase, opts ...grpc.CallOption) (*server.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.Empty) - err := c.cc.Invoke(ctx, "/remote.Loader/CreateTestCase", in, out, opts...) + err := c.cc.Invoke(ctx, Loader_CreateTestCase_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -133,8 +171,9 @@ func (c *loaderClient) CreateTestCase(ctx context.Context, in *server.TestCase, } func (c *loaderClient) GetTestCase(ctx context.Context, in *server.TestCase, opts ...grpc.CallOption) (*server.TestCase, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.TestCase) - err := c.cc.Invoke(ctx, "/remote.Loader/GetTestCase", in, out, opts...) + err := c.cc.Invoke(ctx, Loader_GetTestCase_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -142,8 +181,9 @@ func (c *loaderClient) GetTestCase(ctx context.Context, in *server.TestCase, opt } func (c *loaderClient) UpdateTestCase(ctx context.Context, in *server.TestCase, opts ...grpc.CallOption) (*server.TestCase, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.TestCase) - err := c.cc.Invoke(ctx, "/remote.Loader/UpdateTestCase", in, out, opts...) + err := c.cc.Invoke(ctx, Loader_UpdateTestCase_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -151,8 +191,9 @@ func (c *loaderClient) UpdateTestCase(ctx context.Context, in *server.TestCase, } func (c *loaderClient) DeleteTestCase(ctx context.Context, in *server.TestCase, opts ...grpc.CallOption) (*server.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.Empty) - err := c.cc.Invoke(ctx, "/remote.Loader/DeleteTestCase", in, out, opts...) + err := c.cc.Invoke(ctx, Loader_DeleteTestCase_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -160,8 +201,9 @@ func (c *loaderClient) DeleteTestCase(ctx context.Context, in *server.TestCase, } func (c *loaderClient) RenameTestCase(ctx context.Context, in *server.TestCaseDuplicate, opts ...grpc.CallOption) (*server.HelloReply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.HelloReply) - err := c.cc.Invoke(ctx, "/remote.Loader/RenameTestCase", in, out, opts...) + err := c.cc.Invoke(ctx, Loader_RenameTestCase_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -169,8 +211,9 @@ func (c *loaderClient) RenameTestCase(ctx context.Context, in *server.TestCaseDu } func (c *loaderClient) ListHistoryTestSuite(ctx context.Context, in *server.Empty, opts ...grpc.CallOption) (*HistoryTestSuites, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(HistoryTestSuites) - err := c.cc.Invoke(ctx, "/remote.Loader/ListHistoryTestSuite", in, out, opts...) + err := c.cc.Invoke(ctx, Loader_ListHistoryTestSuite_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -178,8 +221,9 @@ func (c *loaderClient) ListHistoryTestSuite(ctx context.Context, in *server.Empt } func (c *loaderClient) CreateTestCaseHistory(ctx context.Context, in *server.HistoryTestResult, opts ...grpc.CallOption) (*server.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.Empty) - err := c.cc.Invoke(ctx, "/remote.Loader/CreateTestCaseHistory", in, out, opts...) + err := c.cc.Invoke(ctx, Loader_CreateTestCaseHistory_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -187,8 +231,9 @@ func (c *loaderClient) CreateTestCaseHistory(ctx context.Context, in *server.His } func (c *loaderClient) GetHistoryTestCaseWithResult(ctx context.Context, in *server.HistoryTestCase, opts ...grpc.CallOption) (*server.HistoryTestResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.HistoryTestResult) - err := c.cc.Invoke(ctx, "/remote.Loader/GetHistoryTestCaseWithResult", in, out, opts...) + err := c.cc.Invoke(ctx, Loader_GetHistoryTestCaseWithResult_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -196,8 +241,9 @@ func (c *loaderClient) GetHistoryTestCaseWithResult(ctx context.Context, in *ser } func (c *loaderClient) GetHistoryTestCase(ctx context.Context, in *server.HistoryTestCase, opts ...grpc.CallOption) (*server.HistoryTestCase, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.HistoryTestCase) - err := c.cc.Invoke(ctx, "/remote.Loader/GetHistoryTestCase", in, out, opts...) + err := c.cc.Invoke(ctx, Loader_GetHistoryTestCase_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -205,8 +251,9 @@ func (c *loaderClient) GetHistoryTestCase(ctx context.Context, in *server.Histor } func (c *loaderClient) DeleteHistoryTestCase(ctx context.Context, in *server.HistoryTestCase, opts ...grpc.CallOption) (*server.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.Empty) - err := c.cc.Invoke(ctx, "/remote.Loader/DeleteHistoryTestCase", in, out, opts...) + err := c.cc.Invoke(ctx, Loader_DeleteHistoryTestCase_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -214,8 +261,9 @@ func (c *loaderClient) DeleteHistoryTestCase(ctx context.Context, in *server.His } func (c *loaderClient) DeleteAllHistoryTestCase(ctx context.Context, in *server.HistoryTestCase, opts ...grpc.CallOption) (*server.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.Empty) - err := c.cc.Invoke(ctx, "/remote.Loader/DeleteAllHistoryTestCase", in, out, opts...) + err := c.cc.Invoke(ctx, Loader_DeleteAllHistoryTestCase_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -223,8 +271,9 @@ func (c *loaderClient) DeleteAllHistoryTestCase(ctx context.Context, in *server. } func (c *loaderClient) GetTestCaseAllHistory(ctx context.Context, in *server.TestCase, opts ...grpc.CallOption) (*server.HistoryTestCases, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.HistoryTestCases) - err := c.cc.Invoke(ctx, "/remote.Loader/GetTestCaseAllHistory", in, out, opts...) + err := c.cc.Invoke(ctx, Loader_GetTestCaseAllHistory_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -232,8 +281,9 @@ func (c *loaderClient) GetTestCaseAllHistory(ctx context.Context, in *server.Tes } func (c *loaderClient) GetVersion(ctx context.Context, in *server.Empty, opts ...grpc.CallOption) (*server.Version, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.Version) - err := c.cc.Invoke(ctx, "/remote.Loader/GetVersion", in, out, opts...) + err := c.cc.Invoke(ctx, Loader_GetVersion_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -241,8 +291,9 @@ func (c *loaderClient) GetVersion(ctx context.Context, in *server.Empty, opts .. } func (c *loaderClient) Verify(ctx context.Context, in *server.Empty, opts ...grpc.CallOption) (*server.ExtensionStatus, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.ExtensionStatus) - err := c.cc.Invoke(ctx, "/remote.Loader/Verify", in, out, opts...) + err := c.cc.Invoke(ctx, Loader_Verify_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -250,8 +301,9 @@ func (c *loaderClient) Verify(ctx context.Context, in *server.Empty, opts ...grp } func (c *loaderClient) PProf(ctx context.Context, in *server.PProfRequest, opts ...grpc.CallOption) (*server.PProfData, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.PProfData) - err := c.cc.Invoke(ctx, "/remote.Loader/PProf", in, out, opts...) + err := c.cc.Invoke(ctx, Loader_PProf_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -259,8 +311,9 @@ func (c *loaderClient) PProf(ctx context.Context, in *server.PProfRequest, opts } func (c *loaderClient) Query(ctx context.Context, in *server.DataQuery, opts ...grpc.CallOption) (*server.DataQueryResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.DataQueryResult) - err := c.cc.Invoke(ctx, "/remote.Loader/Query", in, out, opts...) + err := c.cc.Invoke(ctx, Loader_Query_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -268,8 +321,9 @@ func (c *loaderClient) Query(ctx context.Context, in *server.DataQuery, opts ... } func (c *loaderClient) GetThemes(ctx context.Context, in *server.Empty, opts ...grpc.CallOption) (*server.SimpleList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.SimpleList) - err := c.cc.Invoke(ctx, "/remote.Loader/GetThemes", in, out, opts...) + err := c.cc.Invoke(ctx, Loader_GetThemes_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -277,8 +331,9 @@ func (c *loaderClient) GetThemes(ctx context.Context, in *server.Empty, opts ... } func (c *loaderClient) GetTheme(ctx context.Context, in *server.SimpleName, opts ...grpc.CallOption) (*server.CommonResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.CommonResult) - err := c.cc.Invoke(ctx, "/remote.Loader/GetTheme", in, out, opts...) + err := c.cc.Invoke(ctx, Loader_GetTheme_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -286,8 +341,9 @@ func (c *loaderClient) GetTheme(ctx context.Context, in *server.SimpleName, opts } func (c *loaderClient) GetBindings(ctx context.Context, in *server.Empty, opts ...grpc.CallOption) (*server.SimpleList, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.SimpleList) - err := c.cc.Invoke(ctx, "/remote.Loader/GetBindings", in, out, opts...) + err := c.cc.Invoke(ctx, Loader_GetBindings_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -295,8 +351,9 @@ func (c *loaderClient) GetBindings(ctx context.Context, in *server.Empty, opts . } func (c *loaderClient) GetBinding(ctx context.Context, in *server.SimpleName, opts ...grpc.CallOption) (*server.CommonResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.CommonResult) - err := c.cc.Invoke(ctx, "/remote.Loader/GetBinding", in, out, opts...) + err := c.cc.Invoke(ctx, Loader_GetBinding_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -305,7 +362,7 @@ func (c *loaderClient) GetBinding(ctx context.Context, in *server.SimpleName, op // LoaderServer is the server API for Loader service. // All implementations must embed UnimplementedLoaderServer -// for forward compatibility +// for forward compatibility. type LoaderServer interface { ListTestSuite(context.Context, *server.Empty) (*TestSuites, error) CreateTestSuite(context.Context, *TestSuite) (*server.Empty, error) @@ -337,9 +394,12 @@ type LoaderServer interface { mustEmbedUnimplementedLoaderServer() } -// UnimplementedLoaderServer must be embedded to have forward compatible implementations. -type UnimplementedLoaderServer struct { -} +// UnimplementedLoaderServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedLoaderServer struct{} func (UnimplementedLoaderServer) ListTestSuite(context.Context, *server.Empty) (*TestSuites, error) { return nil, status.Errorf(codes.Unimplemented, "method ListTestSuite not implemented") @@ -423,6 +483,7 @@ func (UnimplementedLoaderServer) GetBinding(context.Context, *server.SimpleName) return nil, status.Errorf(codes.Unimplemented, "method GetBinding not implemented") } func (UnimplementedLoaderServer) mustEmbedUnimplementedLoaderServer() {} +func (UnimplementedLoaderServer) testEmbeddedByValue() {} // UnsafeLoaderServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to LoaderServer will @@ -432,6 +493,13 @@ type UnsafeLoaderServer interface { } func RegisterLoaderServer(s grpc.ServiceRegistrar, srv LoaderServer) { + // If the following call pancis, it indicates UnimplementedLoaderServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Loader_ServiceDesc, srv) } @@ -445,7 +513,7 @@ func _Loader_ListTestSuite_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.Loader/ListTestSuite", + FullMethod: Loader_ListTestSuite_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoaderServer).ListTestSuite(ctx, req.(*server.Empty)) @@ -463,7 +531,7 @@ func _Loader_CreateTestSuite_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.Loader/CreateTestSuite", + FullMethod: Loader_CreateTestSuite_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoaderServer).CreateTestSuite(ctx, req.(*TestSuite)) @@ -481,7 +549,7 @@ func _Loader_GetTestSuite_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.Loader/GetTestSuite", + FullMethod: Loader_GetTestSuite_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoaderServer).GetTestSuite(ctx, req.(*TestSuite)) @@ -499,7 +567,7 @@ func _Loader_UpdateTestSuite_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.Loader/UpdateTestSuite", + FullMethod: Loader_UpdateTestSuite_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoaderServer).UpdateTestSuite(ctx, req.(*TestSuite)) @@ -517,7 +585,7 @@ func _Loader_DeleteTestSuite_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.Loader/DeleteTestSuite", + FullMethod: Loader_DeleteTestSuite_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoaderServer).DeleteTestSuite(ctx, req.(*TestSuite)) @@ -535,7 +603,7 @@ func _Loader_RenameTestSuite_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.Loader/RenameTestSuite", + FullMethod: Loader_RenameTestSuite_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoaderServer).RenameTestSuite(ctx, req.(*server.TestSuiteDuplicate)) @@ -553,7 +621,7 @@ func _Loader_ListTestCases_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.Loader/ListTestCases", + FullMethod: Loader_ListTestCases_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoaderServer).ListTestCases(ctx, req.(*TestSuite)) @@ -571,7 +639,7 @@ func _Loader_CreateTestCase_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.Loader/CreateTestCase", + FullMethod: Loader_CreateTestCase_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoaderServer).CreateTestCase(ctx, req.(*server.TestCase)) @@ -589,7 +657,7 @@ func _Loader_GetTestCase_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.Loader/GetTestCase", + FullMethod: Loader_GetTestCase_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoaderServer).GetTestCase(ctx, req.(*server.TestCase)) @@ -607,7 +675,7 @@ func _Loader_UpdateTestCase_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.Loader/UpdateTestCase", + FullMethod: Loader_UpdateTestCase_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoaderServer).UpdateTestCase(ctx, req.(*server.TestCase)) @@ -625,7 +693,7 @@ func _Loader_DeleteTestCase_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.Loader/DeleteTestCase", + FullMethod: Loader_DeleteTestCase_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoaderServer).DeleteTestCase(ctx, req.(*server.TestCase)) @@ -643,7 +711,7 @@ func _Loader_RenameTestCase_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.Loader/RenameTestCase", + FullMethod: Loader_RenameTestCase_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoaderServer).RenameTestCase(ctx, req.(*server.TestCaseDuplicate)) @@ -661,7 +729,7 @@ func _Loader_ListHistoryTestSuite_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.Loader/ListHistoryTestSuite", + FullMethod: Loader_ListHistoryTestSuite_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoaderServer).ListHistoryTestSuite(ctx, req.(*server.Empty)) @@ -679,7 +747,7 @@ func _Loader_CreateTestCaseHistory_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.Loader/CreateTestCaseHistory", + FullMethod: Loader_CreateTestCaseHistory_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoaderServer).CreateTestCaseHistory(ctx, req.(*server.HistoryTestResult)) @@ -697,7 +765,7 @@ func _Loader_GetHistoryTestCaseWithResult_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.Loader/GetHistoryTestCaseWithResult", + FullMethod: Loader_GetHistoryTestCaseWithResult_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoaderServer).GetHistoryTestCaseWithResult(ctx, req.(*server.HistoryTestCase)) @@ -715,7 +783,7 @@ func _Loader_GetHistoryTestCase_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.Loader/GetHistoryTestCase", + FullMethod: Loader_GetHistoryTestCase_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoaderServer).GetHistoryTestCase(ctx, req.(*server.HistoryTestCase)) @@ -733,7 +801,7 @@ func _Loader_DeleteHistoryTestCase_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.Loader/DeleteHistoryTestCase", + FullMethod: Loader_DeleteHistoryTestCase_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoaderServer).DeleteHistoryTestCase(ctx, req.(*server.HistoryTestCase)) @@ -751,7 +819,7 @@ func _Loader_DeleteAllHistoryTestCase_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.Loader/DeleteAllHistoryTestCase", + FullMethod: Loader_DeleteAllHistoryTestCase_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoaderServer).DeleteAllHistoryTestCase(ctx, req.(*server.HistoryTestCase)) @@ -769,7 +837,7 @@ func _Loader_GetTestCaseAllHistory_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.Loader/GetTestCaseAllHistory", + FullMethod: Loader_GetTestCaseAllHistory_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoaderServer).GetTestCaseAllHistory(ctx, req.(*server.TestCase)) @@ -787,7 +855,7 @@ func _Loader_GetVersion_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.Loader/GetVersion", + FullMethod: Loader_GetVersion_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoaderServer).GetVersion(ctx, req.(*server.Empty)) @@ -805,7 +873,7 @@ func _Loader_Verify_Handler(srv interface{}, ctx context.Context, dec func(inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.Loader/Verify", + FullMethod: Loader_Verify_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoaderServer).Verify(ctx, req.(*server.Empty)) @@ -823,7 +891,7 @@ func _Loader_PProf_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.Loader/PProf", + FullMethod: Loader_PProf_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoaderServer).PProf(ctx, req.(*server.PProfRequest)) @@ -841,7 +909,7 @@ func _Loader_Query_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.Loader/Query", + FullMethod: Loader_Query_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoaderServer).Query(ctx, req.(*server.DataQuery)) @@ -859,7 +927,7 @@ func _Loader_GetThemes_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.Loader/GetThemes", + FullMethod: Loader_GetThemes_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoaderServer).GetThemes(ctx, req.(*server.Empty)) @@ -877,7 +945,7 @@ func _Loader_GetTheme_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.Loader/GetTheme", + FullMethod: Loader_GetTheme_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoaderServer).GetTheme(ctx, req.(*server.SimpleName)) @@ -895,7 +963,7 @@ func _Loader_GetBindings_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.Loader/GetBindings", + FullMethod: Loader_GetBindings_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoaderServer).GetBindings(ctx, req.(*server.Empty)) @@ -913,7 +981,7 @@ func _Loader_GetBinding_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.Loader/GetBinding", + FullMethod: Loader_GetBinding_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LoaderServer).GetBinding(ctx, req.(*server.SimpleName)) @@ -1041,6 +1109,14 @@ var Loader_ServiceDesc = grpc.ServiceDesc{ Metadata: "pkg/testing/remote/loader.proto", } +const ( + SecretService_GetSecret_FullMethodName = "/remote.SecretService/GetSecret" + SecretService_GetSecrets_FullMethodName = "/remote.SecretService/GetSecrets" + SecretService_CreateSecret_FullMethodName = "/remote.SecretService/CreateSecret" + SecretService_DeleteSecret_FullMethodName = "/remote.SecretService/DeleteSecret" + SecretService_UpdateSecret_FullMethodName = "/remote.SecretService/UpdateSecret" +) + // SecretServiceClient is the client API for SecretService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -1061,8 +1137,9 @@ func NewSecretServiceClient(cc grpc.ClientConnInterface) SecretServiceClient { } func (c *secretServiceClient) GetSecret(ctx context.Context, in *server.Secret, opts ...grpc.CallOption) (*server.Secret, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.Secret) - err := c.cc.Invoke(ctx, "/remote.SecretService/GetSecret", in, out, opts...) + err := c.cc.Invoke(ctx, SecretService_GetSecret_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1070,8 +1147,9 @@ func (c *secretServiceClient) GetSecret(ctx context.Context, in *server.Secret, } func (c *secretServiceClient) GetSecrets(ctx context.Context, in *server.Empty, opts ...grpc.CallOption) (*server.Secrets, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.Secrets) - err := c.cc.Invoke(ctx, "/remote.SecretService/GetSecrets", in, out, opts...) + err := c.cc.Invoke(ctx, SecretService_GetSecrets_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1079,8 +1157,9 @@ func (c *secretServiceClient) GetSecrets(ctx context.Context, in *server.Empty, } func (c *secretServiceClient) CreateSecret(ctx context.Context, in *server.Secret, opts ...grpc.CallOption) (*server.CommonResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.CommonResult) - err := c.cc.Invoke(ctx, "/remote.SecretService/CreateSecret", in, out, opts...) + err := c.cc.Invoke(ctx, SecretService_CreateSecret_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1088,8 +1167,9 @@ func (c *secretServiceClient) CreateSecret(ctx context.Context, in *server.Secre } func (c *secretServiceClient) DeleteSecret(ctx context.Context, in *server.Secret, opts ...grpc.CallOption) (*server.CommonResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.CommonResult) - err := c.cc.Invoke(ctx, "/remote.SecretService/DeleteSecret", in, out, opts...) + err := c.cc.Invoke(ctx, SecretService_DeleteSecret_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1097,8 +1177,9 @@ func (c *secretServiceClient) DeleteSecret(ctx context.Context, in *server.Secre } func (c *secretServiceClient) UpdateSecret(ctx context.Context, in *server.Secret, opts ...grpc.CallOption) (*server.CommonResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.CommonResult) - err := c.cc.Invoke(ctx, "/remote.SecretService/UpdateSecret", in, out, opts...) + err := c.cc.Invoke(ctx, SecretService_UpdateSecret_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1107,7 +1188,7 @@ func (c *secretServiceClient) UpdateSecret(ctx context.Context, in *server.Secre // SecretServiceServer is the server API for SecretService service. // All implementations must embed UnimplementedSecretServiceServer -// for forward compatibility +// for forward compatibility. type SecretServiceServer interface { GetSecret(context.Context, *server.Secret) (*server.Secret, error) GetSecrets(context.Context, *server.Empty) (*server.Secrets, error) @@ -1117,9 +1198,12 @@ type SecretServiceServer interface { mustEmbedUnimplementedSecretServiceServer() } -// UnimplementedSecretServiceServer must be embedded to have forward compatible implementations. -type UnimplementedSecretServiceServer struct { -} +// UnimplementedSecretServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedSecretServiceServer struct{} func (UnimplementedSecretServiceServer) GetSecret(context.Context, *server.Secret) (*server.Secret, error) { return nil, status.Errorf(codes.Unimplemented, "method GetSecret not implemented") @@ -1137,6 +1221,7 @@ func (UnimplementedSecretServiceServer) UpdateSecret(context.Context, *server.Se return nil, status.Errorf(codes.Unimplemented, "method UpdateSecret not implemented") } func (UnimplementedSecretServiceServer) mustEmbedUnimplementedSecretServiceServer() {} +func (UnimplementedSecretServiceServer) testEmbeddedByValue() {} // UnsafeSecretServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to SecretServiceServer will @@ -1146,6 +1231,13 @@ type UnsafeSecretServiceServer interface { } func RegisterSecretServiceServer(s grpc.ServiceRegistrar, srv SecretServiceServer) { + // If the following call pancis, it indicates UnimplementedSecretServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&SecretService_ServiceDesc, srv) } @@ -1159,7 +1251,7 @@ func _SecretService_GetSecret_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.SecretService/GetSecret", + FullMethod: SecretService_GetSecret_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SecretServiceServer).GetSecret(ctx, req.(*server.Secret)) @@ -1177,7 +1269,7 @@ func _SecretService_GetSecrets_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.SecretService/GetSecrets", + FullMethod: SecretService_GetSecrets_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SecretServiceServer).GetSecrets(ctx, req.(*server.Empty)) @@ -1195,7 +1287,7 @@ func _SecretService_CreateSecret_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.SecretService/CreateSecret", + FullMethod: SecretService_CreateSecret_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SecretServiceServer).CreateSecret(ctx, req.(*server.Secret)) @@ -1213,7 +1305,7 @@ func _SecretService_DeleteSecret_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.SecretService/DeleteSecret", + FullMethod: SecretService_DeleteSecret_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SecretServiceServer).DeleteSecret(ctx, req.(*server.Secret)) @@ -1231,7 +1323,7 @@ func _SecretService_UpdateSecret_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.SecretService/UpdateSecret", + FullMethod: SecretService_UpdateSecret_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SecretServiceServer).UpdateSecret(ctx, req.(*server.Secret)) @@ -1271,6 +1363,14 @@ var SecretService_ServiceDesc = grpc.ServiceDesc{ Metadata: "pkg/testing/remote/loader.proto", } +const ( + ConfigService_GetConfigs_FullMethodName = "/remote.ConfigService/GetConfigs" + ConfigService_GetConfig_FullMethodName = "/remote.ConfigService/GetConfig" + ConfigService_CreateConfig_FullMethodName = "/remote.ConfigService/CreateConfig" + ConfigService_UpdateConfig_FullMethodName = "/remote.ConfigService/UpdateConfig" + ConfigService_DeleteConfig_FullMethodName = "/remote.ConfigService/DeleteConfig" +) + // ConfigServiceClient is the client API for ConfigService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -1291,8 +1391,9 @@ func NewConfigServiceClient(cc grpc.ClientConnInterface) ConfigServiceClient { } func (c *configServiceClient) GetConfigs(ctx context.Context, in *server.Empty, opts ...grpc.CallOption) (*Configs, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Configs) - err := c.cc.Invoke(ctx, "/remote.ConfigService/GetConfigs", in, out, opts...) + err := c.cc.Invoke(ctx, ConfigService_GetConfigs_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1300,8 +1401,9 @@ func (c *configServiceClient) GetConfigs(ctx context.Context, in *server.Empty, } func (c *configServiceClient) GetConfig(ctx context.Context, in *server.SimpleName, opts ...grpc.CallOption) (*Config, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Config) - err := c.cc.Invoke(ctx, "/remote.ConfigService/GetConfig", in, out, opts...) + err := c.cc.Invoke(ctx, ConfigService_GetConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1309,8 +1411,9 @@ func (c *configServiceClient) GetConfig(ctx context.Context, in *server.SimpleNa } func (c *configServiceClient) CreateConfig(ctx context.Context, in *Config, opts ...grpc.CallOption) (*server.CommonResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.CommonResult) - err := c.cc.Invoke(ctx, "/remote.ConfigService/CreateConfig", in, out, opts...) + err := c.cc.Invoke(ctx, ConfigService_CreateConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1318,8 +1421,9 @@ func (c *configServiceClient) CreateConfig(ctx context.Context, in *Config, opts } func (c *configServiceClient) UpdateConfig(ctx context.Context, in *Config, opts ...grpc.CallOption) (*server.CommonResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.CommonResult) - err := c.cc.Invoke(ctx, "/remote.ConfigService/UpdateConfig", in, out, opts...) + err := c.cc.Invoke(ctx, ConfigService_UpdateConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1327,8 +1431,9 @@ func (c *configServiceClient) UpdateConfig(ctx context.Context, in *Config, opts } func (c *configServiceClient) DeleteConfig(ctx context.Context, in *server.SimpleName, opts ...grpc.CallOption) (*server.CommonResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(server.CommonResult) - err := c.cc.Invoke(ctx, "/remote.ConfigService/DeleteConfig", in, out, opts...) + err := c.cc.Invoke(ctx, ConfigService_DeleteConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -1337,7 +1442,7 @@ func (c *configServiceClient) DeleteConfig(ctx context.Context, in *server.Simpl // ConfigServiceServer is the server API for ConfigService service. // All implementations must embed UnimplementedConfigServiceServer -// for forward compatibility +// for forward compatibility. type ConfigServiceServer interface { GetConfigs(context.Context, *server.Empty) (*Configs, error) GetConfig(context.Context, *server.SimpleName) (*Config, error) @@ -1347,9 +1452,12 @@ type ConfigServiceServer interface { mustEmbedUnimplementedConfigServiceServer() } -// UnimplementedConfigServiceServer must be embedded to have forward compatible implementations. -type UnimplementedConfigServiceServer struct { -} +// UnimplementedConfigServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedConfigServiceServer struct{} func (UnimplementedConfigServiceServer) GetConfigs(context.Context, *server.Empty) (*Configs, error) { return nil, status.Errorf(codes.Unimplemented, "method GetConfigs not implemented") @@ -1367,6 +1475,7 @@ func (UnimplementedConfigServiceServer) DeleteConfig(context.Context, *server.Si return nil, status.Errorf(codes.Unimplemented, "method DeleteConfig not implemented") } func (UnimplementedConfigServiceServer) mustEmbedUnimplementedConfigServiceServer() {} +func (UnimplementedConfigServiceServer) testEmbeddedByValue() {} // UnsafeConfigServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ConfigServiceServer will @@ -1376,6 +1485,13 @@ type UnsafeConfigServiceServer interface { } func RegisterConfigServiceServer(s grpc.ServiceRegistrar, srv ConfigServiceServer) { + // If the following call pancis, it indicates UnimplementedConfigServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ConfigService_ServiceDesc, srv) } @@ -1389,7 +1505,7 @@ func _ConfigService_GetConfigs_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.ConfigService/GetConfigs", + FullMethod: ConfigService_GetConfigs_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceServer).GetConfigs(ctx, req.(*server.Empty)) @@ -1407,7 +1523,7 @@ func _ConfigService_GetConfig_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.ConfigService/GetConfig", + FullMethod: ConfigService_GetConfig_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceServer).GetConfig(ctx, req.(*server.SimpleName)) @@ -1425,7 +1541,7 @@ func _ConfigService_CreateConfig_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.ConfigService/CreateConfig", + FullMethod: ConfigService_CreateConfig_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceServer).CreateConfig(ctx, req.(*Config)) @@ -1443,7 +1559,7 @@ func _ConfigService_UpdateConfig_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.ConfigService/UpdateConfig", + FullMethod: ConfigService_UpdateConfig_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceServer).UpdateConfig(ctx, req.(*Config)) @@ -1461,7 +1577,7 @@ func _ConfigService_DeleteConfig_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/remote.ConfigService/DeleteConfig", + FullMethod: ConfigService_DeleteConfig_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ConfigServiceServer).DeleteConfig(ctx, req.(*server.SimpleName)) From e0bdb767ce1db9e267f53d704c2480e2e1d19a3a Mon Sep 17 00:00:00 2001 From: KarielHalling Date: Thu, 14 Aug 2025 23:22:00 +0800 Subject: [PATCH 4/5] Refactor: Removed legacy SQL generation APIs and unified with GenerateContent. Migrated all SQL generation functionality to the unified GenerateContent API, using the contentType parameter to differentiate between task types. Removed the deprecated GenerateSQLFromNaturalLanguage API and related data structures to simplify the code structure. Updated documentation to explain how to use the new unified API, including supported content types and migration guidelines. --- extensions/README.md | 125 ++++- pkg/server/server.pb.go | 936 ++++++++++----------------------- pkg/server/server.pb.gw.go | 70 +-- pkg/server/server.proto | 70 +-- pkg/server/server.swagger.json | 127 +---- pkg/server/server_grpc.pb.go | 42 +- 6 files changed, 393 insertions(+), 977 deletions(-) diff --git a/extensions/README.md b/extensions/README.md index a116cc2a..a04c0c51 100644 --- a/extensions/README.md +++ b/extensions/README.md @@ -19,31 +19,76 @@ Ports in extensions: ## AI Extension Interface -The AI extension provides intelligent testing capabilities through gRPC interface on port 50051. It offers a unified AI interface that can handle various content generation tasks. +This extension provides AI-powered content generation capabilities through a unified gRPC interface. -### Available Services +### Unified Interface Design -#### GenerateContent (Recommended) -A general-purpose AI interface that can handle multiple content types: -- **SQL Generation**: Convert natural language to SQL queries -- **Test Case Generation**: Automatically generate test cases based on API specifications -- **Mock Service Creation**: Generate mock services and responses -- **Test Data Generation**: Create realistic test data using AI models -- **Result Analysis**: Intelligent analysis of test results and failure patterns +#### `GenerateContent` +The single, unified interface for all AI content generation tasks. This interface can handle various content types including SQL generation, test case writing, mock service creation, and more through a single endpoint. **Request Parameters:** -- `prompt`: Natural language description of what to generate -- `contentType`: Type of content ("sql", "testcase", "mock", "analysis") -- `context`: Additional context information (schemas, API specs, etc.) -- `sessionId`: Optional session ID for conversational context -- `parameters`: AI model configuration (model_provider, model_name, api_key, etc.) - -#### GenerateSQLFromNaturalLanguage (Legacy) -Specific interface for SQL generation, maintained for backward compatibility. +- `prompt`: Natural language description of what you want to generate +- `contentType`: Type of content to generate (e.g., "sql", "testcase", "mock") +- `context`: Additional context information as key-value pairs +- `parameters`: Additional parameters specific to the content type + +**Response:** +- `success.content`: Generated content +- `success.explanation`: Explanation of the generated content +- `success.confidenceScore`: Confidence score (0.0 to 1.0) +- `success.metadata`: Additional metadata about the generation +- `error`: Error information if generation fails + +### Content Types and Task Identification + +The `contentType` parameter serves as the task identifier, allowing the system to: + +1. **Apply appropriate prompting strategies** for different content types +2. **Use specialized processing logic** for each task type +3. **Provide task-specific validation and post-processing** +4. **Generate relevant metadata** for each content type + +#### Supported Content Types: + +1. **SQL Generation** (`contentType: "sql"`) + - Generates SQL queries from natural language + - Supports multiple database types via parameters + - Context can include schema information + - Applies SQL-specific validation and dialect adaptation + +2. **Test Case Generation** (`contentType: "testcase"`) + - Generates comprehensive test cases + - Context can include code specifications + - Uses test-specific prompting strategies + +3. **Mock Service Generation** (`contentType: "mock"`) + - Generates mock services and API responses + - Context can include API specifications + - Applies service-specific formatting + +4. **Generic Content** (any other `contentType`) + - Handles any other content generation requests + - Flexible prompt-based generation + - Extensible for future content types + +### Architecture Benefits + +**Single Interface Advantages:** +- **Consistency**: All content generation follows the same request/response pattern +- **Extensibility**: New content types can be added without API changes +- **Simplicity**: Clients only need to integrate with one interface +- **Flexibility**: Rich context and parameter support for all content types + +**Task Differentiation:** +While using a single interface, the system internally routes requests to specialized handlers based on `contentType`, ensuring: +- Appropriate AI model prompting for each task +- Task-specific validation and processing +- Relevant metadata and confidence scoring +- Optimized performance for different content types ### Configuration Parameters -These parameters are configured in the store extension settings and passed to the AI service: +The following parameters can be passed via `GenerateContentRequest.parameters`: - `model_provider`: AI provider ("ollama", "openai") - used in GenerateContentRequest.parameters - `model_name`: Specific model name (e.g., "llama3.2", "gpt-4") - passed via parameters["model_name"] @@ -65,6 +110,7 @@ GenerateContentRequest { parameters: { "model_provider": "ollama" "model_name": "llama3.2" + "database_type": "mysql" } } @@ -76,8 +122,51 @@ GenerateContentRequest { "api_spec": "POST /api/users {name, email, password}" } } + +// Generate mock service +GenerateContentRequest { + prompt: "Create a mock REST API for user management" + contentType: "mock" + context: { + "endpoints": "GET /users, POST /users, PUT /users/{id}, DELETE /users/{id}" + "response_format": "JSON" + } +} +``` + +### Migration Notes + +This version removes the legacy `GenerateSQLFromNaturalLanguage` interface in favor of the unified `GenerateContent` approach. All SQL generation should now use: + +```protobuf +GenerateContentRequest { + prompt: "your natural language query" + contentType: "sql" + parameters: {"database_type": "mysql|postgresql|sqlite"} + context: {"schemas": "table definitions"} +} ``` +### Frequently Asked Questions + +**Q1: Do I need different interfaces for different tasks (SQL generation, test case writing, mock service creation)?** + +A: No, you only need the single `GenerateContent` interface. The `contentType` parameter tells the system what kind of content you want to generate, and the system internally routes your request to the appropriate specialized handler. This design provides: +- **Task identification**: The system knows exactly what you're trying to accomplish +- **Specialized processing**: Each content type gets optimized prompting and validation +- **Consistent API**: You always use the same interface regardless of the task +- **Future extensibility**: New content types can be added without changing the API + +**Q2: Will removing the SQL-specific interface affect other files?** + +A: The removal has been carefully implemented to ensure minimal impact: +- **Protobuf files**: All generated code (Go, Python, gRPC-gateway, OpenAPI) has been updated +- **Implementation files**: The Python gRPC server has been updated to use the new unified interface +- **Backward compatibility**: While the old interface is removed, the same functionality is available through `GenerateContent` with `contentType: "sql"` +- **No breaking changes**: The core functionality remains the same, just accessed through a cleaner, unified interface + +The migration ensures that all SQL generation capabilities are preserved while providing a more maintainable and extensible architecture. + ## Contribute a new extension * First, create a repository. And please keep the same naming convertion. diff --git a/pkg/server/server.pb.go b/pkg/server/server.pb.go index d1652c1e..5b36d984 100644 --- a/pkg/server/server.pb.go +++ b/pkg/server/server.pb.go @@ -23,60 +23,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Enum for supported database dialects to ensure type safety. -type DatabaseType int32 - -const ( - // DATABASE_TYPE_UNSPECIFIED indicates a missing or unknown database type. - DatabaseType_DATABASE_TYPE_UNSPECIFIED DatabaseType = 0 - DatabaseType_MYSQL DatabaseType = 1 - DatabaseType_POSTGRESQL DatabaseType = 2 - DatabaseType_SQLITE DatabaseType = 3 -) - -// Enum value maps for DatabaseType. -var ( - DatabaseType_name = map[int32]string{ - 0: "DATABASE_TYPE_UNSPECIFIED", - 1: "MYSQL", - 2: "POSTGRESQL", - 3: "SQLITE", - } - DatabaseType_value = map[string]int32{ - "DATABASE_TYPE_UNSPECIFIED": 0, - "MYSQL": 1, - "POSTGRESQL": 2, - "SQLITE": 3, - } -) - -func (x DatabaseType) Enum() *DatabaseType { - p := new(DatabaseType) - *p = x - return p -} - -func (x DatabaseType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (DatabaseType) Descriptor() protoreflect.EnumDescriptor { - return file_pkg_server_server_proto_enumTypes[0].Descriptor() -} - -func (DatabaseType) Type() protoreflect.EnumType { - return &file_pkg_server_server_proto_enumTypes[0] -} - -func (x DatabaseType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use DatabaseType.Descriptor instead. -func (DatabaseType) EnumDescriptor() ([]byte, []int) { - return file_pkg_server_server_proto_rawDescGZIP(), []int{0} -} - // Enum for structured error codes. type ErrorCode int32 @@ -121,11 +67,11 @@ func (x ErrorCode) String() string { } func (ErrorCode) Descriptor() protoreflect.EnumDescriptor { - return file_pkg_server_server_proto_enumTypes[1].Descriptor() + return file_pkg_server_server_proto_enumTypes[0].Descriptor() } func (ErrorCode) Type() protoreflect.EnumType { - return &file_pkg_server_server_proto_enumTypes[1] + return &file_pkg_server_server_proto_enumTypes[0] } func (x ErrorCode) Number() protoreflect.EnumNumber { @@ -134,7 +80,7 @@ func (x ErrorCode) Number() protoreflect.EnumNumber { // Deprecated: Use ErrorCode.Descriptor instead. func (ErrorCode) EnumDescriptor() ([]byte, []int) { - return file_pkg_server_server_proto_rawDescGZIP(), []int{1} + return file_pkg_server_server_proto_rawDescGZIP(), []int{0} } type Suites struct { @@ -3541,61 +3487,6 @@ func (x *DataMeta) GetLabels() []*Pair { return nil } -// Represents an example pair of natural language to SQL for few-shot prompting. -type QueryExample struct { - state protoimpl.MessageState `protogen:"open.v1"` - // A natural language query example. - NaturalLanguagePrompt string `protobuf:"bytes,1,opt,name=naturalLanguagePrompt,proto3" json:"naturalLanguagePrompt,omitempty"` - // The corresponding correct SQL query for the prompt. - SqlQuery string `protobuf:"bytes,2,opt,name=sqlQuery,proto3" json:"sqlQuery,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *QueryExample) Reset() { - *x = QueryExample{} - mi := &file_pkg_server_server_proto_msgTypes[55] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *QueryExample) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryExample) ProtoMessage() {} - -func (x *QueryExample) ProtoReflect() protoreflect.Message { - mi := &file_pkg_server_server_proto_msgTypes[55] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use QueryExample.ProtoReflect.Descriptor instead. -func (*QueryExample) Descriptor() ([]byte, []int) { - return file_pkg_server_server_proto_rawDescGZIP(), []int{55} -} - -func (x *QueryExample) GetNaturalLanguagePrompt() string { - if x != nil { - return x.NaturalLanguagePrompt - } - return "" -} - -func (x *QueryExample) GetSqlQuery() string { - if x != nil { - return x.SqlQuery - } - return "" -} - // Request message for generating content based on natural language prompts. type GenerateContentRequest struct { state protoimpl.MessageState `protogen:"open.v1"` @@ -3615,7 +3506,7 @@ type GenerateContentRequest struct { func (x *GenerateContentRequest) Reset() { *x = GenerateContentRequest{} - mi := &file_pkg_server_server_proto_msgTypes[56] + mi := &file_pkg_server_server_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3627,7 +3518,7 @@ func (x *GenerateContentRequest) String() string { func (*GenerateContentRequest) ProtoMessage() {} func (x *GenerateContentRequest) ProtoReflect() protoreflect.Message { - mi := &file_pkg_server_server_proto_msgTypes[56] + mi := &file_pkg_server_server_proto_msgTypes[55] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3640,7 +3531,7 @@ func (x *GenerateContentRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GenerateContentRequest.ProtoReflect.Descriptor instead. func (*GenerateContentRequest) Descriptor() ([]byte, []int) { - return file_pkg_server_server_proto_rawDescGZIP(), []int{56} + return file_pkg_server_server_proto_rawDescGZIP(), []int{55} } func (x *GenerateContentRequest) GetPrompt() string { @@ -3678,91 +3569,6 @@ func (x *GenerateContentRequest) GetParameters() map[string]string { return nil } -// Request message for generating an SQL query from natural language. -type GenerateSQLRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The user's query in natural language. (e.g., "show me all users from California") - NaturalLanguageInput string `protobuf:"bytes,1,opt,name=naturalLanguageInput,proto3" json:"naturalLanguageInput,omitempty"` - // Target database dialect for SQL generation. - DatabaseType DatabaseType `protobuf:"varint,2,opt,name=databaseType,proto3,enum=server.DatabaseType" json:"databaseType,omitempty"` - // Optional: A list of DDL statements (e.g., CREATE TABLE …) for relevant tables. - // Providing schemas helps the AI generate more accurate queries. - Schemas []string `protobuf:"bytes,3,rep,name=schemas,proto3" json:"schemas,omitempty"` - // Optional: A session identifier to maintain context across multiple requests, - // enabling conversational query refinement. - SessionId *string `protobuf:"bytes,4,opt,name=sessionId,proto3,oneof" json:"sessionId,omitempty"` - // Optional: A list of examples to guide the AI, improving accuracy for - // specific or complex domains. - Examples []*QueryExample `protobuf:"bytes,5,rep,name=examples,proto3" json:"examples,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GenerateSQLRequest) Reset() { - *x = GenerateSQLRequest{} - mi := &file_pkg_server_server_proto_msgTypes[57] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GenerateSQLRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenerateSQLRequest) ProtoMessage() {} - -func (x *GenerateSQLRequest) ProtoReflect() protoreflect.Message { - mi := &file_pkg_server_server_proto_msgTypes[57] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GenerateSQLRequest.ProtoReflect.Descriptor instead. -func (*GenerateSQLRequest) Descriptor() ([]byte, []int) { - return file_pkg_server_server_proto_rawDescGZIP(), []int{57} -} - -func (x *GenerateSQLRequest) GetNaturalLanguageInput() string { - if x != nil { - return x.NaturalLanguageInput - } - return "" -} - -func (x *GenerateSQLRequest) GetDatabaseType() DatabaseType { - if x != nil { - return x.DatabaseType - } - return DatabaseType_DATABASE_TYPE_UNSPECIFIED -} - -func (x *GenerateSQLRequest) GetSchemas() []string { - if x != nil { - return x.Schemas - } - return nil -} - -func (x *GenerateSQLRequest) GetSessionId() string { - if x != nil && x.SessionId != nil { - return *x.SessionId - } - return "" -} - -func (x *GenerateSQLRequest) GetExamples() []*QueryExample { - if x != nil { - return x.Examples - } - return nil -} - // Response message containing the result of content generation. type GenerateContentResponse struct { state protoimpl.MessageState `protogen:"open.v1"` @@ -3779,7 +3585,7 @@ type GenerateContentResponse struct { func (x *GenerateContentResponse) Reset() { *x = GenerateContentResponse{} - mi := &file_pkg_server_server_proto_msgTypes[58] + mi := &file_pkg_server_server_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3791,7 +3597,7 @@ func (x *GenerateContentResponse) String() string { func (*GenerateContentResponse) ProtoMessage() {} func (x *GenerateContentResponse) ProtoReflect() protoreflect.Message { - mi := &file_pkg_server_server_proto_msgTypes[58] + mi := &file_pkg_server_server_proto_msgTypes[56] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3804,7 +3610,7 @@ func (x *GenerateContentResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GenerateContentResponse.ProtoReflect.Descriptor instead. func (*GenerateContentResponse) Descriptor() ([]byte, []int) { - return file_pkg_server_server_proto_rawDescGZIP(), []int{58} + return file_pkg_server_server_proto_rawDescGZIP(), []int{56} } func (x *GenerateContentResponse) GetResult() isGenerateContentResponse_Result { @@ -3850,93 +3656,6 @@ func (*GenerateContentResponse_Success) isGenerateContentResponse_Result() {} func (*GenerateContentResponse_Error) isGenerateContentResponse_Result() {} -// Response message containing the result of the SQL generation. -type GenerateSQLResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The response can be one of the following types. - // - // Types that are valid to be assigned to Result: - // - // *GenerateSQLResponse_Success - // *GenerateSQLResponse_Error - Result isGenerateSQLResponse_Result `protobuf_oneof:"result"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GenerateSQLResponse) Reset() { - *x = GenerateSQLResponse{} - mi := &file_pkg_server_server_proto_msgTypes[59] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GenerateSQLResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenerateSQLResponse) ProtoMessage() {} - -func (x *GenerateSQLResponse) ProtoReflect() protoreflect.Message { - mi := &file_pkg_server_server_proto_msgTypes[59] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GenerateSQLResponse.ProtoReflect.Descriptor instead. -func (*GenerateSQLResponse) Descriptor() ([]byte, []int) { - return file_pkg_server_server_proto_rawDescGZIP(), []int{59} -} - -func (x *GenerateSQLResponse) GetResult() isGenerateSQLResponse_Result { - if x != nil { - return x.Result - } - return nil -} - -func (x *GenerateSQLResponse) GetSuccess() *SuccessResponse { - if x != nil { - if x, ok := x.Result.(*GenerateSQLResponse_Success); ok { - return x.Success - } - } - return nil -} - -func (x *GenerateSQLResponse) GetError() *ErrorResponse { - if x != nil { - if x, ok := x.Result.(*GenerateSQLResponse_Error); ok { - return x.Error - } - } - return nil -} - -type isGenerateSQLResponse_Result interface { - isGenerateSQLResponse_Result() -} - -type GenerateSQLResponse_Success struct { - // Contains the successful SQL generation details. - Success *SuccessResponse `protobuf:"bytes,1,opt,name=success,proto3,oneof"` -} - -type GenerateSQLResponse_Error struct { - // Contains details about why the generation failed. - Error *ErrorResponse `protobuf:"bytes,2,opt,name=error,proto3,oneof"` -} - -func (*GenerateSQLResponse_Success) isGenerateSQLResponse_Result() {} - -func (*GenerateSQLResponse_Error) isGenerateSQLResponse_Result() {} - // Represents a successful content generation. type ContentSuccessResponse struct { state protoimpl.MessageState `protogen:"open.v1"` @@ -3957,7 +3676,7 @@ type ContentSuccessResponse struct { func (x *ContentSuccessResponse) Reset() { *x = ContentSuccessResponse{} - mi := &file_pkg_server_server_proto_msgTypes[60] + mi := &file_pkg_server_server_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3969,7 +3688,7 @@ func (x *ContentSuccessResponse) String() string { func (*ContentSuccessResponse) ProtoMessage() {} func (x *ContentSuccessResponse) ProtoReflect() protoreflect.Message { - mi := &file_pkg_server_server_proto_msgTypes[60] + mi := &file_pkg_server_server_proto_msgTypes[57] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3982,7 +3701,7 @@ func (x *ContentSuccessResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ContentSuccessResponse.ProtoReflect.Descriptor instead. func (*ContentSuccessResponse) Descriptor() ([]byte, []int) { - return file_pkg_server_server_proto_rawDescGZIP(), []int{60} + return file_pkg_server_server_proto_rawDescGZIP(), []int{57} } func (x *ContentSuccessResponse) GetContent() string { @@ -4020,72 +3739,7 @@ func (x *ContentSuccessResponse) GetMetadata() map[string]string { return nil } -// Represents a successful SQL generation. -type SuccessResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // The generated SQL query. - SqlQuery string `protobuf:"bytes,1,opt,name=sqlQuery,proto3" json:"sqlQuery,omitempty"` - // An explanation of how the AI interpreted the request and generated the SQL. - // This builds user trust and aids in debugging. - Explanation *string `protobuf:"bytes,2,opt,name=explanation,proto3,oneof" json:"explanation,omitempty"` - // A score between 0.0 and 1.0 indicating the AI's confidence in the generated query. - ConfidenceScore *float32 `protobuf:"fixed32,3,opt,name=confidenceScore,proto3,oneof" json:"confidenceScore,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SuccessResponse) Reset() { - *x = SuccessResponse{} - mi := &file_pkg_server_server_proto_msgTypes[61] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SuccessResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SuccessResponse) ProtoMessage() {} - -func (x *SuccessResponse) ProtoReflect() protoreflect.Message { - mi := &file_pkg_server_server_proto_msgTypes[61] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SuccessResponse.ProtoReflect.Descriptor instead. -func (*SuccessResponse) Descriptor() ([]byte, []int) { - return file_pkg_server_server_proto_rawDescGZIP(), []int{61} -} - -func (x *SuccessResponse) GetSqlQuery() string { - if x != nil { - return x.SqlQuery - } - return "" -} - -func (x *SuccessResponse) GetExplanation() string { - if x != nil && x.Explanation != nil { - return *x.Explanation - } - return "" -} - -func (x *SuccessResponse) GetConfidenceScore() float32 { - if x != nil && x.ConfidenceScore != nil { - return *x.ConfidenceScore - } - return 0 -} - -// Represents a failed SQL generation attempt. +// Represents a failed content generation attempt. type ErrorResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // A structured error code for programmatic handling. @@ -4098,7 +3752,7 @@ type ErrorResponse struct { func (x *ErrorResponse) Reset() { *x = ErrorResponse{} - mi := &file_pkg_server_server_proto_msgTypes[62] + mi := &file_pkg_server_server_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4110,7 +3764,7 @@ func (x *ErrorResponse) String() string { func (*ErrorResponse) ProtoMessage() {} func (x *ErrorResponse) ProtoReflect() protoreflect.Message { - mi := &file_pkg_server_server_proto_msgTypes[62] + mi := &file_pkg_server_server_proto_msgTypes[58] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4123,7 +3777,7 @@ func (x *ErrorResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ErrorResponse.ProtoReflect.Descriptor instead. func (*ErrorResponse) Descriptor() ([]byte, []int) { - return file_pkg_server_server_proto_rawDescGZIP(), []int{62} + return file_pkg_server_server_proto_rawDescGZIP(), []int{58} } func (x *ErrorResponse) GetCode() ErrorCode { @@ -4414,10 +4068,7 @@ const file_pkg_server_server_proto_rawDesc = "" + "\x06tables\x18\x02 \x03(\tR\x06tables\x12(\n" + "\x0fcurrentDatabase\x18\x03 \x01(\tR\x0fcurrentDatabase\x12\x1a\n" + "\bduration\x18\x04 \x01(\tR\bduration\x12$\n" + - "\x06labels\x18\x05 \x03(\v2\f.server.PairR\x06labels\"`\n" + - "\fQueryExample\x124\n" + - "\x15naturalLanguagePrompt\x18\x01 \x01(\tR\x15naturalLanguagePrompt\x12\x1a\n" + - "\bsqlQuery\x18\x02 \x01(\tR\bsqlQuery\"\x95\x03\n" + + "\x06labels\x18\x05 \x03(\v2\f.server.PairR\x06labels\"\x95\x03\n" + "\x16GenerateContentRequest\x12\x16\n" + "\x06prompt\x18\x01 \x01(\tR\x06prompt\x12 \n" + "\vcontentType\x18\x02 \x01(\tR\vcontentType\x12E\n" + @@ -4433,22 +4084,10 @@ const file_pkg_server_server_proto_rawDesc = "" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B\f\n" + "\n" + - "_sessionId\"\xff\x01\n" + - "\x12GenerateSQLRequest\x122\n" + - "\x14naturalLanguageInput\x18\x01 \x01(\tR\x14naturalLanguageInput\x128\n" + - "\fdatabaseType\x18\x02 \x01(\x0e2\x14.server.DatabaseTypeR\fdatabaseType\x12\x18\n" + - "\aschemas\x18\x03 \x03(\tR\aschemas\x12!\n" + - "\tsessionId\x18\x04 \x01(\tH\x00R\tsessionId\x88\x01\x01\x120\n" + - "\bexamples\x18\x05 \x03(\v2\x14.server.QueryExampleR\bexamplesB\f\n" + - "\n" + "_sessionId\"\x8e\x01\n" + "\x17GenerateContentResponse\x12:\n" + "\asuccess\x18\x01 \x01(\v2\x1e.server.ContentSuccessResponseH\x00R\asuccess\x12-\n" + "\x05error\x18\x02 \x01(\v2\x15.server.ErrorResponseH\x00R\x05errorB\b\n" + - "\x06result\"\x83\x01\n" + - "\x13GenerateSQLResponse\x123\n" + - "\asuccess\x18\x01 \x01(\v2\x17.server.SuccessResponseH\x00R\asuccess\x12-\n" + - "\x05error\x18\x02 \x01(\v2\x15.server.ErrorResponseH\x00R\x05errorB\b\n" + "\x06result\"\xd5\x02\n" + "\x16ContentSuccessResponse\x12\x18\n" + "\acontent\x18\x01 \x01(\tR\acontent\x12 \n" + @@ -4460,23 +4099,10 @@ const file_pkg_server_server_proto_rawDesc = "" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B\x0e\n" + "\f_explanationB\x12\n" + - "\x10_confidenceScore\"\xa7\x01\n" + - "\x0fSuccessResponse\x12\x1a\n" + - "\bsqlQuery\x18\x01 \x01(\tR\bsqlQuery\x12%\n" + - "\vexplanation\x18\x02 \x01(\tH\x00R\vexplanation\x88\x01\x01\x12-\n" + - "\x0fconfidenceScore\x18\x03 \x01(\x02H\x01R\x0fconfidenceScore\x88\x01\x01B\x0e\n" + - "\f_explanationB\x12\n" + "\x10_confidenceScore\"P\n" + "\rErrorResponse\x12%\n" + "\x04code\x18\x01 \x01(\x0e2\x11.server.ErrorCodeR\x04code\x12\x18\n" + - "\amessage\x18\x02 \x01(\tR\amessage*T\n" + - "\fDatabaseType\x12\x1d\n" + - "\x19DATABASE_TYPE_UNSPECIFIED\x10\x00\x12\t\n" + - "\x05MYSQL\x10\x01\x12\x0e\n" + - "\n" + - "POSTGRESQL\x10\x02\x12\n" + - "\n" + - "\x06SQLITE\x10\x03*\x83\x01\n" + + "\amessage\x18\x02 \x01(\tR\amessage*\x83\x01\n" + "\tErrorCode\x12\x1a\n" + "\x16ERROR_CODE_UNSPECIFIED\x10\x00\x12\x14\n" + "\x10INVALID_ARGUMENT\x10\x01\x12\x16\n" + @@ -4542,10 +4168,9 @@ const file_pkg_server_server_proto_rawDesc = "" + "\bGetTheme\x12\x12.server.SimpleName\x1a\x14.server.CommonResult\"\x1d\x82\xd3\xe4\x93\x02\x17\x12\x15/api/v1/themes/{name}\x12J\n" + "\vGetBindings\x12\r.server.Empty\x1a\x12.server.SimpleList\"\x18\x82\xd3\xe4\x93\x02\x12\x12\x10/api/v1/bindings\x12W\n" + "\n" + - "GetBinding\x12\x12.server.SimpleName\x1a\x14.server.CommonResult\"\x1f\x82\xd3\xe4\x93\x02\x19\x12\x17/api/v1/bindings/{name}2\x80\x02\n" + + "GetBinding\x12\x12.server.SimpleName\x1a\x14.server.CommonResult\"\x1f\x82\xd3\xe4\x93\x02\x19\x12\x17/api/v1/bindings/{name}2\x81\x01\n" + "\vAIExtension\x12r\n" + - "\x0fGenerateContent\x12\x1e.server.GenerateContentRequest\x1a\x1f.server.GenerateContentResponse\"\x1e\x82\xd3\xe4\x93\x02\x18:\x01*\"\x13/api/v1/ai/generate\x12}\n" + - "\x1eGenerateSQLFromNaturalLanguage\x12\x1a.server.GenerateSQLRequest\x1a\x1b.server.GenerateSQLResponse\"\"\x82\xd3\xe4\x93\x02\x1c:\x01*\"\x17/api/v1/ai/sql/generate2\xa0\x01\n" + + "\x0fGenerateContent\x12\x1e.server.GenerateContentRequest\x1a\x1f.server.GenerateContentResponse\"\x1e\x82\xd3\xe4\x93\x02\x18:\x01*\"\x13/api/v1/ai/generate2\xa0\x01\n" + "\x04Mock\x12K\n" + "\x06Reload\x12\x12.server.MockConfig\x1a\r.server.Empty\"\x1e\x82\xd3\xe4\x93\x02\x18:\x01*\"\x13/api/v1/mock/reload\x12K\n" + "\tGetConfig\x12\r.server.Empty\x1a\x12.server.MockConfig\"\x1b\x82\xd3\xe4\x93\x02\x15\x12\x13/api/v1/mock/config2`\n" + @@ -4565,267 +4190,256 @@ func file_pkg_server_server_proto_rawDescGZIP() []byte { return file_pkg_server_server_proto_rawDescData } -var file_pkg_server_server_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_pkg_server_server_proto_msgTypes = make([]protoimpl.MessageInfo, 69) +var file_pkg_server_server_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_pkg_server_server_proto_msgTypes = make([]protoimpl.MessageInfo, 65) var file_pkg_server_server_proto_goTypes = []any{ - (DatabaseType)(0), // 0: server.DatabaseType - (ErrorCode)(0), // 1: server.ErrorCode - (*Suites)(nil), // 2: server.Suites - (*Items)(nil), // 3: server.Items - (*HistorySuites)(nil), // 4: server.HistorySuites - (*HistoryItems)(nil), // 5: server.HistoryItems - (*HistoryCaseIdentity)(nil), // 6: server.HistoryCaseIdentity - (*TestCaseIdentity)(nil), // 7: server.TestCaseIdentity - (*TestSuiteSource)(nil), // 8: server.TestSuiteSource - (*TestSuite)(nil), // 9: server.TestSuite - (*TestSuiteWithCase)(nil), // 10: server.TestSuiteWithCase - (*APISpec)(nil), // 11: server.APISpec - (*Secure)(nil), // 12: server.Secure - (*RPC)(nil), // 13: server.RPC - (*TestSuiteIdentity)(nil), // 14: server.TestSuiteIdentity - (*TestSuiteDuplicate)(nil), // 15: server.TestSuiteDuplicate - (*TestCaseDuplicate)(nil), // 16: server.TestCaseDuplicate - (*TestTask)(nil), // 17: server.TestTask - (*BatchTestTask)(nil), // 18: server.BatchTestTask - (*TestResult)(nil), // 19: server.TestResult - (*HistoryTestResult)(nil), // 20: server.HistoryTestResult - (*HelloReply)(nil), // 21: server.HelloReply - (*YamlData)(nil), // 22: server.YamlData - (*Suite)(nil), // 23: server.Suite - (*TestCaseWithSuite)(nil), // 24: server.TestCaseWithSuite - (*TestCases)(nil), // 25: server.TestCases - (*TestCase)(nil), // 26: server.TestCase - (*HistoryTestCase)(nil), // 27: server.HistoryTestCase - (*HistoryTestCases)(nil), // 28: server.HistoryTestCases - (*Request)(nil), // 29: server.Request - (*Response)(nil), // 30: server.Response - (*ConditionalVerify)(nil), // 31: server.ConditionalVerify - (*TestCaseResult)(nil), // 32: server.TestCaseResult - (*Pair)(nil), // 33: server.Pair - (*Pairs)(nil), // 34: server.Pairs - (*SimpleQuery)(nil), // 35: server.SimpleQuery - (*Stores)(nil), // 36: server.Stores - (*Store)(nil), // 37: server.Store - (*StoreKinds)(nil), // 38: server.StoreKinds - (*StoreKind)(nil), // 39: server.StoreKind - (*CommonResult)(nil), // 40: server.CommonResult - (*SimpleList)(nil), // 41: server.SimpleList - (*SimpleName)(nil), // 42: server.SimpleName - (*CodeGenerateRequest)(nil), // 43: server.CodeGenerateRequest - (*Secrets)(nil), // 44: server.Secrets - (*Secret)(nil), // 45: server.Secret - (*ExtensionStatus)(nil), // 46: server.ExtensionStatus - (*PProfRequest)(nil), // 47: server.PProfRequest - (*PProfData)(nil), // 48: server.PProfData - (*FileData)(nil), // 49: server.FileData - (*Empty)(nil), // 50: server.Empty - (*MockConfig)(nil), // 51: server.MockConfig - (*Version)(nil), // 52: server.Version - (*ProxyConfig)(nil), // 53: server.ProxyConfig - (*DataQuery)(nil), // 54: server.DataQuery - (*DataQueryResult)(nil), // 55: server.DataQueryResult - (*DataMeta)(nil), // 56: server.DataMeta - (*QueryExample)(nil), // 57: server.QueryExample - (*GenerateContentRequest)(nil), // 58: server.GenerateContentRequest - (*GenerateSQLRequest)(nil), // 59: server.GenerateSQLRequest - (*GenerateContentResponse)(nil), // 60: server.GenerateContentResponse - (*GenerateSQLResponse)(nil), // 61: server.GenerateSQLResponse - (*ContentSuccessResponse)(nil), // 62: server.ContentSuccessResponse - (*SuccessResponse)(nil), // 63: server.SuccessResponse - (*ErrorResponse)(nil), // 64: server.ErrorResponse - nil, // 65: server.Suites.DataEntry - nil, // 66: server.HistorySuites.DataEntry - nil, // 67: server.TestTask.EnvEntry - nil, // 68: server.GenerateContentRequest.ContextEntry - nil, // 69: server.GenerateContentRequest.ParametersEntry - nil, // 70: server.ContentSuccessResponse.MetadataEntry - (*timestamppb.Timestamp)(nil), // 71: google.protobuf.Timestamp + (ErrorCode)(0), // 0: server.ErrorCode + (*Suites)(nil), // 1: server.Suites + (*Items)(nil), // 2: server.Items + (*HistorySuites)(nil), // 3: server.HistorySuites + (*HistoryItems)(nil), // 4: server.HistoryItems + (*HistoryCaseIdentity)(nil), // 5: server.HistoryCaseIdentity + (*TestCaseIdentity)(nil), // 6: server.TestCaseIdentity + (*TestSuiteSource)(nil), // 7: server.TestSuiteSource + (*TestSuite)(nil), // 8: server.TestSuite + (*TestSuiteWithCase)(nil), // 9: server.TestSuiteWithCase + (*APISpec)(nil), // 10: server.APISpec + (*Secure)(nil), // 11: server.Secure + (*RPC)(nil), // 12: server.RPC + (*TestSuiteIdentity)(nil), // 13: server.TestSuiteIdentity + (*TestSuiteDuplicate)(nil), // 14: server.TestSuiteDuplicate + (*TestCaseDuplicate)(nil), // 15: server.TestCaseDuplicate + (*TestTask)(nil), // 16: server.TestTask + (*BatchTestTask)(nil), // 17: server.BatchTestTask + (*TestResult)(nil), // 18: server.TestResult + (*HistoryTestResult)(nil), // 19: server.HistoryTestResult + (*HelloReply)(nil), // 20: server.HelloReply + (*YamlData)(nil), // 21: server.YamlData + (*Suite)(nil), // 22: server.Suite + (*TestCaseWithSuite)(nil), // 23: server.TestCaseWithSuite + (*TestCases)(nil), // 24: server.TestCases + (*TestCase)(nil), // 25: server.TestCase + (*HistoryTestCase)(nil), // 26: server.HistoryTestCase + (*HistoryTestCases)(nil), // 27: server.HistoryTestCases + (*Request)(nil), // 28: server.Request + (*Response)(nil), // 29: server.Response + (*ConditionalVerify)(nil), // 30: server.ConditionalVerify + (*TestCaseResult)(nil), // 31: server.TestCaseResult + (*Pair)(nil), // 32: server.Pair + (*Pairs)(nil), // 33: server.Pairs + (*SimpleQuery)(nil), // 34: server.SimpleQuery + (*Stores)(nil), // 35: server.Stores + (*Store)(nil), // 36: server.Store + (*StoreKinds)(nil), // 37: server.StoreKinds + (*StoreKind)(nil), // 38: server.StoreKind + (*CommonResult)(nil), // 39: server.CommonResult + (*SimpleList)(nil), // 40: server.SimpleList + (*SimpleName)(nil), // 41: server.SimpleName + (*CodeGenerateRequest)(nil), // 42: server.CodeGenerateRequest + (*Secrets)(nil), // 43: server.Secrets + (*Secret)(nil), // 44: server.Secret + (*ExtensionStatus)(nil), // 45: server.ExtensionStatus + (*PProfRequest)(nil), // 46: server.PProfRequest + (*PProfData)(nil), // 47: server.PProfData + (*FileData)(nil), // 48: server.FileData + (*Empty)(nil), // 49: server.Empty + (*MockConfig)(nil), // 50: server.MockConfig + (*Version)(nil), // 51: server.Version + (*ProxyConfig)(nil), // 52: server.ProxyConfig + (*DataQuery)(nil), // 53: server.DataQuery + (*DataQueryResult)(nil), // 54: server.DataQueryResult + (*DataMeta)(nil), // 55: server.DataMeta + (*GenerateContentRequest)(nil), // 56: server.GenerateContentRequest + (*GenerateContentResponse)(nil), // 57: server.GenerateContentResponse + (*ContentSuccessResponse)(nil), // 58: server.ContentSuccessResponse + (*ErrorResponse)(nil), // 59: server.ErrorResponse + nil, // 60: server.Suites.DataEntry + nil, // 61: server.HistorySuites.DataEntry + nil, // 62: server.TestTask.EnvEntry + nil, // 63: server.GenerateContentRequest.ContextEntry + nil, // 64: server.GenerateContentRequest.ParametersEntry + nil, // 65: server.ContentSuccessResponse.MetadataEntry + (*timestamppb.Timestamp)(nil), // 66: google.protobuf.Timestamp } var file_pkg_server_server_proto_depIdxs = []int32{ - 65, // 0: server.Suites.data:type_name -> server.Suites.DataEntry - 66, // 1: server.HistorySuites.data:type_name -> server.HistorySuites.DataEntry - 6, // 2: server.HistoryItems.data:type_name -> server.HistoryCaseIdentity - 33, // 3: server.TestCaseIdentity.parameters:type_name -> server.Pair - 33, // 4: server.TestSuite.param:type_name -> server.Pair - 11, // 5: server.TestSuite.spec:type_name -> server.APISpec - 53, // 6: server.TestSuite.proxy:type_name -> server.ProxyConfig - 9, // 7: server.TestSuiteWithCase.suite:type_name -> server.TestSuite - 26, // 8: server.TestSuiteWithCase.case:type_name -> server.TestCase - 13, // 9: server.APISpec.rpc:type_name -> server.RPC - 12, // 10: server.APISpec.secure:type_name -> server.Secure - 67, // 11: server.TestTask.env:type_name -> server.TestTask.EnvEntry - 33, // 12: server.TestTask.parameters:type_name -> server.Pair - 33, // 13: server.BatchTestTask.parameters:type_name -> server.Pair - 32, // 14: server.TestResult.testCaseResult:type_name -> server.TestCaseResult - 32, // 15: server.HistoryTestResult.testCaseResult:type_name -> server.TestCaseResult - 27, // 16: server.HistoryTestResult.data:type_name -> server.HistoryTestCase - 71, // 17: server.HistoryTestResult.createTime:type_name -> google.protobuf.Timestamp - 26, // 18: server.Suite.items:type_name -> server.TestCase - 26, // 19: server.TestCaseWithSuite.data:type_name -> server.TestCase - 26, // 20: server.TestCases.data:type_name -> server.TestCase - 29, // 21: server.TestCase.request:type_name -> server.Request - 30, // 22: server.TestCase.response:type_name -> server.Response - 71, // 23: server.HistoryTestCase.createTime:type_name -> google.protobuf.Timestamp - 33, // 24: server.HistoryTestCase.suiteParam:type_name -> server.Pair - 11, // 25: server.HistoryTestCase.suiteSpec:type_name -> server.APISpec - 29, // 26: server.HistoryTestCase.request:type_name -> server.Request - 30, // 27: server.HistoryTestCase.response:type_name -> server.Response - 33, // 28: server.HistoryTestCase.historyHeader:type_name -> server.Pair - 27, // 29: server.HistoryTestCases.data:type_name -> server.HistoryTestCase - 33, // 30: server.Request.header:type_name -> server.Pair - 33, // 31: server.Request.query:type_name -> server.Pair - 33, // 32: server.Request.cookie:type_name -> server.Pair - 33, // 33: server.Request.form:type_name -> server.Pair - 33, // 34: server.Response.header:type_name -> server.Pair - 33, // 35: server.Response.bodyFieldsExpect:type_name -> server.Pair - 31, // 36: server.Response.ConditionalVerify:type_name -> server.ConditionalVerify - 33, // 37: server.TestCaseResult.header:type_name -> server.Pair - 33, // 38: server.Pairs.data:type_name -> server.Pair - 37, // 39: server.Stores.data:type_name -> server.Store - 33, // 40: server.Store.properties:type_name -> server.Pair - 39, // 41: server.Store.kind:type_name -> server.StoreKind - 39, // 42: server.StoreKinds.data:type_name -> server.StoreKind - 33, // 43: server.SimpleList.data:type_name -> server.Pair - 45, // 44: server.Secrets.data:type_name -> server.Secret - 33, // 45: server.DataQueryResult.data:type_name -> server.Pair - 34, // 46: server.DataQueryResult.items:type_name -> server.Pairs - 56, // 47: server.DataQueryResult.meta:type_name -> server.DataMeta - 33, // 48: server.DataMeta.labels:type_name -> server.Pair - 68, // 49: server.GenerateContentRequest.context:type_name -> server.GenerateContentRequest.ContextEntry - 69, // 50: server.GenerateContentRequest.parameters:type_name -> server.GenerateContentRequest.ParametersEntry - 0, // 51: server.GenerateSQLRequest.databaseType:type_name -> server.DatabaseType - 57, // 52: server.GenerateSQLRequest.examples:type_name -> server.QueryExample - 62, // 53: server.GenerateContentResponse.success:type_name -> server.ContentSuccessResponse - 64, // 54: server.GenerateContentResponse.error:type_name -> server.ErrorResponse - 63, // 55: server.GenerateSQLResponse.success:type_name -> server.SuccessResponse - 64, // 56: server.GenerateSQLResponse.error:type_name -> server.ErrorResponse - 70, // 57: server.ContentSuccessResponse.metadata:type_name -> server.ContentSuccessResponse.MetadataEntry - 1, // 58: server.ErrorResponse.code:type_name -> server.ErrorCode - 3, // 59: server.Suites.DataEntry.value:type_name -> server.Items - 5, // 60: server.HistorySuites.DataEntry.value:type_name -> server.HistoryItems - 17, // 61: server.Runner.Run:input_type -> server.TestTask - 14, // 62: server.Runner.RunTestSuite:input_type -> server.TestSuiteIdentity - 50, // 63: server.Runner.GetSuites:input_type -> server.Empty - 14, // 64: server.Runner.CreateTestSuite:input_type -> server.TestSuiteIdentity - 8, // 65: server.Runner.ImportTestSuite:input_type -> server.TestSuiteSource - 14, // 66: server.Runner.GetTestSuite:input_type -> server.TestSuiteIdentity - 9, // 67: server.Runner.UpdateTestSuite:input_type -> server.TestSuite - 14, // 68: server.Runner.DeleteTestSuite:input_type -> server.TestSuiteIdentity - 15, // 69: server.Runner.DuplicateTestSuite:input_type -> server.TestSuiteDuplicate - 15, // 70: server.Runner.RenameTestSuite:input_type -> server.TestSuiteDuplicate - 14, // 71: server.Runner.GetTestSuiteYaml:input_type -> server.TestSuiteIdentity - 14, // 72: server.Runner.ListTestCase:input_type -> server.TestSuiteIdentity - 7, // 73: server.Runner.RunTestCase:input_type -> server.TestCaseIdentity - 18, // 74: server.Runner.BatchRun:input_type -> server.BatchTestTask - 7, // 75: server.Runner.GetTestCase:input_type -> server.TestCaseIdentity - 24, // 76: server.Runner.CreateTestCase:input_type -> server.TestCaseWithSuite - 24, // 77: server.Runner.UpdateTestCase:input_type -> server.TestCaseWithSuite - 7, // 78: server.Runner.DeleteTestCase:input_type -> server.TestCaseIdentity - 16, // 79: server.Runner.DuplicateTestCase:input_type -> server.TestCaseDuplicate - 16, // 80: server.Runner.RenameTestCase:input_type -> server.TestCaseDuplicate - 14, // 81: server.Runner.GetSuggestedAPIs:input_type -> server.TestSuiteIdentity - 50, // 82: server.Runner.GetHistorySuites:input_type -> server.Empty - 27, // 83: server.Runner.GetHistoryTestCaseWithResult:input_type -> server.HistoryTestCase - 27, // 84: server.Runner.GetHistoryTestCase:input_type -> server.HistoryTestCase - 27, // 85: server.Runner.DeleteHistoryTestCase:input_type -> server.HistoryTestCase - 27, // 86: server.Runner.DeleteAllHistoryTestCase:input_type -> server.HistoryTestCase - 26, // 87: server.Runner.GetTestCaseAllHistory:input_type -> server.TestCase - 50, // 88: server.Runner.ListCodeGenerator:input_type -> server.Empty - 43, // 89: server.Runner.GenerateCode:input_type -> server.CodeGenerateRequest - 43, // 90: server.Runner.HistoryGenerateCode:input_type -> server.CodeGenerateRequest - 50, // 91: server.Runner.ListConverter:input_type -> server.Empty - 43, // 92: server.Runner.ConvertTestSuite:input_type -> server.CodeGenerateRequest - 50, // 93: server.Runner.PopularHeaders:input_type -> server.Empty - 35, // 94: server.Runner.FunctionsQuery:input_type -> server.SimpleQuery - 35, // 95: server.Runner.FunctionsQueryStream:input_type -> server.SimpleQuery - 50, // 96: server.Runner.GetVersion:input_type -> server.Empty - 50, // 97: server.Runner.Sample:input_type -> server.Empty - 26, // 98: server.Runner.DownloadResponseFile:input_type -> server.TestCase - 50, // 99: server.Runner.GetStoreKinds:input_type -> server.Empty - 50, // 100: server.Runner.GetStores:input_type -> server.Empty - 37, // 101: server.Runner.CreateStore:input_type -> server.Store - 37, // 102: server.Runner.UpdateStore:input_type -> server.Store - 37, // 103: server.Runner.DeleteStore:input_type -> server.Store - 35, // 104: server.Runner.VerifyStore:input_type -> server.SimpleQuery - 50, // 105: server.Runner.GetSecrets:input_type -> server.Empty - 45, // 106: server.Runner.CreateSecret:input_type -> server.Secret - 45, // 107: server.Runner.DeleteSecret:input_type -> server.Secret - 45, // 108: server.Runner.UpdateSecret:input_type -> server.Secret - 47, // 109: server.Runner.PProf:input_type -> server.PProfRequest - 10, // 110: server.RunnerExtension.Run:input_type -> server.TestSuiteWithCase - 50, // 111: server.ThemeExtension.GetThemes:input_type -> server.Empty - 42, // 112: server.ThemeExtension.GetTheme:input_type -> server.SimpleName - 50, // 113: server.ThemeExtension.GetBindings:input_type -> server.Empty - 42, // 114: server.ThemeExtension.GetBinding:input_type -> server.SimpleName - 58, // 115: server.AIExtension.GenerateContent:input_type -> server.GenerateContentRequest - 59, // 116: server.AIExtension.GenerateSQLFromNaturalLanguage:input_type -> server.GenerateSQLRequest - 51, // 117: server.Mock.Reload:input_type -> server.MockConfig - 50, // 118: server.Mock.GetConfig:input_type -> server.Empty - 54, // 119: server.DataServer.Query:input_type -> server.DataQuery - 19, // 120: server.Runner.Run:output_type -> server.TestResult - 19, // 121: server.Runner.RunTestSuite:output_type -> server.TestResult - 2, // 122: server.Runner.GetSuites:output_type -> server.Suites - 21, // 123: server.Runner.CreateTestSuite:output_type -> server.HelloReply - 40, // 124: server.Runner.ImportTestSuite:output_type -> server.CommonResult - 9, // 125: server.Runner.GetTestSuite:output_type -> server.TestSuite - 21, // 126: server.Runner.UpdateTestSuite:output_type -> server.HelloReply - 21, // 127: server.Runner.DeleteTestSuite:output_type -> server.HelloReply - 21, // 128: server.Runner.DuplicateTestSuite:output_type -> server.HelloReply - 21, // 129: server.Runner.RenameTestSuite:output_type -> server.HelloReply - 22, // 130: server.Runner.GetTestSuiteYaml:output_type -> server.YamlData - 23, // 131: server.Runner.ListTestCase:output_type -> server.Suite - 32, // 132: server.Runner.RunTestCase:output_type -> server.TestCaseResult - 19, // 133: server.Runner.BatchRun:output_type -> server.TestResult - 26, // 134: server.Runner.GetTestCase:output_type -> server.TestCase - 21, // 135: server.Runner.CreateTestCase:output_type -> server.HelloReply - 21, // 136: server.Runner.UpdateTestCase:output_type -> server.HelloReply - 21, // 137: server.Runner.DeleteTestCase:output_type -> server.HelloReply - 21, // 138: server.Runner.DuplicateTestCase:output_type -> server.HelloReply - 21, // 139: server.Runner.RenameTestCase:output_type -> server.HelloReply - 25, // 140: server.Runner.GetSuggestedAPIs:output_type -> server.TestCases - 4, // 141: server.Runner.GetHistorySuites:output_type -> server.HistorySuites - 20, // 142: server.Runner.GetHistoryTestCaseWithResult:output_type -> server.HistoryTestResult - 27, // 143: server.Runner.GetHistoryTestCase:output_type -> server.HistoryTestCase - 21, // 144: server.Runner.DeleteHistoryTestCase:output_type -> server.HelloReply - 21, // 145: server.Runner.DeleteAllHistoryTestCase:output_type -> server.HelloReply - 28, // 146: server.Runner.GetTestCaseAllHistory:output_type -> server.HistoryTestCases - 41, // 147: server.Runner.ListCodeGenerator:output_type -> server.SimpleList - 40, // 148: server.Runner.GenerateCode:output_type -> server.CommonResult - 40, // 149: server.Runner.HistoryGenerateCode:output_type -> server.CommonResult - 41, // 150: server.Runner.ListConverter:output_type -> server.SimpleList - 40, // 151: server.Runner.ConvertTestSuite:output_type -> server.CommonResult - 34, // 152: server.Runner.PopularHeaders:output_type -> server.Pairs - 34, // 153: server.Runner.FunctionsQuery:output_type -> server.Pairs - 34, // 154: server.Runner.FunctionsQueryStream:output_type -> server.Pairs - 52, // 155: server.Runner.GetVersion:output_type -> server.Version - 21, // 156: server.Runner.Sample:output_type -> server.HelloReply - 49, // 157: server.Runner.DownloadResponseFile:output_type -> server.FileData - 38, // 158: server.Runner.GetStoreKinds:output_type -> server.StoreKinds - 36, // 159: server.Runner.GetStores:output_type -> server.Stores - 37, // 160: server.Runner.CreateStore:output_type -> server.Store - 37, // 161: server.Runner.UpdateStore:output_type -> server.Store - 37, // 162: server.Runner.DeleteStore:output_type -> server.Store - 46, // 163: server.Runner.VerifyStore:output_type -> server.ExtensionStatus - 44, // 164: server.Runner.GetSecrets:output_type -> server.Secrets - 40, // 165: server.Runner.CreateSecret:output_type -> server.CommonResult - 40, // 166: server.Runner.DeleteSecret:output_type -> server.CommonResult - 40, // 167: server.Runner.UpdateSecret:output_type -> server.CommonResult - 48, // 168: server.Runner.PProf:output_type -> server.PProfData - 40, // 169: server.RunnerExtension.Run:output_type -> server.CommonResult - 41, // 170: server.ThemeExtension.GetThemes:output_type -> server.SimpleList - 40, // 171: server.ThemeExtension.GetTheme:output_type -> server.CommonResult - 41, // 172: server.ThemeExtension.GetBindings:output_type -> server.SimpleList - 40, // 173: server.ThemeExtension.GetBinding:output_type -> server.CommonResult - 60, // 174: server.AIExtension.GenerateContent:output_type -> server.GenerateContentResponse - 61, // 175: server.AIExtension.GenerateSQLFromNaturalLanguage:output_type -> server.GenerateSQLResponse - 50, // 176: server.Mock.Reload:output_type -> server.Empty - 51, // 177: server.Mock.GetConfig:output_type -> server.MockConfig - 55, // 178: server.DataServer.Query:output_type -> server.DataQueryResult - 120, // [120:179] is the sub-list for method output_type - 61, // [61:120] is the sub-list for method input_type - 61, // [61:61] is the sub-list for extension type_name - 61, // [61:61] is the sub-list for extension extendee - 0, // [0:61] is the sub-list for field type_name + 60, // 0: server.Suites.data:type_name -> server.Suites.DataEntry + 61, // 1: server.HistorySuites.data:type_name -> server.HistorySuites.DataEntry + 5, // 2: server.HistoryItems.data:type_name -> server.HistoryCaseIdentity + 32, // 3: server.TestCaseIdentity.parameters:type_name -> server.Pair + 32, // 4: server.TestSuite.param:type_name -> server.Pair + 10, // 5: server.TestSuite.spec:type_name -> server.APISpec + 52, // 6: server.TestSuite.proxy:type_name -> server.ProxyConfig + 8, // 7: server.TestSuiteWithCase.suite:type_name -> server.TestSuite + 25, // 8: server.TestSuiteWithCase.case:type_name -> server.TestCase + 12, // 9: server.APISpec.rpc:type_name -> server.RPC + 11, // 10: server.APISpec.secure:type_name -> server.Secure + 62, // 11: server.TestTask.env:type_name -> server.TestTask.EnvEntry + 32, // 12: server.TestTask.parameters:type_name -> server.Pair + 32, // 13: server.BatchTestTask.parameters:type_name -> server.Pair + 31, // 14: server.TestResult.testCaseResult:type_name -> server.TestCaseResult + 31, // 15: server.HistoryTestResult.testCaseResult:type_name -> server.TestCaseResult + 26, // 16: server.HistoryTestResult.data:type_name -> server.HistoryTestCase + 66, // 17: server.HistoryTestResult.createTime:type_name -> google.protobuf.Timestamp + 25, // 18: server.Suite.items:type_name -> server.TestCase + 25, // 19: server.TestCaseWithSuite.data:type_name -> server.TestCase + 25, // 20: server.TestCases.data:type_name -> server.TestCase + 28, // 21: server.TestCase.request:type_name -> server.Request + 29, // 22: server.TestCase.response:type_name -> server.Response + 66, // 23: server.HistoryTestCase.createTime:type_name -> google.protobuf.Timestamp + 32, // 24: server.HistoryTestCase.suiteParam:type_name -> server.Pair + 10, // 25: server.HistoryTestCase.suiteSpec:type_name -> server.APISpec + 28, // 26: server.HistoryTestCase.request:type_name -> server.Request + 29, // 27: server.HistoryTestCase.response:type_name -> server.Response + 32, // 28: server.HistoryTestCase.historyHeader:type_name -> server.Pair + 26, // 29: server.HistoryTestCases.data:type_name -> server.HistoryTestCase + 32, // 30: server.Request.header:type_name -> server.Pair + 32, // 31: server.Request.query:type_name -> server.Pair + 32, // 32: server.Request.cookie:type_name -> server.Pair + 32, // 33: server.Request.form:type_name -> server.Pair + 32, // 34: server.Response.header:type_name -> server.Pair + 32, // 35: server.Response.bodyFieldsExpect:type_name -> server.Pair + 30, // 36: server.Response.ConditionalVerify:type_name -> server.ConditionalVerify + 32, // 37: server.TestCaseResult.header:type_name -> server.Pair + 32, // 38: server.Pairs.data:type_name -> server.Pair + 36, // 39: server.Stores.data:type_name -> server.Store + 32, // 40: server.Store.properties:type_name -> server.Pair + 38, // 41: server.Store.kind:type_name -> server.StoreKind + 38, // 42: server.StoreKinds.data:type_name -> server.StoreKind + 32, // 43: server.SimpleList.data:type_name -> server.Pair + 44, // 44: server.Secrets.data:type_name -> server.Secret + 32, // 45: server.DataQueryResult.data:type_name -> server.Pair + 33, // 46: server.DataQueryResult.items:type_name -> server.Pairs + 55, // 47: server.DataQueryResult.meta:type_name -> server.DataMeta + 32, // 48: server.DataMeta.labels:type_name -> server.Pair + 63, // 49: server.GenerateContentRequest.context:type_name -> server.GenerateContentRequest.ContextEntry + 64, // 50: server.GenerateContentRequest.parameters:type_name -> server.GenerateContentRequest.ParametersEntry + 58, // 51: server.GenerateContentResponse.success:type_name -> server.ContentSuccessResponse + 59, // 52: server.GenerateContentResponse.error:type_name -> server.ErrorResponse + 65, // 53: server.ContentSuccessResponse.metadata:type_name -> server.ContentSuccessResponse.MetadataEntry + 0, // 54: server.ErrorResponse.code:type_name -> server.ErrorCode + 2, // 55: server.Suites.DataEntry.value:type_name -> server.Items + 4, // 56: server.HistorySuites.DataEntry.value:type_name -> server.HistoryItems + 16, // 57: server.Runner.Run:input_type -> server.TestTask + 13, // 58: server.Runner.RunTestSuite:input_type -> server.TestSuiteIdentity + 49, // 59: server.Runner.GetSuites:input_type -> server.Empty + 13, // 60: server.Runner.CreateTestSuite:input_type -> server.TestSuiteIdentity + 7, // 61: server.Runner.ImportTestSuite:input_type -> server.TestSuiteSource + 13, // 62: server.Runner.GetTestSuite:input_type -> server.TestSuiteIdentity + 8, // 63: server.Runner.UpdateTestSuite:input_type -> server.TestSuite + 13, // 64: server.Runner.DeleteTestSuite:input_type -> server.TestSuiteIdentity + 14, // 65: server.Runner.DuplicateTestSuite:input_type -> server.TestSuiteDuplicate + 14, // 66: server.Runner.RenameTestSuite:input_type -> server.TestSuiteDuplicate + 13, // 67: server.Runner.GetTestSuiteYaml:input_type -> server.TestSuiteIdentity + 13, // 68: server.Runner.ListTestCase:input_type -> server.TestSuiteIdentity + 6, // 69: server.Runner.RunTestCase:input_type -> server.TestCaseIdentity + 17, // 70: server.Runner.BatchRun:input_type -> server.BatchTestTask + 6, // 71: server.Runner.GetTestCase:input_type -> server.TestCaseIdentity + 23, // 72: server.Runner.CreateTestCase:input_type -> server.TestCaseWithSuite + 23, // 73: server.Runner.UpdateTestCase:input_type -> server.TestCaseWithSuite + 6, // 74: server.Runner.DeleteTestCase:input_type -> server.TestCaseIdentity + 15, // 75: server.Runner.DuplicateTestCase:input_type -> server.TestCaseDuplicate + 15, // 76: server.Runner.RenameTestCase:input_type -> server.TestCaseDuplicate + 13, // 77: server.Runner.GetSuggestedAPIs:input_type -> server.TestSuiteIdentity + 49, // 78: server.Runner.GetHistorySuites:input_type -> server.Empty + 26, // 79: server.Runner.GetHistoryTestCaseWithResult:input_type -> server.HistoryTestCase + 26, // 80: server.Runner.GetHistoryTestCase:input_type -> server.HistoryTestCase + 26, // 81: server.Runner.DeleteHistoryTestCase:input_type -> server.HistoryTestCase + 26, // 82: server.Runner.DeleteAllHistoryTestCase:input_type -> server.HistoryTestCase + 25, // 83: server.Runner.GetTestCaseAllHistory:input_type -> server.TestCase + 49, // 84: server.Runner.ListCodeGenerator:input_type -> server.Empty + 42, // 85: server.Runner.GenerateCode:input_type -> server.CodeGenerateRequest + 42, // 86: server.Runner.HistoryGenerateCode:input_type -> server.CodeGenerateRequest + 49, // 87: server.Runner.ListConverter:input_type -> server.Empty + 42, // 88: server.Runner.ConvertTestSuite:input_type -> server.CodeGenerateRequest + 49, // 89: server.Runner.PopularHeaders:input_type -> server.Empty + 34, // 90: server.Runner.FunctionsQuery:input_type -> server.SimpleQuery + 34, // 91: server.Runner.FunctionsQueryStream:input_type -> server.SimpleQuery + 49, // 92: server.Runner.GetVersion:input_type -> server.Empty + 49, // 93: server.Runner.Sample:input_type -> server.Empty + 25, // 94: server.Runner.DownloadResponseFile:input_type -> server.TestCase + 49, // 95: server.Runner.GetStoreKinds:input_type -> server.Empty + 49, // 96: server.Runner.GetStores:input_type -> server.Empty + 36, // 97: server.Runner.CreateStore:input_type -> server.Store + 36, // 98: server.Runner.UpdateStore:input_type -> server.Store + 36, // 99: server.Runner.DeleteStore:input_type -> server.Store + 34, // 100: server.Runner.VerifyStore:input_type -> server.SimpleQuery + 49, // 101: server.Runner.GetSecrets:input_type -> server.Empty + 44, // 102: server.Runner.CreateSecret:input_type -> server.Secret + 44, // 103: server.Runner.DeleteSecret:input_type -> server.Secret + 44, // 104: server.Runner.UpdateSecret:input_type -> server.Secret + 46, // 105: server.Runner.PProf:input_type -> server.PProfRequest + 9, // 106: server.RunnerExtension.Run:input_type -> server.TestSuiteWithCase + 49, // 107: server.ThemeExtension.GetThemes:input_type -> server.Empty + 41, // 108: server.ThemeExtension.GetTheme:input_type -> server.SimpleName + 49, // 109: server.ThemeExtension.GetBindings:input_type -> server.Empty + 41, // 110: server.ThemeExtension.GetBinding:input_type -> server.SimpleName + 56, // 111: server.AIExtension.GenerateContent:input_type -> server.GenerateContentRequest + 50, // 112: server.Mock.Reload:input_type -> server.MockConfig + 49, // 113: server.Mock.GetConfig:input_type -> server.Empty + 53, // 114: server.DataServer.Query:input_type -> server.DataQuery + 18, // 115: server.Runner.Run:output_type -> server.TestResult + 18, // 116: server.Runner.RunTestSuite:output_type -> server.TestResult + 1, // 117: server.Runner.GetSuites:output_type -> server.Suites + 20, // 118: server.Runner.CreateTestSuite:output_type -> server.HelloReply + 39, // 119: server.Runner.ImportTestSuite:output_type -> server.CommonResult + 8, // 120: server.Runner.GetTestSuite:output_type -> server.TestSuite + 20, // 121: server.Runner.UpdateTestSuite:output_type -> server.HelloReply + 20, // 122: server.Runner.DeleteTestSuite:output_type -> server.HelloReply + 20, // 123: server.Runner.DuplicateTestSuite:output_type -> server.HelloReply + 20, // 124: server.Runner.RenameTestSuite:output_type -> server.HelloReply + 21, // 125: server.Runner.GetTestSuiteYaml:output_type -> server.YamlData + 22, // 126: server.Runner.ListTestCase:output_type -> server.Suite + 31, // 127: server.Runner.RunTestCase:output_type -> server.TestCaseResult + 18, // 128: server.Runner.BatchRun:output_type -> server.TestResult + 25, // 129: server.Runner.GetTestCase:output_type -> server.TestCase + 20, // 130: server.Runner.CreateTestCase:output_type -> server.HelloReply + 20, // 131: server.Runner.UpdateTestCase:output_type -> server.HelloReply + 20, // 132: server.Runner.DeleteTestCase:output_type -> server.HelloReply + 20, // 133: server.Runner.DuplicateTestCase:output_type -> server.HelloReply + 20, // 134: server.Runner.RenameTestCase:output_type -> server.HelloReply + 24, // 135: server.Runner.GetSuggestedAPIs:output_type -> server.TestCases + 3, // 136: server.Runner.GetHistorySuites:output_type -> server.HistorySuites + 19, // 137: server.Runner.GetHistoryTestCaseWithResult:output_type -> server.HistoryTestResult + 26, // 138: server.Runner.GetHistoryTestCase:output_type -> server.HistoryTestCase + 20, // 139: server.Runner.DeleteHistoryTestCase:output_type -> server.HelloReply + 20, // 140: server.Runner.DeleteAllHistoryTestCase:output_type -> server.HelloReply + 27, // 141: server.Runner.GetTestCaseAllHistory:output_type -> server.HistoryTestCases + 40, // 142: server.Runner.ListCodeGenerator:output_type -> server.SimpleList + 39, // 143: server.Runner.GenerateCode:output_type -> server.CommonResult + 39, // 144: server.Runner.HistoryGenerateCode:output_type -> server.CommonResult + 40, // 145: server.Runner.ListConverter:output_type -> server.SimpleList + 39, // 146: server.Runner.ConvertTestSuite:output_type -> server.CommonResult + 33, // 147: server.Runner.PopularHeaders:output_type -> server.Pairs + 33, // 148: server.Runner.FunctionsQuery:output_type -> server.Pairs + 33, // 149: server.Runner.FunctionsQueryStream:output_type -> server.Pairs + 51, // 150: server.Runner.GetVersion:output_type -> server.Version + 20, // 151: server.Runner.Sample:output_type -> server.HelloReply + 48, // 152: server.Runner.DownloadResponseFile:output_type -> server.FileData + 37, // 153: server.Runner.GetStoreKinds:output_type -> server.StoreKinds + 35, // 154: server.Runner.GetStores:output_type -> server.Stores + 36, // 155: server.Runner.CreateStore:output_type -> server.Store + 36, // 156: server.Runner.UpdateStore:output_type -> server.Store + 36, // 157: server.Runner.DeleteStore:output_type -> server.Store + 45, // 158: server.Runner.VerifyStore:output_type -> server.ExtensionStatus + 43, // 159: server.Runner.GetSecrets:output_type -> server.Secrets + 39, // 160: server.Runner.CreateSecret:output_type -> server.CommonResult + 39, // 161: server.Runner.DeleteSecret:output_type -> server.CommonResult + 39, // 162: server.Runner.UpdateSecret:output_type -> server.CommonResult + 47, // 163: server.Runner.PProf:output_type -> server.PProfData + 39, // 164: server.RunnerExtension.Run:output_type -> server.CommonResult + 40, // 165: server.ThemeExtension.GetThemes:output_type -> server.SimpleList + 39, // 166: server.ThemeExtension.GetTheme:output_type -> server.CommonResult + 40, // 167: server.ThemeExtension.GetBindings:output_type -> server.SimpleList + 39, // 168: server.ThemeExtension.GetBinding:output_type -> server.CommonResult + 57, // 169: server.AIExtension.GenerateContent:output_type -> server.GenerateContentResponse + 49, // 170: server.Mock.Reload:output_type -> server.Empty + 50, // 171: server.Mock.GetConfig:output_type -> server.MockConfig + 54, // 172: server.DataServer.Query:output_type -> server.DataQueryResult + 115, // [115:173] is the sub-list for method output_type + 57, // [57:115] is the sub-list for method input_type + 57, // [57:57] is the sub-list for extension type_name + 57, // [57:57] is the sub-list for extension extendee + 0, // [0:57] is the sub-list for field type_name } func init() { file_pkg_server_server_proto_init() } @@ -4833,25 +4447,19 @@ func file_pkg_server_server_proto_init() { if File_pkg_server_server_proto != nil { return } - file_pkg_server_server_proto_msgTypes[56].OneofWrappers = []any{} - file_pkg_server_server_proto_msgTypes[57].OneofWrappers = []any{} - file_pkg_server_server_proto_msgTypes[58].OneofWrappers = []any{ + file_pkg_server_server_proto_msgTypes[55].OneofWrappers = []any{} + file_pkg_server_server_proto_msgTypes[56].OneofWrappers = []any{ (*GenerateContentResponse_Success)(nil), (*GenerateContentResponse_Error)(nil), } - file_pkg_server_server_proto_msgTypes[59].OneofWrappers = []any{ - (*GenerateSQLResponse_Success)(nil), - (*GenerateSQLResponse_Error)(nil), - } - file_pkg_server_server_proto_msgTypes[60].OneofWrappers = []any{} - file_pkg_server_server_proto_msgTypes[61].OneofWrappers = []any{} + file_pkg_server_server_proto_msgTypes[57].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_server_server_proto_rawDesc), len(file_pkg_server_server_proto_rawDesc)), - NumEnums: 2, - NumMessages: 69, + NumEnums: 1, + NumMessages: 65, NumExtensions: 0, NumServices: 6, }, diff --git a/pkg/server/server.pb.gw.go b/pkg/server/server.pb.gw.go index 1e39b7a7..65a04bdf 100644 --- a/pkg/server/server.pb.gw.go +++ b/pkg/server/server.pb.gw.go @@ -2208,33 +2208,6 @@ func local_request_AIExtension_GenerateContent_0(ctx context.Context, marshaler return msg, metadata, err } -func request_AIExtension_GenerateSQLFromNaturalLanguage_0(ctx context.Context, marshaler runtime.Marshaler, client AIExtensionClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GenerateSQLRequest - metadata runtime.ServerMetadata - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if req.Body != nil { - _, _ = io.Copy(io.Discard, req.Body) - } - msg, err := client.GenerateSQLFromNaturalLanguage(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_AIExtension_GenerateSQLFromNaturalLanguage_0(ctx context.Context, marshaler runtime.Marshaler, server AIExtensionServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq GenerateSQLRequest - metadata runtime.ServerMetadata - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.GenerateSQLFromNaturalLanguage(ctx, &protoReq) - return msg, metadata, err -} - func request_Mock_Reload_0(ctx context.Context, marshaler runtime.Marshaler, client MockClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var ( protoReq MockConfig @@ -3407,26 +3380,6 @@ func RegisterAIExtensionHandlerServer(ctx context.Context, mux *runtime.ServeMux } forward_AIExtension_GenerateContent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle(http.MethodPost, pattern_AIExtension_GenerateSQLFromNaturalLanguage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/server.AIExtension/GenerateSQLFromNaturalLanguage", runtime.WithHTTPPathPattern("/api/v1/ai/sql/generate")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AIExtension_GenerateSQLFromNaturalLanguage_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_AIExtension_GenerateSQLFromNaturalLanguage_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil } @@ -4725,34 +4678,15 @@ func RegisterAIExtensionHandlerClient(ctx context.Context, mux *runtime.ServeMux } forward_AIExtension_GenerateContent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle(http.MethodPost, pattern_AIExtension_GenerateSQLFromNaturalLanguage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/server.AIExtension/GenerateSQLFromNaturalLanguage", runtime.WithHTTPPathPattern("/api/v1/ai/sql/generate")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AIExtension_GenerateSQLFromNaturalLanguage_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_AIExtension_GenerateSQLFromNaturalLanguage_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil } var ( - pattern_AIExtension_GenerateContent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "ai", "generate"}, "")) - pattern_AIExtension_GenerateSQLFromNaturalLanguage_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"api", "v1", "ai", "sql", "generate"}, "")) + pattern_AIExtension_GenerateContent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "ai", "generate"}, "")) ) var ( - forward_AIExtension_GenerateContent_0 = runtime.ForwardResponseMessage - forward_AIExtension_GenerateSQLFromNaturalLanguage_0 = runtime.ForwardResponseMessage + forward_AIExtension_GenerateContent_0 = runtime.ForwardResponseMessage ) // RegisterMockHandlerFromEndpoint is same as RegisterMockHandler but diff --git a/pkg/server/server.proto b/pkg/server/server.proto index e5b5f01c..eaeafa45 100644 --- a/pkg/server/server.proto +++ b/pkg/server/server.proto @@ -341,14 +341,6 @@ service AIExtension { body: "*" }; } - - // Legacy SQL generation endpoint for backward compatibility - rpc GenerateSQLFromNaturalLanguage (GenerateSQLRequest) returns (GenerateSQLResponse) { - option (google.api.http) = { - post: "/api/v1/ai/sql/generate" - body: "*" - }; - } } message Suites { @@ -721,22 +713,7 @@ message DataMeta { // AI Extension related messages -// Enum for supported database dialects to ensure type safety. -enum DatabaseType { - // DATABASE_TYPE_UNSPECIFIED indicates a missing or unknown database type. - DATABASE_TYPE_UNSPECIFIED = 0; - MYSQL = 1; - POSTGRESQL = 2; - SQLITE = 3; -} -// Represents an example pair of natural language to SQL for few-shot prompting. -message QueryExample { - // A natural language query example. - string naturalLanguagePrompt = 1; - // The corresponding correct SQL query for the prompt. - string sqlQuery = 2; -} // Request message for generating content based on natural language prompts. message GenerateContentRequest { @@ -752,22 +729,9 @@ message GenerateContentRequest { map parameters = 5; } -// Request message for generating an SQL query from natural language. -message GenerateSQLRequest { - // The user's query in natural language. (e.g., "show me all users from California") - string naturalLanguageInput = 1; - // Target database dialect for SQL generation. - DatabaseType databaseType = 2; - // Optional: A list of DDL statements (e.g., CREATE TABLE …) for relevant tables. - // Providing schemas helps the AI generate more accurate queries. - repeated string schemas = 3; - // Optional: A session identifier to maintain context across multiple requests, - // enabling conversational query refinement. - optional string sessionId = 4; - // Optional: A list of examples to guide the AI, improving accuracy for - // specific or complex domains. - repeated QueryExample examples = 5; -} + + + // Response message containing the result of content generation. message GenerateContentResponse { @@ -780,16 +744,9 @@ message GenerateContentResponse { } } -// Response message containing the result of the SQL generation. -message GenerateSQLResponse { - // The response can be one of the following types. - oneof result { - // Contains the successful SQL generation details. - SuccessResponse success = 1; - // Contains details about why the generation failed. - ErrorResponse error = 2; - } -} + + + // Represents a successful content generation. message ContentSuccessResponse { @@ -806,16 +763,9 @@ message ContentSuccessResponse { map metadata = 5; } -// Represents a successful SQL generation. -message SuccessResponse { - // The generated SQL query. - string sqlQuery = 1; - // An explanation of how the AI interpreted the request and generated the SQL. - // This builds user trust and aids in debugging. - optional string explanation = 2; - // A score between 0.0 and 1.0 indicating the AI's confidence in the generated query. - optional float confidenceScore = 3; -} + + + // Enum for structured error codes. enum ErrorCode { @@ -830,7 +780,7 @@ enum ErrorCode { INTERNAL_ERROR = 4; } -// Represents a failed SQL generation attempt. +// Represents a failed content generation attempt. message ErrorResponse { // A structured error code for programmatic handling. ErrorCode code = 1; diff --git a/pkg/server/server.swagger.json b/pkg/server/server.swagger.json index 4820f139..10d5cd99 100644 --- a/pkg/server/server.swagger.json +++ b/pkg/server/server.swagger.json @@ -65,40 +65,6 @@ ] } }, - "/api/v1/ai/sql/generate": { - "post": { - "summary": "Legacy SQL generation endpoint for backward compatibility", - "operationId": "AIExtension_GenerateSQLFromNaturalLanguage", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/serverGenerateSQLResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/rpcStatus" - } - } - }, - "parameters": [ - { - "name": "body", - "description": "Request message for generating an SQL query from natural language.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/serverGenerateSQLRequest" - } - } - ], - "tags": [ - "AIExtension" - ] - } - }, "/api/v1/batchRun": { "post": { "operationId": "Runner_BatchRun", @@ -3129,17 +3095,6 @@ } } }, - "serverDatabaseType": { - "type": "string", - "enum": [ - "DATABASE_TYPE_UNSPECIFIED", - "MYSQL", - "POSTGRESQL", - "SQLITE" - ], - "default": "DATABASE_TYPE_UNSPECIFIED", - "description": "Enum for supported database dialects to ensure type safety.\n\n - DATABASE_TYPE_UNSPECIFIED: DATABASE_TYPE_UNSPECIFIED indicates a missing or unknown database type." - }, "serverEmpty": { "type": "object" }, @@ -3167,7 +3122,7 @@ "description": "A human-readable message describing the error." } }, - "description": "Represents a failed SQL generation attempt." + "description": "Represents a failed content generation attempt." }, "serverExtensionStatus": { "type": "object", @@ -3247,53 +3202,6 @@ }, "description": "Response message containing the result of content generation." }, - "serverGenerateSQLRequest": { - "type": "object", - "properties": { - "naturalLanguageInput": { - "type": "string", - "title": "The user's query in natural language. (e.g., \"show me all users from California\")" - }, - "databaseType": { - "$ref": "#/definitions/serverDatabaseType", - "description": "Target database dialect for SQL generation." - }, - "schemas": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Optional: A list of DDL statements (e.g., CREATE TABLE …) for relevant tables.\nProviding schemas helps the AI generate more accurate queries." - }, - "sessionId": { - "type": "string", - "description": "Optional: A session identifier to maintain context across multiple requests,\nenabling conversational query refinement." - }, - "examples": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/serverQueryExample" - }, - "description": "Optional: A list of examples to guide the AI, improving accuracy for\nspecific or complex domains." - } - }, - "description": "Request message for generating an SQL query from natural language." - }, - "serverGenerateSQLResponse": { - "type": "object", - "properties": { - "success": { - "$ref": "#/definitions/serverSuccessResponse", - "description": "Contains the successful SQL generation details." - }, - "error": { - "$ref": "#/definitions/serverErrorResponse", - "description": "Contains details about why the generation failed." - } - }, - "description": "Response message containing the result of the SQL generation." - }, "serverHelloReply": { "type": "object", "properties": { @@ -3521,20 +3429,6 @@ } } }, - "serverQueryExample": { - "type": "object", - "properties": { - "naturalLanguagePrompt": { - "type": "string", - "description": "A natural language query example." - }, - "sqlQuery": { - "type": "string", - "description": "The corresponding correct SQL query for the prompt." - } - }, - "description": "Represents an example pair of natural language to SQL for few-shot prompting." - }, "serverRPC": { "type": "object", "properties": { @@ -3791,25 +3685,6 @@ } } }, - "serverSuccessResponse": { - "type": "object", - "properties": { - "sqlQuery": { - "type": "string", - "description": "The generated SQL query." - }, - "explanation": { - "type": "string", - "description": "An explanation of how the AI interpreted the request and generated the SQL.\nThis builds user trust and aids in debugging." - }, - "confidenceScore": { - "type": "number", - "format": "float", - "description": "A score between 0.0 and 1.0 indicating the AI's confidence in the generated query." - } - }, - "description": "Represents a successful SQL generation." - }, "serverSuite": { "type": "object", "properties": { diff --git a/pkg/server/server_grpc.pb.go b/pkg/server/server_grpc.pb.go index 337b5fb8..868a4802 100644 --- a/pkg/server/server_grpc.pb.go +++ b/pkg/server/server_grpc.pb.go @@ -2268,8 +2268,7 @@ var ThemeExtension_ServiceDesc = grpc.ServiceDesc{ } const ( - AIExtension_GenerateContent_FullMethodName = "/server.AIExtension/GenerateContent" - AIExtension_GenerateSQLFromNaturalLanguage_FullMethodName = "/server.AIExtension/GenerateSQLFromNaturalLanguage" + AIExtension_GenerateContent_FullMethodName = "/server.AIExtension/GenerateContent" ) // AIExtensionClient is the client API for AIExtension service. @@ -2282,8 +2281,6 @@ type AIExtensionClient interface { // This is a general-purpose AI interface that can handle SQL generation, // test case writing, mock service creation, and other AI-powered tasks. GenerateContent(ctx context.Context, in *GenerateContentRequest, opts ...grpc.CallOption) (*GenerateContentResponse, error) - // Legacy SQL generation endpoint for backward compatibility - GenerateSQLFromNaturalLanguage(ctx context.Context, in *GenerateSQLRequest, opts ...grpc.CallOption) (*GenerateSQLResponse, error) } type aIExtensionClient struct { @@ -2304,16 +2301,6 @@ func (c *aIExtensionClient) GenerateContent(ctx context.Context, in *GenerateCon return out, nil } -func (c *aIExtensionClient) GenerateSQLFromNaturalLanguage(ctx context.Context, in *GenerateSQLRequest, opts ...grpc.CallOption) (*GenerateSQLResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GenerateSQLResponse) - err := c.cc.Invoke(ctx, AIExtension_GenerateSQLFromNaturalLanguage_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - // AIExtensionServer is the server API for AIExtension service. // All implementations must embed UnimplementedAIExtensionServer // for forward compatibility. @@ -2324,8 +2311,6 @@ type AIExtensionServer interface { // This is a general-purpose AI interface that can handle SQL generation, // test case writing, mock service creation, and other AI-powered tasks. GenerateContent(context.Context, *GenerateContentRequest) (*GenerateContentResponse, error) - // Legacy SQL generation endpoint for backward compatibility - GenerateSQLFromNaturalLanguage(context.Context, *GenerateSQLRequest) (*GenerateSQLResponse, error) mustEmbedUnimplementedAIExtensionServer() } @@ -2339,9 +2324,6 @@ type UnimplementedAIExtensionServer struct{} func (UnimplementedAIExtensionServer) GenerateContent(context.Context, *GenerateContentRequest) (*GenerateContentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GenerateContent not implemented") } -func (UnimplementedAIExtensionServer) GenerateSQLFromNaturalLanguage(context.Context, *GenerateSQLRequest) (*GenerateSQLResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GenerateSQLFromNaturalLanguage not implemented") -} func (UnimplementedAIExtensionServer) mustEmbedUnimplementedAIExtensionServer() {} func (UnimplementedAIExtensionServer) testEmbeddedByValue() {} @@ -2381,24 +2363,6 @@ func _AIExtension_GenerateContent_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } -func _AIExtension_GenerateSQLFromNaturalLanguage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GenerateSQLRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AIExtensionServer).GenerateSQLFromNaturalLanguage(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AIExtension_GenerateSQLFromNaturalLanguage_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AIExtensionServer).GenerateSQLFromNaturalLanguage(ctx, req.(*GenerateSQLRequest)) - } - return interceptor(ctx, in, info, handler) -} - // AIExtension_ServiceDesc is the grpc.ServiceDesc for AIExtension service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -2410,10 +2374,6 @@ var AIExtension_ServiceDesc = grpc.ServiceDesc{ MethodName: "GenerateContent", Handler: _AIExtension_GenerateContent_Handler, }, - { - MethodName: "GenerateSQLFromNaturalLanguage", - Handler: _AIExtension_GenerateSQLFromNaturalLanguage_Handler, - }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/server/server.proto", From eff1d43f6aff6545869e31c8085f254a02ee5931 Mon Sep 17 00:00:00 2001 From: KarielHalling Date: Mon, 18 Aug 2025 19:14:32 +0800 Subject: [PATCH 5/5] Fix TypeScript error in store.ts - replace find() with for loop for ES5 compatibility --- console/atest-ui/src/views/store.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/console/atest-ui/src/views/store.ts b/console/atest-ui/src/views/store.ts index 80bbad9a..61ac66c7 100644 --- a/console/atest-ui/src/views/store.ts +++ b/console/atest-ui/src/views/store.ts @@ -63,7 +63,13 @@ const Cassandra = "cassandra"; export const GetDriverName = (store: Store): string => { switch (store.kind.name) { case 'atest-store-orm': - return store.properties.find((p: Pair) => p.key === 'driver')?.value || MySQL; + const properties = store.properties as Pair[]; + for (let i = 0; i < properties.length; i++) { + if (properties[i].key === 'driver') { + return properties[i].value || MySQL; + } + } + return MySQL; case 'atest-store-cassandra': return Cassandra; }