pydantic-rpc 0.3.0__tar.gz → 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/PKG-INFO +1 -1
- pydantic_rpc-0.3.1/examples/barservice.proto +17 -0
- pydantic_rpc-0.3.1/examples/fooservice.proto +21 -0
- pydantic_rpc-0.3.1/examples/olympicslocationagent.proto +18 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/pyproject.toml +1 -1
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/src/pydantic_rpc/core.py +4 -0
- pydantic_rpc-0.3.0/examples/barservice.proto +0 -75
- pydantic_rpc-0.3.0/examples/fooservice.proto +0 -79
- pydantic_rpc-0.3.0/examples/olympicslocationagent.proto +0 -76
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/.gitignore +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/.python-version +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/LICENSE +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/README.md +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/README.md +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/agent_aio_grpc.py +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/agent_connecpy.py +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/asyncio_greeting.py +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/barservice_pb2.py +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/barservice_pb2.pyi +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/barservice_pb2_grpc.py +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/foobar.py +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/foobar_client.py +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/fooservice_pb2.py +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/fooservice_pb2.pyi +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/fooservice_pb2_grpc.py +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/google/protobuf/duration.proto +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/google/protobuf/timestamp.proto +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/greeter.proto +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/greeter_client.py +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/greeter_connecpy.py +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/greeter_connecpy_client.py +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/greeter_pb2.py +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/greeter_pb2.pyi +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/greeter_pb2_grpc.py +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/greeter_sonora_client.py +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/greeting.py +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/greeting_asgi.py +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/greeting_connecpy.py +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/greeting_using_exsiting_pb2_modules.py +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/greeting_wsgi.py +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/olympicsagent.proto +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/olympicsagent_pb2.py +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/olympicsagent_pb2.pyi +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/olympicsagent_pb2_grpc.py +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/olympicslocationagent_connecpy.py +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/olympicslocationagent_pb2.py +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/olympicslocationagent_pb2.pyi +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/examples/olympicslocationagent_pb2_grpc.py +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/requirements-dev.lock +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/requirements.lock +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/src/pydantic_rpc/__init__.py +0 -0
- {pydantic_rpc-0.3.0 → pydantic_rpc-0.3.1}/src/pydantic_rpc/py.typed +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package foo.v1;
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
service FooService {
|
|
7
|
+
rpc Foo (FooRequest) returns (FooResponse);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
message FooResponse {
|
|
11
|
+
string name = 1;
|
|
12
|
+
int32 age = 2;
|
|
13
|
+
map<string, string> d = 3;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message FooRequest {
|
|
17
|
+
string name = 1;
|
|
18
|
+
int32 age = 2;
|
|
19
|
+
map<string, string> d = 3;
|
|
20
|
+
}
|
|
21
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package olympicslocationagent.v1;
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
service OlympicsLocationAgent {
|
|
7
|
+
rpc Ask (Olympics) returns (CityLocation);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
message CityLocation {
|
|
11
|
+
string city = 1;
|
|
12
|
+
string country = 2;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message Olympics {
|
|
16
|
+
int32 year = 1;
|
|
17
|
+
}
|
|
18
|
+
|
|
@@ -602,6 +602,10 @@ def comment_out(docstr: str) -> tuple[str, ...]:
|
|
|
602
602
|
"""Convert docstrings into commented-out lines in a .proto file."""
|
|
603
603
|
if docstr is None:
|
|
604
604
|
return tuple()
|
|
605
|
+
|
|
606
|
+
if docstr.startswith("Usage docs: https://docs.pydantic.dev/2.10/concepts/models/"):
|
|
607
|
+
return tuple()
|
|
608
|
+
|
|
605
609
|
return tuple(f"//" if line == "" else f"// {line}" for line in docstr.split("\n"))
|
|
606
610
|
|
|
607
611
|
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package bar.v1;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
service BarService {
|
|
7
|
-
rpc Bar (BarRequest) returns (BarResponse);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
// Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
|
|
11
|
-
//
|
|
12
|
-
// A base class for creating Pydantic models.
|
|
13
|
-
//
|
|
14
|
-
// Attributes:
|
|
15
|
-
// __class_vars__: The names of the class variables defined on the model.
|
|
16
|
-
// __private_attributes__: Metadata about the private attributes of the model.
|
|
17
|
-
// __signature__: The synthesized `__init__` [`Signature`][inspect.Signature] of the model.
|
|
18
|
-
//
|
|
19
|
-
// __pydantic_complete__: Whether model building is completed, or if there are still undefined fields.
|
|
20
|
-
// __pydantic_core_schema__: The core schema of the model.
|
|
21
|
-
// __pydantic_custom_init__: Whether the model has a custom `__init__` function.
|
|
22
|
-
// __pydantic_decorators__: Metadata containing the decorators defined on the model.
|
|
23
|
-
// This replaces `Model.__validators__` and `Model.__root_validators__` from Pydantic V1.
|
|
24
|
-
// __pydantic_generic_metadata__: Metadata for generic models; contains data used for a similar purpose to
|
|
25
|
-
// __args__, __origin__, __parameters__ in typing-module generics. May eventually be replaced by these.
|
|
26
|
-
// __pydantic_parent_namespace__: Parent namespace of the model, used for automatic rebuilding of models.
|
|
27
|
-
// __pydantic_post_init__: The name of the post-init method for the model, if defined.
|
|
28
|
-
// __pydantic_root_model__: Whether the model is a [`RootModel`][pydantic.root_model.RootModel].
|
|
29
|
-
// __pydantic_serializer__: The `pydantic-core` `SchemaSerializer` used to dump instances of the model.
|
|
30
|
-
// __pydantic_validator__: The `pydantic-core` `SchemaValidator` used to validate instances of the model.
|
|
31
|
-
//
|
|
32
|
-
// __pydantic_fields__: A dictionary of field names and their corresponding [`FieldInfo`][pydantic.fields.FieldInfo] objects.
|
|
33
|
-
// __pydantic_computed_fields__: A dictionary of computed field names and their corresponding [`ComputedFieldInfo`][pydantic.fields.ComputedFieldInfo] objects.
|
|
34
|
-
//
|
|
35
|
-
// __pydantic_extra__: A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra]
|
|
36
|
-
// is set to `'allow'`.
|
|
37
|
-
// __pydantic_fields_set__: The names of fields explicitly set during instantiation.
|
|
38
|
-
// __pydantic_private__: Values of private attributes set on the model instance.
|
|
39
|
-
message BarResponse {
|
|
40
|
-
repeated string names = 1;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
|
|
44
|
-
//
|
|
45
|
-
// A base class for creating Pydantic models.
|
|
46
|
-
//
|
|
47
|
-
// Attributes:
|
|
48
|
-
// __class_vars__: The names of the class variables defined on the model.
|
|
49
|
-
// __private_attributes__: Metadata about the private attributes of the model.
|
|
50
|
-
// __signature__: The synthesized `__init__` [`Signature`][inspect.Signature] of the model.
|
|
51
|
-
//
|
|
52
|
-
// __pydantic_complete__: Whether model building is completed, or if there are still undefined fields.
|
|
53
|
-
// __pydantic_core_schema__: The core schema of the model.
|
|
54
|
-
// __pydantic_custom_init__: Whether the model has a custom `__init__` function.
|
|
55
|
-
// __pydantic_decorators__: Metadata containing the decorators defined on the model.
|
|
56
|
-
// This replaces `Model.__validators__` and `Model.__root_validators__` from Pydantic V1.
|
|
57
|
-
// __pydantic_generic_metadata__: Metadata for generic models; contains data used for a similar purpose to
|
|
58
|
-
// __args__, __origin__, __parameters__ in typing-module generics. May eventually be replaced by these.
|
|
59
|
-
// __pydantic_parent_namespace__: Parent namespace of the model, used for automatic rebuilding of models.
|
|
60
|
-
// __pydantic_post_init__: The name of the post-init method for the model, if defined.
|
|
61
|
-
// __pydantic_root_model__: Whether the model is a [`RootModel`][pydantic.root_model.RootModel].
|
|
62
|
-
// __pydantic_serializer__: The `pydantic-core` `SchemaSerializer` used to dump instances of the model.
|
|
63
|
-
// __pydantic_validator__: The `pydantic-core` `SchemaValidator` used to validate instances of the model.
|
|
64
|
-
//
|
|
65
|
-
// __pydantic_fields__: A dictionary of field names and their corresponding [`FieldInfo`][pydantic.fields.FieldInfo] objects.
|
|
66
|
-
// __pydantic_computed_fields__: A dictionary of computed field names and their corresponding [`ComputedFieldInfo`][pydantic.fields.ComputedFieldInfo] objects.
|
|
67
|
-
//
|
|
68
|
-
// __pydantic_extra__: A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra]
|
|
69
|
-
// is set to `'allow'`.
|
|
70
|
-
// __pydantic_fields_set__: The names of fields explicitly set during instantiation.
|
|
71
|
-
// __pydantic_private__: Values of private attributes set on the model instance.
|
|
72
|
-
message BarRequest {
|
|
73
|
-
repeated string names = 1;
|
|
74
|
-
}
|
|
75
|
-
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package foo.v1;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
service FooService {
|
|
7
|
-
rpc Foo (FooRequest) returns (FooResponse);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
// Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
|
|
11
|
-
//
|
|
12
|
-
// A base class for creating Pydantic models.
|
|
13
|
-
//
|
|
14
|
-
// Attributes:
|
|
15
|
-
// __class_vars__: The names of the class variables defined on the model.
|
|
16
|
-
// __private_attributes__: Metadata about the private attributes of the model.
|
|
17
|
-
// __signature__: The synthesized `__init__` [`Signature`][inspect.Signature] of the model.
|
|
18
|
-
//
|
|
19
|
-
// __pydantic_complete__: Whether model building is completed, or if there are still undefined fields.
|
|
20
|
-
// __pydantic_core_schema__: The core schema of the model.
|
|
21
|
-
// __pydantic_custom_init__: Whether the model has a custom `__init__` function.
|
|
22
|
-
// __pydantic_decorators__: Metadata containing the decorators defined on the model.
|
|
23
|
-
// This replaces `Model.__validators__` and `Model.__root_validators__` from Pydantic V1.
|
|
24
|
-
// __pydantic_generic_metadata__: Metadata for generic models; contains data used for a similar purpose to
|
|
25
|
-
// __args__, __origin__, __parameters__ in typing-module generics. May eventually be replaced by these.
|
|
26
|
-
// __pydantic_parent_namespace__: Parent namespace of the model, used for automatic rebuilding of models.
|
|
27
|
-
// __pydantic_post_init__: The name of the post-init method for the model, if defined.
|
|
28
|
-
// __pydantic_root_model__: Whether the model is a [`RootModel`][pydantic.root_model.RootModel].
|
|
29
|
-
// __pydantic_serializer__: The `pydantic-core` `SchemaSerializer` used to dump instances of the model.
|
|
30
|
-
// __pydantic_validator__: The `pydantic-core` `SchemaValidator` used to validate instances of the model.
|
|
31
|
-
//
|
|
32
|
-
// __pydantic_fields__: A dictionary of field names and their corresponding [`FieldInfo`][pydantic.fields.FieldInfo] objects.
|
|
33
|
-
// __pydantic_computed_fields__: A dictionary of computed field names and their corresponding [`ComputedFieldInfo`][pydantic.fields.ComputedFieldInfo] objects.
|
|
34
|
-
//
|
|
35
|
-
// __pydantic_extra__: A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra]
|
|
36
|
-
// is set to `'allow'`.
|
|
37
|
-
// __pydantic_fields_set__: The names of fields explicitly set during instantiation.
|
|
38
|
-
// __pydantic_private__: Values of private attributes set on the model instance.
|
|
39
|
-
message FooResponse {
|
|
40
|
-
string name = 1;
|
|
41
|
-
int32 age = 2;
|
|
42
|
-
map<string, string> d = 3;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
|
|
46
|
-
//
|
|
47
|
-
// A base class for creating Pydantic models.
|
|
48
|
-
//
|
|
49
|
-
// Attributes:
|
|
50
|
-
// __class_vars__: The names of the class variables defined on the model.
|
|
51
|
-
// __private_attributes__: Metadata about the private attributes of the model.
|
|
52
|
-
// __signature__: The synthesized `__init__` [`Signature`][inspect.Signature] of the model.
|
|
53
|
-
//
|
|
54
|
-
// __pydantic_complete__: Whether model building is completed, or if there are still undefined fields.
|
|
55
|
-
// __pydantic_core_schema__: The core schema of the model.
|
|
56
|
-
// __pydantic_custom_init__: Whether the model has a custom `__init__` function.
|
|
57
|
-
// __pydantic_decorators__: Metadata containing the decorators defined on the model.
|
|
58
|
-
// This replaces `Model.__validators__` and `Model.__root_validators__` from Pydantic V1.
|
|
59
|
-
// __pydantic_generic_metadata__: Metadata for generic models; contains data used for a similar purpose to
|
|
60
|
-
// __args__, __origin__, __parameters__ in typing-module generics. May eventually be replaced by these.
|
|
61
|
-
// __pydantic_parent_namespace__: Parent namespace of the model, used for automatic rebuilding of models.
|
|
62
|
-
// __pydantic_post_init__: The name of the post-init method for the model, if defined.
|
|
63
|
-
// __pydantic_root_model__: Whether the model is a [`RootModel`][pydantic.root_model.RootModel].
|
|
64
|
-
// __pydantic_serializer__: The `pydantic-core` `SchemaSerializer` used to dump instances of the model.
|
|
65
|
-
// __pydantic_validator__: The `pydantic-core` `SchemaValidator` used to validate instances of the model.
|
|
66
|
-
//
|
|
67
|
-
// __pydantic_fields__: A dictionary of field names and their corresponding [`FieldInfo`][pydantic.fields.FieldInfo] objects.
|
|
68
|
-
// __pydantic_computed_fields__: A dictionary of computed field names and their corresponding [`ComputedFieldInfo`][pydantic.fields.ComputedFieldInfo] objects.
|
|
69
|
-
//
|
|
70
|
-
// __pydantic_extra__: A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra]
|
|
71
|
-
// is set to `'allow'`.
|
|
72
|
-
// __pydantic_fields_set__: The names of fields explicitly set during instantiation.
|
|
73
|
-
// __pydantic_private__: Values of private attributes set on the model instance.
|
|
74
|
-
message FooRequest {
|
|
75
|
-
string name = 1;
|
|
76
|
-
int32 age = 2;
|
|
77
|
-
map<string, string> d = 3;
|
|
78
|
-
}
|
|
79
|
-
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package olympicslocationagent.v1;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
service OlympicsLocationAgent {
|
|
7
|
-
rpc Ask (Olympics) returns (CityLocation);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
// Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
|
|
11
|
-
//
|
|
12
|
-
// A base class for creating Pydantic models.
|
|
13
|
-
//
|
|
14
|
-
// Attributes:
|
|
15
|
-
// __class_vars__: The names of the class variables defined on the model.
|
|
16
|
-
// __private_attributes__: Metadata about the private attributes of the model.
|
|
17
|
-
// __signature__: The synthesized `__init__` [`Signature`][inspect.Signature] of the model.
|
|
18
|
-
//
|
|
19
|
-
// __pydantic_complete__: Whether model building is completed, or if there are still undefined fields.
|
|
20
|
-
// __pydantic_core_schema__: The core schema of the model.
|
|
21
|
-
// __pydantic_custom_init__: Whether the model has a custom `__init__` function.
|
|
22
|
-
// __pydantic_decorators__: Metadata containing the decorators defined on the model.
|
|
23
|
-
// This replaces `Model.__validators__` and `Model.__root_validators__` from Pydantic V1.
|
|
24
|
-
// __pydantic_generic_metadata__: Metadata for generic models; contains data used for a similar purpose to
|
|
25
|
-
// __args__, __origin__, __parameters__ in typing-module generics. May eventually be replaced by these.
|
|
26
|
-
// __pydantic_parent_namespace__: Parent namespace of the model, used for automatic rebuilding of models.
|
|
27
|
-
// __pydantic_post_init__: The name of the post-init method for the model, if defined.
|
|
28
|
-
// __pydantic_root_model__: Whether the model is a [`RootModel`][pydantic.root_model.RootModel].
|
|
29
|
-
// __pydantic_serializer__: The `pydantic-core` `SchemaSerializer` used to dump instances of the model.
|
|
30
|
-
// __pydantic_validator__: The `pydantic-core` `SchemaValidator` used to validate instances of the model.
|
|
31
|
-
//
|
|
32
|
-
// __pydantic_fields__: A dictionary of field names and their corresponding [`FieldInfo`][pydantic.fields.FieldInfo] objects.
|
|
33
|
-
// __pydantic_computed_fields__: A dictionary of computed field names and their corresponding [`ComputedFieldInfo`][pydantic.fields.ComputedFieldInfo] objects.
|
|
34
|
-
//
|
|
35
|
-
// __pydantic_extra__: A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra]
|
|
36
|
-
// is set to `'allow'`.
|
|
37
|
-
// __pydantic_fields_set__: The names of fields explicitly set during instantiation.
|
|
38
|
-
// __pydantic_private__: Values of private attributes set on the model instance.
|
|
39
|
-
message CityLocation {
|
|
40
|
-
string city = 1;
|
|
41
|
-
string country = 2;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
|
|
45
|
-
//
|
|
46
|
-
// A base class for creating Pydantic models.
|
|
47
|
-
//
|
|
48
|
-
// Attributes:
|
|
49
|
-
// __class_vars__: The names of the class variables defined on the model.
|
|
50
|
-
// __private_attributes__: Metadata about the private attributes of the model.
|
|
51
|
-
// __signature__: The synthesized `__init__` [`Signature`][inspect.Signature] of the model.
|
|
52
|
-
//
|
|
53
|
-
// __pydantic_complete__: Whether model building is completed, or if there are still undefined fields.
|
|
54
|
-
// __pydantic_core_schema__: The core schema of the model.
|
|
55
|
-
// __pydantic_custom_init__: Whether the model has a custom `__init__` function.
|
|
56
|
-
// __pydantic_decorators__: Metadata containing the decorators defined on the model.
|
|
57
|
-
// This replaces `Model.__validators__` and `Model.__root_validators__` from Pydantic V1.
|
|
58
|
-
// __pydantic_generic_metadata__: Metadata for generic models; contains data used for a similar purpose to
|
|
59
|
-
// __args__, __origin__, __parameters__ in typing-module generics. May eventually be replaced by these.
|
|
60
|
-
// __pydantic_parent_namespace__: Parent namespace of the model, used for automatic rebuilding of models.
|
|
61
|
-
// __pydantic_post_init__: The name of the post-init method for the model, if defined.
|
|
62
|
-
// __pydantic_root_model__: Whether the model is a [`RootModel`][pydantic.root_model.RootModel].
|
|
63
|
-
// __pydantic_serializer__: The `pydantic-core` `SchemaSerializer` used to dump instances of the model.
|
|
64
|
-
// __pydantic_validator__: The `pydantic-core` `SchemaValidator` used to validate instances of the model.
|
|
65
|
-
//
|
|
66
|
-
// __pydantic_fields__: A dictionary of field names and their corresponding [`FieldInfo`][pydantic.fields.FieldInfo] objects.
|
|
67
|
-
// __pydantic_computed_fields__: A dictionary of computed field names and their corresponding [`ComputedFieldInfo`][pydantic.fields.ComputedFieldInfo] objects.
|
|
68
|
-
//
|
|
69
|
-
// __pydantic_extra__: A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra]
|
|
70
|
-
// is set to `'allow'`.
|
|
71
|
-
// __pydantic_fields_set__: The names of fields explicitly set during instantiation.
|
|
72
|
-
// __pydantic_private__: Values of private attributes set on the model instance.
|
|
73
|
-
message Olympics {
|
|
74
|
-
int32 year = 1;
|
|
75
|
-
}
|
|
76
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|