weave-python 0.15.0__tar.gz → 0.17.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. {weave_python-0.15.0 → weave_python-0.17.0}/PKG-INFO +1 -1
  2. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/db/models.py +1 -1
  3. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/db/queries.py +92 -28
  4. weave_python-0.17.0/weave/datamanagement/generate/v1/configuration_pb2.py +57 -0
  5. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/generate/v1/configuration_pb2.pyi +0 -6
  6. weave_python-0.17.0/weave/datamanagement/generate/v1/generate_pb2.py +43 -0
  7. weave_python-0.17.0/weave/datamanagement/generate/v1/generate_pb2.pyi +52 -0
  8. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/generate/v1/service_pb2.py +19 -19
  9. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/generate/v1/service_pb2.pyi +4 -11
  10. weave_python-0.17.0/weave/datamanagement/synthesize/v1/service_pb2.py +79 -0
  11. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/synthesize/v1/service_pb2.pyi +11 -6
  12. weave_python-0.17.0/weave/datamanagement/synthesize/v1/training_pb2.py +49 -0
  13. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/synthesize/v1/training_pb2.pyi +12 -7
  14. weave_python-0.17.0/weave/datamanagement/synthesize/v1/training_pb2_grpc.py +2 -0
  15. weave_python-0.17.0/weave/datamanagement/synthesize/v1/training_pb2_grpc.pyi +20 -0
  16. weave_python-0.15.0/weave/datamanagement/generate/v1/configuration_pb2.py +0 -57
  17. weave_python-0.15.0/weave/datamanagement/synthesize/v1/service_pb2.py +0 -79
  18. weave_python-0.15.0/weave/datamanagement/synthesize/v1/training_pb2.py +0 -49
  19. {weave_python-0.15.0 → weave_python-0.17.0}/.github/workflows/format-lint.yaml +0 -0
  20. {weave_python-0.15.0 → weave_python-0.17.0}/.github/workflows/generate.yaml +0 -0
  21. {weave_python-0.15.0 → weave_python-0.17.0}/.github/workflows/release.yaml +0 -0
  22. {weave_python-0.15.0 → weave_python-0.17.0}/.gitignore +0 -0
  23. {weave_python-0.15.0 → weave_python-0.17.0}/.python-version +0 -0
  24. {weave_python-0.15.0 → weave_python-0.17.0}/buf.gen.yaml +0 -0
  25. {weave_python-0.15.0 → weave_python-0.17.0}/pyproject.toml +0 -0
  26. {weave_python-0.15.0 → weave_python-0.17.0}/renovate.json +0 -0
  27. {weave_python-0.15.0 → weave_python-0.17.0}/sqlc.yaml +0 -0
  28. {weave_python-0.15.0 → weave_python-0.17.0}/uv.lock +0 -0
  29. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/generate/v1/configuration_pb2_grpc.py +0 -0
  30. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/generate/v1/configuration_pb2_grpc.pyi +0 -0
  31. /weave_python-0.15.0/weave/datamanagement/storage/v1/auth_pb2_grpc.py → /weave_python-0.17.0/weave/datamanagement/generate/v1/generate_pb2_grpc.py +0 -0
  32. /weave_python-0.15.0/weave/datamanagement/storage/v1/auth_pb2_grpc.pyi → /weave_python-0.17.0/weave/datamanagement/generate/v1/generate_pb2_grpc.pyi +0 -0
  33. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/generate/v1/service_pb2_grpc.py +0 -0
  34. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/generate/v1/service_pb2_grpc.pyi +0 -0
  35. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/storage/v1/auth_pb2.py +0 -0
  36. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/storage/v1/auth_pb2.pyi +0 -0
  37. /weave_python-0.15.0/weave/datamanagement/storage/v1/nosql_database_pb2_grpc.py → /weave_python-0.17.0/weave/datamanagement/storage/v1/auth_pb2_grpc.py +0 -0
  38. /weave_python-0.15.0/weave/datamanagement/storage/v1/nosql_database_pb2_grpc.pyi → /weave_python-0.17.0/weave/datamanagement/storage/v1/auth_pb2_grpc.pyi +0 -0
  39. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/storage/v1/nosql_database_pb2.py +0 -0
  40. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/storage/v1/nosql_database_pb2.pyi +0 -0
  41. /weave_python-0.15.0/weave/datamanagement/storage/v1/object_store_pb2_grpc.py → /weave_python-0.17.0/weave/datamanagement/storage/v1/nosql_database_pb2_grpc.py +0 -0
  42. /weave_python-0.15.0/weave/datamanagement/storage/v1/object_store_pb2_grpc.pyi → /weave_python-0.17.0/weave/datamanagement/storage/v1/nosql_database_pb2_grpc.pyi +0 -0
  43. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/storage/v1/object_store_pb2.py +0 -0
  44. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/storage/v1/object_store_pb2.pyi +0 -0
  45. /weave_python-0.15.0/weave/datamanagement/storage/v1/sql_database_pb2_grpc.py → /weave_python-0.17.0/weave/datamanagement/storage/v1/object_store_pb2_grpc.py +0 -0
  46. /weave_python-0.15.0/weave/datamanagement/storage/v1/sql_database_pb2_grpc.pyi → /weave_python-0.17.0/weave/datamanagement/storage/v1/object_store_pb2_grpc.pyi +0 -0
  47. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/storage/v1/service_pb2.py +0 -0
  48. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/storage/v1/service_pb2.pyi +0 -0
  49. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/storage/v1/service_pb2_grpc.py +0 -0
  50. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/storage/v1/service_pb2_grpc.pyi +0 -0
  51. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/storage/v1/sql_database_pb2.py +0 -0
  52. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/storage/v1/sql_database_pb2.pyi +0 -0
  53. /weave_python-0.15.0/weave/datamanagement/storage/v1/storage_pb2_grpc.py → /weave_python-0.17.0/weave/datamanagement/storage/v1/sql_database_pb2_grpc.py +0 -0
  54. /weave_python-0.15.0/weave/datamanagement/storage/v1/storage_pb2_grpc.pyi → /weave_python-0.17.0/weave/datamanagement/storage/v1/sql_database_pb2_grpc.pyi +0 -0
  55. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/storage/v1/storage_pb2.py +0 -0
  56. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/storage/v1/storage_pb2.pyi +0 -0
  57. /weave_python-0.15.0/weave/datamanagement/synthesize/v1/dataset_pb2_grpc.py → /weave_python-0.17.0/weave/datamanagement/storage/v1/storage_pb2_grpc.py +0 -0
  58. /weave_python-0.15.0/weave/datamanagement/synthesize/v1/dataset_pb2_grpc.pyi → /weave_python-0.17.0/weave/datamanagement/storage/v1/storage_pb2_grpc.pyi +0 -0
  59. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/synthesize/v1/dataset_pb2.py +0 -0
  60. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/synthesize/v1/dataset_pb2.pyi +0 -0
  61. /weave_python-0.15.0/weave/datamanagement/synthesize/v1/inline_data_pb2_grpc.py → /weave_python-0.17.0/weave/datamanagement/synthesize/v1/dataset_pb2_grpc.py +0 -0
  62. /weave_python-0.15.0/weave/datamanagement/synthesize/v1/inline_data_pb2_grpc.pyi → /weave_python-0.17.0/weave/datamanagement/synthesize/v1/dataset_pb2_grpc.pyi +0 -0
  63. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/synthesize/v1/inline_data_pb2.py +0 -0
  64. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/synthesize/v1/inline_data_pb2.pyi +0 -0
  65. /weave_python-0.15.0/weave/datamanagement/synthesize/v1/relationship_pb2_grpc.py → /weave_python-0.17.0/weave/datamanagement/synthesize/v1/inline_data_pb2_grpc.py +0 -0
  66. /weave_python-0.15.0/weave/datamanagement/synthesize/v1/relationship_pb2_grpc.pyi → /weave_python-0.17.0/weave/datamanagement/synthesize/v1/inline_data_pb2_grpc.pyi +0 -0
  67. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/synthesize/v1/relationship_pb2.py +0 -0
  68. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/synthesize/v1/relationship_pb2.pyi +0 -0
  69. /weave_python-0.15.0/weave/datamanagement/synthesize/v1/training_pb2_grpc.py → /weave_python-0.17.0/weave/datamanagement/synthesize/v1/relationship_pb2_grpc.py +0 -0
  70. /weave_python-0.15.0/weave/datamanagement/synthesize/v1/training_pb2_grpc.pyi → /weave_python-0.17.0/weave/datamanagement/synthesize/v1/relationship_pb2_grpc.pyi +0 -0
  71. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/synthesize/v1/service_pb2_grpc.py +0 -0
  72. {weave_python-0.15.0 → weave_python-0.17.0}/weave/datamanagement/synthesize/v1/service_pb2_grpc.pyi +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: weave-python
3
- Version: 0.15.0
3
+ Version: 0.17.0
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: protobuf>=6.30.2
6
6
  Requires-Dist: sqlalchemy>=2.0.40
@@ -115,7 +115,7 @@ class SynthesizeV1Dataset:
115
115
 
116
116
 
117
117
  @dataclasses.dataclass()
118
- class SynthesizeV1Model:
118
+ class SynthesizeV1Synthesizer:
119
119
  id: uuid.UUID
120
120
  organization_id: uuid.UUID
121
121
  name: str
@@ -13,21 +13,18 @@ from weave.datamanagement.db import models
13
13
 
14
14
 
15
15
  GET_FOREIGN_KEY_RELATIONSHIPS = """-- name: get_foreign_key_relationships \\:many
16
- SELECT
17
- cr.source_dataset_id,
18
- cr.target_dataset_id,
19
- sc.name AS source_column_name,
20
- tc.name AS target_column_name
21
- FROM
22
- synthesize_v1.column_relationship cr
23
- JOIN
24
- synthesize_v1.data_column sc ON cr.source_column_id = sc.id
25
- JOIN
26
- synthesize_v1.data_column tc ON cr.target_column_id = tc.id
27
- WHERE
28
- cr.relationship_type IN ('context_foreign_key', 'non_context_foreign_key')
29
- AND cr.source_dataset_id = ANY(:p1\\:\\:UUID[])
30
- AND cr.target_dataset_id = ANY(:p1\\:\\:UUID[])
16
+ SELECT cr.source_dataset_id,
17
+ cr.target_dataset_id,
18
+ sc.name AS source_column_name,
19
+ tc.name AS target_column_name
20
+ FROM synthesize_v1.column_relationship cr
21
+ JOIN
22
+ synthesize_v1.data_column sc ON cr.source_column_id = sc.id
23
+ JOIN
24
+ synthesize_v1.data_column tc ON cr.target_column_id = tc.id
25
+ WHERE cr.relationship_type IN ('context_foreign_key', 'non_context_foreign_key')
26
+ AND cr.source_dataset_id = ANY (:p1\\:\\:UUID[])
27
+ AND cr.target_dataset_id = ANY (:p1\\:\\:UUID[])
31
28
  """
32
29
 
33
30
 
@@ -49,24 +46,55 @@ WHERE id = :p1
49
46
  GET_STORAGE_CONNECTION_BY_DATASET_ID = """-- name: get_storage_connection_by_dataset_id \\:one
50
47
  SELECT sc.id, sc.organization_id, sc.name, sc.description, sc.category, sc.variant, sc.details
51
48
  FROM storage_connection sc
52
- JOIN synthesize_v1.dataset d ON d.storage_connection_id = sc.id
49
+ JOIN synthesize_v1.dataset d ON d.storage_connection_id = sc.id
53
50
  WHERE d.id = :p1
54
51
  """
55
52
 
56
53
 
57
- UPSERT_MODEL = """-- name: upsert_model \\:exec
58
- INSERT INTO synthesize_v1.model (id, organization_id, name, description, storage_connection_id, metadata)
54
+ GET_SYNTHESIZER = """-- name: get_synthesizer \\:exec
55
+ SELECT id, organization_id, name, description, storage_connection_id, metadata
56
+ FROM synthesize_v1.synthesizer
57
+ WHERE id = :p1
58
+ """
59
+
60
+
61
+ UPSERT_DATASET = """-- name: upsert_dataset \\:exec
62
+ INSERT INTO synthesize_v1.dataset (id, organization_id, name, description, storage_connection_id, schema_id, model_id,
63
+ is_synthetic)
64
+ VALUES (:p1, :p2, :p3, :p4, :p5, :p6, :p7, :p8)
65
+ ON CONFLICT (id) DO UPDATE SET name = EXCLUDED.name,
66
+ description = EXCLUDED.description,
67
+ storage_connection_id = EXCLUDED.storage_connection_id,
68
+ schema_id = EXCLUDED.schema_id,
69
+ model_id = EXCLUDED.model_id,
70
+ is_synthetic = EXCLUDED.is_synthetic
71
+ """
72
+
73
+
74
+ @dataclasses.dataclass()
75
+ class UpsertDatasetParams:
76
+ id: uuid.UUID
77
+ organization_id: uuid.UUID
78
+ name: str
79
+ description: Optional[str]
80
+ storage_connection_id: uuid.UUID
81
+ schema_id: uuid.UUID
82
+ model_id: Optional[uuid.UUID]
83
+ is_synthetic: Optional[bool]
84
+
85
+
86
+ UPSERT_SYNTHESIZER = """-- name: upsert_synthesizer \\:exec
87
+ INSERT INTO synthesize_v1.synthesizer (id, organization_id, name, description, storage_connection_id, metadata)
59
88
  VALUES (:p1, :p2, :p3, :p4, :p5, :p6)
60
- ON CONFLICT (id) DO UPDATE SET
61
- name = EXCLUDED.name,
62
- description = EXCLUDED.description,
63
- storage_connection_id = EXCLUDED.storage_connection_id,
64
- metadata = EXCLUDED.metadata
89
+ ON CONFLICT (id) DO UPDATE SET name = EXCLUDED.name,
90
+ description = EXCLUDED.description,
91
+ storage_connection_id = EXCLUDED.storage_connection_id,
92
+ metadata = EXCLUDED.metadata
65
93
  """
66
94
 
67
95
 
68
96
  @dataclasses.dataclass()
69
- class UpsertModelParams:
97
+ class UpsertSynthesizerParams:
70
98
  id: uuid.UUID
71
99
  organization_id: uuid.UUID
72
100
  name: str
@@ -129,9 +157,27 @@ class Querier:
129
157
  details=row[6],
130
158
  )
131
159
 
132
- def upsert_model(self, arg: UpsertModelParams) -> None:
160
+ def get_synthesizer(self, *, id: uuid.UUID) -> None:
161
+ self._conn.execute(sqlalchemy.text(GET_SYNTHESIZER), {"p1": id})
162
+
163
+ def upsert_dataset(self, arg: UpsertDatasetParams) -> None:
133
164
  self._conn.execute(
134
- sqlalchemy.text(UPSERT_MODEL),
165
+ sqlalchemy.text(UPSERT_DATASET),
166
+ {
167
+ "p1": arg.id,
168
+ "p2": arg.organization_id,
169
+ "p3": arg.name,
170
+ "p4": arg.description,
171
+ "p5": arg.storage_connection_id,
172
+ "p6": arg.schema_id,
173
+ "p7": arg.model_id,
174
+ "p8": arg.is_synthetic,
175
+ },
176
+ )
177
+
178
+ def upsert_synthesizer(self, arg: UpsertSynthesizerParams) -> None:
179
+ self._conn.execute(
180
+ sqlalchemy.text(UPSERT_SYNTHESIZER),
135
181
  {
136
182
  "p1": arg.id,
137
183
  "p2": arg.organization_id,
@@ -202,9 +248,27 @@ class AsyncQuerier:
202
248
  details=row[6],
203
249
  )
204
250
 
205
- async def upsert_model(self, arg: UpsertModelParams) -> None:
251
+ async def get_synthesizer(self, *, id: uuid.UUID) -> None:
252
+ await self._conn.execute(sqlalchemy.text(GET_SYNTHESIZER), {"p1": id})
253
+
254
+ async def upsert_dataset(self, arg: UpsertDatasetParams) -> None:
255
+ await self._conn.execute(
256
+ sqlalchemy.text(UPSERT_DATASET),
257
+ {
258
+ "p1": arg.id,
259
+ "p2": arg.organization_id,
260
+ "p3": arg.name,
261
+ "p4": arg.description,
262
+ "p5": arg.storage_connection_id,
263
+ "p6": arg.schema_id,
264
+ "p7": arg.model_id,
265
+ "p8": arg.is_synthetic,
266
+ },
267
+ )
268
+
269
+ async def upsert_synthesizer(self, arg: UpsertSynthesizerParams) -> None:
206
270
  await self._conn.execute(
207
- sqlalchemy.text(UPSERT_MODEL),
271
+ sqlalchemy.text(UPSERT_SYNTHESIZER),
208
272
  {
209
273
  "p1": arg.id,
210
274
  "p2": arg.organization_id,
@@ -0,0 +1,57 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: weave/datamanagement/generate/v1/configuration.proto
5
+ # Protobuf Python Version: 6.30.2
6
+ """Generated protocol buffer code."""
7
+
8
+ from google.protobuf import descriptor as _descriptor
9
+ from google.protobuf import descriptor_pool as _descriptor_pool
10
+ from google.protobuf import runtime_version as _runtime_version
11
+ from google.protobuf import symbol_database as _symbol_database
12
+ from google.protobuf.internal import builder as _builder
13
+
14
+ _runtime_version.ValidateProtobufRuntimeVersion(
15
+ _runtime_version.Domain.PUBLIC,
16
+ 6,
17
+ 30,
18
+ 2,
19
+ "",
20
+ "weave/datamanagement/generate/v1/configuration.proto",
21
+ )
22
+ # @@protoc_insertion_point(imports)
23
+
24
+ _sym_db = _symbol_database.Default()
25
+
26
+
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
28
+ b'\n4weave/datamanagement/generate/v1/configuration.proto\x12 weave.datamanagement.generate.v1"\x98\x02\n\rConfiguration\x12\x1f\n\x0bnum_records\x18\x01 \x01(\x03R\nnumRecords\x12V\n\x0c\x64\x61ta_quality\x18\x03 \x01(\x0b\x32\x33.weave.datamanagement.generate.v1.DataQualityConfigR\x0b\x64\x61taQuality\x12I\n\x07privacy\x18\x04 \x01(\x0b\x32/.weave.datamanagement.generate.v1.PrivacyConfigR\x07privacy\x12\x43\n\x05model\x18\x05 \x01(\x0b\x32-.weave.datamanagement.generate.v1.ModelConfigR\x05model"\xb1\x02\n\x11\x44\x61taQualityConfig\x12\x31\n\x14\x63orrelation_accuracy\x18\x01 \x01(\x02R\x13\x63orrelationAccuracy\x12\x35\n\x16statistical_similarity\x18\x02 \x01(\x02R\x15statisticalSimilarity\x12+\n\x11preserve_outliers\x18\x03 \x01(\x08R\x10preserveOutliers\x12/\n\x13\x65nforce_constraints\x18\x04 \x01(\x08R\x12\x65nforceConstraints\x12T\n\x0b\x63onstraints\x18\x05 \x03(\x0b\x32\x32.weave.datamanagement.generate.v1.ColumnConstraintR\x0b\x63onstraints"\xe2\x01\n\x10\x43olumnConstraint\x12\x1f\n\x0b\x63olumn_name\x18\x01 \x01(\tR\ncolumnName\x12\'\n\x0f\x63onstraint_type\x18\x02 \x01(\tR\x0e\x63onstraintType\x12\x1b\n\tmin_value\x18\x03 \x01(\tR\x08minValue\x12\x1b\n\tmax_value\x18\x04 \x01(\tR\x08maxValue\x12#\n\rregex_pattern\x18\x05 \x01(\tR\x0cregexPattern\x12%\n\x0e\x61llowed_values\x18\x06 \x03(\tR\rallowedValues"\xd1\x01\n\rPrivacyConfig\x12\x18\n\x07\x65psilon\x18\x01 \x01(\x02R\x07\x65psilon\x12*\n\x11k_anonymity_check\x18\x02 \x01(\x08R\x0fkAnonymityCheck\x12\x17\n\x07k_value\x18\x03 \x01(\x05R\x06kValue\x12+\n\x11sensitive_columns\x18\x04 \x03(\tR\x10sensitiveColumns\x12\x34\n\x16\x65nable_privacy_metrics\x18\x05 \x01(\x08R\x14\x65nablePrivacyMetrics"\xec\x02\n\x0bModelConfig\x12J\n\nmodel_type\x18\x01 \x01(\x0e\x32+.weave.datamanagement.generate.v1.ModelTypeR\tmodelType\x12\x16\n\x06\x65pochs\x18\x02 \x01(\x05R\x06\x65pochs\x12#\n\rlearning_rate\x18\x03 \x01(\x02R\x0clearningRate\x12\x1d\n\nbatch_size\x18\x04 \x01(\x05R\tbatchSize\x12p\n\x11\x63ustom_parameters\x18\x05 \x03(\x0b\x32\x43.weave.datamanagement.generate.v1.ModelConfig.CustomParametersEntryR\x10\x63ustomParameters\x1a\x43\n\x15\x43ustomParametersEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01*\xea\x01\n\tModelType\x12\x1a\n\x16MODEL_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10MODEL_TYPE_CTGAN\x10\x01\x12\x13\n\x0fMODEL_TYPE_TVAE\x10\x02\x12\x15\n\x11MODEL_TYPE_COPULA\x10\x03\x12\x13\n\x0fMODEL_TYPE_FAST\x10\x04\x12\x12\n\x0eMODEL_TYPE_GAN\x10\x05\x12\x13\n\x0fMODEL_TYPE_WGAN\x10\x06\x12\x14\n\x10MODEL_TYPE_SMOTE\x10\x07\x12\x17\n\x13MODEL_TYPE_BAYESIAN\x10\x08\x12\x12\n\x0eMODEL_TYPE_HMA\x10\tB\xab\x02\n$com.weave.datamanagement.generate.v1B\x12\x43onfigurationProtoP\x01ZLgithub.com/weave-labs/weave-go/pkg/weave/datamanagement/generate/v1;generate\xa2\x02\x03WDG\xaa\x02 Weave.Datamanagement.Generate.V1\xca\x02 Weave\\Datamanagement\\Generate\\V1\xe2\x02,Weave\\Datamanagement\\Generate\\V1\\GPBMetadata\xea\x02#Weave::Datamanagement::Generate::V1b\x06proto3'
29
+ )
30
+
31
+ _globals = globals()
32
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
33
+ _builder.BuildTopDescriptorsAndMessages(
34
+ DESCRIPTOR, "weave.datamanagement.generate.v1.configuration_pb2", _globals
35
+ )
36
+ if not _descriptor._USE_C_DESCRIPTORS:
37
+ _globals["DESCRIPTOR"]._loaded_options = None
38
+ _globals[
39
+ "DESCRIPTOR"
40
+ ]._serialized_options = b"\n$com.weave.datamanagement.generate.v1B\022ConfigurationProtoP\001ZLgithub.com/weave-labs/weave-go/pkg/weave/datamanagement/generate/v1;generate\242\002\003WDG\252\002 Weave.Datamanagement.Generate.V1\312\002 Weave\\Datamanagement\\Generate\\V1\342\002,Weave\\Datamanagement\\Generate\\V1\\GPBMetadata\352\002#Weave::Datamanagement::Generate::V1"
41
+ _globals["_MODELCONFIG_CUSTOMPARAMETERSENTRY"]._loaded_options = None
42
+ _globals["_MODELCONFIG_CUSTOMPARAMETERSENTRY"]._serialized_options = b"8\001"
43
+ _globals["_MODELTYPE"]._serialized_start = 1490
44
+ _globals["_MODELTYPE"]._serialized_end = 1724
45
+ _globals["_CONFIGURATION"]._serialized_start = 91
46
+ _globals["_CONFIGURATION"]._serialized_end = 371
47
+ _globals["_DATAQUALITYCONFIG"]._serialized_start = 374
48
+ _globals["_DATAQUALITYCONFIG"]._serialized_end = 679
49
+ _globals["_COLUMNCONSTRAINT"]._serialized_start = 682
50
+ _globals["_COLUMNCONSTRAINT"]._serialized_end = 908
51
+ _globals["_PRIVACYCONFIG"]._serialized_start = 911
52
+ _globals["_PRIVACYCONFIG"]._serialized_end = 1120
53
+ _globals["_MODELCONFIG"]._serialized_start = 1123
54
+ _globals["_MODELCONFIG"]._serialized_end = 1487
55
+ _globals["_MODELCONFIG_CUSTOMPARAMETERSENTRY"]._serialized_start = 1420
56
+ _globals["_MODELCONFIG_CUSTOMPARAMETERSENTRY"]._serialized_end = 1487
57
+ # @@protoc_insertion_point(module_scope)
@@ -79,7 +79,6 @@ class Configuration(google.protobuf.message.Message):
79
79
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
80
80
 
81
81
  NUM_RECORDS_FIELD_NUMBER: builtins.int
82
- DATASET_NAME_FIELD_NUMBER: builtins.int
83
82
  DATA_QUALITY_FIELD_NUMBER: builtins.int
84
83
  PRIVACY_FIELD_NUMBER: builtins.int
85
84
  MODEL_FIELD_NUMBER: builtins.int
@@ -87,8 +86,6 @@ class Configuration(google.protobuf.message.Message):
87
86
  """Basic configuration
88
87
  Number of synthetic records to generate
89
88
  """
90
- dataset_name: builtins.str
91
- """Name for the generated dataset"""
92
89
  @property
93
90
  def data_quality(self) -> global___DataQualityConfig:
94
91
  """Data quality settings
@@ -111,7 +108,6 @@ class Configuration(google.protobuf.message.Message):
111
108
  self,
112
109
  *,
113
110
  num_records: builtins.int = ...,
114
- dataset_name: builtins.str = ...,
115
111
  data_quality: global___DataQualityConfig | None = ...,
116
112
  privacy: global___PrivacyConfig | None = ...,
117
113
  model: global___ModelConfig | None = ...,
@@ -127,8 +123,6 @@ class Configuration(google.protobuf.message.Message):
127
123
  field_name: typing.Literal[
128
124
  "data_quality",
129
125
  b"data_quality",
130
- "dataset_name",
131
- b"dataset_name",
132
126
  "model",
133
127
  b"model",
134
128
  "num_records",
@@ -0,0 +1,43 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: weave/datamanagement/generate/v1/generate.proto
5
+ # Protobuf Python Version: 6.30.2
6
+ """Generated protocol buffer code."""
7
+
8
+ from google.protobuf import descriptor as _descriptor
9
+ from google.protobuf import descriptor_pool as _descriptor_pool
10
+ from google.protobuf import runtime_version as _runtime_version
11
+ from google.protobuf import symbol_database as _symbol_database
12
+ from google.protobuf.internal import builder as _builder
13
+
14
+ _runtime_version.ValidateProtobufRuntimeVersion(
15
+ _runtime_version.Domain.PUBLIC,
16
+ 6,
17
+ 30,
18
+ 2,
19
+ "",
20
+ "weave/datamanagement/generate/v1/generate.proto",
21
+ )
22
+ # @@protoc_insertion_point(imports)
23
+
24
+ _sym_db = _symbol_database.Default()
25
+
26
+
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
28
+ b'\n/weave/datamanagement/generate/v1/generate.proto\x12 weave.datamanagement.generate.v1\x1a\x1cgoogle/protobuf/struct.proto"\xb1\x01\n\x1bStartDatasetGenerationEvent\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12%\n\x0esynthesizer_id\x18\x02 \x01(\tR\rsynthesizerId\x12*\n\x11output_storage_id\x18\x03 \x01(\tR\x0foutputStorageId\x12/\n\x06\x63onfig\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructR\x06\x63onfigB\xa6\x02\n$com.weave.datamanagement.generate.v1B\rGenerateProtoP\x01ZLgithub.com/weave-labs/weave-go/pkg/weave/datamanagement/generate/v1;generate\xa2\x02\x03WDG\xaa\x02 Weave.Datamanagement.Generate.V1\xca\x02 Weave\\Datamanagement\\Generate\\V1\xe2\x02,Weave\\Datamanagement\\Generate\\V1\\GPBMetadata\xea\x02#Weave::Datamanagement::Generate::V1b\x06proto3'
29
+ )
30
+
31
+ _globals = globals()
32
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
33
+ _builder.BuildTopDescriptorsAndMessages(
34
+ DESCRIPTOR, "weave.datamanagement.generate.v1.generate_pb2", _globals
35
+ )
36
+ if not _descriptor._USE_C_DESCRIPTORS:
37
+ _globals["DESCRIPTOR"]._loaded_options = None
38
+ _globals[
39
+ "DESCRIPTOR"
40
+ ]._serialized_options = b"\n$com.weave.datamanagement.generate.v1B\rGenerateProtoP\001ZLgithub.com/weave-labs/weave-go/pkg/weave/datamanagement/generate/v1;generate\242\002\003WDG\252\002 Weave.Datamanagement.Generate.V1\312\002 Weave\\Datamanagement\\Generate\\V1\342\002,Weave\\Datamanagement\\Generate\\V1\\GPBMetadata\352\002#Weave::Datamanagement::Generate::V1"
41
+ _globals["_STARTDATASETGENERATIONEVENT"]._serialized_start = 116
42
+ _globals["_STARTDATASETGENERATIONEVENT"]._serialized_end = 293
43
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,52 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ import builtins
7
+ import google.protobuf.descriptor
8
+ import google.protobuf.message
9
+ import google.protobuf.struct_pb2
10
+ import typing
11
+
12
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
13
+
14
+ @typing.final
15
+ class StartDatasetGenerationEvent(google.protobuf.message.Message):
16
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
17
+
18
+ ID_FIELD_NUMBER: builtins.int
19
+ SYNTHESIZER_ID_FIELD_NUMBER: builtins.int
20
+ OUTPUT_STORAGE_ID_FIELD_NUMBER: builtins.int
21
+ CONFIG_FIELD_NUMBER: builtins.int
22
+ id: builtins.str
23
+ synthesizer_id: builtins.str
24
+ output_storage_id: builtins.str
25
+ @property
26
+ def config(self) -> google.protobuf.struct_pb2.Struct: ...
27
+ def __init__(
28
+ self,
29
+ *,
30
+ id: builtins.str = ...,
31
+ synthesizer_id: builtins.str = ...,
32
+ output_storage_id: builtins.str = ...,
33
+ config: google.protobuf.struct_pb2.Struct | None = ...,
34
+ ) -> None: ...
35
+ def HasField(
36
+ self, field_name: typing.Literal["config", b"config"]
37
+ ) -> builtins.bool: ...
38
+ def ClearField(
39
+ self,
40
+ field_name: typing.Literal[
41
+ "config",
42
+ b"config",
43
+ "id",
44
+ b"id",
45
+ "output_storage_id",
46
+ b"output_storage_id",
47
+ "synthesizer_id",
48
+ b"synthesizer_id",
49
+ ],
50
+ ) -> None: ...
51
+
52
+ global___StartDatasetGenerationEvent = StartDatasetGenerationEvent
@@ -25,7 +25,7 @@ _sym_db = _symbol_database.Default()
25
25
 
26
26
 
27
27
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
28
- b'\n.weave/datamanagement/generate/v1/service.proto\x12 weave.datamanagement.generate.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x34weave/datamanagement/generate/v1/configuration.proto"\xe4\x01\n\x1d\x43reateSyntheticDatasetRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12%\n\x0esynthesizer_id\x18\x02 \x01(\tR\rsynthesizerId\x12*\n\x11output_storage_id\x18\x03 \x01(\tR\x0foutputStorageId\x12G\n\x06\x63onfig\x18\x04 \x01(\x0b\x32/.weave.datamanagement.generate.v1.ConfigurationR\x06\x63onfig"V\n\x1e\x43reateSyntheticDatasetResponse\x12\x1d\n\ndataset_id\x18\x01 \x01(\tR\tdatasetId\x12\x15\n\x06job_id\x18\x02 \x01(\tR\x05jobId";\n\x1aGetSyntheticDatasetRequest\x12\x1d\n\ndataset_id\x18\x01 \x01(\tR\tdatasetId">\n\x1bGetSyntheticDatasetResponse\x12\x1f\n\x0b\x64\x61taset_ids\x18\x01 \x03(\tR\ndatasetIds"\x83\x01\n\x1cListSyntheticDatasetsRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\x1b\n\tpage_size\x18\x02 \x01(\x05R\x08pageSize\x12\x1d\n\npage_token\x18\x03 \x01(\tR\tpageToken"h\n\x1dListSyntheticDatasetsResponse\x12\x1f\n\x0b\x64\x61taset_ids\x18\x01 \x03(\tR\ndatasetIds\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken">\n\x1d\x44\x65leteSyntheticDatasetRequest\x12\x1d\n\ndataset_id\x18\x01 \x01(\tR\tdatasetId":\n\x1e\x44\x65leteSyntheticDatasetResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success2\xbb\x06\n\x08Generate\x12\xcd\x01\n\x16\x43reateSyntheticDataset\x12?.weave.datamanagement.generate.v1.CreateSyntheticDatasetRequest\x1a@.weave.datamanagement.generate.v1.CreateSyntheticDatasetResponse"0\x82\xd3\xe4\x93\x02*"%/v1/generate/synthetic-dataset/create:\x01*\x12\xc7\x01\n\x13GetSyntheticDataset\x12<.weave.datamanagement.generate.v1.GetSyntheticDatasetRequest\x1a=.weave.datamanagement.generate.v1.GetSyntheticDatasetResponse"3\x82\xd3\xe4\x93\x02-\x12+/v1/generate/synthetic-dataset/{dataset_id}\x12\xc1\x01\n\x15ListSyntheticDatasets\x12>.weave.datamanagement.generate.v1.ListSyntheticDatasetsRequest\x1a?.weave.datamanagement.generate.v1.ListSyntheticDatasetsResponse"\'\x82\xd3\xe4\x93\x02!\x12\x1f/v1/generate/synthetic-datasets\x12\xd0\x01\n\x16\x44\x65leteSyntheticDataset\x12?.weave.datamanagement.generate.v1.DeleteSyntheticDatasetRequest\x1a@.weave.datamanagement.generate.v1.DeleteSyntheticDatasetResponse"3\x82\xd3\xe4\x93\x02-*+/v1/generate/synthetic-dataset/{dataset_id}B\xa5\x02\n$com.weave.datamanagement.generate.v1B\x0cServiceProtoP\x01ZLgithub.com/weave-labs/weave-go/pkg/weave/datamanagement/generate/v1;generate\xa2\x02\x03WDG\xaa\x02 Weave.Datamanagement.Generate.V1\xca\x02 Weave\\Datamanagement\\Generate\\V1\xe2\x02,Weave\\Datamanagement\\Generate\\V1\\GPBMetadata\xea\x02#Weave::Datamanagement::Generate::V1b\x06proto3'
28
+ b'\n.weave/datamanagement/generate/v1/service.proto\x12 weave.datamanagement.generate.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto"\xcc\x01\n\x1d\x43reateSyntheticDatasetRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12%\n\x0esynthesizer_id\x18\x02 \x01(\tR\rsynthesizerId\x12*\n\x11output_storage_id\x18\x03 \x01(\tR\x0foutputStorageId\x12/\n\x06\x63onfig\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructR\x06\x63onfig"?\n\x1e\x43reateSyntheticDatasetResponse\x12\x1d\n\ndataset_id\x18\x01 \x01(\tR\tdatasetId";\n\x1aGetSyntheticDatasetRequest\x12\x1d\n\ndataset_id\x18\x01 \x01(\tR\tdatasetId">\n\x1bGetSyntheticDatasetResponse\x12\x1f\n\x0b\x64\x61taset_ids\x18\x01 \x03(\tR\ndatasetIds"\x83\x01\n\x1cListSyntheticDatasetsRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\x1b\n\tpage_size\x18\x02 \x01(\x05R\x08pageSize\x12\x1d\n\npage_token\x18\x03 \x01(\tR\tpageToken"h\n\x1dListSyntheticDatasetsResponse\x12\x1f\n\x0b\x64\x61taset_ids\x18\x01 \x03(\tR\ndatasetIds\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken">\n\x1d\x44\x65leteSyntheticDatasetRequest\x12\x1d\n\ndataset_id\x18\x01 \x01(\tR\tdatasetId":\n\x1e\x44\x65leteSyntheticDatasetResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success2\xbb\x06\n\x08Generate\x12\xcd\x01\n\x16\x43reateSyntheticDataset\x12?.weave.datamanagement.generate.v1.CreateSyntheticDatasetRequest\x1a@.weave.datamanagement.generate.v1.CreateSyntheticDatasetResponse"0\x82\xd3\xe4\x93\x02*"%/v1/generate/synthetic-dataset/create:\x01*\x12\xc7\x01\n\x13GetSyntheticDataset\x12<.weave.datamanagement.generate.v1.GetSyntheticDatasetRequest\x1a=.weave.datamanagement.generate.v1.GetSyntheticDatasetResponse"3\x82\xd3\xe4\x93\x02-\x12+/v1/generate/synthetic-dataset/{dataset_id}\x12\xc1\x01\n\x15ListSyntheticDatasets\x12>.weave.datamanagement.generate.v1.ListSyntheticDatasetsRequest\x1a?.weave.datamanagement.generate.v1.ListSyntheticDatasetsResponse"\'\x82\xd3\xe4\x93\x02!\x12\x1f/v1/generate/synthetic-datasets\x12\xd0\x01\n\x16\x44\x65leteSyntheticDataset\x12?.weave.datamanagement.generate.v1.DeleteSyntheticDatasetRequest\x1a@.weave.datamanagement.generate.v1.DeleteSyntheticDatasetResponse"3\x82\xd3\xe4\x93\x02-*+/v1/generate/synthetic-dataset/{dataset_id}B\xa5\x02\n$com.weave.datamanagement.generate.v1B\x0cServiceProtoP\x01ZLgithub.com/weave-labs/weave-go/pkg/weave/datamanagement/generate/v1;generate\xa2\x02\x03WDG\xaa\x02 Weave.Datamanagement.Generate.V1\xca\x02 Weave\\Datamanagement\\Generate\\V1\xe2\x02,Weave\\Datamanagement\\Generate\\V1\\GPBMetadata\xea\x02#Weave::Datamanagement::Generate::V1b\x06proto3'
29
29
  )
30
30
 
31
31
  _globals = globals()
@@ -68,22 +68,22 @@ if not _descriptor._USE_C_DESCRIPTORS:
68
68
  ]._serialized_options = (
69
69
  b"\202\323\344\223\002-*+/v1/generate/synthetic-dataset/{dataset_id}"
70
70
  )
71
- _globals["_CREATESYNTHETICDATASETREQUEST"]._serialized_start = 169
72
- _globals["_CREATESYNTHETICDATASETREQUEST"]._serialized_end = 397
73
- _globals["_CREATESYNTHETICDATASETRESPONSE"]._serialized_start = 399
74
- _globals["_CREATESYNTHETICDATASETRESPONSE"]._serialized_end = 485
75
- _globals["_GETSYNTHETICDATASETREQUEST"]._serialized_start = 487
76
- _globals["_GETSYNTHETICDATASETREQUEST"]._serialized_end = 546
77
- _globals["_GETSYNTHETICDATASETRESPONSE"]._serialized_start = 548
78
- _globals["_GETSYNTHETICDATASETRESPONSE"]._serialized_end = 610
79
- _globals["_LISTSYNTHETICDATASETSREQUEST"]._serialized_start = 613
80
- _globals["_LISTSYNTHETICDATASETSREQUEST"]._serialized_end = 744
81
- _globals["_LISTSYNTHETICDATASETSRESPONSE"]._serialized_start = 746
82
- _globals["_LISTSYNTHETICDATASETSRESPONSE"]._serialized_end = 850
83
- _globals["_DELETESYNTHETICDATASETREQUEST"]._serialized_start = 852
84
- _globals["_DELETESYNTHETICDATASETREQUEST"]._serialized_end = 914
85
- _globals["_DELETESYNTHETICDATASETRESPONSE"]._serialized_start = 916
86
- _globals["_DELETESYNTHETICDATASETRESPONSE"]._serialized_end = 974
87
- _globals["_GENERATE"]._serialized_start = 977
88
- _globals["_GENERATE"]._serialized_end = 1804
71
+ _globals["_CREATESYNTHETICDATASETREQUEST"]._serialized_start = 145
72
+ _globals["_CREATESYNTHETICDATASETREQUEST"]._serialized_end = 349
73
+ _globals["_CREATESYNTHETICDATASETRESPONSE"]._serialized_start = 351
74
+ _globals["_CREATESYNTHETICDATASETRESPONSE"]._serialized_end = 414
75
+ _globals["_GETSYNTHETICDATASETREQUEST"]._serialized_start = 416
76
+ _globals["_GETSYNTHETICDATASETREQUEST"]._serialized_end = 475
77
+ _globals["_GETSYNTHETICDATASETRESPONSE"]._serialized_start = 477
78
+ _globals["_GETSYNTHETICDATASETRESPONSE"]._serialized_end = 539
79
+ _globals["_LISTSYNTHETICDATASETSREQUEST"]._serialized_start = 542
80
+ _globals["_LISTSYNTHETICDATASETSREQUEST"]._serialized_end = 673
81
+ _globals["_LISTSYNTHETICDATASETSRESPONSE"]._serialized_start = 675
82
+ _globals["_LISTSYNTHETICDATASETSRESPONSE"]._serialized_end = 779
83
+ _globals["_DELETESYNTHETICDATASETREQUEST"]._serialized_start = 781
84
+ _globals["_DELETESYNTHETICDATASETREQUEST"]._serialized_end = 843
85
+ _globals["_DELETESYNTHETICDATASETRESPONSE"]._serialized_start = 845
86
+ _globals["_DELETESYNTHETICDATASETRESPONSE"]._serialized_end = 903
87
+ _globals["_GENERATE"]._serialized_start = 906
88
+ _globals["_GENERATE"]._serialized_end = 1733
89
89
  # @@protoc_insertion_point(module_scope)
@@ -8,8 +8,8 @@ import collections.abc
8
8
  import google.protobuf.descriptor
9
9
  import google.protobuf.internal.containers
10
10
  import google.protobuf.message
11
+ import google.protobuf.struct_pb2
11
12
  import typing
12
- import weave.datamanagement.generate.v1.configuration_pb2
13
13
 
14
14
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
15
15
 
@@ -25,17 +25,14 @@ class CreateSyntheticDatasetRequest(google.protobuf.message.Message):
25
25
  synthesizer_id: builtins.str
26
26
  output_storage_id: builtins.str
27
27
  @property
28
- def config(
29
- self,
30
- ) -> weave.datamanagement.generate.v1.configuration_pb2.Configuration: ...
28
+ def config(self) -> google.protobuf.struct_pb2.Struct: ...
31
29
  def __init__(
32
30
  self,
33
31
  *,
34
32
  organization_id: builtins.str = ...,
35
33
  synthesizer_id: builtins.str = ...,
36
34
  output_storage_id: builtins.str = ...,
37
- config: weave.datamanagement.generate.v1.configuration_pb2.Configuration
38
- | None = ...,
35
+ config: google.protobuf.struct_pb2.Struct | None = ...,
39
36
  ) -> None: ...
40
37
  def HasField(
41
38
  self, field_name: typing.Literal["config", b"config"]
@@ -61,18 +58,14 @@ class CreateSyntheticDatasetResponse(google.protobuf.message.Message):
61
58
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
62
59
 
63
60
  DATASET_ID_FIELD_NUMBER: builtins.int
64
- JOB_ID_FIELD_NUMBER: builtins.int
65
61
  dataset_id: builtins.str
66
- job_id: builtins.str
67
62
  def __init__(
68
63
  self,
69
64
  *,
70
65
  dataset_id: builtins.str = ...,
71
- job_id: builtins.str = ...,
72
66
  ) -> None: ...
73
67
  def ClearField(
74
- self,
75
- field_name: typing.Literal["dataset_id", b"dataset_id", "job_id", b"job_id"],
68
+ self, field_name: typing.Literal["dataset_id", b"dataset_id"]
76
69
  ) -> None: ...
77
70
 
78
71
  global___CreateSyntheticDatasetResponse = CreateSyntheticDatasetResponse
@@ -0,0 +1,79 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: weave/datamanagement/synthesize/v1/service.proto
5
+ # Protobuf Python Version: 6.30.2
6
+ """Generated protocol buffer code."""
7
+
8
+ from google.protobuf import descriptor as _descriptor
9
+ from google.protobuf import descriptor_pool as _descriptor_pool
10
+ from google.protobuf import runtime_version as _runtime_version
11
+ from google.protobuf import symbol_database as _symbol_database
12
+ from google.protobuf.internal import builder as _builder
13
+
14
+ _runtime_version.ValidateProtobufRuntimeVersion(
15
+ _runtime_version.Domain.PUBLIC,
16
+ 6,
17
+ 30,
18
+ 2,
19
+ "",
20
+ "weave/datamanagement/synthesize/v1/service.proto",
21
+ )
22
+ # @@protoc_insertion_point(imports)
23
+
24
+ _sym_db = _symbol_database.Default()
25
+
26
+
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
28
+ b'\n0weave/datamanagement/synthesize/v1/service.proto\x12"weave.datamanagement.synthesize.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x31weave/datamanagement/synthesize/v1/training.proto"\xc0\x02\n\x18\x43reateSynthesizerRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\x1f\n\x0b\x64\x61taset_ids\x18\x02 \x03(\tR\ndatasetIds\x12[\n\x0ftraining_driver\x18\x03 \x01(\x0e\x32\x32.weave.datamanagement.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"B\n\x19\x43reateSynthesizerResponse\x12%\n\x0esynthesizer_id\x18\x01 \x01(\tR\rsynthesizerId">\n\x15GetSynthesizerRequest\x12%\n\x0esynthesizer_id\x18\x01 \x01(\tR\rsynthesizerId"k\n\x16GetSynthesizerResponse\x12Q\n\x0bsynthesizer\x18\x01 \x01(\x0b\x32/.weave.datamanagement.synthesize.v1.SynthesizerR\x0bsynthesizer"B\n\x17ListSynthesizersRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId"o\n\x18ListSynthesizersResponse\x12S\n\x0csynthesizers\x18\x01 \x03(\x0b\x32/.weave.datamanagement.synthesize.v1.SynthesizerR\x0csynthesizers"A\n\x18\x44\x65leteSynthesizerRequest\x12%\n\x0esynthesizer_id\x18\x01 \x01(\tR\rsynthesizerId"\x1b\n\x19\x44\x65leteSynthesizerResponse"\xd6\x02\n\x0bSynthesizer\x12%\n\x0esynthesizer_id\x18\x01 \x01(\tR\rsynthesizerId\x12\'\n\x0forganization_id\x18\x02 \x01(\tR\x0eorganizationId\x12\x30\n\x14training_dataset_ids\x18\x03 \x03(\tR\x12trainingDatasetIds\x12[\n\x0ftraining_driver\x18\x04 \x01(\x0e\x32\x32.weave.datamanagement.synthesize.v1.TrainingDriverR\x0etrainingDriver\x12\x34\n\x16training_driver_config\x18\x05 \x01(\x0cR\x14trainingDriverConfig\x12\x32\n\x15storage_connection_id\x18\x06 \x01(\tR\x13storageConnectionId2\xd8\x05\n\nSynthesize\x12\xb2\x01\n\x11\x43reateSynthesizer\x12<.weave.datamanagement.synthesize.v1.CreateSynthesizerRequest\x1a=.weave.datamanagement.synthesize.v1.CreateSynthesizerResponse" \x82\xd3\xe4\x93\x02\x1a"\x15/v1/synthesize/create:\x01*\x12\xb0\x01\n\x0eGetSynthesizer\x12\x39.weave.datamanagement.synthesize.v1.GetSynthesizerRequest\x1a:.weave.datamanagement.synthesize.v1.GetSynthesizerResponse"\'\x82\xd3\xe4\x93\x02!\x12\x1f/v1/synthesize/{synthesizer_id}\x12\xa5\x01\n\x10ListSynthesizers\x12;.weave.datamanagement.synthesize.v1.ListSynthesizersRequest\x1a<.weave.datamanagement.synthesize.v1.ListSynthesizersResponse"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/v1/synthesize\x12\xb9\x01\n\x11\x44\x65leteSynthesizer\x12<.weave.datamanagement.synthesize.v1.DeleteSynthesizerRequest\x1a=.weave.datamanagement.synthesize.v1.DeleteSynthesizerResponse"\'\x82\xd3\xe4\x93\x02!*\x1f/v1/synthesize/{synthesizer_id}B\xb3\x02\n&com.weave.datamanagement.synthesize.v1B\x0cServiceProtoP\x01ZPgithub.com/weave-labs/weave-go/pkg/weave/datamanagement/synthesize/v1;synthesize\xa2\x02\x03WDS\xaa\x02"Weave.Datamanagement.Synthesize.V1\xca\x02"Weave\\Datamanagement\\Synthesize\\V1\xe2\x02.Weave\\Datamanagement\\Synthesize\\V1\\GPBMetadata\xea\x02%Weave::Datamanagement::Synthesize::V1b\x06proto3'
29
+ )
30
+
31
+ _globals = globals()
32
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
33
+ _builder.BuildTopDescriptorsAndMessages(
34
+ DESCRIPTOR, "weave.datamanagement.synthesize.v1.service_pb2", _globals
35
+ )
36
+ if not _descriptor._USE_C_DESCRIPTORS:
37
+ _globals["DESCRIPTOR"]._loaded_options = None
38
+ _globals[
39
+ "DESCRIPTOR"
40
+ ]._serialized_options = b'\n&com.weave.datamanagement.synthesize.v1B\014ServiceProtoP\001ZPgithub.com/weave-labs/weave-go/pkg/weave/datamanagement/synthesize/v1;synthesize\242\002\003WDS\252\002"Weave.Datamanagement.Synthesize.V1\312\002"Weave\\Datamanagement\\Synthesize\\V1\342\002.Weave\\Datamanagement\\Synthesize\\V1\\GPBMetadata\352\002%Weave::Datamanagement::Synthesize::V1'
41
+ _globals["_SYNTHESIZE"].methods_by_name["CreateSynthesizer"]._loaded_options = None
42
+ _globals["_SYNTHESIZE"].methods_by_name[
43
+ "CreateSynthesizer"
44
+ ]._serialized_options = b'\202\323\344\223\002\032"\025/v1/synthesize/create:\001*'
45
+ _globals["_SYNTHESIZE"].methods_by_name["GetSynthesizer"]._loaded_options = None
46
+ _globals["_SYNTHESIZE"].methods_by_name[
47
+ "GetSynthesizer"
48
+ ]._serialized_options = (
49
+ b"\202\323\344\223\002!\022\037/v1/synthesize/{synthesizer_id}"
50
+ )
51
+ _globals["_SYNTHESIZE"].methods_by_name["ListSynthesizers"]._loaded_options = None
52
+ _globals["_SYNTHESIZE"].methods_by_name[
53
+ "ListSynthesizers"
54
+ ]._serialized_options = b"\202\323\344\223\002\020\022\016/v1/synthesize"
55
+ _globals["_SYNTHESIZE"].methods_by_name["DeleteSynthesizer"]._loaded_options = None
56
+ _globals["_SYNTHESIZE"].methods_by_name[
57
+ "DeleteSynthesizer"
58
+ ]._serialized_options = b"\202\323\344\223\002!*\037/v1/synthesize/{synthesizer_id}"
59
+ _globals["_CREATESYNTHESIZERREQUEST"]._serialized_start = 200
60
+ _globals["_CREATESYNTHESIZERREQUEST"]._serialized_end = 520
61
+ _globals["_CREATESYNTHESIZERRESPONSE"]._serialized_start = 522
62
+ _globals["_CREATESYNTHESIZERRESPONSE"]._serialized_end = 588
63
+ _globals["_GETSYNTHESIZERREQUEST"]._serialized_start = 590
64
+ _globals["_GETSYNTHESIZERREQUEST"]._serialized_end = 652
65
+ _globals["_GETSYNTHESIZERRESPONSE"]._serialized_start = 654
66
+ _globals["_GETSYNTHESIZERRESPONSE"]._serialized_end = 761
67
+ _globals["_LISTSYNTHESIZERSREQUEST"]._serialized_start = 763
68
+ _globals["_LISTSYNTHESIZERSREQUEST"]._serialized_end = 829
69
+ _globals["_LISTSYNTHESIZERSRESPONSE"]._serialized_start = 831
70
+ _globals["_LISTSYNTHESIZERSRESPONSE"]._serialized_end = 942
71
+ _globals["_DELETESYNTHESIZERREQUEST"]._serialized_start = 944
72
+ _globals["_DELETESYNTHESIZERREQUEST"]._serialized_end = 1009
73
+ _globals["_DELETESYNTHESIZERRESPONSE"]._serialized_start = 1011
74
+ _globals["_DELETESYNTHESIZERRESPONSE"]._serialized_end = 1038
75
+ _globals["_SYNTHESIZER"]._serialized_start = 1041
76
+ _globals["_SYNTHESIZER"]._serialized_end = 1383
77
+ _globals["_SYNTHESIZE"]._serialized_start = 1386
78
+ _globals["_SYNTHESIZE"]._serialized_end = 2114
79
+ # @@protoc_insertion_point(module_scope)
@@ -8,6 +8,7 @@ import collections.abc
8
8
  import google.protobuf.descriptor
9
9
  import google.protobuf.internal.containers
10
10
  import google.protobuf.message
11
+ import google.protobuf.struct_pb2
11
12
  import typing
12
13
  import weave.datamanagement.synthesize.v1.training_pb2
13
14
 
@@ -26,7 +27,6 @@ class CreateSynthesizerRequest(google.protobuf.message.Message):
26
27
  training_driver: (
27
28
  weave.datamanagement.synthesize.v1.training_pb2.TrainingDriver.ValueType
28
29
  )
29
- driver_config: builtins.bytes
30
30
  output_storage_connection_id: builtins.str
31
31
  @property
32
32
  def dataset_ids(
@@ -34,15 +34,20 @@ class CreateSynthesizerRequest(google.protobuf.message.Message):
34
34
  ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[
35
35
  builtins.str
36
36
  ]: ...
37
+ @property
38
+ def driver_config(self) -> google.protobuf.struct_pb2.Struct: ...
37
39
  def __init__(
38
40
  self,
39
41
  *,
40
42
  organization_id: builtins.str = ...,
41
43
  dataset_ids: collections.abc.Iterable[builtins.str] | None = ...,
42
44
  training_driver: weave.datamanagement.synthesize.v1.training_pb2.TrainingDriver.ValueType = ...,
43
- driver_config: builtins.bytes = ...,
45
+ driver_config: google.protobuf.struct_pb2.Struct | None = ...,
44
46
  output_storage_connection_id: builtins.str = ...,
45
47
  ) -> None: ...
48
+ def HasField(
49
+ self, field_name: typing.Literal["driver_config", b"driver_config"]
50
+ ) -> builtins.bool: ...
46
51
  def ClearField(
47
52
  self,
48
53
  field_name: typing.Literal[
@@ -65,15 +70,15 @@ global___CreateSynthesizerRequest = CreateSynthesizerRequest
65
70
  class CreateSynthesizerResponse(google.protobuf.message.Message):
66
71
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
67
72
 
68
- TRAINING_ID_FIELD_NUMBER: builtins.int
69
- training_id: builtins.str
73
+ SYNTHESIZER_ID_FIELD_NUMBER: builtins.int
74
+ synthesizer_id: builtins.str
70
75
  def __init__(
71
76
  self,
72
77
  *,
73
- training_id: builtins.str = ...,
78
+ synthesizer_id: builtins.str = ...,
74
79
  ) -> None: ...
75
80
  def ClearField(
76
- self, field_name: typing.Literal["training_id", b"training_id"]
81
+ self, field_name: typing.Literal["synthesizer_id", b"synthesizer_id"]
77
82
  ) -> None: ...
78
83
 
79
84
  global___CreateSynthesizerResponse = CreateSynthesizerResponse
@@ -0,0 +1,49 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: weave/datamanagement/synthesize/v1/training.proto
5
+ # Protobuf Python Version: 6.30.2
6
+ """Generated protocol buffer code."""
7
+
8
+ from google.protobuf import descriptor as _descriptor
9
+ from google.protobuf import descriptor_pool as _descriptor_pool
10
+ from google.protobuf import runtime_version as _runtime_version
11
+ from google.protobuf import symbol_database as _symbol_database
12
+ from google.protobuf.internal import builder as _builder
13
+
14
+ _runtime_version.ValidateProtobufRuntimeVersion(
15
+ _runtime_version.Domain.PUBLIC,
16
+ 6,
17
+ 30,
18
+ 2,
19
+ "",
20
+ "weave/datamanagement/synthesize/v1/training.proto",
21
+ )
22
+ # @@protoc_insertion_point(imports)
23
+
24
+ _sym_db = _symbol_database.Default()
25
+
26
+
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
28
+ b'\n1weave/datamanagement/synthesize/v1/training.proto\x12"weave.datamanagement.synthesize.v1\x1a\x1cgoogle/protobuf/struct.proto"\xb8\x02\n\x12StartTrainingEvent\x12%\n\x0esynthesizer_id\x18\x01 \x01(\tR\rsynthesizerId\x12\x1f\n\x0b\x64\x61taset_ids\x18\x02 \x03(\tR\ndatasetIds\x12[\n\x0ftraining_driver\x18\x03 \x01(\x0e\x32\x32.weave.datamanagement.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"\x8d\x02\n\x15TrainingProgressEvent\x12L\n\njob_status\x18\x01 \x01(\x0e\x32-.weave.datamanagement.synthesize.v1.JobStatusR\tjobStatus\x12\x1b\n\tstep_name\x18\x02 \x01(\tR\x08stepName\x12N\n\x0bstep_status\x18\x03 \x01(\x0e\x32-.weave.datamanagement.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\xb4\x02\n&com.weave.datamanagement.synthesize.v1B\rTrainingProtoP\x01ZPgithub.com/weave-labs/weave-go/pkg/weave/datamanagement/synthesize/v1;synthesize\xa2\x02\x03WDS\xaa\x02"Weave.Datamanagement.Synthesize.V1\xca\x02"Weave\\Datamanagement\\Synthesize\\V1\xe2\x02.Weave\\Datamanagement\\Synthesize\\V1\\GPBMetadata\xea\x02%Weave::Datamanagement::Synthesize::V1b\x06proto3'
29
+ )
30
+
31
+ _globals = globals()
32
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
33
+ _builder.BuildTopDescriptorsAndMessages(
34
+ DESCRIPTOR, "weave.datamanagement.synthesize.v1.training_pb2", _globals
35
+ )
36
+ if not _descriptor._USE_C_DESCRIPTORS:
37
+ _globals["DESCRIPTOR"]._loaded_options = None
38
+ _globals[
39
+ "DESCRIPTOR"
40
+ ]._serialized_options = b'\n&com.weave.datamanagement.synthesize.v1B\rTrainingProtoP\001ZPgithub.com/weave-labs/weave-go/pkg/weave/datamanagement/synthesize/v1;synthesize\242\002\003WDS\252\002"Weave.Datamanagement.Synthesize.V1\312\002"Weave\\Datamanagement\\Synthesize\\V1\342\002.Weave\\Datamanagement\\Synthesize\\V1\\GPBMetadata\352\002%Weave::Datamanagement::Synthesize::V1'
41
+ _globals["_TRAININGDRIVER"]._serialized_start = 707
42
+ _globals["_TRAININGDRIVER"]._serialized_end = 843
43
+ _globals["_JOBSTATUS"]._serialized_start = 846
44
+ _globals["_JOBSTATUS"]._serialized_end = 982
45
+ _globals["_STARTTRAININGEVENT"]._serialized_start = 120
46
+ _globals["_STARTTRAININGEVENT"]._serialized_end = 432
47
+ _globals["_TRAININGPROGRESSEVENT"]._serialized_start = 435
48
+ _globals["_TRAININGPROGRESSEVENT"]._serialized_end = 704
49
+ # @@protoc_insertion_point(module_scope)
@@ -9,6 +9,7 @@ import google.protobuf.descriptor
9
9
  import google.protobuf.internal.containers
10
10
  import google.protobuf.internal.enum_type_wrapper
11
11
  import google.protobuf.message
12
+ import google.protobuf.struct_pb2
12
13
  import sys
13
14
  import typing
14
15
 
@@ -71,14 +72,13 @@ global___JobStatus = JobStatus
71
72
  class StartTrainingEvent(google.protobuf.message.Message):
72
73
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
73
74
 
74
- ID_FIELD_NUMBER: builtins.int
75
+ SYNTHESIZER_ID_FIELD_NUMBER: builtins.int
75
76
  DATASET_IDS_FIELD_NUMBER: builtins.int
76
77
  TRAINING_DRIVER_FIELD_NUMBER: builtins.int
77
78
  DRIVER_CONFIG_FIELD_NUMBER: builtins.int
78
79
  OUTPUT_STORAGE_CONNECTION_ID_FIELD_NUMBER: builtins.int
79
- id: builtins.str
80
+ synthesizer_id: builtins.str
80
81
  training_driver: global___TrainingDriver.ValueType
81
- driver_config: builtins.bytes
82
82
  output_storage_connection_id: builtins.str
83
83
  @property
84
84
  def dataset_ids(
@@ -86,15 +86,20 @@ class StartTrainingEvent(google.protobuf.message.Message):
86
86
  ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[
87
87
  builtins.str
88
88
  ]: ...
89
+ @property
90
+ def driver_config(self) -> google.protobuf.struct_pb2.Struct: ...
89
91
  def __init__(
90
92
  self,
91
93
  *,
92
- id: builtins.str = ...,
94
+ synthesizer_id: builtins.str = ...,
93
95
  dataset_ids: collections.abc.Iterable[builtins.str] | None = ...,
94
96
  training_driver: global___TrainingDriver.ValueType = ...,
95
- driver_config: builtins.bytes = ...,
97
+ driver_config: google.protobuf.struct_pb2.Struct | None = ...,
96
98
  output_storage_connection_id: builtins.str = ...,
97
99
  ) -> None: ...
100
+ def HasField(
101
+ self, field_name: typing.Literal["driver_config", b"driver_config"]
102
+ ) -> builtins.bool: ...
98
103
  def ClearField(
99
104
  self,
100
105
  field_name: typing.Literal[
@@ -102,10 +107,10 @@ class StartTrainingEvent(google.protobuf.message.Message):
102
107
  b"dataset_ids",
103
108
  "driver_config",
104
109
  b"driver_config",
105
- "id",
106
- b"id",
107
110
  "output_storage_connection_id",
108
111
  b"output_storage_connection_id",
112
+ "synthesizer_id",
113
+ b"synthesizer_id",
109
114
  "training_driver",
110
115
  b"training_driver",
111
116
  ],
@@ -0,0 +1,2 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
@@ -0,0 +1,20 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ import abc
7
+ import collections.abc
8
+ import grpc
9
+ import grpc.aio
10
+ import typing
11
+
12
+ _T = typing.TypeVar("_T")
13
+
14
+ class _MaybeAsyncIterator(
15
+ collections.abc.AsyncIterator[_T],
16
+ collections.abc.Iterator[_T],
17
+ metaclass=abc.ABCMeta,
18
+ ): ...
19
+ class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
20
+ ...
@@ -1,57 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- # Generated by the protocol buffer compiler. DO NOT EDIT!
3
- # NO CHECKED-IN PROTOBUF GENCODE
4
- # source: weave/datamanagement/generate/v1/configuration.proto
5
- # Protobuf Python Version: 6.30.2
6
- """Generated protocol buffer code."""
7
-
8
- from google.protobuf import descriptor as _descriptor
9
- from google.protobuf import descriptor_pool as _descriptor_pool
10
- from google.protobuf import runtime_version as _runtime_version
11
- from google.protobuf import symbol_database as _symbol_database
12
- from google.protobuf.internal import builder as _builder
13
-
14
- _runtime_version.ValidateProtobufRuntimeVersion(
15
- _runtime_version.Domain.PUBLIC,
16
- 6,
17
- 30,
18
- 2,
19
- "",
20
- "weave/datamanagement/generate/v1/configuration.proto",
21
- )
22
- # @@protoc_insertion_point(imports)
23
-
24
- _sym_db = _symbol_database.Default()
25
-
26
-
27
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
28
- b'\n4weave/datamanagement/generate/v1/configuration.proto\x12 weave.datamanagement.generate.v1"\xbb\x02\n\rConfiguration\x12\x1f\n\x0bnum_records\x18\x01 \x01(\x03R\nnumRecords\x12!\n\x0c\x64\x61taset_name\x18\x02 \x01(\tR\x0b\x64\x61tasetName\x12V\n\x0c\x64\x61ta_quality\x18\x03 \x01(\x0b\x32\x33.weave.datamanagement.generate.v1.DataQualityConfigR\x0b\x64\x61taQuality\x12I\n\x07privacy\x18\x04 \x01(\x0b\x32/.weave.datamanagement.generate.v1.PrivacyConfigR\x07privacy\x12\x43\n\x05model\x18\x05 \x01(\x0b\x32-.weave.datamanagement.generate.v1.ModelConfigR\x05model"\xb1\x02\n\x11\x44\x61taQualityConfig\x12\x31\n\x14\x63orrelation_accuracy\x18\x01 \x01(\x02R\x13\x63orrelationAccuracy\x12\x35\n\x16statistical_similarity\x18\x02 \x01(\x02R\x15statisticalSimilarity\x12+\n\x11preserve_outliers\x18\x03 \x01(\x08R\x10preserveOutliers\x12/\n\x13\x65nforce_constraints\x18\x04 \x01(\x08R\x12\x65nforceConstraints\x12T\n\x0b\x63onstraints\x18\x05 \x03(\x0b\x32\x32.weave.datamanagement.generate.v1.ColumnConstraintR\x0b\x63onstraints"\xe2\x01\n\x10\x43olumnConstraint\x12\x1f\n\x0b\x63olumn_name\x18\x01 \x01(\tR\ncolumnName\x12\'\n\x0f\x63onstraint_type\x18\x02 \x01(\tR\x0e\x63onstraintType\x12\x1b\n\tmin_value\x18\x03 \x01(\tR\x08minValue\x12\x1b\n\tmax_value\x18\x04 \x01(\tR\x08maxValue\x12#\n\rregex_pattern\x18\x05 \x01(\tR\x0cregexPattern\x12%\n\x0e\x61llowed_values\x18\x06 \x03(\tR\rallowedValues"\xd1\x01\n\rPrivacyConfig\x12\x18\n\x07\x65psilon\x18\x01 \x01(\x02R\x07\x65psilon\x12*\n\x11k_anonymity_check\x18\x02 \x01(\x08R\x0fkAnonymityCheck\x12\x17\n\x07k_value\x18\x03 \x01(\x05R\x06kValue\x12+\n\x11sensitive_columns\x18\x04 \x03(\tR\x10sensitiveColumns\x12\x34\n\x16\x65nable_privacy_metrics\x18\x05 \x01(\x08R\x14\x65nablePrivacyMetrics"\xec\x02\n\x0bModelConfig\x12J\n\nmodel_type\x18\x01 \x01(\x0e\x32+.weave.datamanagement.generate.v1.ModelTypeR\tmodelType\x12\x16\n\x06\x65pochs\x18\x02 \x01(\x05R\x06\x65pochs\x12#\n\rlearning_rate\x18\x03 \x01(\x02R\x0clearningRate\x12\x1d\n\nbatch_size\x18\x04 \x01(\x05R\tbatchSize\x12p\n\x11\x63ustom_parameters\x18\x05 \x03(\x0b\x32\x43.weave.datamanagement.generate.v1.ModelConfig.CustomParametersEntryR\x10\x63ustomParameters\x1a\x43\n\x15\x43ustomParametersEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01*\xea\x01\n\tModelType\x12\x1a\n\x16MODEL_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10MODEL_TYPE_CTGAN\x10\x01\x12\x13\n\x0fMODEL_TYPE_TVAE\x10\x02\x12\x15\n\x11MODEL_TYPE_COPULA\x10\x03\x12\x13\n\x0fMODEL_TYPE_FAST\x10\x04\x12\x12\n\x0eMODEL_TYPE_GAN\x10\x05\x12\x13\n\x0fMODEL_TYPE_WGAN\x10\x06\x12\x14\n\x10MODEL_TYPE_SMOTE\x10\x07\x12\x17\n\x13MODEL_TYPE_BAYESIAN\x10\x08\x12\x12\n\x0eMODEL_TYPE_HMA\x10\tB\xab\x02\n$com.weave.datamanagement.generate.v1B\x12\x43onfigurationProtoP\x01ZLgithub.com/weave-labs/weave-go/pkg/weave/datamanagement/generate/v1;generate\xa2\x02\x03WDG\xaa\x02 Weave.Datamanagement.Generate.V1\xca\x02 Weave\\Datamanagement\\Generate\\V1\xe2\x02,Weave\\Datamanagement\\Generate\\V1\\GPBMetadata\xea\x02#Weave::Datamanagement::Generate::V1b\x06proto3'
29
- )
30
-
31
- _globals = globals()
32
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
33
- _builder.BuildTopDescriptorsAndMessages(
34
- DESCRIPTOR, "weave.datamanagement.generate.v1.configuration_pb2", _globals
35
- )
36
- if not _descriptor._USE_C_DESCRIPTORS:
37
- _globals["DESCRIPTOR"]._loaded_options = None
38
- _globals[
39
- "DESCRIPTOR"
40
- ]._serialized_options = b"\n$com.weave.datamanagement.generate.v1B\022ConfigurationProtoP\001ZLgithub.com/weave-labs/weave-go/pkg/weave/datamanagement/generate/v1;generate\242\002\003WDG\252\002 Weave.Datamanagement.Generate.V1\312\002 Weave\\Datamanagement\\Generate\\V1\342\002,Weave\\Datamanagement\\Generate\\V1\\GPBMetadata\352\002#Weave::Datamanagement::Generate::V1"
41
- _globals["_MODELCONFIG_CUSTOMPARAMETERSENTRY"]._loaded_options = None
42
- _globals["_MODELCONFIG_CUSTOMPARAMETERSENTRY"]._serialized_options = b"8\001"
43
- _globals["_MODELTYPE"]._serialized_start = 1525
44
- _globals["_MODELTYPE"]._serialized_end = 1759
45
- _globals["_CONFIGURATION"]._serialized_start = 91
46
- _globals["_CONFIGURATION"]._serialized_end = 406
47
- _globals["_DATAQUALITYCONFIG"]._serialized_start = 409
48
- _globals["_DATAQUALITYCONFIG"]._serialized_end = 714
49
- _globals["_COLUMNCONSTRAINT"]._serialized_start = 717
50
- _globals["_COLUMNCONSTRAINT"]._serialized_end = 943
51
- _globals["_PRIVACYCONFIG"]._serialized_start = 946
52
- _globals["_PRIVACYCONFIG"]._serialized_end = 1155
53
- _globals["_MODELCONFIG"]._serialized_start = 1158
54
- _globals["_MODELCONFIG"]._serialized_end = 1522
55
- _globals["_MODELCONFIG_CUSTOMPARAMETERSENTRY"]._serialized_start = 1455
56
- _globals["_MODELCONFIG_CUSTOMPARAMETERSENTRY"]._serialized_end = 1522
57
- # @@protoc_insertion_point(module_scope)
@@ -1,79 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- # Generated by the protocol buffer compiler. DO NOT EDIT!
3
- # NO CHECKED-IN PROTOBUF GENCODE
4
- # source: weave/datamanagement/synthesize/v1/service.proto
5
- # Protobuf Python Version: 6.30.2
6
- """Generated protocol buffer code."""
7
-
8
- from google.protobuf import descriptor as _descriptor
9
- from google.protobuf import descriptor_pool as _descriptor_pool
10
- from google.protobuf import runtime_version as _runtime_version
11
- from google.protobuf import symbol_database as _symbol_database
12
- from google.protobuf.internal import builder as _builder
13
-
14
- _runtime_version.ValidateProtobufRuntimeVersion(
15
- _runtime_version.Domain.PUBLIC,
16
- 6,
17
- 30,
18
- 2,
19
- "",
20
- "weave/datamanagement/synthesize/v1/service.proto",
21
- )
22
- # @@protoc_insertion_point(imports)
23
-
24
- _sym_db = _symbol_database.Default()
25
-
26
-
27
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
28
- b'\n0weave/datamanagement/synthesize/v1/service.proto\x12"weave.datamanagement.synthesize.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x31weave/datamanagement/synthesize/v1/training.proto"\xa7\x02\n\x18\x43reateSynthesizerRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\x1f\n\x0b\x64\x61taset_ids\x18\x02 \x03(\tR\ndatasetIds\x12[\n\x0ftraining_driver\x18\x03 \x01(\x0e\x32\x32.weave.datamanagement.synthesize.v1.TrainingDriverR\x0etrainingDriver\x12#\n\rdriver_config\x18\x04 \x01(\x0cR\x0c\x64riverConfig\x12?\n\x1coutput_storage_connection_id\x18\x05 \x01(\tR\x19outputStorageConnectionId"<\n\x19\x43reateSynthesizerResponse\x12\x1f\n\x0btraining_id\x18\x01 \x01(\tR\ntrainingId">\n\x15GetSynthesizerRequest\x12%\n\x0esynthesizer_id\x18\x01 \x01(\tR\rsynthesizerId"k\n\x16GetSynthesizerResponse\x12Q\n\x0bsynthesizer\x18\x01 \x01(\x0b\x32/.weave.datamanagement.synthesize.v1.SynthesizerR\x0bsynthesizer"B\n\x17ListSynthesizersRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId"o\n\x18ListSynthesizersResponse\x12S\n\x0csynthesizers\x18\x01 \x03(\x0b\x32/.weave.datamanagement.synthesize.v1.SynthesizerR\x0csynthesizers"A\n\x18\x44\x65leteSynthesizerRequest\x12%\n\x0esynthesizer_id\x18\x01 \x01(\tR\rsynthesizerId"\x1b\n\x19\x44\x65leteSynthesizerResponse"\xd6\x02\n\x0bSynthesizer\x12%\n\x0esynthesizer_id\x18\x01 \x01(\tR\rsynthesizerId\x12\'\n\x0forganization_id\x18\x02 \x01(\tR\x0eorganizationId\x12\x30\n\x14training_dataset_ids\x18\x03 \x03(\tR\x12trainingDatasetIds\x12[\n\x0ftraining_driver\x18\x04 \x01(\x0e\x32\x32.weave.datamanagement.synthesize.v1.TrainingDriverR\x0etrainingDriver\x12\x34\n\x16training_driver_config\x18\x05 \x01(\x0cR\x14trainingDriverConfig\x12\x32\n\x15storage_connection_id\x18\x06 \x01(\tR\x13storageConnectionId2\xd8\x05\n\nSynthesize\x12\xb2\x01\n\x11\x43reateSynthesizer\x12<.weave.datamanagement.synthesize.v1.CreateSynthesizerRequest\x1a=.weave.datamanagement.synthesize.v1.CreateSynthesizerResponse" \x82\xd3\xe4\x93\x02\x1a"\x15/v1/synthesize/create:\x01*\x12\xb0\x01\n\x0eGetSynthesizer\x12\x39.weave.datamanagement.synthesize.v1.GetSynthesizerRequest\x1a:.weave.datamanagement.synthesize.v1.GetSynthesizerResponse"\'\x82\xd3\xe4\x93\x02!\x12\x1f/v1/synthesize/{synthesizer_id}\x12\xa5\x01\n\x10ListSynthesizers\x12;.weave.datamanagement.synthesize.v1.ListSynthesizersRequest\x1a<.weave.datamanagement.synthesize.v1.ListSynthesizersResponse"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/v1/synthesize\x12\xb9\x01\n\x11\x44\x65leteSynthesizer\x12<.weave.datamanagement.synthesize.v1.DeleteSynthesizerRequest\x1a=.weave.datamanagement.synthesize.v1.DeleteSynthesizerResponse"\'\x82\xd3\xe4\x93\x02!*\x1f/v1/synthesize/{synthesizer_id}B\xb3\x02\n&com.weave.datamanagement.synthesize.v1B\x0cServiceProtoP\x01ZPgithub.com/weave-labs/weave-go/pkg/weave/datamanagement/synthesize/v1;synthesize\xa2\x02\x03WDS\xaa\x02"Weave.Datamanagement.Synthesize.V1\xca\x02"Weave\\Datamanagement\\Synthesize\\V1\xe2\x02.Weave\\Datamanagement\\Synthesize\\V1\\GPBMetadata\xea\x02%Weave::Datamanagement::Synthesize::V1b\x06proto3'
29
- )
30
-
31
- _globals = globals()
32
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
33
- _builder.BuildTopDescriptorsAndMessages(
34
- DESCRIPTOR, "weave.datamanagement.synthesize.v1.service_pb2", _globals
35
- )
36
- if not _descriptor._USE_C_DESCRIPTORS:
37
- _globals["DESCRIPTOR"]._loaded_options = None
38
- _globals[
39
- "DESCRIPTOR"
40
- ]._serialized_options = b'\n&com.weave.datamanagement.synthesize.v1B\014ServiceProtoP\001ZPgithub.com/weave-labs/weave-go/pkg/weave/datamanagement/synthesize/v1;synthesize\242\002\003WDS\252\002"Weave.Datamanagement.Synthesize.V1\312\002"Weave\\Datamanagement\\Synthesize\\V1\342\002.Weave\\Datamanagement\\Synthesize\\V1\\GPBMetadata\352\002%Weave::Datamanagement::Synthesize::V1'
41
- _globals["_SYNTHESIZE"].methods_by_name["CreateSynthesizer"]._loaded_options = None
42
- _globals["_SYNTHESIZE"].methods_by_name[
43
- "CreateSynthesizer"
44
- ]._serialized_options = b'\202\323\344\223\002\032"\025/v1/synthesize/create:\001*'
45
- _globals["_SYNTHESIZE"].methods_by_name["GetSynthesizer"]._loaded_options = None
46
- _globals["_SYNTHESIZE"].methods_by_name[
47
- "GetSynthesizer"
48
- ]._serialized_options = (
49
- b"\202\323\344\223\002!\022\037/v1/synthesize/{synthesizer_id}"
50
- )
51
- _globals["_SYNTHESIZE"].methods_by_name["ListSynthesizers"]._loaded_options = None
52
- _globals["_SYNTHESIZE"].methods_by_name[
53
- "ListSynthesizers"
54
- ]._serialized_options = b"\202\323\344\223\002\020\022\016/v1/synthesize"
55
- _globals["_SYNTHESIZE"].methods_by_name["DeleteSynthesizer"]._loaded_options = None
56
- _globals["_SYNTHESIZE"].methods_by_name[
57
- "DeleteSynthesizer"
58
- ]._serialized_options = b"\202\323\344\223\002!*\037/v1/synthesize/{synthesizer_id}"
59
- _globals["_CREATESYNTHESIZERREQUEST"]._serialized_start = 170
60
- _globals["_CREATESYNTHESIZERREQUEST"]._serialized_end = 465
61
- _globals["_CREATESYNTHESIZERRESPONSE"]._serialized_start = 467
62
- _globals["_CREATESYNTHESIZERRESPONSE"]._serialized_end = 527
63
- _globals["_GETSYNTHESIZERREQUEST"]._serialized_start = 529
64
- _globals["_GETSYNTHESIZERREQUEST"]._serialized_end = 591
65
- _globals["_GETSYNTHESIZERRESPONSE"]._serialized_start = 593
66
- _globals["_GETSYNTHESIZERRESPONSE"]._serialized_end = 700
67
- _globals["_LISTSYNTHESIZERSREQUEST"]._serialized_start = 702
68
- _globals["_LISTSYNTHESIZERSREQUEST"]._serialized_end = 768
69
- _globals["_LISTSYNTHESIZERSRESPONSE"]._serialized_start = 770
70
- _globals["_LISTSYNTHESIZERSRESPONSE"]._serialized_end = 881
71
- _globals["_DELETESYNTHESIZERREQUEST"]._serialized_start = 883
72
- _globals["_DELETESYNTHESIZERREQUEST"]._serialized_end = 948
73
- _globals["_DELETESYNTHESIZERRESPONSE"]._serialized_start = 950
74
- _globals["_DELETESYNTHESIZERRESPONSE"]._serialized_end = 977
75
- _globals["_SYNTHESIZER"]._serialized_start = 980
76
- _globals["_SYNTHESIZER"]._serialized_end = 1322
77
- _globals["_SYNTHESIZE"]._serialized_start = 1325
78
- _globals["_SYNTHESIZE"]._serialized_end = 2053
79
- # @@protoc_insertion_point(module_scope)
@@ -1,49 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- # Generated by the protocol buffer compiler. DO NOT EDIT!
3
- # NO CHECKED-IN PROTOBUF GENCODE
4
- # source: weave/datamanagement/synthesize/v1/training.proto
5
- # Protobuf Python Version: 6.30.2
6
- """Generated protocol buffer code."""
7
-
8
- from google.protobuf import descriptor as _descriptor
9
- from google.protobuf import descriptor_pool as _descriptor_pool
10
- from google.protobuf import runtime_version as _runtime_version
11
- from google.protobuf import symbol_database as _symbol_database
12
- from google.protobuf.internal import builder as _builder
13
-
14
- _runtime_version.ValidateProtobufRuntimeVersion(
15
- _runtime_version.Domain.PUBLIC,
16
- 6,
17
- 30,
18
- 2,
19
- "",
20
- "weave/datamanagement/synthesize/v1/training.proto",
21
- )
22
- # @@protoc_insertion_point(imports)
23
-
24
- _sym_db = _symbol_database.Default()
25
-
26
-
27
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
28
- b'\n1weave/datamanagement/synthesize/v1/training.proto\x12"weave.datamanagement.synthesize.v1"\x88\x02\n\x12StartTrainingEvent\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1f\n\x0b\x64\x61taset_ids\x18\x02 \x03(\tR\ndatasetIds\x12[\n\x0ftraining_driver\x18\x03 \x01(\x0e\x32\x32.weave.datamanagement.synthesize.v1.TrainingDriverR\x0etrainingDriver\x12#\n\rdriver_config\x18\x04 \x01(\x0cR\x0c\x64riverConfig\x12?\n\x1coutput_storage_connection_id\x18\x05 \x01(\tR\x19outputStorageConnectionId"\x8d\x02\n\x15TrainingProgressEvent\x12L\n\njob_status\x18\x01 \x01(\x0e\x32-.weave.datamanagement.synthesize.v1.JobStatusR\tjobStatus\x12\x1b\n\tstep_name\x18\x02 \x01(\tR\x08stepName\x12N\n\x0bstep_status\x18\x03 \x01(\x0e\x32-.weave.datamanagement.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\xb4\x02\n&com.weave.datamanagement.synthesize.v1B\rTrainingProtoP\x01ZPgithub.com/weave-labs/weave-go/pkg/weave/datamanagement/synthesize/v1;synthesize\xa2\x02\x03WDS\xaa\x02"Weave.Datamanagement.Synthesize.V1\xca\x02"Weave\\Datamanagement\\Synthesize\\V1\xe2\x02.Weave\\Datamanagement\\Synthesize\\V1\\GPBMetadata\xea\x02%Weave::Datamanagement::Synthesize::V1b\x06proto3'
29
- )
30
-
31
- _globals = globals()
32
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
33
- _builder.BuildTopDescriptorsAndMessages(
34
- DESCRIPTOR, "weave.datamanagement.synthesize.v1.training_pb2", _globals
35
- )
36
- if not _descriptor._USE_C_DESCRIPTORS:
37
- _globals["DESCRIPTOR"]._loaded_options = None
38
- _globals[
39
- "DESCRIPTOR"
40
- ]._serialized_options = b'\n&com.weave.datamanagement.synthesize.v1B\rTrainingProtoP\001ZPgithub.com/weave-labs/weave-go/pkg/weave/datamanagement/synthesize/v1;synthesize\242\002\003WDS\252\002"Weave.Datamanagement.Synthesize.V1\312\002"Weave\\Datamanagement\\Synthesize\\V1\342\002.Weave\\Datamanagement\\Synthesize\\V1\\GPBMetadata\352\002%Weave::Datamanagement::Synthesize::V1'
41
- _globals["_TRAININGDRIVER"]._serialized_start = 629
42
- _globals["_TRAININGDRIVER"]._serialized_end = 765
43
- _globals["_JOBSTATUS"]._serialized_start = 768
44
- _globals["_JOBSTATUS"]._serialized_end = 904
45
- _globals["_STARTTRAININGEVENT"]._serialized_start = 90
46
- _globals["_STARTTRAININGEVENT"]._serialized_end = 354
47
- _globals["_TRAININGPROGRESSEVENT"]._serialized_start = 357
48
- _globals["_TRAININGPROGRESSEVENT"]._serialized_end = 626
49
- # @@protoc_insertion_point(module_scope)
File without changes
File without changes
File without changes