chore: 添加虚拟环境到仓库

- 添加 backend_service/venv 虚拟环境
- 包含所有Python依赖包
- 注意:虚拟环境约393MB,包含12655个文件
This commit is contained in:
2025-12-03 10:19:25 +08:00
parent a6c2027caa
commit c4f851d387
12655 changed files with 3009376 additions and 0 deletions

View File

@@ -0,0 +1,98 @@
// Copyright 2020 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
syntax = "proto3";
package google.gapic.metadata;
option csharp_namespace = "Google.Gapic.Metadata";
option go_package = "google.golang.org/genproto/googleapis/gapic/metadata;metadata";
option java_multiple_files = true;
option java_outer_classname = "GapicMetadataProto";
option java_package = "com.google.gapic.metadata";
option php_namespace = "Google\\Gapic\\Metadata";
option ruby_package = "Google::Gapic::Metadata";
// Metadata about a GAPIC library service for a specific combination of API,
// version, and computer language.
message GapicMetadata {
// Schema version of this proto. Current value: 1.0
string schema = 1;
// Any human-readable comments to be included in this file.
string comment = 2;
// Computer language of this generated language. This must be
// spelled out as it spoken in English, with no capitalization or
// separators (e.g. "csharp", "nodejs").
string language = 3;
// The proto package containing the API definition for which this
// GAPIC library was generated.
string proto_package = 4;
// The language-specific library package for this GAPIC library.
string library_package = 5;
// A map from each proto-defined service to ServiceForTransports,
// which allows listing information about transport-specific
// implementations of the service.
//
// The key is the name of the service as it appears in the .proto
// file.
map<string, ServiceForTransport> services = 6;
// A map from a transport name to ServiceAsClient, which allows
// listing information about the client objects that implement the
// parent RPC service for the specified transport.
message ServiceForTransport {
// Map of transport name to ServiceAsClient. The key name is the transport,
// lower-cased with no separators (e.g. "grpc", "rest").
map<string, ServiceAsClient> clients = 1;
// The API version for the interface definition found in the
// `google.api.api_version` annotation of this proto-defined service during
// code generation.
// This is the value populated by the client in the API version request
// parameter as per
// [AIP-4236](https://google.aip.dev/client-libraries/4236).
string api_version = 2;
}
// Information about a specific client implementing a proto-defined service.
message ServiceAsClient {
// The name of the library client formatted as it appears in the source code
string library_client = 1;
// A mapping from each proto-defined RPC name to the the list of
// methods in library_client that implement it. There can be more
// than one library_client method for each RPC. RPCs with no
// library_client methods need not be included.
//
// The key name is the name of the RPC as defined and formatted in
// the proto file.
map<string, MethodList> rpcs = 2;
}
// List of GAPIC client methods implementing the proto-defined RPC
// for the transport and service specified in the containing
// structures.
message MethodList {
// List of methods for a specific proto-service client in the
// GAPIC. These names should be formatted as they appear in the
// source code.
repeated string methods = 1;
}
}

View File

@@ -0,0 +1,67 @@
# -*- coding: utf-8 -*-
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/gapic/metadata/gapic_metadata.proto
# Protobuf Python Version: 4.25.3
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
b'\n*google/gapic/metadata/gapic_metadata.proto\x12\x15google.gapic.metadata"\x85\x06\n\rGapicMetadata\x12\x0e\n\x06schema\x18\x01 \x01(\t\x12\x0f\n\x07\x63omment\x18\x02 \x01(\t\x12\x10\n\x08language\x18\x03 \x01(\t\x12\x15\n\rproto_package\x18\x04 \x01(\t\x12\x17\n\x0flibrary_package\x18\x05 \x01(\t\x12\x44\n\x08services\x18\x06 \x03(\x0b\x32\x32.google.gapic.metadata.GapicMetadata.ServicesEntry\x1ai\n\rServicesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12G\n\x05value\x18\x02 \x01(\x0b\x32\x38.google.gapic.metadata.GapicMetadata.ServiceForTransport:\x02\x38\x01\x1a\xe8\x01\n\x13ServiceForTransport\x12V\n\x07\x63lients\x18\x01 \x03(\x0b\x32\x45.google.gapic.metadata.GapicMetadata.ServiceForTransport.ClientsEntry\x12\x13\n\x0b\x61pi_version\x18\x02 \x01(\t\x1a\x64\n\x0c\x43lientsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x43\n\x05value\x18\x02 \x01(\x0b\x32\x34.google.gapic.metadata.GapicMetadata.ServiceAsClient:\x02\x38\x01\x1a\xd5\x01\n\x0fServiceAsClient\x12\x16\n\x0elibrary_client\x18\x01 \x01(\t\x12L\n\x04rpcs\x18\x02 \x03(\x0b\x32>.google.gapic.metadata.GapicMetadata.ServiceAsClient.RpcsEntry\x1a\\\n\tRpcsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.google.gapic.metadata.GapicMetadata.MethodList:\x02\x38\x01\x1a\x1d\n\nMethodList\x12\x0f\n\x07methods\x18\x01 \x03(\tB\xba\x01\n\x19\x63om.google.gapic.metadataB\x12GapicMetadataProtoP\x01Z=google.golang.org/genproto/googleapis/gapic/metadata;metadata\xaa\x02\x15Google.Gapic.Metadata\xca\x02\x15Google\\Gapic\\Metadata\xea\x02\x17Google::Gapic::Metadatab\x06proto3'
)
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(
DESCRIPTOR, "google.gapic.metadata.gapic_metadata_pb2", _globals
)
if _descriptor._USE_C_DESCRIPTORS == False:
_globals["DESCRIPTOR"]._options = None
_globals[
"DESCRIPTOR"
]._serialized_options = b"\n\031com.google.gapic.metadataB\022GapicMetadataProtoP\001Z=google.golang.org/genproto/googleapis/gapic/metadata;metadata\252\002\025Google.Gapic.Metadata\312\002\025Google\\Gapic\\Metadata\352\002\027Google::Gapic::Metadata"
_globals["_GAPICMETADATA_SERVICESENTRY"]._options = None
_globals["_GAPICMETADATA_SERVICESENTRY"]._serialized_options = b"8\001"
_globals["_GAPICMETADATA_SERVICEFORTRANSPORT_CLIENTSENTRY"]._options = None
_globals[
"_GAPICMETADATA_SERVICEFORTRANSPORT_CLIENTSENTRY"
]._serialized_options = b"8\001"
_globals["_GAPICMETADATA_SERVICEASCLIENT_RPCSENTRY"]._options = None
_globals["_GAPICMETADATA_SERVICEASCLIENT_RPCSENTRY"]._serialized_options = b"8\001"
_globals["_GAPICMETADATA"]._serialized_start = 70
_globals["_GAPICMETADATA"]._serialized_end = 843
_globals["_GAPICMETADATA_SERVICESENTRY"]._serialized_start = 256
_globals["_GAPICMETADATA_SERVICESENTRY"]._serialized_end = 361
_globals["_GAPICMETADATA_SERVICEFORTRANSPORT"]._serialized_start = 364
_globals["_GAPICMETADATA_SERVICEFORTRANSPORT"]._serialized_end = 596
_globals["_GAPICMETADATA_SERVICEFORTRANSPORT_CLIENTSENTRY"]._serialized_start = 496
_globals["_GAPICMETADATA_SERVICEFORTRANSPORT_CLIENTSENTRY"]._serialized_end = 596
_globals["_GAPICMETADATA_SERVICEASCLIENT"]._serialized_start = 599
_globals["_GAPICMETADATA_SERVICEASCLIENT"]._serialized_end = 812
_globals["_GAPICMETADATA_SERVICEASCLIENT_RPCSENTRY"]._serialized_start = 720
_globals["_GAPICMETADATA_SERVICEASCLIENT_RPCSENTRY"]._serialized_end = 812
_globals["_GAPICMETADATA_METHODLIST"]._serialized_start = 814
_globals["_GAPICMETADATA_METHODLIST"]._serialized_end = 843
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,122 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from typing import ClassVar as _ClassVar
from typing import Iterable as _Iterable
from typing import Mapping as _Mapping
from typing import Optional as _Optional
from typing import Union as _Union
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf.internal import containers as _containers
DESCRIPTOR: _descriptor.FileDescriptor
class GapicMetadata(_message.Message):
__slots__ = (
"schema",
"comment",
"language",
"proto_package",
"library_package",
"services",
)
class ServicesEntry(_message.Message):
__slots__ = ("key", "value")
KEY_FIELD_NUMBER: _ClassVar[int]
VALUE_FIELD_NUMBER: _ClassVar[int]
key: str
value: GapicMetadata.ServiceForTransport
def __init__(
self,
key: _Optional[str] = ...,
value: _Optional[_Union[GapicMetadata.ServiceForTransport, _Mapping]] = ...,
) -> None: ...
class ServiceForTransport(_message.Message):
__slots__ = ("clients", "api_version")
class ClientsEntry(_message.Message):
__slots__ = ("key", "value")
KEY_FIELD_NUMBER: _ClassVar[int]
VALUE_FIELD_NUMBER: _ClassVar[int]
key: str
value: GapicMetadata.ServiceAsClient
def __init__(
self,
key: _Optional[str] = ...,
value: _Optional[_Union[GapicMetadata.ServiceAsClient, _Mapping]] = ...,
) -> None: ...
CLIENTS_FIELD_NUMBER: _ClassVar[int]
API_VERSION_FIELD_NUMBER: _ClassVar[int]
clients: _containers.MessageMap[str, GapicMetadata.ServiceAsClient]
api_version: str
def __init__(
self,
clients: _Optional[_Mapping[str, GapicMetadata.ServiceAsClient]] = ...,
api_version: _Optional[str] = ...,
) -> None: ...
class ServiceAsClient(_message.Message):
__slots__ = ("library_client", "rpcs")
class RpcsEntry(_message.Message):
__slots__ = ("key", "value")
KEY_FIELD_NUMBER: _ClassVar[int]
VALUE_FIELD_NUMBER: _ClassVar[int]
key: str
value: GapicMetadata.MethodList
def __init__(
self,
key: _Optional[str] = ...,
value: _Optional[_Union[GapicMetadata.MethodList, _Mapping]] = ...,
) -> None: ...
LIBRARY_CLIENT_FIELD_NUMBER: _ClassVar[int]
RPCS_FIELD_NUMBER: _ClassVar[int]
library_client: str
rpcs: _containers.MessageMap[str, GapicMetadata.MethodList]
def __init__(
self,
library_client: _Optional[str] = ...,
rpcs: _Optional[_Mapping[str, GapicMetadata.MethodList]] = ...,
) -> None: ...
class MethodList(_message.Message):
__slots__ = ("methods",)
METHODS_FIELD_NUMBER: _ClassVar[int]
methods: _containers.RepeatedScalarFieldContainer[str]
def __init__(self, methods: _Optional[_Iterable[str]] = ...) -> None: ...
SCHEMA_FIELD_NUMBER: _ClassVar[int]
COMMENT_FIELD_NUMBER: _ClassVar[int]
LANGUAGE_FIELD_NUMBER: _ClassVar[int]
PROTO_PACKAGE_FIELD_NUMBER: _ClassVar[int]
LIBRARY_PACKAGE_FIELD_NUMBER: _ClassVar[int]
SERVICES_FIELD_NUMBER: _ClassVar[int]
schema: str
comment: str
language: str
proto_package: str
library_package: str
services: _containers.MessageMap[str, GapicMetadata.ServiceForTransport]
def __init__(
self,
schema: _Optional[str] = ...,
comment: _Optional[str] = ...,
language: _Optional[str] = ...,
proto_package: _Optional[str] = ...,
library_package: _Optional[str] = ...,
services: _Optional[_Mapping[str, GapicMetadata.ServiceForTransport]] = ...,
) -> None: ...