openfeature-provider-flagd 0.2.5__py3-none-any.whl → 0.2.7__py3-none-any.whl
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.
- openfeature/contrib/provider/flagd/provider.py +10 -3
- openfeature/contrib/provider/flagd/resolvers/grpc.py +82 -27
- openfeature/contrib/provider/flagd/resolvers/in_process.py +49 -20
- openfeature/contrib/provider/flagd/resolvers/process/connector/grpc_watcher.py +70 -38
- openfeature/contrib/provider/flagd/resolvers/process/flags.py +11 -14
- openfeature/contrib/provider/flagd/resolvers/process/targeting.py +9 -1
- openfeature/contrib/provider/flagd/resolvers/protocol.py +7 -3
- openfeature/contrib/provider/flagd/resolvers/types.py +7 -0
- openfeature/schemas/protobuf/flagd/evaluation/v1/evaluation_pb2.py +34 -34
- openfeature/schemas/protobuf/flagd/evaluation/v1/evaluation_pb2.pyi +41 -22
- openfeature/schemas/protobuf/flagd/evaluation/v1/evaluation_pb2_grpc.py +2 -2
- openfeature/schemas/protobuf/flagd/evaluation/v1/evaluation_pb2_grpc.pyi +194 -39
- openfeature/schemas/protobuf/flagd/sync/v1/sync_pb2.py +20 -14
- openfeature/schemas/protobuf/flagd/sync/v1/sync_pb2.pyi +33 -10
- openfeature/schemas/protobuf/flagd/sync/v1/sync_pb2_grpc.py +2 -2
- openfeature/schemas/protobuf/flagd/sync/v1/sync_pb2_grpc.pyi +94 -19
- openfeature/schemas/protobuf/schema/v1/schema_pb2.py +2 -2
- openfeature/schemas/protobuf/schema/v1/schema_pb2.pyi +25 -19
- openfeature/schemas/protobuf/schema/v1/schema_pb2_grpc.py +2 -2
- openfeature/schemas/protobuf/schema/v1/schema_pb2_grpc.pyi +194 -39
- openfeature/schemas/protobuf/sync/v1/sync_service_pb2.py +2 -2
- openfeature/schemas/protobuf/sync/v1/sync_service_pb2.pyi +9 -9
- openfeature/schemas/protobuf/sync/v1/sync_service_pb2_grpc.py +2 -2
- openfeature/schemas/protobuf/sync/v1/sync_service_pb2_grpc.pyi +69 -14
- openfeature_provider_flagd-0.2.7.dist-info/METADATA +208 -0
- openfeature_provider_flagd-0.2.7.dist-info/RECORD +37 -0
- {openfeature_provider_flagd-0.2.5.dist-info → openfeature_provider_flagd-0.2.7.dist-info}/WHEEL +1 -1
- openfeature_provider_flagd-0.2.7.dist-info/entry_points.txt +6 -0
- {openfeature_provider_flagd-0.2.5.dist-info → openfeature_provider_flagd-0.2.7.dist-info}/licenses/LICENSE +1 -1
- openfeature/.gitignore +0 -2
- openfeature_provider_flagd-0.2.5.dist-info/METADATA +0 -370
- openfeature_provider_flagd-0.2.5.dist-info/RECORD +0 -36
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: openfeature/schemas/protobuf/flagd/evaluation/v1/evaluation.proto
|
|
5
|
-
# Protobuf Python Version: 6.31.
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -13,7 +13,7 @@ _runtime_version.ValidateProtobufRuntimeVersion(
|
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
15
|
31,
|
|
16
|
-
|
|
16
|
+
1,
|
|
17
17
|
'',
|
|
18
18
|
'openfeature/schemas/protobuf/flagd/evaluation/v1/evaluation.proto'
|
|
19
19
|
)
|
|
@@ -25,7 +25,7 @@ _sym_db = _symbol_database.Default()
|
|
|
25
25
|
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nAopenfeature/schemas/protobuf/flagd/evaluation/v1/evaluation.proto\x12\x13\x66lagd.evaluation.v1\x1a\x1cgoogle/protobuf/struct.proto\"=\n\x11ResolveAllRequest\x12(\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\"\
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nAopenfeature/schemas/protobuf/flagd/evaluation/v1/evaluation.proto\x12\x13\x66lagd.evaluation.v1\x1a\x1cgoogle/protobuf/struct.proto\"=\n\x11ResolveAllRequest\x12(\n\x07\x63ontext\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\"\xce\x01\n\x12ResolveAllResponse\x12\x41\n\x05\x66lags\x18\x01 \x03(\x0b\x32\x32.flagd.evaluation.v1.ResolveAllResponse.FlagsEntry\x12)\n\x08metadata\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x1aJ\n\nFlagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.flagd.evaluation.v1.AnyFlag:\x02\x38\x01\"\xd5\x01\n\x07\x41nyFlag\x12\x0e\n\x06reason\x18\x01 \x01(\t\x12\x0f\n\x07variant\x18\x02 \x01(\t\x12\x14\n\nbool_value\x18\x03 \x01(\x08H\x00\x12\x16\n\x0cstring_value\x18\x04 \x01(\tH\x00\x12\x16\n\x0c\x64ouble_value\x18\x05 \x01(\x01H\x00\x12/\n\x0cobject_value\x18\x06 \x01(\x0b\x32\x17.google.protobuf.StructH\x00\x12)\n\x08metadata\x18\x07 \x01(\x0b\x32\x17.google.protobuf.StructB\x07\n\x05value\"S\n\x15ResolveBooleanRequest\x12\x10\n\x08\x66lag_key\x18\x01 \x01(\t\x12(\n\x07\x63ontext\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\"s\n\x16ResolveBooleanResponse\x12\r\n\x05value\x18\x01 \x01(\x08\x12\x0e\n\x06reason\x18\x02 \x01(\t\x12\x0f\n\x07variant\x18\x03 \x01(\t\x12)\n\x08metadata\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\"R\n\x14ResolveStringRequest\x12\x10\n\x08\x66lag_key\x18\x01 \x01(\t\x12(\n\x07\x63ontext\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\"r\n\x15ResolveStringResponse\x12\r\n\x05value\x18\x01 \x01(\t\x12\x0e\n\x06reason\x18\x02 \x01(\t\x12\x0f\n\x07variant\x18\x03 \x01(\t\x12)\n\x08metadata\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\"Q\n\x13ResolveFloatRequest\x12\x10\n\x08\x66lag_key\x18\x01 \x01(\t\x12(\n\x07\x63ontext\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\"q\n\x14ResolveFloatResponse\x12\r\n\x05value\x18\x01 \x01(\x01\x12\x0e\n\x06reason\x18\x02 \x01(\t\x12\x0f\n\x07variant\x18\x03 \x01(\t\x12)\n\x08metadata\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\"O\n\x11ResolveIntRequest\x12\x10\n\x08\x66lag_key\x18\x01 \x01(\t\x12(\n\x07\x63ontext\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\"o\n\x12ResolveIntResponse\x12\r\n\x05value\x18\x01 \x01(\x03\x12\x0e\n\x06reason\x18\x02 \x01(\t\x12\x0f\n\x07variant\x18\x03 \x01(\t\x12)\n\x08metadata\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\"R\n\x14ResolveObjectRequest\x12\x10\n\x08\x66lag_key\x18\x01 \x01(\t\x12(\n\x07\x63ontext\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\"\x8b\x01\n\x15ResolveObjectResponse\x12&\n\x05value\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x0e\n\x06reason\x18\x02 \x01(\t\x12\x0f\n\x07variant\x18\x03 \x01(\t\x12)\n\x08metadata\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\"J\n\x13\x45ventStreamResponse\x12\x0c\n\x04type\x18\x01 \x01(\t\x12%\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\"\x14\n\x12\x45ventStreamRequest2\xd9\x05\n\x07Service\x12_\n\nResolveAll\x12&.flagd.evaluation.v1.ResolveAllRequest\x1a\'.flagd.evaluation.v1.ResolveAllResponse\"\x00\x12k\n\x0eResolveBoolean\x12*.flagd.evaluation.v1.ResolveBooleanRequest\x1a+.flagd.evaluation.v1.ResolveBooleanResponse\"\x00\x12h\n\rResolveString\x12).flagd.evaluation.v1.ResolveStringRequest\x1a*.flagd.evaluation.v1.ResolveStringResponse\"\x00\x12\x65\n\x0cResolveFloat\x12(.flagd.evaluation.v1.ResolveFloatRequest\x1a).flagd.evaluation.v1.ResolveFloatResponse\"\x00\x12_\n\nResolveInt\x12&.flagd.evaluation.v1.ResolveIntRequest\x1a\'.flagd.evaluation.v1.ResolveIntResponse\"\x00\x12h\n\rResolveObject\x12).flagd.evaluation.v1.ResolveObjectRequest\x1a*.flagd.evaluation.v1.ResolveObjectResponse\"\x00\x12\x64\n\x0b\x45ventStream\x12\'.flagd.evaluation.v1.EventStreamRequest\x1a(.flagd.evaluation.v1.EventStreamResponse\"\x00\x30\x01\x42\xc6\x01\n%dev.openfeature.flagd.grpc.evaluationZ\x13\x66lagd/evaluation/v1\xaa\x02!OpenFeature.Flagd.Grpc.Evaluation\xca\x02\x32OpenFeature\\Providers\\Flagd\\Schema\\Grpc\\Evaluation\xea\x02.OpenFeature::Flagd::Provider::Grpc::Evaluationb\x06proto3')
|
|
29
29
|
|
|
30
30
|
_globals = globals()
|
|
31
31
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -38,35 +38,35 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
38
38
|
_globals['_RESOLVEALLREQUEST']._serialized_start=120
|
|
39
39
|
_globals['_RESOLVEALLREQUEST']._serialized_end=181
|
|
40
40
|
_globals['_RESOLVEALLRESPONSE']._serialized_start=184
|
|
41
|
-
_globals['_RESOLVEALLRESPONSE']._serialized_end=
|
|
42
|
-
_globals['_RESOLVEALLRESPONSE_FLAGSENTRY']._serialized_start=
|
|
43
|
-
_globals['_RESOLVEALLRESPONSE_FLAGSENTRY']._serialized_end=
|
|
44
|
-
_globals['_ANYFLAG']._serialized_start=
|
|
45
|
-
_globals['_ANYFLAG']._serialized_end=
|
|
46
|
-
_globals['_RESOLVEBOOLEANREQUEST']._serialized_start=
|
|
47
|
-
_globals['_RESOLVEBOOLEANREQUEST']._serialized_end=
|
|
48
|
-
_globals['_RESOLVEBOOLEANRESPONSE']._serialized_start=
|
|
49
|
-
_globals['_RESOLVEBOOLEANRESPONSE']._serialized_end=
|
|
50
|
-
_globals['_RESOLVESTRINGREQUEST']._serialized_start=
|
|
51
|
-
_globals['_RESOLVESTRINGREQUEST']._serialized_end=
|
|
52
|
-
_globals['_RESOLVESTRINGRESPONSE']._serialized_start=
|
|
53
|
-
_globals['_RESOLVESTRINGRESPONSE']._serialized_end=
|
|
54
|
-
_globals['_RESOLVEFLOATREQUEST']._serialized_start=
|
|
55
|
-
_globals['_RESOLVEFLOATREQUEST']._serialized_end=
|
|
56
|
-
_globals['_RESOLVEFLOATRESPONSE']._serialized_start=
|
|
57
|
-
_globals['_RESOLVEFLOATRESPONSE']._serialized_end=
|
|
58
|
-
_globals['_RESOLVEINTREQUEST']._serialized_start=
|
|
59
|
-
_globals['_RESOLVEINTREQUEST']._serialized_end=
|
|
60
|
-
_globals['_RESOLVEINTRESPONSE']._serialized_start=
|
|
61
|
-
_globals['_RESOLVEINTRESPONSE']._serialized_end=
|
|
62
|
-
_globals['_RESOLVEOBJECTREQUEST']._serialized_start=
|
|
63
|
-
_globals['_RESOLVEOBJECTREQUEST']._serialized_end=
|
|
64
|
-
_globals['_RESOLVEOBJECTRESPONSE']._serialized_start=
|
|
65
|
-
_globals['_RESOLVEOBJECTRESPONSE']._serialized_end=
|
|
66
|
-
_globals['_EVENTSTREAMRESPONSE']._serialized_start=
|
|
67
|
-
_globals['_EVENTSTREAMRESPONSE']._serialized_end=
|
|
68
|
-
_globals['_EVENTSTREAMREQUEST']._serialized_start=
|
|
69
|
-
_globals['_EVENTSTREAMREQUEST']._serialized_end=
|
|
70
|
-
_globals['_SERVICE']._serialized_start=
|
|
71
|
-
_globals['_SERVICE']._serialized_end=
|
|
41
|
+
_globals['_RESOLVEALLRESPONSE']._serialized_end=390
|
|
42
|
+
_globals['_RESOLVEALLRESPONSE_FLAGSENTRY']._serialized_start=316
|
|
43
|
+
_globals['_RESOLVEALLRESPONSE_FLAGSENTRY']._serialized_end=390
|
|
44
|
+
_globals['_ANYFLAG']._serialized_start=393
|
|
45
|
+
_globals['_ANYFLAG']._serialized_end=606
|
|
46
|
+
_globals['_RESOLVEBOOLEANREQUEST']._serialized_start=608
|
|
47
|
+
_globals['_RESOLVEBOOLEANREQUEST']._serialized_end=691
|
|
48
|
+
_globals['_RESOLVEBOOLEANRESPONSE']._serialized_start=693
|
|
49
|
+
_globals['_RESOLVEBOOLEANRESPONSE']._serialized_end=808
|
|
50
|
+
_globals['_RESOLVESTRINGREQUEST']._serialized_start=810
|
|
51
|
+
_globals['_RESOLVESTRINGREQUEST']._serialized_end=892
|
|
52
|
+
_globals['_RESOLVESTRINGRESPONSE']._serialized_start=894
|
|
53
|
+
_globals['_RESOLVESTRINGRESPONSE']._serialized_end=1008
|
|
54
|
+
_globals['_RESOLVEFLOATREQUEST']._serialized_start=1010
|
|
55
|
+
_globals['_RESOLVEFLOATREQUEST']._serialized_end=1091
|
|
56
|
+
_globals['_RESOLVEFLOATRESPONSE']._serialized_start=1093
|
|
57
|
+
_globals['_RESOLVEFLOATRESPONSE']._serialized_end=1206
|
|
58
|
+
_globals['_RESOLVEINTREQUEST']._serialized_start=1208
|
|
59
|
+
_globals['_RESOLVEINTREQUEST']._serialized_end=1287
|
|
60
|
+
_globals['_RESOLVEINTRESPONSE']._serialized_start=1289
|
|
61
|
+
_globals['_RESOLVEINTRESPONSE']._serialized_end=1400
|
|
62
|
+
_globals['_RESOLVEOBJECTREQUEST']._serialized_start=1402
|
|
63
|
+
_globals['_RESOLVEOBJECTREQUEST']._serialized_end=1484
|
|
64
|
+
_globals['_RESOLVEOBJECTRESPONSE']._serialized_start=1487
|
|
65
|
+
_globals['_RESOLVEOBJECTRESPONSE']._serialized_end=1626
|
|
66
|
+
_globals['_EVENTSTREAMRESPONSE']._serialized_start=1628
|
|
67
|
+
_globals['_EVENTSTREAMRESPONSE']._serialized_end=1702
|
|
68
|
+
_globals['_EVENTSTREAMREQUEST']._serialized_start=1704
|
|
69
|
+
_globals['_EVENTSTREAMREQUEST']._serialized_end=1724
|
|
70
|
+
_globals['_SERVICE']._serialized_start=1727
|
|
71
|
+
_globals['_SERVICE']._serialized_end=2456
|
|
72
72
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -15,8 +15,14 @@ import google.protobuf.descriptor
|
|
|
15
15
|
import google.protobuf.internal.containers
|
|
16
16
|
import google.protobuf.message
|
|
17
17
|
import google.protobuf.struct_pb2
|
|
18
|
+
import sys
|
|
18
19
|
import typing
|
|
19
20
|
|
|
21
|
+
if sys.version_info >= (3, 10):
|
|
22
|
+
import typing as typing_extensions
|
|
23
|
+
else:
|
|
24
|
+
import typing_extensions
|
|
25
|
+
|
|
20
26
|
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
21
27
|
|
|
22
28
|
@typing.final
|
|
@@ -38,7 +44,7 @@ class ResolveAllRequest(google.protobuf.message.Message):
|
|
|
38
44
|
def HasField(self, field_name: typing.Literal["context", b"context"]) -> builtins.bool: ...
|
|
39
45
|
def ClearField(self, field_name: typing.Literal["context", b"context"]) -> None: ...
|
|
40
46
|
|
|
41
|
-
|
|
47
|
+
Global___ResolveAllRequest: typing_extensions.TypeAlias = ResolveAllRequest
|
|
42
48
|
|
|
43
49
|
@typing.final
|
|
44
50
|
class ResolveAllResponse(google.protobuf.message.Message):
|
|
@@ -54,29 +60,36 @@ class ResolveAllResponse(google.protobuf.message.Message):
|
|
|
54
60
|
VALUE_FIELD_NUMBER: builtins.int
|
|
55
61
|
key: builtins.str
|
|
56
62
|
@property
|
|
57
|
-
def value(self) ->
|
|
63
|
+
def value(self) -> Global___AnyFlag: ...
|
|
58
64
|
def __init__(
|
|
59
65
|
self,
|
|
60
66
|
*,
|
|
61
67
|
key: builtins.str = ...,
|
|
62
|
-
value:
|
|
68
|
+
value: Global___AnyFlag | None = ...,
|
|
63
69
|
) -> None: ...
|
|
64
70
|
def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
|
|
65
71
|
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
66
72
|
|
|
67
73
|
FLAGS_FIELD_NUMBER: builtins.int
|
|
74
|
+
METADATA_FIELD_NUMBER: builtins.int
|
|
68
75
|
@property
|
|
69
|
-
def flags(self) -> google.protobuf.internal.containers.MessageMap[builtins.str,
|
|
76
|
+
def flags(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, Global___AnyFlag]:
|
|
70
77
|
"""Object structure describing the evaluated flags for the provided context."""
|
|
71
78
|
|
|
79
|
+
@property
|
|
80
|
+
def metadata(self) -> google.protobuf.struct_pb2.Struct:
|
|
81
|
+
"""Metadata for the bulk evaluation"""
|
|
82
|
+
|
|
72
83
|
def __init__(
|
|
73
84
|
self,
|
|
74
85
|
*,
|
|
75
|
-
flags: collections.abc.Mapping[builtins.str,
|
|
86
|
+
flags: collections.abc.Mapping[builtins.str, Global___AnyFlag] | None = ...,
|
|
87
|
+
metadata: google.protobuf.struct_pb2.Struct | None = ...,
|
|
76
88
|
) -> None: ...
|
|
77
|
-
def
|
|
89
|
+
def HasField(self, field_name: typing.Literal["metadata", b"metadata"]) -> builtins.bool: ...
|
|
90
|
+
def ClearField(self, field_name: typing.Literal["flags", b"flags", "metadata", b"metadata"]) -> None: ...
|
|
78
91
|
|
|
79
|
-
|
|
92
|
+
Global___ResolveAllResponse: typing_extensions.TypeAlias = ResolveAllResponse
|
|
80
93
|
|
|
81
94
|
@typing.final
|
|
82
95
|
class AnyFlag(google.protobuf.message.Message):
|
|
@@ -90,6 +103,7 @@ class AnyFlag(google.protobuf.message.Message):
|
|
|
90
103
|
STRING_VALUE_FIELD_NUMBER: builtins.int
|
|
91
104
|
DOUBLE_VALUE_FIELD_NUMBER: builtins.int
|
|
92
105
|
OBJECT_VALUE_FIELD_NUMBER: builtins.int
|
|
106
|
+
METADATA_FIELD_NUMBER: builtins.int
|
|
93
107
|
reason: builtins.str
|
|
94
108
|
"""The reason for the given return value, see https://openfeature.dev/docs/specification/types#resolution-details"""
|
|
95
109
|
variant: builtins.str
|
|
@@ -99,6 +113,10 @@ class AnyFlag(google.protobuf.message.Message):
|
|
|
99
113
|
double_value: builtins.float
|
|
100
114
|
@property
|
|
101
115
|
def object_value(self) -> google.protobuf.struct_pb2.Struct: ...
|
|
116
|
+
@property
|
|
117
|
+
def metadata(self) -> google.protobuf.struct_pb2.Struct:
|
|
118
|
+
"""Metadata for this evaluation"""
|
|
119
|
+
|
|
102
120
|
def __init__(
|
|
103
121
|
self,
|
|
104
122
|
*,
|
|
@@ -108,12 +126,13 @@ class AnyFlag(google.protobuf.message.Message):
|
|
|
108
126
|
string_value: builtins.str = ...,
|
|
109
127
|
double_value: builtins.float = ...,
|
|
110
128
|
object_value: google.protobuf.struct_pb2.Struct | None = ...,
|
|
129
|
+
metadata: google.protobuf.struct_pb2.Struct | None = ...,
|
|
111
130
|
) -> None: ...
|
|
112
|
-
def HasField(self, field_name: typing.Literal["bool_value", b"bool_value", "double_value", b"double_value", "object_value", b"object_value", "string_value", b"string_value", "value", b"value"]) -> builtins.bool: ...
|
|
113
|
-
def ClearField(self, field_name: typing.Literal["bool_value", b"bool_value", "double_value", b"double_value", "object_value", b"object_value", "reason", b"reason", "string_value", b"string_value", "value", b"value", "variant", b"variant"]) -> None: ...
|
|
131
|
+
def HasField(self, field_name: typing.Literal["bool_value", b"bool_value", "double_value", b"double_value", "metadata", b"metadata", "object_value", b"object_value", "string_value", b"string_value", "value", b"value"]) -> builtins.bool: ...
|
|
132
|
+
def ClearField(self, field_name: typing.Literal["bool_value", b"bool_value", "double_value", b"double_value", "metadata", b"metadata", "object_value", b"object_value", "reason", b"reason", "string_value", b"string_value", "value", b"value", "variant", b"variant"]) -> None: ...
|
|
114
133
|
def WhichOneof(self, oneof_group: typing.Literal["value", b"value"]) -> typing.Literal["bool_value", "string_value", "double_value", "object_value"] | None: ...
|
|
115
134
|
|
|
116
|
-
|
|
135
|
+
Global___AnyFlag: typing_extensions.TypeAlias = AnyFlag
|
|
117
136
|
|
|
118
137
|
@typing.final
|
|
119
138
|
class ResolveBooleanRequest(google.protobuf.message.Message):
|
|
@@ -138,7 +157,7 @@ class ResolveBooleanRequest(google.protobuf.message.Message):
|
|
|
138
157
|
def HasField(self, field_name: typing.Literal["context", b"context"]) -> builtins.bool: ...
|
|
139
158
|
def ClearField(self, field_name: typing.Literal["context", b"context", "flag_key", b"flag_key"]) -> None: ...
|
|
140
159
|
|
|
141
|
-
|
|
160
|
+
Global___ResolveBooleanRequest: typing_extensions.TypeAlias = ResolveBooleanRequest
|
|
142
161
|
|
|
143
162
|
@typing.final
|
|
144
163
|
class ResolveBooleanResponse(google.protobuf.message.Message):
|
|
@@ -171,7 +190,7 @@ class ResolveBooleanResponse(google.protobuf.message.Message):
|
|
|
171
190
|
def HasField(self, field_name: typing.Literal["metadata", b"metadata"]) -> builtins.bool: ...
|
|
172
191
|
def ClearField(self, field_name: typing.Literal["metadata", b"metadata", "reason", b"reason", "value", b"value", "variant", b"variant"]) -> None: ...
|
|
173
192
|
|
|
174
|
-
|
|
193
|
+
Global___ResolveBooleanResponse: typing_extensions.TypeAlias = ResolveBooleanResponse
|
|
175
194
|
|
|
176
195
|
@typing.final
|
|
177
196
|
class ResolveStringRequest(google.protobuf.message.Message):
|
|
@@ -196,7 +215,7 @@ class ResolveStringRequest(google.protobuf.message.Message):
|
|
|
196
215
|
def HasField(self, field_name: typing.Literal["context", b"context"]) -> builtins.bool: ...
|
|
197
216
|
def ClearField(self, field_name: typing.Literal["context", b"context", "flag_key", b"flag_key"]) -> None: ...
|
|
198
217
|
|
|
199
|
-
|
|
218
|
+
Global___ResolveStringRequest: typing_extensions.TypeAlias = ResolveStringRequest
|
|
200
219
|
|
|
201
220
|
@typing.final
|
|
202
221
|
class ResolveStringResponse(google.protobuf.message.Message):
|
|
@@ -229,7 +248,7 @@ class ResolveStringResponse(google.protobuf.message.Message):
|
|
|
229
248
|
def HasField(self, field_name: typing.Literal["metadata", b"metadata"]) -> builtins.bool: ...
|
|
230
249
|
def ClearField(self, field_name: typing.Literal["metadata", b"metadata", "reason", b"reason", "value", b"value", "variant", b"variant"]) -> None: ...
|
|
231
250
|
|
|
232
|
-
|
|
251
|
+
Global___ResolveStringResponse: typing_extensions.TypeAlias = ResolveStringResponse
|
|
233
252
|
|
|
234
253
|
@typing.final
|
|
235
254
|
class ResolveFloatRequest(google.protobuf.message.Message):
|
|
@@ -254,7 +273,7 @@ class ResolveFloatRequest(google.protobuf.message.Message):
|
|
|
254
273
|
def HasField(self, field_name: typing.Literal["context", b"context"]) -> builtins.bool: ...
|
|
255
274
|
def ClearField(self, field_name: typing.Literal["context", b"context", "flag_key", b"flag_key"]) -> None: ...
|
|
256
275
|
|
|
257
|
-
|
|
276
|
+
Global___ResolveFloatRequest: typing_extensions.TypeAlias = ResolveFloatRequest
|
|
258
277
|
|
|
259
278
|
@typing.final
|
|
260
279
|
class ResolveFloatResponse(google.protobuf.message.Message):
|
|
@@ -287,7 +306,7 @@ class ResolveFloatResponse(google.protobuf.message.Message):
|
|
|
287
306
|
def HasField(self, field_name: typing.Literal["metadata", b"metadata"]) -> builtins.bool: ...
|
|
288
307
|
def ClearField(self, field_name: typing.Literal["metadata", b"metadata", "reason", b"reason", "value", b"value", "variant", b"variant"]) -> None: ...
|
|
289
308
|
|
|
290
|
-
|
|
309
|
+
Global___ResolveFloatResponse: typing_extensions.TypeAlias = ResolveFloatResponse
|
|
291
310
|
|
|
292
311
|
@typing.final
|
|
293
312
|
class ResolveIntRequest(google.protobuf.message.Message):
|
|
@@ -312,7 +331,7 @@ class ResolveIntRequest(google.protobuf.message.Message):
|
|
|
312
331
|
def HasField(self, field_name: typing.Literal["context", b"context"]) -> builtins.bool: ...
|
|
313
332
|
def ClearField(self, field_name: typing.Literal["context", b"context", "flag_key", b"flag_key"]) -> None: ...
|
|
314
333
|
|
|
315
|
-
|
|
334
|
+
Global___ResolveIntRequest: typing_extensions.TypeAlias = ResolveIntRequest
|
|
316
335
|
|
|
317
336
|
@typing.final
|
|
318
337
|
class ResolveIntResponse(google.protobuf.message.Message):
|
|
@@ -345,7 +364,7 @@ class ResolveIntResponse(google.protobuf.message.Message):
|
|
|
345
364
|
def HasField(self, field_name: typing.Literal["metadata", b"metadata"]) -> builtins.bool: ...
|
|
346
365
|
def ClearField(self, field_name: typing.Literal["metadata", b"metadata", "reason", b"reason", "value", b"value", "variant", b"variant"]) -> None: ...
|
|
347
366
|
|
|
348
|
-
|
|
367
|
+
Global___ResolveIntResponse: typing_extensions.TypeAlias = ResolveIntResponse
|
|
349
368
|
|
|
350
369
|
@typing.final
|
|
351
370
|
class ResolveObjectRequest(google.protobuf.message.Message):
|
|
@@ -370,7 +389,7 @@ class ResolveObjectRequest(google.protobuf.message.Message):
|
|
|
370
389
|
def HasField(self, field_name: typing.Literal["context", b"context"]) -> builtins.bool: ...
|
|
371
390
|
def ClearField(self, field_name: typing.Literal["context", b"context", "flag_key", b"flag_key"]) -> None: ...
|
|
372
391
|
|
|
373
|
-
|
|
392
|
+
Global___ResolveObjectRequest: typing_extensions.TypeAlias = ResolveObjectRequest
|
|
374
393
|
|
|
375
394
|
@typing.final
|
|
376
395
|
class ResolveObjectResponse(google.protobuf.message.Message):
|
|
@@ -408,7 +427,7 @@ class ResolveObjectResponse(google.protobuf.message.Message):
|
|
|
408
427
|
def HasField(self, field_name: typing.Literal["metadata", b"metadata", "value", b"value"]) -> builtins.bool: ...
|
|
409
428
|
def ClearField(self, field_name: typing.Literal["metadata", b"metadata", "reason", b"reason", "value", b"value", "variant", b"variant"]) -> None: ...
|
|
410
429
|
|
|
411
|
-
|
|
430
|
+
Global___ResolveObjectResponse: typing_extensions.TypeAlias = ResolveObjectResponse
|
|
412
431
|
|
|
413
432
|
@typing.final
|
|
414
433
|
class EventStreamResponse(google.protobuf.message.Message):
|
|
@@ -435,7 +454,7 @@ class EventStreamResponse(google.protobuf.message.Message):
|
|
|
435
454
|
def HasField(self, field_name: typing.Literal["data", b"data"]) -> builtins.bool: ...
|
|
436
455
|
def ClearField(self, field_name: typing.Literal["data", b"data", "type", b"type"]) -> None: ...
|
|
437
456
|
|
|
438
|
-
|
|
457
|
+
Global___EventStreamResponse: typing_extensions.TypeAlias = EventStreamResponse
|
|
439
458
|
|
|
440
459
|
@typing.final
|
|
441
460
|
class EventStreamRequest(google.protobuf.message.Message):
|
|
@@ -447,4 +466,4 @@ class EventStreamRequest(google.protobuf.message.Message):
|
|
|
447
466
|
self,
|
|
448
467
|
) -> None: ...
|
|
449
468
|
|
|
450
|
-
|
|
469
|
+
Global___EventStreamRequest: typing_extensions.TypeAlias = EventStreamRequest
|
|
@@ -5,7 +5,7 @@ import warnings
|
|
|
5
5
|
|
|
6
6
|
from openfeature.schemas.protobuf.flagd.evaluation.v1 import evaluation_pb2 as openfeature_dot_schemas_dot_protobuf_dot_flagd_dot_evaluation_dot_v1_dot_evaluation__pb2
|
|
7
7
|
|
|
8
|
-
GRPC_GENERATED_VERSION = '1.
|
|
8
|
+
GRPC_GENERATED_VERSION = '1.76.0'
|
|
9
9
|
GRPC_VERSION = grpc.__version__
|
|
10
10
|
_version_not_supported = False
|
|
11
11
|
|
|
@@ -18,7 +18,7 @@ except ImportError:
|
|
|
18
18
|
if _version_not_supported:
|
|
19
19
|
raise RuntimeError(
|
|
20
20
|
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
21
|
-
+
|
|
21
|
+
+ ' but the generated code in openfeature/schemas/protobuf/flagd/evaluation/v1/evaluation_pb2_grpc.py depends on'
|
|
22
22
|
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
23
23
|
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
24
24
|
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
@@ -14,8 +14,14 @@ import collections.abc
|
|
|
14
14
|
import grpc
|
|
15
15
|
import grpc.aio
|
|
16
16
|
import openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2
|
|
17
|
+
import sys
|
|
17
18
|
import typing
|
|
18
19
|
|
|
20
|
+
if sys.version_info >= (3, 13):
|
|
21
|
+
import typing as typing_extensions
|
|
22
|
+
else:
|
|
23
|
+
import typing_extensions
|
|
24
|
+
|
|
19
25
|
_T = typing.TypeVar("_T")
|
|
20
26
|
|
|
21
27
|
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
@@ -23,82 +29,231 @@ class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Ite
|
|
|
23
29
|
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
24
30
|
...
|
|
25
31
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
32
|
+
GRPC_GENERATED_VERSION: str
|
|
33
|
+
GRPC_VERSION: str
|
|
34
|
+
_ServiceResolveAllType = typing_extensions.TypeVar(
|
|
35
|
+
'_ServiceResolveAllType',
|
|
36
|
+
grpc.UnaryUnaryMultiCallable[
|
|
37
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveAllRequest,
|
|
38
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveAllResponse,
|
|
39
|
+
],
|
|
40
|
+
grpc.aio.UnaryUnaryMultiCallable[
|
|
41
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveAllRequest,
|
|
42
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveAllResponse,
|
|
43
|
+
],
|
|
44
|
+
default=grpc.UnaryUnaryMultiCallable[
|
|
31
45
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveAllRequest,
|
|
32
46
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveAllResponse,
|
|
33
|
-
]
|
|
47
|
+
],
|
|
48
|
+
)
|
|
34
49
|
|
|
35
|
-
|
|
50
|
+
_ServiceResolveBooleanType = typing_extensions.TypeVar(
|
|
51
|
+
'_ServiceResolveBooleanType',
|
|
52
|
+
grpc.UnaryUnaryMultiCallable[
|
|
53
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveBooleanRequest,
|
|
54
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveBooleanResponse,
|
|
55
|
+
],
|
|
56
|
+
grpc.aio.UnaryUnaryMultiCallable[
|
|
36
57
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveBooleanRequest,
|
|
37
58
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveBooleanResponse,
|
|
38
|
-
]
|
|
59
|
+
],
|
|
60
|
+
default=grpc.UnaryUnaryMultiCallable[
|
|
61
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveBooleanRequest,
|
|
62
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveBooleanResponse,
|
|
63
|
+
],
|
|
64
|
+
)
|
|
39
65
|
|
|
40
|
-
|
|
66
|
+
_ServiceResolveStringType = typing_extensions.TypeVar(
|
|
67
|
+
'_ServiceResolveStringType',
|
|
68
|
+
grpc.UnaryUnaryMultiCallable[
|
|
41
69
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveStringRequest,
|
|
42
70
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveStringResponse,
|
|
43
|
-
]
|
|
71
|
+
],
|
|
72
|
+
grpc.aio.UnaryUnaryMultiCallable[
|
|
73
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveStringRequest,
|
|
74
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveStringResponse,
|
|
75
|
+
],
|
|
76
|
+
default=grpc.UnaryUnaryMultiCallable[
|
|
77
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveStringRequest,
|
|
78
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveStringResponse,
|
|
79
|
+
],
|
|
80
|
+
)
|
|
44
81
|
|
|
45
|
-
|
|
82
|
+
_ServiceResolveFloatType = typing_extensions.TypeVar(
|
|
83
|
+
'_ServiceResolveFloatType',
|
|
84
|
+
grpc.UnaryUnaryMultiCallable[
|
|
46
85
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveFloatRequest,
|
|
47
86
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveFloatResponse,
|
|
48
|
-
]
|
|
87
|
+
],
|
|
88
|
+
grpc.aio.UnaryUnaryMultiCallable[
|
|
89
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveFloatRequest,
|
|
90
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveFloatResponse,
|
|
91
|
+
],
|
|
92
|
+
default=grpc.UnaryUnaryMultiCallable[
|
|
93
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveFloatRequest,
|
|
94
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveFloatResponse,
|
|
95
|
+
],
|
|
96
|
+
)
|
|
49
97
|
|
|
50
|
-
|
|
98
|
+
_ServiceResolveIntType = typing_extensions.TypeVar(
|
|
99
|
+
'_ServiceResolveIntType',
|
|
100
|
+
grpc.UnaryUnaryMultiCallable[
|
|
101
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveIntRequest,
|
|
102
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveIntResponse,
|
|
103
|
+
],
|
|
104
|
+
grpc.aio.UnaryUnaryMultiCallable[
|
|
105
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveIntRequest,
|
|
106
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveIntResponse,
|
|
107
|
+
],
|
|
108
|
+
default=grpc.UnaryUnaryMultiCallable[
|
|
51
109
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveIntRequest,
|
|
52
110
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveIntResponse,
|
|
53
|
-
]
|
|
111
|
+
],
|
|
112
|
+
)
|
|
54
113
|
|
|
55
|
-
|
|
114
|
+
_ServiceResolveObjectType = typing_extensions.TypeVar(
|
|
115
|
+
'_ServiceResolveObjectType',
|
|
116
|
+
grpc.UnaryUnaryMultiCallable[
|
|
56
117
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveObjectRequest,
|
|
57
118
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveObjectResponse,
|
|
58
|
-
]
|
|
119
|
+
],
|
|
120
|
+
grpc.aio.UnaryUnaryMultiCallable[
|
|
121
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveObjectRequest,
|
|
122
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveObjectResponse,
|
|
123
|
+
],
|
|
124
|
+
default=grpc.UnaryUnaryMultiCallable[
|
|
125
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveObjectRequest,
|
|
126
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveObjectResponse,
|
|
127
|
+
],
|
|
128
|
+
)
|
|
59
129
|
|
|
60
|
-
|
|
130
|
+
_ServiceEventStreamType = typing_extensions.TypeVar(
|
|
131
|
+
'_ServiceEventStreamType',
|
|
132
|
+
grpc.UnaryStreamMultiCallable[
|
|
133
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.EventStreamRequest,
|
|
134
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.EventStreamResponse,
|
|
135
|
+
],
|
|
136
|
+
grpc.aio.UnaryStreamMultiCallable[
|
|
61
137
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.EventStreamRequest,
|
|
62
138
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.EventStreamResponse,
|
|
63
|
-
]
|
|
139
|
+
],
|
|
140
|
+
default=grpc.UnaryStreamMultiCallable[
|
|
141
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.EventStreamRequest,
|
|
142
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.EventStreamResponse,
|
|
143
|
+
],
|
|
144
|
+
)
|
|
64
145
|
|
|
65
|
-
class
|
|
146
|
+
class ServiceStub(typing.Generic[_ServiceResolveAllType, _ServiceResolveBooleanType, _ServiceResolveStringType, _ServiceResolveFloatType, _ServiceResolveIntType, _ServiceResolveObjectType, _ServiceEventStreamType]):
|
|
66
147
|
"""Service defines the exposed rpcs of flagd"""
|
|
67
148
|
|
|
68
|
-
|
|
149
|
+
@typing.overload
|
|
150
|
+
def __init__(self: ServiceStub[
|
|
151
|
+
grpc.UnaryUnaryMultiCallable[
|
|
152
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveAllRequest,
|
|
153
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveAllResponse,
|
|
154
|
+
],
|
|
155
|
+
grpc.UnaryUnaryMultiCallable[
|
|
156
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveBooleanRequest,
|
|
157
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveBooleanResponse,
|
|
158
|
+
],
|
|
159
|
+
grpc.UnaryUnaryMultiCallable[
|
|
160
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveStringRequest,
|
|
161
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveStringResponse,
|
|
162
|
+
],
|
|
163
|
+
grpc.UnaryUnaryMultiCallable[
|
|
164
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveFloatRequest,
|
|
165
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveFloatResponse,
|
|
166
|
+
],
|
|
167
|
+
grpc.UnaryUnaryMultiCallable[
|
|
168
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveIntRequest,
|
|
169
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveIntResponse,
|
|
170
|
+
],
|
|
171
|
+
grpc.UnaryUnaryMultiCallable[
|
|
172
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveObjectRequest,
|
|
173
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveObjectResponse,
|
|
174
|
+
],
|
|
175
|
+
grpc.UnaryStreamMultiCallable[
|
|
176
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.EventStreamRequest,
|
|
177
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.EventStreamResponse,
|
|
178
|
+
],
|
|
179
|
+
], channel: grpc.Channel) -> None: ...
|
|
180
|
+
|
|
181
|
+
@typing.overload
|
|
182
|
+
def __init__(self: ServiceStub[
|
|
183
|
+
grpc.aio.UnaryUnaryMultiCallable[
|
|
184
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveAllRequest,
|
|
185
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveAllResponse,
|
|
186
|
+
],
|
|
187
|
+
grpc.aio.UnaryUnaryMultiCallable[
|
|
188
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveBooleanRequest,
|
|
189
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveBooleanResponse,
|
|
190
|
+
],
|
|
191
|
+
grpc.aio.UnaryUnaryMultiCallable[
|
|
192
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveStringRequest,
|
|
193
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveStringResponse,
|
|
194
|
+
],
|
|
195
|
+
grpc.aio.UnaryUnaryMultiCallable[
|
|
196
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveFloatRequest,
|
|
197
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveFloatResponse,
|
|
198
|
+
],
|
|
199
|
+
grpc.aio.UnaryUnaryMultiCallable[
|
|
200
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveIntRequest,
|
|
201
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveIntResponse,
|
|
202
|
+
],
|
|
203
|
+
grpc.aio.UnaryUnaryMultiCallable[
|
|
204
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveObjectRequest,
|
|
205
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveObjectResponse,
|
|
206
|
+
],
|
|
207
|
+
grpc.aio.UnaryStreamMultiCallable[
|
|
208
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.EventStreamRequest,
|
|
209
|
+
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.EventStreamResponse,
|
|
210
|
+
],
|
|
211
|
+
], channel: grpc.aio.Channel) -> None: ...
|
|
212
|
+
|
|
213
|
+
ResolveAll: _ServiceResolveAllType
|
|
214
|
+
|
|
215
|
+
ResolveBoolean: _ServiceResolveBooleanType
|
|
216
|
+
|
|
217
|
+
ResolveString: _ServiceResolveStringType
|
|
218
|
+
|
|
219
|
+
ResolveFloat: _ServiceResolveFloatType
|
|
220
|
+
|
|
221
|
+
ResolveInt: _ServiceResolveIntType
|
|
222
|
+
|
|
223
|
+
ResolveObject: _ServiceResolveObjectType
|
|
224
|
+
|
|
225
|
+
EventStream: _ServiceEventStreamType
|
|
226
|
+
|
|
227
|
+
ServiceAsyncStub: typing_extensions.TypeAlias = ServiceStub[
|
|
228
|
+
grpc.aio.UnaryUnaryMultiCallable[
|
|
69
229
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveAllRequest,
|
|
70
230
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveAllResponse,
|
|
71
|
-
]
|
|
72
|
-
|
|
73
|
-
ResolveBoolean: grpc.aio.UnaryUnaryMultiCallable[
|
|
231
|
+
],
|
|
232
|
+
grpc.aio.UnaryUnaryMultiCallable[
|
|
74
233
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveBooleanRequest,
|
|
75
234
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveBooleanResponse,
|
|
76
|
-
]
|
|
77
|
-
|
|
78
|
-
ResolveString: grpc.aio.UnaryUnaryMultiCallable[
|
|
235
|
+
],
|
|
236
|
+
grpc.aio.UnaryUnaryMultiCallable[
|
|
79
237
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveStringRequest,
|
|
80
238
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveStringResponse,
|
|
81
|
-
]
|
|
82
|
-
|
|
83
|
-
ResolveFloat: grpc.aio.UnaryUnaryMultiCallable[
|
|
239
|
+
],
|
|
240
|
+
grpc.aio.UnaryUnaryMultiCallable[
|
|
84
241
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveFloatRequest,
|
|
85
242
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveFloatResponse,
|
|
86
|
-
]
|
|
87
|
-
|
|
88
|
-
ResolveInt: grpc.aio.UnaryUnaryMultiCallable[
|
|
243
|
+
],
|
|
244
|
+
grpc.aio.UnaryUnaryMultiCallable[
|
|
89
245
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveIntRequest,
|
|
90
246
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveIntResponse,
|
|
91
|
-
]
|
|
92
|
-
|
|
93
|
-
ResolveObject: grpc.aio.UnaryUnaryMultiCallable[
|
|
247
|
+
],
|
|
248
|
+
grpc.aio.UnaryUnaryMultiCallable[
|
|
94
249
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveObjectRequest,
|
|
95
250
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.ResolveObjectResponse,
|
|
96
|
-
]
|
|
97
|
-
|
|
98
|
-
EventStream: grpc.aio.UnaryStreamMultiCallable[
|
|
251
|
+
],
|
|
252
|
+
grpc.aio.UnaryStreamMultiCallable[
|
|
99
253
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.EventStreamRequest,
|
|
100
254
|
openfeature.schemas.protobuf.flagd.evaluation.v1.evaluation_pb2.EventStreamResponse,
|
|
101
|
-
]
|
|
255
|
+
],
|
|
256
|
+
]
|
|
102
257
|
|
|
103
258
|
class ServiceServicer(metaclass=abc.ABCMeta):
|
|
104
259
|
"""Service defines the exposed rpcs of flagd"""
|