module documentation
Descriptor-driven direct protobuf classes for the Go PySDK generator.
| Class | |
Registry of SDK-owned message classes and descriptor facades. |
| Function | enum |
Create an SDK enum for one registered protobuf enum. |
| Function | export |
Export top-level and nested symbols from registered descriptor files. |
| Function | extension |
Return a namespace-owned extension declaration. |
| Function | message |
Create a direct SDK message class from a registered descriptor. |
| Function | register |
Register a generated service client for lazy operation resolution. |
| Function | register |
Register one serialized file descriptor, rejecting name conflicts. |
| Class | _ |
Undocumented |
| Class | _ |
Undocumented |
| Function | _annotation |
Undocumented |
| Function | _codec |
Undocumented |
| Function | _constructor |
Return the runtime constructor annotation matching generated setters. |
| Function | _direct |
Undocumented |
| Function | _distribution |
Return and cache the API-module boundary for this installation. |
| Function | _ensure |
Undocumented |
| Function | _find |
Return API modules owned by the distribution containing this runtime. |
| Function | _has |
Undocumented |
| Function | _is |
Undocumented |
| Function | _is |
Undocumented |
| Function | _property |
Return the getter and setter annotations for a generated property. |
| Function | _refresh |
Resolve runtime annotations after new message and enum types appear. |
| Function | _runtime |
Return the direct Python value type exposed for one descriptor field. |
| Function | _well |
Undocumented |
| Constant | _ANNOTATION |
Undocumented |
| Constant | _API |
Undocumented |
| Constant | _API |
Undocumented |
| Constant | _CLASS |
Undocumented |
| Constant | _CLIENTS |
Undocumented |
| Constant | _DISTRIBUTION |
Undocumented |
| Constant | _DISTRIBUTION |
Undocumented |
| Constant | _ENUMS |
Undocumented |
| Constant | _EXPORTED |
Undocumented |
| Constant | _EXPORTED |
Undocumented |
| Constant | _EXTENDEES |
Undocumented |
| Constant | _EXTENSION |
Undocumented |
| Constant | _INITIAL |
Undocumented |
| Constant | _MESSAGES |
Undocumented |
| Constant | _PROTO |
Undocumented |
| Constant | _PYTHON |
Undocumented |
def enum_class(full_name:
str, python_name: str, values: Mapping[ str, int], *, _exported: bool = True) -> type[ Enum]:
(source)
¶
Create an SDK enum for one registered protobuf enum.
def export_file_symbols(namespace:
dict[ str, Any], file_names: tuple[ str, ...]) -> list[ str]:
(source)
¶
Export top-level and nested symbols from registered descriptor files.
def message_class(full_name:
str, python_name: str, python_fields: Mapping[ str, str] | None = None, python_oneofs: Mapping[ str, str] | None = None, field_documentation: Mapping[ str, str] | None = None, oneof_documentation: Mapping[ str, str] | None = None, *, message_deprecation_details: str | None = None, field_deprecation_details: Mapping[ str, str] | None = None, enum_value_deprecations: Mapping[ str, Mapping[ int, tuple[ tuple[ str, str], ...]]] | None = None, sensitive_fields: Collection[ str] = (), credential_fields: Collection[ str] = (), immutable_fields: Collection[ str] = (), immutable_oneof_fields: Collection[ str] = (), _exported: bool = True) -> type[ Message]:
(source)
¶
Create a direct SDK message class from a registered descriptor.
def _direct_field(descriptor:
FieldDescriptor, python_name: str, python_oneofs: Mapping[ str, str] | None = None, deprecation_details: str | None = None, enum_value_deprecations: Mapping[ int, tuple[ tuple[ str, str], ...]] | None = None, *, sensitive: bool = False, credentials: bool = False, immutable: bool = False, immutable_oneof: bool = False, internal: bool = False) -> Field:
(source)
¶
Undocumented
Return API modules owned by the distribution containing this runtime.
Installed namespace packages can share one physical nebius/api tree. Distribution metadata is the only reliable way to distinguish this SDK's files from modules contributed by another wheel. Bazel and source-tree execution have no owning distribution, so callers fall back to the local tree in that case.
def _well_known_adapters(field:
FieldDescriptor, *, internal: bool = False) -> tuple[ Any | None, Any | None]:
(source)
¶
Undocumented