diff --git a/inventory/v1/autogen.md b/inventory/v1/autogen.md index 13a786e7..acc623dc 100644 --- a/inventory/v1/autogen.md +++ b/inventory/v1/autogen.md @@ -14,7 +14,7 @@ - [PCIeDeviceInfo](#opi_api-inventory-v1-PCIeDeviceInfo) - [SystemInfo](#opi_api-inventory-v1-SystemInfo) - - [InventorySvc](#opi_api-inventory-v1-InventorySvc) + - [InventoryService](#opi_api-inventory-v1-InventoryService) - [Scalar Value Types](#scalar-value-types) @@ -219,9 +219,9 @@ System Information (Type 1) - + -### InventorySvc +### InventoryService Service functions for the device inventory data | Method Name | Request Type | Response Type | Description | diff --git a/inventory/v1/gen/cpp/inventory.grpc.pb.cc b/inventory/v1/gen/cpp/inventory.grpc.pb.cc index b23db137..7c084636 100644 --- a/inventory/v1/gen/cpp/inventory.grpc.pb.cc +++ b/inventory/v1/gen/cpp/inventory.grpc.pb.cc @@ -23,49 +23,49 @@ namespace opi_api { namespace inventory { namespace v1 { -static const char* InventorySvc_method_names[] = { - "/opi_api.inventory.v1.InventorySvc/GetInventory", +static const char* InventoryService_method_names[] = { + "/opi_api.inventory.v1.InventoryService/GetInventory", }; -std::unique_ptr< InventorySvc::Stub> InventorySvc::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { +std::unique_ptr< InventoryService::Stub> InventoryService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { (void)options; - std::unique_ptr< InventorySvc::Stub> stub(new InventorySvc::Stub(channel, options)); + std::unique_ptr< InventoryService::Stub> stub(new InventoryService::Stub(channel, options)); return stub; } -InventorySvc::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_GetInventory_(InventorySvc_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) +InventoryService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_GetInventory_(InventoryService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} -::grpc::Status InventorySvc::Stub::GetInventory(::grpc::ClientContext* context, const ::opi_api::inventory::v1::GetInventoryRequest& request, ::opi_api::inventory::v1::Inventory* response) { +::grpc::Status InventoryService::Stub::GetInventory(::grpc::ClientContext* context, const ::opi_api::inventory::v1::GetInventoryRequest& request, ::opi_api::inventory::v1::Inventory* response) { return ::grpc::internal::BlockingUnaryCall< ::opi_api::inventory::v1::GetInventoryRequest, ::opi_api::inventory::v1::Inventory, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetInventory_, context, request, response); } -void InventorySvc::Stub::async::GetInventory(::grpc::ClientContext* context, const ::opi_api::inventory::v1::GetInventoryRequest* request, ::opi_api::inventory::v1::Inventory* response, std::function f) { +void InventoryService::Stub::async::GetInventory(::grpc::ClientContext* context, const ::opi_api::inventory::v1::GetInventoryRequest* request, ::opi_api::inventory::v1::Inventory* response, std::function f) { ::grpc::internal::CallbackUnaryCall< ::opi_api::inventory::v1::GetInventoryRequest, ::opi_api::inventory::v1::Inventory, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetInventory_, context, request, response, std::move(f)); } -void InventorySvc::Stub::async::GetInventory(::grpc::ClientContext* context, const ::opi_api::inventory::v1::GetInventoryRequest* request, ::opi_api::inventory::v1::Inventory* response, ::grpc::ClientUnaryReactor* reactor) { +void InventoryService::Stub::async::GetInventory(::grpc::ClientContext* context, const ::opi_api::inventory::v1::GetInventoryRequest* request, ::opi_api::inventory::v1::Inventory* response, ::grpc::ClientUnaryReactor* reactor) { ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetInventory_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::opi_api::inventory::v1::Inventory>* InventorySvc::Stub::PrepareAsyncGetInventoryRaw(::grpc::ClientContext* context, const ::opi_api::inventory::v1::GetInventoryRequest& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::opi_api::inventory::v1::Inventory>* InventoryService::Stub::PrepareAsyncGetInventoryRaw(::grpc::ClientContext* context, const ::opi_api::inventory::v1::GetInventoryRequest& request, ::grpc::CompletionQueue* cq) { return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::opi_api::inventory::v1::Inventory, ::opi_api::inventory::v1::GetInventoryRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetInventory_, context, request); } -::grpc::ClientAsyncResponseReader< ::opi_api::inventory::v1::Inventory>* InventorySvc::Stub::AsyncGetInventoryRaw(::grpc::ClientContext* context, const ::opi_api::inventory::v1::GetInventoryRequest& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::opi_api::inventory::v1::Inventory>* InventoryService::Stub::AsyncGetInventoryRaw(::grpc::ClientContext* context, const ::opi_api::inventory::v1::GetInventoryRequest& request, ::grpc::CompletionQueue* cq) { auto* result = this->PrepareAsyncGetInventoryRaw(context, request, cq); result->StartCall(); return result; } -InventorySvc::Service::Service() { +InventoryService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( - InventorySvc_method_names[0], + InventoryService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< InventorySvc::Service, ::opi_api::inventory::v1::GetInventoryRequest, ::opi_api::inventory::v1::Inventory, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](InventorySvc::Service* service, + new ::grpc::internal::RpcMethodHandler< InventoryService::Service, ::opi_api::inventory::v1::GetInventoryRequest, ::opi_api::inventory::v1::Inventory, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](InventoryService::Service* service, ::grpc::ServerContext* ctx, const ::opi_api::inventory::v1::GetInventoryRequest* req, ::opi_api::inventory::v1::Inventory* resp) { @@ -73,10 +73,10 @@ InventorySvc::Service::Service() { }, this))); } -InventorySvc::Service::~Service() { +InventoryService::Service::~Service() { } -::grpc::Status InventorySvc::Service::GetInventory(::grpc::ServerContext* context, const ::opi_api::inventory::v1::GetInventoryRequest* request, ::opi_api::inventory::v1::Inventory* response) { +::grpc::Status InventoryService::Service::GetInventory(::grpc::ServerContext* context, const ::opi_api::inventory::v1::GetInventoryRequest* request, ::opi_api::inventory::v1::Inventory* response) { (void) context; (void) request; (void) response; diff --git a/inventory/v1/gen/cpp/inventory.grpc.pb.h b/inventory/v1/gen/cpp/inventory.grpc.pb.h index 8d1e4c03..8de0ce29 100644 --- a/inventory/v1/gen/cpp/inventory.grpc.pb.h +++ b/inventory/v1/gen/cpp/inventory.grpc.pb.h @@ -42,10 +42,10 @@ namespace inventory { namespace v1 { // Service functions for the device inventory data -class InventorySvc final { +class InventoryService final { public: static constexpr char const* service_full_name() { - return "opi_api.inventory.v1.InventorySvc"; + return "opi_api.inventory.v1.InventoryService"; } class StubInterface { public: diff --git a/inventory/v1/gen/cpp/inventory.pb.cc b/inventory/v1/gen/cpp/inventory.pb.cc index 95f75732..1d8a82ae 100644 --- a/inventory/v1/gen/cpp/inventory.pb.cc +++ b/inventory/v1/gen/cpp/inventory.pb.cc @@ -333,14 +333,14 @@ const char descriptor_table_protodef_inventory_2eproto[] PROTOBUF_SECTION_VARIAB "\tprocessor\030\005 \001(\0132\035.opi_api.inventory.v1." "CPUInfo\0220\n\006memory\030\006 \001(\0132 .opi_api.invent" "ory.v1.MemoryInfo\0221\n\003pci\030\007 \003(\0132$.opi_api" - ".inventory.v1.PCIeDeviceInfo2\236\001\n\014Invento" - "rySvc\022\215\001\n\014GetInventory\022).opi_api.invento" - "ry.v1.GetInventoryRequest\032\037.opi_api.inve" - "ntory.v1.Inventory\"1\202\323\344\223\002$\022\"/v1/{name=in" - "ventory/*/inventory/*}\332A\004nameB[\n\024opi_api" - ".inventory.v1B\016InventoryProtoP\001Z1github." - "com/opiproject/opi-api/inventory/v1/gen/" - "gob\006proto3" + ".inventory.v1.PCIeDeviceInfo2\242\001\n\020Invento" + "ryService\022\215\001\n\014GetInventory\022).opi_api.inv" + "entory.v1.GetInventoryRequest\032\037.opi_api." + "inventory.v1.Inventory\"1\202\323\344\223\002$\022\"/v1/{nam" + "e=inventory/*/inventory/*}\332A\004nameB[\n\024opi" + "_api.inventory.v1B\016InventoryProtoP\001Z1git" + "hub.com/opiproject/opi-api/inventory/v1/" + "gen/gob\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_inventory_2eproto_deps[4] = { &::descriptor_table_google_2fapi_2fannotations_2eproto, @@ -350,7 +350,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_inventory_2eproto_d }; static ::_pbi::once_flag descriptor_table_inventory_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_inventory_2eproto = { - false, false, 1570, descriptor_table_protodef_inventory_2eproto, + false, false, 1574, descriptor_table_protodef_inventory_2eproto, "inventory.proto", &descriptor_table_inventory_2eproto_once, descriptor_table_inventory_2eproto_deps, 4, 9, schemas, file_default_instances, TableStruct_inventory_2eproto::offsets, diff --git a/inventory/v1/gen/go/inventory.pb.go b/inventory/v1/gen/go/inventory.pb.go index 412e3e9c..d5195b11 100644 --- a/inventory/v1/gen/go/inventory.pb.go +++ b/inventory/v1/gen/go/inventory.pb.go @@ -939,23 +939,24 @@ var file_inventory_proto_rawDesc = []byte{ 0x36, 0x0a, 0x03, 0x70, 0x63, 0x69, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x43, 0x49, 0x65, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x6e, - 0x66, 0x6f, 0x52, 0x03, 0x70, 0x63, 0x69, 0x32, 0x9e, 0x01, 0x0a, 0x0c, 0x49, 0x6e, 0x76, 0x65, - 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x76, 0x63, 0x12, 0x8d, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x74, - 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x29, 0x2e, 0x6f, 0x70, 0x69, 0x5f, - 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x69, - 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x76, 0x65, - 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, - 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, - 0x72, 0x79, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x2a, - 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x5b, 0x0a, 0x14, 0x6f, 0x70, 0x69, 0x5f, - 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x42, 0x0e, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, - 0x70, 0x69, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x6f, 0x70, 0x69, 0x2d, 0x61, 0x70, - 0x69, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x67, - 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x66, 0x6f, 0x52, 0x03, 0x70, 0x63, 0x69, 0x32, 0xa2, 0x01, 0x0a, 0x10, 0x49, 0x6e, 0x76, 0x65, + 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x8d, 0x01, 0x0a, + 0x0c, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x29, 0x2e, + 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, + 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6f, 0x70, 0x69, 0x5f, 0x61, + 0x70, 0x69, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, + 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x24, 0x12, 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x76, + 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, + 0x72, 0x79, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x5b, 0x0a, 0x14, + 0x6f, 0x70, 0x69, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x42, 0x0e, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x69, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x6f, 0x70, + 0x69, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, + 0x76, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( @@ -990,8 +991,8 @@ var file_inventory_proto_depIdxs = []int32{ 4, // 4: opi_api.inventory.v1.Inventory.processor:type_name -> opi_api.inventory.v1.CPUInfo 5, // 5: opi_api.inventory.v1.Inventory.memory:type_name -> opi_api.inventory.v1.MemoryInfo 6, // 6: opi_api.inventory.v1.Inventory.pci:type_name -> opi_api.inventory.v1.PCIeDeviceInfo - 7, // 7: opi_api.inventory.v1.InventorySvc.GetInventory:input_type -> opi_api.inventory.v1.GetInventoryRequest - 8, // 8: opi_api.inventory.v1.InventorySvc.GetInventory:output_type -> opi_api.inventory.v1.Inventory + 7, // 7: opi_api.inventory.v1.InventoryService.GetInventory:input_type -> opi_api.inventory.v1.GetInventoryRequest + 8, // 8: opi_api.inventory.v1.InventoryService.GetInventory:output_type -> opi_api.inventory.v1.Inventory 8, // [8:9] is the sub-list for method output_type 7, // [7:8] is the sub-list for method input_type 7, // [7:7] is the sub-list for extension type_name diff --git a/inventory/v1/gen/go/inventory.pb.gw.go b/inventory/v1/gen/go/inventory.pb.gw.go index a4b08c88..fcfbeada 100644 --- a/inventory/v1/gen/go/inventory.pb.gw.go +++ b/inventory/v1/gen/go/inventory.pb.gw.go @@ -31,7 +31,7 @@ var _ = runtime.String var _ = utilities.NewDoubleArray var _ = metadata.Join -func request_InventorySvc_GetInventory_0(ctx context.Context, marshaler runtime.Marshaler, client InventorySvcClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { +func request_InventoryService_GetInventory_0(ctx context.Context, marshaler runtime.Marshaler, client InventoryServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq GetInventoryRequest var metadata runtime.ServerMetadata @@ -57,7 +57,7 @@ func request_InventorySvc_GetInventory_0(ctx context.Context, marshaler runtime. } -func local_request_InventorySvc_GetInventory_0(ctx context.Context, marshaler runtime.Marshaler, server InventorySvcServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { +func local_request_InventoryService_GetInventory_0(ctx context.Context, marshaler runtime.Marshaler, server InventoryServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq GetInventoryRequest var metadata runtime.ServerMetadata @@ -83,24 +83,24 @@ func local_request_InventorySvc_GetInventory_0(ctx context.Context, marshaler ru } -// RegisterInventorySvcHandlerServer registers the http handlers for service InventorySvc to "mux". -// UnaryRPC :call InventorySvcServer directly. +// RegisterInventoryServiceHandlerServer registers the http handlers for service InventoryService to "mux". +// UnaryRPC :call InventoryServiceServer 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 RegisterInventorySvcHandlerFromEndpoint instead. -func RegisterInventorySvcHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InventorySvcServer) error { +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterInventoryServiceHandlerFromEndpoint instead. +func RegisterInventoryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InventoryServiceServer) error { - mux.Handle("GET", pattern_InventorySvc_GetInventory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_InventoryService_GetInventory_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) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.inventory.v1.InventorySvc/GetInventory") + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/opi_api.inventory.v1.InventoryService/GetInventory") if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_InventorySvc_GetInventory_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_InventoryService_GetInventory_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -108,16 +108,16 @@ func RegisterInventorySvcHandlerServer(ctx context.Context, mux *runtime.ServeMu return } - forward_InventorySvc_GetInventory_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_InventoryService_GetInventory_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) return nil } -// RegisterInventorySvcHandlerFromEndpoint is same as RegisterInventorySvcHandler but +// RegisterInventoryServiceHandlerFromEndpoint is same as RegisterInventoryServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterInventorySvcHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { +func RegisterInventoryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { conn, err := grpc.Dial(endpoint, opts...) if err != nil { return err @@ -137,39 +137,39 @@ func RegisterInventorySvcHandlerFromEndpoint(ctx context.Context, mux *runtime.S }() }() - return RegisterInventorySvcHandler(ctx, mux, conn) + return RegisterInventoryServiceHandler(ctx, mux, conn) } -// RegisterInventorySvcHandler registers the http handlers for service InventorySvc to "mux". +// RegisterInventoryServiceHandler registers the http handlers for service InventoryService to "mux". // The handlers forward requests to the grpc endpoint over "conn". -func RegisterInventorySvcHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterInventorySvcHandlerClient(ctx, mux, NewInventorySvcClient(conn)) +func RegisterInventoryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterInventoryServiceHandlerClient(ctx, mux, NewInventoryServiceClient(conn)) } -// RegisterInventorySvcHandlerClient registers the http handlers for service InventorySvc -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "InventorySvcClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "InventorySvcClient" +// RegisterInventoryServiceHandlerClient registers the http handlers for service InventoryService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "InventoryServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "InventoryServiceClient" // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "InventorySvcClient" to call the correct interceptors. -func RegisterInventorySvcHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InventorySvcClient) error { +// "InventoryServiceClient" to call the correct interceptors. +func RegisterInventoryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InventoryServiceClient) error { - mux.Handle("GET", pattern_InventorySvc_GetInventory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_InventoryService_GetInventory_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) - rctx, err := runtime.AnnotateContext(ctx, mux, req, "/opi_api.inventory.v1.InventorySvc/GetInventory") + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/opi_api.inventory.v1.InventoryService/GetInventory") if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_InventorySvc_GetInventory_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_InventoryService_GetInventory_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_InventorySvc_GetInventory_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_InventoryService_GetInventory_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -177,9 +177,9 @@ func RegisterInventorySvcHandlerClient(ctx context.Context, mux *runtime.ServeMu } var ( - pattern_InventorySvc_GetInventory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 1, 1, 0, 4, 4, 5, 2}, []string{"v1", "inventory", "name"}, "")) + pattern_InventoryService_GetInventory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 1, 1, 0, 4, 4, 5, 2}, []string{"v1", "inventory", "name"}, "")) ) var ( - forward_InventorySvc_GetInventory_0 = runtime.ForwardResponseMessage + forward_InventoryService_GetInventory_0 = runtime.ForwardResponseMessage ) diff --git a/inventory/v1/gen/go/inventory.swagger.json b/inventory/v1/gen/go/inventory.swagger.json index 59762b41..69e6aee2 100644 --- a/inventory/v1/gen/go/inventory.swagger.json +++ b/inventory/v1/gen/go/inventory.swagger.json @@ -14,7 +14,7 @@ "/v1/{name=inventory/*/inventory/*}": { "get": { "summary": "retrieves the inventory data for the device", - "operationId": "InventorySvc_GetInventory", + "operationId": "InventoryService_GetInventory", "responses": { "200": { "description": "A successful response.", @@ -39,7 +39,7 @@ } ], "tags": [ - "InventorySvc" + "InventoryService" ] } } diff --git a/inventory/v1/gen/go/inventory_grpc.pb.go b/inventory/v1/gen/go/inventory_grpc.pb.go index 4b7936a8..8242885b 100644 --- a/inventory/v1/gen/go/inventory_grpc.pb.go +++ b/inventory/v1/gen/go/inventory_grpc.pb.go @@ -18,86 +18,86 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 -// InventorySvcClient is the client API for InventorySvc service. +// InventoryServiceClient is the client API for InventoryService 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. -type InventorySvcClient interface { +type InventoryServiceClient interface { // retrieves the inventory data for the device GetInventory(ctx context.Context, in *GetInventoryRequest, opts ...grpc.CallOption) (*Inventory, error) } -type inventorySvcClient struct { +type inventoryServiceClient struct { cc grpc.ClientConnInterface } -func NewInventorySvcClient(cc grpc.ClientConnInterface) InventorySvcClient { - return &inventorySvcClient{cc} +func NewInventoryServiceClient(cc grpc.ClientConnInterface) InventoryServiceClient { + return &inventoryServiceClient{cc} } -func (c *inventorySvcClient) GetInventory(ctx context.Context, in *GetInventoryRequest, opts ...grpc.CallOption) (*Inventory, error) { +func (c *inventoryServiceClient) GetInventory(ctx context.Context, in *GetInventoryRequest, opts ...grpc.CallOption) (*Inventory, error) { out := new(Inventory) - err := c.cc.Invoke(ctx, "/opi_api.inventory.v1.InventorySvc/GetInventory", in, out, opts...) + err := c.cc.Invoke(ctx, "/opi_api.inventory.v1.InventoryService/GetInventory", in, out, opts...) if err != nil { return nil, err } return out, nil } -// InventorySvcServer is the server API for InventorySvc service. -// All implementations should embed UnimplementedInventorySvcServer +// InventoryServiceServer is the server API for InventoryService service. +// All implementations should embed UnimplementedInventoryServiceServer // for forward compatibility -type InventorySvcServer interface { +type InventoryServiceServer interface { // retrieves the inventory data for the device GetInventory(context.Context, *GetInventoryRequest) (*Inventory, error) } -// UnimplementedInventorySvcServer should be embedded to have forward compatible implementations. -type UnimplementedInventorySvcServer struct { +// UnimplementedInventoryServiceServer should be embedded to have forward compatible implementations. +type UnimplementedInventoryServiceServer struct { } -func (UnimplementedInventorySvcServer) GetInventory(context.Context, *GetInventoryRequest) (*Inventory, error) { +func (UnimplementedInventoryServiceServer) GetInventory(context.Context, *GetInventoryRequest) (*Inventory, error) { return nil, status.Errorf(codes.Unimplemented, "method GetInventory not implemented") } -// UnsafeInventorySvcServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to InventorySvcServer will +// UnsafeInventoryServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to InventoryServiceServer will // result in compilation errors. -type UnsafeInventorySvcServer interface { - mustEmbedUnimplementedInventorySvcServer() +type UnsafeInventoryServiceServer interface { + mustEmbedUnimplementedInventoryServiceServer() } -func RegisterInventorySvcServer(s grpc.ServiceRegistrar, srv InventorySvcServer) { - s.RegisterService(&InventorySvc_ServiceDesc, srv) +func RegisterInventoryServiceServer(s grpc.ServiceRegistrar, srv InventoryServiceServer) { + s.RegisterService(&InventoryService_ServiceDesc, srv) } -func _InventorySvc_GetInventory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _InventoryService_GetInventory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetInventoryRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(InventorySvcServer).GetInventory(ctx, in) + return srv.(InventoryServiceServer).GetInventory(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/opi_api.inventory.v1.InventorySvc/GetInventory", + FullMethod: "/opi_api.inventory.v1.InventoryService/GetInventory", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InventorySvcServer).GetInventory(ctx, req.(*GetInventoryRequest)) + return srv.(InventoryServiceServer).GetInventory(ctx, req.(*GetInventoryRequest)) } return interceptor(ctx, in, info, handler) } -// InventorySvc_ServiceDesc is the grpc.ServiceDesc for InventorySvc service. +// InventoryService_ServiceDesc is the grpc.ServiceDesc for InventoryService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) -var InventorySvc_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "opi_api.inventory.v1.InventorySvc", - HandlerType: (*InventorySvcServer)(nil), +var InventoryService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "opi_api.inventory.v1.InventoryService", + HandlerType: (*InventoryServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetInventory", - Handler: _InventorySvc_GetInventory_Handler, + Handler: _InventoryService_GetInventory_Handler, }, }, Streams: []grpc.StreamDesc{}, diff --git a/inventory/v1/gen/java/opi_api/inventory/v1/InventoryProto.java b/inventory/v1/gen/java/opi_api/inventory/v1/InventoryProto.java index 4952920d..caeb7940 100644 --- a/inventory/v1/gen/java/opi_api/inventory/v1/InventoryProto.java +++ b/inventory/v1/gen/java/opi_api/inventory/v1/InventoryProto.java @@ -100,14 +100,14 @@ public static void registerAllExtensions( "\tprocessor\030\005 \001(\0132\035.opi_api.inventory.v1." + "CPUInfo\0220\n\006memory\030\006 \001(\0132 .opi_api.invent" + "ory.v1.MemoryInfo\0221\n\003pci\030\007 \003(\0132$.opi_api" + - ".inventory.v1.PCIeDeviceInfo2\236\001\n\014Invento" + - "rySvc\022\215\001\n\014GetInventory\022).opi_api.invento" + - "ry.v1.GetInventoryRequest\032\037.opi_api.inve" + - "ntory.v1.Inventory\"1\202\323\344\223\002$\022\"/v1/{name=in" + - "ventory/*/inventory/*}\332A\004nameB[\n\024opi_api" + - ".inventory.v1B\016InventoryProtoP\001Z1github." + - "com/opiproject/opi-api/inventory/v1/gen/" + - "gob\006proto3" + ".inventory.v1.PCIeDeviceInfo2\242\001\n\020Invento" + + "ryService\022\215\001\n\014GetInventory\022).opi_api.inv" + + "entory.v1.GetInventoryRequest\032\037.opi_api." + + "inventory.v1.Inventory\"1\202\323\344\223\002$\022\"/v1/{nam" + + "e=inventory/*/inventory/*}\332A\004nameB[\n\024opi" + + "_api.inventory.v1B\016InventoryProtoP\001Z1git" + + "hub.com/opiproject/opi-api/inventory/v1/" + + "gen/gob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/inventory/v1/gen/java/opi_api/inventory/v1/InventorySvcGrpc.java b/inventory/v1/gen/java/opi_api/inventory/v1/InventoryServiceGrpc.java similarity index 68% rename from inventory/v1/gen/java/opi_api/inventory/v1/InventorySvcGrpc.java rename to inventory/v1/gen/java/opi_api/inventory/v1/InventoryServiceGrpc.java index 0a360c01..a2678741 100644 --- a/inventory/v1/gen/java/opi_api/inventory/v1/InventorySvcGrpc.java +++ b/inventory/v1/gen/java/opi_api/inventory/v1/InventoryServiceGrpc.java @@ -11,11 +11,11 @@ value = "by gRPC proto compiler", comments = "Source: inventory.proto") @io.grpc.stub.annotations.GrpcGenerated -public final class InventorySvcGrpc { +public final class InventoryServiceGrpc { - private InventorySvcGrpc() {} + private InventoryServiceGrpc() {} - public static final String SERVICE_NAME = "opi_api.inventory.v1.InventorySvc"; + public static final String SERVICE_NAME = "opi_api.inventory.v1.InventoryService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getGetInventoryMethod() { io.grpc.MethodDescriptor getGetInventoryMethod; - if ((getGetInventoryMethod = InventorySvcGrpc.getGetInventoryMethod) == null) { - synchronized (InventorySvcGrpc.class) { - if ((getGetInventoryMethod = InventorySvcGrpc.getGetInventoryMethod) == null) { - InventorySvcGrpc.getGetInventoryMethod = getGetInventoryMethod = + if ((getGetInventoryMethod = InventoryServiceGrpc.getGetInventoryMethod) == null) { + synchronized (InventoryServiceGrpc.class) { + if ((getGetInventoryMethod = InventoryServiceGrpc.getGetInventoryMethod) == null) { + InventoryServiceGrpc.getGetInventoryMethod = getGetInventoryMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInventory")) @@ -41,7 +41,7 @@ opi_api.inventory.v1.Inventory> getGetInventoryMethod() { opi_api.inventory.v1.GetInventoryRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( opi_api.inventory.v1.Inventory.getDefaultInstance())) - .setSchemaDescriptor(new InventorySvcMethodDescriptorSupplier("GetInventory")) + .setSchemaDescriptor(new InventoryServiceMethodDescriptorSupplier("GetInventory")) .build(); } } @@ -52,45 +52,45 @@ opi_api.inventory.v1.Inventory> getGetInventoryMethod() { /** * Creates a new async stub that supports all call types for the service */ - public static InventorySvcStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { + public static InventoryServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override - public InventorySvcStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new InventorySvcStub(channel, callOptions); + public InventoryServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new InventoryServiceStub(channel, callOptions); } }; - return InventorySvcStub.newStub(factory, channel); + return InventoryServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static InventorySvcBlockingStub newBlockingStub( + public static InventoryServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override - public InventorySvcBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new InventorySvcBlockingStub(channel, callOptions); + public InventoryServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new InventoryServiceBlockingStub(channel, callOptions); } }; - return InventorySvcBlockingStub.newStub(factory, channel); + return InventoryServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static InventorySvcFutureStub newFutureStub( + public static InventoryServiceFutureStub newFutureStub( io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override - public InventorySvcFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new InventorySvcFutureStub(channel, callOptions); + public InventoryServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new InventoryServiceFutureStub(channel, callOptions); } }; - return InventorySvcFutureStub.newStub(factory, channel); + return InventoryServiceFutureStub.newStub(factory, channel); } /** @@ -98,7 +98,7 @@ public InventorySvcFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptio * Service functions for the device inventory data * */ - public static abstract class InventorySvcImplBase implements io.grpc.BindableService { + public static abstract class InventoryServiceImplBase implements io.grpc.BindableService { /** *
@@ -128,16 +128,16 @@ public void getInventory(opi_api.inventory.v1.GetInventoryRequest request,
    * Service functions for the device inventory data
    * 
*/ - public static final class InventorySvcStub extends io.grpc.stub.AbstractAsyncStub { - private InventorySvcStub( + public static final class InventoryServiceStub extends io.grpc.stub.AbstractAsyncStub { + private InventoryServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected InventorySvcStub build( + protected InventoryServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new InventorySvcStub(channel, callOptions); + return new InventoryServiceStub(channel, callOptions); } /** @@ -157,16 +157,16 @@ public void getInventory(opi_api.inventory.v1.GetInventoryRequest request, * Service functions for the device inventory data * */ - public static final class InventorySvcBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private InventorySvcBlockingStub( + public static final class InventoryServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private InventoryServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected InventorySvcBlockingStub build( + protected InventoryServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new InventorySvcBlockingStub(channel, callOptions); + return new InventoryServiceBlockingStub(channel, callOptions); } /** @@ -185,16 +185,16 @@ public opi_api.inventory.v1.Inventory getInventory(opi_api.inventory.v1.GetInven * Service functions for the device inventory data * */ - public static final class InventorySvcFutureStub extends io.grpc.stub.AbstractFutureStub { - private InventorySvcFutureStub( + public static final class InventoryServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private InventoryServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected InventorySvcFutureStub build( + protected InventoryServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new InventorySvcFutureStub(channel, callOptions); + return new InventoryServiceFutureStub(channel, callOptions); } /** @@ -216,10 +216,10 @@ private static final class MethodHandlers implements io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final InventorySvcImplBase serviceImpl; + private final InventoryServiceImplBase serviceImpl; private final int methodId; - MethodHandlers(InventorySvcImplBase serviceImpl, int methodId) { + MethodHandlers(InventoryServiceImplBase serviceImpl, int methodId) { this.serviceImpl = serviceImpl; this.methodId = methodId; } @@ -248,9 +248,9 @@ public io.grpc.stub.StreamObserver invoke( } } - private static abstract class InventorySvcBaseDescriptorSupplier + private static abstract class InventoryServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - InventorySvcBaseDescriptorSupplier() {} + InventoryServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { @@ -259,21 +259,21 @@ public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("InventorySvc"); + return getFileDescriptor().findServiceByName("InventoryService"); } } - private static final class InventorySvcFileDescriptorSupplier - extends InventorySvcBaseDescriptorSupplier { - InventorySvcFileDescriptorSupplier() {} + private static final class InventoryServiceFileDescriptorSupplier + extends InventoryServiceBaseDescriptorSupplier { + InventoryServiceFileDescriptorSupplier() {} } - private static final class InventorySvcMethodDescriptorSupplier - extends InventorySvcBaseDescriptorSupplier + private static final class InventoryServiceMethodDescriptorSupplier + extends InventoryServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; - InventorySvcMethodDescriptorSupplier(String methodName) { + InventoryServiceMethodDescriptorSupplier(String methodName) { this.methodName = methodName; } @@ -288,11 +288,11 @@ public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { - synchronized (InventorySvcGrpc.class) { + synchronized (InventoryServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new InventorySvcFileDescriptorSupplier()) + .setSchemaDescriptor(new InventoryServiceFileDescriptorSupplier()) .addMethod(getGetInventoryMethod()) .build(); } diff --git a/inventory/v1/gen/python/inventory_pb2.py b/inventory/v1/gen/python/inventory_pb2.py index 8be406da..37fbeb03 100644 --- a/inventory/v1/gen/python/inventory_pb2.py +++ b/inventory/v1/gen/python/inventory_pb2.py @@ -17,7 +17,7 @@ from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0finventory.proto\x12\x14opi_api.inventory.v1\x1a\x17google/api/client.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\"9\n\x08\x42IOSInfo\x12\x0e\n\x06vendor\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x0c\n\x04\x64\x61te\x18\x03 \x01(\t\"}\n\nSystemInfo\x12\x0e\n\x06\x66\x61mily\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06vendor\x18\x03 \x01(\t\x12\x15\n\rserial_number\x18\x04 \x01(\t\x12\x0c\n\x04uuid\x18\x05 \x01(\t\x12\x0b\n\x03sku\x18\x06 \x01(\t\x12\x0f\n\x07version\x18\x07 \x01(\t\"\x80\x01\n\x0b\x43hassisInfo\x12\x11\n\tasset_tag\x18\x01 \x01(\t\x12\x15\n\rserial_number\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x01(\t\x12\x18\n\x10type_description\x18\x04 \x01(\t\x12\x0e\n\x06vendor\x18\x05 \x01(\t\x12\x0f\n\x07version\x18\x06 \x01(\t\"k\n\rBaseboardInfo\x12\x11\n\tasset_tag\x18\x01 \x01(\t\x12\x15\n\rserial_number\x18\x02 \x01(\t\x12\x0e\n\x06vendor\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x04 \x01(\t\x12\x0f\n\x07product\x18\x05 \x01(\t\"5\n\x07\x43PUInfo\x12\x13\n\x0btotal_cores\x18\x01 \x01(\x05\x12\x15\n\rtotal_threads\x18\x02 \x01(\x05\"F\n\nMemoryInfo\x12\x1c\n\x14total_physical_bytes\x18\x01 \x01(\x03\x12\x1a\n\x12total_usable_bytes\x18\x02 \x01(\x03\"\x98\x01\n\x0ePCIeDeviceInfo\x12\x0e\n\x06\x64river\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x02 \x01(\t\x12\x0e\n\x06vendor\x18\x03 \x01(\t\x12\x0f\n\x07product\x18\x04 \x01(\t\x12\x10\n\x08revision\x18\x05 \x01(\t\x12\x11\n\tsubsystem\x18\x06 \x01(\t\x12\r\n\x05\x63lass\x18\x07 \x01(\t\x12\x10\n\x08subclass\x18\x08 \x01(\t\"K\n\x13GetInventoryRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1eopi_api.inventory.v1/Inventory\"\xee\x02\n\tInventory\x12,\n\x04\x62ios\x18\x01 \x01(\x0b\x32\x1e.opi_api.inventory.v1.BIOSInfo\x12\x30\n\x06system\x18\x02 \x01(\x0b\x32 .opi_api.inventory.v1.SystemInfo\x12\x36\n\tbaseboard\x18\x03 \x01(\x0b\x32#.opi_api.inventory.v1.BaseboardInfo\x12\x32\n\x07\x63hassis\x18\x04 \x01(\x0b\x32!.opi_api.inventory.v1.ChassisInfo\x12\x30\n\tprocessor\x18\x05 \x01(\x0b\x32\x1d.opi_api.inventory.v1.CPUInfo\x12\x30\n\x06memory\x18\x06 \x01(\x0b\x32 .opi_api.inventory.v1.MemoryInfo\x12\x31\n\x03pci\x18\x07 \x03(\x0b\x32$.opi_api.inventory.v1.PCIeDeviceInfo2\x9e\x01\n\x0cInventorySvc\x12\x8d\x01\n\x0cGetInventory\x12).opi_api.inventory.v1.GetInventoryRequest\x1a\x1f.opi_api.inventory.v1.Inventory\"1\x82\xd3\xe4\x93\x02$\x12\"/v1/{name=inventory/*/inventory/*}\xda\x41\x04nameB[\n\x14opi_api.inventory.v1B\x0eInventoryProtoP\x01Z1github.com/opiproject/opi-api/inventory/v1/gen/gob\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0finventory.proto\x12\x14opi_api.inventory.v1\x1a\x17google/api/client.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\"9\n\x08\x42IOSInfo\x12\x0e\n\x06vendor\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x0c\n\x04\x64\x61te\x18\x03 \x01(\t\"}\n\nSystemInfo\x12\x0e\n\x06\x66\x61mily\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06vendor\x18\x03 \x01(\t\x12\x15\n\rserial_number\x18\x04 \x01(\t\x12\x0c\n\x04uuid\x18\x05 \x01(\t\x12\x0b\n\x03sku\x18\x06 \x01(\t\x12\x0f\n\x07version\x18\x07 \x01(\t\"\x80\x01\n\x0b\x43hassisInfo\x12\x11\n\tasset_tag\x18\x01 \x01(\t\x12\x15\n\rserial_number\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x01(\t\x12\x18\n\x10type_description\x18\x04 \x01(\t\x12\x0e\n\x06vendor\x18\x05 \x01(\t\x12\x0f\n\x07version\x18\x06 \x01(\t\"k\n\rBaseboardInfo\x12\x11\n\tasset_tag\x18\x01 \x01(\t\x12\x15\n\rserial_number\x18\x02 \x01(\t\x12\x0e\n\x06vendor\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x04 \x01(\t\x12\x0f\n\x07product\x18\x05 \x01(\t\"5\n\x07\x43PUInfo\x12\x13\n\x0btotal_cores\x18\x01 \x01(\x05\x12\x15\n\rtotal_threads\x18\x02 \x01(\x05\"F\n\nMemoryInfo\x12\x1c\n\x14total_physical_bytes\x18\x01 \x01(\x03\x12\x1a\n\x12total_usable_bytes\x18\x02 \x01(\x03\"\x98\x01\n\x0ePCIeDeviceInfo\x12\x0e\n\x06\x64river\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x02 \x01(\t\x12\x0e\n\x06vendor\x18\x03 \x01(\t\x12\x0f\n\x07product\x18\x04 \x01(\t\x12\x10\n\x08revision\x18\x05 \x01(\t\x12\x11\n\tsubsystem\x18\x06 \x01(\t\x12\r\n\x05\x63lass\x18\x07 \x01(\t\x12\x10\n\x08subclass\x18\x08 \x01(\t\"K\n\x13GetInventoryRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1eopi_api.inventory.v1/Inventory\"\xee\x02\n\tInventory\x12,\n\x04\x62ios\x18\x01 \x01(\x0b\x32\x1e.opi_api.inventory.v1.BIOSInfo\x12\x30\n\x06system\x18\x02 \x01(\x0b\x32 .opi_api.inventory.v1.SystemInfo\x12\x36\n\tbaseboard\x18\x03 \x01(\x0b\x32#.opi_api.inventory.v1.BaseboardInfo\x12\x32\n\x07\x63hassis\x18\x04 \x01(\x0b\x32!.opi_api.inventory.v1.ChassisInfo\x12\x30\n\tprocessor\x18\x05 \x01(\x0b\x32\x1d.opi_api.inventory.v1.CPUInfo\x12\x30\n\x06memory\x18\x06 \x01(\x0b\x32 .opi_api.inventory.v1.MemoryInfo\x12\x31\n\x03pci\x18\x07 \x03(\x0b\x32$.opi_api.inventory.v1.PCIeDeviceInfo2\xa2\x01\n\x10InventoryService\x12\x8d\x01\n\x0cGetInventory\x12).opi_api.inventory.v1.GetInventoryRequest\x1a\x1f.opi_api.inventory.v1.Inventory\"1\x82\xd3\xe4\x93\x02$\x12\"/v1/{name=inventory/*/inventory/*}\xda\x41\x04nameB[\n\x14opi_api.inventory.v1B\x0eInventoryProtoP\x01Z1github.com/opiproject/opi-api/inventory/v1/gen/gob\x06proto3') _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'inventory_pb2', globals()) @@ -27,8 +27,8 @@ DESCRIPTOR._serialized_options = b'\n\024opi_api.inventory.v1B\016InventoryProtoP\001Z1github.com/opiproject/opi-api/inventory/v1/gen/go' _GETINVENTORYREQUEST.fields_by_name['name']._options = None _GETINVENTORYREQUEST.fields_by_name['name']._serialized_options = b'\340A\002\372A \n\036opi_api.inventory.v1/Inventory' - _INVENTORYSVC.methods_by_name['GetInventory']._options = None - _INVENTORYSVC.methods_by_name['GetInventory']._serialized_options = b'\202\323\344\223\002$\022\"/v1/{name=inventory/*/inventory/*}\332A\004name' + _INVENTORYSERVICE.methods_by_name['GetInventory']._options = None + _INVENTORYSERVICE.methods_by_name['GetInventory']._serialized_options = b'\202\323\344\223\002$\022\"/v1/{name=inventory/*/inventory/*}\332A\004name' _BIOSINFO._serialized_start=156 _BIOSINFO._serialized_end=213 _SYSTEMINFO._serialized_start=215 @@ -47,6 +47,6 @@ _GETINVENTORYREQUEST._serialized_end=939 _INVENTORY._serialized_start=942 _INVENTORY._serialized_end=1308 - _INVENTORYSVC._serialized_start=1311 - _INVENTORYSVC._serialized_end=1469 + _INVENTORYSERVICE._serialized_start=1311 + _INVENTORYSERVICE._serialized_end=1473 # @@protoc_insertion_point(module_scope) diff --git a/inventory/v1/gen/python/inventory_pb2_grpc.py b/inventory/v1/gen/python/inventory_pb2_grpc.py index 4e269377..95b0a2bb 100644 --- a/inventory/v1/gen/python/inventory_pb2_grpc.py +++ b/inventory/v1/gen/python/inventory_pb2_grpc.py @@ -5,7 +5,7 @@ import inventory_pb2 as inventory__pb2 -class InventorySvcStub(object): +class InventoryServiceStub(object): """Service functions for the device inventory data """ @@ -16,13 +16,13 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.GetInventory = channel.unary_unary( - '/opi_api.inventory.v1.InventorySvc/GetInventory', + '/opi_api.inventory.v1.InventoryService/GetInventory', request_serializer=inventory__pb2.GetInventoryRequest.SerializeToString, response_deserializer=inventory__pb2.Inventory.FromString, ) -class InventorySvcServicer(object): +class InventoryServiceServicer(object): """Service functions for the device inventory data """ @@ -34,7 +34,7 @@ def GetInventory(self, request, context): raise NotImplementedError('Method not implemented!') -def add_InventorySvcServicer_to_server(servicer, server): +def add_InventoryServiceServicer_to_server(servicer, server): rpc_method_handlers = { 'GetInventory': grpc.unary_unary_rpc_method_handler( servicer.GetInventory, @@ -43,12 +43,12 @@ def add_InventorySvcServicer_to_server(servicer, server): ), } generic_handler = grpc.method_handlers_generic_handler( - 'opi_api.inventory.v1.InventorySvc', rpc_method_handlers) + 'opi_api.inventory.v1.InventoryService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) # This class is part of an EXPERIMENTAL API. -class InventorySvc(object): +class InventoryService(object): """Service functions for the device inventory data """ @@ -63,7 +63,7 @@ def GetInventory(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/opi_api.inventory.v1.InventorySvc/GetInventory', + return grpc.experimental.unary_unary(request, target, '/opi_api.inventory.v1.InventoryService/GetInventory', inventory__pb2.GetInventoryRequest.SerializeToString, inventory__pb2.Inventory.FromString, options, channel_credentials,