clarifai-grpc 11.10.8__py3-none-any.whl → 11.10.10__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.
- clarifai_grpc/__init__.py +1 -1
- clarifai_grpc/grpc/api/resources_pb2.py +442 -438
- clarifai_grpc/grpc/api/resources_pb2.pyi +197 -0
- clarifai_grpc/grpc/api/service_pb2.py +901 -841
- clarifai_grpc/grpc/api/service_pb2.pyi +657 -0
- clarifai_grpc/grpc/api/service_pb2_grpc.py +369 -0
- clarifai_grpc/grpc/api/status/status_code_pb2.py +2 -2
- clarifai_grpc/grpc/api/status/status_code_pb2.pyi +14 -0
- clarifai_grpc/grpc/auth/scope/scope_pb2.py +10 -2
- clarifai_grpc/grpc/auth/scope/scope_pb2.pyi +8 -0
- {clarifai_grpc-11.10.8.dist-info → clarifai_grpc-11.10.10.dist-info}/METADATA +1 -1
- {clarifai_grpc-11.10.8.dist-info → clarifai_grpc-11.10.10.dist-info}/RECORD +15 -15
- {clarifai_grpc-11.10.8.dist-info → clarifai_grpc-11.10.10.dist-info}/WHEEL +0 -0
- {clarifai_grpc-11.10.8.dist-info → clarifai_grpc-11.10.10.dist-info}/licenses/LICENSE +0 -0
- {clarifai_grpc-11.10.8.dist-info → clarifai_grpc-11.10.10.dist-info}/top_level.txt +0 -0
|
@@ -458,6 +458,84 @@ class PostTrackAnnotationsSearchesRequest(google.protobuf.message.Message):
|
|
|
458
458
|
|
|
459
459
|
global___PostTrackAnnotationsSearchesRequest = PostTrackAnnotationsSearchesRequest
|
|
460
460
|
|
|
461
|
+
@typing_extensions.final
|
|
462
|
+
class StreamTrackAnnotationsSearchesRequest(google.protobuf.message.Message):
|
|
463
|
+
"""StreamTrackAnnotationsSearchesRequest"""
|
|
464
|
+
|
|
465
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
466
|
+
|
|
467
|
+
USER_APP_ID_FIELD_NUMBER: builtins.int
|
|
468
|
+
INPUT_ID_FIELD_NUMBER: builtins.int
|
|
469
|
+
TRACK_ID_FIELD_NUMBER: builtins.int
|
|
470
|
+
FRAME_NUMBER_START_FIELD_NUMBER: builtins.int
|
|
471
|
+
FRAME_TIME_START_FIELD_NUMBER: builtins.int
|
|
472
|
+
ANNOTATION_TYPE_FIELD_NUMBER: builtins.int
|
|
473
|
+
MAX_FRAMES_FIELD_NUMBER: builtins.int
|
|
474
|
+
MAX_DURATION_FIELD_NUMBER: builtins.int
|
|
475
|
+
WORKER_FIELD_NUMBER: builtins.int
|
|
476
|
+
@property
|
|
477
|
+
def user_app_id(self) -> proto.clarifai.api.resources_pb2.UserAppIDSet: ...
|
|
478
|
+
input_id: builtins.str
|
|
479
|
+
"""The input ID containing the video track annotations to stream"""
|
|
480
|
+
track_id: builtins.str
|
|
481
|
+
"""Filter annotations by track_id"""
|
|
482
|
+
frame_number_start: builtins.int
|
|
483
|
+
"""Filter annotations starting from this frame number (inclusive)"""
|
|
484
|
+
frame_time_start: builtins.int
|
|
485
|
+
"""Filter annotations starting from this time in milliseconds (inclusive)"""
|
|
486
|
+
annotation_type: proto.clarifai.api.resources_pb2.AnnotationDataType.ValueType
|
|
487
|
+
"""Filter by annotation type (e.g., "bounding_box", "point", "mask")"""
|
|
488
|
+
max_frames: builtins.int
|
|
489
|
+
max_duration: builtins.int
|
|
490
|
+
@property
|
|
491
|
+
def worker(self) -> proto.clarifai.api.resources_pb2.Worker:
|
|
492
|
+
"""Filtering by model version ID within a worker (optional).
|
|
493
|
+
Point annotations don't need filtering by worker.
|
|
494
|
+
For non-point types, a model version ID must be provided.
|
|
495
|
+
"""
|
|
496
|
+
def __init__(
|
|
497
|
+
self,
|
|
498
|
+
*,
|
|
499
|
+
user_app_id: proto.clarifai.api.resources_pb2.UserAppIDSet | None = ...,
|
|
500
|
+
input_id: builtins.str = ...,
|
|
501
|
+
track_id: builtins.str = ...,
|
|
502
|
+
frame_number_start: builtins.int = ...,
|
|
503
|
+
frame_time_start: builtins.int = ...,
|
|
504
|
+
annotation_type: proto.clarifai.api.resources_pb2.AnnotationDataType.ValueType = ...,
|
|
505
|
+
max_frames: builtins.int = ...,
|
|
506
|
+
max_duration: builtins.int = ...,
|
|
507
|
+
worker: proto.clarifai.api.resources_pb2.Worker | None = ...,
|
|
508
|
+
) -> None: ...
|
|
509
|
+
def HasField(
|
|
510
|
+
self,
|
|
511
|
+
field_name: typing_extensions.Literal["user_app_id", b"user_app_id", "worker", b"worker"],
|
|
512
|
+
) -> builtins.bool: ...
|
|
513
|
+
def ClearField(
|
|
514
|
+
self,
|
|
515
|
+
field_name: typing_extensions.Literal[
|
|
516
|
+
"annotation_type",
|
|
517
|
+
b"annotation_type",
|
|
518
|
+
"frame_number_start",
|
|
519
|
+
b"frame_number_start",
|
|
520
|
+
"frame_time_start",
|
|
521
|
+
b"frame_time_start",
|
|
522
|
+
"input_id",
|
|
523
|
+
b"input_id",
|
|
524
|
+
"max_duration",
|
|
525
|
+
b"max_duration",
|
|
526
|
+
"max_frames",
|
|
527
|
+
b"max_frames",
|
|
528
|
+
"track_id",
|
|
529
|
+
b"track_id",
|
|
530
|
+
"user_app_id",
|
|
531
|
+
b"user_app_id",
|
|
532
|
+
"worker",
|
|
533
|
+
b"worker",
|
|
534
|
+
],
|
|
535
|
+
) -> None: ...
|
|
536
|
+
|
|
537
|
+
global___StreamTrackAnnotationsSearchesRequest = StreamTrackAnnotationsSearchesRequest
|
|
538
|
+
|
|
461
539
|
@typing_extensions.final
|
|
462
540
|
class PostAnnotationsRequest(google.protobuf.message.Message):
|
|
463
541
|
"""PostAnnotationsRequest"""
|
|
@@ -17743,6 +17821,74 @@ class SinglePipelineStepVersionResponse(google.protobuf.message.Message):
|
|
|
17743
17821
|
|
|
17744
17822
|
global___SinglePipelineStepVersionResponse = SinglePipelineStepVersionResponse
|
|
17745
17823
|
|
|
17824
|
+
@typing_extensions.final
|
|
17825
|
+
class DeletePipelineStepsRequest(google.protobuf.message.Message):
|
|
17826
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
17827
|
+
|
|
17828
|
+
USER_APP_ID_FIELD_NUMBER: builtins.int
|
|
17829
|
+
IDS_FIELD_NUMBER: builtins.int
|
|
17830
|
+
@property
|
|
17831
|
+
def user_app_id(self) -> proto.clarifai.api.resources_pb2.UserAppIDSet: ...
|
|
17832
|
+
@property
|
|
17833
|
+
def ids(
|
|
17834
|
+
self,
|
|
17835
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
17836
|
+
"""The ids of the pipeline steps to delete"""
|
|
17837
|
+
def __init__(
|
|
17838
|
+
self,
|
|
17839
|
+
*,
|
|
17840
|
+
user_app_id: proto.clarifai.api.resources_pb2.UserAppIDSet | None = ...,
|
|
17841
|
+
ids: collections.abc.Iterable[builtins.str] | None = ...,
|
|
17842
|
+
) -> None: ...
|
|
17843
|
+
def HasField(
|
|
17844
|
+
self, field_name: typing_extensions.Literal["user_app_id", b"user_app_id"]
|
|
17845
|
+
) -> builtins.bool: ...
|
|
17846
|
+
def ClearField(
|
|
17847
|
+
self, field_name: typing_extensions.Literal["ids", b"ids", "user_app_id", b"user_app_id"]
|
|
17848
|
+
) -> None: ...
|
|
17849
|
+
|
|
17850
|
+
global___DeletePipelineStepsRequest = DeletePipelineStepsRequest
|
|
17851
|
+
|
|
17852
|
+
@typing_extensions.final
|
|
17853
|
+
class DeletePipelineStepVersionsRequest(google.protobuf.message.Message):
|
|
17854
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
17855
|
+
|
|
17856
|
+
USER_APP_ID_FIELD_NUMBER: builtins.int
|
|
17857
|
+
PIPELINE_STEP_ID_FIELD_NUMBER: builtins.int
|
|
17858
|
+
PIPELINE_STEP_VERSION_IDS_FIELD_NUMBER: builtins.int
|
|
17859
|
+
@property
|
|
17860
|
+
def user_app_id(self) -> proto.clarifai.api.resources_pb2.UserAppIDSet: ...
|
|
17861
|
+
pipeline_step_id: builtins.str
|
|
17862
|
+
"""The id of the pipeline step for which versions are being deleted"""
|
|
17863
|
+
@property
|
|
17864
|
+
def pipeline_step_version_ids(
|
|
17865
|
+
self,
|
|
17866
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
17867
|
+
"""The ids of the pipeline step versions to delete"""
|
|
17868
|
+
def __init__(
|
|
17869
|
+
self,
|
|
17870
|
+
*,
|
|
17871
|
+
user_app_id: proto.clarifai.api.resources_pb2.UserAppIDSet | None = ...,
|
|
17872
|
+
pipeline_step_id: builtins.str = ...,
|
|
17873
|
+
pipeline_step_version_ids: collections.abc.Iterable[builtins.str] | None = ...,
|
|
17874
|
+
) -> None: ...
|
|
17875
|
+
def HasField(
|
|
17876
|
+
self, field_name: typing_extensions.Literal["user_app_id", b"user_app_id"]
|
|
17877
|
+
) -> builtins.bool: ...
|
|
17878
|
+
def ClearField(
|
|
17879
|
+
self,
|
|
17880
|
+
field_name: typing_extensions.Literal[
|
|
17881
|
+
"pipeline_step_id",
|
|
17882
|
+
b"pipeline_step_id",
|
|
17883
|
+
"pipeline_step_version_ids",
|
|
17884
|
+
b"pipeline_step_version_ids",
|
|
17885
|
+
"user_app_id",
|
|
17886
|
+
b"user_app_id",
|
|
17887
|
+
],
|
|
17888
|
+
) -> None: ...
|
|
17889
|
+
|
|
17890
|
+
global___DeletePipelineStepVersionsRequest = DeletePipelineStepVersionsRequest
|
|
17891
|
+
|
|
17746
17892
|
@typing_extensions.final
|
|
17747
17893
|
class GetSecretRequest(google.protobuf.message.Message):
|
|
17748
17894
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
@@ -18081,3 +18227,514 @@ class MultiMetricLabelsResponse(google.protobuf.message.Message):
|
|
|
18081
18227
|
) -> None: ...
|
|
18082
18228
|
|
|
18083
18229
|
global___MultiMetricLabelsResponse = MultiMetricLabelsResponse
|
|
18230
|
+
|
|
18231
|
+
@typing_extensions.final
|
|
18232
|
+
class PostArtifactsRequest(google.protobuf.message.Message):
|
|
18233
|
+
"""Artifact requests and responses"""
|
|
18234
|
+
|
|
18235
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
18236
|
+
|
|
18237
|
+
USER_APP_ID_FIELD_NUMBER: builtins.int
|
|
18238
|
+
ARTIFACTS_FIELD_NUMBER: builtins.int
|
|
18239
|
+
@property
|
|
18240
|
+
def user_app_id(self) -> proto.clarifai.api.resources_pb2.UserAppIDSet: ...
|
|
18241
|
+
@property
|
|
18242
|
+
def artifacts(
|
|
18243
|
+
self,
|
|
18244
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
|
|
18245
|
+
proto.clarifai.api.resources_pb2.Artifact
|
|
18246
|
+
]: ...
|
|
18247
|
+
def __init__(
|
|
18248
|
+
self,
|
|
18249
|
+
*,
|
|
18250
|
+
user_app_id: proto.clarifai.api.resources_pb2.UserAppIDSet | None = ...,
|
|
18251
|
+
artifacts: collections.abc.Iterable[proto.clarifai.api.resources_pb2.Artifact]
|
|
18252
|
+
| None = ...,
|
|
18253
|
+
) -> None: ...
|
|
18254
|
+
def HasField(
|
|
18255
|
+
self, field_name: typing_extensions.Literal["user_app_id", b"user_app_id"]
|
|
18256
|
+
) -> builtins.bool: ...
|
|
18257
|
+
def ClearField(
|
|
18258
|
+
self,
|
|
18259
|
+
field_name: typing_extensions.Literal[
|
|
18260
|
+
"artifacts", b"artifacts", "user_app_id", b"user_app_id"
|
|
18261
|
+
],
|
|
18262
|
+
) -> None: ...
|
|
18263
|
+
|
|
18264
|
+
global___PostArtifactsRequest = PostArtifactsRequest
|
|
18265
|
+
|
|
18266
|
+
@typing_extensions.final
|
|
18267
|
+
class MultiArtifactResponse(google.protobuf.message.Message):
|
|
18268
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
18269
|
+
|
|
18270
|
+
STATUS_FIELD_NUMBER: builtins.int
|
|
18271
|
+
ARTIFACTS_FIELD_NUMBER: builtins.int
|
|
18272
|
+
@property
|
|
18273
|
+
def status(self) -> proto.clarifai.api.status.status_pb2.Status: ...
|
|
18274
|
+
@property
|
|
18275
|
+
def artifacts(
|
|
18276
|
+
self,
|
|
18277
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
|
|
18278
|
+
proto.clarifai.api.resources_pb2.Artifact
|
|
18279
|
+
]: ...
|
|
18280
|
+
def __init__(
|
|
18281
|
+
self,
|
|
18282
|
+
*,
|
|
18283
|
+
status: proto.clarifai.api.status.status_pb2.Status | None = ...,
|
|
18284
|
+
artifacts: collections.abc.Iterable[proto.clarifai.api.resources_pb2.Artifact]
|
|
18285
|
+
| None = ...,
|
|
18286
|
+
) -> None: ...
|
|
18287
|
+
def HasField(
|
|
18288
|
+
self, field_name: typing_extensions.Literal["status", b"status"]
|
|
18289
|
+
) -> builtins.bool: ...
|
|
18290
|
+
def ClearField(
|
|
18291
|
+
self, field_name: typing_extensions.Literal["artifacts", b"artifacts", "status", b"status"]
|
|
18292
|
+
) -> None: ...
|
|
18293
|
+
|
|
18294
|
+
global___MultiArtifactResponse = MultiArtifactResponse
|
|
18295
|
+
|
|
18296
|
+
@typing_extensions.final
|
|
18297
|
+
class ListArtifactsRequest(google.protobuf.message.Message):
|
|
18298
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
18299
|
+
|
|
18300
|
+
USER_APP_ID_FIELD_NUMBER: builtins.int
|
|
18301
|
+
PAGE_FIELD_NUMBER: builtins.int
|
|
18302
|
+
PER_PAGE_FIELD_NUMBER: builtins.int
|
|
18303
|
+
@property
|
|
18304
|
+
def user_app_id(self) -> proto.clarifai.api.resources_pb2.UserAppIDSet: ...
|
|
18305
|
+
page: builtins.int
|
|
18306
|
+
"""(optional URL parameter) The page number. Pagination is used to split the results into chunks.
|
|
18307
|
+
Defaults to 1.
|
|
18308
|
+
"""
|
|
18309
|
+
per_page: builtins.int
|
|
18310
|
+
"""(optional URL parameter) The number of results that will be contained in each page. Defaults
|
|
18311
|
+
to 128.
|
|
18312
|
+
"""
|
|
18313
|
+
def __init__(
|
|
18314
|
+
self,
|
|
18315
|
+
*,
|
|
18316
|
+
user_app_id: proto.clarifai.api.resources_pb2.UserAppIDSet | None = ...,
|
|
18317
|
+
page: builtins.int = ...,
|
|
18318
|
+
per_page: builtins.int = ...,
|
|
18319
|
+
) -> None: ...
|
|
18320
|
+
def HasField(
|
|
18321
|
+
self, field_name: typing_extensions.Literal["user_app_id", b"user_app_id"]
|
|
18322
|
+
) -> builtins.bool: ...
|
|
18323
|
+
def ClearField(
|
|
18324
|
+
self,
|
|
18325
|
+
field_name: typing_extensions.Literal[
|
|
18326
|
+
"page", b"page", "per_page", b"per_page", "user_app_id", b"user_app_id"
|
|
18327
|
+
],
|
|
18328
|
+
) -> None: ...
|
|
18329
|
+
|
|
18330
|
+
global___ListArtifactsRequest = ListArtifactsRequest
|
|
18331
|
+
|
|
18332
|
+
@typing_extensions.final
|
|
18333
|
+
class GetArtifactRequest(google.protobuf.message.Message):
|
|
18334
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
18335
|
+
|
|
18336
|
+
USER_APP_ID_FIELD_NUMBER: builtins.int
|
|
18337
|
+
ARTIFACT_ID_FIELD_NUMBER: builtins.int
|
|
18338
|
+
@property
|
|
18339
|
+
def user_app_id(self) -> proto.clarifai.api.resources_pb2.UserAppIDSet: ...
|
|
18340
|
+
artifact_id: builtins.str
|
|
18341
|
+
"""The id of the artifact to get"""
|
|
18342
|
+
def __init__(
|
|
18343
|
+
self,
|
|
18344
|
+
*,
|
|
18345
|
+
user_app_id: proto.clarifai.api.resources_pb2.UserAppIDSet | None = ...,
|
|
18346
|
+
artifact_id: builtins.str = ...,
|
|
18347
|
+
) -> None: ...
|
|
18348
|
+
def HasField(
|
|
18349
|
+
self, field_name: typing_extensions.Literal["user_app_id", b"user_app_id"]
|
|
18350
|
+
) -> builtins.bool: ...
|
|
18351
|
+
def ClearField(
|
|
18352
|
+
self,
|
|
18353
|
+
field_name: typing_extensions.Literal[
|
|
18354
|
+
"artifact_id", b"artifact_id", "user_app_id", b"user_app_id"
|
|
18355
|
+
],
|
|
18356
|
+
) -> None: ...
|
|
18357
|
+
|
|
18358
|
+
global___GetArtifactRequest = GetArtifactRequest
|
|
18359
|
+
|
|
18360
|
+
@typing_extensions.final
|
|
18361
|
+
class SingleArtifactResponse(google.protobuf.message.Message):
|
|
18362
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
18363
|
+
|
|
18364
|
+
STATUS_FIELD_NUMBER: builtins.int
|
|
18365
|
+
ARTIFACT_FIELD_NUMBER: builtins.int
|
|
18366
|
+
@property
|
|
18367
|
+
def status(self) -> proto.clarifai.api.status.status_pb2.Status: ...
|
|
18368
|
+
@property
|
|
18369
|
+
def artifact(self) -> proto.clarifai.api.resources_pb2.Artifact: ...
|
|
18370
|
+
def __init__(
|
|
18371
|
+
self,
|
|
18372
|
+
*,
|
|
18373
|
+
status: proto.clarifai.api.status.status_pb2.Status | None = ...,
|
|
18374
|
+
artifact: proto.clarifai.api.resources_pb2.Artifact | None = ...,
|
|
18375
|
+
) -> None: ...
|
|
18376
|
+
def HasField(
|
|
18377
|
+
self, field_name: typing_extensions.Literal["artifact", b"artifact", "status", b"status"]
|
|
18378
|
+
) -> builtins.bool: ...
|
|
18379
|
+
def ClearField(
|
|
18380
|
+
self, field_name: typing_extensions.Literal["artifact", b"artifact", "status", b"status"]
|
|
18381
|
+
) -> None: ...
|
|
18382
|
+
|
|
18383
|
+
global___SingleArtifactResponse = SingleArtifactResponse
|
|
18384
|
+
|
|
18385
|
+
@typing_extensions.final
|
|
18386
|
+
class DeleteArtifactRequest(google.protobuf.message.Message):
|
|
18387
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
18388
|
+
|
|
18389
|
+
USER_APP_ID_FIELD_NUMBER: builtins.int
|
|
18390
|
+
ARTIFACT_ID_FIELD_NUMBER: builtins.int
|
|
18391
|
+
@property
|
|
18392
|
+
def user_app_id(self) -> proto.clarifai.api.resources_pb2.UserAppIDSet: ...
|
|
18393
|
+
artifact_id: builtins.str
|
|
18394
|
+
"""The id of the artifact to be deleted"""
|
|
18395
|
+
def __init__(
|
|
18396
|
+
self,
|
|
18397
|
+
*,
|
|
18398
|
+
user_app_id: proto.clarifai.api.resources_pb2.UserAppIDSet | None = ...,
|
|
18399
|
+
artifact_id: builtins.str = ...,
|
|
18400
|
+
) -> None: ...
|
|
18401
|
+
def HasField(
|
|
18402
|
+
self, field_name: typing_extensions.Literal["user_app_id", b"user_app_id"]
|
|
18403
|
+
) -> builtins.bool: ...
|
|
18404
|
+
def ClearField(
|
|
18405
|
+
self,
|
|
18406
|
+
field_name: typing_extensions.Literal[
|
|
18407
|
+
"artifact_id", b"artifact_id", "user_app_id", b"user_app_id"
|
|
18408
|
+
],
|
|
18409
|
+
) -> None: ...
|
|
18410
|
+
|
|
18411
|
+
global___DeleteArtifactRequest = DeleteArtifactRequest
|
|
18412
|
+
|
|
18413
|
+
@typing_extensions.final
|
|
18414
|
+
class PostArtifactVersionsUploadRequest(google.protobuf.message.Message):
|
|
18415
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
18416
|
+
|
|
18417
|
+
UPLOAD_CONFIG_FIELD_NUMBER: builtins.int
|
|
18418
|
+
CONTENT_PART_FIELD_NUMBER: builtins.int
|
|
18419
|
+
@property
|
|
18420
|
+
def upload_config(self) -> global___PostArtifactVersionsUploadConfig:
|
|
18421
|
+
"""Upload a new artifact version."""
|
|
18422
|
+
@property
|
|
18423
|
+
def content_part(self) -> proto.clarifai.api.resources_pb2.UploadContentPart:
|
|
18424
|
+
"""Upload a part of a multipart upload."""
|
|
18425
|
+
def __init__(
|
|
18426
|
+
self,
|
|
18427
|
+
*,
|
|
18428
|
+
upload_config: global___PostArtifactVersionsUploadConfig | None = ...,
|
|
18429
|
+
content_part: proto.clarifai.api.resources_pb2.UploadContentPart | None = ...,
|
|
18430
|
+
) -> None: ...
|
|
18431
|
+
def HasField(
|
|
18432
|
+
self,
|
|
18433
|
+
field_name: typing_extensions.Literal[
|
|
18434
|
+
"content_part",
|
|
18435
|
+
b"content_part",
|
|
18436
|
+
"upload_config",
|
|
18437
|
+
b"upload_config",
|
|
18438
|
+
"upload_data",
|
|
18439
|
+
b"upload_data",
|
|
18440
|
+
],
|
|
18441
|
+
) -> builtins.bool: ...
|
|
18442
|
+
def ClearField(
|
|
18443
|
+
self,
|
|
18444
|
+
field_name: typing_extensions.Literal[
|
|
18445
|
+
"content_part",
|
|
18446
|
+
b"content_part",
|
|
18447
|
+
"upload_config",
|
|
18448
|
+
b"upload_config",
|
|
18449
|
+
"upload_data",
|
|
18450
|
+
b"upload_data",
|
|
18451
|
+
],
|
|
18452
|
+
) -> None: ...
|
|
18453
|
+
def WhichOneof(
|
|
18454
|
+
self, oneof_group: typing_extensions.Literal["upload_data", b"upload_data"]
|
|
18455
|
+
) -> typing_extensions.Literal["upload_config", "content_part"] | None: ...
|
|
18456
|
+
|
|
18457
|
+
global___PostArtifactVersionsUploadRequest = PostArtifactVersionsUploadRequest
|
|
18458
|
+
|
|
18459
|
+
@typing_extensions.final
|
|
18460
|
+
class PostArtifactVersionsUploadResponse(google.protobuf.message.Message):
|
|
18461
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
18462
|
+
|
|
18463
|
+
STATUS_FIELD_NUMBER: builtins.int
|
|
18464
|
+
BYTES_REMAINING_FIELD_NUMBER: builtins.int
|
|
18465
|
+
ARTIFACT_VERSION_ID_FIELD_NUMBER: builtins.int
|
|
18466
|
+
@property
|
|
18467
|
+
def status(self) -> proto.clarifai.api.status.status_pb2.Status:
|
|
18468
|
+
"""Status of the upload"""
|
|
18469
|
+
bytes_remaining: builtins.int
|
|
18470
|
+
"""Bytes remaining to be uploaded - This is total_size - bytes_uploaded"""
|
|
18471
|
+
artifact_version_id: builtins.str
|
|
18472
|
+
"""ID of the artifact version being uploaded"""
|
|
18473
|
+
def __init__(
|
|
18474
|
+
self,
|
|
18475
|
+
*,
|
|
18476
|
+
status: proto.clarifai.api.status.status_pb2.Status | None = ...,
|
|
18477
|
+
bytes_remaining: builtins.int = ...,
|
|
18478
|
+
artifact_version_id: builtins.str = ...,
|
|
18479
|
+
) -> None: ...
|
|
18480
|
+
def HasField(
|
|
18481
|
+
self, field_name: typing_extensions.Literal["status", b"status"]
|
|
18482
|
+
) -> builtins.bool: ...
|
|
18483
|
+
def ClearField(
|
|
18484
|
+
self,
|
|
18485
|
+
field_name: typing_extensions.Literal[
|
|
18486
|
+
"artifact_version_id",
|
|
18487
|
+
b"artifact_version_id",
|
|
18488
|
+
"bytes_remaining",
|
|
18489
|
+
b"bytes_remaining",
|
|
18490
|
+
"status",
|
|
18491
|
+
b"status",
|
|
18492
|
+
],
|
|
18493
|
+
) -> None: ...
|
|
18494
|
+
|
|
18495
|
+
global___PostArtifactVersionsUploadResponse = PostArtifactVersionsUploadResponse
|
|
18496
|
+
|
|
18497
|
+
@typing_extensions.final
|
|
18498
|
+
class PostArtifactVersionsUploadConfig(google.protobuf.message.Message):
|
|
18499
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
18500
|
+
|
|
18501
|
+
USER_APP_ID_FIELD_NUMBER: builtins.int
|
|
18502
|
+
ARTIFACT_ID_FIELD_NUMBER: builtins.int
|
|
18503
|
+
ARTIFACT_VERSION_FIELD_NUMBER: builtins.int
|
|
18504
|
+
TOTAL_SIZE_FIELD_NUMBER: builtins.int
|
|
18505
|
+
STORAGE_REQUEST_SIZE_FIELD_NUMBER: builtins.int
|
|
18506
|
+
@property
|
|
18507
|
+
def user_app_id(self) -> proto.clarifai.api.resources_pb2.UserAppIDSet:
|
|
18508
|
+
"""User ID and App ID of the user uploading the artifact"""
|
|
18509
|
+
artifact_id: builtins.str
|
|
18510
|
+
"""Artifact to create version for"""
|
|
18511
|
+
@property
|
|
18512
|
+
def artifact_version(self) -> proto.clarifai.api.resources_pb2.ArtifactVersion:
|
|
18513
|
+
"""Specification for the artifact version to be uploaded"""
|
|
18514
|
+
total_size: builtins.int
|
|
18515
|
+
"""Number of bytes in the artifact files to be uploaded"""
|
|
18516
|
+
storage_request_size: builtins.int
|
|
18517
|
+
"""Number of bytes requested for the build process."""
|
|
18518
|
+
def __init__(
|
|
18519
|
+
self,
|
|
18520
|
+
*,
|
|
18521
|
+
user_app_id: proto.clarifai.api.resources_pb2.UserAppIDSet | None = ...,
|
|
18522
|
+
artifact_id: builtins.str = ...,
|
|
18523
|
+
artifact_version: proto.clarifai.api.resources_pb2.ArtifactVersion | None = ...,
|
|
18524
|
+
total_size: builtins.int = ...,
|
|
18525
|
+
storage_request_size: builtins.int = ...,
|
|
18526
|
+
) -> None: ...
|
|
18527
|
+
def HasField(
|
|
18528
|
+
self,
|
|
18529
|
+
field_name: typing_extensions.Literal[
|
|
18530
|
+
"artifact_version", b"artifact_version", "user_app_id", b"user_app_id"
|
|
18531
|
+
],
|
|
18532
|
+
) -> builtins.bool: ...
|
|
18533
|
+
def ClearField(
|
|
18534
|
+
self,
|
|
18535
|
+
field_name: typing_extensions.Literal[
|
|
18536
|
+
"artifact_id",
|
|
18537
|
+
b"artifact_id",
|
|
18538
|
+
"artifact_version",
|
|
18539
|
+
b"artifact_version",
|
|
18540
|
+
"storage_request_size",
|
|
18541
|
+
b"storage_request_size",
|
|
18542
|
+
"total_size",
|
|
18543
|
+
b"total_size",
|
|
18544
|
+
"user_app_id",
|
|
18545
|
+
b"user_app_id",
|
|
18546
|
+
],
|
|
18547
|
+
) -> None: ...
|
|
18548
|
+
|
|
18549
|
+
global___PostArtifactVersionsUploadConfig = PostArtifactVersionsUploadConfig
|
|
18550
|
+
|
|
18551
|
+
@typing_extensions.final
|
|
18552
|
+
class ListArtifactVersionsRequest(google.protobuf.message.Message):
|
|
18553
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
18554
|
+
|
|
18555
|
+
USER_APP_ID_FIELD_NUMBER: builtins.int
|
|
18556
|
+
ARTIFACT_ID_FIELD_NUMBER: builtins.int
|
|
18557
|
+
PAGE_FIELD_NUMBER: builtins.int
|
|
18558
|
+
PER_PAGE_FIELD_NUMBER: builtins.int
|
|
18559
|
+
@property
|
|
18560
|
+
def user_app_id(self) -> proto.clarifai.api.resources_pb2.UserAppIDSet: ...
|
|
18561
|
+
artifact_id: builtins.str
|
|
18562
|
+
"""List versions for the artifact identified by this id"""
|
|
18563
|
+
page: builtins.int
|
|
18564
|
+
"""(optional URL parameter) The page number. Pagination is used to split the results into chunks.
|
|
18565
|
+
Defaults to 1.
|
|
18566
|
+
"""
|
|
18567
|
+
per_page: builtins.int
|
|
18568
|
+
"""(optional URL parameter) The number of results that will be contained in each page. Defaults
|
|
18569
|
+
to 128.
|
|
18570
|
+
"""
|
|
18571
|
+
def __init__(
|
|
18572
|
+
self,
|
|
18573
|
+
*,
|
|
18574
|
+
user_app_id: proto.clarifai.api.resources_pb2.UserAppIDSet | None = ...,
|
|
18575
|
+
artifact_id: builtins.str = ...,
|
|
18576
|
+
page: builtins.int = ...,
|
|
18577
|
+
per_page: builtins.int = ...,
|
|
18578
|
+
) -> None: ...
|
|
18579
|
+
def HasField(
|
|
18580
|
+
self, field_name: typing_extensions.Literal["user_app_id", b"user_app_id"]
|
|
18581
|
+
) -> builtins.bool: ...
|
|
18582
|
+
def ClearField(
|
|
18583
|
+
self,
|
|
18584
|
+
field_name: typing_extensions.Literal[
|
|
18585
|
+
"artifact_id",
|
|
18586
|
+
b"artifact_id",
|
|
18587
|
+
"page",
|
|
18588
|
+
b"page",
|
|
18589
|
+
"per_page",
|
|
18590
|
+
b"per_page",
|
|
18591
|
+
"user_app_id",
|
|
18592
|
+
b"user_app_id",
|
|
18593
|
+
],
|
|
18594
|
+
) -> None: ...
|
|
18595
|
+
|
|
18596
|
+
global___ListArtifactVersionsRequest = ListArtifactVersionsRequest
|
|
18597
|
+
|
|
18598
|
+
@typing_extensions.final
|
|
18599
|
+
class MultiArtifactVersionResponse(google.protobuf.message.Message):
|
|
18600
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
18601
|
+
|
|
18602
|
+
STATUS_FIELD_NUMBER: builtins.int
|
|
18603
|
+
ARTIFACT_VERSIONS_FIELD_NUMBER: builtins.int
|
|
18604
|
+
@property
|
|
18605
|
+
def status(self) -> proto.clarifai.api.status.status_pb2.Status:
|
|
18606
|
+
"""The status of the request"""
|
|
18607
|
+
@property
|
|
18608
|
+
def artifact_versions(
|
|
18609
|
+
self,
|
|
18610
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
|
|
18611
|
+
proto.clarifai.api.resources_pb2.ArtifactVersion
|
|
18612
|
+
]:
|
|
18613
|
+
"""The artifact versions that were requested"""
|
|
18614
|
+
def __init__(
|
|
18615
|
+
self,
|
|
18616
|
+
*,
|
|
18617
|
+
status: proto.clarifai.api.status.status_pb2.Status | None = ...,
|
|
18618
|
+
artifact_versions: collections.abc.Iterable[
|
|
18619
|
+
proto.clarifai.api.resources_pb2.ArtifactVersion
|
|
18620
|
+
]
|
|
18621
|
+
| None = ...,
|
|
18622
|
+
) -> None: ...
|
|
18623
|
+
def HasField(
|
|
18624
|
+
self, field_name: typing_extensions.Literal["status", b"status"]
|
|
18625
|
+
) -> builtins.bool: ...
|
|
18626
|
+
def ClearField(
|
|
18627
|
+
self,
|
|
18628
|
+
field_name: typing_extensions.Literal[
|
|
18629
|
+
"artifact_versions", b"artifact_versions", "status", b"status"
|
|
18630
|
+
],
|
|
18631
|
+
) -> None: ...
|
|
18632
|
+
|
|
18633
|
+
global___MultiArtifactVersionResponse = MultiArtifactVersionResponse
|
|
18634
|
+
|
|
18635
|
+
@typing_extensions.final
|
|
18636
|
+
class GetArtifactVersionRequest(google.protobuf.message.Message):
|
|
18637
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
18638
|
+
|
|
18639
|
+
USER_APP_ID_FIELD_NUMBER: builtins.int
|
|
18640
|
+
ARTIFACT_ID_FIELD_NUMBER: builtins.int
|
|
18641
|
+
ARTIFACT_VERSION_ID_FIELD_NUMBER: builtins.int
|
|
18642
|
+
@property
|
|
18643
|
+
def user_app_id(self) -> proto.clarifai.api.resources_pb2.UserAppIDSet: ...
|
|
18644
|
+
artifact_id: builtins.str
|
|
18645
|
+
"""The id of the artifact that has the requested version."""
|
|
18646
|
+
artifact_version_id: builtins.str
|
|
18647
|
+
"""Get the artifact version identified by this id"""
|
|
18648
|
+
def __init__(
|
|
18649
|
+
self,
|
|
18650
|
+
*,
|
|
18651
|
+
user_app_id: proto.clarifai.api.resources_pb2.UserAppIDSet | None = ...,
|
|
18652
|
+
artifact_id: builtins.str = ...,
|
|
18653
|
+
artifact_version_id: builtins.str = ...,
|
|
18654
|
+
) -> None: ...
|
|
18655
|
+
def HasField(
|
|
18656
|
+
self, field_name: typing_extensions.Literal["user_app_id", b"user_app_id"]
|
|
18657
|
+
) -> builtins.bool: ...
|
|
18658
|
+
def ClearField(
|
|
18659
|
+
self,
|
|
18660
|
+
field_name: typing_extensions.Literal[
|
|
18661
|
+
"artifact_id",
|
|
18662
|
+
b"artifact_id",
|
|
18663
|
+
"artifact_version_id",
|
|
18664
|
+
b"artifact_version_id",
|
|
18665
|
+
"user_app_id",
|
|
18666
|
+
b"user_app_id",
|
|
18667
|
+
],
|
|
18668
|
+
) -> None: ...
|
|
18669
|
+
|
|
18670
|
+
global___GetArtifactVersionRequest = GetArtifactVersionRequest
|
|
18671
|
+
|
|
18672
|
+
@typing_extensions.final
|
|
18673
|
+
class SingleArtifactVersionResponse(google.protobuf.message.Message):
|
|
18674
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
18675
|
+
|
|
18676
|
+
STATUS_FIELD_NUMBER: builtins.int
|
|
18677
|
+
ARTIFACT_VERSION_FIELD_NUMBER: builtins.int
|
|
18678
|
+
@property
|
|
18679
|
+
def status(self) -> proto.clarifai.api.status.status_pb2.Status:
|
|
18680
|
+
"""The status of the request"""
|
|
18681
|
+
@property
|
|
18682
|
+
def artifact_version(self) -> proto.clarifai.api.resources_pb2.ArtifactVersion:
|
|
18683
|
+
"""The artifact version that was requested"""
|
|
18684
|
+
def __init__(
|
|
18685
|
+
self,
|
|
18686
|
+
*,
|
|
18687
|
+
status: proto.clarifai.api.status.status_pb2.Status | None = ...,
|
|
18688
|
+
artifact_version: proto.clarifai.api.resources_pb2.ArtifactVersion | None = ...,
|
|
18689
|
+
) -> None: ...
|
|
18690
|
+
def HasField(
|
|
18691
|
+
self,
|
|
18692
|
+
field_name: typing_extensions.Literal[
|
|
18693
|
+
"artifact_version", b"artifact_version", "status", b"status"
|
|
18694
|
+
],
|
|
18695
|
+
) -> builtins.bool: ...
|
|
18696
|
+
def ClearField(
|
|
18697
|
+
self,
|
|
18698
|
+
field_name: typing_extensions.Literal[
|
|
18699
|
+
"artifact_version", b"artifact_version", "status", b"status"
|
|
18700
|
+
],
|
|
18701
|
+
) -> None: ...
|
|
18702
|
+
|
|
18703
|
+
global___SingleArtifactVersionResponse = SingleArtifactVersionResponse
|
|
18704
|
+
|
|
18705
|
+
@typing_extensions.final
|
|
18706
|
+
class DeleteArtifactVersionRequest(google.protobuf.message.Message):
|
|
18707
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
18708
|
+
|
|
18709
|
+
USER_APP_ID_FIELD_NUMBER: builtins.int
|
|
18710
|
+
ARTIFACT_ID_FIELD_NUMBER: builtins.int
|
|
18711
|
+
ARTIFACT_VERSION_ID_FIELD_NUMBER: builtins.int
|
|
18712
|
+
@property
|
|
18713
|
+
def user_app_id(self) -> proto.clarifai.api.resources_pb2.UserAppIDSet: ...
|
|
18714
|
+
artifact_id: builtins.str
|
|
18715
|
+
"""The id of the artifact for which versions are being deleted"""
|
|
18716
|
+
artifact_version_id: builtins.str
|
|
18717
|
+
"""The id of the artifact versions to be deleted"""
|
|
18718
|
+
def __init__(
|
|
18719
|
+
self,
|
|
18720
|
+
*,
|
|
18721
|
+
user_app_id: proto.clarifai.api.resources_pb2.UserAppIDSet | None = ...,
|
|
18722
|
+
artifact_id: builtins.str = ...,
|
|
18723
|
+
artifact_version_id: builtins.str = ...,
|
|
18724
|
+
) -> None: ...
|
|
18725
|
+
def HasField(
|
|
18726
|
+
self, field_name: typing_extensions.Literal["user_app_id", b"user_app_id"]
|
|
18727
|
+
) -> builtins.bool: ...
|
|
18728
|
+
def ClearField(
|
|
18729
|
+
self,
|
|
18730
|
+
field_name: typing_extensions.Literal[
|
|
18731
|
+
"artifact_id",
|
|
18732
|
+
b"artifact_id",
|
|
18733
|
+
"artifact_version_id",
|
|
18734
|
+
b"artifact_version_id",
|
|
18735
|
+
"user_app_id",
|
|
18736
|
+
b"user_app_id",
|
|
18737
|
+
],
|
|
18738
|
+
) -> None: ...
|
|
18739
|
+
|
|
18740
|
+
global___DeleteArtifactVersionRequest = DeleteArtifactVersionRequest
|