// Copyright 2016 The gRPC Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // Service exported by server reflection. A more complete description of how // server reflection works can be found at // https://github.com/grpc/grpc/blob/master/doc/server-reflection.md // // The canonical version of this proto can be found at // https://github.com/grpc/grpc-proto/blob/master/grpc/reflection/v1/reflection.proto // @generated by protoc-gen-es v1.10.0 // @generated from file grpc/reflection/v1/reflection.proto (package grpc.reflection.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; /** * The message sent by the client when calling ServerReflectionInfo method. * * @generated from message grpc.reflection.v1.ServerReflectionRequest */ export declare class ServerReflectionRequest extends Message { /** * @generated from field: string host = 1; */ host: string; /** * To use reflection service, the client should set one of the following * fields in message_request. The server distinguishes requests by their * defined field and then handles them using corresponding methods. * * @generated from oneof grpc.reflection.v1.ServerReflectionRequest.message_request */ messageRequest: { /** * Find a proto file by the file name. * * @generated from field: string file_by_filename = 3; */ value: string; case: "fileByFilename"; } | { /** * Find the proto file that declares the given fully-qualified symbol name. * This field should be a fully-qualified symbol name * (e.g. .[.] or .). * * @generated from field: string file_containing_symbol = 4; */ value: string; case: "fileContainingSymbol"; } | { /** * Find the proto file which defines an extension extending the given * message type with the given field number. * * @generated from field: grpc.reflection.v1.ExtensionRequest file_containing_extension = 5; */ value: ExtensionRequest; case: "fileContainingExtension"; } | { /** * Finds the tag numbers used by all known extensions of the given message * type, and appends them to ExtensionNumberResponse in an undefined order. * Its corresponding method is best-effort: it's not guaranteed that the * reflection service will implement this method, and it's not guaranteed * that this method will provide all extensions. Returns * StatusCode::UNIMPLEMENTED if it's not implemented. * This field should be a fully-qualified type name. The format is * . * * @generated from field: string all_extension_numbers_of_type = 6; */ value: string; case: "allExtensionNumbersOfType"; } | { /** * List the full names of registered services. The content will not be * checked. * * @generated from field: string list_services = 7; */ value: string; case: "listServices"; } | { case: undefined; value?: undefined }; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "grpc.reflection.v1.ServerReflectionRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ServerReflectionRequest; static fromJson(jsonValue: JsonValue, options?: Partial): ServerReflectionRequest; static fromJsonString(jsonString: string, options?: Partial): ServerReflectionRequest; static equals(a: ServerReflectionRequest | PlainMessage | undefined, b: ServerReflectionRequest | PlainMessage | undefined): boolean; } /** * The type name and extension number sent by the client when requesting * file_containing_extension. * * @generated from message grpc.reflection.v1.ExtensionRequest */ export declare class ExtensionRequest extends Message { /** * Fully-qualified type name. The format should be . * * @generated from field: string containing_type = 1; */ containingType: string; /** * @generated from field: int32 extension_number = 2; */ extensionNumber: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "grpc.reflection.v1.ExtensionRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ExtensionRequest; static fromJson(jsonValue: JsonValue, options?: Partial): ExtensionRequest; static fromJsonString(jsonString: string, options?: Partial): ExtensionRequest; static equals(a: ExtensionRequest | PlainMessage | undefined, b: ExtensionRequest | PlainMessage | undefined): boolean; } /** * The message sent by the server to answer ServerReflectionInfo method. * * @generated from message grpc.reflection.v1.ServerReflectionResponse */ export declare class ServerReflectionResponse extends Message { /** * @generated from field: string valid_host = 1; */ validHost: string; /** * @generated from field: grpc.reflection.v1.ServerReflectionRequest original_request = 2; */ originalRequest?: ServerReflectionRequest; /** * The server sets one of the following fields according to the message_request * in the request. * * @generated from oneof grpc.reflection.v1.ServerReflectionResponse.message_response */ messageResponse: { /** * This message is used to answer file_by_filename, file_containing_symbol, * file_containing_extension requests with transitive dependencies. * As the repeated label is not allowed in oneof fields, we use a * FileDescriptorResponse message to encapsulate the repeated fields. * The reflection service is allowed to avoid sending FileDescriptorProtos * that were previously sent in response to earlier requests in the stream. * * @generated from field: grpc.reflection.v1.FileDescriptorResponse file_descriptor_response = 4; */ value: FileDescriptorResponse; case: "fileDescriptorResponse"; } | { /** * This message is used to answer all_extension_numbers_of_type requests. * * @generated from field: grpc.reflection.v1.ExtensionNumberResponse all_extension_numbers_response = 5; */ value: ExtensionNumberResponse; case: "allExtensionNumbersResponse"; } | { /** * This message is used to answer list_services requests. * * @generated from field: grpc.reflection.v1.ListServiceResponse list_services_response = 6; */ value: ListServiceResponse; case: "listServicesResponse"; } | { /** * This message is used when an error occurs. * * @generated from field: grpc.reflection.v1.ErrorResponse error_response = 7; */ value: ErrorResponse; case: "errorResponse"; } | { case: undefined; value?: undefined }; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "grpc.reflection.v1.ServerReflectionResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ServerReflectionResponse; static fromJson(jsonValue: JsonValue, options?: Partial): ServerReflectionResponse; static fromJsonString(jsonString: string, options?: Partial): ServerReflectionResponse; static equals(a: ServerReflectionResponse | PlainMessage | undefined, b: ServerReflectionResponse | PlainMessage | undefined): boolean; } /** * Serialized FileDescriptorProto messages sent by the server answering * a file_by_filename, file_containing_symbol, or file_containing_extension * request. * * @generated from message grpc.reflection.v1.FileDescriptorResponse */ export declare class FileDescriptorResponse extends Message { /** * Serialized FileDescriptorProto messages. We avoid taking a dependency on * descriptor.proto, which uses proto2 only features, by making them opaque * bytes instead. * * @generated from field: repeated bytes file_descriptor_proto = 1; */ fileDescriptorProto: Uint8Array[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "grpc.reflection.v1.FileDescriptorResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): FileDescriptorResponse; static fromJson(jsonValue: JsonValue, options?: Partial): FileDescriptorResponse; static fromJsonString(jsonString: string, options?: Partial): FileDescriptorResponse; static equals(a: FileDescriptorResponse | PlainMessage | undefined, b: FileDescriptorResponse | PlainMessage | undefined): boolean; } /** * A list of extension numbers sent by the server answering * all_extension_numbers_of_type request. * * @generated from message grpc.reflection.v1.ExtensionNumberResponse */ export declare class ExtensionNumberResponse extends Message { /** * Full name of the base type, including the package name. The format * is . * * @generated from field: string base_type_name = 1; */ baseTypeName: string; /** * @generated from field: repeated int32 extension_number = 2; */ extensionNumber: number[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "grpc.reflection.v1.ExtensionNumberResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ExtensionNumberResponse; static fromJson(jsonValue: JsonValue, options?: Partial): ExtensionNumberResponse; static fromJsonString(jsonString: string, options?: Partial): ExtensionNumberResponse; static equals(a: ExtensionNumberResponse | PlainMessage | undefined, b: ExtensionNumberResponse | PlainMessage | undefined): boolean; } /** * A list of ServiceResponse sent by the server answering list_services request. * * @generated from message grpc.reflection.v1.ListServiceResponse */ export declare class ListServiceResponse extends Message { /** * The information of each service may be expanded in the future, so we use * ServiceResponse message to encapsulate it. * * @generated from field: repeated grpc.reflection.v1.ServiceResponse service = 1; */ service: ServiceResponse[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "grpc.reflection.v1.ListServiceResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ListServiceResponse; static fromJson(jsonValue: JsonValue, options?: Partial): ListServiceResponse; static fromJsonString(jsonString: string, options?: Partial): ListServiceResponse; static equals(a: ListServiceResponse | PlainMessage | undefined, b: ListServiceResponse | PlainMessage | undefined): boolean; } /** * The information of a single service used by ListServiceResponse to answer * list_services request. * * @generated from message grpc.reflection.v1.ServiceResponse */ export declare class ServiceResponse extends Message { /** * Full name of a registered service, including its package name. The format * is . * * @generated from field: string name = 1; */ name: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "grpc.reflection.v1.ServiceResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ServiceResponse; static fromJson(jsonValue: JsonValue, options?: Partial): ServiceResponse; static fromJsonString(jsonString: string, options?: Partial): ServiceResponse; static equals(a: ServiceResponse | PlainMessage | undefined, b: ServiceResponse | PlainMessage | undefined): boolean; } /** * The error code and error message sent by the server when an error occurs. * * @generated from message grpc.reflection.v1.ErrorResponse */ export declare class ErrorResponse extends Message { /** * This field uses the error codes defined in grpc::StatusCode. * * @generated from field: int32 error_code = 1; */ errorCode: number; /** * @generated from field: string error_message = 2; */ errorMessage: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "grpc.reflection.v1.ErrorResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ErrorResponse; static fromJson(jsonValue: JsonValue, options?: Partial): ErrorResponse; static fromJsonString(jsonString: string, options?: Partial): ErrorResponse; static equals(a: ErrorResponse | PlainMessage | undefined, b: ErrorResponse | PlainMessage | undefined): boolean; }