Regenerate proto files (#241)

* Regenerate proto files

Fixes #240.

* chore: add Apache 2.0 license headers to generated Python protobuf files
This commit is contained in:
Jaana Dogan
2026-07-05 22:47:49 -07:00
committed by GitHub
parent 89276a1246
commit 701777e498
7 changed files with 130 additions and 37 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v5.28.2
// protoc v7.34.1
// source: proto/ax.proto
package proto
+8 -8
View File
@@ -14,8 +14,8 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.5.1
// - protoc v5.28.2
// - protoc-gen-go-grpc v1.6.0
// - protoc v7.34.1
// source: proto/ax.proto
package proto
@@ -88,7 +88,7 @@ type HarnessServiceServer interface {
type UnimplementedHarnessServiceServer struct{}
func (UnimplementedHarnessServiceServer) Connect(grpc.BidiStreamingServer[HarnessRequest, HarnessResponse]) error {
return status.Errorf(codes.Unimplemented, "method Connect not implemented")
return status.Error(codes.Unimplemented, "method Connect not implemented")
}
func (UnimplementedHarnessServiceServer) mustEmbedUnimplementedHarnessServiceServer() {}
func (UnimplementedHarnessServiceServer) testEmbeddedByValue() {}
@@ -101,7 +101,7 @@ type UnsafeHarnessServiceServer interface {
}
func RegisterHarnessServiceServer(s grpc.ServiceRegistrar, srv HarnessServiceServer) {
// If the following call pancis, it indicates UnimplementedHarnessServiceServer was
// If the following call panics, it indicates UnimplementedHarnessServiceServer was
// embedded by pointer and is nil. This will cause panics if an
// unimplemented method is ever invoked, so we test this at initialization
// time to prevent it from happening at runtime later due to I/O.
@@ -194,7 +194,7 @@ type ControllerServiceServer interface {
type UnimplementedControllerServiceServer struct{}
func (UnimplementedControllerServiceServer) Exec(*ExecRequest, grpc.ServerStreamingServer[ExecResponse]) error {
return status.Errorf(codes.Unimplemented, "method Exec not implemented")
return status.Error(codes.Unimplemented, "method Exec not implemented")
}
func (UnimplementedControllerServiceServer) mustEmbedUnimplementedControllerServiceServer() {}
func (UnimplementedControllerServiceServer) testEmbeddedByValue() {}
@@ -207,7 +207,7 @@ type UnsafeControllerServiceServer interface {
}
func RegisterControllerServiceServer(s grpc.ServiceRegistrar, srv ControllerServiceServer) {
// If the following call pancis, it indicates UnimplementedControllerServiceServer was
// If the following call panics, it indicates UnimplementedControllerServiceServer was
// embedded by pointer and is nil. This will cause panics if an
// unimplemented method is ever invoked, so we test this at initialization
// time to prevent it from happening at runtime later due to I/O.
@@ -294,7 +294,7 @@ type ConversationServiceServer interface {
type UnimplementedConversationServiceServer struct{}
func (UnimplementedConversationServiceServer) DeleteConversation(context.Context, *DeleteConversationRequest) (*DeleteConversationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteConversation not implemented")
return nil, status.Error(codes.Unimplemented, "method DeleteConversation not implemented")
}
func (UnimplementedConversationServiceServer) mustEmbedUnimplementedConversationServiceServer() {}
func (UnimplementedConversationServiceServer) testEmbeddedByValue() {}
@@ -307,7 +307,7 @@ type UnsafeConversationServiceServer interface {
}
func RegisterConversationServiceServer(s grpc.ServiceRegistrar, srv ConversationServiceServer) {
// If the following call pancis, it indicates UnimplementedConversationServiceServer was
// If the following call panics, it indicates UnimplementedConversationServiceServer was
// embedded by pointer and is nil. This will cause panics if an
// unimplemented method is ever invoked, so we test this at initialization
// time to prevent it from happening at runtime later due to I/O.
+1 -1
View File
@@ -15,7 +15,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v5.28.2
// protoc v7.34.1
// source: proto/content.proto
package proto
+13 -3
View File
@@ -14,13 +14,23 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: proto/ax.proto
# Protobuf Python Version: 4.25.1
# Protobuf Python Version: 6.33.5
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import runtime_version as _runtime_version
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
_runtime_version.ValidateProtobufRuntimeVersion(
_runtime_version.Domain.PUBLIC,
6,
33,
5,
'',
'proto/ax.proto'
)
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
@@ -35,8 +45,8 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0eproto/ax.proto
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'proto.ax_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:
_globals['DESCRIPTOR']._options = None
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'Z\032github.com/google/ax/proto'
_globals['_STATE']._serialized_start=1153
_globals['_STATE']._serialized_end=1261
+74 -21
View File
@@ -15,11 +15,31 @@
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
import warnings
from proto import ax_pb2 as proto_dot_ax__pb2
GRPC_GENERATED_VERSION = '1.81.1'
GRPC_VERSION = grpc.__version__
_version_not_supported = False
class HarnessServiceStub(object):
try:
from grpc._utilities import first_version_is_lower
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
except ImportError:
_version_not_supported = True
if _version_not_supported:
raise RuntimeError(
f'The grpc package installed is at version {GRPC_VERSION},'
+ ' but the generated code in proto/ax_pb2_grpc.py depends on'
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
)
class HarnessServiceStub:
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
@@ -32,10 +52,10 @@ class HarnessServiceStub(object):
'/ax.HarnessService/Connect',
request_serializer=proto_dot_ax__pb2.HarnessRequest.SerializeToString,
response_deserializer=proto_dot_ax__pb2.HarnessResponse.FromString,
)
_registered_method=True)
class HarnessServiceServicer(object):
class HarnessServiceServicer:
"""Missing associated documentation comment in .proto file."""
def Connect(self, request_iterator, context):
@@ -60,10 +80,11 @@ def add_HarnessServiceServicer_to_server(servicer, server):
generic_handler = grpc.method_handlers_generic_handler(
'ax.HarnessService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
server.add_registered_method_handlers('ax.HarnessService', rpc_method_handlers)
# This class is part of an EXPERIMENTAL API.
class HarnessService(object):
class HarnessService:
"""Missing associated documentation comment in .proto file."""
@staticmethod
@@ -77,14 +98,24 @@ class HarnessService(object):
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.stream_stream(request_iterator, target, '/ax.HarnessService/Connect',
return grpc.experimental.stream_stream(
request_iterator,
target,
'/ax.HarnessService/Connect',
proto_dot_ax__pb2.HarnessRequest.SerializeToString,
proto_dot_ax__pb2.HarnessResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
class ControllerServiceStub(object):
class ControllerServiceStub:
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
@@ -97,10 +128,10 @@ class ControllerServiceStub(object):
'/ax.ControllerService/Exec',
request_serializer=proto_dot_ax__pb2.ExecRequest.SerializeToString,
response_deserializer=proto_dot_ax__pb2.ExecResponse.FromString,
)
_registered_method=True)
class ControllerServiceServicer(object):
class ControllerServiceServicer:
"""Missing associated documentation comment in .proto file."""
def Exec(self, request, context):
@@ -123,10 +154,11 @@ def add_ControllerServiceServicer_to_server(servicer, server):
generic_handler = grpc.method_handlers_generic_handler(
'ax.ControllerService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
server.add_registered_method_handlers('ax.ControllerService', rpc_method_handlers)
# This class is part of an EXPERIMENTAL API.
class ControllerService(object):
class ControllerService:
"""Missing associated documentation comment in .proto file."""
@staticmethod
@@ -140,14 +172,24 @@ class ControllerService(object):
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_stream(request, target, '/ax.ControllerService/Exec',
return grpc.experimental.unary_stream(
request,
target,
'/ax.ControllerService/Exec',
proto_dot_ax__pb2.ExecRequest.SerializeToString,
proto_dot_ax__pb2.ExecResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
class ConversationServiceStub(object):
class ConversationServiceStub:
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
@@ -160,10 +202,10 @@ class ConversationServiceStub(object):
'/ax.ConversationService/DeleteConversation',
request_serializer=proto_dot_ax__pb2.DeleteConversationRequest.SerializeToString,
response_deserializer=proto_dot_ax__pb2.DeleteConversationResponse.FromString,
)
_registered_method=True)
class ConversationServiceServicer(object):
class ConversationServiceServicer:
"""Missing associated documentation comment in .proto file."""
def DeleteConversation(self, request, context):
@@ -186,10 +228,11 @@ def add_ConversationServiceServicer_to_server(servicer, server):
generic_handler = grpc.method_handlers_generic_handler(
'ax.ConversationService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
server.add_registered_method_handlers('ax.ConversationService', rpc_method_handlers)
# This class is part of an EXPERIMENTAL API.
class ConversationService(object):
class ConversationService:
"""Missing associated documentation comment in .proto file."""
@staticmethod
@@ -203,8 +246,18 @@ class ConversationService(object):
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/ax.ConversationService/DeleteConversation',
return grpc.experimental.unary_unary(
request,
target,
'/ax.ConversationService/DeleteConversation',
proto_dot_ax__pb2.DeleteConversationRequest.SerializeToString,
proto_dot_ax__pb2.DeleteConversationResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)
+13 -3
View File
@@ -14,13 +14,23 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: proto/content.proto
# Protobuf Python Version: 4.25.1
# Protobuf Python Version: 6.33.5
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import runtime_version as _runtime_version
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
_runtime_version.ValidateProtobufRuntimeVersion(
_runtime_version.Domain.PUBLIC,
6,
33,
5,
'',
'proto/content.proto'
)
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
@@ -34,8 +44,8 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13proto/content.
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'proto.content_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:
_globals['DESCRIPTOR']._options = None
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'Z\032github.com/google/ax/proto'
_globals['_MEDIARESOLUTION']._serialized_start=2638
_globals['_MEDIARESOLUTION']._serialized_end=2736
+20
View File
@@ -15,4 +15,24 @@
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
import warnings
GRPC_GENERATED_VERSION = '1.81.1'
GRPC_VERSION = grpc.__version__
_version_not_supported = False
try:
from grpc._utilities import first_version_is_lower
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
except ImportError:
_version_not_supported = True
if _version_not_supported:
raise RuntimeError(
f'The grpc package installed is at version {GRPC_VERSION},'
+ ' but the generated code in proto/content_pb2_grpc.py depends on'
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
)