() {
@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,