valkey-glide 1.3.5rc5__cp312-cp312-macosx_11_0_arm64.whl → 2.0.0__cp312-cp312-macosx_11_0_arm64.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.

Potentially problematic release.


This version of valkey-glide might be problematic. Click here for more details.

Files changed (36) hide show
  1. glide/__init__.py +32 -8
  2. glide/async_commands/{transaction.py → batch.py} +1420 -992
  3. glide/async_commands/batch_options.py +261 -0
  4. glide/async_commands/bitmap.py +94 -85
  5. glide/async_commands/cluster_commands.py +293 -126
  6. glide/async_commands/command_args.py +7 -6
  7. glide/async_commands/core.py +1313 -721
  8. glide/async_commands/server_modules/ft.py +83 -14
  9. glide/async_commands/server_modules/ft_options/ft_aggregate_options.py +15 -8
  10. glide/async_commands/server_modules/ft_options/ft_create_options.py +23 -11
  11. glide/async_commands/server_modules/ft_options/ft_profile_options.py +12 -7
  12. glide/async_commands/server_modules/ft_options/ft_search_options.py +12 -6
  13. glide/async_commands/server_modules/glide_json.py +134 -43
  14. glide/async_commands/server_modules/json_batch.py +157 -127
  15. glide/async_commands/sorted_set.py +39 -29
  16. glide/async_commands/standalone_commands.py +202 -95
  17. glide/async_commands/stream.py +94 -87
  18. glide/config.py +253 -112
  19. glide/constants.py +8 -4
  20. glide/glide.cpython-312-darwin.so +0 -0
  21. glide/glide.pyi +25 -0
  22. glide/glide_client.py +305 -94
  23. glide/logger.py +31 -19
  24. glide/opentelemetry.py +181 -0
  25. glide/protobuf/command_request_pb2.py +15 -15
  26. glide/protobuf/command_request_pb2.pyi +75 -46
  27. glide/protobuf/connection_request_pb2.py +12 -12
  28. glide/protobuf/connection_request_pb2.pyi +36 -29
  29. glide/protobuf/response_pb2.py +6 -6
  30. glide/protobuf/response_pb2.pyi +14 -9
  31. glide/protobuf_codec.py +7 -6
  32. glide/routes.py +41 -8
  33. {valkey_glide-1.3.5rc5.dist-info → valkey_glide-2.0.0.dist-info}/METADATA +38 -14
  34. valkey_glide-2.0.0.dist-info/RECORD +39 -0
  35. valkey_glide-1.3.5rc5.dist-info/RECORD +0 -37
  36. {valkey_glide-1.3.5rc5.dist-info → valkey_glide-2.0.0.dist-info}/WHEEL +0 -0
@@ -2,7 +2,6 @@
2
2
  @generated by mypy-protobuf. Do not edit manually!
3
3
  isort:skip_file
4
4
  """
5
-
6
5
  import builtins
7
6
  import collections.abc
8
7
  import google.protobuf.descriptor
@@ -876,7 +875,7 @@ FtProfile: RequestType.ValueType # 2112
876
875
  FtSearch: RequestType.ValueType # 2113
877
876
  global___RequestType = RequestType
878
877
 
879
- @typing.final
878
+ @typing_extensions.final
880
879
  class SlotIdRoute(google.protobuf.message.Message):
881
880
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
882
881
 
@@ -890,11 +889,11 @@ class SlotIdRoute(google.protobuf.message.Message):
890
889
  slot_type: global___SlotTypes.ValueType = ...,
891
890
  slot_id: builtins.int = ...,
892
891
  ) -> None: ...
893
- def ClearField(self, field_name: typing.Literal["slot_id", b"slot_id", "slot_type", b"slot_type"]) -> None: ...
892
+ def ClearField(self, field_name: typing_extensions.Literal["slot_id", b"slot_id", "slot_type", b"slot_type"]) -> None: ...
894
893
 
895
894
  global___SlotIdRoute = SlotIdRoute
896
895
 
897
- @typing.final
896
+ @typing_extensions.final
898
897
  class SlotKeyRoute(google.protobuf.message.Message):
899
898
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
900
899
 
@@ -908,11 +907,11 @@ class SlotKeyRoute(google.protobuf.message.Message):
908
907
  slot_type: global___SlotTypes.ValueType = ...,
909
908
  slot_key: builtins.str = ...,
910
909
  ) -> None: ...
911
- def ClearField(self, field_name: typing.Literal["slot_key", b"slot_key", "slot_type", b"slot_type"]) -> None: ...
910
+ def ClearField(self, field_name: typing_extensions.Literal["slot_key", b"slot_key", "slot_type", b"slot_type"]) -> None: ...
912
911
 
913
912
  global___SlotKeyRoute = SlotKeyRoute
914
913
 
915
- @typing.final
914
+ @typing_extensions.final
916
915
  class ByAddressRoute(google.protobuf.message.Message):
917
916
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
918
917
 
@@ -926,11 +925,11 @@ class ByAddressRoute(google.protobuf.message.Message):
926
925
  host: builtins.str = ...,
927
926
  port: builtins.int = ...,
928
927
  ) -> None: ...
929
- def ClearField(self, field_name: typing.Literal["host", b"host", "port", b"port"]) -> None: ...
928
+ def ClearField(self, field_name: typing_extensions.Literal["host", b"host", "port", b"port"]) -> None: ...
930
929
 
931
930
  global___ByAddressRoute = ByAddressRoute
932
931
 
933
- @typing.final
932
+ @typing_extensions.final
934
933
  class Routes(google.protobuf.message.Message):
935
934
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
936
935
 
@@ -953,17 +952,17 @@ class Routes(google.protobuf.message.Message):
953
952
  slot_id_route: global___SlotIdRoute | None = ...,
954
953
  by_address_route: global___ByAddressRoute | None = ...,
955
954
  ) -> None: ...
956
- def HasField(self, field_name: typing.Literal["by_address_route", b"by_address_route", "simple_routes", b"simple_routes", "slot_id_route", b"slot_id_route", "slot_key_route", b"slot_key_route", "value", b"value"]) -> builtins.bool: ...
957
- def ClearField(self, field_name: typing.Literal["by_address_route", b"by_address_route", "simple_routes", b"simple_routes", "slot_id_route", b"slot_id_route", "slot_key_route", b"slot_key_route", "value", b"value"]) -> None: ...
958
- def WhichOneof(self, oneof_group: typing.Literal["value", b"value"]) -> typing.Literal["simple_routes", "slot_key_route", "slot_id_route", "by_address_route"] | None: ...
955
+ def HasField(self, field_name: typing_extensions.Literal["by_address_route", b"by_address_route", "simple_routes", b"simple_routes", "slot_id_route", b"slot_id_route", "slot_key_route", b"slot_key_route", "value", b"value"]) -> builtins.bool: ...
956
+ def ClearField(self, field_name: typing_extensions.Literal["by_address_route", b"by_address_route", "simple_routes", b"simple_routes", "slot_id_route", b"slot_id_route", "slot_key_route", b"slot_key_route", "value", b"value"]) -> None: ...
957
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["value", b"value"]) -> typing_extensions.Literal["simple_routes", "slot_key_route", "slot_id_route", "by_address_route"] | None: ...
959
958
 
960
959
  global___Routes = Routes
961
960
 
962
- @typing.final
961
+ @typing_extensions.final
963
962
  class Command(google.protobuf.message.Message):
964
963
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
965
964
 
966
- @typing.final
965
+ @typing_extensions.final
967
966
  class ArgsArray(google.protobuf.message.Message):
968
967
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
969
968
 
@@ -975,15 +974,15 @@ class Command(google.protobuf.message.Message):
975
974
  *,
976
975
  args: collections.abc.Iterable[builtins.bytes] | None = ...,
977
976
  ) -> None: ...
978
- def ClearField(self, field_name: typing.Literal["args", b"args"]) -> None: ...
977
+ def ClearField(self, field_name: typing_extensions.Literal["args", b"args"]) -> None: ...
979
978
 
980
979
  REQUEST_TYPE_FIELD_NUMBER: builtins.int
981
980
  ARGS_ARRAY_FIELD_NUMBER: builtins.int
982
981
  ARGS_VEC_POINTER_FIELD_NUMBER: builtins.int
983
982
  request_type: global___RequestType.ValueType
984
- args_vec_pointer: builtins.int
985
983
  @property
986
984
  def args_array(self) -> global___Command.ArgsArray: ...
985
+ args_vec_pointer: builtins.int
987
986
  def __init__(
988
987
  self,
989
988
  *,
@@ -991,13 +990,13 @@ class Command(google.protobuf.message.Message):
991
990
  args_array: global___Command.ArgsArray | None = ...,
992
991
  args_vec_pointer: builtins.int = ...,
993
992
  ) -> None: ...
994
- def HasField(self, field_name: typing.Literal["args", b"args", "args_array", b"args_array", "args_vec_pointer", b"args_vec_pointer"]) -> builtins.bool: ...
995
- def ClearField(self, field_name: typing.Literal["args", b"args", "args_array", b"args_array", "args_vec_pointer", b"args_vec_pointer", "request_type", b"request_type"]) -> None: ...
996
- def WhichOneof(self, oneof_group: typing.Literal["args", b"args"]) -> typing.Literal["args_array", "args_vec_pointer"] | None: ...
993
+ def HasField(self, field_name: typing_extensions.Literal["args", b"args", "args_array", b"args_array", "args_vec_pointer", b"args_vec_pointer"]) -> builtins.bool: ...
994
+ def ClearField(self, field_name: typing_extensions.Literal["args", b"args", "args_array", b"args_array", "args_vec_pointer", b"args_vec_pointer", "request_type", b"request_type"]) -> None: ...
995
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["args", b"args"]) -> typing_extensions.Literal["args_array", "args_vec_pointer"] | None: ...
997
996
 
998
997
  global___Command = Command
999
998
 
1000
- @typing.final
999
+ @typing_extensions.final
1001
1000
  class ScriptInvocationPointers(google.protobuf.message.Message):
1002
1001
  """Used for script requests with large keys or args vectors"""
1003
1002
 
@@ -1016,16 +1015,16 @@ class ScriptInvocationPointers(google.protobuf.message.Message):
1016
1015
  keys_pointer: builtins.int | None = ...,
1017
1016
  args_pointer: builtins.int | None = ...,
1018
1017
  ) -> None: ...
1019
- def HasField(self, field_name: typing.Literal["_args_pointer", b"_args_pointer", "_keys_pointer", b"_keys_pointer", "args_pointer", b"args_pointer", "keys_pointer", b"keys_pointer"]) -> builtins.bool: ...
1020
- def ClearField(self, field_name: typing.Literal["_args_pointer", b"_args_pointer", "_keys_pointer", b"_keys_pointer", "args_pointer", b"args_pointer", "hash", b"hash", "keys_pointer", b"keys_pointer"]) -> None: ...
1018
+ def HasField(self, field_name: typing_extensions.Literal["_args_pointer", b"_args_pointer", "_keys_pointer", b"_keys_pointer", "args_pointer", b"args_pointer", "keys_pointer", b"keys_pointer"]) -> builtins.bool: ...
1019
+ def ClearField(self, field_name: typing_extensions.Literal["_args_pointer", b"_args_pointer", "_keys_pointer", b"_keys_pointer", "args_pointer", b"args_pointer", "hash", b"hash", "keys_pointer", b"keys_pointer"]) -> None: ...
1021
1020
  @typing.overload
1022
- def WhichOneof(self, oneof_group: typing.Literal["_args_pointer", b"_args_pointer"]) -> typing.Literal["args_pointer"] | None: ...
1021
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_args_pointer", b"_args_pointer"]) -> typing_extensions.Literal["args_pointer"] | None: ...
1023
1022
  @typing.overload
1024
- def WhichOneof(self, oneof_group: typing.Literal["_keys_pointer", b"_keys_pointer"]) -> typing.Literal["keys_pointer"] | None: ...
1023
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_keys_pointer", b"_keys_pointer"]) -> typing_extensions.Literal["keys_pointer"] | None: ...
1025
1024
 
1026
1025
  global___ScriptInvocationPointers = ScriptInvocationPointers
1027
1026
 
1028
- @typing.final
1027
+ @typing_extensions.final
1029
1028
  class ScriptInvocation(google.protobuf.message.Message):
1030
1029
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
1031
1030
 
@@ -1044,27 +1043,51 @@ class ScriptInvocation(google.protobuf.message.Message):
1044
1043
  keys: collections.abc.Iterable[builtins.bytes] | None = ...,
1045
1044
  args: collections.abc.Iterable[builtins.bytes] | None = ...,
1046
1045
  ) -> None: ...
1047
- def ClearField(self, field_name: typing.Literal["args", b"args", "hash", b"hash", "keys", b"keys"]) -> None: ...
1046
+ def ClearField(self, field_name: typing_extensions.Literal["args", b"args", "hash", b"hash", "keys", b"keys"]) -> None: ...
1048
1047
 
1049
1048
  global___ScriptInvocation = ScriptInvocation
1050
1049
 
1051
- @typing.final
1052
- class Transaction(google.protobuf.message.Message):
1050
+ @typing_extensions.final
1051
+ class Batch(google.protobuf.message.Message):
1053
1052
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
1054
1053
 
1054
+ IS_ATOMIC_FIELD_NUMBER: builtins.int
1055
1055
  COMMANDS_FIELD_NUMBER: builtins.int
1056
+ RAISE_ON_ERROR_FIELD_NUMBER: builtins.int
1057
+ TIMEOUT_FIELD_NUMBER: builtins.int
1058
+ RETRY_SERVER_ERROR_FIELD_NUMBER: builtins.int
1059
+ RETRY_CONNECTION_ERROR_FIELD_NUMBER: builtins.int
1060
+ is_atomic: builtins.bool
1056
1061
  @property
1057
1062
  def commands(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Command]: ...
1063
+ raise_on_error: builtins.bool
1064
+ timeout: builtins.int
1065
+ retry_server_error: builtins.bool
1066
+ retry_connection_error: builtins.bool
1058
1067
  def __init__(
1059
1068
  self,
1060
1069
  *,
1070
+ is_atomic: builtins.bool = ...,
1061
1071
  commands: collections.abc.Iterable[global___Command] | None = ...,
1072
+ raise_on_error: builtins.bool | None = ...,
1073
+ timeout: builtins.int | None = ...,
1074
+ retry_server_error: builtins.bool | None = ...,
1075
+ retry_connection_error: builtins.bool | None = ...,
1062
1076
  ) -> None: ...
1063
- def ClearField(self, field_name: typing.Literal["commands", b"commands"]) -> None: ...
1077
+ def HasField(self, field_name: typing_extensions.Literal["_raise_on_error", b"_raise_on_error", "_retry_connection_error", b"_retry_connection_error", "_retry_server_error", b"_retry_server_error", "_timeout", b"_timeout", "raise_on_error", b"raise_on_error", "retry_connection_error", b"retry_connection_error", "retry_server_error", b"retry_server_error", "timeout", b"timeout"]) -> builtins.bool: ...
1078
+ def ClearField(self, field_name: typing_extensions.Literal["_raise_on_error", b"_raise_on_error", "_retry_connection_error", b"_retry_connection_error", "_retry_server_error", b"_retry_server_error", "_timeout", b"_timeout", "commands", b"commands", "is_atomic", b"is_atomic", "raise_on_error", b"raise_on_error", "retry_connection_error", b"retry_connection_error", "retry_server_error", b"retry_server_error", "timeout", b"timeout"]) -> None: ...
1079
+ @typing.overload
1080
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_raise_on_error", b"_raise_on_error"]) -> typing_extensions.Literal["raise_on_error"] | None: ...
1081
+ @typing.overload
1082
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_retry_connection_error", b"_retry_connection_error"]) -> typing_extensions.Literal["retry_connection_error"] | None: ...
1083
+ @typing.overload
1084
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_retry_server_error", b"_retry_server_error"]) -> typing_extensions.Literal["retry_server_error"] | None: ...
1085
+ @typing.overload
1086
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_timeout", b"_timeout"]) -> typing_extensions.Literal["timeout"] | None: ...
1064
1087
 
1065
- global___Transaction = Transaction
1088
+ global___Batch = Batch
1066
1089
 
1067
- @typing.final
1090
+ @typing_extensions.final
1068
1091
  class ClusterScan(google.protobuf.message.Message):
1069
1092
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
1070
1093
 
@@ -1087,18 +1110,18 @@ class ClusterScan(google.protobuf.message.Message):
1087
1110
  object_type: builtins.str | None = ...,
1088
1111
  allow_non_covered_slots: builtins.bool = ...,
1089
1112
  ) -> None: ...
1090
- def HasField(self, field_name: typing.Literal["_count", b"_count", "_match_pattern", b"_match_pattern", "_object_type", b"_object_type", "count", b"count", "match_pattern", b"match_pattern", "object_type", b"object_type"]) -> builtins.bool: ...
1091
- def ClearField(self, field_name: typing.Literal["_count", b"_count", "_match_pattern", b"_match_pattern", "_object_type", b"_object_type", "allow_non_covered_slots", b"allow_non_covered_slots", "count", b"count", "cursor", b"cursor", "match_pattern", b"match_pattern", "object_type", b"object_type"]) -> None: ...
1113
+ def HasField(self, field_name: typing_extensions.Literal["_count", b"_count", "_match_pattern", b"_match_pattern", "_object_type", b"_object_type", "count", b"count", "match_pattern", b"match_pattern", "object_type", b"object_type"]) -> builtins.bool: ...
1114
+ def ClearField(self, field_name: typing_extensions.Literal["_count", b"_count", "_match_pattern", b"_match_pattern", "_object_type", b"_object_type", "allow_non_covered_slots", b"allow_non_covered_slots", "count", b"count", "cursor", b"cursor", "match_pattern", b"match_pattern", "object_type", b"object_type"]) -> None: ...
1092
1115
  @typing.overload
1093
- def WhichOneof(self, oneof_group: typing.Literal["_count", b"_count"]) -> typing.Literal["count"] | None: ...
1116
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_count", b"_count"]) -> typing_extensions.Literal["count"] | None: ...
1094
1117
  @typing.overload
1095
- def WhichOneof(self, oneof_group: typing.Literal["_match_pattern", b"_match_pattern"]) -> typing.Literal["match_pattern"] | None: ...
1118
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_match_pattern", b"_match_pattern"]) -> typing_extensions.Literal["match_pattern"] | None: ...
1096
1119
  @typing.overload
1097
- def WhichOneof(self, oneof_group: typing.Literal["_object_type", b"_object_type"]) -> typing.Literal["object_type"] | None: ...
1120
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_object_type", b"_object_type"]) -> typing_extensions.Literal["object_type"] | None: ...
1098
1121
 
1099
1122
  global___ClusterScan = ClusterScan
1100
1123
 
1101
- @typing.final
1124
+ @typing_extensions.final
1102
1125
  class UpdateConnectionPassword(google.protobuf.message.Message):
1103
1126
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
1104
1127
 
@@ -1112,29 +1135,30 @@ class UpdateConnectionPassword(google.protobuf.message.Message):
1112
1135
  password: builtins.str | None = ...,
1113
1136
  immediate_auth: builtins.bool = ...,
1114
1137
  ) -> None: ...
1115
- def HasField(self, field_name: typing.Literal["_password", b"_password", "password", b"password"]) -> builtins.bool: ...
1116
- def ClearField(self, field_name: typing.Literal["_password", b"_password", "immediate_auth", b"immediate_auth", "password", b"password"]) -> None: ...
1117
- def WhichOneof(self, oneof_group: typing.Literal["_password", b"_password"]) -> typing.Literal["password"] | None: ...
1138
+ def HasField(self, field_name: typing_extensions.Literal["_password", b"_password", "password", b"password"]) -> builtins.bool: ...
1139
+ def ClearField(self, field_name: typing_extensions.Literal["_password", b"_password", "immediate_auth", b"immediate_auth", "password", b"password"]) -> None: ...
1140
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_password", b"_password"]) -> typing_extensions.Literal["password"] | None: ...
1118
1141
 
1119
1142
  global___UpdateConnectionPassword = UpdateConnectionPassword
1120
1143
 
1121
- @typing.final
1144
+ @typing_extensions.final
1122
1145
  class CommandRequest(google.protobuf.message.Message):
1123
1146
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
1124
1147
 
1125
1148
  CALLBACK_IDX_FIELD_NUMBER: builtins.int
1126
1149
  SINGLE_COMMAND_FIELD_NUMBER: builtins.int
1127
- TRANSACTION_FIELD_NUMBER: builtins.int
1150
+ BATCH_FIELD_NUMBER: builtins.int
1128
1151
  SCRIPT_INVOCATION_FIELD_NUMBER: builtins.int
1129
1152
  SCRIPT_INVOCATION_POINTERS_FIELD_NUMBER: builtins.int
1130
1153
  CLUSTER_SCAN_FIELD_NUMBER: builtins.int
1131
1154
  UPDATE_CONNECTION_PASSWORD_FIELD_NUMBER: builtins.int
1132
1155
  ROUTE_FIELD_NUMBER: builtins.int
1156
+ ROOT_SPAN_PTR_FIELD_NUMBER: builtins.int
1133
1157
  callback_idx: builtins.int
1134
1158
  @property
1135
1159
  def single_command(self) -> global___Command: ...
1136
1160
  @property
1137
- def transaction(self) -> global___Transaction: ...
1161
+ def batch(self) -> global___Batch: ...
1138
1162
  @property
1139
1163
  def script_invocation(self) -> global___ScriptInvocation: ...
1140
1164
  @property
@@ -1145,20 +1169,25 @@ class CommandRequest(google.protobuf.message.Message):
1145
1169
  def update_connection_password(self) -> global___UpdateConnectionPassword: ...
1146
1170
  @property
1147
1171
  def route(self) -> global___Routes: ...
1172
+ root_span_ptr: builtins.int
1148
1173
  def __init__(
1149
1174
  self,
1150
1175
  *,
1151
1176
  callback_idx: builtins.int = ...,
1152
1177
  single_command: global___Command | None = ...,
1153
- transaction: global___Transaction | None = ...,
1178
+ batch: global___Batch | None = ...,
1154
1179
  script_invocation: global___ScriptInvocation | None = ...,
1155
1180
  script_invocation_pointers: global___ScriptInvocationPointers | None = ...,
1156
1181
  cluster_scan: global___ClusterScan | None = ...,
1157
1182
  update_connection_password: global___UpdateConnectionPassword | None = ...,
1158
1183
  route: global___Routes | None = ...,
1184
+ root_span_ptr: builtins.int | None = ...,
1159
1185
  ) -> None: ...
1160
- def HasField(self, field_name: typing.Literal["cluster_scan", b"cluster_scan", "command", b"command", "route", b"route", "script_invocation", b"script_invocation", "script_invocation_pointers", b"script_invocation_pointers", "single_command", b"single_command", "transaction", b"transaction", "update_connection_password", b"update_connection_password"]) -> builtins.bool: ...
1161
- def ClearField(self, field_name: typing.Literal["callback_idx", b"callback_idx", "cluster_scan", b"cluster_scan", "command", b"command", "route", b"route", "script_invocation", b"script_invocation", "script_invocation_pointers", b"script_invocation_pointers", "single_command", b"single_command", "transaction", b"transaction", "update_connection_password", b"update_connection_password"]) -> None: ...
1162
- def WhichOneof(self, oneof_group: typing.Literal["command", b"command"]) -> typing.Literal["single_command", "transaction", "script_invocation", "script_invocation_pointers", "cluster_scan", "update_connection_password"] | None: ...
1186
+ def HasField(self, field_name: typing_extensions.Literal["_root_span_ptr", b"_root_span_ptr", "batch", b"batch", "cluster_scan", b"cluster_scan", "command", b"command", "root_span_ptr", b"root_span_ptr", "route", b"route", "script_invocation", b"script_invocation", "script_invocation_pointers", b"script_invocation_pointers", "single_command", b"single_command", "update_connection_password", b"update_connection_password"]) -> builtins.bool: ...
1187
+ def ClearField(self, field_name: typing_extensions.Literal["_root_span_ptr", b"_root_span_ptr", "batch", b"batch", "callback_idx", b"callback_idx", "cluster_scan", b"cluster_scan", "command", b"command", "root_span_ptr", b"root_span_ptr", "route", b"route", "script_invocation", b"script_invocation", "script_invocation_pointers", b"script_invocation_pointers", "single_command", b"single_command", "update_connection_password", b"update_connection_password"]) -> None: ...
1188
+ @typing.overload
1189
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_root_span_ptr", b"_root_span_ptr"]) -> typing_extensions.Literal["root_span_ptr"] | None: ...
1190
+ @typing.overload
1191
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["command", b"command"]) -> typing_extensions.Literal["single_command", "batch", "script_invocation", "script_invocation_pointers", "cluster_scan", "update_connection_password"] | None: ...
1163
1192
 
1164
1193
  global___CommandRequest = CommandRequest
@@ -14,7 +14,7 @@ _sym_db = _symbol_database.Default()
14
14
 
15
15
 
16
16
 
17
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!protobuf/connection_request.proto\x12\x12\x63onnection_request\")\n\x0bNodeAddress\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\r\"8\n\x12\x41uthenticationInfo\x12\x10\n\x08password\x18\x01 \x01(\t\x12\x10\n\x08username\x18\x02 \x01(\t\"7\n\x1cPeriodicChecksManualInterval\x12\x17\n\x0f\x64uration_in_sec\x18\x01 \x01(\r\"\x18\n\x16PeriodicChecksDisabled\"8\n\x18PubSubChannelsOrPatterns\x12\x1c\n\x14\x63hannels_or_patterns\x18\x01 \x03(\x0c\"\xf1\x01\n\x13PubSubSubscriptions\x12k\n\x1c\x63hannels_or_patterns_by_type\x18\x01 \x03(\x0b\x32\x45.connection_request.PubSubSubscriptions.ChannelsOrPatternsByTypeEntry\x1am\n\x1d\x43hannelsOrPatternsByTypeEntry\x12\x0b\n\x03key\x18\x01 \x01(\r\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.connection_request.PubSubChannelsOrPatterns:\x02\x38\x01\"\xab\x06\n\x11\x43onnectionRequest\x12\x32\n\taddresses\x18\x01 \x03(\x0b\x32\x1f.connection_request.NodeAddress\x12-\n\x08tls_mode\x18\x02 \x01(\x0e\x32\x1b.connection_request.TlsMode\x12\x1c\n\x14\x63luster_mode_enabled\x18\x03 \x01(\x08\x12\x17\n\x0frequest_timeout\x18\x04 \x01(\r\x12/\n\tread_from\x18\x05 \x01(\x0e\x32\x1c.connection_request.ReadFrom\x12N\n\x19\x63onnection_retry_strategy\x18\x06 \x01(\x0b\x32+.connection_request.ConnectionRetryStrategy\x12\x43\n\x13\x61uthentication_info\x18\x07 \x01(\x0b\x32&.connection_request.AuthenticationInfo\x12\x13\n\x0b\x64\x61tabase_id\x18\x08 \x01(\r\x12\x35\n\x08protocol\x18\t \x01(\x0e\x32#.connection_request.ProtocolVersion\x12\x13\n\x0b\x63lient_name\x18\n \x01(\t\x12[\n\x1fperiodic_checks_manual_interval\x18\x0b \x01(\x0b\x32\x30.connection_request.PeriodicChecksManualIntervalH\x00\x12N\n\x18periodic_checks_disabled\x18\x0c \x01(\x0b\x32*.connection_request.PeriodicChecksDisabledH\x00\x12\x45\n\x14pubsub_subscriptions\x18\r \x01(\x0b\x32\'.connection_request.PubSubSubscriptions\x12\x1f\n\x17inflight_requests_limit\x18\x0e \x01(\r\x12\x11\n\tclient_az\x18\x0f \x01(\t\x12\x1a\n\x12\x63onnection_timeout\x18\x10 \x01(\rB\x11\n\x0fperiodic_checks\"[\n\x17\x43onnectionRetryStrategy\x12\x19\n\x11number_of_retries\x18\x01 \x01(\r\x12\x0e\n\x06\x66\x61\x63tor\x18\x02 \x01(\r\x12\x15\n\rexponent_base\x18\x03 \x01(\r*o\n\x08ReadFrom\x12\x0b\n\x07Primary\x10\x00\x12\x11\n\rPreferReplica\x10\x01\x12\x11\n\rLowestLatency\x10\x02\x12\x0e\n\nAZAffinity\x10\x03\x12 \n\x1c\x41ZAffinityReplicasAndPrimary\x10\x04*4\n\x07TlsMode\x12\t\n\x05NoTls\x10\x00\x12\r\n\tSecureTls\x10\x01\x12\x0f\n\x0bInsecureTls\x10\x02*\'\n\x0fProtocolVersion\x12\t\n\x05RESP3\x10\x00\x12\t\n\x05RESP2\x10\x01*8\n\x11PubSubChannelType\x12\t\n\x05\x45xact\x10\x00\x12\x0b\n\x07Pattern\x10\x01\x12\x0b\n\x07Sharded\x10\x02\x62\x06proto3')
17
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!protobuf/connection_request.proto\x12\x12\x63onnection_request\")\n\x0bNodeAddress\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\r\"8\n\x12\x41uthenticationInfo\x12\x10\n\x08password\x18\x01 \x01(\t\x12\x10\n\x08username\x18\x02 \x01(\t\"7\n\x1cPeriodicChecksManualInterval\x12\x17\n\x0f\x64uration_in_sec\x18\x01 \x01(\r\"\x18\n\x16PeriodicChecksDisabled\"8\n\x18PubSubChannelsOrPatterns\x12\x1c\n\x14\x63hannels_or_patterns\x18\x01 \x03(\x0c\"\xf1\x01\n\x13PubSubSubscriptions\x12k\n\x1c\x63hannels_or_patterns_by_type\x18\x01 \x03(\x0b\x32\x45.connection_request.PubSubSubscriptions.ChannelsOrPatternsByTypeEntry\x1am\n\x1d\x43hannelsOrPatternsByTypeEntry\x12\x0b\n\x03key\x18\x01 \x01(\r\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.connection_request.PubSubChannelsOrPatterns:\x02\x38\x01\"\xc1\x06\n\x11\x43onnectionRequest\x12\x32\n\taddresses\x18\x01 \x03(\x0b\x32\x1f.connection_request.NodeAddress\x12-\n\x08tls_mode\x18\x02 \x01(\x0e\x32\x1b.connection_request.TlsMode\x12\x1c\n\x14\x63luster_mode_enabled\x18\x03 \x01(\x08\x12\x17\n\x0frequest_timeout\x18\x04 \x01(\r\x12/\n\tread_from\x18\x05 \x01(\x0e\x32\x1c.connection_request.ReadFrom\x12N\n\x19\x63onnection_retry_strategy\x18\x06 \x01(\x0b\x32+.connection_request.ConnectionRetryStrategy\x12\x43\n\x13\x61uthentication_info\x18\x07 \x01(\x0b\x32&.connection_request.AuthenticationInfo\x12\x13\n\x0b\x64\x61tabase_id\x18\x08 \x01(\r\x12\x35\n\x08protocol\x18\t \x01(\x0e\x32#.connection_request.ProtocolVersion\x12\x13\n\x0b\x63lient_name\x18\n \x01(\t\x12[\n\x1fperiodic_checks_manual_interval\x18\x0b \x01(\x0b\x32\x30.connection_request.PeriodicChecksManualIntervalH\x00\x12N\n\x18periodic_checks_disabled\x18\x0c \x01(\x0b\x32*.connection_request.PeriodicChecksDisabledH\x00\x12\x45\n\x14pubsub_subscriptions\x18\r \x01(\x0b\x32\'.connection_request.PubSubSubscriptions\x12\x1f\n\x17inflight_requests_limit\x18\x0e \x01(\r\x12\x11\n\tclient_az\x18\x0f \x01(\t\x12\x1a\n\x12\x63onnection_timeout\x18\x10 \x01(\r\x12\x14\n\x0clazy_connect\x18\x11 \x01(\x08\x42\x11\n\x0fperiodic_checks\"\x8b\x01\n\x17\x43onnectionRetryStrategy\x12\x19\n\x11number_of_retries\x18\x01 \x01(\r\x12\x0e\n\x06\x66\x61\x63tor\x18\x02 \x01(\r\x12\x15\n\rexponent_base\x18\x03 \x01(\r\x12\x1b\n\x0ejitter_percent\x18\x04 \x01(\rH\x00\x88\x01\x01\x42\x11\n\x0f_jitter_percent*o\n\x08ReadFrom\x12\x0b\n\x07Primary\x10\x00\x12\x11\n\rPreferReplica\x10\x01\x12\x11\n\rLowestLatency\x10\x02\x12\x0e\n\nAZAffinity\x10\x03\x12 \n\x1c\x41ZAffinityReplicasAndPrimary\x10\x04*4\n\x07TlsMode\x12\t\n\x05NoTls\x10\x00\x12\r\n\tSecureTls\x10\x01\x12\x0f\n\x0bInsecureTls\x10\x02*\'\n\x0fProtocolVersion\x12\t\n\x05RESP3\x10\x00\x12\t\n\x05RESP2\x10\x01*8\n\x11PubSubChannelType\x12\t\n\x05\x45xact\x10\x00\x12\x0b\n\x07Pattern\x10\x01\x12\x0b\n\x07Sharded\x10\x02\x62\x06proto3')
18
18
 
19
19
  _globals = globals()
20
20
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -23,14 +23,14 @@ if _descriptor._USE_C_DESCRIPTORS == False:
23
23
  DESCRIPTOR._options = None
24
24
  _globals['_PUBSUBSUBSCRIPTIONS_CHANNELSORPATTERNSBYTYPEENTRY']._options = None
25
25
  _globals['_PUBSUBSUBSCRIPTIONS_CHANNELSORPATTERNSBYTYPEENTRY']._serialized_options = b'8\001'
26
- _globals['_READFROM']._serialized_start=1450
27
- _globals['_READFROM']._serialized_end=1561
28
- _globals['_TLSMODE']._serialized_start=1563
29
- _globals['_TLSMODE']._serialized_end=1615
30
- _globals['_PROTOCOLVERSION']._serialized_start=1617
31
- _globals['_PROTOCOLVERSION']._serialized_end=1656
32
- _globals['_PUBSUBCHANNELTYPE']._serialized_start=1658
33
- _globals['_PUBSUBCHANNELTYPE']._serialized_end=1714
26
+ _globals['_READFROM']._serialized_start=1521
27
+ _globals['_READFROM']._serialized_end=1632
28
+ _globals['_TLSMODE']._serialized_start=1634
29
+ _globals['_TLSMODE']._serialized_end=1686
30
+ _globals['_PROTOCOLVERSION']._serialized_start=1688
31
+ _globals['_PROTOCOLVERSION']._serialized_end=1727
32
+ _globals['_PUBSUBCHANNELTYPE']._serialized_start=1729
33
+ _globals['_PUBSUBCHANNELTYPE']._serialized_end=1785
34
34
  _globals['_NODEADDRESS']._serialized_start=57
35
35
  _globals['_NODEADDRESS']._serialized_end=98
36
36
  _globals['_AUTHENTICATIONINFO']._serialized_start=100
@@ -46,7 +46,7 @@ if _descriptor._USE_C_DESCRIPTORS == False:
46
46
  _globals['_PUBSUBSUBSCRIPTIONS_CHANNELSORPATTERNSBYTYPEENTRY']._serialized_start=432
47
47
  _globals['_PUBSUBSUBSCRIPTIONS_CHANNELSORPATTERNSBYTYPEENTRY']._serialized_end=541
48
48
  _globals['_CONNECTIONREQUEST']._serialized_start=544
49
- _globals['_CONNECTIONREQUEST']._serialized_end=1355
50
- _globals['_CONNECTIONRETRYSTRATEGY']._serialized_start=1357
51
- _globals['_CONNECTIONRETRYSTRATEGY']._serialized_end=1448
49
+ _globals['_CONNECTIONREQUEST']._serialized_end=1377
50
+ _globals['_CONNECTIONRETRYSTRATEGY']._serialized_start=1380
51
+ _globals['_CONNECTIONRETRYSTRATEGY']._serialized_end=1519
52
52
  # @@protoc_insertion_point(module_scope)
@@ -2,7 +2,6 @@
2
2
  @generated by mypy-protobuf. Do not edit manually!
3
3
  isort:skip_file
4
4
  """
5
-
6
5
  import builtins
7
6
  import collections.abc
8
7
  import google.protobuf.descriptor
@@ -89,7 +88,7 @@ Pattern: PubSubChannelType.ValueType # 1
89
88
  Sharded: PubSubChannelType.ValueType # 2
90
89
  global___PubSubChannelType = PubSubChannelType
91
90
 
92
- @typing.final
91
+ @typing_extensions.final
93
92
  class NodeAddress(google.protobuf.message.Message):
94
93
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
95
94
 
@@ -103,11 +102,11 @@ class NodeAddress(google.protobuf.message.Message):
103
102
  host: builtins.str = ...,
104
103
  port: builtins.int = ...,
105
104
  ) -> None: ...
106
- def ClearField(self, field_name: typing.Literal["host", b"host", "port", b"port"]) -> None: ...
105
+ def ClearField(self, field_name: typing_extensions.Literal["host", b"host", "port", b"port"]) -> None: ...
107
106
 
108
107
  global___NodeAddress = NodeAddress
109
108
 
110
- @typing.final
109
+ @typing_extensions.final
111
110
  class AuthenticationInfo(google.protobuf.message.Message):
112
111
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
113
112
 
@@ -121,11 +120,11 @@ class AuthenticationInfo(google.protobuf.message.Message):
121
120
  password: builtins.str = ...,
122
121
  username: builtins.str = ...,
123
122
  ) -> None: ...
124
- def ClearField(self, field_name: typing.Literal["password", b"password", "username", b"username"]) -> None: ...
123
+ def ClearField(self, field_name: typing_extensions.Literal["password", b"password", "username", b"username"]) -> None: ...
125
124
 
126
125
  global___AuthenticationInfo = AuthenticationInfo
127
126
 
128
- @typing.final
127
+ @typing_extensions.final
129
128
  class PeriodicChecksManualInterval(google.protobuf.message.Message):
130
129
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
131
130
 
@@ -136,11 +135,11 @@ class PeriodicChecksManualInterval(google.protobuf.message.Message):
136
135
  *,
137
136
  duration_in_sec: builtins.int = ...,
138
137
  ) -> None: ...
139
- def ClearField(self, field_name: typing.Literal["duration_in_sec", b"duration_in_sec"]) -> None: ...
138
+ def ClearField(self, field_name: typing_extensions.Literal["duration_in_sec", b"duration_in_sec"]) -> None: ...
140
139
 
141
140
  global___PeriodicChecksManualInterval = PeriodicChecksManualInterval
142
141
 
143
- @typing.final
142
+ @typing_extensions.final
144
143
  class PeriodicChecksDisabled(google.protobuf.message.Message):
145
144
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
146
145
 
@@ -150,7 +149,7 @@ class PeriodicChecksDisabled(google.protobuf.message.Message):
150
149
 
151
150
  global___PeriodicChecksDisabled = PeriodicChecksDisabled
152
151
 
153
- @typing.final
152
+ @typing_extensions.final
154
153
  class PubSubChannelsOrPatterns(google.protobuf.message.Message):
155
154
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
156
155
 
@@ -162,15 +161,15 @@ class PubSubChannelsOrPatterns(google.protobuf.message.Message):
162
161
  *,
163
162
  channels_or_patterns: collections.abc.Iterable[builtins.bytes] | None = ...,
164
163
  ) -> None: ...
165
- def ClearField(self, field_name: typing.Literal["channels_or_patterns", b"channels_or_patterns"]) -> None: ...
164
+ def ClearField(self, field_name: typing_extensions.Literal["channels_or_patterns", b"channels_or_patterns"]) -> None: ...
166
165
 
167
166
  global___PubSubChannelsOrPatterns = PubSubChannelsOrPatterns
168
167
 
169
- @typing.final
168
+ @typing_extensions.final
170
169
  class PubSubSubscriptions(google.protobuf.message.Message):
171
170
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
172
171
 
173
- @typing.final
172
+ @typing_extensions.final
174
173
  class ChannelsOrPatternsByTypeEntry(google.protobuf.message.Message):
175
174
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
176
175
 
@@ -185,8 +184,8 @@ class PubSubSubscriptions(google.protobuf.message.Message):
185
184
  key: builtins.int = ...,
186
185
  value: global___PubSubChannelsOrPatterns | None = ...,
187
186
  ) -> None: ...
188
- def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
189
- def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
187
+ def HasField(self, field_name: typing_extensions.Literal["value", b"value"]) -> builtins.bool: ...
188
+ def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
190
189
 
191
190
  CHANNELS_OR_PATTERNS_BY_TYPE_FIELD_NUMBER: builtins.int
192
191
  @property
@@ -196,11 +195,11 @@ class PubSubSubscriptions(google.protobuf.message.Message):
196
195
  *,
197
196
  channels_or_patterns_by_type: collections.abc.Mapping[builtins.int, global___PubSubChannelsOrPatterns] | None = ...,
198
197
  ) -> None: ...
199
- def ClearField(self, field_name: typing.Literal["channels_or_patterns_by_type", b"channels_or_patterns_by_type"]) -> None: ...
198
+ def ClearField(self, field_name: typing_extensions.Literal["channels_or_patterns_by_type", b"channels_or_patterns_by_type"]) -> None: ...
200
199
 
201
200
  global___PubSubSubscriptions = PubSubSubscriptions
202
201
 
203
- @typing.final
202
+ @typing_extensions.final
204
203
  class ConnectionRequest(google.protobuf.message.Message):
205
204
  """IMPORTANT - if you add fields here, you probably need to add them also in client/mod.rs:`sanitized_request_string`."""
206
205
 
@@ -222,28 +221,30 @@ class ConnectionRequest(google.protobuf.message.Message):
222
221
  INFLIGHT_REQUESTS_LIMIT_FIELD_NUMBER: builtins.int
223
222
  CLIENT_AZ_FIELD_NUMBER: builtins.int
224
223
  CONNECTION_TIMEOUT_FIELD_NUMBER: builtins.int
224
+ LAZY_CONNECT_FIELD_NUMBER: builtins.int
225
+ @property
226
+ def addresses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___NodeAddress]: ...
225
227
  tls_mode: global___TlsMode.ValueType
226
228
  cluster_mode_enabled: builtins.bool
227
229
  request_timeout: builtins.int
228
230
  read_from: global___ReadFrom.ValueType
229
- database_id: builtins.int
230
- protocol: global___ProtocolVersion.ValueType
231
- client_name: builtins.str
232
- inflight_requests_limit: builtins.int
233
- client_az: builtins.str
234
- connection_timeout: builtins.int
235
- @property
236
- def addresses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___NodeAddress]: ...
237
231
  @property
238
232
  def connection_retry_strategy(self) -> global___ConnectionRetryStrategy: ...
239
233
  @property
240
234
  def authentication_info(self) -> global___AuthenticationInfo: ...
235
+ database_id: builtins.int
236
+ protocol: global___ProtocolVersion.ValueType
237
+ client_name: builtins.str
241
238
  @property
242
239
  def periodic_checks_manual_interval(self) -> global___PeriodicChecksManualInterval: ...
243
240
  @property
244
241
  def periodic_checks_disabled(self) -> global___PeriodicChecksDisabled: ...
245
242
  @property
246
243
  def pubsub_subscriptions(self) -> global___PubSubSubscriptions: ...
244
+ inflight_requests_limit: builtins.int
245
+ client_az: builtins.str
246
+ connection_timeout: builtins.int
247
+ lazy_connect: builtins.bool
247
248
  def __init__(
248
249
  self,
249
250
  *,
@@ -263,30 +264,36 @@ class ConnectionRequest(google.protobuf.message.Message):
263
264
  inflight_requests_limit: builtins.int = ...,
264
265
  client_az: builtins.str = ...,
265
266
  connection_timeout: builtins.int = ...,
267
+ lazy_connect: builtins.bool = ...,
266
268
  ) -> None: ...
267
- def HasField(self, field_name: typing.Literal["authentication_info", b"authentication_info", "connection_retry_strategy", b"connection_retry_strategy", "periodic_checks", b"periodic_checks", "periodic_checks_disabled", b"periodic_checks_disabled", "periodic_checks_manual_interval", b"periodic_checks_manual_interval", "pubsub_subscriptions", b"pubsub_subscriptions"]) -> builtins.bool: ...
268
- def ClearField(self, field_name: typing.Literal["addresses", b"addresses", "authentication_info", b"authentication_info", "client_az", b"client_az", "client_name", b"client_name", "cluster_mode_enabled", b"cluster_mode_enabled", "connection_retry_strategy", b"connection_retry_strategy", "connection_timeout", b"connection_timeout", "database_id", b"database_id", "inflight_requests_limit", b"inflight_requests_limit", "periodic_checks", b"periodic_checks", "periodic_checks_disabled", b"periodic_checks_disabled", "periodic_checks_manual_interval", b"periodic_checks_manual_interval", "protocol", b"protocol", "pubsub_subscriptions", b"pubsub_subscriptions", "read_from", b"read_from", "request_timeout", b"request_timeout", "tls_mode", b"tls_mode"]) -> None: ...
269
- def WhichOneof(self, oneof_group: typing.Literal["periodic_checks", b"periodic_checks"]) -> typing.Literal["periodic_checks_manual_interval", "periodic_checks_disabled"] | None: ...
269
+ def HasField(self, field_name: typing_extensions.Literal["authentication_info", b"authentication_info", "connection_retry_strategy", b"connection_retry_strategy", "periodic_checks", b"periodic_checks", "periodic_checks_disabled", b"periodic_checks_disabled", "periodic_checks_manual_interval", b"periodic_checks_manual_interval", "pubsub_subscriptions", b"pubsub_subscriptions"]) -> builtins.bool: ...
270
+ def ClearField(self, field_name: typing_extensions.Literal["addresses", b"addresses", "authentication_info", b"authentication_info", "client_az", b"client_az", "client_name", b"client_name", "cluster_mode_enabled", b"cluster_mode_enabled", "connection_retry_strategy", b"connection_retry_strategy", "connection_timeout", b"connection_timeout", "database_id", b"database_id", "inflight_requests_limit", b"inflight_requests_limit", "lazy_connect", b"lazy_connect", "periodic_checks", b"periodic_checks", "periodic_checks_disabled", b"periodic_checks_disabled", "periodic_checks_manual_interval", b"periodic_checks_manual_interval", "protocol", b"protocol", "pubsub_subscriptions", b"pubsub_subscriptions", "read_from", b"read_from", "request_timeout", b"request_timeout", "tls_mode", b"tls_mode"]) -> None: ...
271
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["periodic_checks", b"periodic_checks"]) -> typing_extensions.Literal["periodic_checks_manual_interval", "periodic_checks_disabled"] | None: ...
270
272
 
271
273
  global___ConnectionRequest = ConnectionRequest
272
274
 
273
- @typing.final
275
+ @typing_extensions.final
274
276
  class ConnectionRetryStrategy(google.protobuf.message.Message):
275
277
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
276
278
 
277
279
  NUMBER_OF_RETRIES_FIELD_NUMBER: builtins.int
278
280
  FACTOR_FIELD_NUMBER: builtins.int
279
281
  EXPONENT_BASE_FIELD_NUMBER: builtins.int
282
+ JITTER_PERCENT_FIELD_NUMBER: builtins.int
280
283
  number_of_retries: builtins.int
281
284
  factor: builtins.int
282
285
  exponent_base: builtins.int
286
+ jitter_percent: builtins.int
283
287
  def __init__(
284
288
  self,
285
289
  *,
286
290
  number_of_retries: builtins.int = ...,
287
291
  factor: builtins.int = ...,
288
292
  exponent_base: builtins.int = ...,
293
+ jitter_percent: builtins.int | None = ...,
289
294
  ) -> None: ...
290
- def ClearField(self, field_name: typing.Literal["exponent_base", b"exponent_base", "factor", b"factor", "number_of_retries", b"number_of_retries"]) -> None: ...
295
+ def HasField(self, field_name: typing_extensions.Literal["_jitter_percent", b"_jitter_percent", "jitter_percent", b"jitter_percent"]) -> builtins.bool: ...
296
+ def ClearField(self, field_name: typing_extensions.Literal["_jitter_percent", b"_jitter_percent", "exponent_base", b"exponent_base", "factor", b"factor", "jitter_percent", b"jitter_percent", "number_of_retries", b"number_of_retries"]) -> None: ...
297
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_jitter_percent", b"_jitter_percent"]) -> typing_extensions.Literal["jitter_percent"] | None: ...
291
298
 
292
299
  global___ConnectionRetryStrategy = ConnectionRetryStrategy
@@ -14,19 +14,19 @@ _sym_db = _symbol_database.Default()
14
14
 
15
15
 
16
16
 
17
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17protobuf/response.proto\x12\x08response\"I\n\x0cRequestError\x12(\n\x04type\x18\x01 \x01(\x0e\x32\x1a.response.RequestErrorType\x12\x0f\n\x07message\x18\x02 \x01(\t\"\xd5\x01\n\x08Response\x12\x14\n\x0c\x63\x61llback_idx\x18\x01 \x01(\r\x12\x16\n\x0cresp_pointer\x18\x02 \x01(\x04H\x00\x12\x37\n\x11\x63onstant_response\x18\x03 \x01(\x0e\x32\x1a.response.ConstantResponseH\x00\x12/\n\rrequest_error\x18\x04 \x01(\x0b\x32\x16.response.RequestErrorH\x00\x12\x17\n\rclosing_error\x18\x05 \x01(\tH\x00\x12\x0f\n\x07is_push\x18\x06 \x01(\x08\x42\x07\n\x05value*O\n\x10RequestErrorType\x12\x0f\n\x0bUnspecified\x10\x00\x12\r\n\tExecAbort\x10\x01\x12\x0b\n\x07Timeout\x10\x02\x12\x0e\n\nDisconnect\x10\x03*\x1a\n\x10\x43onstantResponse\x12\x06\n\x02OK\x10\x00\x62\x06proto3')
17
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17protobuf/response.proto\x12\x08response\"I\n\x0cRequestError\x12(\n\x04type\x18\x01 \x01(\x0e\x32\x1a.response.RequestErrorType\x12\x0f\n\x07message\x18\x02 \x01(\t\"\x83\x02\n\x08Response\x12\x14\n\x0c\x63\x61llback_idx\x18\x01 \x01(\r\x12\x16\n\x0cresp_pointer\x18\x02 \x01(\x04H\x00\x12\x37\n\x11\x63onstant_response\x18\x03 \x01(\x0e\x32\x1a.response.ConstantResponseH\x00\x12/\n\rrequest_error\x18\x04 \x01(\x0b\x32\x16.response.RequestErrorH\x00\x12\x17\n\rclosing_error\x18\x05 \x01(\tH\x00\x12\x0f\n\x07is_push\x18\x06 \x01(\x08\x12\x1a\n\rroot_span_ptr\x18\x07 \x01(\x04H\x01\x88\x01\x01\x42\x07\n\x05valueB\x10\n\x0e_root_span_ptr*O\n\x10RequestErrorType\x12\x0f\n\x0bUnspecified\x10\x00\x12\r\n\tExecAbort\x10\x01\x12\x0b\n\x07Timeout\x10\x02\x12\x0e\n\nDisconnect\x10\x03*\x1a\n\x10\x43onstantResponse\x12\x06\n\x02OK\x10\x00\x62\x06proto3')
18
18
 
19
19
  _globals = globals()
20
20
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
21
21
  _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protobuf.response_pb2', _globals)
22
22
  if _descriptor._USE_C_DESCRIPTORS == False:
23
23
  DESCRIPTOR._options = None
24
- _globals['_REQUESTERRORTYPE']._serialized_start=328
25
- _globals['_REQUESTERRORTYPE']._serialized_end=407
26
- _globals['_CONSTANTRESPONSE']._serialized_start=409
27
- _globals['_CONSTANTRESPONSE']._serialized_end=435
24
+ _globals['_REQUESTERRORTYPE']._serialized_start=374
25
+ _globals['_REQUESTERRORTYPE']._serialized_end=453
26
+ _globals['_CONSTANTRESPONSE']._serialized_start=455
27
+ _globals['_CONSTANTRESPONSE']._serialized_end=481
28
28
  _globals['_REQUESTERROR']._serialized_start=37
29
29
  _globals['_REQUESTERROR']._serialized_end=110
30
30
  _globals['_RESPONSE']._serialized_start=113
31
- _globals['_RESPONSE']._serialized_end=326
31
+ _globals['_RESPONSE']._serialized_end=372
32
32
  # @@protoc_insertion_point(module_scope)