Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions examples/lgtm-datamesh/buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@ version: v2
# (_pb2_grpc.py) from the protos. Output goes to a staging dir that
# gen-protos.sh then copies into each service that needs the stubs
# (option b: per-service committed copies, no buf in the image).
#
# Plugin versions are PINNED to the protobuf 5.29 line. Each service pins
# protobuf >=5.26,<6, and a _pb2.py carries a runtime-version guard: the
# runtime must be >= the gencode version that stamped it. The unpinned
# `latest` plugin stamps a protobuf-6 gencode (7.x), which the 5.29.6
# runtime rejects at import. protocolbuffers/python v29.x maps to python
# protobuf 5.29.x; grpc/python v1.70.x is the last gRPC plugin on that line.
plugins:
- remote: buf.build/protocolbuffers/python
- remote: buf.build/protocolbuffers/python:v29.3
out: .gen-staging
- remote: buf.build/grpc/python
- remote: buf.build/grpc/python:v1.70.0
out: .gen-staging
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: datamesh/inventory/v1/inventory.proto
# Protobuf Python Version: 7.36.2
# Protobuf Python Version: 5.29.3
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
Expand All @@ -11,9 +11,9 @@
from google.protobuf.internal import builder as _builder
_runtime_version.ValidateProtobufRuntimeVersion(
_runtime_version.Domain.PUBLIC,
7,
36,
2,
5,
29,
3,
'',
'datamesh/inventory/v1/inventory.proto'
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from datamesh.inventory.v1 import inventory_pb2 as datamesh_dot_inventory_dot_v1_dot_inventory__pb2


class InventoryServiceStub:
class InventoryServiceStub(object):
"""InventoryService answers stock questions for the order flow. r23 ships the
single synchronous call order-service needs when placing an order; more
RPCs are added as the inventory domain grows.
Expand All @@ -24,7 +24,7 @@ def __init__(self, channel):
_registered_method=True)


class InventoryServiceServicer:
class InventoryServiceServicer(object):
"""InventoryService answers stock questions for the order flow. r23 ships the
single synchronous call order-service needs when placing an order; more
RPCs are added as the inventory domain grows.
Expand Down Expand Up @@ -54,7 +54,7 @@ def add_InventoryServiceServicer_to_server(servicer, server):


# This class is part of an EXPERIMENTAL API.
class InventoryService:
class InventoryService(object):
"""InventoryService answers stock questions for the order flow. r23 ships the
single synchronous call order-service needs when placing an order; more
RPCs are added as the inventory domain grows.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: datamesh/inventory/v1/inventory.proto
# Protobuf Python Version: 7.36.2
# Protobuf Python Version: 5.29.3
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
Expand All @@ -11,9 +11,9 @@
from google.protobuf.internal import builder as _builder
_runtime_version.ValidateProtobufRuntimeVersion(
_runtime_version.Domain.PUBLIC,
7,
36,
2,
5,
29,
3,
'',
'datamesh/inventory/v1/inventory.proto'
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from datamesh.inventory.v1 import inventory_pb2 as datamesh_dot_inventory_dot_v1_dot_inventory__pb2


class InventoryServiceStub:
class InventoryServiceStub(object):
"""InventoryService answers stock questions for the order flow. r23 ships the
single synchronous call order-service needs when placing an order; more
RPCs are added as the inventory domain grows.
Expand All @@ -24,7 +24,7 @@ def __init__(self, channel):
_registered_method=True)


class InventoryServiceServicer:
class InventoryServiceServicer(object):
"""InventoryService answers stock questions for the order flow. r23 ships the
single synchronous call order-service needs when placing an order; more
RPCs are added as the inventory domain grows.
Expand Down Expand Up @@ -54,7 +54,7 @@ def add_InventoryServiceServicer_to_server(servicer, server):


# This class is part of an EXPERIMENTAL API.
class InventoryService:
class InventoryService(object):
"""InventoryService answers stock questions for the order flow. r23 ships the
single synchronous call order-service needs when placing an order; more
RPCs are added as the inventory domain grows.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: datamesh/inventory/v1/inventory.proto
# Protobuf Python Version: 7.36.2
# Protobuf Python Version: 5.29.3
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
Expand All @@ -11,9 +11,9 @@
from google.protobuf.internal import builder as _builder
_runtime_version.ValidateProtobufRuntimeVersion(
_runtime_version.Domain.PUBLIC,
7,
36,
2,
5,
29,
3,
'',
'datamesh/inventory/v1/inventory.proto'
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from datamesh.inventory.v1 import inventory_pb2 as datamesh_dot_inventory_dot_v1_dot_inventory__pb2


class InventoryServiceStub:
class InventoryServiceStub(object):
"""InventoryService answers stock questions for the order flow. r23 ships the
single synchronous call order-service needs when placing an order; more
RPCs are added as the inventory domain grows.
Expand All @@ -24,7 +24,7 @@ def __init__(self, channel):
_registered_method=True)


class InventoryServiceServicer:
class InventoryServiceServicer(object):
"""InventoryService answers stock questions for the order flow. r23 ships the
single synchronous call order-service needs when placing an order; more
RPCs are added as the inventory domain grows.
Expand Down Expand Up @@ -54,7 +54,7 @@ def add_InventoryServiceServicer_to_server(servicer, server):


# This class is part of an EXPERIMENTAL API.
class InventoryService:
class InventoryService(object):
"""InventoryService answers stock questions for the order flow. r23 ships the
single synchronous call order-service needs when placing an order; more
RPCs are added as the inventory domain grows.
Expand Down
Loading