|
|
|
@ -1,6 +1,72 @@ |
|
|
|
|
/*
|
|
|
|
|
* |
|
|
|
|
* Copyright 2015, Google Inc. |
|
|
|
|
* All rights reserved. |
|
|
|
|
* |
|
|
|
|
* Redistribution and use in source and binary forms, with or without |
|
|
|
|
* modification, are permitted provided that the following conditions are |
|
|
|
|
* met: |
|
|
|
|
* |
|
|
|
|
* * Redistributions of source code must retain the above copyright |
|
|
|
|
* notice, this list of conditions and the following disclaimer. |
|
|
|
|
* * Redistributions in binary form must reproduce the above |
|
|
|
|
* copyright notice, this list of conditions and the following disclaimer |
|
|
|
|
* in the documentation and/or other materials provided with the |
|
|
|
|
* distribution. |
|
|
|
|
* * Neither the name of Google Inc. nor the names of its |
|
|
|
|
* contributors may be used to endorse or promote products derived from |
|
|
|
|
* this software without specific prior written permission. |
|
|
|
|
* |
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
|
|
|
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
|
|
|
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
|
|
|
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
|
|
|
|
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
|
|
|
|
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
|
|
|
|
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
|
|
|
|
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
|
|
|
|
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
|
|
|
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
|
|
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
|
|
|
* |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Generated by the gRPC protobuf plugin.
|
|
|
|
|
// If you make any local change, they will be lost.
|
|
|
|
|
// source: reflection.proto
|
|
|
|
|
// Original file comments:
|
|
|
|
|
// Copyright 2016, Google Inc.
|
|
|
|
|
// All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
// Redistribution and use in source and binary forms, with or without
|
|
|
|
|
// modification, are permitted provided that the following conditions are
|
|
|
|
|
// met:
|
|
|
|
|
//
|
|
|
|
|
// * Redistributions of source code must retain the above copyright
|
|
|
|
|
// notice, this list of conditions and the following disclaimer.
|
|
|
|
|
// * Redistributions in binary form must reproduce the above
|
|
|
|
|
// copyright notice, this list of conditions and the following disclaimer
|
|
|
|
|
// in the documentation and/or other materials provided with the
|
|
|
|
|
// distribution.
|
|
|
|
|
// * Neither the name of Google Inc. nor the names of its
|
|
|
|
|
// contributors may be used to endorse or promote products derived from
|
|
|
|
|
// this software without specific prior written permission.
|
|
|
|
|
//
|
|
|
|
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
//
|
|
|
|
|
// Service exported by server reflection
|
|
|
|
|
//
|
|
|
|
|
#ifndef GRPC_reflection_2eproto__INCLUDED |
|
|
|
|
#define GRPC_reflection_2eproto__INCLUDED |
|
|
|
|
|
|
|
|
@ -32,516 +98,78 @@ class ServerReflection GRPC_FINAL { |
|
|
|
|
class StubInterface { |
|
|
|
|
public: |
|
|
|
|
virtual ~StubInterface() {} |
|
|
|
|
virtual ::grpc::Status ListService( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::EmptyRequest& request, |
|
|
|
|
::grpc::reflection::v1alpha::ListServiceResponse* response) = 0; |
|
|
|
|
std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface< |
|
|
|
|
::grpc::reflection::v1alpha::ListServiceResponse>> |
|
|
|
|
AsyncListService(::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::EmptyRequest& request, |
|
|
|
|
::grpc::CompletionQueue* cq) { |
|
|
|
|
return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface< |
|
|
|
|
::grpc::reflection::v1alpha::ListServiceResponse>>( |
|
|
|
|
AsyncListServiceRaw(context, request, cq)); |
|
|
|
|
} |
|
|
|
|
virtual ::grpc::Status GetFileByName( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::FileNameRequest& request, |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse* response) = 0; |
|
|
|
|
std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface< |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse>> |
|
|
|
|
AsyncGetFileByName( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::FileNameRequest& request, |
|
|
|
|
::grpc::CompletionQueue* cq) { |
|
|
|
|
return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface< |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse>>( |
|
|
|
|
AsyncGetFileByNameRaw(context, request, cq)); |
|
|
|
|
} |
|
|
|
|
virtual ::grpc::Status GetFileContainingSymbol( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::SymbolRequest& request, |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse* response) = 0; |
|
|
|
|
std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface< |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse>> |
|
|
|
|
AsyncGetFileContainingSymbol( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::SymbolRequest& request, |
|
|
|
|
::grpc::CompletionQueue* cq) { |
|
|
|
|
return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface< |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse>>( |
|
|
|
|
AsyncGetFileContainingSymbolRaw(context, request, cq)); |
|
|
|
|
// The reflection service is structured as a bidirectional stream, ensuring
|
|
|
|
|
// all related requests go to a single server.
|
|
|
|
|
std::unique_ptr< ::grpc::ClientReaderWriterInterface< ::grpc::reflection::v1alpha::DescriptorDatabaseRequest, ::grpc::reflection::v1alpha::DescriptorDatabaseResponse>> DescriptorDatabaseInfo(::grpc::ClientContext* context) { |
|
|
|
|
return std::unique_ptr< ::grpc::ClientReaderWriterInterface< ::grpc::reflection::v1alpha::DescriptorDatabaseRequest, ::grpc::reflection::v1alpha::DescriptorDatabaseResponse>>(DescriptorDatabaseInfoRaw(context)); |
|
|
|
|
} |
|
|
|
|
virtual ::grpc::Status GetFileContainingExtension( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::ExtensionRequest& request, |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse* response) = 0; |
|
|
|
|
std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface< |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse>> |
|
|
|
|
AsyncGetFileContainingExtension( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::ExtensionRequest& request, |
|
|
|
|
::grpc::CompletionQueue* cq) { |
|
|
|
|
return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface< |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse>>( |
|
|
|
|
AsyncGetFileContainingExtensionRaw(context, request, cq)); |
|
|
|
|
std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::grpc::reflection::v1alpha::DescriptorDatabaseRequest, ::grpc::reflection::v1alpha::DescriptorDatabaseResponse>> AsyncDescriptorDatabaseInfo(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { |
|
|
|
|
return std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::grpc::reflection::v1alpha::DescriptorDatabaseRequest, ::grpc::reflection::v1alpha::DescriptorDatabaseResponse>>(AsyncDescriptorDatabaseInfoRaw(context, cq, tag)); |
|
|
|
|
} |
|
|
|
|
virtual ::grpc::Status GetAllExtensionNumbers( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::TypeRequest& request, |
|
|
|
|
::grpc::reflection::v1alpha::ExtensionNumberResponse* response) = 0; |
|
|
|
|
std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface< |
|
|
|
|
::grpc::reflection::v1alpha::ExtensionNumberResponse>> |
|
|
|
|
AsyncGetAllExtensionNumbers( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::TypeRequest& request, |
|
|
|
|
::grpc::CompletionQueue* cq) { |
|
|
|
|
return std::unique_ptr<::grpc::ClientAsyncResponseReaderInterface< |
|
|
|
|
::grpc::reflection::v1alpha::ExtensionNumberResponse>>( |
|
|
|
|
AsyncGetAllExtensionNumbersRaw(context, request, cq)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private: |
|
|
|
|
virtual ::grpc::ClientAsyncResponseReaderInterface< |
|
|
|
|
::grpc::reflection::v1alpha::ListServiceResponse>* |
|
|
|
|
AsyncListServiceRaw( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::EmptyRequest& request, |
|
|
|
|
::grpc::CompletionQueue* cq) = 0; |
|
|
|
|
virtual ::grpc::ClientAsyncResponseReaderInterface< |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse>* |
|
|
|
|
AsyncGetFileByNameRaw( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::FileNameRequest& request, |
|
|
|
|
::grpc::CompletionQueue* cq) = 0; |
|
|
|
|
virtual ::grpc::ClientAsyncResponseReaderInterface< |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse>* |
|
|
|
|
AsyncGetFileContainingSymbolRaw( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::SymbolRequest& request, |
|
|
|
|
::grpc::CompletionQueue* cq) = 0; |
|
|
|
|
virtual ::grpc::ClientAsyncResponseReaderInterface< |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse>* |
|
|
|
|
AsyncGetFileContainingExtensionRaw( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::ExtensionRequest& request, |
|
|
|
|
::grpc::CompletionQueue* cq) = 0; |
|
|
|
|
virtual ::grpc::ClientAsyncResponseReaderInterface< |
|
|
|
|
::grpc::reflection::v1alpha::ExtensionNumberResponse>* |
|
|
|
|
AsyncGetAllExtensionNumbersRaw( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::TypeRequest& request, |
|
|
|
|
::grpc::CompletionQueue* cq) = 0; |
|
|
|
|
private: |
|
|
|
|
virtual ::grpc::ClientReaderWriterInterface< ::grpc::reflection::v1alpha::DescriptorDatabaseRequest, ::grpc::reflection::v1alpha::DescriptorDatabaseResponse>* DescriptorDatabaseInfoRaw(::grpc::ClientContext* context) = 0; |
|
|
|
|
virtual ::grpc::ClientAsyncReaderWriterInterface< ::grpc::reflection::v1alpha::DescriptorDatabaseRequest, ::grpc::reflection::v1alpha::DescriptorDatabaseResponse>* AsyncDescriptorDatabaseInfoRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) = 0; |
|
|
|
|
}; |
|
|
|
|
class Stub GRPC_FINAL : public StubInterface { |
|
|
|
|
public: |
|
|
|
|
Stub(const std::shared_ptr<::grpc::ChannelInterface>& channel); |
|
|
|
|
::grpc::Status ListService( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::EmptyRequest& request, |
|
|
|
|
::grpc::reflection::v1alpha::ListServiceResponse* response) |
|
|
|
|
GRPC_OVERRIDE; |
|
|
|
|
std::unique_ptr<::grpc::ClientAsyncResponseReader< |
|
|
|
|
::grpc::reflection::v1alpha::ListServiceResponse>> |
|
|
|
|
AsyncListService(::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::EmptyRequest& request, |
|
|
|
|
::grpc::CompletionQueue* cq) { |
|
|
|
|
return std::unique_ptr<::grpc::ClientAsyncResponseReader< |
|
|
|
|
::grpc::reflection::v1alpha::ListServiceResponse>>( |
|
|
|
|
AsyncListServiceRaw(context, request, cq)); |
|
|
|
|
Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); |
|
|
|
|
std::unique_ptr< ::grpc::ClientReaderWriter< ::grpc::reflection::v1alpha::DescriptorDatabaseRequest, ::grpc::reflection::v1alpha::DescriptorDatabaseResponse>> DescriptorDatabaseInfo(::grpc::ClientContext* context) { |
|
|
|
|
return std::unique_ptr< ::grpc::ClientReaderWriter< ::grpc::reflection::v1alpha::DescriptorDatabaseRequest, ::grpc::reflection::v1alpha::DescriptorDatabaseResponse>>(DescriptorDatabaseInfoRaw(context)); |
|
|
|
|
} |
|
|
|
|
::grpc::Status GetFileByName( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::FileNameRequest& request, |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse* response) |
|
|
|
|
GRPC_OVERRIDE; |
|
|
|
|
std::unique_ptr<::grpc::ClientAsyncResponseReader< |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse>> |
|
|
|
|
AsyncGetFileByName( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::FileNameRequest& request, |
|
|
|
|
::grpc::CompletionQueue* cq) { |
|
|
|
|
return std::unique_ptr<::grpc::ClientAsyncResponseReader< |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse>>( |
|
|
|
|
AsyncGetFileByNameRaw(context, request, cq)); |
|
|
|
|
} |
|
|
|
|
::grpc::Status GetFileContainingSymbol( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::SymbolRequest& request, |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse* response) |
|
|
|
|
GRPC_OVERRIDE; |
|
|
|
|
std::unique_ptr<::grpc::ClientAsyncResponseReader< |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse>> |
|
|
|
|
AsyncGetFileContainingSymbol( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::SymbolRequest& request, |
|
|
|
|
::grpc::CompletionQueue* cq) { |
|
|
|
|
return std::unique_ptr<::grpc::ClientAsyncResponseReader< |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse>>( |
|
|
|
|
AsyncGetFileContainingSymbolRaw(context, request, cq)); |
|
|
|
|
} |
|
|
|
|
::grpc::Status GetFileContainingExtension( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::ExtensionRequest& request, |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse* response) |
|
|
|
|
GRPC_OVERRIDE; |
|
|
|
|
std::unique_ptr<::grpc::ClientAsyncResponseReader< |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse>> |
|
|
|
|
AsyncGetFileContainingExtension( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::ExtensionRequest& request, |
|
|
|
|
::grpc::CompletionQueue* cq) { |
|
|
|
|
return std::unique_ptr<::grpc::ClientAsyncResponseReader< |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse>>( |
|
|
|
|
AsyncGetFileContainingExtensionRaw(context, request, cq)); |
|
|
|
|
} |
|
|
|
|
::grpc::Status GetAllExtensionNumbers( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::TypeRequest& request, |
|
|
|
|
::grpc::reflection::v1alpha::ExtensionNumberResponse* response) |
|
|
|
|
GRPC_OVERRIDE; |
|
|
|
|
std::unique_ptr<::grpc::ClientAsyncResponseReader< |
|
|
|
|
::grpc::reflection::v1alpha::ExtensionNumberResponse>> |
|
|
|
|
AsyncGetAllExtensionNumbers( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::TypeRequest& request, |
|
|
|
|
::grpc::CompletionQueue* cq) { |
|
|
|
|
return std::unique_ptr<::grpc::ClientAsyncResponseReader< |
|
|
|
|
::grpc::reflection::v1alpha::ExtensionNumberResponse>>( |
|
|
|
|
AsyncGetAllExtensionNumbersRaw(context, request, cq)); |
|
|
|
|
std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::grpc::reflection::v1alpha::DescriptorDatabaseRequest, ::grpc::reflection::v1alpha::DescriptorDatabaseResponse>> AsyncDescriptorDatabaseInfo(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { |
|
|
|
|
return std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::grpc::reflection::v1alpha::DescriptorDatabaseRequest, ::grpc::reflection::v1alpha::DescriptorDatabaseResponse>>(AsyncDescriptorDatabaseInfoRaw(context, cq, tag)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private: |
|
|
|
|
std::shared_ptr<::grpc::ChannelInterface> channel_; |
|
|
|
|
::grpc::ClientAsyncResponseReader< |
|
|
|
|
::grpc::reflection::v1alpha::ListServiceResponse>* |
|
|
|
|
AsyncListServiceRaw( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::EmptyRequest& request, |
|
|
|
|
::grpc::CompletionQueue* cq) GRPC_OVERRIDE; |
|
|
|
|
::grpc::ClientAsyncResponseReader< |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse>* |
|
|
|
|
AsyncGetFileByNameRaw( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::FileNameRequest& request, |
|
|
|
|
::grpc::CompletionQueue* cq) GRPC_OVERRIDE; |
|
|
|
|
::grpc::ClientAsyncResponseReader< |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse>* |
|
|
|
|
AsyncGetFileContainingSymbolRaw( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::SymbolRequest& request, |
|
|
|
|
::grpc::CompletionQueue* cq) GRPC_OVERRIDE; |
|
|
|
|
::grpc::ClientAsyncResponseReader< |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse>* |
|
|
|
|
AsyncGetFileContainingExtensionRaw( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::ExtensionRequest& request, |
|
|
|
|
::grpc::CompletionQueue* cq) GRPC_OVERRIDE; |
|
|
|
|
::grpc::ClientAsyncResponseReader< |
|
|
|
|
::grpc::reflection::v1alpha::ExtensionNumberResponse>* |
|
|
|
|
AsyncGetAllExtensionNumbersRaw( |
|
|
|
|
::grpc::ClientContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::TypeRequest& request, |
|
|
|
|
::grpc::CompletionQueue* cq) GRPC_OVERRIDE; |
|
|
|
|
const ::grpc::RpcMethod rpcmethod_ListService_; |
|
|
|
|
const ::grpc::RpcMethod rpcmethod_GetFileByName_; |
|
|
|
|
const ::grpc::RpcMethod rpcmethod_GetFileContainingSymbol_; |
|
|
|
|
const ::grpc::RpcMethod rpcmethod_GetFileContainingExtension_; |
|
|
|
|
const ::grpc::RpcMethod rpcmethod_GetAllExtensionNumbers_; |
|
|
|
|
std::shared_ptr< ::grpc::ChannelInterface> channel_; |
|
|
|
|
::grpc::ClientReaderWriter< ::grpc::reflection::v1alpha::DescriptorDatabaseRequest, ::grpc::reflection::v1alpha::DescriptorDatabaseResponse>* DescriptorDatabaseInfoRaw(::grpc::ClientContext* context) GRPC_OVERRIDE; |
|
|
|
|
::grpc::ClientAsyncReaderWriter< ::grpc::reflection::v1alpha::DescriptorDatabaseRequest, ::grpc::reflection::v1alpha::DescriptorDatabaseResponse>* AsyncDescriptorDatabaseInfoRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) GRPC_OVERRIDE; |
|
|
|
|
const ::grpc::RpcMethod rpcmethod_DescriptorDatabaseInfo_; |
|
|
|
|
}; |
|
|
|
|
static std::unique_ptr<Stub> NewStub( |
|
|
|
|
const std::shared_ptr<::grpc::ChannelInterface>& channel, |
|
|
|
|
const ::grpc::StubOptions& options = ::grpc::StubOptions()); |
|
|
|
|
static std::unique_ptr<Stub> NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); |
|
|
|
|
|
|
|
|
|
class Service : public ::grpc::Service { |
|
|
|
|
public: |
|
|
|
|
Service(); |
|
|
|
|
virtual ~Service(); |
|
|
|
|
virtual ::grpc::Status ListService( |
|
|
|
|
::grpc::ServerContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::EmptyRequest* request, |
|
|
|
|
::grpc::reflection::v1alpha::ListServiceResponse* response); |
|
|
|
|
virtual ::grpc::Status GetFileByName( |
|
|
|
|
::grpc::ServerContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::FileNameRequest* request, |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse* response); |
|
|
|
|
virtual ::grpc::Status GetFileContainingSymbol( |
|
|
|
|
::grpc::ServerContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::SymbolRequest* request, |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse* response); |
|
|
|
|
virtual ::grpc::Status GetFileContainingExtension( |
|
|
|
|
::grpc::ServerContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::ExtensionRequest* request, |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse* response); |
|
|
|
|
virtual ::grpc::Status GetAllExtensionNumbers( |
|
|
|
|
::grpc::ServerContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::TypeRequest* request, |
|
|
|
|
::grpc::reflection::v1alpha::ExtensionNumberResponse* response); |
|
|
|
|
// The reflection service is structured as a bidirectional stream, ensuring
|
|
|
|
|
// all related requests go to a single server.
|
|
|
|
|
virtual ::grpc::Status DescriptorDatabaseInfo(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< ::grpc::reflection::v1alpha::DescriptorDatabaseResponse, ::grpc::reflection::v1alpha::DescriptorDatabaseRequest>* stream); |
|
|
|
|
}; |
|
|
|
|
template <class BaseClass> |
|
|
|
|
class WithAsyncMethod_ListService : public BaseClass { |
|
|
|
|
class WithAsyncMethod_DescriptorDatabaseInfo : public BaseClass { |
|
|
|
|
private: |
|
|
|
|
void BaseClassMustBeDerivedFromService(Service* service) {} |
|
|
|
|
|
|
|
|
|
void BaseClassMustBeDerivedFromService(const Service *service) {} |
|
|
|
|
public: |
|
|
|
|
WithAsyncMethod_ListService() { ::grpc::Service::MarkMethodAsync(0); } |
|
|
|
|
~WithAsyncMethod_ListService() GRPC_OVERRIDE { |
|
|
|
|
BaseClassMustBeDerivedFromService(this); |
|
|
|
|
} |
|
|
|
|
// disable synchronous version of this method
|
|
|
|
|
::grpc::Status ListService( |
|
|
|
|
::grpc::ServerContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::EmptyRequest* request, |
|
|
|
|
::grpc::reflection::v1alpha::ListServiceResponse* response) |
|
|
|
|
GRPC_FINAL GRPC_OVERRIDE { |
|
|
|
|
abort(); |
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
|
|
|
|
WithAsyncMethod_DescriptorDatabaseInfo() { |
|
|
|
|
::grpc::Service::MarkMethodAsync(0); |
|
|
|
|
} |
|
|
|
|
void RequestListService( |
|
|
|
|
::grpc::ServerContext* context, |
|
|
|
|
::grpc::reflection::v1alpha::EmptyRequest* request, |
|
|
|
|
::grpc::ServerAsyncResponseWriter< |
|
|
|
|
::grpc::reflection::v1alpha::ListServiceResponse>* response, |
|
|
|
|
::grpc::CompletionQueue* new_call_cq, |
|
|
|
|
::grpc::ServerCompletionQueue* notification_cq, void* tag) { |
|
|
|
|
::grpc::Service::RequestAsyncUnary(0, context, request, response, |
|
|
|
|
new_call_cq, notification_cq, tag); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
template <class BaseClass> |
|
|
|
|
class WithAsyncMethod_GetFileByName : public BaseClass { |
|
|
|
|
private: |
|
|
|
|
void BaseClassMustBeDerivedFromService(Service* service) {} |
|
|
|
|
|
|
|
|
|
public: |
|
|
|
|
WithAsyncMethod_GetFileByName() { ::grpc::Service::MarkMethodAsync(1); } |
|
|
|
|
~WithAsyncMethod_GetFileByName() GRPC_OVERRIDE { |
|
|
|
|
~WithAsyncMethod_DescriptorDatabaseInfo() GRPC_OVERRIDE { |
|
|
|
|
BaseClassMustBeDerivedFromService(this); |
|
|
|
|
} |
|
|
|
|
// disable synchronous version of this method
|
|
|
|
|
::grpc::Status GetFileByName( |
|
|
|
|
::grpc::ServerContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::FileNameRequest* request, |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse* response) |
|
|
|
|
GRPC_FINAL GRPC_OVERRIDE { |
|
|
|
|
::grpc::Status DescriptorDatabaseInfo(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< ::grpc::reflection::v1alpha::DescriptorDatabaseResponse, ::grpc::reflection::v1alpha::DescriptorDatabaseRequest>* stream) GRPC_FINAL GRPC_OVERRIDE { |
|
|
|
|
abort(); |
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
|
|
|
|
} |
|
|
|
|
void RequestGetFileByName( |
|
|
|
|
::grpc::ServerContext* context, |
|
|
|
|
::grpc::reflection::v1alpha::FileNameRequest* request, |
|
|
|
|
::grpc::ServerAsyncResponseWriter< |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse>* response, |
|
|
|
|
::grpc::CompletionQueue* new_call_cq, |
|
|
|
|
::grpc::ServerCompletionQueue* notification_cq, void* tag) { |
|
|
|
|
::grpc::Service::RequestAsyncUnary(1, context, request, response, |
|
|
|
|
new_call_cq, notification_cq, tag); |
|
|
|
|
void RequestDescriptorDatabaseInfo(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter< ::grpc::reflection::v1alpha::DescriptorDatabaseResponse, ::grpc::reflection::v1alpha::DescriptorDatabaseRequest>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { |
|
|
|
|
::grpc::Service::RequestAsyncBidiStreaming(0, context, stream, new_call_cq, notification_cq, tag); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
typedef WithAsyncMethod_DescriptorDatabaseInfo<Service > AsyncService; |
|
|
|
|
template <class BaseClass> |
|
|
|
|
class WithAsyncMethod_GetFileContainingSymbol : public BaseClass { |
|
|
|
|
class WithGenericMethod_DescriptorDatabaseInfo : public BaseClass { |
|
|
|
|
private: |
|
|
|
|
void BaseClassMustBeDerivedFromService(Service* service) {} |
|
|
|
|
|
|
|
|
|
void BaseClassMustBeDerivedFromService(const Service *service) {} |
|
|
|
|
public: |
|
|
|
|
WithAsyncMethod_GetFileContainingSymbol() { |
|
|
|
|
::grpc::Service::MarkMethodAsync(2); |
|
|
|
|
WithGenericMethod_DescriptorDatabaseInfo() { |
|
|
|
|
::grpc::Service::MarkMethodGeneric(0); |
|
|
|
|
} |
|
|
|
|
~WithAsyncMethod_GetFileContainingSymbol() GRPC_OVERRIDE { |
|
|
|
|
~WithGenericMethod_DescriptorDatabaseInfo() GRPC_OVERRIDE { |
|
|
|
|
BaseClassMustBeDerivedFromService(this); |
|
|
|
|
} |
|
|
|
|
// disable synchronous version of this method
|
|
|
|
|
::grpc::Status GetFileContainingSymbol( |
|
|
|
|
::grpc::ServerContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::SymbolRequest* request, |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse* response) |
|
|
|
|
GRPC_FINAL GRPC_OVERRIDE { |
|
|
|
|
abort(); |
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
|
|
|
|
} |
|
|
|
|
void RequestGetFileContainingSymbol( |
|
|
|
|
::grpc::ServerContext* context, |
|
|
|
|
::grpc::reflection::v1alpha::SymbolRequest* request, |
|
|
|
|
::grpc::ServerAsyncResponseWriter< |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse>* response, |
|
|
|
|
::grpc::CompletionQueue* new_call_cq, |
|
|
|
|
::grpc::ServerCompletionQueue* notification_cq, void* tag) { |
|
|
|
|
::grpc::Service::RequestAsyncUnary(2, context, request, response, |
|
|
|
|
new_call_cq, notification_cq, tag); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
template <class BaseClass> |
|
|
|
|
class WithAsyncMethod_GetFileContainingExtension : public BaseClass { |
|
|
|
|
private: |
|
|
|
|
void BaseClassMustBeDerivedFromService(Service* service) {} |
|
|
|
|
|
|
|
|
|
public: |
|
|
|
|
WithAsyncMethod_GetFileContainingExtension() { |
|
|
|
|
::grpc::Service::MarkMethodAsync(3); |
|
|
|
|
} |
|
|
|
|
~WithAsyncMethod_GetFileContainingExtension() GRPC_OVERRIDE { |
|
|
|
|
BaseClassMustBeDerivedFromService(this); |
|
|
|
|
} |
|
|
|
|
// disable synchronous version of this method
|
|
|
|
|
::grpc::Status GetFileContainingExtension( |
|
|
|
|
::grpc::ServerContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::ExtensionRequest* request, |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse* response) |
|
|
|
|
GRPC_FINAL GRPC_OVERRIDE { |
|
|
|
|
abort(); |
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
|
|
|
|
} |
|
|
|
|
void RequestGetFileContainingExtension( |
|
|
|
|
::grpc::ServerContext* context, |
|
|
|
|
::grpc::reflection::v1alpha::ExtensionRequest* request, |
|
|
|
|
::grpc::ServerAsyncResponseWriter< |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse>* response, |
|
|
|
|
::grpc::CompletionQueue* new_call_cq, |
|
|
|
|
::grpc::ServerCompletionQueue* notification_cq, void* tag) { |
|
|
|
|
::grpc::Service::RequestAsyncUnary(3, context, request, response, |
|
|
|
|
new_call_cq, notification_cq, tag); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
template <class BaseClass> |
|
|
|
|
class WithAsyncMethod_GetAllExtensionNumbers : public BaseClass { |
|
|
|
|
private: |
|
|
|
|
void BaseClassMustBeDerivedFromService(Service* service) {} |
|
|
|
|
|
|
|
|
|
public: |
|
|
|
|
WithAsyncMethod_GetAllExtensionNumbers() { |
|
|
|
|
::grpc::Service::MarkMethodAsync(4); |
|
|
|
|
} |
|
|
|
|
~WithAsyncMethod_GetAllExtensionNumbers() GRPC_OVERRIDE { |
|
|
|
|
BaseClassMustBeDerivedFromService(this); |
|
|
|
|
} |
|
|
|
|
// disable synchronous version of this method
|
|
|
|
|
::grpc::Status GetAllExtensionNumbers( |
|
|
|
|
::grpc::ServerContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::TypeRequest* request, |
|
|
|
|
::grpc::reflection::v1alpha::ExtensionNumberResponse* response) |
|
|
|
|
GRPC_FINAL GRPC_OVERRIDE { |
|
|
|
|
abort(); |
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
|
|
|
|
} |
|
|
|
|
void RequestGetAllExtensionNumbers( |
|
|
|
|
::grpc::ServerContext* context, |
|
|
|
|
::grpc::reflection::v1alpha::TypeRequest* request, |
|
|
|
|
::grpc::ServerAsyncResponseWriter< |
|
|
|
|
::grpc::reflection::v1alpha::ExtensionNumberResponse>* response, |
|
|
|
|
::grpc::CompletionQueue* new_call_cq, |
|
|
|
|
::grpc::ServerCompletionQueue* notification_cq, void* tag) { |
|
|
|
|
::grpc::Service::RequestAsyncUnary(4, context, request, response, |
|
|
|
|
new_call_cq, notification_cq, tag); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
typedef WithAsyncMethod_ListService< |
|
|
|
|
WithAsyncMethod_GetFileByName<WithAsyncMethod_GetFileContainingSymbol< |
|
|
|
|
WithAsyncMethod_GetFileContainingExtension< |
|
|
|
|
WithAsyncMethod_GetAllExtensionNumbers<Service>>>>> |
|
|
|
|
AsyncService; |
|
|
|
|
template <class BaseClass> |
|
|
|
|
class WithGenericMethod_ListService : public BaseClass { |
|
|
|
|
private: |
|
|
|
|
void BaseClassMustBeDerivedFromService(Service* service) {} |
|
|
|
|
|
|
|
|
|
public: |
|
|
|
|
WithGenericMethod_ListService() { ::grpc::Service::MarkMethodGeneric(0); } |
|
|
|
|
~WithGenericMethod_ListService() GRPC_OVERRIDE { |
|
|
|
|
BaseClassMustBeDerivedFromService(this); |
|
|
|
|
} |
|
|
|
|
// disable synchronous version of this method
|
|
|
|
|
::grpc::Status ListService( |
|
|
|
|
::grpc::ServerContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::EmptyRequest* request, |
|
|
|
|
::grpc::reflection::v1alpha::ListServiceResponse* response) |
|
|
|
|
GRPC_FINAL GRPC_OVERRIDE { |
|
|
|
|
abort(); |
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
template <class BaseClass> |
|
|
|
|
class WithGenericMethod_GetFileByName : public BaseClass { |
|
|
|
|
private: |
|
|
|
|
void BaseClassMustBeDerivedFromService(Service* service) {} |
|
|
|
|
|
|
|
|
|
public: |
|
|
|
|
WithGenericMethod_GetFileByName() { ::grpc::Service::MarkMethodGeneric(1); } |
|
|
|
|
~WithGenericMethod_GetFileByName() GRPC_OVERRIDE { |
|
|
|
|
BaseClassMustBeDerivedFromService(this); |
|
|
|
|
} |
|
|
|
|
// disable synchronous version of this method
|
|
|
|
|
::grpc::Status GetFileByName( |
|
|
|
|
::grpc::ServerContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::FileNameRequest* request, |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse* response) |
|
|
|
|
GRPC_FINAL GRPC_OVERRIDE { |
|
|
|
|
abort(); |
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
template <class BaseClass> |
|
|
|
|
class WithGenericMethod_GetFileContainingSymbol : public BaseClass { |
|
|
|
|
private: |
|
|
|
|
void BaseClassMustBeDerivedFromService(Service* service) {} |
|
|
|
|
|
|
|
|
|
public: |
|
|
|
|
WithGenericMethod_GetFileContainingSymbol() { |
|
|
|
|
::grpc::Service::MarkMethodGeneric(2); |
|
|
|
|
} |
|
|
|
|
~WithGenericMethod_GetFileContainingSymbol() GRPC_OVERRIDE { |
|
|
|
|
BaseClassMustBeDerivedFromService(this); |
|
|
|
|
} |
|
|
|
|
// disable synchronous version of this method
|
|
|
|
|
::grpc::Status GetFileContainingSymbol( |
|
|
|
|
::grpc::ServerContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::SymbolRequest* request, |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse* response) |
|
|
|
|
GRPC_FINAL GRPC_OVERRIDE { |
|
|
|
|
abort(); |
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
template <class BaseClass> |
|
|
|
|
class WithGenericMethod_GetFileContainingExtension : public BaseClass { |
|
|
|
|
private: |
|
|
|
|
void BaseClassMustBeDerivedFromService(Service* service) {} |
|
|
|
|
|
|
|
|
|
public: |
|
|
|
|
WithGenericMethod_GetFileContainingExtension() { |
|
|
|
|
::grpc::Service::MarkMethodGeneric(3); |
|
|
|
|
} |
|
|
|
|
~WithGenericMethod_GetFileContainingExtension() GRPC_OVERRIDE { |
|
|
|
|
BaseClassMustBeDerivedFromService(this); |
|
|
|
|
} |
|
|
|
|
// disable synchronous version of this method
|
|
|
|
|
::grpc::Status GetFileContainingExtension( |
|
|
|
|
::grpc::ServerContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::ExtensionRequest* request, |
|
|
|
|
::grpc::reflection::v1alpha::FileDescriptorProtoResponse* response) |
|
|
|
|
GRPC_FINAL GRPC_OVERRIDE { |
|
|
|
|
abort(); |
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
template <class BaseClass> |
|
|
|
|
class WithGenericMethod_GetAllExtensionNumbers : public BaseClass { |
|
|
|
|
private: |
|
|
|
|
void BaseClassMustBeDerivedFromService(Service* service) {} |
|
|
|
|
|
|
|
|
|
public: |
|
|
|
|
WithGenericMethod_GetAllExtensionNumbers() { |
|
|
|
|
::grpc::Service::MarkMethodGeneric(4); |
|
|
|
|
} |
|
|
|
|
~WithGenericMethod_GetAllExtensionNumbers() GRPC_OVERRIDE { |
|
|
|
|
BaseClassMustBeDerivedFromService(this); |
|
|
|
|
} |
|
|
|
|
// disable synchronous version of this method
|
|
|
|
|
::grpc::Status GetAllExtensionNumbers( |
|
|
|
|
::grpc::ServerContext* context, |
|
|
|
|
const ::grpc::reflection::v1alpha::TypeRequest* request, |
|
|
|
|
::grpc::reflection::v1alpha::ExtensionNumberResponse* response) |
|
|
|
|
GRPC_FINAL GRPC_OVERRIDE { |
|
|
|
|
::grpc::Status DescriptorDatabaseInfo(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< ::grpc::reflection::v1alpha::DescriptorDatabaseResponse, ::grpc::reflection::v1alpha::DescriptorDatabaseRequest>* stream) GRPC_FINAL GRPC_OVERRIDE { |
|
|
|
|
abort(); |
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); |
|
|
|
|
} |
|
|
|
@ -552,4 +180,5 @@ class ServerReflection GRPC_FINAL { |
|
|
|
|
} // namespace reflection
|
|
|
|
|
} // namespace grpc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // GRPC_reflection_2eproto__INCLUDED
|
|
|
|
|