weave-python 0.28.2__py3-none-any.whl → 0.30.4__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.
Files changed (104) hide show
  1. weave/weaveapi/auth/v1/service_pb2.py +184 -88
  2. weave/weaveapi/auth/v1/service_pb2.pyi +1288 -1134
  3. weave/weaveapi/auth/v1/service_pb2_grpc.pyi +248 -335
  4. weave/weaveapi/auth/v1/session_pb2.py +12 -4
  5. weave/weaveapi/auth/v1/session_pb2.pyi +109 -89
  6. weave/weaveapi/auth/v1/session_pb2_grpc.pyi +11 -10
  7. weave/weaveapi/auth/v1/usage_pb2.py +16 -12
  8. weave/weaveapi/auth/v1/usage_pb2.pyi +251 -197
  9. weave/weaveapi/auth/v1/usage_pb2_grpc.pyi +11 -10
  10. weave/weaveapi/auth/v1/user_pb2.py +58 -16
  11. weave/weaveapi/auth/v1/user_pb2.pyi +588 -505
  12. weave/weaveapi/auth/v1/user_pb2_grpc.pyi +11 -10
  13. weave/weaveapi/generate/v1/configuration_pb2.py +29 -17
  14. weave/weaveapi/generate/v1/configuration_pb2.pyi +277 -241
  15. weave/weaveapi/generate/v1/configuration_pb2_grpc.pyi +11 -10
  16. weave/weaveapi/generate/v1/generate_pb2.py +30 -4
  17. weave/weaveapi/generate/v1/generate_pb2.pyi +138 -40
  18. weave/weaveapi/generate/v1/generate_pb2_grpc.pyi +11 -10
  19. weave/weaveapi/generate/v1/service_pb2.py +50 -20
  20. weave/weaveapi/generate/v1/service_pb2.pyi +264 -135
  21. weave/weaveapi/generate/v1/service_pb2_grpc.py +47 -0
  22. weave/weaveapi/generate/v1/service_pb2_grpc.pyi +89 -78
  23. weave/weaveapi/llmx/v1/architecture_pb2.py +3 -3
  24. weave/weaveapi/llmx/v1/architecture_pb2.pyi +664 -555
  25. weave/weaveapi/llmx/v1/architecture_pb2_grpc.pyi +11 -10
  26. weave/weaveapi/llmx/v1/capabilities_pb2.py +86 -54
  27. weave/weaveapi/llmx/v1/capabilities_pb2.pyi +967 -852
  28. weave/weaveapi/llmx/v1/capabilities_pb2_grpc.pyi +11 -10
  29. weave/weaveapi/llmx/v1/model_pb2.py +54 -18
  30. weave/weaveapi/llmx/v1/model_pb2.pyi +533 -455
  31. weave/weaveapi/llmx/v1/model_pb2_grpc.pyi +11 -10
  32. weave/weaveapi/llmx/v1/pricing_pb2.py +22 -18
  33. weave/weaveapi/llmx/v1/pricing_pb2.pyi +194 -172
  34. weave/weaveapi/llmx/v1/pricing_pb2_grpc.pyi +11 -10
  35. weave/weaveapi/llmx/v1/provider_pb2.py +3 -3
  36. weave/weaveapi/llmx/v1/provider_pb2.pyi +84 -59
  37. weave/weaveapi/llmx/v1/provider_pb2_grpc.pyi +11 -10
  38. weave/weaveapi/llmx/v1/service_pb2.py +224 -86
  39. weave/weaveapi/llmx/v1/service_pb2.pyi +1651 -1403
  40. weave/weaveapi/llmx/v1/service_pb2_grpc.pyi +160 -203
  41. weave/weaveapi/mcpregistry/v1/server_pb2.py +14 -8
  42. weave/weaveapi/mcpregistry/v1/server_pb2.pyi +143 -121
  43. weave/weaveapi/mcpregistry/v1/server_pb2_grpc.pyi +11 -10
  44. weave/weaveapi/mcpregistry/v1/service_pb2.py +47 -27
  45. weave/weaveapi/mcpregistry/v1/service_pb2.pyi +132 -122
  46. weave/weaveapi/mcpregistry/v1/service_pb2_grpc.pyi +87 -112
  47. weave/weaveapi/payment/v1/invoice_pb2.py +36 -10
  48. weave/weaveapi/payment/v1/invoice_pb2.pyi +352 -291
  49. weave/weaveapi/payment/v1/invoice_pb2_grpc.pyi +11 -10
  50. weave/weaveapi/payment/v1/service_pb2.py +256 -90
  51. weave/weaveapi/payment/v1/service_pb2.pyi +1381 -1242
  52. weave/weaveapi/payment/v1/service_pb2_grpc.pyi +229 -319
  53. weave/weaveapi/payment/v1/subscription_pb2.py +97 -21
  54. weave/weaveapi/payment/v1/subscription_pb2.pyi +727 -611
  55. weave/weaveapi/payment/v1/subscription_pb2_grpc.pyi +11 -10
  56. weave/weaveapi/storage/v1/auth_pb2.py +3 -3
  57. weave/weaveapi/storage/v1/auth_pb2.pyi +42 -29
  58. weave/weaveapi/storage/v1/auth_pb2_grpc.pyi +11 -10
  59. weave/weaveapi/storage/v1/nosql_database_pb2.py +45 -21
  60. weave/weaveapi/storage/v1/nosql_database_pb2.pyi +438 -372
  61. weave/weaveapi/storage/v1/nosql_database_pb2_grpc.pyi +11 -10
  62. weave/weaveapi/storage/v1/object_store_pb2.py +25 -11
  63. weave/weaveapi/storage/v1/object_store_pb2.pyi +203 -187
  64. weave/weaveapi/storage/v1/object_store_pb2_grpc.pyi +11 -10
  65. weave/weaveapi/storage/v1/service_pb2.py +94 -34
  66. weave/weaveapi/storage/v1/service_pb2.pyi +414 -357
  67. weave/weaveapi/storage/v1/service_pb2_grpc.pyi +88 -107
  68. weave/weaveapi/storage/v1/sql_database_pb2.py +37 -21
  69. weave/weaveapi/storage/v1/sql_database_pb2.pyi +481 -400
  70. weave/weaveapi/storage/v1/sql_database_pb2_grpc.pyi +11 -10
  71. weave/weaveapi/storage/v1/storage_pb2.py +18 -4
  72. weave/weaveapi/storage/v1/storage_pb2.pyi +79 -70
  73. weave/weaveapi/storage/v1/storage_pb2_grpc.pyi +11 -10
  74. weave/weaveapi/synthesize/v1/dataset_pb2.py +10 -8
  75. weave/weaveapi/synthesize/v1/dataset_pb2.pyi +158 -128
  76. weave/weaveapi/synthesize/v1/dataset_pb2_grpc.pyi +11 -10
  77. weave/weaveapi/synthesize/v1/inline_data_pb2.py +4 -4
  78. weave/weaveapi/synthesize/v1/inline_data_pb2.pyi +31 -27
  79. weave/weaveapi/synthesize/v1/inline_data_pb2_grpc.pyi +11 -10
  80. weave/weaveapi/synthesize/v1/relationship_pb2.py +17 -9
  81. weave/weaveapi/synthesize/v1/relationship_pb2.pyi +67 -64
  82. weave/weaveapi/synthesize/v1/relationship_pb2_grpc.pyi +11 -10
  83. weave/weaveapi/synthesize/v1/service_pb2.py +40 -22
  84. weave/weaveapi/synthesize/v1/service_pb2.pyi +202 -168
  85. weave/weaveapi/synthesize/v1/service_pb2_grpc.pyi +67 -79
  86. weave/weaveapi/synthesize/v1/training_pb2.py +17 -11
  87. weave/weaveapi/synthesize/v1/training_pb2.pyi +119 -106
  88. weave/weaveapi/synthesize/v1/training_pb2_grpc.pyi +11 -10
  89. weave/weavesql/llmxdb/capabilities.py +487 -0
  90. weave/weavesql/llmxdb/changes.py +297 -0
  91. weave/weavesql/llmxdb/models.py +594 -0
  92. weave/weavesql/llmxdb/providers.py +348 -0
  93. weave/weavesql/llmxdb/scraper_runs.py +287 -0
  94. weave/weavesql/llmxdb/search.py +721 -0
  95. weave/weavesql/weavedb/dataset.py +75 -0
  96. weave/weavesql/weavedb/models.py +135 -0
  97. weave/weavesql/weavedb/relationships.py +72 -0
  98. weave/weavesql/weavedb/storage.py +113 -0
  99. weave/weavesql/weavedb/synthesizer.py +107 -0
  100. {weave_python-0.28.2.dist-info → weave_python-0.30.4.dist-info}/METADATA +3 -3
  101. weave_python-0.30.4.dist-info/RECORD +131 -0
  102. {weave_python-0.28.2.dist-info → weave_python-0.30.4.dist-info}/WHEEL +1 -1
  103. weave_python-0.28.2.dist-info/RECORD +0 -120
  104. {weave_python-0.28.2.dist-info → weave_python-0.30.4.dist-info}/licenses/LICENSE +0 -0
@@ -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: weaveapi/synthesize/v1/training.proto
5
- # Protobuf Python Version: 6.32.0
5
+ # Protobuf Python Version: 6.33.5
6
6
  """Generated protocol buffer code."""
7
7
 
8
8
  from google.protobuf import descriptor as _descriptor
@@ -14,8 +14,8 @@ from google.protobuf.internal import builder as _builder
14
14
  _runtime_version.ValidateProtobufRuntimeVersion(
15
15
  _runtime_version.Domain.PUBLIC,
16
16
  6,
17
- 32,
18
- 0,
17
+ 33,
18
+ 5,
19
19
  "",
20
20
  "weaveapi/synthesize/v1/training.proto",
21
21
  )
@@ -25,7 +25,7 @@ _sym_db = _symbol_database.Default()
25
25
 
26
26
 
27
27
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
28
- b'\n%weaveapi/synthesize/v1/training.proto\x12\x16weaveapi.synthesize.v1\x1a\x1cgoogle/protobuf/struct.proto"\xb7\x02\n\x1dStartSynthesizerTrainingEvent\x12%\n\x0esynthesizer_id\x18\x01 \x01(\tR\rsynthesizerId\x12\x1f\n\x0b\x64\x61taset_ids\x18\x02 \x03(\tR\ndatasetIds\x12O\n\x0ftraining_driver\x18\x03 \x01(\x0e\x32&.weaveapi.synthesize.v1.TrainingDriverR\x0etrainingDriver\x12<\n\rdriver_config\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructR\x0c\x64riverConfig\x12?\n\x1coutput_storage_connection_id\x18\x05 \x01(\tR\x19outputStorageConnectionId"\xf5\x01\n\x15TrainingProgressEvent\x12@\n\njob_status\x18\x01 \x01(\x0e\x32!.weaveapi.synthesize.v1.JobStatusR\tjobStatus\x12\x1b\n\tstep_name\x18\x02 \x01(\tR\x08stepName\x12\x42\n\x0bstep_status\x18\x03 \x01(\x0e\x32!.weaveapi.synthesize.v1.JobStatusR\nstepStatus\x12#\n\rstep_progress\x18\x04 \x01(\x02R\x0cstepProgress\x12\x14\n\x05\x65rror\x18\x05 \x01(\tR\x05\x65rror*\x88\x01\n\x0eTrainingDriver\x12\x1f\n\x1bTRAINING_DRIVER_UNSPECIFIED\x10\x00\x12\x1c\n\x18TRAINING_DRIVER_MOSTLYAI\x10\x01\x12\x17\n\x13TRAINING_DRIVER_SDV\x10\x02\x12\x1e\n\x1aTRAINING_DRIVER_SMARTNOISE\x10\x03*\x88\x01\n\tJobStatus\x12\x1a\n\x16JOB_STATUS_UNSPECIFIED\x10\x00\x12\x16\n\x12JOB_STATUS_PENDING\x10\x01\x12\x16\n\x12JOB_STATUS_RUNNING\x10\x02\x12\x18\n\x14JOB_STATUS_COMPLETED\x10\x03\x12\x15\n\x11JOB_STATUS_FAILED\x10\x04\x42\xe7\x01\n\x1a\x63om.weaveapi.synthesize.v1B\rTrainingProtoP\x01Z@github.com/weave-labs/weave-go/weaveapi/synthesize/v1;synthesize\xa2\x02\x03WSX\xaa\x02\x16Weaveapi.Synthesize.V1\xca\x02\x16Weaveapi\\Synthesize\\V1\xe2\x02"Weaveapi\\Synthesize\\V1\\GPBMetadata\xea\x02\x18Weaveapi::Synthesize::V1b\x06proto3'
28
+ b'\n%weaveapi/synthesize/v1/training.proto\x12\x16weaveapi.synthesize.v1\x1a\x1cgoogle/protobuf/struct.proto"\xbb\x02\n\x1dStartSynthesizerTrainingEvent\x12%\n\x0esynthesizer_id\x18\x01 \x01(\tR\rsynthesizerId\x12\x1f\n\x0b\x64\x61taset_ids\x18\x02 \x03(\tR\ndatasetIds\x12O\n\x0ftraining_driver\x18\x03 \x01(\x0e\x32&.weaveapi.synthesize.v1.TrainingDriverR\x0etrainingDriver\x12@\n\rdriver_config\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructB\x02(\x01R\x0c\x64riverConfig\x12?\n\x1coutput_storage_connection_id\x18\x05 \x01(\tR\x19outputStorageConnectionId"\xf5\x01\n\x15TrainingProgressEvent\x12@\n\njob_status\x18\x01 \x01(\x0e\x32!.weaveapi.synthesize.v1.JobStatusR\tjobStatus\x12\x1b\n\tstep_name\x18\x02 \x01(\tR\x08stepName\x12\x42\n\x0bstep_status\x18\x03 \x01(\x0e\x32!.weaveapi.synthesize.v1.JobStatusR\nstepStatus\x12#\n\rstep_progress\x18\x04 \x01(\x02R\x0cstepProgress\x12\x14\n\x05\x65rror\x18\x05 \x01(\tR\x05\x65rror*\x88\x01\n\x0eTrainingDriver\x12\x1f\n\x1bTRAINING_DRIVER_UNSPECIFIED\x10\x00\x12\x1c\n\x18TRAINING_DRIVER_MOSTLYAI\x10\x01\x12\x17\n\x13TRAINING_DRIVER_SDV\x10\x02\x12\x1e\n\x1aTRAINING_DRIVER_SMARTNOISE\x10\x03*\x88\x01\n\tJobStatus\x12\x1a\n\x16JOB_STATUS_UNSPECIFIED\x10\x00\x12\x16\n\x12JOB_STATUS_PENDING\x10\x01\x12\x16\n\x12JOB_STATUS_RUNNING\x10\x02\x12\x18\n\x14JOB_STATUS_COMPLETED\x10\x03\x12\x15\n\x11JOB_STATUS_FAILED\x10\x04\x42\xe7\x01\n\x1a\x63om.weaveapi.synthesize.v1B\rTrainingProtoP\x01Z@github.com/weave-labs/weave-go/weaveapi/synthesize/v1;synthesize\xa2\x02\x03WSX\xaa\x02\x16Weaveapi.Synthesize.V1\xca\x02\x16Weaveapi\\Synthesize\\V1\xe2\x02"Weaveapi\\Synthesize\\V1\\GPBMetadata\xea\x02\x18Weaveapi::Synthesize::V1b\x08\x65\x64itionsp\xe8\x07'
29
29
  )
30
30
 
31
31
  _globals = globals()
@@ -38,12 +38,18 @@ if not _descriptor._USE_C_DESCRIPTORS:
38
38
  _globals[
39
39
  "DESCRIPTOR"
40
40
  ]._serialized_options = b'\n\032com.weaveapi.synthesize.v1B\rTrainingProtoP\001Z@github.com/weave-labs/weave-go/weaveapi/synthesize/v1;synthesize\242\002\003WSX\252\002\026Weaveapi.Synthesize.V1\312\002\026Weaveapi\\Synthesize\\V1\342\002"Weaveapi\\Synthesize\\V1\\GPBMetadata\352\002\030Weaveapi::Synthesize::V1'
41
- _globals["_TRAININGDRIVER"]._serialized_start = 658
42
- _globals["_TRAININGDRIVER"]._serialized_end = 794
43
- _globals["_JOBSTATUS"]._serialized_start = 797
44
- _globals["_JOBSTATUS"]._serialized_end = 933
41
+ _globals["_STARTSYNTHESIZERTRAININGEVENT"].fields_by_name[
42
+ "driver_config"
43
+ ]._loaded_options = None
44
+ _globals["_STARTSYNTHESIZERTRAININGEVENT"].fields_by_name[
45
+ "driver_config"
46
+ ]._serialized_options = b"(\001"
47
+ _globals["_TRAININGDRIVER"]._serialized_start = 662
48
+ _globals["_TRAININGDRIVER"]._serialized_end = 798
49
+ _globals["_JOBSTATUS"]._serialized_start = 801
50
+ _globals["_JOBSTATUS"]._serialized_end = 937
45
51
  _globals["_STARTSYNTHESIZERTRAININGEVENT"]._serialized_start = 96
46
- _globals["_STARTSYNTHESIZERTRAININGEVENT"]._serialized_end = 407
47
- _globals["_TRAININGPROGRESSEVENT"]._serialized_start = 410
48
- _globals["_TRAININGPROGRESSEVENT"]._serialized_end = 655
52
+ _globals["_STARTSYNTHESIZERTRAININGEVENT"]._serialized_end = 411
53
+ _globals["_TRAININGPROGRESSEVENT"]._serialized_start = 414
54
+ _globals["_TRAININGPROGRESSEVENT"]._serialized_end = 659
49
55
  # @@protoc_insertion_point(module_scope)
@@ -3,34 +3,31 @@
3
3
  isort:skip_file
4
4
  """
5
5
 
6
- import builtins
7
- import collections.abc
8
- import google.protobuf.descriptor
9
- import google.protobuf.internal.containers
10
- import google.protobuf.internal.enum_type_wrapper
11
- import google.protobuf.message
12
- import google.protobuf.struct_pb2
6
+ from collections import abc as _abc
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import message as _message
9
+ from google.protobuf import struct_pb2 as _struct_pb2
10
+ from google.protobuf.internal import containers as _containers
11
+ from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
12
+ import builtins as _builtins
13
13
  import sys
14
- import typing
14
+ import typing as _typing
15
15
 
16
16
  if sys.version_info >= (3, 10):
17
- import typing as typing_extensions
17
+ from typing import TypeAlias as _TypeAlias
18
18
  else:
19
- import typing_extensions
19
+ from typing_extensions import TypeAlias as _TypeAlias
20
20
 
21
- DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
21
+ DESCRIPTOR: _descriptor.FileDescriptor
22
22
 
23
23
  class _TrainingDriver:
24
- ValueType = typing.NewType("ValueType", builtins.int)
25
- V: typing_extensions.TypeAlias = ValueType
24
+ ValueType = _typing.NewType("ValueType", _builtins.int)
25
+ V: _TypeAlias = ValueType # noqa: Y015
26
26
 
27
27
  class _TrainingDriverEnumTypeWrapper(
28
- google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[
29
- _TrainingDriver.ValueType
30
- ],
31
- builtins.type,
28
+ _enum_type_wrapper._EnumTypeWrapper[_TrainingDriver.ValueType], _builtins.type
32
29
  ):
33
- DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
30
+ DESCRIPTOR: _descriptor.EnumDescriptor
34
31
  TRAINING_DRIVER_UNSPECIFIED: _TrainingDriver.ValueType # 0
35
32
  TRAINING_DRIVER_MOSTLYAI: _TrainingDriver.ValueType # 1
36
33
  TRAINING_DRIVER_SDV: _TrainingDriver.ValueType # 2
@@ -42,17 +39,16 @@ TRAINING_DRIVER_UNSPECIFIED: TrainingDriver.ValueType # 0
42
39
  TRAINING_DRIVER_MOSTLYAI: TrainingDriver.ValueType # 1
43
40
  TRAINING_DRIVER_SDV: TrainingDriver.ValueType # 2
44
41
  TRAINING_DRIVER_SMARTNOISE: TrainingDriver.ValueType # 3
45
- global___TrainingDriver = TrainingDriver
42
+ Global___TrainingDriver: _TypeAlias = TrainingDriver # noqa: Y015
46
43
 
47
44
  class _JobStatus:
48
- ValueType = typing.NewType("ValueType", builtins.int)
49
- V: typing_extensions.TypeAlias = ValueType
45
+ ValueType = _typing.NewType("ValueType", _builtins.int)
46
+ V: _TypeAlias = ValueType # noqa: Y015
50
47
 
51
48
  class _JobStatusEnumTypeWrapper(
52
- google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_JobStatus.ValueType],
53
- builtins.type,
49
+ _enum_type_wrapper._EnumTypeWrapper[_JobStatus.ValueType], _builtins.type
54
50
  ):
55
- DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
51
+ DESCRIPTOR: _descriptor.EnumDescriptor
56
52
  JOB_STATUS_UNSPECIFIED: _JobStatus.ValueType # 0
57
53
  JOB_STATUS_PENDING: _JobStatus.ValueType # 1
58
54
  JOB_STATUS_RUNNING: _JobStatus.ValueType # 2
@@ -66,95 +62,112 @@ JOB_STATUS_PENDING: JobStatus.ValueType # 1
66
62
  JOB_STATUS_RUNNING: JobStatus.ValueType # 2
67
63
  JOB_STATUS_COMPLETED: JobStatus.ValueType # 3
68
64
  JOB_STATUS_FAILED: JobStatus.ValueType # 4
69
- global___JobStatus = JobStatus
70
-
71
- @typing.final
72
- class StartSynthesizerTrainingEvent(google.protobuf.message.Message):
73
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
74
-
75
- SYNTHESIZER_ID_FIELD_NUMBER: builtins.int
76
- DATASET_IDS_FIELD_NUMBER: builtins.int
77
- TRAINING_DRIVER_FIELD_NUMBER: builtins.int
78
- DRIVER_CONFIG_FIELD_NUMBER: builtins.int
79
- OUTPUT_STORAGE_CONNECTION_ID_FIELD_NUMBER: builtins.int
80
- synthesizer_id: builtins.str
81
- training_driver: global___TrainingDriver.ValueType
82
- output_storage_connection_id: builtins.str
83
- @property
65
+ Global___JobStatus: _TypeAlias = JobStatus # noqa: Y015
66
+
67
+ @_typing.final
68
+ class StartSynthesizerTrainingEvent(_message.Message):
69
+ DESCRIPTOR: _descriptor.Descriptor
70
+
71
+ SYNTHESIZER_ID_FIELD_NUMBER: _builtins.int
72
+ DATASET_IDS_FIELD_NUMBER: _builtins.int
73
+ TRAINING_DRIVER_FIELD_NUMBER: _builtins.int
74
+ DRIVER_CONFIG_FIELD_NUMBER: _builtins.int
75
+ OUTPUT_STORAGE_CONNECTION_ID_FIELD_NUMBER: _builtins.int
76
+ synthesizer_id: _builtins.str
77
+ training_driver: Global___TrainingDriver.ValueType
78
+ output_storage_connection_id: _builtins.str
79
+ @_builtins.property
84
80
  def dataset_ids(
85
81
  self,
86
- ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[
87
- builtins.str
88
- ]: ...
89
- @property
90
- def driver_config(self) -> google.protobuf.struct_pb2.Struct: ...
82
+ ) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ...
83
+ @_builtins.property
84
+ def driver_config(self) -> _struct_pb2.Struct: ...
91
85
  def __init__(
92
86
  self,
93
87
  *,
94
- synthesizer_id: builtins.str = ...,
95
- dataset_ids: collections.abc.Iterable[builtins.str] | None = ...,
96
- training_driver: global___TrainingDriver.ValueType = ...,
97
- driver_config: google.protobuf.struct_pb2.Struct | None = ...,
98
- output_storage_connection_id: builtins.str = ...,
88
+ synthesizer_id: _builtins.str | None = ...,
89
+ dataset_ids: _abc.Iterable[_builtins.str] | None = ...,
90
+ training_driver: Global___TrainingDriver.ValueType | None = ...,
91
+ driver_config: _struct_pb2.Struct | None = ...,
92
+ output_storage_connection_id: _builtins.str | None = ...,
99
93
  ) -> None: ...
100
- def HasField(
101
- self, field_name: typing.Literal["driver_config", b"driver_config"]
102
- ) -> builtins.bool: ...
103
- def ClearField(
104
- self,
105
- field_name: typing.Literal[
106
- "dataset_ids",
107
- b"dataset_ids",
108
- "driver_config",
109
- b"driver_config",
110
- "output_storage_connection_id",
111
- b"output_storage_connection_id",
112
- "synthesizer_id",
113
- b"synthesizer_id",
114
- "training_driver",
115
- b"training_driver",
116
- ],
117
- ) -> None: ...
118
-
119
- global___StartSynthesizerTrainingEvent = StartSynthesizerTrainingEvent
120
-
121
- @typing.final
122
- class TrainingProgressEvent(google.protobuf.message.Message):
123
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
124
-
125
- JOB_STATUS_FIELD_NUMBER: builtins.int
126
- STEP_NAME_FIELD_NUMBER: builtins.int
127
- STEP_STATUS_FIELD_NUMBER: builtins.int
128
- STEP_PROGRESS_FIELD_NUMBER: builtins.int
129
- ERROR_FIELD_NUMBER: builtins.int
130
- job_status: global___JobStatus.ValueType
131
- step_name: builtins.str
132
- step_status: global___JobStatus.ValueType
133
- step_progress: builtins.float
134
- error: builtins.str
94
+ _HasFieldArgType: _TypeAlias = _typing.Literal[
95
+ "dataset_ids",
96
+ b"dataset_ids",
97
+ "driver_config",
98
+ b"driver_config",
99
+ "output_storage_connection_id",
100
+ b"output_storage_connection_id",
101
+ "synthesizer_id",
102
+ b"synthesizer_id",
103
+ "training_driver",
104
+ b"training_driver",
105
+ ] # noqa: Y015
106
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
107
+ _ClearFieldArgType: _TypeAlias = _typing.Literal[
108
+ "dataset_ids",
109
+ b"dataset_ids",
110
+ "driver_config",
111
+ b"driver_config",
112
+ "output_storage_connection_id",
113
+ b"output_storage_connection_id",
114
+ "synthesizer_id",
115
+ b"synthesizer_id",
116
+ "training_driver",
117
+ b"training_driver",
118
+ ] # noqa: Y015
119
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
120
+
121
+ Global___StartSynthesizerTrainingEvent: _TypeAlias = StartSynthesizerTrainingEvent # noqa: Y015
122
+
123
+ @_typing.final
124
+ class TrainingProgressEvent(_message.Message):
125
+ DESCRIPTOR: _descriptor.Descriptor
126
+
127
+ JOB_STATUS_FIELD_NUMBER: _builtins.int
128
+ STEP_NAME_FIELD_NUMBER: _builtins.int
129
+ STEP_STATUS_FIELD_NUMBER: _builtins.int
130
+ STEP_PROGRESS_FIELD_NUMBER: _builtins.int
131
+ ERROR_FIELD_NUMBER: _builtins.int
132
+ job_status: Global___JobStatus.ValueType
133
+ step_name: _builtins.str
134
+ step_status: Global___JobStatus.ValueType
135
+ step_progress: _builtins.float
136
+ error: _builtins.str
135
137
  def __init__(
136
138
  self,
137
139
  *,
138
- job_status: global___JobStatus.ValueType = ...,
139
- step_name: builtins.str = ...,
140
- step_status: global___JobStatus.ValueType = ...,
141
- step_progress: builtins.float = ...,
142
- error: builtins.str = ...,
140
+ job_status: Global___JobStatus.ValueType | None = ...,
141
+ step_name: _builtins.str | None = ...,
142
+ step_status: Global___JobStatus.ValueType | None = ...,
143
+ step_progress: _builtins.float | None = ...,
144
+ error: _builtins.str | None = ...,
143
145
  ) -> None: ...
144
- def ClearField(
145
- self,
146
- field_name: typing.Literal[
147
- "error",
148
- b"error",
149
- "job_status",
150
- b"job_status",
151
- "step_name",
152
- b"step_name",
153
- "step_progress",
154
- b"step_progress",
155
- "step_status",
156
- b"step_status",
157
- ],
158
- ) -> None: ...
159
-
160
- global___TrainingProgressEvent = TrainingProgressEvent
146
+ _HasFieldArgType: _TypeAlias = _typing.Literal[
147
+ "error",
148
+ b"error",
149
+ "job_status",
150
+ b"job_status",
151
+ "step_name",
152
+ b"step_name",
153
+ "step_progress",
154
+ b"step_progress",
155
+ "step_status",
156
+ b"step_status",
157
+ ] # noqa: Y015
158
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
159
+ _ClearFieldArgType: _TypeAlias = _typing.Literal[
160
+ "error",
161
+ b"error",
162
+ "job_status",
163
+ b"job_status",
164
+ "step_name",
165
+ b"step_name",
166
+ "step_progress",
167
+ b"step_progress",
168
+ "step_status",
169
+ b"step_status",
170
+ ] # noqa: Y015
171
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
172
+
173
+ Global___TrainingProgressEvent: _TypeAlias = TrainingProgressEvent # noqa: Y015
@@ -3,18 +3,19 @@
3
3
  isort:skip_file
4
4
  """
5
5
 
6
- import abc
7
- import collections.abc
8
- import grpc
9
- import grpc.aio
10
- import typing
6
+ from collections import abc as _abc
7
+ from grpc import aio as _aio
8
+ import abc as _abc_1
9
+ import grpc as _grpc
10
+ import typing as _typing
11
11
 
12
- _T = typing.TypeVar("_T")
12
+ _T = _typing.TypeVar("_T")
13
13
 
14
14
  class _MaybeAsyncIterator(
15
- collections.abc.AsyncIterator[_T],
16
- collections.abc.Iterator[_T],
17
- metaclass=abc.ABCMeta,
15
+ _abc.AsyncIterator[_T], _abc.Iterator[_T], metaclass=_abc_1.ABCMeta
18
16
  ): ...
19
- class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
17
+ class _ServicerContext(_grpc.ServicerContext, _aio.ServicerContext): # type: ignore[misc, type-arg]
20
18
  ...
19
+
20
+ GRPC_GENERATED_VERSION: str
21
+ GRPC_VERSION: str