From bcf5069fdac077d6e767cb6cccf90bfef6ceaa8d Mon Sep 17 00:00:00 2001 From: Stephan Auerhahn Date: Thu, 11 May 2023 06:05:27 +0000 Subject: [PATCH 01/20] WIP refactor --- .devcontainer/Dockerfile | 26 + .devcontainer/devcontainer.json | 24 + README.md | 106 +- buf.gen.go.yaml | 27 + buf.gen.js.yaml | 8 + buf.gen.kt.yaml | 8 + buf.gen.py.yaml | 10 + buf.gen.swift.yaml | 8 + buf.work.yaml | 1 - buf.yaml | 4 + gen/proto/go/coreweave/tensors/tensors.pb.go | 618 ++ .../platformapis/dashboard/v1/dashboard.pb.go | 2665 +++++++++ .../dashboard/v1/dashboard_grpc.pb.go | 672 +++ .../dashboardv1connect/dashboard.connect.go | 487 ++ .../platformapis/engines/v1/engines.pb.go | 479 ++ .../engines/v1/engines_grpc.pb.go | 109 + .../v1/enginesv1connect/engines.connect.go | 102 + .../generation/v1/generation.pb.go | 5219 +++++++++++++++++ .../generation/v1/generation_grpc.pb.go | 200 + .../generationv1connect/generation.connect.go | 127 + .../platformapis/project/v1/project.pb.go | 1977 +++++++ .../project/v1/project_grpc.pb.go | 449 ++ .../v1/projectv1connect/project.connect.go | 313 + .../js/coreweave/tensors/tensors_pb.d.ts | 256 + gen/proto/js/coreweave/tensors/tensors_pb.js | 86 + .../dashboard/v1/dashboard_connect.d.ts | 169 + .../dashboard/v1/dashboard_connect.js | 169 + .../dashboard/v1/dashboard_pb.d.ts | 960 +++ .../platformapis/dashboard/v1/dashboard_pb.js | 350 ++ .../engines/v1/engines_connect.d.ts | 26 + .../engines/v1/engines_connect.js | 26 + .../platformapis/engines/v1/engines_pb.d.ts | 163 + .../platformapis/engines/v1/engines_pb.js | 75 + .../generation/v1/generation_connect.d.ts | 39 + .../generation/v1/generation_connect.js | 39 + .../generation/v1/generation_pb.d.ts | 2171 +++++++ .../generation/v1/generation_pb.js | 778 +++ .../project/v1/project_connect.d.ts | 118 + .../project/v1/project_connect.js | 118 + .../platformapis/project/v1/project_pb.d.ts | 867 +++ .../platformapis/project/v1/project_pb.js | 258 + .../api/dashboard/v1/APIKeyFindRequestKt.kt | 51 + .../stabilityai/api/dashboard/v1/APIKeyKt.kt | 85 + .../api/dashboard/v1/APIKeyRequestKt.kt | 51 + .../api/dashboard/v1/AutoChargeIntentKt.kt | 136 + .../stabilityai/api/dashboard/v1/ChargeKt.kt | 136 + .../stabilityai/api/dashboard/v1/ChargesKt.kt | 106 + .../api/dashboard/v1/ClientSettingsKt.kt | 51 + .../api/dashboard/v1/CostDataKt.kt | 68 + .../api/dashboard/v1/CostTotalKt.kt | 68 + .../v1/CreateAutoChargeIntentRequestKt.kt | 102 + .../api/dashboard/v1/CreateChargeRequestKt.kt | 68 + .../api/dashboard/v1/DashboardProtoKt.kt | 7 + .../dashboard/v1/DashboardServiceClient.kt | 218 + .../v1/DashboardServiceClientInterface.kt | 70 + .../api/dashboard/v1/EmptyRequestKt.kt | 34 + .../dashboard/v1/GetAutoChargeRequestKt.kt | 51 + .../api/dashboard/v1/GetChargesRequestKt.kt | 85 + .../api/dashboard/v1/GetMetricsRequestKt.kt | 126 + .../dashboard/v1/GetOrganizationRequestKt.kt | 51 + .../stabilityai/api/dashboard/v1/MetricsKt.kt | 133 + .../dashboard/v1/OrganizationAutoChargeKt.kt | 85 + .../api/dashboard/v1/OrganizationGrantKt.kt | 102 + .../api/dashboard/v1/OrganizationKt.kt | 239 + .../api/dashboard/v1/OrganizationMemberKt.kt | 131 + .../dashboard/v1/OrganizationPaymentInfoKt.kt | 123 + .../api/dashboard/v1/TotalMetricsDataKt.kt | 88 + .../v1/UpdateDefaultOrganizationRequestKt.kt | 51 + .../dashboard/v1/UpdateUserInfoRequestKt.kt | 58 + .../api/dashboard/v1/UsageMetricKt.kt | 163 + .../stabilityai/api/dashboard/v1/UserKt.kt | 294 + .../v1/UserPasswordChangeTicketKt.kt | 51 + .../platformapis/engines/v1/EngineInfoKt.kt | 171 + .../platformapis/engines/v1/EnginesKt.kt | 110 + .../platformapis/engines/v1/EnginesProtoKt.kt | 7 + .../engines/v1/EnginesServiceClient.kt | 26 + .../v1/EnginesServiceClientInterface.kt | 13 + .../engines/v1/ListEnginesRequestKt.kt | 38 + .../generation/v1/AnswerBatchKt.kt | 128 + .../platformapis/generation/v1/AnswerKt.kt | 208 + .../generation/v1/AnswerMetaKt.kt | 135 + .../platformapis/generation/v1/ArtifactKt.kt | 457 ++ .../generation/v1/AssetParametersKt.kt | 99 + .../generation/v1/CameraParametersKt.kt | 144 + .../generation/v1/ChainRequestKt.kt | 123 + .../generation/v1/ClassifierCategoryKt.kt | 209 + .../generation/v1/ClassifierConceptKt.kt | 75 + .../generation/v1/ClassifierParametersKt.kt | 209 + .../generation/v1/ConditionerParametersKt.kt | 92 + .../generation/v1/CutoutParametersKt.kt | 278 + .../generation/v1/GenerationProtoKt.kt | 7 + .../generation/v1/GenerationServiceClient.kt | 40 + .../v1/GenerationServiceClientInterface.kt | 20 + .../v1/GuidanceInstanceParametersKt.kt | 358 ++ .../generation/v1/GuidanceParametersKt.kt | 171 + .../v1/GuidanceScheduleParametersKt.kt | 75 + .../generation/v1/ImageParametersKt.kt | 418 ++ .../generation/v1/InterpolateParametersKt.kt | 134 + .../platformapis/generation/v1/ModelKt.kt | 143 + .../platformapis/generation/v1/OnStatusKt.kt | 188 + .../platformapis/generation/v1/PromptKt.kt | 158 + .../generation/v1/PromptParametersKt.kt | 98 + .../platformapis/generation/v1/RequestKt.kt | 382 ++ .../generation/v1/SamplerParametersKt.kt | 230 + .../generation/v1/ScheduleParametersKt.kt | 146 + .../platformapis/generation/v1/StageKt.kt | 150 + .../generation/v1/StepParameterKt.kt | 142 + .../platformapis/generation/v1/TokenKt.kt | 79 + .../platformapis/generation/v1/TokensKt.kt | 134 + .../generation/v1/TransformCameraPoseKt.kt | 157 + .../generation/v1/TransformColorAdjustKt.kt | 370 ++ .../generation/v1/TransformDepthCalcKt.kt | 142 + .../generation/v1/TransformMatrixKt.kt | 155 + .../generation/v1/TransformParametersKt.kt | 149 + .../generation/v1/TransformResampleKt.kt | 218 + .../generation/v1/TransformTypeKt.kt | 103 + .../project/v1/CreateProjectRequestKt.kt | 200 + .../project/v1/DeleteAssetsRequestKt.kt | 193 + .../project/v1/DeleteAssetsResponseKt.kt | 182 + .../project/v1/DeleteProjectRequestKt.kt | 95 + .../project/v1/GetProjectRequestKt.kt | 95 + .../project/v1/ListProjectRequestKt.kt | 70 + .../platformapis/project/v1/ProjectAssetKt.kt | 340 ++ .../platformapis/project/v1/ProjectKt.kt | 387 ++ .../platformapis/project/v1/ProjectProtoKt.kt | 7 + .../project/v1/ProjectServiceClient.kt | 150 + .../v1/ProjectServiceClientInterface.kt | 66 + .../project/v1/QueryAssetsRequestKt.kt | 449 ++ .../project/v1/QueryAssetsResponseKt.kt | 170 + .../project/v1/TagAssetsRequestKt.kt | 278 + .../project/v1/TagAssetsResponseKt.kt | 182 + .../project/v1/UntagAssetsRequestKt.kt | 291 + .../project/v1/UntagAssetsResponseKt.kt | 182 + .../project/v1/UpdateProjectRequestKt.kt | 258 + gen/proto/kt/com/tensors/AttributeKt.kt | 208 + gen/proto/kt/com/tensors/ModuleKt.kt | 193 + gen/proto/kt/com/tensors/TensorKt.kt | 171 + gen/proto/kt/com/tensors/TensorsProtoKt.kt | 7 + gen/proto/py/coreweave/tensors/tensors_pb2.py | 35 + .../py/coreweave/tensors/tensors_pb2.pyi | 93 + .../py/coreweave/tensors/tensors_pb2_grpc.py | 4 + .../dashboard/v1/dashboard_pb2.py | 85 + .../dashboard/v1/dashboard_pb2.pyi | 288 + .../dashboard/v1/dashboard_pb2_grpc.py | 565 ++ .../platformapis/engines/v1/engines_pb2.py | 37 + .../platformapis/engines/v1/engines_pb2.pyi | 57 + .../engines/v1/engines_pb2_grpc.py | 66 + .../generation/v1/generation_pb2.py | 137 + .../generation/v1/generation_pb2.pyi | 663 +++ .../generation/v1/generation_pb2_grpc.py | 108 + .../platformapis/project/v1/project_pb2.py | 78 + .../platformapis/project/v1/project_pb2.pyi | 259 + .../project/v1/project_pb2_grpc.py | 347 ++ .../swift/coreweave/tensors/tensors.pb.swift | 583 ++ .../dashboard/v1/dashboard.connect.swift | 173 + .../dashboard/v1/dashboard.pb.swift | 1953 ++++++ .../engines/v1/engines.connect.swift | 34 + .../platformapis/engines/v1/engines.pb.swift | 316 + .../generation/v1/generation.connect.swift | 45 + .../generation/v1/generation.pb.swift | 5094 ++++++++++++++++ .../project/v1/project.connect.swift | 116 + .../platformapis/project/v1/project.pb.swift | 1725 ++++++ gooseai/README.md | 3 + package-lock.json | 1163 +--- package.json | 18 +- src/proto/coreweave/tensors/tensors.proto | 54 + .../dashboard/v1}/dashboard.proto | 4 +- .../platformapis/engines/v1}/engines.proto | 4 +- .../generation/v1}/generation.proto | 6 +- .../platformapis/project/v1}/project.proto | 8 +- src/tensorizer | 1 - update.sh | 3 + 172 files changed, 47467 insertions(+), 1110 deletions(-) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json create mode 100644 buf.gen.go.yaml create mode 100644 buf.gen.js.yaml create mode 100644 buf.gen.kt.yaml create mode 100644 buf.gen.py.yaml create mode 100644 buf.gen.swift.yaml create mode 100644 gen/proto/go/coreweave/tensors/tensors.pb.go create mode 100644 gen/proto/go/stabilityai/platformapis/dashboard/v1/dashboard.pb.go create mode 100644 gen/proto/go/stabilityai/platformapis/dashboard/v1/dashboard_grpc.pb.go create mode 100644 gen/proto/go/stabilityai/platformapis/dashboard/v1/dashboardv1connect/dashboard.connect.go create mode 100644 gen/proto/go/stabilityai/platformapis/engines/v1/engines.pb.go create mode 100644 gen/proto/go/stabilityai/platformapis/engines/v1/engines_grpc.pb.go create mode 100644 gen/proto/go/stabilityai/platformapis/engines/v1/enginesv1connect/engines.connect.go create mode 100644 gen/proto/go/stabilityai/platformapis/generation/v1/generation.pb.go create mode 100644 gen/proto/go/stabilityai/platformapis/generation/v1/generation_grpc.pb.go create mode 100644 gen/proto/go/stabilityai/platformapis/generation/v1/generationv1connect/generation.connect.go create mode 100644 gen/proto/go/stabilityai/platformapis/project/v1/project.pb.go create mode 100644 gen/proto/go/stabilityai/platformapis/project/v1/project_grpc.pb.go create mode 100644 gen/proto/go/stabilityai/platformapis/project/v1/projectv1connect/project.connect.go create mode 100644 gen/proto/js/coreweave/tensors/tensors_pb.d.ts create mode 100644 gen/proto/js/coreweave/tensors/tensors_pb.js create mode 100644 gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_connect.d.ts create mode 100644 gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_connect.js create mode 100644 gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_pb.d.ts create mode 100644 gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_pb.js create mode 100644 gen/proto/js/stabilityai/platformapis/engines/v1/engines_connect.d.ts create mode 100644 gen/proto/js/stabilityai/platformapis/engines/v1/engines_connect.js create mode 100644 gen/proto/js/stabilityai/platformapis/engines/v1/engines_pb.d.ts create mode 100644 gen/proto/js/stabilityai/platformapis/engines/v1/engines_pb.js create mode 100644 gen/proto/js/stabilityai/platformapis/generation/v1/generation_connect.d.ts create mode 100644 gen/proto/js/stabilityai/platformapis/generation/v1/generation_connect.js create mode 100644 gen/proto/js/stabilityai/platformapis/generation/v1/generation_pb.d.ts create mode 100644 gen/proto/js/stabilityai/platformapis/generation/v1/generation_pb.js create mode 100644 gen/proto/js/stabilityai/platformapis/project/v1/project_connect.d.ts create mode 100644 gen/proto/js/stabilityai/platformapis/project/v1/project_connect.js create mode 100644 gen/proto/js/stabilityai/platformapis/project/v1/project_pb.d.ts create mode 100644 gen/proto/js/stabilityai/platformapis/project/v1/project_pb.js create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyFindRequestKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyRequestKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/AutoChargeIntentKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/ChargeKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/ChargesKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/ClientSettingsKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/CostDataKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/CostTotalKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/CreateAutoChargeIntentRequestKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/CreateChargeRequestKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardProtoKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardServiceClient.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardServiceClientInterface.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/EmptyRequestKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/GetAutoChargeRequestKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/GetChargesRequestKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/GetMetricsRequestKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/GetOrganizationRequestKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/MetricsKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationAutoChargeKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationGrantKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationMemberKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationPaymentInfoKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/TotalMetricsDataKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/UpdateDefaultOrganizationRequestKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/UpdateUserInfoRequestKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/UsageMetricKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/UserKt.kt create mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/UserPasswordChangeTicketKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/engines/v1/EngineInfoKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesProtoKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesServiceClient.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesServiceClientInterface.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/engines/v1/ListEnginesRequestKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerBatchKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerMetaKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/ArtifactKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/AssetParametersKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/CameraParametersKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/ChainRequestKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierCategoryKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierConceptKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierParametersKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/ConditionerParametersKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/CutoutParametersKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationProtoKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationServiceClient.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationServiceClientInterface.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceInstanceParametersKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceParametersKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceScheduleParametersKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/ImageParametersKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/InterpolateParametersKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/ModelKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/OnStatusKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/PromptKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/PromptParametersKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/RequestKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/SamplerParametersKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/ScheduleParametersKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/StageKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/StepParameterKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/TokenKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/TokensKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformCameraPoseKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformColorAdjustKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformDepthCalcKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformMatrixKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformParametersKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformResampleKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformTypeKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/CreateProjectRequestKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteAssetsRequestKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteAssetsResponseKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteProjectRequestKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/GetProjectRequestKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/ListProjectRequestKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectAssetKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectProtoKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectServiceClient.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectServiceClientInterface.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/QueryAssetsRequestKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/QueryAssetsResponseKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/TagAssetsRequestKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/TagAssetsResponseKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/UntagAssetsRequestKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/UntagAssetsResponseKt.kt create mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/UpdateProjectRequestKt.kt create mode 100644 gen/proto/kt/com/tensors/AttributeKt.kt create mode 100644 gen/proto/kt/com/tensors/ModuleKt.kt create mode 100644 gen/proto/kt/com/tensors/TensorKt.kt create mode 100644 gen/proto/kt/com/tensors/TensorsProtoKt.kt create mode 100644 gen/proto/py/coreweave/tensors/tensors_pb2.py create mode 100644 gen/proto/py/coreweave/tensors/tensors_pb2.pyi create mode 100644 gen/proto/py/coreweave/tensors/tensors_pb2_grpc.py create mode 100644 gen/proto/py/stabilityai/platformapis/dashboard/v1/dashboard_pb2.py create mode 100644 gen/proto/py/stabilityai/platformapis/dashboard/v1/dashboard_pb2.pyi create mode 100644 gen/proto/py/stabilityai/platformapis/dashboard/v1/dashboard_pb2_grpc.py create mode 100644 gen/proto/py/stabilityai/platformapis/engines/v1/engines_pb2.py create mode 100644 gen/proto/py/stabilityai/platformapis/engines/v1/engines_pb2.pyi create mode 100644 gen/proto/py/stabilityai/platformapis/engines/v1/engines_pb2_grpc.py create mode 100644 gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2.py create mode 100644 gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2.pyi create mode 100644 gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2_grpc.py create mode 100644 gen/proto/py/stabilityai/platformapis/project/v1/project_pb2.py create mode 100644 gen/proto/py/stabilityai/platformapis/project/v1/project_pb2.pyi create mode 100644 gen/proto/py/stabilityai/platformapis/project/v1/project_pb2_grpc.py create mode 100644 gen/proto/swift/coreweave/tensors/tensors.pb.swift create mode 100644 gen/proto/swift/stabilityai/platformapis/dashboard/v1/dashboard.connect.swift create mode 100644 gen/proto/swift/stabilityai/platformapis/dashboard/v1/dashboard.pb.swift create mode 100644 gen/proto/swift/stabilityai/platformapis/engines/v1/engines.connect.swift create mode 100644 gen/proto/swift/stabilityai/platformapis/engines/v1/engines.pb.swift create mode 100644 gen/proto/swift/stabilityai/platformapis/generation/v1/generation.connect.swift create mode 100644 gen/proto/swift/stabilityai/platformapis/generation/v1/generation.pb.swift create mode 100644 gen/proto/swift/stabilityai/platformapis/project/v1/project.connect.swift create mode 100644 gen/proto/swift/stabilityai/platformapis/project/v1/project.pb.swift create mode 100644 gooseai/README.md create mode 100644 src/proto/coreweave/tensors/tensors.proto rename src/proto/{ => stabilityai/platformapis/dashboard/v1}/dashboard.proto (96%) rename src/proto/{ => stabilityai/platformapis/engines/v1}/engines.proto (78%) rename src/proto/{ => stabilityai/platformapis/generation/v1}/generation.proto (98%) rename src/proto/{ => stabilityai/platformapis/project/v1}/project.proto (95%) delete mode 160000 src/tensorizer diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..083ff97 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,26 @@ +FROM mcr.microsoft.com/devcontainers/typescript-node:0-16-bullseye +ARG GOLANG_VERSION=1.18.6 +ARG GOLANG_PACKAGE=https://go.dev/dl/go${GOLANG_VERSION}.linux-amd64.tar.gz +ARG GRPC_VERSION=v1.48.2 +ARG PROTOC_GEN_GO_VERSION=v1.28.1 +ARG PROTOC_GEN_GO_GRPC_VERSION=v1.1.0 + +# Install python and build tools from apt +RUN apt-get update && apt-get install -y cmake git build-essential python3-venv wget && rm -rf /var/lib/apt/lists/* + +# Install golang from binary package +RUN rm -rf /go && wget ${GOLANG_PACKAGE} -qO- | tar -C / -xz +ENV GOPATH=/go +ENV PATH $GOPATH/bin:$PATH +RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH" +RUN mkdir -p /build + +# Build GRPC; note this issue before updating: https://github.com/protocolbuffers/protobuf-javascript/issues/127 +WORKDIR /build +RUN git clone --recurse-submodules -b ${GRPC_VERSION} --depth 1 --shallow-submodules https://github.com/grpc/grpc +WORKDIR /build/grpc +RUN mkdir -p cmake/build; cd cmake/build; cmake -DgRPC_INSTALL=ON -DgRPC_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=/usr/local ../.. && make -j 8 && make install + +# Build api-interfaces +RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@${PROTOC_GEN_GO_VERSION} +RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@${PROTOC_GEN_GO_GRPC_VERSION} \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..5da0215 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,24 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node +{ + "name": "Node.js & TypeScript", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "build": { + "dockerfile": "Dockerfile", + } + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "yarn install", + + // Configure tool-specific properties. + // "customizations": {}, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} diff --git a/README.md b/README.md index 5de38fc..3490a3c 100644 --- a/README.md +++ b/README.md @@ -1,106 +1,10 @@ -## 📝 Table of Contents +# TESTING - DO NOT USE +This branch is a work in progress; it is not expected to work with our production APIs at this time. -- [About](#about) -- [Getting Started](#getting_started) -- [Usage](#usage) +## Generating protobuf stubs -## About - -Api-Interfaces is the gRPC protocol for communication between the -[api-bridge](https://github.com/Stability-AI/api-bridge), the [api-web](https://github.com/Stability-AI/api-web), -and the [generator_server](https://github.com/Stability-AI/generator_server). Additionally, any -other client application communicating directly with `api-web` also use the interfaces generated -from this repository. - -## Getting Started - -These instructions will get you an environment setup to build the interface files from the proto source files. - -### Prerequisites - -The following items are needed to develop api-interfaces: -- [golang](https://go.dev/) >= 1.18 -- [nodejs](https://nodejs.org/en/) >= 16.16.0 -- [cmake](https://cmake.org/) >= 3.14 -- [protoc](https://github.com/protocolbuffers/protobuf#protocol-compiler-installation) -- [grpc](https://grpc.io/) - -It is recommended to use ssh cloning with this project for `git` and for `go get`, although `https` -does appear to work. To force ssh (for github) put the following in your `.gitconfig`: - -```ini -[url "ssh://git@github.com/"] - insteadOf = https://github.com/ ``` - -### Setup and building - -After all the prerequisites are installed and available, this project can be setup by the following: - -```shell -git clone --recurse-submodules git@github.com:Stability-AI/api-interfaces.git -cd api-interfaces -cmake . -cmake --build . +npm i --dev +npm run generate ``` -This will produce files for the various languages in [gooseai](./gooseai) to support the proto -files in [src](./src). *When rebuilding the files it is recommended to do a clean before as there -have been instances of not all files being regenerated without it.* - -## 🎈 Usage - -The generated files are all output in [gooseai](./gooseai). How to use these files depends on the -programming language being used. The following sections provide details for each of the supported -languages. - -The files have different usages and not all are required depending on the situation: -| Suffix | Client | Server | -|-------------|--------|--------| -| _grpc_pb | ✔️1 | ✔️ | -| _pb_service | ✔️2 | | -| _pb | ✔️ | ✔️ | - - -1. Not needed for typescript/javascript clients. -2. Only needed for typscript/javascripts clients. - - -### Golang - -For Golang the interfaces can be added to the project as a normal module require. To add them run: - -```shell -go get github.com/Stability-AI/api-interfaces@latest -``` - -Similarly to update them just run the same command with the short sha of the version to update to. -Use them as you would a normal module. - -### Python - -With the current output, the best way to consume these is to add them as a git submodule to your -project. It is recommended to use ssh clone when adding the submodule. To update them just -checkout the newer version from within the submodule (and remember to commit the submodule change -to your project). - -To use them make sure the files are on the python path. - - -### Typescript / Javascript - -With the current output, the best way to consume these is to add them as a git submodule to your -project. It is recommended to use ssh clone when adding the submodule. To update them just -checkout the newer version from within the submodule (and remember to commit the submodule change -to your project). - -To use them make sure they are in a location that can be found by your typescript/javascript files. - -*NOTE: Typescript requires both the typescript and javascript files to be available.* - -### Other Languages / Custom Build - -If not using the CMake defined builds to generate make sure when building from the source proto -files that the following proto include paths are set: -- `src/proto` -- `src/tensorizer/proto` diff --git a/buf.gen.go.yaml b/buf.gen.go.yaml new file mode 100644 index 0000000..14d0019 --- /dev/null +++ b/buf.gen.go.yaml @@ -0,0 +1,27 @@ +version: v1 +managed: + enabled: true + go_package_prefix: + # : name in go.mod + # : where generated code should be output + default: github.com/stability-ai/api-interfaces/gen/proto/go/ + # Remove `except` field if googleapis is not used + except: + - buf.build/googleapis/googleapis +plugins: + - plugin: buf.build/bufbuild/connect-go:v1.7.0 + out: gen/proto/go + opt: + - paths=source_relative + - plugin: buf.build/grpc/go:v1.3.0 + out: gen/proto/go + opt: + - paths=source_relative + - plugin: buf.build/protocolbuffers/go + out: gen/proto/go + opt: + - paths=source_relative + - plugin: buf.build/bufbuild/connect-swift:v0.5.0 + out: gen/proto/swift + - plugin: buf.build/apple/swift + out: gen/proto/swift \ No newline at end of file diff --git a/buf.gen.js.yaml b/buf.gen.js.yaml new file mode 100644 index 0000000..4d387c3 --- /dev/null +++ b/buf.gen.js.yaml @@ -0,0 +1,8 @@ +version: v1 +managed: + enabled: true +plugins: + - plugin: buf.build/bufbuild/connect-es:v0.8.6 + out: gen/proto/js + - plugin: buf.build/bufbuild/es:v1.2.0 + out: gen/proto/js \ No newline at end of file diff --git a/buf.gen.kt.yaml b/buf.gen.kt.yaml new file mode 100644 index 0000000..292b330 --- /dev/null +++ b/buf.gen.kt.yaml @@ -0,0 +1,8 @@ +version: v1 +managed: + enabled: true +plugins: + - plugin: buf.build/bufbuild/connect-kotlin:v0.1.7 + out: gen/proto/kt + - plugin: buf.build/protocolbuffers/kotlin + out: gen/proto/kt diff --git a/buf.gen.py.yaml b/buf.gen.py.yaml new file mode 100644 index 0000000..d1f21d8 --- /dev/null +++ b/buf.gen.py.yaml @@ -0,0 +1,10 @@ +version: v1 +managed: + enabled: true +plugins: + - plugin: buf.build/grpc/python:v1.54.1 + out: gen/proto/py + - plugin: buf.build/protocolbuffers/python + out: gen/proto/py + - plugin: buf.build/protocolbuffers/pyi:v23.0 + out: gen/proto/py diff --git a/buf.gen.swift.yaml b/buf.gen.swift.yaml new file mode 100644 index 0000000..7ccc996 --- /dev/null +++ b/buf.gen.swift.yaml @@ -0,0 +1,8 @@ +version: v1 +managed: + enabled: true +plugins: + - plugin: buf.build/bufbuild/connect-swift:v0.5.0 + out: gen/proto/swift + - plugin: buf.build/apple/swift + out: gen/proto/swift \ No newline at end of file diff --git a/buf.work.yaml b/buf.work.yaml index 924d331..f62e33c 100644 --- a/buf.work.yaml +++ b/buf.work.yaml @@ -1,4 +1,3 @@ version: v1 directories: - src/proto - - src/tensorizer/proto diff --git a/buf.yaml b/buf.yaml index 31d0c5d..5f5221e 100644 --- a/buf.yaml +++ b/buf.yaml @@ -1,4 +1,5 @@ version: v1 +name: buf.build/stability-ai/api-interfaces breaking: use: - FILE @@ -6,3 +7,6 @@ build: excludes: - node_modules - build +lint: + use: + - DEFAULT diff --git a/gen/proto/go/coreweave/tensors/tensors.pb.go b/gen/proto/go/coreweave/tensors/tensors.pb.go new file mode 100644 index 0000000..d3acc9f --- /dev/null +++ b/gen/proto/go/coreweave/tensors/tensors.pb.go @@ -0,0 +1,618 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: coreweave/tensors/tensors.proto + +package tensors + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Dtype int32 + +const ( + Dtype_DT_INVALID Dtype = 0 + Dtype_DT_FLOAT32 Dtype = 1 + Dtype_DT_FLOAT64 Dtype = 2 + Dtype_DT_FLOAT16 Dtype = 3 + Dtype_DT_BFLOAT16 Dtype = 4 + Dtype_DT_COMPLEX32 Dtype = 5 + Dtype_DT_COMPLEX64 Dtype = 6 + Dtype_DT_COMPLEX128 Dtype = 7 + Dtype_DT_UINT8 Dtype = 8 + Dtype_DT_INT8 Dtype = 9 + Dtype_DT_INT16 Dtype = 10 + Dtype_DT_INT32 Dtype = 11 + Dtype_DT_INT64 Dtype = 12 + Dtype_DT_BOOL Dtype = 13 + Dtype_DT_QUINT8 Dtype = 14 + Dtype_DT_QINT8 Dtype = 15 + Dtype_DT_QINT32 Dtype = 16 + Dtype_DT_QUINT4_2 Dtype = 17 +) + +// Enum value maps for Dtype. +var ( + Dtype_name = map[int32]string{ + 0: "DT_INVALID", + 1: "DT_FLOAT32", + 2: "DT_FLOAT64", + 3: "DT_FLOAT16", + 4: "DT_BFLOAT16", + 5: "DT_COMPLEX32", + 6: "DT_COMPLEX64", + 7: "DT_COMPLEX128", + 8: "DT_UINT8", + 9: "DT_INT8", + 10: "DT_INT16", + 11: "DT_INT32", + 12: "DT_INT64", + 13: "DT_BOOL", + 14: "DT_QUINT8", + 15: "DT_QINT8", + 16: "DT_QINT32", + 17: "DT_QUINT4_2", + } + Dtype_value = map[string]int32{ + "DT_INVALID": 0, + "DT_FLOAT32": 1, + "DT_FLOAT64": 2, + "DT_FLOAT16": 3, + "DT_BFLOAT16": 4, + "DT_COMPLEX32": 5, + "DT_COMPLEX64": 6, + "DT_COMPLEX128": 7, + "DT_UINT8": 8, + "DT_INT8": 9, + "DT_INT16": 10, + "DT_INT32": 11, + "DT_INT64": 12, + "DT_BOOL": 13, + "DT_QUINT8": 14, + "DT_QINT8": 15, + "DT_QINT32": 16, + "DT_QUINT4_2": 17, + } +) + +func (x Dtype) Enum() *Dtype { + p := new(Dtype) + *p = x + return p +} + +func (x Dtype) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Dtype) Descriptor() protoreflect.EnumDescriptor { + return file_coreweave_tensors_tensors_proto_enumTypes[0].Descriptor() +} + +func (Dtype) Type() protoreflect.EnumType { + return &file_coreweave_tensors_tensors_proto_enumTypes[0] +} + +func (x Dtype) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Dtype.Descriptor instead. +func (Dtype) EnumDescriptor() ([]byte, []int) { + return file_coreweave_tensors_tensors_proto_rawDescGZIP(), []int{0} +} + +type AttributeType int32 + +const ( + AttributeType_AT_PARAMETER AttributeType = 0 + AttributeType_AT_BUFFER AttributeType = 1 +) + +// Enum value maps for AttributeType. +var ( + AttributeType_name = map[int32]string{ + 0: "AT_PARAMETER", + 1: "AT_BUFFER", + } + AttributeType_value = map[string]int32{ + "AT_PARAMETER": 0, + "AT_BUFFER": 1, + } +) + +func (x AttributeType) Enum() *AttributeType { + p := new(AttributeType) + *p = x + return p +} + +func (x AttributeType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (AttributeType) Descriptor() protoreflect.EnumDescriptor { + return file_coreweave_tensors_tensors_proto_enumTypes[1].Descriptor() +} + +func (AttributeType) Type() protoreflect.EnumType { + return &file_coreweave_tensors_tensors_proto_enumTypes[1] +} + +func (x AttributeType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use AttributeType.Descriptor instead. +func (AttributeType) EnumDescriptor() ([]byte, []int) { + return file_coreweave_tensors_tensors_proto_rawDescGZIP(), []int{1} +} + +type Tensor struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Dtype Dtype `protobuf:"varint,1,opt,name=dtype,proto3,enum=tensors.Dtype" json:"dtype,omitempty"` + Shape []int64 `protobuf:"varint,2,rep,packed,name=shape,proto3" json:"shape,omitempty"` + Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` + AttrType *AttributeType `protobuf:"varint,4,opt,name=attr_type,json=attrType,proto3,enum=tensors.AttributeType,oneof" json:"attr_type,omitempty"` +} + +func (x *Tensor) Reset() { + *x = Tensor{} + if protoimpl.UnsafeEnabled { + mi := &file_coreweave_tensors_tensors_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Tensor) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Tensor) ProtoMessage() {} + +func (x *Tensor) ProtoReflect() protoreflect.Message { + mi := &file_coreweave_tensors_tensors_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Tensor.ProtoReflect.Descriptor instead. +func (*Tensor) Descriptor() ([]byte, []int) { + return file_coreweave_tensors_tensors_proto_rawDescGZIP(), []int{0} +} + +func (x *Tensor) GetDtype() Dtype { + if x != nil { + return x.Dtype + } + return Dtype_DT_INVALID +} + +func (x *Tensor) GetShape() []int64 { + if x != nil { + return x.Shape + } + return nil +} + +func (x *Tensor) GetData() []byte { + if x != nil { + return x.Data + } + return nil +} + +func (x *Tensor) GetAttrType() AttributeType { + if x != nil && x.AttrType != nil { + return *x.AttrType + } + return AttributeType_AT_PARAMETER +} + +type Attribute struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Types that are assignable to Value: + // + // *Attribute_Module + // *Attribute_Tensor + // *Attribute_String_ + // *Attribute_Int64 + // *Attribute_Float + // *Attribute_Bool + Value isAttribute_Value `protobuf_oneof:"value"` +} + +func (x *Attribute) Reset() { + *x = Attribute{} + if protoimpl.UnsafeEnabled { + mi := &file_coreweave_tensors_tensors_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Attribute) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Attribute) ProtoMessage() {} + +func (x *Attribute) ProtoReflect() protoreflect.Message { + mi := &file_coreweave_tensors_tensors_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Attribute.ProtoReflect.Descriptor instead. +func (*Attribute) Descriptor() ([]byte, []int) { + return file_coreweave_tensors_tensors_proto_rawDescGZIP(), []int{1} +} + +func (x *Attribute) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (m *Attribute) GetValue() isAttribute_Value { + if m != nil { + return m.Value + } + return nil +} + +func (x *Attribute) GetModule() *Module { + if x, ok := x.GetValue().(*Attribute_Module); ok { + return x.Module + } + return nil +} + +func (x *Attribute) GetTensor() *Tensor { + if x, ok := x.GetValue().(*Attribute_Tensor); ok { + return x.Tensor + } + return nil +} + +func (x *Attribute) GetString_() string { + if x, ok := x.GetValue().(*Attribute_String_); ok { + return x.String_ + } + return "" +} + +func (x *Attribute) GetInt64() int64 { + if x, ok := x.GetValue().(*Attribute_Int64); ok { + return x.Int64 + } + return 0 +} + +func (x *Attribute) GetFloat() float32 { + if x, ok := x.GetValue().(*Attribute_Float); ok { + return x.Float + } + return 0 +} + +func (x *Attribute) GetBool() bool { + if x, ok := x.GetValue().(*Attribute_Bool); ok { + return x.Bool + } + return false +} + +type isAttribute_Value interface { + isAttribute_Value() +} + +type Attribute_Module struct { + Module *Module `protobuf:"bytes,3,opt,name=module,proto3,oneof"` +} + +type Attribute_Tensor struct { + Tensor *Tensor `protobuf:"bytes,4,opt,name=tensor,proto3,oneof"` +} + +type Attribute_String_ struct { + String_ string `protobuf:"bytes,5,opt,name=string,proto3,oneof"` +} + +type Attribute_Int64 struct { + Int64 int64 `protobuf:"varint,6,opt,name=int64,proto3,oneof"` +} + +type Attribute_Float struct { + Float float32 `protobuf:"fixed32,7,opt,name=float,proto3,oneof"` +} + +type Attribute_Bool struct { + Bool bool `protobuf:"varint,8,opt,name=bool,proto3,oneof"` +} + +func (*Attribute_Module) isAttribute_Value() {} + +func (*Attribute_Tensor) isAttribute_Value() {} + +func (*Attribute_String_) isAttribute_Value() {} + +func (*Attribute_Int64) isAttribute_Value() {} + +func (*Attribute_Float) isAttribute_Value() {} + +func (*Attribute_Bool) isAttribute_Value() {} + +type Module struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"` + Attributes []*Attribute `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty"` +} + +func (x *Module) Reset() { + *x = Module{} + if protoimpl.UnsafeEnabled { + mi := &file_coreweave_tensors_tensors_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Module) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Module) ProtoMessage() {} + +func (x *Module) ProtoReflect() protoreflect.Message { + mi := &file_coreweave_tensors_tensors_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Module.ProtoReflect.Descriptor instead. +func (*Module) Descriptor() ([]byte, []int) { + return file_coreweave_tensors_tensors_proto_rawDescGZIP(), []int{2} +} + +func (x *Module) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Module) GetNames() []string { + if x != nil { + return x.Names + } + return nil +} + +func (x *Module) GetAttributes() []*Attribute { + if x != nil { + return x.Attributes + } + return nil +} + +var File_coreweave_tensors_tensors_proto protoreflect.FileDescriptor + +var file_coreweave_tensors_tensors_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x63, 0x6f, 0x72, 0x65, 0x77, 0x65, 0x61, 0x76, 0x65, 0x2f, 0x74, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x73, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x07, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x22, 0xa0, 0x01, 0x0a, 0x06, 0x54, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x12, 0x24, 0x0a, 0x05, 0x64, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x2e, 0x44, + 0x74, 0x79, 0x70, 0x65, 0x52, 0x05, 0x64, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, + 0x68, 0x61, 0x70, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x03, 0x52, 0x05, 0x73, 0x68, 0x61, 0x70, + 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x38, 0x0a, 0x09, 0x61, 0x74, 0x74, 0x72, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x73, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, + 0x48, 0x00, 0x52, 0x08, 0x61, 0x74, 0x74, 0x72, 0x54, 0x79, 0x70, 0x65, 0x88, 0x01, 0x01, 0x42, + 0x0c, 0x0a, 0x0a, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0xde, 0x01, + 0x0a, 0x09, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x29, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x0f, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, + 0x48, 0x00, 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x29, 0x0a, 0x06, 0x74, 0x65, + 0x6e, 0x73, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x73, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x06, 0x74, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, + 0x16, 0x0a, 0x05, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, + 0x52, 0x05, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x16, 0x0a, 0x05, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x05, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x12, + 0x14, 0x0a, 0x04, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, + 0x04, 0x62, 0x6f, 0x6f, 0x6c, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x66, + 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, + 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x61, 0x6d, + 0x65, 0x73, 0x12, 0x32, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, + 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2a, 0x9e, 0x02, 0x0a, 0x05, 0x44, 0x74, 0x79, 0x70, 0x65, + 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x54, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, + 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x54, 0x5f, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x33, 0x32, 0x10, 0x01, + 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x54, 0x5f, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x36, 0x34, 0x10, 0x02, + 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x54, 0x5f, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x31, 0x36, 0x10, 0x03, + 0x12, 0x0f, 0x0a, 0x0b, 0x44, 0x54, 0x5f, 0x42, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x31, 0x36, 0x10, + 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x54, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x58, 0x33, + 0x32, 0x10, 0x05, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x54, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, + 0x58, 0x36, 0x34, 0x10, 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x44, 0x54, 0x5f, 0x43, 0x4f, 0x4d, 0x50, + 0x4c, 0x45, 0x58, 0x31, 0x32, 0x38, 0x10, 0x07, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x54, 0x5f, 0x55, + 0x49, 0x4e, 0x54, 0x38, 0x10, 0x08, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x54, 0x5f, 0x49, 0x4e, 0x54, + 0x38, 0x10, 0x09, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x54, 0x5f, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10, + 0x0a, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x54, 0x5f, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x0b, 0x12, + 0x0c, 0x0a, 0x08, 0x44, 0x54, 0x5f, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x0c, 0x12, 0x0b, 0x0a, + 0x07, 0x44, 0x54, 0x5f, 0x42, 0x4f, 0x4f, 0x4c, 0x10, 0x0d, 0x12, 0x0d, 0x0a, 0x09, 0x44, 0x54, + 0x5f, 0x51, 0x55, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x0e, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x54, 0x5f, + 0x51, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x0f, 0x12, 0x0d, 0x0a, 0x09, 0x44, 0x54, 0x5f, 0x51, 0x49, + 0x4e, 0x54, 0x33, 0x32, 0x10, 0x10, 0x12, 0x0f, 0x0a, 0x0b, 0x44, 0x54, 0x5f, 0x51, 0x55, 0x49, + 0x4e, 0x54, 0x34, 0x5f, 0x32, 0x10, 0x11, 0x2a, 0x30, 0x0a, 0x0d, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x54, 0x5f, 0x50, + 0x41, 0x52, 0x41, 0x4d, 0x45, 0x54, 0x45, 0x52, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x54, + 0x5f, 0x42, 0x55, 0x46, 0x46, 0x45, 0x52, 0x10, 0x01, 0x42, 0x9e, 0x01, 0x0a, 0x0b, 0x63, 0x6f, + 0x6d, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x42, 0x0c, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x45, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, + 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, + 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x63, + 0x6f, 0x72, 0x65, 0x77, 0x65, 0x61, 0x76, 0x65, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, + 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, 0x07, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, + 0xca, 0x02, 0x07, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0xe2, 0x02, 0x13, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x07, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_coreweave_tensors_tensors_proto_rawDescOnce sync.Once + file_coreweave_tensors_tensors_proto_rawDescData = file_coreweave_tensors_tensors_proto_rawDesc +) + +func file_coreweave_tensors_tensors_proto_rawDescGZIP() []byte { + file_coreweave_tensors_tensors_proto_rawDescOnce.Do(func() { + file_coreweave_tensors_tensors_proto_rawDescData = protoimpl.X.CompressGZIP(file_coreweave_tensors_tensors_proto_rawDescData) + }) + return file_coreweave_tensors_tensors_proto_rawDescData +} + +var file_coreweave_tensors_tensors_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_coreweave_tensors_tensors_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_coreweave_tensors_tensors_proto_goTypes = []interface{}{ + (Dtype)(0), // 0: tensors.Dtype + (AttributeType)(0), // 1: tensors.AttributeType + (*Tensor)(nil), // 2: tensors.Tensor + (*Attribute)(nil), // 3: tensors.Attribute + (*Module)(nil), // 4: tensors.Module +} +var file_coreweave_tensors_tensors_proto_depIdxs = []int32{ + 0, // 0: tensors.Tensor.dtype:type_name -> tensors.Dtype + 1, // 1: tensors.Tensor.attr_type:type_name -> tensors.AttributeType + 4, // 2: tensors.Attribute.module:type_name -> tensors.Module + 2, // 3: tensors.Attribute.tensor:type_name -> tensors.Tensor + 3, // 4: tensors.Module.attributes:type_name -> tensors.Attribute + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_coreweave_tensors_tensors_proto_init() } +func file_coreweave_tensors_tensors_proto_init() { + if File_coreweave_tensors_tensors_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_coreweave_tensors_tensors_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Tensor); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_coreweave_tensors_tensors_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Attribute); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_coreweave_tensors_tensors_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Module); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_coreweave_tensors_tensors_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_coreweave_tensors_tensors_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*Attribute_Module)(nil), + (*Attribute_Tensor)(nil), + (*Attribute_String_)(nil), + (*Attribute_Int64)(nil), + (*Attribute_Float)(nil), + (*Attribute_Bool)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_coreweave_tensors_tensors_proto_rawDesc, + NumEnums: 2, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_coreweave_tensors_tensors_proto_goTypes, + DependencyIndexes: file_coreweave_tensors_tensors_proto_depIdxs, + EnumInfos: file_coreweave_tensors_tensors_proto_enumTypes, + MessageInfos: file_coreweave_tensors_tensors_proto_msgTypes, + }.Build() + File_coreweave_tensors_tensors_proto = out.File + file_coreweave_tensors_tensors_proto_rawDesc = nil + file_coreweave_tensors_tensors_proto_goTypes = nil + file_coreweave_tensors_tensors_proto_depIdxs = nil +} diff --git a/gen/proto/go/stabilityai/platformapis/dashboard/v1/dashboard.pb.go b/gen/proto/go/stabilityai/platformapis/dashboard/v1/dashboard.pb.go new file mode 100644 index 0000000..9aec74a --- /dev/null +++ b/gen/proto/go/stabilityai/platformapis/dashboard/v1/dashboard.pb.go @@ -0,0 +1,2665 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +package dashboardv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type OrganizationRole int32 + +const ( + OrganizationRole_MEMBER OrganizationRole = 0 + OrganizationRole_ACCOUNTANT OrganizationRole = 1 + OrganizationRole_OWNER OrganizationRole = 2 +) + +// Enum value maps for OrganizationRole. +var ( + OrganizationRole_name = map[int32]string{ + 0: "MEMBER", + 1: "ACCOUNTANT", + 2: "OWNER", + } + OrganizationRole_value = map[string]int32{ + "MEMBER": 0, + "ACCOUNTANT": 1, + "OWNER": 2, + } +) + +func (x OrganizationRole) Enum() *OrganizationRole { + p := new(OrganizationRole) + *p = x + return p +} + +func (x OrganizationRole) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (OrganizationRole) Descriptor() protoreflect.EnumDescriptor { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_enumTypes[0].Descriptor() +} + +func (OrganizationRole) Type() protoreflect.EnumType { + return &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_enumTypes[0] +} + +func (x OrganizationRole) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use OrganizationRole.Descriptor instead. +func (OrganizationRole) EnumDescriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{0} +} + +type OrganizationMember struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Organization *Organization `protobuf:"bytes,1,opt,name=organization,proto3" json:"organization,omitempty"` + User *User `protobuf:"bytes,2,opt,name=user,proto3,oneof" json:"user,omitempty"` + Role OrganizationRole `protobuf:"varint,3,opt,name=role,proto3,enum=stabilityai.api.dashboard.v1.OrganizationRole" json:"role,omitempty"` + IsDefault bool `protobuf:"varint,4,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"` +} + +func (x *OrganizationMember) Reset() { + *x = OrganizationMember{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OrganizationMember) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OrganizationMember) ProtoMessage() {} + +func (x *OrganizationMember) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OrganizationMember.ProtoReflect.Descriptor instead. +func (*OrganizationMember) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{0} +} + +func (x *OrganizationMember) GetOrganization() *Organization { + if x != nil { + return x.Organization + } + return nil +} + +func (x *OrganizationMember) GetUser() *User { + if x != nil { + return x.User + } + return nil +} + +func (x *OrganizationMember) GetRole() OrganizationRole { + if x != nil { + return x.Role + } + return OrganizationRole_MEMBER +} + +func (x *OrganizationMember) GetIsDefault() bool { + if x != nil { + return x.IsDefault + } + return false +} + +type OrganizationGrant struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AmountGranted float64 `protobuf:"fixed64,1,opt,name=amount_granted,json=amountGranted,proto3" json:"amount_granted,omitempty"` + AmountUsed float64 `protobuf:"fixed64,2,opt,name=amount_used,json=amountUsed,proto3" json:"amount_used,omitempty"` + ExpiresAt uint64 `protobuf:"varint,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` + GrantedAt uint64 `protobuf:"varint,4,opt,name=granted_at,json=grantedAt,proto3" json:"granted_at,omitempty"` +} + +func (x *OrganizationGrant) Reset() { + *x = OrganizationGrant{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OrganizationGrant) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OrganizationGrant) ProtoMessage() {} + +func (x *OrganizationGrant) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OrganizationGrant.ProtoReflect.Descriptor instead. +func (*OrganizationGrant) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{1} +} + +func (x *OrganizationGrant) GetAmountGranted() float64 { + if x != nil { + return x.AmountGranted + } + return 0 +} + +func (x *OrganizationGrant) GetAmountUsed() float64 { + if x != nil { + return x.AmountUsed + } + return 0 +} + +func (x *OrganizationGrant) GetExpiresAt() uint64 { + if x != nil { + return x.ExpiresAt + } + return 0 +} + +func (x *OrganizationGrant) GetGrantedAt() uint64 { + if x != nil { + return x.GrantedAt + } + return 0 +} + +type OrganizationPaymentInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Balance float64 `protobuf:"fixed64,1,opt,name=balance,proto3" json:"balance,omitempty"` + Grants []*OrganizationGrant `protobuf:"bytes,2,rep,name=grants,proto3" json:"grants,omitempty"` +} + +func (x *OrganizationPaymentInfo) Reset() { + *x = OrganizationPaymentInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OrganizationPaymentInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OrganizationPaymentInfo) ProtoMessage() {} + +func (x *OrganizationPaymentInfo) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OrganizationPaymentInfo.ProtoReflect.Descriptor instead. +func (*OrganizationPaymentInfo) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{2} +} + +func (x *OrganizationPaymentInfo) GetBalance() float64 { + if x != nil { + return x.Balance + } + return 0 +} + +func (x *OrganizationPaymentInfo) GetGrants() []*OrganizationGrant { + if x != nil { + return x.Grants + } + return nil +} + +type OrganizationAutoCharge struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt uint64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` +} + +func (x *OrganizationAutoCharge) Reset() { + *x = OrganizationAutoCharge{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OrganizationAutoCharge) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OrganizationAutoCharge) ProtoMessage() {} + +func (x *OrganizationAutoCharge) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OrganizationAutoCharge.ProtoReflect.Descriptor instead. +func (*OrganizationAutoCharge) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{3} +} + +func (x *OrganizationAutoCharge) GetEnabled() bool { + if x != nil { + return x.Enabled + } + return false +} + +func (x *OrganizationAutoCharge) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *OrganizationAutoCharge) GetCreatedAt() uint64 { + if x != nil { + return x.CreatedAt + } + return 0 +} + +type Organization struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + Members []*OrganizationMember `protobuf:"bytes,4,rep,name=members,proto3" json:"members,omitempty"` + PaymentInfo *OrganizationPaymentInfo `protobuf:"bytes,5,opt,name=payment_info,json=paymentInfo,proto3,oneof" json:"payment_info,omitempty"` + StripeCustomerId *string `protobuf:"bytes,6,opt,name=stripe_customer_id,json=stripeCustomerId,proto3,oneof" json:"stripe_customer_id,omitempty"` + AutoCharge *OrganizationAutoCharge `protobuf:"bytes,7,opt,name=auto_charge,json=autoCharge,proto3,oneof" json:"auto_charge,omitempty"` +} + +func (x *Organization) Reset() { + *x = Organization{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Organization) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Organization) ProtoMessage() {} + +func (x *Organization) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Organization.ProtoReflect.Descriptor instead. +func (*Organization) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{4} +} + +func (x *Organization) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Organization) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Organization) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *Organization) GetMembers() []*OrganizationMember { + if x != nil { + return x.Members + } + return nil +} + +func (x *Organization) GetPaymentInfo() *OrganizationPaymentInfo { + if x != nil { + return x.PaymentInfo + } + return nil +} + +func (x *Organization) GetStripeCustomerId() string { + if x != nil && x.StripeCustomerId != nil { + return *x.StripeCustomerId + } + return "" +} + +func (x *Organization) GetAutoCharge() *OrganizationAutoCharge { + if x != nil { + return x.AutoCharge + } + return nil +} + +type APIKey struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + IsSecret bool `protobuf:"varint,2,opt,name=is_secret,json=isSecret,proto3" json:"is_secret,omitempty"` + CreatedAt uint64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` +} + +func (x *APIKey) Reset() { + *x = APIKey{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *APIKey) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*APIKey) ProtoMessage() {} + +func (x *APIKey) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use APIKey.ProtoReflect.Descriptor instead. +func (*APIKey) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{5} +} + +func (x *APIKey) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *APIKey) GetIsSecret() bool { + if x != nil { + return x.IsSecret + } + return false +} + +func (x *APIKey) GetCreatedAt() uint64 { + if x != nil { + return x.CreatedAt + } + return 0 +} + +type User struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + AuthId *string `protobuf:"bytes,2,opt,name=auth_id,json=authId,proto3,oneof" json:"auth_id,omitempty"` + ProfilePicture string `protobuf:"bytes,3,opt,name=profile_picture,json=profilePicture,proto3" json:"profile_picture,omitempty"` + Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` + Organizations []*OrganizationMember `protobuf:"bytes,5,rep,name=organizations,proto3" json:"organizations,omitempty"` + ApiKeys []*APIKey `protobuf:"bytes,7,rep,name=api_keys,json=apiKeys,proto3" json:"api_keys,omitempty"` + CreatedAt uint64 `protobuf:"varint,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + EmailVerified *bool `protobuf:"varint,9,opt,name=email_verified,json=emailVerified,proto3,oneof" json:"email_verified,omitempty"` +} + +func (x *User) Reset() { + *x = User{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *User) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*User) ProtoMessage() {} + +func (x *User) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use User.ProtoReflect.Descriptor instead. +func (*User) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{6} +} + +func (x *User) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *User) GetAuthId() string { + if x != nil && x.AuthId != nil { + return *x.AuthId + } + return "" +} + +func (x *User) GetProfilePicture() string { + if x != nil { + return x.ProfilePicture + } + return "" +} + +func (x *User) GetEmail() string { + if x != nil { + return x.Email + } + return "" +} + +func (x *User) GetOrganizations() []*OrganizationMember { + if x != nil { + return x.Organizations + } + return nil +} + +func (x *User) GetApiKeys() []*APIKey { + if x != nil { + return x.ApiKeys + } + return nil +} + +func (x *User) GetCreatedAt() uint64 { + if x != nil { + return x.CreatedAt + } + return 0 +} + +func (x *User) GetEmailVerified() bool { + if x != nil && x.EmailVerified != nil { + return *x.EmailVerified + } + return false +} + +type CostData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AmountTokens uint32 `protobuf:"varint,1,opt,name=amount_tokens,json=amountTokens,proto3" json:"amount_tokens,omitempty"` + AmountCredits float64 `protobuf:"fixed64,2,opt,name=amount_credits,json=amountCredits,proto3" json:"amount_credits,omitempty"` +} + +func (x *CostData) Reset() { + *x = CostData{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CostData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CostData) ProtoMessage() {} + +func (x *CostData) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CostData.ProtoReflect.Descriptor instead. +func (*CostData) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{7} +} + +func (x *CostData) GetAmountTokens() uint32 { + if x != nil { + return x.AmountTokens + } + return 0 +} + +func (x *CostData) GetAmountCredits() float64 { + if x != nil { + return x.AmountCredits + } + return 0 +} + +type UsageMetric struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Operation string `protobuf:"bytes,1,opt,name=operation,proto3" json:"operation,omitempty"` + Engine string `protobuf:"bytes,2,opt,name=engine,proto3" json:"engine,omitempty"` + InputCost *CostData `protobuf:"bytes,3,opt,name=input_cost,json=inputCost,proto3" json:"input_cost,omitempty"` + OutputCost *CostData `protobuf:"bytes,4,opt,name=output_cost,json=outputCost,proto3" json:"output_cost,omitempty"` + User *string `protobuf:"bytes,5,opt,name=user,proto3,oneof" json:"user,omitempty"` + AggregationTimestamp uint64 `protobuf:"varint,6,opt,name=aggregation_timestamp,json=aggregationTimestamp,proto3" json:"aggregation_timestamp,omitempty"` +} + +func (x *UsageMetric) Reset() { + *x = UsageMetric{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UsageMetric) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UsageMetric) ProtoMessage() {} + +func (x *UsageMetric) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UsageMetric.ProtoReflect.Descriptor instead. +func (*UsageMetric) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{8} +} + +func (x *UsageMetric) GetOperation() string { + if x != nil { + return x.Operation + } + return "" +} + +func (x *UsageMetric) GetEngine() string { + if x != nil { + return x.Engine + } + return "" +} + +func (x *UsageMetric) GetInputCost() *CostData { + if x != nil { + return x.InputCost + } + return nil +} + +func (x *UsageMetric) GetOutputCost() *CostData { + if x != nil { + return x.OutputCost + } + return nil +} + +func (x *UsageMetric) GetUser() string { + if x != nil && x.User != nil { + return *x.User + } + return "" +} + +func (x *UsageMetric) GetAggregationTimestamp() uint64 { + if x != nil { + return x.AggregationTimestamp + } + return 0 +} + +type CostTotal struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AmountTokens uint32 `protobuf:"varint,1,opt,name=amount_tokens,json=amountTokens,proto3" json:"amount_tokens,omitempty"` + AmountCredits float64 `protobuf:"fixed64,2,opt,name=amount_credits,json=amountCredits,proto3" json:"amount_credits,omitempty"` +} + +func (x *CostTotal) Reset() { + *x = CostTotal{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CostTotal) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CostTotal) ProtoMessage() {} + +func (x *CostTotal) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CostTotal.ProtoReflect.Descriptor instead. +func (*CostTotal) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{9} +} + +func (x *CostTotal) GetAmountTokens() uint32 { + if x != nil { + return x.AmountTokens + } + return 0 +} + +func (x *CostTotal) GetAmountCredits() float64 { + if x != nil { + return x.AmountCredits + } + return 0 +} + +type TotalMetricsData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + InputTotal *CostTotal `protobuf:"bytes,1,opt,name=input_total,json=inputTotal,proto3" json:"input_total,omitempty"` + OutputTotal *CostTotal `protobuf:"bytes,2,opt,name=output_total,json=outputTotal,proto3" json:"output_total,omitempty"` +} + +func (x *TotalMetricsData) Reset() { + *x = TotalMetricsData{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TotalMetricsData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TotalMetricsData) ProtoMessage() {} + +func (x *TotalMetricsData) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TotalMetricsData.ProtoReflect.Descriptor instead. +func (*TotalMetricsData) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{10} +} + +func (x *TotalMetricsData) GetInputTotal() *CostTotal { + if x != nil { + return x.InputTotal + } + return nil +} + +func (x *TotalMetricsData) GetOutputTotal() *CostTotal { + if x != nil { + return x.OutputTotal + } + return nil +} + +type Metrics struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metrics []*UsageMetric `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"` + Total *TotalMetricsData `protobuf:"bytes,2,opt,name=total,proto3" json:"total,omitempty"` +} + +func (x *Metrics) Reset() { + *x = Metrics{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Metrics) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Metrics) ProtoMessage() {} + +func (x *Metrics) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Metrics.ProtoReflect.Descriptor instead. +func (*Metrics) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{11} +} + +func (x *Metrics) GetMetrics() []*UsageMetric { + if x != nil { + return x.Metrics + } + return nil +} + +func (x *Metrics) GetTotal() *TotalMetricsData { + if x != nil { + return x.Total + } + return nil +} + +type EmptyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *EmptyRequest) Reset() { + *x = EmptyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EmptyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EmptyRequest) ProtoMessage() {} + +func (x *EmptyRequest) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EmptyRequest.ProtoReflect.Descriptor instead. +func (*EmptyRequest) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{12} +} + +type GetOrganizationRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *GetOrganizationRequest) Reset() { + *x = GetOrganizationRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetOrganizationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetOrganizationRequest) ProtoMessage() {} + +func (x *GetOrganizationRequest) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetOrganizationRequest.ProtoReflect.Descriptor instead. +func (*GetOrganizationRequest) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{13} +} + +func (x *GetOrganizationRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type GetMetricsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + UserId *string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"` + RangeFrom uint64 `protobuf:"varint,3,opt,name=range_from,json=rangeFrom,proto3" json:"range_from,omitempty"` + RangeTo uint64 `protobuf:"varint,4,opt,name=range_to,json=rangeTo,proto3" json:"range_to,omitempty"` + IncludePerRequestMetrics bool `protobuf:"varint,5,opt,name=include_per_request_metrics,json=includePerRequestMetrics,proto3" json:"include_per_request_metrics,omitempty"` +} + +func (x *GetMetricsRequest) Reset() { + *x = GetMetricsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetMetricsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetMetricsRequest) ProtoMessage() {} + +func (x *GetMetricsRequest) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetMetricsRequest.ProtoReflect.Descriptor instead. +func (*GetMetricsRequest) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{14} +} + +func (x *GetMetricsRequest) GetOrganizationId() string { + if x != nil { + return x.OrganizationId + } + return "" +} + +func (x *GetMetricsRequest) GetUserId() string { + if x != nil && x.UserId != nil { + return *x.UserId + } + return "" +} + +func (x *GetMetricsRequest) GetRangeFrom() uint64 { + if x != nil { + return x.RangeFrom + } + return 0 +} + +func (x *GetMetricsRequest) GetRangeTo() uint64 { + if x != nil { + return x.RangeTo + } + return 0 +} + +func (x *GetMetricsRequest) GetIncludePerRequestMetrics() bool { + if x != nil { + return x.IncludePerRequestMetrics + } + return false +} + +type APIKeyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + IsSecret bool `protobuf:"varint,1,opt,name=is_secret,json=isSecret,proto3" json:"is_secret,omitempty"` +} + +func (x *APIKeyRequest) Reset() { + *x = APIKeyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *APIKeyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*APIKeyRequest) ProtoMessage() {} + +func (x *APIKeyRequest) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use APIKeyRequest.ProtoReflect.Descriptor instead. +func (*APIKeyRequest) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{15} +} + +func (x *APIKeyRequest) GetIsSecret() bool { + if x != nil { + return x.IsSecret + } + return false +} + +type APIKeyFindRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *APIKeyFindRequest) Reset() { + *x = APIKeyFindRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *APIKeyFindRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*APIKeyFindRequest) ProtoMessage() {} + +func (x *APIKeyFindRequest) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use APIKeyFindRequest.ProtoReflect.Descriptor instead. +func (*APIKeyFindRequest) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{16} +} + +func (x *APIKeyFindRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type UpdateDefaultOrganizationRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` +} + +func (x *UpdateDefaultOrganizationRequest) Reset() { + *x = UpdateDefaultOrganizationRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateDefaultOrganizationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateDefaultOrganizationRequest) ProtoMessage() {} + +func (x *UpdateDefaultOrganizationRequest) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateDefaultOrganizationRequest.ProtoReflect.Descriptor instead. +func (*UpdateDefaultOrganizationRequest) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{17} +} + +func (x *UpdateDefaultOrganizationRequest) GetOrganizationId() string { + if x != nil { + return x.OrganizationId + } + return "" +} + +type ClientSettings struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Settings []byte `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"` +} + +func (x *ClientSettings) Reset() { + *x = ClientSettings{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ClientSettings) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClientSettings) ProtoMessage() {} + +func (x *ClientSettings) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ClientSettings.ProtoReflect.Descriptor instead. +func (*ClientSettings) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{18} +} + +func (x *ClientSettings) GetSettings() []byte { + if x != nil { + return x.Settings + } + return nil +} + +type CreateAutoChargeIntentRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + MonthlyMaximum uint64 `protobuf:"varint,2,opt,name=monthly_maximum,json=monthlyMaximum,proto3" json:"monthly_maximum,omitempty"` + MinimumValue uint64 `protobuf:"varint,3,opt,name=minimum_value,json=minimumValue,proto3" json:"minimum_value,omitempty"` + AmountCredits uint64 `protobuf:"varint,4,opt,name=amount_credits,json=amountCredits,proto3" json:"amount_credits,omitempty"` +} + +func (x *CreateAutoChargeIntentRequest) Reset() { + *x = CreateAutoChargeIntentRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateAutoChargeIntentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateAutoChargeIntentRequest) ProtoMessage() {} + +func (x *CreateAutoChargeIntentRequest) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateAutoChargeIntentRequest.ProtoReflect.Descriptor instead. +func (*CreateAutoChargeIntentRequest) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{19} +} + +func (x *CreateAutoChargeIntentRequest) GetOrganizationId() string { + if x != nil { + return x.OrganizationId + } + return "" +} + +func (x *CreateAutoChargeIntentRequest) GetMonthlyMaximum() uint64 { + if x != nil { + return x.MonthlyMaximum + } + return 0 +} + +func (x *CreateAutoChargeIntentRequest) GetMinimumValue() uint64 { + if x != nil { + return x.MinimumValue + } + return 0 +} + +func (x *CreateAutoChargeIntentRequest) GetAmountCredits() uint64 { + if x != nil { + return x.AmountCredits + } + return 0 +} + +type CreateChargeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` + OrganizationId string `protobuf:"bytes,2,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` +} + +func (x *CreateChargeRequest) Reset() { + *x = CreateChargeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateChargeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateChargeRequest) ProtoMessage() {} + +func (x *CreateChargeRequest) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateChargeRequest.ProtoReflect.Descriptor instead. +func (*CreateChargeRequest) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{20} +} + +func (x *CreateChargeRequest) GetAmount() uint64 { + if x != nil { + return x.Amount + } + return 0 +} + +func (x *CreateChargeRequest) GetOrganizationId() string { + if x != nil { + return x.OrganizationId + } + return "" +} + +type GetChargesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + RangeFrom uint64 `protobuf:"varint,2,opt,name=range_from,json=rangeFrom,proto3" json:"range_from,omitempty"` + RangeTo uint64 `protobuf:"varint,3,opt,name=range_to,json=rangeTo,proto3" json:"range_to,omitempty"` +} + +func (x *GetChargesRequest) Reset() { + *x = GetChargesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetChargesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetChargesRequest) ProtoMessage() {} + +func (x *GetChargesRequest) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetChargesRequest.ProtoReflect.Descriptor instead. +func (*GetChargesRequest) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{21} +} + +func (x *GetChargesRequest) GetOrganizationId() string { + if x != nil { + return x.OrganizationId + } + return "" +} + +func (x *GetChargesRequest) GetRangeFrom() uint64 { + if x != nil { + return x.RangeFrom + } + return 0 +} + +func (x *GetChargesRequest) GetRangeTo() uint64 { + if x != nil { + return x.RangeTo + } + return 0 +} + +type Charge struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Paid bool `protobuf:"varint,2,opt,name=paid,proto3" json:"paid,omitempty"` + ReceiptLink string `protobuf:"bytes,3,opt,name=receipt_link,json=receiptLink,proto3" json:"receipt_link,omitempty"` + PaymentLink string `protobuf:"bytes,4,opt,name=payment_link,json=paymentLink,proto3" json:"payment_link,omitempty"` + CreatedAt uint64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + AmountCredits uint64 `protobuf:"varint,6,opt,name=amount_credits,json=amountCredits,proto3" json:"amount_credits,omitempty"` +} + +func (x *Charge) Reset() { + *x = Charge{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Charge) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Charge) ProtoMessage() {} + +func (x *Charge) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Charge.ProtoReflect.Descriptor instead. +func (*Charge) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{22} +} + +func (x *Charge) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Charge) GetPaid() bool { + if x != nil { + return x.Paid + } + return false +} + +func (x *Charge) GetReceiptLink() string { + if x != nil { + return x.ReceiptLink + } + return "" +} + +func (x *Charge) GetPaymentLink() string { + if x != nil { + return x.PaymentLink + } + return "" +} + +func (x *Charge) GetCreatedAt() uint64 { + if x != nil { + return x.CreatedAt + } + return 0 +} + +func (x *Charge) GetAmountCredits() uint64 { + if x != nil { + return x.AmountCredits + } + return 0 +} + +type Charges struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Charges []*Charge `protobuf:"bytes,1,rep,name=charges,proto3" json:"charges,omitempty"` +} + +func (x *Charges) Reset() { + *x = Charges{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Charges) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Charges) ProtoMessage() {} + +func (x *Charges) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Charges.ProtoReflect.Descriptor instead. +func (*Charges) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{23} +} + +func (x *Charges) GetCharges() []*Charge { + if x != nil { + return x.Charges + } + return nil +} + +type GetAutoChargeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` +} + +func (x *GetAutoChargeRequest) Reset() { + *x = GetAutoChargeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetAutoChargeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAutoChargeRequest) ProtoMessage() {} + +func (x *GetAutoChargeRequest) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAutoChargeRequest.ProtoReflect.Descriptor instead. +func (*GetAutoChargeRequest) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{24} +} + +func (x *GetAutoChargeRequest) GetOrganizationId() string { + if x != nil { + return x.OrganizationId + } + return "" +} + +type AutoChargeIntent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + PaymentLink string `protobuf:"bytes,2,opt,name=payment_link,json=paymentLink,proto3" json:"payment_link,omitempty"` + CreatedAt uint64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + MonthlyMaximum uint64 `protobuf:"varint,4,opt,name=monthly_maximum,json=monthlyMaximum,proto3" json:"monthly_maximum,omitempty"` + MinimumValue uint64 `protobuf:"varint,5,opt,name=minimum_value,json=minimumValue,proto3" json:"minimum_value,omitempty"` + AmountCredits uint64 `protobuf:"varint,6,opt,name=amount_credits,json=amountCredits,proto3" json:"amount_credits,omitempty"` +} + +func (x *AutoChargeIntent) Reset() { + *x = AutoChargeIntent{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AutoChargeIntent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AutoChargeIntent) ProtoMessage() {} + +func (x *AutoChargeIntent) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AutoChargeIntent.ProtoReflect.Descriptor instead. +func (*AutoChargeIntent) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{25} +} + +func (x *AutoChargeIntent) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *AutoChargeIntent) GetPaymentLink() string { + if x != nil { + return x.PaymentLink + } + return "" +} + +func (x *AutoChargeIntent) GetCreatedAt() uint64 { + if x != nil { + return x.CreatedAt + } + return 0 +} + +func (x *AutoChargeIntent) GetMonthlyMaximum() uint64 { + if x != nil { + return x.MonthlyMaximum + } + return 0 +} + +func (x *AutoChargeIntent) GetMinimumValue() uint64 { + if x != nil { + return x.MinimumValue + } + return 0 +} + +func (x *AutoChargeIntent) GetAmountCredits() uint64 { + if x != nil { + return x.AmountCredits + } + return 0 +} + +type UpdateUserInfoRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Email *string `protobuf:"bytes,1,opt,name=email,proto3,oneof" json:"email,omitempty"` +} + +func (x *UpdateUserInfoRequest) Reset() { + *x = UpdateUserInfoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateUserInfoRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateUserInfoRequest) ProtoMessage() {} + +func (x *UpdateUserInfoRequest) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateUserInfoRequest.ProtoReflect.Descriptor instead. +func (*UpdateUserInfoRequest) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{26} +} + +func (x *UpdateUserInfoRequest) GetEmail() string { + if x != nil && x.Email != nil { + return *x.Email + } + return "" +} + +type UserPasswordChangeTicket struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ticket string `protobuf:"bytes,1,opt,name=ticket,proto3" json:"ticket,omitempty"` +} + +func (x *UserPasswordChangeTicket) Reset() { + *x = UserPasswordChangeTicket{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserPasswordChangeTicket) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserPasswordChangeTicket) ProtoMessage() {} + +func (x *UserPasswordChangeTicket) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UserPasswordChangeTicket.ProtoReflect.Descriptor instead. +func (*UserPasswordChangeTicket) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{27} +} + +func (x *UserPasswordChangeTicket) GetTicket() string { + if x != nil { + return x.Ticket + } + return "" +} + +var File_stabilityai_platformapis_dashboard_v1_dashboard_proto protoreflect.FileDescriptor + +var file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDesc = []byte{ + 0x0a, 0x35, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2f, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x64, 0x61, 0x73, 0x68, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x2e, 0x76, 0x31, 0x22, 0x8d, 0x02, 0x0a, 0x12, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x4e, 0x0a, 0x0c, + 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, + 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, + 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x04, + 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, + 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x48, 0x00, + 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x42, 0x0a, 0x04, 0x72, 0x6f, 0x6c, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x1d, 0x0a, + 0x0a, 0x69, 0x73, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x09, 0x69, 0x73, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x42, 0x07, 0x0a, 0x05, + 0x5f, 0x75, 0x73, 0x65, 0x72, 0x22, 0x99, 0x01, 0x0a, 0x11, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x61, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x01, 0x52, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, + 0x65, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x75, 0x73, 0x65, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0a, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x55, + 0x73, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, + 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x41, + 0x74, 0x22, 0x7c, 0x0a, 0x17, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, 0x07, + 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x62, + 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x22, + 0x61, 0x0a, 0x16, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, + 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x41, 0x74, 0x22, 0xc6, 0x03, 0x0a, 0x0c, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4a, 0x0a, 0x07, 0x6d, 0x65, 0x6d, + 0x62, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, + 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x07, 0x6d, 0x65, + 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x5d, 0x0a, 0x0c, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, + 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x74, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, + 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x6e, + 0x66, 0x6f, 0x48, 0x00, 0x52, 0x0b, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, + 0x6f, 0x88, 0x01, 0x01, 0x12, 0x31, 0x0a, 0x12, 0x73, 0x74, 0x72, 0x69, 0x70, 0x65, 0x5f, 0x63, + 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x01, 0x52, 0x10, 0x73, 0x74, 0x72, 0x69, 0x70, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, + 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x5a, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x6f, 0x5f, + 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x73, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, + 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, + 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, + 0x67, 0x65, 0x48, 0x02, 0x52, 0x0a, 0x61, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, + 0x88, 0x01, 0x01, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, + 0x69, 0x6e, 0x66, 0x6f, 0x42, 0x15, 0x0a, 0x13, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x70, 0x65, 0x5f, + 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, + 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x22, 0x56, 0x0a, 0x06, 0x41, + 0x50, 0x49, 0x4b, 0x65, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x73, 0x65, + 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x53, 0x65, + 0x63, 0x72, 0x65, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, + 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x41, 0x74, 0x22, 0xf6, 0x02, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x07, + 0x61, 0x75, 0x74, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, + 0x06, 0x61, 0x75, 0x74, 0x68, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x72, + 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x69, 0x63, 0x74, + 0x75, 0x72, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x56, 0x0a, 0x0d, 0x6f, 0x72, 0x67, + 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, + 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, + 0x65, 0x72, 0x52, 0x0d, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x12, 0x3f, 0x0a, 0x08, 0x61, 0x70, 0x69, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x07, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, + 0x76, 0x31, 0x2e, 0x41, 0x50, 0x49, 0x4b, 0x65, 0x79, 0x52, 0x07, 0x61, 0x70, 0x69, 0x4b, 0x65, + 0x79, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, + 0x74, 0x12, 0x2a, 0x0a, 0x0e, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, + 0x69, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x48, 0x01, 0x52, 0x0d, 0x65, 0x6d, 0x61, + 0x69, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, + 0x08, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x69, 0x64, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x65, 0x6d, + 0x61, 0x69, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x22, 0x56, 0x0a, 0x08, + 0x43, 0x6f, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x0c, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x25, 0x0a, + 0x0e, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x73, 0x22, 0xaa, 0x02, 0x0a, 0x0b, 0x55, 0x73, 0x61, 0x67, 0x65, 0x4d, 0x65, + 0x74, 0x72, 0x69, 0x63, 0x12, 0x1c, 0x0a, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x45, 0x0a, 0x0a, 0x69, 0x6e, + 0x70, 0x75, 0x74, 0x5f, 0x63, 0x6f, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, + 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, + 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x73, + 0x74, 0x12, 0x47, 0x0a, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x63, 0x6f, 0x73, 0x74, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x0a, + 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x75, 0x73, + 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, + 0x88, 0x01, 0x01, 0x12, 0x33, 0x0a, 0x15, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x14, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x75, 0x73, 0x65, + 0x72, 0x22, 0x57, 0x0a, 0x09, 0x43, 0x6f, 0x73, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x23, + 0x0a, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x63, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0d, 0x61, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x22, 0xa8, 0x01, 0x0a, 0x10, 0x54, + 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x44, 0x61, 0x74, 0x61, 0x12, + 0x48, 0x0a, 0x0b, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x73, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x0a, 0x69, + 0x6e, 0x70, 0x75, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x4a, 0x0a, 0x0c, 0x6f, 0x75, 0x74, + 0x70, 0x75, 0x74, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x27, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x6f, 0x73, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, + 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0x94, 0x01, 0x0a, 0x07, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, + 0x73, 0x12, 0x43, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, + 0x31, 0x2e, 0x55, 0x73, 0x61, 0x67, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x07, 0x6d, + 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x44, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, + 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0x0e, 0x0a, 0x0c, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x28, 0x0a, 0x16, + 0x47, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xdf, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x4d, 0x65, + 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, + 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, + 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x66, 0x72, 0x6f, + 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x46, 0x72, + 0x6f, 0x6d, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x6f, 0x12, 0x3d, 0x0a, + 0x1b, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x18, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x50, 0x65, 0x72, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x42, 0x0a, 0x0a, 0x08, + 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0x0a, 0x0d, 0x41, 0x50, 0x49, 0x4b, + 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, + 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, + 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 0x23, 0x0a, 0x11, 0x41, 0x50, 0x49, 0x4b, 0x65, 0x79, + 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x4b, 0x0a, 0x20, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4f, 0x72, 0x67, 0x61, + 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x2c, 0x0a, 0x0e, 0x43, 0x6c, 0x69, 0x65, + 0x6e, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, + 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x73, 0x65, + 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0xbd, 0x01, 0x0a, 0x1d, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, + 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, + 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, 0x5f, 0x6d, 0x61, 0x78, + 0x69, 0x6d, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x6d, 0x6f, 0x6e, 0x74, + 0x68, 0x6c, 0x79, 0x4d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x69, + 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x0c, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, + 0x25, 0x0a, 0x0e, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, + 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x43, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x22, 0x56, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, + 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, + 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x76, + 0x0a, 0x11, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, + 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x09, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x19, 0x0a, 0x08, 0x72, + 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x72, + 0x61, 0x6e, 0x67, 0x65, 0x54, 0x6f, 0x22, 0xb8, 0x01, 0x0a, 0x06, 0x43, 0x68, 0x61, 0x72, 0x67, + 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x04, 0x70, 0x61, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, + 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, + 0x65, 0x69, 0x70, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x79, 0x6d, + 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6d, + 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, + 0x73, 0x22, 0x49, 0x0a, 0x07, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x07, + 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, + 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, + 0x72, 0x67, 0x65, 0x52, 0x07, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x73, 0x22, 0x3f, 0x0a, 0x14, + 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0xd9, 0x01, + 0x0a, 0x10, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, + 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x69, + 0x6e, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, + 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x41, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, 0x5f, + 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x6d, + 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, 0x4d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x12, 0x23, 0x0a, + 0x0d, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x61, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x22, 0x3c, 0x0a, 0x15, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x19, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x00, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, + 0x06, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x32, 0x0a, 0x18, 0x55, 0x73, 0x65, 0x72, 0x50, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x69, 0x63, + 0x6b, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2a, 0x39, 0x0a, 0x10, 0x4f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x12, + 0x0a, 0x0a, 0x06, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x41, + 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x41, 0x4e, 0x54, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x4f, + 0x57, 0x4e, 0x45, 0x52, 0x10, 0x02, 0x32, 0x9a, 0x0e, 0x0a, 0x10, 0x44, 0x61, 0x73, 0x68, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x57, 0x0a, 0x05, 0x47, + 0x65, 0x74, 0x4d, 0x65, 0x12, 0x2a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x22, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, + 0x55, 0x73, 0x65, 0x72, 0x12, 0x73, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, + 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, + 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x64, 0x0a, 0x0a, 0x47, 0x65, 0x74, + 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, + 0x61, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x50, 0x49, 0x4b, 0x65, 0x79, 0x12, + 0x2b, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x41, + 0x50, 0x49, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x73, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, + 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x50, 0x49, 0x4b, + 0x65, 0x79, 0x12, 0x65, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x50, 0x49, 0x4b, + 0x65, 0x79, 0x12, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, + 0x31, 0x2e, 0x41, 0x50, 0x49, 0x4b, 0x65, 0x79, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, + 0x76, 0x31, 0x2e, 0x41, 0x50, 0x49, 0x4b, 0x65, 0x79, 0x12, 0x7f, 0x0a, 0x19, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x66, 0x61, + 0x75, 0x6c, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x6d, 0x0a, 0x11, 0x47, 0x65, + 0x74, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, + 0x2a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x45, + 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x74, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, + 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, + 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x6f, 0x0a, 0x11, 0x53, 0x65, 0x74, + 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x2c, + 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, + 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x1a, 0x2c, 0x2e, 0x73, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, + 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x69, 0x65, + 0x6e, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x69, 0x0a, 0x0e, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x33, 0x2e, 0x73, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, + 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x22, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, + 0x2e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x80, 0x01, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x69, + 0x63, 0x6b, 0x65, 0x74, 0x12, 0x2a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x36, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, + 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x5f, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2a, 0x2e, 0x73, 0x74, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x67, 0x0a, 0x0c, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x12, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, + 0x68, 0x61, 0x72, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x73, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, + 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x72, + 0x67, 0x65, 0x12, 0x64, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x73, + 0x12, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x25, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x73, 0x12, 0x85, 0x01, 0x0a, 0x16, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, + 0x65, 0x6e, 0x74, 0x12, 0x3b, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, + 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, + 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, + 0x12, 0x85, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x43, + 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x3b, 0x2e, 0x73, 0x74, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, + 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, + 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x79, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, + 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, + 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, + 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, + 0x65, 0x6e, 0x74, 0x42, 0xac, 0x02, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x42, 0x0e, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x65, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x2d, 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, + 0x65, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, + 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x2f, 0x76, 0x31, 0x3b, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x76, + 0x31, 0xa2, 0x02, 0x03, 0x53, 0x41, 0x44, 0xaa, 0x02, 0x1c, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x41, 0x70, 0x69, 0x2e, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1c, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x28, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x1f, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x3a, 0x3a, + 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x3a, 0x3a, + 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescOnce sync.Once + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescData = file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDesc +) + +func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP() []byte { + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescOnce.Do(func() { + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescData = protoimpl.X.CompressGZIP(file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescData) + }) + return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescData +} + +var file_stabilityai_platformapis_dashboard_v1_dashboard_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes = make([]protoimpl.MessageInfo, 28) +var file_stabilityai_platformapis_dashboard_v1_dashboard_proto_goTypes = []interface{}{ + (OrganizationRole)(0), // 0: stabilityai.api.dashboard.v1.OrganizationRole + (*OrganizationMember)(nil), // 1: stabilityai.api.dashboard.v1.OrganizationMember + (*OrganizationGrant)(nil), // 2: stabilityai.api.dashboard.v1.OrganizationGrant + (*OrganizationPaymentInfo)(nil), // 3: stabilityai.api.dashboard.v1.OrganizationPaymentInfo + (*OrganizationAutoCharge)(nil), // 4: stabilityai.api.dashboard.v1.OrganizationAutoCharge + (*Organization)(nil), // 5: stabilityai.api.dashboard.v1.Organization + (*APIKey)(nil), // 6: stabilityai.api.dashboard.v1.APIKey + (*User)(nil), // 7: stabilityai.api.dashboard.v1.User + (*CostData)(nil), // 8: stabilityai.api.dashboard.v1.CostData + (*UsageMetric)(nil), // 9: stabilityai.api.dashboard.v1.UsageMetric + (*CostTotal)(nil), // 10: stabilityai.api.dashboard.v1.CostTotal + (*TotalMetricsData)(nil), // 11: stabilityai.api.dashboard.v1.TotalMetricsData + (*Metrics)(nil), // 12: stabilityai.api.dashboard.v1.Metrics + (*EmptyRequest)(nil), // 13: stabilityai.api.dashboard.v1.EmptyRequest + (*GetOrganizationRequest)(nil), // 14: stabilityai.api.dashboard.v1.GetOrganizationRequest + (*GetMetricsRequest)(nil), // 15: stabilityai.api.dashboard.v1.GetMetricsRequest + (*APIKeyRequest)(nil), // 16: stabilityai.api.dashboard.v1.APIKeyRequest + (*APIKeyFindRequest)(nil), // 17: stabilityai.api.dashboard.v1.APIKeyFindRequest + (*UpdateDefaultOrganizationRequest)(nil), // 18: stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest + (*ClientSettings)(nil), // 19: stabilityai.api.dashboard.v1.ClientSettings + (*CreateAutoChargeIntentRequest)(nil), // 20: stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest + (*CreateChargeRequest)(nil), // 21: stabilityai.api.dashboard.v1.CreateChargeRequest + (*GetChargesRequest)(nil), // 22: stabilityai.api.dashboard.v1.GetChargesRequest + (*Charge)(nil), // 23: stabilityai.api.dashboard.v1.Charge + (*Charges)(nil), // 24: stabilityai.api.dashboard.v1.Charges + (*GetAutoChargeRequest)(nil), // 25: stabilityai.api.dashboard.v1.GetAutoChargeRequest + (*AutoChargeIntent)(nil), // 26: stabilityai.api.dashboard.v1.AutoChargeIntent + (*UpdateUserInfoRequest)(nil), // 27: stabilityai.api.dashboard.v1.UpdateUserInfoRequest + (*UserPasswordChangeTicket)(nil), // 28: stabilityai.api.dashboard.v1.UserPasswordChangeTicket +} +var file_stabilityai_platformapis_dashboard_v1_dashboard_proto_depIdxs = []int32{ + 5, // 0: stabilityai.api.dashboard.v1.OrganizationMember.organization:type_name -> stabilityai.api.dashboard.v1.Organization + 7, // 1: stabilityai.api.dashboard.v1.OrganizationMember.user:type_name -> stabilityai.api.dashboard.v1.User + 0, // 2: stabilityai.api.dashboard.v1.OrganizationMember.role:type_name -> stabilityai.api.dashboard.v1.OrganizationRole + 2, // 3: stabilityai.api.dashboard.v1.OrganizationPaymentInfo.grants:type_name -> stabilityai.api.dashboard.v1.OrganizationGrant + 1, // 4: stabilityai.api.dashboard.v1.Organization.members:type_name -> stabilityai.api.dashboard.v1.OrganizationMember + 3, // 5: stabilityai.api.dashboard.v1.Organization.payment_info:type_name -> stabilityai.api.dashboard.v1.OrganizationPaymentInfo + 4, // 6: stabilityai.api.dashboard.v1.Organization.auto_charge:type_name -> stabilityai.api.dashboard.v1.OrganizationAutoCharge + 1, // 7: stabilityai.api.dashboard.v1.User.organizations:type_name -> stabilityai.api.dashboard.v1.OrganizationMember + 6, // 8: stabilityai.api.dashboard.v1.User.api_keys:type_name -> stabilityai.api.dashboard.v1.APIKey + 8, // 9: stabilityai.api.dashboard.v1.UsageMetric.input_cost:type_name -> stabilityai.api.dashboard.v1.CostData + 8, // 10: stabilityai.api.dashboard.v1.UsageMetric.output_cost:type_name -> stabilityai.api.dashboard.v1.CostData + 10, // 11: stabilityai.api.dashboard.v1.TotalMetricsData.input_total:type_name -> stabilityai.api.dashboard.v1.CostTotal + 10, // 12: stabilityai.api.dashboard.v1.TotalMetricsData.output_total:type_name -> stabilityai.api.dashboard.v1.CostTotal + 9, // 13: stabilityai.api.dashboard.v1.Metrics.metrics:type_name -> stabilityai.api.dashboard.v1.UsageMetric + 11, // 14: stabilityai.api.dashboard.v1.Metrics.total:type_name -> stabilityai.api.dashboard.v1.TotalMetricsData + 23, // 15: stabilityai.api.dashboard.v1.Charges.charges:type_name -> stabilityai.api.dashboard.v1.Charge + 13, // 16: stabilityai.api.dashboard.v1.DashboardService.GetMe:input_type -> stabilityai.api.dashboard.v1.EmptyRequest + 14, // 17: stabilityai.api.dashboard.v1.DashboardService.GetOrganization:input_type -> stabilityai.api.dashboard.v1.GetOrganizationRequest + 15, // 18: stabilityai.api.dashboard.v1.DashboardService.GetMetrics:input_type -> stabilityai.api.dashboard.v1.GetMetricsRequest + 16, // 19: stabilityai.api.dashboard.v1.DashboardService.CreateAPIKey:input_type -> stabilityai.api.dashboard.v1.APIKeyRequest + 17, // 20: stabilityai.api.dashboard.v1.DashboardService.DeleteAPIKey:input_type -> stabilityai.api.dashboard.v1.APIKeyFindRequest + 18, // 21: stabilityai.api.dashboard.v1.DashboardService.UpdateDefaultOrganization:input_type -> stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest + 13, // 22: stabilityai.api.dashboard.v1.DashboardService.GetClientSettings:input_type -> stabilityai.api.dashboard.v1.EmptyRequest + 19, // 23: stabilityai.api.dashboard.v1.DashboardService.SetClientSettings:input_type -> stabilityai.api.dashboard.v1.ClientSettings + 27, // 24: stabilityai.api.dashboard.v1.DashboardService.UpdateUserInfo:input_type -> stabilityai.api.dashboard.v1.UpdateUserInfoRequest + 13, // 25: stabilityai.api.dashboard.v1.DashboardService.CreatePasswordChangeTicket:input_type -> stabilityai.api.dashboard.v1.EmptyRequest + 13, // 26: stabilityai.api.dashboard.v1.DashboardService.DeleteAccount:input_type -> stabilityai.api.dashboard.v1.EmptyRequest + 21, // 27: stabilityai.api.dashboard.v1.DashboardService.CreateCharge:input_type -> stabilityai.api.dashboard.v1.CreateChargeRequest + 22, // 28: stabilityai.api.dashboard.v1.DashboardService.GetCharges:input_type -> stabilityai.api.dashboard.v1.GetChargesRequest + 20, // 29: stabilityai.api.dashboard.v1.DashboardService.CreateAutoChargeIntent:input_type -> stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest + 20, // 30: stabilityai.api.dashboard.v1.DashboardService.UpdateAutoChargeIntent:input_type -> stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest + 25, // 31: stabilityai.api.dashboard.v1.DashboardService.GetAutoChargeIntent:input_type -> stabilityai.api.dashboard.v1.GetAutoChargeRequest + 7, // 32: stabilityai.api.dashboard.v1.DashboardService.GetMe:output_type -> stabilityai.api.dashboard.v1.User + 5, // 33: stabilityai.api.dashboard.v1.DashboardService.GetOrganization:output_type -> stabilityai.api.dashboard.v1.Organization + 12, // 34: stabilityai.api.dashboard.v1.DashboardService.GetMetrics:output_type -> stabilityai.api.dashboard.v1.Metrics + 6, // 35: stabilityai.api.dashboard.v1.DashboardService.CreateAPIKey:output_type -> stabilityai.api.dashboard.v1.APIKey + 6, // 36: stabilityai.api.dashboard.v1.DashboardService.DeleteAPIKey:output_type -> stabilityai.api.dashboard.v1.APIKey + 7, // 37: stabilityai.api.dashboard.v1.DashboardService.UpdateDefaultOrganization:output_type -> stabilityai.api.dashboard.v1.User + 19, // 38: stabilityai.api.dashboard.v1.DashboardService.GetClientSettings:output_type -> stabilityai.api.dashboard.v1.ClientSettings + 19, // 39: stabilityai.api.dashboard.v1.DashboardService.SetClientSettings:output_type -> stabilityai.api.dashboard.v1.ClientSettings + 7, // 40: stabilityai.api.dashboard.v1.DashboardService.UpdateUserInfo:output_type -> stabilityai.api.dashboard.v1.User + 28, // 41: stabilityai.api.dashboard.v1.DashboardService.CreatePasswordChangeTicket:output_type -> stabilityai.api.dashboard.v1.UserPasswordChangeTicket + 7, // 42: stabilityai.api.dashboard.v1.DashboardService.DeleteAccount:output_type -> stabilityai.api.dashboard.v1.User + 23, // 43: stabilityai.api.dashboard.v1.DashboardService.CreateCharge:output_type -> stabilityai.api.dashboard.v1.Charge + 24, // 44: stabilityai.api.dashboard.v1.DashboardService.GetCharges:output_type -> stabilityai.api.dashboard.v1.Charges + 26, // 45: stabilityai.api.dashboard.v1.DashboardService.CreateAutoChargeIntent:output_type -> stabilityai.api.dashboard.v1.AutoChargeIntent + 26, // 46: stabilityai.api.dashboard.v1.DashboardService.UpdateAutoChargeIntent:output_type -> stabilityai.api.dashboard.v1.AutoChargeIntent + 26, // 47: stabilityai.api.dashboard.v1.DashboardService.GetAutoChargeIntent:output_type -> stabilityai.api.dashboard.v1.AutoChargeIntent + 32, // [32:48] is the sub-list for method output_type + 16, // [16:32] is the sub-list for method input_type + 16, // [16:16] is the sub-list for extension type_name + 16, // [16:16] is the sub-list for extension extendee + 0, // [0:16] is the sub-list for field type_name +} + +func init() { file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() } +func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { + if File_stabilityai_platformapis_dashboard_v1_dashboard_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OrganizationMember); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OrganizationGrant); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OrganizationPaymentInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OrganizationAutoCharge); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Organization); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*APIKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*User); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CostData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UsageMetric); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CostTotal); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TotalMetricsData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Metrics); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EmptyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetOrganizationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetMetricsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*APIKeyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*APIKeyFindRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateDefaultOrganizationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClientSettings); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateAutoChargeIntentRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateChargeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetChargesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Charge); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Charges); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetAutoChargeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AutoChargeIntent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateUserInfoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserPasswordChangeTicket); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[4].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[6].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[8].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[14].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[26].OneofWrappers = []interface{}{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDesc, + NumEnums: 1, + NumMessages: 28, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_stabilityai_platformapis_dashboard_v1_dashboard_proto_goTypes, + DependencyIndexes: file_stabilityai_platformapis_dashboard_v1_dashboard_proto_depIdxs, + EnumInfos: file_stabilityai_platformapis_dashboard_v1_dashboard_proto_enumTypes, + MessageInfos: file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes, + }.Build() + File_stabilityai_platformapis_dashboard_v1_dashboard_proto = out.File + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDesc = nil + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_goTypes = nil + file_stabilityai_platformapis_dashboard_v1_dashboard_proto_depIdxs = nil +} diff --git a/gen/proto/go/stabilityai/platformapis/dashboard/v1/dashboard_grpc.pb.go b/gen/proto/go/stabilityai/platformapis/dashboard/v1/dashboard_grpc.pb.go new file mode 100644 index 0000000..9cd15dc --- /dev/null +++ b/gen/proto/go/stabilityai/platformapis/dashboard/v1/dashboard_grpc.pb.go @@ -0,0 +1,672 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +package dashboardv1 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + DashboardService_GetMe_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/GetMe" + DashboardService_GetOrganization_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/GetOrganization" + DashboardService_GetMetrics_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/GetMetrics" + DashboardService_CreateAPIKey_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/CreateAPIKey" + DashboardService_DeleteAPIKey_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/DeleteAPIKey" + DashboardService_UpdateDefaultOrganization_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/UpdateDefaultOrganization" + DashboardService_GetClientSettings_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/GetClientSettings" + DashboardService_SetClientSettings_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/SetClientSettings" + DashboardService_UpdateUserInfo_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/UpdateUserInfo" + DashboardService_CreatePasswordChangeTicket_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/CreatePasswordChangeTicket" + DashboardService_DeleteAccount_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/DeleteAccount" + DashboardService_CreateCharge_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/CreateCharge" + DashboardService_GetCharges_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/GetCharges" + DashboardService_CreateAutoChargeIntent_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/CreateAutoChargeIntent" + DashboardService_UpdateAutoChargeIntent_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/UpdateAutoChargeIntent" + DashboardService_GetAutoChargeIntent_FullMethodName = "/stabilityai.api.dashboard.v1.DashboardService/GetAutoChargeIntent" +) + +// DashboardServiceClient is the client API for DashboardService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type DashboardServiceClient interface { + // Get info + GetMe(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*User, error) + GetOrganization(ctx context.Context, in *GetOrganizationRequest, opts ...grpc.CallOption) (*Organization, error) + GetMetrics(ctx context.Context, in *GetMetricsRequest, opts ...grpc.CallOption) (*Metrics, error) + // API key management + CreateAPIKey(ctx context.Context, in *APIKeyRequest, opts ...grpc.CallOption) (*APIKey, error) + DeleteAPIKey(ctx context.Context, in *APIKeyFindRequest, opts ...grpc.CallOption) (*APIKey, error) + // User settings + UpdateDefaultOrganization(ctx context.Context, in *UpdateDefaultOrganizationRequest, opts ...grpc.CallOption) (*User, error) + GetClientSettings(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ClientSettings, error) + SetClientSettings(ctx context.Context, in *ClientSettings, opts ...grpc.CallOption) (*ClientSettings, error) + UpdateUserInfo(ctx context.Context, in *UpdateUserInfoRequest, opts ...grpc.CallOption) (*User, error) + CreatePasswordChangeTicket(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*UserPasswordChangeTicket, error) + DeleteAccount(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*User, error) + // Payment functions + CreateCharge(ctx context.Context, in *CreateChargeRequest, opts ...grpc.CallOption) (*Charge, error) + GetCharges(ctx context.Context, in *GetChargesRequest, opts ...grpc.CallOption) (*Charges, error) + CreateAutoChargeIntent(ctx context.Context, in *CreateAutoChargeIntentRequest, opts ...grpc.CallOption) (*AutoChargeIntent, error) + UpdateAutoChargeIntent(ctx context.Context, in *CreateAutoChargeIntentRequest, opts ...grpc.CallOption) (*AutoChargeIntent, error) + GetAutoChargeIntent(ctx context.Context, in *GetAutoChargeRequest, opts ...grpc.CallOption) (*AutoChargeIntent, error) +} + +type dashboardServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewDashboardServiceClient(cc grpc.ClientConnInterface) DashboardServiceClient { + return &dashboardServiceClient{cc} +} + +func (c *dashboardServiceClient) GetMe(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*User, error) { + out := new(User) + err := c.cc.Invoke(ctx, DashboardService_GetMe_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dashboardServiceClient) GetOrganization(ctx context.Context, in *GetOrganizationRequest, opts ...grpc.CallOption) (*Organization, error) { + out := new(Organization) + err := c.cc.Invoke(ctx, DashboardService_GetOrganization_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dashboardServiceClient) GetMetrics(ctx context.Context, in *GetMetricsRequest, opts ...grpc.CallOption) (*Metrics, error) { + out := new(Metrics) + err := c.cc.Invoke(ctx, DashboardService_GetMetrics_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dashboardServiceClient) CreateAPIKey(ctx context.Context, in *APIKeyRequest, opts ...grpc.CallOption) (*APIKey, error) { + out := new(APIKey) + err := c.cc.Invoke(ctx, DashboardService_CreateAPIKey_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dashboardServiceClient) DeleteAPIKey(ctx context.Context, in *APIKeyFindRequest, opts ...grpc.CallOption) (*APIKey, error) { + out := new(APIKey) + err := c.cc.Invoke(ctx, DashboardService_DeleteAPIKey_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dashboardServiceClient) UpdateDefaultOrganization(ctx context.Context, in *UpdateDefaultOrganizationRequest, opts ...grpc.CallOption) (*User, error) { + out := new(User) + err := c.cc.Invoke(ctx, DashboardService_UpdateDefaultOrganization_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dashboardServiceClient) GetClientSettings(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ClientSettings, error) { + out := new(ClientSettings) + err := c.cc.Invoke(ctx, DashboardService_GetClientSettings_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dashboardServiceClient) SetClientSettings(ctx context.Context, in *ClientSettings, opts ...grpc.CallOption) (*ClientSettings, error) { + out := new(ClientSettings) + err := c.cc.Invoke(ctx, DashboardService_SetClientSettings_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dashboardServiceClient) UpdateUserInfo(ctx context.Context, in *UpdateUserInfoRequest, opts ...grpc.CallOption) (*User, error) { + out := new(User) + err := c.cc.Invoke(ctx, DashboardService_UpdateUserInfo_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dashboardServiceClient) CreatePasswordChangeTicket(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*UserPasswordChangeTicket, error) { + out := new(UserPasswordChangeTicket) + err := c.cc.Invoke(ctx, DashboardService_CreatePasswordChangeTicket_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dashboardServiceClient) DeleteAccount(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*User, error) { + out := new(User) + err := c.cc.Invoke(ctx, DashboardService_DeleteAccount_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dashboardServiceClient) CreateCharge(ctx context.Context, in *CreateChargeRequest, opts ...grpc.CallOption) (*Charge, error) { + out := new(Charge) + err := c.cc.Invoke(ctx, DashboardService_CreateCharge_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dashboardServiceClient) GetCharges(ctx context.Context, in *GetChargesRequest, opts ...grpc.CallOption) (*Charges, error) { + out := new(Charges) + err := c.cc.Invoke(ctx, DashboardService_GetCharges_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dashboardServiceClient) CreateAutoChargeIntent(ctx context.Context, in *CreateAutoChargeIntentRequest, opts ...grpc.CallOption) (*AutoChargeIntent, error) { + out := new(AutoChargeIntent) + err := c.cc.Invoke(ctx, DashboardService_CreateAutoChargeIntent_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dashboardServiceClient) UpdateAutoChargeIntent(ctx context.Context, in *CreateAutoChargeIntentRequest, opts ...grpc.CallOption) (*AutoChargeIntent, error) { + out := new(AutoChargeIntent) + err := c.cc.Invoke(ctx, DashboardService_UpdateAutoChargeIntent_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dashboardServiceClient) GetAutoChargeIntent(ctx context.Context, in *GetAutoChargeRequest, opts ...grpc.CallOption) (*AutoChargeIntent, error) { + out := new(AutoChargeIntent) + err := c.cc.Invoke(ctx, DashboardService_GetAutoChargeIntent_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// DashboardServiceServer is the server API for DashboardService service. +// All implementations must embed UnimplementedDashboardServiceServer +// for forward compatibility +type DashboardServiceServer interface { + // Get info + GetMe(context.Context, *EmptyRequest) (*User, error) + GetOrganization(context.Context, *GetOrganizationRequest) (*Organization, error) + GetMetrics(context.Context, *GetMetricsRequest) (*Metrics, error) + // API key management + CreateAPIKey(context.Context, *APIKeyRequest) (*APIKey, error) + DeleteAPIKey(context.Context, *APIKeyFindRequest) (*APIKey, error) + // User settings + UpdateDefaultOrganization(context.Context, *UpdateDefaultOrganizationRequest) (*User, error) + GetClientSettings(context.Context, *EmptyRequest) (*ClientSettings, error) + SetClientSettings(context.Context, *ClientSettings) (*ClientSettings, error) + UpdateUserInfo(context.Context, *UpdateUserInfoRequest) (*User, error) + CreatePasswordChangeTicket(context.Context, *EmptyRequest) (*UserPasswordChangeTicket, error) + DeleteAccount(context.Context, *EmptyRequest) (*User, error) + // Payment functions + CreateCharge(context.Context, *CreateChargeRequest) (*Charge, error) + GetCharges(context.Context, *GetChargesRequest) (*Charges, error) + CreateAutoChargeIntent(context.Context, *CreateAutoChargeIntentRequest) (*AutoChargeIntent, error) + UpdateAutoChargeIntent(context.Context, *CreateAutoChargeIntentRequest) (*AutoChargeIntent, error) + GetAutoChargeIntent(context.Context, *GetAutoChargeRequest) (*AutoChargeIntent, error) + mustEmbedUnimplementedDashboardServiceServer() +} + +// UnimplementedDashboardServiceServer must be embedded to have forward compatible implementations. +type UnimplementedDashboardServiceServer struct { +} + +func (UnimplementedDashboardServiceServer) GetMe(context.Context, *EmptyRequest) (*User, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetMe not implemented") +} +func (UnimplementedDashboardServiceServer) GetOrganization(context.Context, *GetOrganizationRequest) (*Organization, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetOrganization not implemented") +} +func (UnimplementedDashboardServiceServer) GetMetrics(context.Context, *GetMetricsRequest) (*Metrics, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetMetrics not implemented") +} +func (UnimplementedDashboardServiceServer) CreateAPIKey(context.Context, *APIKeyRequest) (*APIKey, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateAPIKey not implemented") +} +func (UnimplementedDashboardServiceServer) DeleteAPIKey(context.Context, *APIKeyFindRequest) (*APIKey, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteAPIKey not implemented") +} +func (UnimplementedDashboardServiceServer) UpdateDefaultOrganization(context.Context, *UpdateDefaultOrganizationRequest) (*User, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateDefaultOrganization not implemented") +} +func (UnimplementedDashboardServiceServer) GetClientSettings(context.Context, *EmptyRequest) (*ClientSettings, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetClientSettings not implemented") +} +func (UnimplementedDashboardServiceServer) SetClientSettings(context.Context, *ClientSettings) (*ClientSettings, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetClientSettings not implemented") +} +func (UnimplementedDashboardServiceServer) UpdateUserInfo(context.Context, *UpdateUserInfoRequest) (*User, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateUserInfo not implemented") +} +func (UnimplementedDashboardServiceServer) CreatePasswordChangeTicket(context.Context, *EmptyRequest) (*UserPasswordChangeTicket, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreatePasswordChangeTicket not implemented") +} +func (UnimplementedDashboardServiceServer) DeleteAccount(context.Context, *EmptyRequest) (*User, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteAccount not implemented") +} +func (UnimplementedDashboardServiceServer) CreateCharge(context.Context, *CreateChargeRequest) (*Charge, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateCharge not implemented") +} +func (UnimplementedDashboardServiceServer) GetCharges(context.Context, *GetChargesRequest) (*Charges, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetCharges not implemented") +} +func (UnimplementedDashboardServiceServer) CreateAutoChargeIntent(context.Context, *CreateAutoChargeIntentRequest) (*AutoChargeIntent, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateAutoChargeIntent not implemented") +} +func (UnimplementedDashboardServiceServer) UpdateAutoChargeIntent(context.Context, *CreateAutoChargeIntentRequest) (*AutoChargeIntent, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateAutoChargeIntent not implemented") +} +func (UnimplementedDashboardServiceServer) GetAutoChargeIntent(context.Context, *GetAutoChargeRequest) (*AutoChargeIntent, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetAutoChargeIntent not implemented") +} +func (UnimplementedDashboardServiceServer) mustEmbedUnimplementedDashboardServiceServer() {} + +// UnsafeDashboardServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to DashboardServiceServer will +// result in compilation errors. +type UnsafeDashboardServiceServer interface { + mustEmbedUnimplementedDashboardServiceServer() +} + +func RegisterDashboardServiceServer(s grpc.ServiceRegistrar, srv DashboardServiceServer) { + s.RegisterService(&DashboardService_ServiceDesc, srv) +} + +func _DashboardService_GetMe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DashboardServiceServer).GetMe(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DashboardService_GetMe_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DashboardServiceServer).GetMe(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DashboardService_GetOrganization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetOrganizationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DashboardServiceServer).GetOrganization(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DashboardService_GetOrganization_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DashboardServiceServer).GetOrganization(ctx, req.(*GetOrganizationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DashboardService_GetMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetMetricsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DashboardServiceServer).GetMetrics(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DashboardService_GetMetrics_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DashboardServiceServer).GetMetrics(ctx, req.(*GetMetricsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DashboardService_CreateAPIKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(APIKeyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DashboardServiceServer).CreateAPIKey(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DashboardService_CreateAPIKey_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DashboardServiceServer).CreateAPIKey(ctx, req.(*APIKeyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DashboardService_DeleteAPIKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(APIKeyFindRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DashboardServiceServer).DeleteAPIKey(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DashboardService_DeleteAPIKey_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DashboardServiceServer).DeleteAPIKey(ctx, req.(*APIKeyFindRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DashboardService_UpdateDefaultOrganization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateDefaultOrganizationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DashboardServiceServer).UpdateDefaultOrganization(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DashboardService_UpdateDefaultOrganization_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DashboardServiceServer).UpdateDefaultOrganization(ctx, req.(*UpdateDefaultOrganizationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DashboardService_GetClientSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DashboardServiceServer).GetClientSettings(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DashboardService_GetClientSettings_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DashboardServiceServer).GetClientSettings(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DashboardService_SetClientSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClientSettings) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DashboardServiceServer).SetClientSettings(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DashboardService_SetClientSettings_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DashboardServiceServer).SetClientSettings(ctx, req.(*ClientSettings)) + } + return interceptor(ctx, in, info, handler) +} + +func _DashboardService_UpdateUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateUserInfoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DashboardServiceServer).UpdateUserInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DashboardService_UpdateUserInfo_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DashboardServiceServer).UpdateUserInfo(ctx, req.(*UpdateUserInfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DashboardService_CreatePasswordChangeTicket_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DashboardServiceServer).CreatePasswordChangeTicket(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DashboardService_CreatePasswordChangeTicket_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DashboardServiceServer).CreatePasswordChangeTicket(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DashboardService_DeleteAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DashboardServiceServer).DeleteAccount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DashboardService_DeleteAccount_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DashboardServiceServer).DeleteAccount(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DashboardService_CreateCharge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateChargeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DashboardServiceServer).CreateCharge(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DashboardService_CreateCharge_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DashboardServiceServer).CreateCharge(ctx, req.(*CreateChargeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DashboardService_GetCharges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetChargesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DashboardServiceServer).GetCharges(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DashboardService_GetCharges_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DashboardServiceServer).GetCharges(ctx, req.(*GetChargesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DashboardService_CreateAutoChargeIntent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateAutoChargeIntentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DashboardServiceServer).CreateAutoChargeIntent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DashboardService_CreateAutoChargeIntent_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DashboardServiceServer).CreateAutoChargeIntent(ctx, req.(*CreateAutoChargeIntentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DashboardService_UpdateAutoChargeIntent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateAutoChargeIntentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DashboardServiceServer).UpdateAutoChargeIntent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DashboardService_UpdateAutoChargeIntent_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DashboardServiceServer).UpdateAutoChargeIntent(ctx, req.(*CreateAutoChargeIntentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DashboardService_GetAutoChargeIntent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetAutoChargeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DashboardServiceServer).GetAutoChargeIntent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DashboardService_GetAutoChargeIntent_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DashboardServiceServer).GetAutoChargeIntent(ctx, req.(*GetAutoChargeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// DashboardService_ServiceDesc is the grpc.ServiceDesc for DashboardService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var DashboardService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "stabilityai.api.dashboard.v1.DashboardService", + HandlerType: (*DashboardServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetMe", + Handler: _DashboardService_GetMe_Handler, + }, + { + MethodName: "GetOrganization", + Handler: _DashboardService_GetOrganization_Handler, + }, + { + MethodName: "GetMetrics", + Handler: _DashboardService_GetMetrics_Handler, + }, + { + MethodName: "CreateAPIKey", + Handler: _DashboardService_CreateAPIKey_Handler, + }, + { + MethodName: "DeleteAPIKey", + Handler: _DashboardService_DeleteAPIKey_Handler, + }, + { + MethodName: "UpdateDefaultOrganization", + Handler: _DashboardService_UpdateDefaultOrganization_Handler, + }, + { + MethodName: "GetClientSettings", + Handler: _DashboardService_GetClientSettings_Handler, + }, + { + MethodName: "SetClientSettings", + Handler: _DashboardService_SetClientSettings_Handler, + }, + { + MethodName: "UpdateUserInfo", + Handler: _DashboardService_UpdateUserInfo_Handler, + }, + { + MethodName: "CreatePasswordChangeTicket", + Handler: _DashboardService_CreatePasswordChangeTicket_Handler, + }, + { + MethodName: "DeleteAccount", + Handler: _DashboardService_DeleteAccount_Handler, + }, + { + MethodName: "CreateCharge", + Handler: _DashboardService_CreateCharge_Handler, + }, + { + MethodName: "GetCharges", + Handler: _DashboardService_GetCharges_Handler, + }, + { + MethodName: "CreateAutoChargeIntent", + Handler: _DashboardService_CreateAutoChargeIntent_Handler, + }, + { + MethodName: "UpdateAutoChargeIntent", + Handler: _DashboardService_UpdateAutoChargeIntent_Handler, + }, + { + MethodName: "GetAutoChargeIntent", + Handler: _DashboardService_GetAutoChargeIntent_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "stabilityai/platformapis/dashboard/v1/dashboard.proto", +} diff --git a/gen/proto/go/stabilityai/platformapis/dashboard/v1/dashboardv1connect/dashboard.connect.go b/gen/proto/go/stabilityai/platformapis/dashboard/v1/dashboardv1connect/dashboard.connect.go new file mode 100644 index 0000000..a671489 --- /dev/null +++ b/gen/proto/go/stabilityai/platformapis/dashboard/v1/dashboardv1connect/dashboard.connect.go @@ -0,0 +1,487 @@ +// Code generated by protoc-gen-connect-go. DO NOT EDIT. +// +// Source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +package dashboardv1connect + +import ( + context "context" + errors "errors" + connect_go "github.com/bufbuild/connect-go" + v1 "github.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/dashboard/v1" + http "net/http" + strings "strings" +) + +// This is a compile-time assertion to ensure that this generated file and the connect package are +// compatible. If you get a compiler error that this constant is not defined, this code was +// generated with a version of connect newer than the one compiled into your binary. You can fix the +// problem by either regenerating this code with an older version of connect or updating the connect +// version compiled into your binary. +const _ = connect_go.IsAtLeastVersion0_1_0 + +const ( + // DashboardServiceName is the fully-qualified name of the DashboardService service. + DashboardServiceName = "stabilityai.api.dashboard.v1.DashboardService" +) + +// These constants are the fully-qualified names of the RPCs defined in this package. They're +// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route. +// +// Note that these are different from the fully-qualified method names used by +// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to +// reflection-formatted method names, remove the leading slash and convert the remaining slash to a +// period. +const ( + // DashboardServiceGetMeProcedure is the fully-qualified name of the DashboardService's GetMe RPC. + DashboardServiceGetMeProcedure = "/stabilityai.api.dashboard.v1.DashboardService/GetMe" + // DashboardServiceGetOrganizationProcedure is the fully-qualified name of the DashboardService's + // GetOrganization RPC. + DashboardServiceGetOrganizationProcedure = "/stabilityai.api.dashboard.v1.DashboardService/GetOrganization" + // DashboardServiceGetMetricsProcedure is the fully-qualified name of the DashboardService's + // GetMetrics RPC. + DashboardServiceGetMetricsProcedure = "/stabilityai.api.dashboard.v1.DashboardService/GetMetrics" + // DashboardServiceCreateAPIKeyProcedure is the fully-qualified name of the DashboardService's + // CreateAPIKey RPC. + DashboardServiceCreateAPIKeyProcedure = "/stabilityai.api.dashboard.v1.DashboardService/CreateAPIKey" + // DashboardServiceDeleteAPIKeyProcedure is the fully-qualified name of the DashboardService's + // DeleteAPIKey RPC. + DashboardServiceDeleteAPIKeyProcedure = "/stabilityai.api.dashboard.v1.DashboardService/DeleteAPIKey" + // DashboardServiceUpdateDefaultOrganizationProcedure is the fully-qualified name of the + // DashboardService's UpdateDefaultOrganization RPC. + DashboardServiceUpdateDefaultOrganizationProcedure = "/stabilityai.api.dashboard.v1.DashboardService/UpdateDefaultOrganization" + // DashboardServiceGetClientSettingsProcedure is the fully-qualified name of the DashboardService's + // GetClientSettings RPC. + DashboardServiceGetClientSettingsProcedure = "/stabilityai.api.dashboard.v1.DashboardService/GetClientSettings" + // DashboardServiceSetClientSettingsProcedure is the fully-qualified name of the DashboardService's + // SetClientSettings RPC. + DashboardServiceSetClientSettingsProcedure = "/stabilityai.api.dashboard.v1.DashboardService/SetClientSettings" + // DashboardServiceUpdateUserInfoProcedure is the fully-qualified name of the DashboardService's + // UpdateUserInfo RPC. + DashboardServiceUpdateUserInfoProcedure = "/stabilityai.api.dashboard.v1.DashboardService/UpdateUserInfo" + // DashboardServiceCreatePasswordChangeTicketProcedure is the fully-qualified name of the + // DashboardService's CreatePasswordChangeTicket RPC. + DashboardServiceCreatePasswordChangeTicketProcedure = "/stabilityai.api.dashboard.v1.DashboardService/CreatePasswordChangeTicket" + // DashboardServiceDeleteAccountProcedure is the fully-qualified name of the DashboardService's + // DeleteAccount RPC. + DashboardServiceDeleteAccountProcedure = "/stabilityai.api.dashboard.v1.DashboardService/DeleteAccount" + // DashboardServiceCreateChargeProcedure is the fully-qualified name of the DashboardService's + // CreateCharge RPC. + DashboardServiceCreateChargeProcedure = "/stabilityai.api.dashboard.v1.DashboardService/CreateCharge" + // DashboardServiceGetChargesProcedure is the fully-qualified name of the DashboardService's + // GetCharges RPC. + DashboardServiceGetChargesProcedure = "/stabilityai.api.dashboard.v1.DashboardService/GetCharges" + // DashboardServiceCreateAutoChargeIntentProcedure is the fully-qualified name of the + // DashboardService's CreateAutoChargeIntent RPC. + DashboardServiceCreateAutoChargeIntentProcedure = "/stabilityai.api.dashboard.v1.DashboardService/CreateAutoChargeIntent" + // DashboardServiceUpdateAutoChargeIntentProcedure is the fully-qualified name of the + // DashboardService's UpdateAutoChargeIntent RPC. + DashboardServiceUpdateAutoChargeIntentProcedure = "/stabilityai.api.dashboard.v1.DashboardService/UpdateAutoChargeIntent" + // DashboardServiceGetAutoChargeIntentProcedure is the fully-qualified name of the + // DashboardService's GetAutoChargeIntent RPC. + DashboardServiceGetAutoChargeIntentProcedure = "/stabilityai.api.dashboard.v1.DashboardService/GetAutoChargeIntent" +) + +// DashboardServiceClient is a client for the stabilityai.api.dashboard.v1.DashboardService service. +type DashboardServiceClient interface { + // Get info + GetMe(context.Context, *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.User], error) + GetOrganization(context.Context, *connect_go.Request[v1.GetOrganizationRequest]) (*connect_go.Response[v1.Organization], error) + GetMetrics(context.Context, *connect_go.Request[v1.GetMetricsRequest]) (*connect_go.Response[v1.Metrics], error) + // API key management + CreateAPIKey(context.Context, *connect_go.Request[v1.APIKeyRequest]) (*connect_go.Response[v1.APIKey], error) + DeleteAPIKey(context.Context, *connect_go.Request[v1.APIKeyFindRequest]) (*connect_go.Response[v1.APIKey], error) + // User settings + UpdateDefaultOrganization(context.Context, *connect_go.Request[v1.UpdateDefaultOrganizationRequest]) (*connect_go.Response[v1.User], error) + GetClientSettings(context.Context, *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.ClientSettings], error) + SetClientSettings(context.Context, *connect_go.Request[v1.ClientSettings]) (*connect_go.Response[v1.ClientSettings], error) + UpdateUserInfo(context.Context, *connect_go.Request[v1.UpdateUserInfoRequest]) (*connect_go.Response[v1.User], error) + CreatePasswordChangeTicket(context.Context, *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.UserPasswordChangeTicket], error) + DeleteAccount(context.Context, *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.User], error) + // Payment functions + CreateCharge(context.Context, *connect_go.Request[v1.CreateChargeRequest]) (*connect_go.Response[v1.Charge], error) + GetCharges(context.Context, *connect_go.Request[v1.GetChargesRequest]) (*connect_go.Response[v1.Charges], error) + CreateAutoChargeIntent(context.Context, *connect_go.Request[v1.CreateAutoChargeIntentRequest]) (*connect_go.Response[v1.AutoChargeIntent], error) + UpdateAutoChargeIntent(context.Context, *connect_go.Request[v1.CreateAutoChargeIntentRequest]) (*connect_go.Response[v1.AutoChargeIntent], error) + GetAutoChargeIntent(context.Context, *connect_go.Request[v1.GetAutoChargeRequest]) (*connect_go.Response[v1.AutoChargeIntent], error) +} + +// NewDashboardServiceClient constructs a client for the +// stabilityai.api.dashboard.v1.DashboardService service. By default, it uses the Connect protocol +// with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To +// use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() +// options. +// +// The URL supplied here should be the base URL for the Connect or gRPC server (for example, +// http://api.acme.com or https://acme.com/grpc). +func NewDashboardServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) DashboardServiceClient { + baseURL = strings.TrimRight(baseURL, "/") + return &dashboardServiceClient{ + getMe: connect_go.NewClient[v1.EmptyRequest, v1.User]( + httpClient, + baseURL+DashboardServiceGetMeProcedure, + opts..., + ), + getOrganization: connect_go.NewClient[v1.GetOrganizationRequest, v1.Organization]( + httpClient, + baseURL+DashboardServiceGetOrganizationProcedure, + opts..., + ), + getMetrics: connect_go.NewClient[v1.GetMetricsRequest, v1.Metrics]( + httpClient, + baseURL+DashboardServiceGetMetricsProcedure, + opts..., + ), + createAPIKey: connect_go.NewClient[v1.APIKeyRequest, v1.APIKey]( + httpClient, + baseURL+DashboardServiceCreateAPIKeyProcedure, + opts..., + ), + deleteAPIKey: connect_go.NewClient[v1.APIKeyFindRequest, v1.APIKey]( + httpClient, + baseURL+DashboardServiceDeleteAPIKeyProcedure, + opts..., + ), + updateDefaultOrganization: connect_go.NewClient[v1.UpdateDefaultOrganizationRequest, v1.User]( + httpClient, + baseURL+DashboardServiceUpdateDefaultOrganizationProcedure, + opts..., + ), + getClientSettings: connect_go.NewClient[v1.EmptyRequest, v1.ClientSettings]( + httpClient, + baseURL+DashboardServiceGetClientSettingsProcedure, + opts..., + ), + setClientSettings: connect_go.NewClient[v1.ClientSettings, v1.ClientSettings]( + httpClient, + baseURL+DashboardServiceSetClientSettingsProcedure, + opts..., + ), + updateUserInfo: connect_go.NewClient[v1.UpdateUserInfoRequest, v1.User]( + httpClient, + baseURL+DashboardServiceUpdateUserInfoProcedure, + opts..., + ), + createPasswordChangeTicket: connect_go.NewClient[v1.EmptyRequest, v1.UserPasswordChangeTicket]( + httpClient, + baseURL+DashboardServiceCreatePasswordChangeTicketProcedure, + opts..., + ), + deleteAccount: connect_go.NewClient[v1.EmptyRequest, v1.User]( + httpClient, + baseURL+DashboardServiceDeleteAccountProcedure, + opts..., + ), + createCharge: connect_go.NewClient[v1.CreateChargeRequest, v1.Charge]( + httpClient, + baseURL+DashboardServiceCreateChargeProcedure, + opts..., + ), + getCharges: connect_go.NewClient[v1.GetChargesRequest, v1.Charges]( + httpClient, + baseURL+DashboardServiceGetChargesProcedure, + opts..., + ), + createAutoChargeIntent: connect_go.NewClient[v1.CreateAutoChargeIntentRequest, v1.AutoChargeIntent]( + httpClient, + baseURL+DashboardServiceCreateAutoChargeIntentProcedure, + opts..., + ), + updateAutoChargeIntent: connect_go.NewClient[v1.CreateAutoChargeIntentRequest, v1.AutoChargeIntent]( + httpClient, + baseURL+DashboardServiceUpdateAutoChargeIntentProcedure, + opts..., + ), + getAutoChargeIntent: connect_go.NewClient[v1.GetAutoChargeRequest, v1.AutoChargeIntent]( + httpClient, + baseURL+DashboardServiceGetAutoChargeIntentProcedure, + opts..., + ), + } +} + +// dashboardServiceClient implements DashboardServiceClient. +type dashboardServiceClient struct { + getMe *connect_go.Client[v1.EmptyRequest, v1.User] + getOrganization *connect_go.Client[v1.GetOrganizationRequest, v1.Organization] + getMetrics *connect_go.Client[v1.GetMetricsRequest, v1.Metrics] + createAPIKey *connect_go.Client[v1.APIKeyRequest, v1.APIKey] + deleteAPIKey *connect_go.Client[v1.APIKeyFindRequest, v1.APIKey] + updateDefaultOrganization *connect_go.Client[v1.UpdateDefaultOrganizationRequest, v1.User] + getClientSettings *connect_go.Client[v1.EmptyRequest, v1.ClientSettings] + setClientSettings *connect_go.Client[v1.ClientSettings, v1.ClientSettings] + updateUserInfo *connect_go.Client[v1.UpdateUserInfoRequest, v1.User] + createPasswordChangeTicket *connect_go.Client[v1.EmptyRequest, v1.UserPasswordChangeTicket] + deleteAccount *connect_go.Client[v1.EmptyRequest, v1.User] + createCharge *connect_go.Client[v1.CreateChargeRequest, v1.Charge] + getCharges *connect_go.Client[v1.GetChargesRequest, v1.Charges] + createAutoChargeIntent *connect_go.Client[v1.CreateAutoChargeIntentRequest, v1.AutoChargeIntent] + updateAutoChargeIntent *connect_go.Client[v1.CreateAutoChargeIntentRequest, v1.AutoChargeIntent] + getAutoChargeIntent *connect_go.Client[v1.GetAutoChargeRequest, v1.AutoChargeIntent] +} + +// GetMe calls stabilityai.api.dashboard.v1.DashboardService.GetMe. +func (c *dashboardServiceClient) GetMe(ctx context.Context, req *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.User], error) { + return c.getMe.CallUnary(ctx, req) +} + +// GetOrganization calls stabilityai.api.dashboard.v1.DashboardService.GetOrganization. +func (c *dashboardServiceClient) GetOrganization(ctx context.Context, req *connect_go.Request[v1.GetOrganizationRequest]) (*connect_go.Response[v1.Organization], error) { + return c.getOrganization.CallUnary(ctx, req) +} + +// GetMetrics calls stabilityai.api.dashboard.v1.DashboardService.GetMetrics. +func (c *dashboardServiceClient) GetMetrics(ctx context.Context, req *connect_go.Request[v1.GetMetricsRequest]) (*connect_go.Response[v1.Metrics], error) { + return c.getMetrics.CallUnary(ctx, req) +} + +// CreateAPIKey calls stabilityai.api.dashboard.v1.DashboardService.CreateAPIKey. +func (c *dashboardServiceClient) CreateAPIKey(ctx context.Context, req *connect_go.Request[v1.APIKeyRequest]) (*connect_go.Response[v1.APIKey], error) { + return c.createAPIKey.CallUnary(ctx, req) +} + +// DeleteAPIKey calls stabilityai.api.dashboard.v1.DashboardService.DeleteAPIKey. +func (c *dashboardServiceClient) DeleteAPIKey(ctx context.Context, req *connect_go.Request[v1.APIKeyFindRequest]) (*connect_go.Response[v1.APIKey], error) { + return c.deleteAPIKey.CallUnary(ctx, req) +} + +// UpdateDefaultOrganization calls +// stabilityai.api.dashboard.v1.DashboardService.UpdateDefaultOrganization. +func (c *dashboardServiceClient) UpdateDefaultOrganization(ctx context.Context, req *connect_go.Request[v1.UpdateDefaultOrganizationRequest]) (*connect_go.Response[v1.User], error) { + return c.updateDefaultOrganization.CallUnary(ctx, req) +} + +// GetClientSettings calls stabilityai.api.dashboard.v1.DashboardService.GetClientSettings. +func (c *dashboardServiceClient) GetClientSettings(ctx context.Context, req *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.ClientSettings], error) { + return c.getClientSettings.CallUnary(ctx, req) +} + +// SetClientSettings calls stabilityai.api.dashboard.v1.DashboardService.SetClientSettings. +func (c *dashboardServiceClient) SetClientSettings(ctx context.Context, req *connect_go.Request[v1.ClientSettings]) (*connect_go.Response[v1.ClientSettings], error) { + return c.setClientSettings.CallUnary(ctx, req) +} + +// UpdateUserInfo calls stabilityai.api.dashboard.v1.DashboardService.UpdateUserInfo. +func (c *dashboardServiceClient) UpdateUserInfo(ctx context.Context, req *connect_go.Request[v1.UpdateUserInfoRequest]) (*connect_go.Response[v1.User], error) { + return c.updateUserInfo.CallUnary(ctx, req) +} + +// CreatePasswordChangeTicket calls +// stabilityai.api.dashboard.v1.DashboardService.CreatePasswordChangeTicket. +func (c *dashboardServiceClient) CreatePasswordChangeTicket(ctx context.Context, req *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.UserPasswordChangeTicket], error) { + return c.createPasswordChangeTicket.CallUnary(ctx, req) +} + +// DeleteAccount calls stabilityai.api.dashboard.v1.DashboardService.DeleteAccount. +func (c *dashboardServiceClient) DeleteAccount(ctx context.Context, req *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.User], error) { + return c.deleteAccount.CallUnary(ctx, req) +} + +// CreateCharge calls stabilityai.api.dashboard.v1.DashboardService.CreateCharge. +func (c *dashboardServiceClient) CreateCharge(ctx context.Context, req *connect_go.Request[v1.CreateChargeRequest]) (*connect_go.Response[v1.Charge], error) { + return c.createCharge.CallUnary(ctx, req) +} + +// GetCharges calls stabilityai.api.dashboard.v1.DashboardService.GetCharges. +func (c *dashboardServiceClient) GetCharges(ctx context.Context, req *connect_go.Request[v1.GetChargesRequest]) (*connect_go.Response[v1.Charges], error) { + return c.getCharges.CallUnary(ctx, req) +} + +// CreateAutoChargeIntent calls +// stabilityai.api.dashboard.v1.DashboardService.CreateAutoChargeIntent. +func (c *dashboardServiceClient) CreateAutoChargeIntent(ctx context.Context, req *connect_go.Request[v1.CreateAutoChargeIntentRequest]) (*connect_go.Response[v1.AutoChargeIntent], error) { + return c.createAutoChargeIntent.CallUnary(ctx, req) +} + +// UpdateAutoChargeIntent calls +// stabilityai.api.dashboard.v1.DashboardService.UpdateAutoChargeIntent. +func (c *dashboardServiceClient) UpdateAutoChargeIntent(ctx context.Context, req *connect_go.Request[v1.CreateAutoChargeIntentRequest]) (*connect_go.Response[v1.AutoChargeIntent], error) { + return c.updateAutoChargeIntent.CallUnary(ctx, req) +} + +// GetAutoChargeIntent calls stabilityai.api.dashboard.v1.DashboardService.GetAutoChargeIntent. +func (c *dashboardServiceClient) GetAutoChargeIntent(ctx context.Context, req *connect_go.Request[v1.GetAutoChargeRequest]) (*connect_go.Response[v1.AutoChargeIntent], error) { + return c.getAutoChargeIntent.CallUnary(ctx, req) +} + +// DashboardServiceHandler is an implementation of the stabilityai.api.dashboard.v1.DashboardService +// service. +type DashboardServiceHandler interface { + // Get info + GetMe(context.Context, *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.User], error) + GetOrganization(context.Context, *connect_go.Request[v1.GetOrganizationRequest]) (*connect_go.Response[v1.Organization], error) + GetMetrics(context.Context, *connect_go.Request[v1.GetMetricsRequest]) (*connect_go.Response[v1.Metrics], error) + // API key management + CreateAPIKey(context.Context, *connect_go.Request[v1.APIKeyRequest]) (*connect_go.Response[v1.APIKey], error) + DeleteAPIKey(context.Context, *connect_go.Request[v1.APIKeyFindRequest]) (*connect_go.Response[v1.APIKey], error) + // User settings + UpdateDefaultOrganization(context.Context, *connect_go.Request[v1.UpdateDefaultOrganizationRequest]) (*connect_go.Response[v1.User], error) + GetClientSettings(context.Context, *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.ClientSettings], error) + SetClientSettings(context.Context, *connect_go.Request[v1.ClientSettings]) (*connect_go.Response[v1.ClientSettings], error) + UpdateUserInfo(context.Context, *connect_go.Request[v1.UpdateUserInfoRequest]) (*connect_go.Response[v1.User], error) + CreatePasswordChangeTicket(context.Context, *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.UserPasswordChangeTicket], error) + DeleteAccount(context.Context, *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.User], error) + // Payment functions + CreateCharge(context.Context, *connect_go.Request[v1.CreateChargeRequest]) (*connect_go.Response[v1.Charge], error) + GetCharges(context.Context, *connect_go.Request[v1.GetChargesRequest]) (*connect_go.Response[v1.Charges], error) + CreateAutoChargeIntent(context.Context, *connect_go.Request[v1.CreateAutoChargeIntentRequest]) (*connect_go.Response[v1.AutoChargeIntent], error) + UpdateAutoChargeIntent(context.Context, *connect_go.Request[v1.CreateAutoChargeIntentRequest]) (*connect_go.Response[v1.AutoChargeIntent], error) + GetAutoChargeIntent(context.Context, *connect_go.Request[v1.GetAutoChargeRequest]) (*connect_go.Response[v1.AutoChargeIntent], error) +} + +// NewDashboardServiceHandler builds an HTTP handler from the service implementation. It returns the +// path on which to mount the handler and the handler itself. +// +// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf +// and JSON codecs. They also support gzip compression. +func NewDashboardServiceHandler(svc DashboardServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler) { + mux := http.NewServeMux() + mux.Handle(DashboardServiceGetMeProcedure, connect_go.NewUnaryHandler( + DashboardServiceGetMeProcedure, + svc.GetMe, + opts..., + )) + mux.Handle(DashboardServiceGetOrganizationProcedure, connect_go.NewUnaryHandler( + DashboardServiceGetOrganizationProcedure, + svc.GetOrganization, + opts..., + )) + mux.Handle(DashboardServiceGetMetricsProcedure, connect_go.NewUnaryHandler( + DashboardServiceGetMetricsProcedure, + svc.GetMetrics, + opts..., + )) + mux.Handle(DashboardServiceCreateAPIKeyProcedure, connect_go.NewUnaryHandler( + DashboardServiceCreateAPIKeyProcedure, + svc.CreateAPIKey, + opts..., + )) + mux.Handle(DashboardServiceDeleteAPIKeyProcedure, connect_go.NewUnaryHandler( + DashboardServiceDeleteAPIKeyProcedure, + svc.DeleteAPIKey, + opts..., + )) + mux.Handle(DashboardServiceUpdateDefaultOrganizationProcedure, connect_go.NewUnaryHandler( + DashboardServiceUpdateDefaultOrganizationProcedure, + svc.UpdateDefaultOrganization, + opts..., + )) + mux.Handle(DashboardServiceGetClientSettingsProcedure, connect_go.NewUnaryHandler( + DashboardServiceGetClientSettingsProcedure, + svc.GetClientSettings, + opts..., + )) + mux.Handle(DashboardServiceSetClientSettingsProcedure, connect_go.NewUnaryHandler( + DashboardServiceSetClientSettingsProcedure, + svc.SetClientSettings, + opts..., + )) + mux.Handle(DashboardServiceUpdateUserInfoProcedure, connect_go.NewUnaryHandler( + DashboardServiceUpdateUserInfoProcedure, + svc.UpdateUserInfo, + opts..., + )) + mux.Handle(DashboardServiceCreatePasswordChangeTicketProcedure, connect_go.NewUnaryHandler( + DashboardServiceCreatePasswordChangeTicketProcedure, + svc.CreatePasswordChangeTicket, + opts..., + )) + mux.Handle(DashboardServiceDeleteAccountProcedure, connect_go.NewUnaryHandler( + DashboardServiceDeleteAccountProcedure, + svc.DeleteAccount, + opts..., + )) + mux.Handle(DashboardServiceCreateChargeProcedure, connect_go.NewUnaryHandler( + DashboardServiceCreateChargeProcedure, + svc.CreateCharge, + opts..., + )) + mux.Handle(DashboardServiceGetChargesProcedure, connect_go.NewUnaryHandler( + DashboardServiceGetChargesProcedure, + svc.GetCharges, + opts..., + )) + mux.Handle(DashboardServiceCreateAutoChargeIntentProcedure, connect_go.NewUnaryHandler( + DashboardServiceCreateAutoChargeIntentProcedure, + svc.CreateAutoChargeIntent, + opts..., + )) + mux.Handle(DashboardServiceUpdateAutoChargeIntentProcedure, connect_go.NewUnaryHandler( + DashboardServiceUpdateAutoChargeIntentProcedure, + svc.UpdateAutoChargeIntent, + opts..., + )) + mux.Handle(DashboardServiceGetAutoChargeIntentProcedure, connect_go.NewUnaryHandler( + DashboardServiceGetAutoChargeIntentProcedure, + svc.GetAutoChargeIntent, + opts..., + )) + return "/stabilityai.api.dashboard.v1.DashboardService/", mux +} + +// UnimplementedDashboardServiceHandler returns CodeUnimplemented from all methods. +type UnimplementedDashboardServiceHandler struct{} + +func (UnimplementedDashboardServiceHandler) GetMe(context.Context, *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.User], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.GetMe is not implemented")) +} + +func (UnimplementedDashboardServiceHandler) GetOrganization(context.Context, *connect_go.Request[v1.GetOrganizationRequest]) (*connect_go.Response[v1.Organization], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.GetOrganization is not implemented")) +} + +func (UnimplementedDashboardServiceHandler) GetMetrics(context.Context, *connect_go.Request[v1.GetMetricsRequest]) (*connect_go.Response[v1.Metrics], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.GetMetrics is not implemented")) +} + +func (UnimplementedDashboardServiceHandler) CreateAPIKey(context.Context, *connect_go.Request[v1.APIKeyRequest]) (*connect_go.Response[v1.APIKey], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.CreateAPIKey is not implemented")) +} + +func (UnimplementedDashboardServiceHandler) DeleteAPIKey(context.Context, *connect_go.Request[v1.APIKeyFindRequest]) (*connect_go.Response[v1.APIKey], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.DeleteAPIKey is not implemented")) +} + +func (UnimplementedDashboardServiceHandler) UpdateDefaultOrganization(context.Context, *connect_go.Request[v1.UpdateDefaultOrganizationRequest]) (*connect_go.Response[v1.User], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.UpdateDefaultOrganization is not implemented")) +} + +func (UnimplementedDashboardServiceHandler) GetClientSettings(context.Context, *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.ClientSettings], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.GetClientSettings is not implemented")) +} + +func (UnimplementedDashboardServiceHandler) SetClientSettings(context.Context, *connect_go.Request[v1.ClientSettings]) (*connect_go.Response[v1.ClientSettings], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.SetClientSettings is not implemented")) +} + +func (UnimplementedDashboardServiceHandler) UpdateUserInfo(context.Context, *connect_go.Request[v1.UpdateUserInfoRequest]) (*connect_go.Response[v1.User], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.UpdateUserInfo is not implemented")) +} + +func (UnimplementedDashboardServiceHandler) CreatePasswordChangeTicket(context.Context, *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.UserPasswordChangeTicket], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.CreatePasswordChangeTicket is not implemented")) +} + +func (UnimplementedDashboardServiceHandler) DeleteAccount(context.Context, *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.User], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.DeleteAccount is not implemented")) +} + +func (UnimplementedDashboardServiceHandler) CreateCharge(context.Context, *connect_go.Request[v1.CreateChargeRequest]) (*connect_go.Response[v1.Charge], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.CreateCharge is not implemented")) +} + +func (UnimplementedDashboardServiceHandler) GetCharges(context.Context, *connect_go.Request[v1.GetChargesRequest]) (*connect_go.Response[v1.Charges], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.GetCharges is not implemented")) +} + +func (UnimplementedDashboardServiceHandler) CreateAutoChargeIntent(context.Context, *connect_go.Request[v1.CreateAutoChargeIntentRequest]) (*connect_go.Response[v1.AutoChargeIntent], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.CreateAutoChargeIntent is not implemented")) +} + +func (UnimplementedDashboardServiceHandler) UpdateAutoChargeIntent(context.Context, *connect_go.Request[v1.CreateAutoChargeIntentRequest]) (*connect_go.Response[v1.AutoChargeIntent], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.UpdateAutoChargeIntent is not implemented")) +} + +func (UnimplementedDashboardServiceHandler) GetAutoChargeIntent(context.Context, *connect_go.Request[v1.GetAutoChargeRequest]) (*connect_go.Response[v1.AutoChargeIntent], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.GetAutoChargeIntent is not implemented")) +} diff --git a/gen/proto/go/stabilityai/platformapis/engines/v1/engines.pb.go b/gen/proto/go/stabilityai/platformapis/engines/v1/engines.pb.go new file mode 100644 index 0000000..6b8eae7 --- /dev/null +++ b/gen/proto/go/stabilityai/platformapis/engines/v1/engines.pb.go @@ -0,0 +1,479 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: stabilityai/platformapis/engines/v1/engines.proto + +package enginesv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Possible engine type +type EngineType int32 + +const ( + EngineType_TEXT EngineType = 0 + EngineType_PICTURE EngineType = 1 + EngineType_AUDIO EngineType = 2 + EngineType_VIDEO EngineType = 3 + EngineType_CLASSIFICATION EngineType = 4 + EngineType_STORAGE EngineType = 5 +) + +// Enum value maps for EngineType. +var ( + EngineType_name = map[int32]string{ + 0: "TEXT", + 1: "PICTURE", + 2: "AUDIO", + 3: "VIDEO", + 4: "CLASSIFICATION", + 5: "STORAGE", + } + EngineType_value = map[string]int32{ + "TEXT": 0, + "PICTURE": 1, + "AUDIO": 2, + "VIDEO": 3, + "CLASSIFICATION": 4, + "STORAGE": 5, + } +) + +func (x EngineType) Enum() *EngineType { + p := new(EngineType) + *p = x + return p +} + +func (x EngineType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (EngineType) Descriptor() protoreflect.EnumDescriptor { + return file_stabilityai_platformapis_engines_v1_engines_proto_enumTypes[0].Descriptor() +} + +func (EngineType) Type() protoreflect.EnumType { + return &file_stabilityai_platformapis_engines_v1_engines_proto_enumTypes[0] +} + +func (x EngineType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use EngineType.Descriptor instead. +func (EngineType) EnumDescriptor() ([]byte, []int) { + return file_stabilityai_platformapis_engines_v1_engines_proto_rawDescGZIP(), []int{0} +} + +type EngineTokenizer int32 + +const ( + EngineTokenizer_GPT2 EngineTokenizer = 0 + EngineTokenizer_PILE EngineTokenizer = 1 +) + +// Enum value maps for EngineTokenizer. +var ( + EngineTokenizer_name = map[int32]string{ + 0: "GPT2", + 1: "PILE", + } + EngineTokenizer_value = map[string]int32{ + "GPT2": 0, + "PILE": 1, + } +) + +func (x EngineTokenizer) Enum() *EngineTokenizer { + p := new(EngineTokenizer) + *p = x + return p +} + +func (x EngineTokenizer) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (EngineTokenizer) Descriptor() protoreflect.EnumDescriptor { + return file_stabilityai_platformapis_engines_v1_engines_proto_enumTypes[1].Descriptor() +} + +func (EngineTokenizer) Type() protoreflect.EnumType { + return &file_stabilityai_platformapis_engines_v1_engines_proto_enumTypes[1] +} + +func (x EngineTokenizer) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use EngineTokenizer.Descriptor instead. +func (EngineTokenizer) EnumDescriptor() ([]byte, []int) { + return file_stabilityai_platformapis_engines_v1_engines_proto_rawDescGZIP(), []int{1} +} + +// Engine info struct +type EngineInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` + Ready bool `protobuf:"varint,3,opt,name=ready,proto3" json:"ready,omitempty"` + Type EngineType `protobuf:"varint,4,opt,name=type,proto3,enum=stabilityai.platformapis.engines.v1.EngineType" json:"type,omitempty"` + Tokenizer EngineTokenizer `protobuf:"varint,5,opt,name=tokenizer,proto3,enum=stabilityai.platformapis.engines.v1.EngineTokenizer" json:"tokenizer,omitempty"` + Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"` +} + +func (x *EngineInfo) Reset() { + *x = EngineInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_engines_v1_engines_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EngineInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EngineInfo) ProtoMessage() {} + +func (x *EngineInfo) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_engines_v1_engines_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EngineInfo.ProtoReflect.Descriptor instead. +func (*EngineInfo) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_engines_v1_engines_proto_rawDescGZIP(), []int{0} +} + +func (x *EngineInfo) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *EngineInfo) GetOwner() string { + if x != nil { + return x.Owner + } + return "" +} + +func (x *EngineInfo) GetReady() bool { + if x != nil { + return x.Ready + } + return false +} + +func (x *EngineInfo) GetType() EngineType { + if x != nil { + return x.Type + } + return EngineType_TEXT +} + +func (x *EngineInfo) GetTokenizer() EngineTokenizer { + if x != nil { + return x.Tokenizer + } + return EngineTokenizer_GPT2 +} + +func (x *EngineInfo) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *EngineInfo) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +type ListEnginesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ListEnginesRequest) Reset() { + *x = ListEnginesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_engines_v1_engines_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListEnginesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListEnginesRequest) ProtoMessage() {} + +func (x *ListEnginesRequest) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_engines_v1_engines_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListEnginesRequest.ProtoReflect.Descriptor instead. +func (*ListEnginesRequest) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_engines_v1_engines_proto_rawDescGZIP(), []int{1} +} + +// Engine info list +type Engines struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Engine []*EngineInfo `protobuf:"bytes,1,rep,name=engine,proto3" json:"engine,omitempty"` +} + +func (x *Engines) Reset() { + *x = Engines{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_engines_v1_engines_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Engines) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Engines) ProtoMessage() {} + +func (x *Engines) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_engines_v1_engines_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Engines.ProtoReflect.Descriptor instead. +func (*Engines) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_engines_v1_engines_proto_rawDescGZIP(), []int{2} +} + +func (x *Engines) GetEngine() []*EngineInfo { + if x != nil { + return x.Engine + } + return nil +} + +var File_stabilityai_platformapis_engines_v1_engines_proto protoreflect.FileDescriptor + +var file_stabilityai_platformapis_engines_v1_engines_proto_rawDesc = []byte{ + 0x0a, 0x31, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2f, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x65, 0x6e, 0x67, 0x69, 0x6e, + 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x23, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, + 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x22, 0x97, 0x02, 0x0a, 0x0a, 0x45, 0x6e, 0x67, + 0x69, 0x6e, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x14, 0x0a, + 0x05, 0x72, 0x65, 0x61, 0x64, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x72, 0x65, + 0x61, 0x64, 0x79, 0x12, 0x43, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, + 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x52, 0x0a, 0x09, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, + 0x72, 0x52, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x14, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x52, 0x0a, 0x07, 0x45, 0x6e, 0x67, 0x69, + 0x6e, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, + 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2a, 0x5a, 0x0a, 0x0a, + 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x45, + 0x58, 0x54, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x49, 0x43, 0x54, 0x55, 0x52, 0x45, 0x10, + 0x01, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x55, 0x44, 0x49, 0x4f, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, + 0x56, 0x49, 0x44, 0x45, 0x4f, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4c, 0x41, 0x53, 0x53, + 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x53, + 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x10, 0x05, 0x2a, 0x25, 0x0a, 0x0f, 0x45, 0x6e, 0x67, 0x69, + 0x6e, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x08, 0x0a, 0x04, 0x47, + 0x50, 0x54, 0x32, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x50, 0x49, 0x4c, 0x45, 0x10, 0x01, 0x32, + 0x88, 0x01, 0x0a, 0x0e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x12, 0x76, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, + 0x73, 0x12, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, + 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x67, 0x69, + 0x6e, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x22, 0x00, 0x42, 0xc9, 0x02, 0x0a, 0x27, 0x63, + 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, 0x69, + 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x61, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, 0x61, 0x69, 0x2f, + 0x61, 0x70, 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x67, + 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x61, 0x70, 0x69, 0x73, 0x2f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, + 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, 0x45, 0xaa, + 0x02, 0x23, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x50, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, + 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x23, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, + 0x5c, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x2f, 0x53, 0x74, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x5c, 0x56, + 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x26, + 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x3a, 0x3a, 0x50, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x3a, 0x3a, 0x45, 0x6e, 0x67, 0x69, 0x6e, + 0x65, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_stabilityai_platformapis_engines_v1_engines_proto_rawDescOnce sync.Once + file_stabilityai_platformapis_engines_v1_engines_proto_rawDescData = file_stabilityai_platformapis_engines_v1_engines_proto_rawDesc +) + +func file_stabilityai_platformapis_engines_v1_engines_proto_rawDescGZIP() []byte { + file_stabilityai_platformapis_engines_v1_engines_proto_rawDescOnce.Do(func() { + file_stabilityai_platformapis_engines_v1_engines_proto_rawDescData = protoimpl.X.CompressGZIP(file_stabilityai_platformapis_engines_v1_engines_proto_rawDescData) + }) + return file_stabilityai_platformapis_engines_v1_engines_proto_rawDescData +} + +var file_stabilityai_platformapis_engines_v1_engines_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_stabilityai_platformapis_engines_v1_engines_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_stabilityai_platformapis_engines_v1_engines_proto_goTypes = []interface{}{ + (EngineType)(0), // 0: stabilityai.platformapis.engines.v1.EngineType + (EngineTokenizer)(0), // 1: stabilityai.platformapis.engines.v1.EngineTokenizer + (*EngineInfo)(nil), // 2: stabilityai.platformapis.engines.v1.EngineInfo + (*ListEnginesRequest)(nil), // 3: stabilityai.platformapis.engines.v1.ListEnginesRequest + (*Engines)(nil), // 4: stabilityai.platformapis.engines.v1.Engines +} +var file_stabilityai_platformapis_engines_v1_engines_proto_depIdxs = []int32{ + 0, // 0: stabilityai.platformapis.engines.v1.EngineInfo.type:type_name -> stabilityai.platformapis.engines.v1.EngineType + 1, // 1: stabilityai.platformapis.engines.v1.EngineInfo.tokenizer:type_name -> stabilityai.platformapis.engines.v1.EngineTokenizer + 2, // 2: stabilityai.platformapis.engines.v1.Engines.engine:type_name -> stabilityai.platformapis.engines.v1.EngineInfo + 3, // 3: stabilityai.platformapis.engines.v1.EnginesService.ListEngines:input_type -> stabilityai.platformapis.engines.v1.ListEnginesRequest + 4, // 4: stabilityai.platformapis.engines.v1.EnginesService.ListEngines:output_type -> stabilityai.platformapis.engines.v1.Engines + 4, // [4:5] is the sub-list for method output_type + 3, // [3:4] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_stabilityai_platformapis_engines_v1_engines_proto_init() } +func file_stabilityai_platformapis_engines_v1_engines_proto_init() { + if File_stabilityai_platformapis_engines_v1_engines_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_stabilityai_platformapis_engines_v1_engines_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EngineInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_engines_v1_engines_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListEnginesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_engines_v1_engines_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Engines); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_stabilityai_platformapis_engines_v1_engines_proto_rawDesc, + NumEnums: 2, + NumMessages: 3, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_stabilityai_platformapis_engines_v1_engines_proto_goTypes, + DependencyIndexes: file_stabilityai_platformapis_engines_v1_engines_proto_depIdxs, + EnumInfos: file_stabilityai_platformapis_engines_v1_engines_proto_enumTypes, + MessageInfos: file_stabilityai_platformapis_engines_v1_engines_proto_msgTypes, + }.Build() + File_stabilityai_platformapis_engines_v1_engines_proto = out.File + file_stabilityai_platformapis_engines_v1_engines_proto_rawDesc = nil + file_stabilityai_platformapis_engines_v1_engines_proto_goTypes = nil + file_stabilityai_platformapis_engines_v1_engines_proto_depIdxs = nil +} diff --git a/gen/proto/go/stabilityai/platformapis/engines/v1/engines_grpc.pb.go b/gen/proto/go/stabilityai/platformapis/engines/v1/engines_grpc.pb.go new file mode 100644 index 0000000..8d11a50 --- /dev/null +++ b/gen/proto/go/stabilityai/platformapis/engines/v1/engines_grpc.pb.go @@ -0,0 +1,109 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: stabilityai/platformapis/engines/v1/engines.proto + +package enginesv1 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + EnginesService_ListEngines_FullMethodName = "/stabilityai.platformapis.engines.v1.EnginesService/ListEngines" +) + +// EnginesServiceClient is the client API for EnginesService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type EnginesServiceClient interface { + ListEngines(ctx context.Context, in *ListEnginesRequest, opts ...grpc.CallOption) (*Engines, error) +} + +type enginesServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewEnginesServiceClient(cc grpc.ClientConnInterface) EnginesServiceClient { + return &enginesServiceClient{cc} +} + +func (c *enginesServiceClient) ListEngines(ctx context.Context, in *ListEnginesRequest, opts ...grpc.CallOption) (*Engines, error) { + out := new(Engines) + err := c.cc.Invoke(ctx, EnginesService_ListEngines_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// EnginesServiceServer is the server API for EnginesService service. +// All implementations must embed UnimplementedEnginesServiceServer +// for forward compatibility +type EnginesServiceServer interface { + ListEngines(context.Context, *ListEnginesRequest) (*Engines, error) + mustEmbedUnimplementedEnginesServiceServer() +} + +// UnimplementedEnginesServiceServer must be embedded to have forward compatible implementations. +type UnimplementedEnginesServiceServer struct { +} + +func (UnimplementedEnginesServiceServer) ListEngines(context.Context, *ListEnginesRequest) (*Engines, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListEngines not implemented") +} +func (UnimplementedEnginesServiceServer) mustEmbedUnimplementedEnginesServiceServer() {} + +// UnsafeEnginesServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to EnginesServiceServer will +// result in compilation errors. +type UnsafeEnginesServiceServer interface { + mustEmbedUnimplementedEnginesServiceServer() +} + +func RegisterEnginesServiceServer(s grpc.ServiceRegistrar, srv EnginesServiceServer) { + s.RegisterService(&EnginesService_ServiceDesc, srv) +} + +func _EnginesService_ListEngines_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListEnginesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(EnginesServiceServer).ListEngines(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: EnginesService_ListEngines_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EnginesServiceServer).ListEngines(ctx, req.(*ListEnginesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// EnginesService_ServiceDesc is the grpc.ServiceDesc for EnginesService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var EnginesService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "stabilityai.platformapis.engines.v1.EnginesService", + HandlerType: (*EnginesServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ListEngines", + Handler: _EnginesService_ListEngines_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "stabilityai/platformapis/engines/v1/engines.proto", +} diff --git a/gen/proto/go/stabilityai/platformapis/engines/v1/enginesv1connect/engines.connect.go b/gen/proto/go/stabilityai/platformapis/engines/v1/enginesv1connect/engines.connect.go new file mode 100644 index 0000000..3e54513 --- /dev/null +++ b/gen/proto/go/stabilityai/platformapis/engines/v1/enginesv1connect/engines.connect.go @@ -0,0 +1,102 @@ +// Code generated by protoc-gen-connect-go. DO NOT EDIT. +// +// Source: stabilityai/platformapis/engines/v1/engines.proto + +package enginesv1connect + +import ( + context "context" + errors "errors" + connect_go "github.com/bufbuild/connect-go" + v1 "github.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/engines/v1" + http "net/http" + strings "strings" +) + +// This is a compile-time assertion to ensure that this generated file and the connect package are +// compatible. If you get a compiler error that this constant is not defined, this code was +// generated with a version of connect newer than the one compiled into your binary. You can fix the +// problem by either regenerating this code with an older version of connect or updating the connect +// version compiled into your binary. +const _ = connect_go.IsAtLeastVersion0_1_0 + +const ( + // EnginesServiceName is the fully-qualified name of the EnginesService service. + EnginesServiceName = "stabilityai.platformapis.engines.v1.EnginesService" +) + +// These constants are the fully-qualified names of the RPCs defined in this package. They're +// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route. +// +// Note that these are different from the fully-qualified method names used by +// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to +// reflection-formatted method names, remove the leading slash and convert the remaining slash to a +// period. +const ( + // EnginesServiceListEnginesProcedure is the fully-qualified name of the EnginesService's + // ListEngines RPC. + EnginesServiceListEnginesProcedure = "/stabilityai.platformapis.engines.v1.EnginesService/ListEngines" +) + +// EnginesServiceClient is a client for the stabilityai.platformapis.engines.v1.EnginesService +// service. +type EnginesServiceClient interface { + ListEngines(context.Context, *connect_go.Request[v1.ListEnginesRequest]) (*connect_go.Response[v1.Engines], error) +} + +// NewEnginesServiceClient constructs a client for the +// stabilityai.platformapis.engines.v1.EnginesService service. By default, it uses the Connect +// protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed +// requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or +// connect.WithGRPCWeb() options. +// +// The URL supplied here should be the base URL for the Connect or gRPC server (for example, +// http://api.acme.com or https://acme.com/grpc). +func NewEnginesServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) EnginesServiceClient { + baseURL = strings.TrimRight(baseURL, "/") + return &enginesServiceClient{ + listEngines: connect_go.NewClient[v1.ListEnginesRequest, v1.Engines]( + httpClient, + baseURL+EnginesServiceListEnginesProcedure, + opts..., + ), + } +} + +// enginesServiceClient implements EnginesServiceClient. +type enginesServiceClient struct { + listEngines *connect_go.Client[v1.ListEnginesRequest, v1.Engines] +} + +// ListEngines calls stabilityai.platformapis.engines.v1.EnginesService.ListEngines. +func (c *enginesServiceClient) ListEngines(ctx context.Context, req *connect_go.Request[v1.ListEnginesRequest]) (*connect_go.Response[v1.Engines], error) { + return c.listEngines.CallUnary(ctx, req) +} + +// EnginesServiceHandler is an implementation of the +// stabilityai.platformapis.engines.v1.EnginesService service. +type EnginesServiceHandler interface { + ListEngines(context.Context, *connect_go.Request[v1.ListEnginesRequest]) (*connect_go.Response[v1.Engines], error) +} + +// NewEnginesServiceHandler builds an HTTP handler from the service implementation. It returns the +// path on which to mount the handler and the handler itself. +// +// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf +// and JSON codecs. They also support gzip compression. +func NewEnginesServiceHandler(svc EnginesServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler) { + mux := http.NewServeMux() + mux.Handle(EnginesServiceListEnginesProcedure, connect_go.NewUnaryHandler( + EnginesServiceListEnginesProcedure, + svc.ListEngines, + opts..., + )) + return "/stabilityai.platformapis.engines.v1.EnginesService/", mux +} + +// UnimplementedEnginesServiceHandler returns CodeUnimplemented from all methods. +type UnimplementedEnginesServiceHandler struct{} + +func (UnimplementedEnginesServiceHandler) ListEngines(context.Context, *connect_go.Request[v1.ListEnginesRequest]) (*connect_go.Response[v1.Engines], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.platformapis.engines.v1.EnginesService.ListEngines is not implemented")) +} diff --git a/gen/proto/go/stabilityai/platformapis/generation/v1/generation.pb.go b/gen/proto/go/stabilityai/platformapis/generation/v1/generation.pb.go new file mode 100644 index 0000000..6d0e6ab --- /dev/null +++ b/gen/proto/go/stabilityai/platformapis/generation/v1/generation.pb.go @@ -0,0 +1,5219 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: stabilityai/platformapis/generation/v1/generation.proto + +package generationv1 + +import ( + tensors "github.com/stability-ai/api-interfaces/gen/proto/go/coreweave/tensors" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + structpb "google.golang.org/protobuf/types/known/structpb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type FinishReason int32 + +const ( + FinishReason_NULL FinishReason = 0 + FinishReason_LENGTH FinishReason = 1 + FinishReason_STOP FinishReason = 2 + FinishReason_ERROR FinishReason = 3 + FinishReason_FILTER FinishReason = 4 +) + +// Enum value maps for FinishReason. +var ( + FinishReason_name = map[int32]string{ + 0: "NULL", + 1: "LENGTH", + 2: "STOP", + 3: "ERROR", + 4: "FILTER", + } + FinishReason_value = map[string]int32{ + "NULL": 0, + "LENGTH": 1, + "STOP": 2, + "ERROR": 3, + "FILTER": 4, + } +) + +func (x FinishReason) Enum() *FinishReason { + p := new(FinishReason) + *p = x + return p +} + +func (x FinishReason) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (FinishReason) Descriptor() protoreflect.EnumDescriptor { + return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[0].Descriptor() +} + +func (FinishReason) Type() protoreflect.EnumType { + return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[0] +} + +func (x FinishReason) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use FinishReason.Descriptor instead. +func (FinishReason) EnumDescriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{0} +} + +type ArtifactType int32 + +const ( + ArtifactType_ARTIFACT_NONE ArtifactType = 0 + ArtifactType_ARTIFACT_IMAGE ArtifactType = 1 + ArtifactType_ARTIFACT_VIDEO ArtifactType = 2 + ArtifactType_ARTIFACT_TEXT ArtifactType = 3 + ArtifactType_ARTIFACT_TOKENS ArtifactType = 4 + ArtifactType_ARTIFACT_EMBEDDING ArtifactType = 5 + ArtifactType_ARTIFACT_CLASSIFICATIONS ArtifactType = 6 + ArtifactType_ARTIFACT_MASK ArtifactType = 7 + ArtifactType_ARTIFACT_LATENT ArtifactType = 8 + ArtifactType_ARTIFACT_TENSOR ArtifactType = 9 + ArtifactType_ARTIFACT_DEPTH ArtifactType = 10 +) + +// Enum value maps for ArtifactType. +var ( + ArtifactType_name = map[int32]string{ + 0: "ARTIFACT_NONE", + 1: "ARTIFACT_IMAGE", + 2: "ARTIFACT_VIDEO", + 3: "ARTIFACT_TEXT", + 4: "ARTIFACT_TOKENS", + 5: "ARTIFACT_EMBEDDING", + 6: "ARTIFACT_CLASSIFICATIONS", + 7: "ARTIFACT_MASK", + 8: "ARTIFACT_LATENT", + 9: "ARTIFACT_TENSOR", + 10: "ARTIFACT_DEPTH", + } + ArtifactType_value = map[string]int32{ + "ARTIFACT_NONE": 0, + "ARTIFACT_IMAGE": 1, + "ARTIFACT_VIDEO": 2, + "ARTIFACT_TEXT": 3, + "ARTIFACT_TOKENS": 4, + "ARTIFACT_EMBEDDING": 5, + "ARTIFACT_CLASSIFICATIONS": 6, + "ARTIFACT_MASK": 7, + "ARTIFACT_LATENT": 8, + "ARTIFACT_TENSOR": 9, + "ARTIFACT_DEPTH": 10, + } +) + +func (x ArtifactType) Enum() *ArtifactType { + p := new(ArtifactType) + *p = x + return p +} + +func (x ArtifactType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ArtifactType) Descriptor() protoreflect.EnumDescriptor { + return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[1].Descriptor() +} + +func (ArtifactType) Type() protoreflect.EnumType { + return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[1] +} + +func (x ArtifactType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ArtifactType.Descriptor instead. +func (ArtifactType) EnumDescriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{1} +} + +type MaskedAreaInit int32 + +const ( + MaskedAreaInit_MASKED_AREA_INIT_ZERO MaskedAreaInit = 0 + MaskedAreaInit_MASKED_AREA_INIT_RANDOM MaskedAreaInit = 1 + MaskedAreaInit_MASKED_AREA_INIT_ORIGINAL MaskedAreaInit = 2 +) + +// Enum value maps for MaskedAreaInit. +var ( + MaskedAreaInit_name = map[int32]string{ + 0: "MASKED_AREA_INIT_ZERO", + 1: "MASKED_AREA_INIT_RANDOM", + 2: "MASKED_AREA_INIT_ORIGINAL", + } + MaskedAreaInit_value = map[string]int32{ + "MASKED_AREA_INIT_ZERO": 0, + "MASKED_AREA_INIT_RANDOM": 1, + "MASKED_AREA_INIT_ORIGINAL": 2, + } +) + +func (x MaskedAreaInit) Enum() *MaskedAreaInit { + p := new(MaskedAreaInit) + *p = x + return p +} + +func (x MaskedAreaInit) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (MaskedAreaInit) Descriptor() protoreflect.EnumDescriptor { + return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[2].Descriptor() +} + +func (MaskedAreaInit) Type() protoreflect.EnumType { + return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[2] +} + +func (x MaskedAreaInit) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use MaskedAreaInit.Descriptor instead. +func (MaskedAreaInit) EnumDescriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{2} +} + +type WeightMethod int32 + +const ( + WeightMethod_TEXT_ENCODER WeightMethod = 0 + WeightMethod_CROSS_ATTENTION WeightMethod = 1 +) + +// Enum value maps for WeightMethod. +var ( + WeightMethod_name = map[int32]string{ + 0: "TEXT_ENCODER", + 1: "CROSS_ATTENTION", + } + WeightMethod_value = map[string]int32{ + "TEXT_ENCODER": 0, + "CROSS_ATTENTION": 1, + } +) + +func (x WeightMethod) Enum() *WeightMethod { + p := new(WeightMethod) + *p = x + return p +} + +func (x WeightMethod) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (WeightMethod) Descriptor() protoreflect.EnumDescriptor { + return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[3].Descriptor() +} + +func (WeightMethod) Type() protoreflect.EnumType { + return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[3] +} + +func (x WeightMethod) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use WeightMethod.Descriptor instead. +func (WeightMethod) EnumDescriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{3} +} + +// DiffusionSampler identifies which sampler to use for Diffusion, and represents +// the internal set of supported samplers. +type DiffusionSampler int32 + +const ( + DiffusionSampler_SAMPLER_DDIM DiffusionSampler = 0 + DiffusionSampler_SAMPLER_DDPM DiffusionSampler = 1 + DiffusionSampler_SAMPLER_K_EULER DiffusionSampler = 2 + DiffusionSampler_SAMPLER_K_EULER_ANCESTRAL DiffusionSampler = 3 + DiffusionSampler_SAMPLER_K_HEUN DiffusionSampler = 4 + DiffusionSampler_SAMPLER_K_DPM_2 DiffusionSampler = 5 + DiffusionSampler_SAMPLER_K_DPM_2_ANCESTRAL DiffusionSampler = 6 + DiffusionSampler_SAMPLER_K_LMS DiffusionSampler = 7 + DiffusionSampler_SAMPLER_K_DPMPP_2S_ANCESTRAL DiffusionSampler = 8 + DiffusionSampler_SAMPLER_K_DPMPP_2M DiffusionSampler = 9 + DiffusionSampler_SAMPLER_K_DPMPP_SDE DiffusionSampler = 10 +) + +// Enum value maps for DiffusionSampler. +var ( + DiffusionSampler_name = map[int32]string{ + 0: "SAMPLER_DDIM", + 1: "SAMPLER_DDPM", + 2: "SAMPLER_K_EULER", + 3: "SAMPLER_K_EULER_ANCESTRAL", + 4: "SAMPLER_K_HEUN", + 5: "SAMPLER_K_DPM_2", + 6: "SAMPLER_K_DPM_2_ANCESTRAL", + 7: "SAMPLER_K_LMS", + 8: "SAMPLER_K_DPMPP_2S_ANCESTRAL", + 9: "SAMPLER_K_DPMPP_2M", + 10: "SAMPLER_K_DPMPP_SDE", + } + DiffusionSampler_value = map[string]int32{ + "SAMPLER_DDIM": 0, + "SAMPLER_DDPM": 1, + "SAMPLER_K_EULER": 2, + "SAMPLER_K_EULER_ANCESTRAL": 3, + "SAMPLER_K_HEUN": 4, + "SAMPLER_K_DPM_2": 5, + "SAMPLER_K_DPM_2_ANCESTRAL": 6, + "SAMPLER_K_LMS": 7, + "SAMPLER_K_DPMPP_2S_ANCESTRAL": 8, + "SAMPLER_K_DPMPP_2M": 9, + "SAMPLER_K_DPMPP_SDE": 10, + } +) + +func (x DiffusionSampler) Enum() *DiffusionSampler { + p := new(DiffusionSampler) + *p = x + return p +} + +func (x DiffusionSampler) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (DiffusionSampler) Descriptor() protoreflect.EnumDescriptor { + return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[4].Descriptor() +} + +func (DiffusionSampler) Type() protoreflect.EnumType { + return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[4] +} + +func (x DiffusionSampler) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use DiffusionSampler.Descriptor instead. +func (DiffusionSampler) EnumDescriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{4} +} + +// Future, unimplemented. +type Upscaler int32 + +const ( + Upscaler_UPSCALER_RGB Upscaler = 0 + Upscaler_UPSCALER_GFPGAN Upscaler = 1 + Upscaler_UPSCALER_ESRGAN Upscaler = 2 +) + +// Enum value maps for Upscaler. +var ( + Upscaler_name = map[int32]string{ + 0: "UPSCALER_RGB", + 1: "UPSCALER_GFPGAN", + 2: "UPSCALER_ESRGAN", + } + Upscaler_value = map[string]int32{ + "UPSCALER_RGB": 0, + "UPSCALER_GFPGAN": 1, + "UPSCALER_ESRGAN": 2, + } +) + +func (x Upscaler) Enum() *Upscaler { + p := new(Upscaler) + *p = x + return p +} + +func (x Upscaler) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Upscaler) Descriptor() protoreflect.EnumDescriptor { + return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[5].Descriptor() +} + +func (Upscaler) Type() protoreflect.EnumType { + return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[5] +} + +func (x Upscaler) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Upscaler.Descriptor instead. +func (Upscaler) EnumDescriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{5} +} + +// Presets for CLIP guidance. +type GuidancePreset int32 + +const ( + GuidancePreset_GUIDANCE_PRESET_NONE GuidancePreset = 0 + GuidancePreset_GUIDANCE_PRESET_SIMPLE GuidancePreset = 1 + GuidancePreset_GUIDANCE_PRESET_FAST_BLUE GuidancePreset = 2 + GuidancePreset_GUIDANCE_PRESET_FAST_GREEN GuidancePreset = 3 + GuidancePreset_GUIDANCE_PRESET_SLOW GuidancePreset = 4 + GuidancePreset_GUIDANCE_PRESET_SLOWER GuidancePreset = 5 + GuidancePreset_GUIDANCE_PRESET_SLOWEST GuidancePreset = 6 +) + +// Enum value maps for GuidancePreset. +var ( + GuidancePreset_name = map[int32]string{ + 0: "GUIDANCE_PRESET_NONE", + 1: "GUIDANCE_PRESET_SIMPLE", + 2: "GUIDANCE_PRESET_FAST_BLUE", + 3: "GUIDANCE_PRESET_FAST_GREEN", + 4: "GUIDANCE_PRESET_SLOW", + 5: "GUIDANCE_PRESET_SLOWER", + 6: "GUIDANCE_PRESET_SLOWEST", + } + GuidancePreset_value = map[string]int32{ + "GUIDANCE_PRESET_NONE": 0, + "GUIDANCE_PRESET_SIMPLE": 1, + "GUIDANCE_PRESET_FAST_BLUE": 2, + "GUIDANCE_PRESET_FAST_GREEN": 3, + "GUIDANCE_PRESET_SLOW": 4, + "GUIDANCE_PRESET_SLOWER": 5, + "GUIDANCE_PRESET_SLOWEST": 6, + } +) + +func (x GuidancePreset) Enum() *GuidancePreset { + p := new(GuidancePreset) + *p = x + return p +} + +func (x GuidancePreset) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (GuidancePreset) Descriptor() protoreflect.EnumDescriptor { + return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[6].Descriptor() +} + +func (GuidancePreset) Type() protoreflect.EnumType { + return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[6] +} + +func (x GuidancePreset) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use GuidancePreset.Descriptor instead. +func (GuidancePreset) EnumDescriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{6} +} + +type ModelArchitecture int32 + +const ( + ModelArchitecture_MODEL_ARCHITECTURE_NONE ModelArchitecture = 0 + ModelArchitecture_MODEL_ARCHITECTURE_CLIP_VIT ModelArchitecture = 1 + ModelArchitecture_MODEL_ARCHITECTURE_CLIP_RESNET ModelArchitecture = 2 + ModelArchitecture_MODEL_ARCHITECTURE_LDM ModelArchitecture = 3 +) + +// Enum value maps for ModelArchitecture. +var ( + ModelArchitecture_name = map[int32]string{ + 0: "MODEL_ARCHITECTURE_NONE", + 1: "MODEL_ARCHITECTURE_CLIP_VIT", + 2: "MODEL_ARCHITECTURE_CLIP_RESNET", + 3: "MODEL_ARCHITECTURE_LDM", + } + ModelArchitecture_value = map[string]int32{ + "MODEL_ARCHITECTURE_NONE": 0, + "MODEL_ARCHITECTURE_CLIP_VIT": 1, + "MODEL_ARCHITECTURE_CLIP_RESNET": 2, + "MODEL_ARCHITECTURE_LDM": 3, + } +) + +func (x ModelArchitecture) Enum() *ModelArchitecture { + p := new(ModelArchitecture) + *p = x + return p +} + +func (x ModelArchitecture) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ModelArchitecture) Descriptor() protoreflect.EnumDescriptor { + return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[7].Descriptor() +} + +func (ModelArchitecture) Type() protoreflect.EnumType { + return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[7] +} + +func (x ModelArchitecture) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ModelArchitecture.Descriptor instead. +func (ModelArchitecture) EnumDescriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{7} +} + +type Action int32 + +const ( + Action_ACTION_PASSTHROUGH Action = 0 + Action_ACTION_REGENERATE_DUPLICATE Action = 1 + Action_ACTION_REGENERATE Action = 2 + Action_ACTION_OBFUSCATE_DUPLICATE Action = 3 + Action_ACTION_OBFUSCATE Action = 4 + Action_ACTION_DISCARD Action = 5 +) + +// Enum value maps for Action. +var ( + Action_name = map[int32]string{ + 0: "ACTION_PASSTHROUGH", + 1: "ACTION_REGENERATE_DUPLICATE", + 2: "ACTION_REGENERATE", + 3: "ACTION_OBFUSCATE_DUPLICATE", + 4: "ACTION_OBFUSCATE", + 5: "ACTION_DISCARD", + } + Action_value = map[string]int32{ + "ACTION_PASSTHROUGH": 0, + "ACTION_REGENERATE_DUPLICATE": 1, + "ACTION_REGENERATE": 2, + "ACTION_OBFUSCATE_DUPLICATE": 3, + "ACTION_OBFUSCATE": 4, + "ACTION_DISCARD": 5, + } +) + +func (x Action) Enum() *Action { + p := new(Action) + *p = x + return p +} + +func (x Action) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Action) Descriptor() protoreflect.EnumDescriptor { + return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[8].Descriptor() +} + +func (Action) Type() protoreflect.EnumType { + return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[8] +} + +func (x Action) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Action.Descriptor instead. +func (Action) EnumDescriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{8} +} + +type ClassifierMode int32 + +const ( + ClassifierMode_CLSFR_MODE_ZEROSHOT ClassifierMode = 0 + ClassifierMode_CLSFR_MODE_MULTICLASS ClassifierMode = 1 //CLSFR_MODE_ODDSRATIO = 2; +) + +// Enum value maps for ClassifierMode. +var ( + ClassifierMode_name = map[int32]string{ + 0: "CLSFR_MODE_ZEROSHOT", + 1: "CLSFR_MODE_MULTICLASS", + } + ClassifierMode_value = map[string]int32{ + "CLSFR_MODE_ZEROSHOT": 0, + "CLSFR_MODE_MULTICLASS": 1, + } +) + +func (x ClassifierMode) Enum() *ClassifierMode { + p := new(ClassifierMode) + *p = x + return p +} + +func (x ClassifierMode) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ClassifierMode) Descriptor() protoreflect.EnumDescriptor { + return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[9].Descriptor() +} + +func (ClassifierMode) Type() protoreflect.EnumType { + return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[9] +} + +func (x ClassifierMode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ClassifierMode.Descriptor instead. +func (ClassifierMode) EnumDescriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{9} +} + +type InterpolateMode int32 + +const ( + InterpolateMode_INTERPOLATE_LINEAR InterpolateMode = 0 + InterpolateMode_INTERPOLATE_RIFE InterpolateMode = 1 + InterpolateMode_INTERPOLATE_VAE_LINEAR InterpolateMode = 2 + InterpolateMode_INTERPOLATE_VAE_SLERP InterpolateMode = 3 + InterpolateMode_INTERPOLATE_FILM InterpolateMode = 4 +) + +// Enum value maps for InterpolateMode. +var ( + InterpolateMode_name = map[int32]string{ + 0: "INTERPOLATE_LINEAR", + 1: "INTERPOLATE_RIFE", + 2: "INTERPOLATE_VAE_LINEAR", + 3: "INTERPOLATE_VAE_SLERP", + 4: "INTERPOLATE_FILM", + } + InterpolateMode_value = map[string]int32{ + "INTERPOLATE_LINEAR": 0, + "INTERPOLATE_RIFE": 1, + "INTERPOLATE_VAE_LINEAR": 2, + "INTERPOLATE_VAE_SLERP": 3, + "INTERPOLATE_FILM": 4, + } +) + +func (x InterpolateMode) Enum() *InterpolateMode { + p := new(InterpolateMode) + *p = x + return p +} + +func (x InterpolateMode) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (InterpolateMode) Descriptor() protoreflect.EnumDescriptor { + return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[10].Descriptor() +} + +func (InterpolateMode) Type() protoreflect.EnumType { + return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[10] +} + +func (x InterpolateMode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use InterpolateMode.Descriptor instead. +func (InterpolateMode) EnumDescriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{10} +} + +type BorderMode int32 + +const ( + BorderMode_BORDER_REFLECT BorderMode = 0 // reflect image values across the border + BorderMode_BORDER_REPLICATE BorderMode = 1 // replicate border values outside the image + BorderMode_BORDER_WRAP BorderMode = 2 // wrap around / tile the image values + BorderMode_BORDER_ZERO BorderMode = 3 // use 0 for locations outside the image + BorderMode_BORDER_PREFILL BorderMode = 4 // prefill border areas with values matching the colors around the area +) + +// Enum value maps for BorderMode. +var ( + BorderMode_name = map[int32]string{ + 0: "BORDER_REFLECT", + 1: "BORDER_REPLICATE", + 2: "BORDER_WRAP", + 3: "BORDER_ZERO", + 4: "BORDER_PREFILL", + } + BorderMode_value = map[string]int32{ + "BORDER_REFLECT": 0, + "BORDER_REPLICATE": 1, + "BORDER_WRAP": 2, + "BORDER_ZERO": 3, + "BORDER_PREFILL": 4, + } +) + +func (x BorderMode) Enum() *BorderMode { + p := new(BorderMode) + *p = x + return p +} + +func (x BorderMode) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (BorderMode) Descriptor() protoreflect.EnumDescriptor { + return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[11].Descriptor() +} + +func (BorderMode) Type() protoreflect.EnumType { + return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[11] +} + +func (x BorderMode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use BorderMode.Descriptor instead. +func (BorderMode) EnumDescriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{11} +} + +type ColorMatchMode int32 + +const ( + ColorMatchMode_COLOR_MATCH_HSV ColorMatchMode = 0 // match hue, saturation, and value histograms + ColorMatchMode_COLOR_MATCH_LAB ColorMatchMode = 1 // match lightness, a, and b histograms + ColorMatchMode_COLOR_MATCH_RGB ColorMatchMode = 2 // match red, green, and blue histograms +) + +// Enum value maps for ColorMatchMode. +var ( + ColorMatchMode_name = map[int32]string{ + 0: "COLOR_MATCH_HSV", + 1: "COLOR_MATCH_LAB", + 2: "COLOR_MATCH_RGB", + } + ColorMatchMode_value = map[string]int32{ + "COLOR_MATCH_HSV": 0, + "COLOR_MATCH_LAB": 1, + "COLOR_MATCH_RGB": 2, + } +) + +func (x ColorMatchMode) Enum() *ColorMatchMode { + p := new(ColorMatchMode) + *p = x + return p +} + +func (x ColorMatchMode) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ColorMatchMode) Descriptor() protoreflect.EnumDescriptor { + return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[12].Descriptor() +} + +func (ColorMatchMode) Type() protoreflect.EnumType { + return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[12] +} + +func (x ColorMatchMode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ColorMatchMode.Descriptor instead. +func (ColorMatchMode) EnumDescriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{12} +} + +type CameraType int32 + +const ( + CameraType_CAMERA_PERSPECTIVE CameraType = 0 // Perspective camera + CameraType_CAMERA_ORTHOGRAPHIC CameraType = 1 // Orthographic camera. Well suited for isometric animations +) + +// Enum value maps for CameraType. +var ( + CameraType_name = map[int32]string{ + 0: "CAMERA_PERSPECTIVE", + 1: "CAMERA_ORTHOGRAPHIC", + } + CameraType_value = map[string]int32{ + "CAMERA_PERSPECTIVE": 0, + "CAMERA_ORTHOGRAPHIC": 1, + } +) + +func (x CameraType) Enum() *CameraType { + p := new(CameraType) + *p = x + return p +} + +func (x CameraType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (CameraType) Descriptor() protoreflect.EnumDescriptor { + return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[13].Descriptor() +} + +func (CameraType) Type() protoreflect.EnumType { + return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[13] +} + +func (x CameraType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use CameraType.Descriptor instead. +func (CameraType) EnumDescriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{13} +} + +type RenderMode int32 + +const ( + RenderMode_RENDER_MESH RenderMode = 0 + RenderMode_RENDER_POINTCLOUD RenderMode = 1 +) + +// Enum value maps for RenderMode. +var ( + RenderMode_name = map[int32]string{ + 0: "RENDER_MESH", + 1: "RENDER_POINTCLOUD", + } + RenderMode_value = map[string]int32{ + "RENDER_MESH": 0, + "RENDER_POINTCLOUD": 1, + } +) + +func (x RenderMode) Enum() *RenderMode { + p := new(RenderMode) + *p = x + return p +} + +func (x RenderMode) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (RenderMode) Descriptor() protoreflect.EnumDescriptor { + return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[14].Descriptor() +} + +func (RenderMode) Type() protoreflect.EnumType { + return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[14] +} + +func (x RenderMode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use RenderMode.Descriptor instead. +func (RenderMode) EnumDescriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{14} +} + +type AssetAction int32 + +const ( + AssetAction_ASSET_PUT AssetAction = 0 + AssetAction_ASSET_GET AssetAction = 1 + AssetAction_ASSET_DELETE AssetAction = 2 +) + +// Enum value maps for AssetAction. +var ( + AssetAction_name = map[int32]string{ + 0: "ASSET_PUT", + 1: "ASSET_GET", + 2: "ASSET_DELETE", + } + AssetAction_value = map[string]int32{ + "ASSET_PUT": 0, + "ASSET_GET": 1, + "ASSET_DELETE": 2, + } +) + +func (x AssetAction) Enum() *AssetAction { + p := new(AssetAction) + *p = x + return p +} + +func (x AssetAction) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (AssetAction) Descriptor() protoreflect.EnumDescriptor { + return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[15].Descriptor() +} + +func (AssetAction) Type() protoreflect.EnumType { + return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[15] +} + +func (x AssetAction) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use AssetAction.Descriptor instead. +func (AssetAction) EnumDescriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{15} +} + +// AssetUse defines how the asset is used within a project. This enum matches +// the values the project proto. +type AssetUse int32 + +const ( + AssetUse_ASSET_USE_UNDEFINED AssetUse = 0 // Asset does not have use defined + AssetUse_ASSET_USE_INPUT AssetUse = 1 // Asset is used as an input for the project + AssetUse_ASSET_USE_OUTPUT AssetUse = 2 // Asset is an output from the project + AssetUse_ASSET_USE_INTERMEDIATE AssetUse = 3 // Asset is an output from an intermediate step of the project + AssetUse_ASSET_USE_PROJECT AssetUse = 4 // Asset is used as the project file for the project +) + +// Enum value maps for AssetUse. +var ( + AssetUse_name = map[int32]string{ + 0: "ASSET_USE_UNDEFINED", + 1: "ASSET_USE_INPUT", + 2: "ASSET_USE_OUTPUT", + 3: "ASSET_USE_INTERMEDIATE", + 4: "ASSET_USE_PROJECT", + } + AssetUse_value = map[string]int32{ + "ASSET_USE_UNDEFINED": 0, + "ASSET_USE_INPUT": 1, + "ASSET_USE_OUTPUT": 2, + "ASSET_USE_INTERMEDIATE": 3, + "ASSET_USE_PROJECT": 4, + } +) + +func (x AssetUse) Enum() *AssetUse { + p := new(AssetUse) + *p = x + return p +} + +func (x AssetUse) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (AssetUse) Descriptor() protoreflect.EnumDescriptor { + return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[16].Descriptor() +} + +func (AssetUse) Type() protoreflect.EnumType { + return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[16] +} + +func (x AssetUse) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use AssetUse.Descriptor instead. +func (AssetUse) EnumDescriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{16} +} + +type StageAction int32 + +const ( + StageAction_STAGE_ACTION_PASS StageAction = 0 + StageAction_STAGE_ACTION_DISCARD StageAction = 1 + StageAction_STAGE_ACTION_RETURN StageAction = 2 +) + +// Enum value maps for StageAction. +var ( + StageAction_name = map[int32]string{ + 0: "STAGE_ACTION_PASS", + 1: "STAGE_ACTION_DISCARD", + 2: "STAGE_ACTION_RETURN", + } + StageAction_value = map[string]int32{ + "STAGE_ACTION_PASS": 0, + "STAGE_ACTION_DISCARD": 1, + "STAGE_ACTION_RETURN": 2, + } +) + +func (x StageAction) Enum() *StageAction { + p := new(StageAction) + *p = x + return p +} + +func (x StageAction) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (StageAction) Descriptor() protoreflect.EnumDescriptor { + return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[17].Descriptor() +} + +func (StageAction) Type() protoreflect.EnumType { + return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[17] +} + +func (x StageAction) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use StageAction.Descriptor instead. +func (StageAction) EnumDescriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{17} +} + +// Generally, a GPT BPE 16-bit token, paired with an optional string representation. +type Token struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Text *string `protobuf:"bytes,1,opt,name=text,proto3,oneof" json:"text,omitempty"` + Id uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *Token) Reset() { + *x = Token{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Token) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Token) ProtoMessage() {} + +func (x *Token) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Token.ProtoReflect.Descriptor instead. +func (*Token) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{0} +} + +func (x *Token) GetText() string { + if x != nil && x.Text != nil { + return *x.Text + } + return "" +} + +func (x *Token) GetId() uint32 { + if x != nil { + return x.Id + } + return 0 +} + +// Sequence of tokens, paired with the id of the tokenizer used to generate them. +type Tokens struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Tokens []*Token `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"` + TokenizerId *string `protobuf:"bytes,2,opt,name=tokenizer_id,json=tokenizerId,proto3,oneof" json:"tokenizer_id,omitempty"` +} + +func (x *Tokens) Reset() { + *x = Tokens{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Tokens) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Tokens) ProtoMessage() {} + +func (x *Tokens) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Tokens.ProtoReflect.Descriptor instead. +func (*Tokens) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{1} +} + +func (x *Tokens) GetTokens() []*Token { + if x != nil { + return x.Tokens + } + return nil +} + +func (x *Tokens) GetTokenizerId() string { + if x != nil && x.TokenizerId != nil { + return *x.TokenizerId + } + return "" +} + +// A tangible Artifact, such as an image, video, or text that is used for input +// or output. +type Artifact struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Type ArtifactType `protobuf:"varint,2,opt,name=type,proto3,enum=stabilityai.platformapis.generation.v1.ArtifactType" json:"type,omitempty"` + Mime string `protobuf:"bytes,3,opt,name=mime,proto3" json:"mime,omitempty"` // MIME type identifier, e.g. "image/png" + Magic *string `protobuf:"bytes,4,opt,name=magic,proto3,oneof" json:"magic,omitempty"` // Magic number, e.g. "PNG" + // Types that are assignable to Data: + // + // *Artifact_Binary + // *Artifact_Text + // *Artifact_Tokens + // *Artifact_Classifier + // *Artifact_Tensor + Data isArtifact_Data `protobuf_oneof:"data"` + Index uint32 `protobuf:"varint,8,opt,name=index,proto3" json:"index,omitempty"` // Index of this artifact in input/output list + FinishReason FinishReason `protobuf:"varint,9,opt,name=finish_reason,json=finishReason,proto3,enum=stabilityai.platformapis.generation.v1.FinishReason" json:"finish_reason,omitempty"` // Reason for finishing, if applicable + Seed uint32 `protobuf:"varint,10,opt,name=seed,proto3" json:"seed,omitempty"` // Seed used to generate this artifact + Uuid string `protobuf:"bytes,12,opt,name=uuid,proto3" json:"uuid,omitempty"` // UUIDv4 of the artifact, used for asset lookup + Size uint64 `protobuf:"varint,13,opt,name=size,proto3" json:"size,omitempty"` // Size of the artifact in bytes +} + +func (x *Artifact) Reset() { + *x = Artifact{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Artifact) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Artifact) ProtoMessage() {} + +func (x *Artifact) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Artifact.ProtoReflect.Descriptor instead. +func (*Artifact) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{2} +} + +func (x *Artifact) GetId() uint64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *Artifact) GetType() ArtifactType { + if x != nil { + return x.Type + } + return ArtifactType_ARTIFACT_NONE +} + +func (x *Artifact) GetMime() string { + if x != nil { + return x.Mime + } + return "" +} + +func (x *Artifact) GetMagic() string { + if x != nil && x.Magic != nil { + return *x.Magic + } + return "" +} + +func (m *Artifact) GetData() isArtifact_Data { + if m != nil { + return m.Data + } + return nil +} + +func (x *Artifact) GetBinary() []byte { + if x, ok := x.GetData().(*Artifact_Binary); ok { + return x.Binary + } + return nil +} + +func (x *Artifact) GetText() string { + if x, ok := x.GetData().(*Artifact_Text); ok { + return x.Text + } + return "" +} + +func (x *Artifact) GetTokens() *Tokens { + if x, ok := x.GetData().(*Artifact_Tokens); ok { + return x.Tokens + } + return nil +} + +func (x *Artifact) GetClassifier() *ClassifierParameters { + if x, ok := x.GetData().(*Artifact_Classifier); ok { + return x.Classifier + } + return nil +} + +func (x *Artifact) GetTensor() *tensors.Tensor { + if x, ok := x.GetData().(*Artifact_Tensor); ok { + return x.Tensor + } + return nil +} + +func (x *Artifact) GetIndex() uint32 { + if x != nil { + return x.Index + } + return 0 +} + +func (x *Artifact) GetFinishReason() FinishReason { + if x != nil { + return x.FinishReason + } + return FinishReason_NULL +} + +func (x *Artifact) GetSeed() uint32 { + if x != nil { + return x.Seed + } + return 0 +} + +func (x *Artifact) GetUuid() string { + if x != nil { + return x.Uuid + } + return "" +} + +func (x *Artifact) GetSize() uint64 { + if x != nil { + return x.Size + } + return 0 +} + +type isArtifact_Data interface { + isArtifact_Data() +} + +type Artifact_Binary struct { + Binary []byte `protobuf:"bytes,5,opt,name=binary,proto3,oneof"` // Binary data, e.g. PNG image +} + +type Artifact_Text struct { + Text string `protobuf:"bytes,6,opt,name=text,proto3,oneof"` // Text data, e.g. text prompt +} + +type Artifact_Tokens struct { + Tokens *Tokens `protobuf:"bytes,7,opt,name=tokens,proto3,oneof"` // Tokenized text data, e.g. GPT tokens +} + +type Artifact_Classifier struct { + Classifier *ClassifierParameters `protobuf:"bytes,11,opt,name=classifier,proto3,oneof"` +} + +type Artifact_Tensor struct { + Tensor *tensors.Tensor `protobuf:"bytes,14,opt,name=tensor,proto3,oneof"` // torch.Tensor: +} + +func (*Artifact_Binary) isArtifact_Data() {} + +func (*Artifact_Text) isArtifact_Data() {} + +func (*Artifact_Tokens) isArtifact_Data() {} + +func (*Artifact_Classifier) isArtifact_Data() {} + +func (*Artifact_Tensor) isArtifact_Data() {} + +// A set of parameters for each individual Prompt. +type PromptParameters struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Init *bool `protobuf:"varint,1,opt,name=init,proto3,oneof" json:"init,omitempty"` // deprecated, no longer used + Weight *float32 `protobuf:"fixed32,2,opt,name=weight,proto3,oneof" json:"weight,omitempty"` +} + +func (x *PromptParameters) Reset() { + *x = PromptParameters{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PromptParameters) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PromptParameters) ProtoMessage() {} + +func (x *PromptParameters) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PromptParameters.ProtoReflect.Descriptor instead. +func (*PromptParameters) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{3} +} + +func (x *PromptParameters) GetInit() bool { + if x != nil && x.Init != nil { + return *x.Init + } + return false +} + +func (x *PromptParameters) GetWeight() float32 { + if x != nil && x.Weight != nil { + return *x.Weight + } + return 0 +} + +// A Prompt is a special type of Artifact that is used to generate an output. +// There can be multiple Prompts that affect the same output. Currently, the +// only Prompts supported are: +// - Text (singular) +// - Init Image (singular, optional, type ARTIFACT_IMAGE) +// - Mask (singular, optional, type ARTIFACT_MASK) +// - Depth (singular, optional, type ARTIFACT_DEPTH) +type Prompt struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Parameters *PromptParameters `protobuf:"bytes,1,opt,name=parameters,proto3,oneof" json:"parameters,omitempty"` + // Types that are assignable to Prompt: + // + // *Prompt_Text + // *Prompt_Tokens + // *Prompt_Artifact + Prompt isPrompt_Prompt `protobuf_oneof:"prompt"` +} + +func (x *Prompt) Reset() { + *x = Prompt{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Prompt) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Prompt) ProtoMessage() {} + +func (x *Prompt) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Prompt.ProtoReflect.Descriptor instead. +func (*Prompt) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{4} +} + +func (x *Prompt) GetParameters() *PromptParameters { + if x != nil { + return x.Parameters + } + return nil +} + +func (m *Prompt) GetPrompt() isPrompt_Prompt { + if m != nil { + return m.Prompt + } + return nil +} + +func (x *Prompt) GetText() string { + if x, ok := x.GetPrompt().(*Prompt_Text); ok { + return x.Text + } + return "" +} + +func (x *Prompt) GetTokens() *Tokens { + if x, ok := x.GetPrompt().(*Prompt_Tokens); ok { + return x.Tokens + } + return nil +} + +func (x *Prompt) GetArtifact() *Artifact { + if x, ok := x.GetPrompt().(*Prompt_Artifact); ok { + return x.Artifact + } + return nil +} + +type isPrompt_Prompt interface { + isPrompt_Prompt() +} + +type Prompt_Text struct { + Text string `protobuf:"bytes,2,opt,name=text,proto3,oneof"` +} + +type Prompt_Tokens struct { + Tokens *Tokens `protobuf:"bytes,3,opt,name=tokens,proto3,oneof"` +} + +type Prompt_Artifact struct { + Artifact *Artifact `protobuf:"bytes,4,opt,name=artifact,proto3,oneof"` +} + +func (*Prompt_Text) isPrompt_Prompt() {} + +func (*Prompt_Tokens) isPrompt_Prompt() {} + +func (*Prompt_Artifact) isPrompt_Prompt() {} + +// Parameters that affect the behavior of the sampler, typically used for CFG. +type SamplerParameters struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Eta *float32 `protobuf:"fixed32,1,opt,name=eta,proto3,oneof" json:"eta,omitempty"` + SamplingSteps *uint64 `protobuf:"varint,2,opt,name=sampling_steps,json=samplingSteps,proto3,oneof" json:"sampling_steps,omitempty"` + LatentChannels *uint64 `protobuf:"varint,3,opt,name=latent_channels,json=latentChannels,proto3,oneof" json:"latent_channels,omitempty"` + DownsamplingFactor *uint64 `protobuf:"varint,4,opt,name=downsampling_factor,json=downsamplingFactor,proto3,oneof" json:"downsampling_factor,omitempty"` + CfgScale *float32 `protobuf:"fixed32,5,opt,name=cfg_scale,json=cfgScale,proto3,oneof" json:"cfg_scale,omitempty"` + InitNoiseScale *float32 `protobuf:"fixed32,6,opt,name=init_noise_scale,json=initNoiseScale,proto3,oneof" json:"init_noise_scale,omitempty"` // defaults to 0.99 + StepNoiseScale *float32 `protobuf:"fixed32,7,opt,name=step_noise_scale,json=stepNoiseScale,proto3,oneof" json:"step_noise_scale,omitempty"` // defaults to 0.99 +} + +func (x *SamplerParameters) Reset() { + *x = SamplerParameters{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SamplerParameters) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SamplerParameters) ProtoMessage() {} + +func (x *SamplerParameters) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SamplerParameters.ProtoReflect.Descriptor instead. +func (*SamplerParameters) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{5} +} + +func (x *SamplerParameters) GetEta() float32 { + if x != nil && x.Eta != nil { + return *x.Eta + } + return 0 +} + +func (x *SamplerParameters) GetSamplingSteps() uint64 { + if x != nil && x.SamplingSteps != nil { + return *x.SamplingSteps + } + return 0 +} + +func (x *SamplerParameters) GetLatentChannels() uint64 { + if x != nil && x.LatentChannels != nil { + return *x.LatentChannels + } + return 0 +} + +func (x *SamplerParameters) GetDownsamplingFactor() uint64 { + if x != nil && x.DownsamplingFactor != nil { + return *x.DownsamplingFactor + } + return 0 +} + +func (x *SamplerParameters) GetCfgScale() float32 { + if x != nil && x.CfgScale != nil { + return *x.CfgScale + } + return 0 +} + +func (x *SamplerParameters) GetInitNoiseScale() float32 { + if x != nil && x.InitNoiseScale != nil { + return *x.InitNoiseScale + } + return 0 +} + +func (x *SamplerParameters) GetStepNoiseScale() float32 { + if x != nil && x.StepNoiseScale != nil { + return *x.StepNoiseScale + } + return 0 +} + +// Unused, but reserved for future use. Adjustments to the latents after +// initialization. +type ConditionerParameters struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + VectorAdjustPrior *string `protobuf:"bytes,1,opt,name=vector_adjust_prior,json=vectorAdjustPrior,proto3,oneof" json:"vector_adjust_prior,omitempty"` + Conditioner *Model `protobuf:"bytes,2,opt,name=conditioner,proto3,oneof" json:"conditioner,omitempty"` +} + +func (x *ConditionerParameters) Reset() { + *x = ConditionerParameters{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ConditionerParameters) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConditionerParameters) ProtoMessage() {} + +func (x *ConditionerParameters) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ConditionerParameters.ProtoReflect.Descriptor instead. +func (*ConditionerParameters) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{6} +} + +func (x *ConditionerParameters) GetVectorAdjustPrior() string { + if x != nil && x.VectorAdjustPrior != nil { + return *x.VectorAdjustPrior + } + return "" +} + +func (x *ConditionerParameters) GetConditioner() *Model { + if x != nil { + return x.Conditioner + } + return nil +} + +// When does this schedule definition apply? +type ScheduleParameters struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Start *float32 `protobuf:"fixed32,1,opt,name=start,proto3,oneof" json:"start,omitempty"` // 0.0 to 1.0 + End *float32 `protobuf:"fixed32,2,opt,name=end,proto3,oneof" json:"end,omitempty"` // 0.0 to 1.0 + Value *float32 `protobuf:"fixed32,3,opt,name=value,proto3,oneof" json:"value,omitempty"` // float value to apply on this schedule +} + +func (x *ScheduleParameters) Reset() { + *x = ScheduleParameters{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ScheduleParameters) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ScheduleParameters) ProtoMessage() {} + +func (x *ScheduleParameters) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ScheduleParameters.ProtoReflect.Descriptor instead. +func (*ScheduleParameters) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{7} +} + +func (x *ScheduleParameters) GetStart() float32 { + if x != nil && x.Start != nil { + return *x.Start + } + return 0 +} + +func (x *ScheduleParameters) GetEnd() float32 { + if x != nil && x.End != nil { + return *x.End + } + return 0 +} + +func (x *ScheduleParameters) GetValue() float32 { + if x != nil && x.Value != nil { + return *x.Value + } + return 0 +} + +// Parameters that apply to this block of the schedule. +type StepParameter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ScaledStep float32 `protobuf:"fixed32,1,opt,name=scaled_step,json=scaledStep,proto3" json:"scaled_step,omitempty"` + Sampler *SamplerParameters `protobuf:"bytes,2,opt,name=sampler,proto3,oneof" json:"sampler,omitempty"` + Schedule *ScheduleParameters `protobuf:"bytes,3,opt,name=schedule,proto3,oneof" json:"schedule,omitempty"` + Guidance *GuidanceParameters `protobuf:"bytes,4,opt,name=guidance,proto3,oneof" json:"guidance,omitempty"` +} + +func (x *StepParameter) Reset() { + *x = StepParameter{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StepParameter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StepParameter) ProtoMessage() {} + +func (x *StepParameter) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StepParameter.ProtoReflect.Descriptor instead. +func (*StepParameter) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{8} +} + +func (x *StepParameter) GetScaledStep() float32 { + if x != nil { + return x.ScaledStep + } + return 0 +} + +func (x *StepParameter) GetSampler() *SamplerParameters { + if x != nil { + return x.Sampler + } + return nil +} + +func (x *StepParameter) GetSchedule() *ScheduleParameters { + if x != nil { + return x.Schedule + } + return nil +} + +func (x *StepParameter) GetGuidance() *GuidanceParameters { + if x != nil { + return x.Guidance + } + return nil +} + +type Model struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Architecture ModelArchitecture `protobuf:"varint,1,opt,name=architecture,proto3,enum=stabilityai.platformapis.generation.v1.ModelArchitecture" json:"architecture,omitempty"` + Publisher string `protobuf:"bytes,2,opt,name=publisher,proto3" json:"publisher,omitempty"` + Dataset string `protobuf:"bytes,3,opt,name=dataset,proto3" json:"dataset,omitempty"` + Version float32 `protobuf:"fixed32,4,opt,name=version,proto3" json:"version,omitempty"` + SemanticVersion string `protobuf:"bytes,5,opt,name=semantic_version,json=semanticVersion,proto3" json:"semantic_version,omitempty"` + Alias string `protobuf:"bytes,6,opt,name=alias,proto3" json:"alias,omitempty"` +} + +func (x *Model) Reset() { + *x = Model{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Model) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Model) ProtoMessage() {} + +func (x *Model) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Model.ProtoReflect.Descriptor instead. +func (*Model) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{9} +} + +func (x *Model) GetArchitecture() ModelArchitecture { + if x != nil { + return x.Architecture + } + return ModelArchitecture_MODEL_ARCHITECTURE_NONE +} + +func (x *Model) GetPublisher() string { + if x != nil { + return x.Publisher + } + return "" +} + +func (x *Model) GetDataset() string { + if x != nil { + return x.Dataset + } + return "" +} + +func (x *Model) GetVersion() float32 { + if x != nil { + return x.Version + } + return 0 +} + +func (x *Model) GetSemanticVersion() string { + if x != nil { + return x.SemanticVersion + } + return "" +} + +func (x *Model) GetAlias() string { + if x != nil { + return x.Alias + } + return "" +} + +type CutoutParameters struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Cutouts []*CutoutParameters `protobuf:"bytes,1,rep,name=cutouts,proto3" json:"cutouts,omitempty"` // Nested cutouts, unsupported + Count *uint32 `protobuf:"varint,2,opt,name=count,proto3,oneof" json:"count,omitempty"` // 0 to n, usually 8 to 32, 0 inner + Gray *float32 `protobuf:"fixed32,3,opt,name=gray,proto3,oneof" json:"gray,omitempty"` // 0.0 to 1.0, defaults to 0.2 + Blur *float32 `protobuf:"fixed32,4,opt,name=blur,proto3,oneof" json:"blur,omitempty"` // percentage of cutouts to blur + SizePower *float32 `protobuf:"fixed32,5,opt,name=size_power,json=sizePower,proto3,oneof" json:"size_power,omitempty"` // defaults to inner: 0.5, outer: 0.0 +} + +func (x *CutoutParameters) Reset() { + *x = CutoutParameters{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CutoutParameters) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CutoutParameters) ProtoMessage() {} + +func (x *CutoutParameters) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CutoutParameters.ProtoReflect.Descriptor instead. +func (*CutoutParameters) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{10} +} + +func (x *CutoutParameters) GetCutouts() []*CutoutParameters { + if x != nil { + return x.Cutouts + } + return nil +} + +func (x *CutoutParameters) GetCount() uint32 { + if x != nil && x.Count != nil { + return *x.Count + } + return 0 +} + +func (x *CutoutParameters) GetGray() float32 { + if x != nil && x.Gray != nil { + return *x.Gray + } + return 0 +} + +func (x *CutoutParameters) GetBlur() float32 { + if x != nil && x.Blur != nil { + return *x.Blur + } + return 0 +} + +func (x *CutoutParameters) GetSizePower() float32 { + if x != nil && x.SizePower != nil { + return *x.SizePower + } + return 0 +} + +// GuidanceScheduleParameters are used to define a schedule for CLIP guidance, and +// are used to define the behavior of the guidance over time. They are relative +// to the total number of steps, and are scaled to the number of steps in the +// current run. +type GuidanceScheduleParameters struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Duration float32 `protobuf:"fixed32,1,opt,name=duration,proto3" json:"duration,omitempty"` + Value float32 `protobuf:"fixed32,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *GuidanceScheduleParameters) Reset() { + *x = GuidanceScheduleParameters{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GuidanceScheduleParameters) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GuidanceScheduleParameters) ProtoMessage() {} + +func (x *GuidanceScheduleParameters) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GuidanceScheduleParameters.ProtoReflect.Descriptor instead. +func (*GuidanceScheduleParameters) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{11} +} + +func (x *GuidanceScheduleParameters) GetDuration() float32 { + if x != nil { + return x.Duration + } + return 0 +} + +func (x *GuidanceScheduleParameters) GetValue() float32 { + if x != nil { + return x.Value + } + return 0 +} + +// Parameters that affect the behavior of the guidance, typically used for CLIP. +// We can specify more than one model, and the guidance will be a weighted sum +// of the models. +type GuidanceInstanceParameters struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Models []*Model `protobuf:"bytes,2,rep,name=models,proto3" json:"models,omitempty"` // models to use for this set + GuidanceStrength *float32 `protobuf:"fixed32,3,opt,name=guidance_strength,json=guidanceStrength,proto3,oneof" json:"guidance_strength,omitempty"` // 0.0 to 1.0, usually 0.05 to 0.225 + Schedule []*GuidanceScheduleParameters `protobuf:"bytes,4,rep,name=schedule,proto3" json:"schedule,omitempty"` // when to apply guidance + Cutouts *CutoutParameters `protobuf:"bytes,5,opt,name=cutouts,proto3,oneof" json:"cutouts,omitempty"` // cutout parameters + Prompt *Prompt `protobuf:"bytes,6,opt,name=prompt,proto3,oneof" json:"prompt,omitempty"` // prompt to use for guidance +} + +func (x *GuidanceInstanceParameters) Reset() { + *x = GuidanceInstanceParameters{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GuidanceInstanceParameters) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GuidanceInstanceParameters) ProtoMessage() {} + +func (x *GuidanceInstanceParameters) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GuidanceInstanceParameters.ProtoReflect.Descriptor instead. +func (*GuidanceInstanceParameters) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{12} +} + +func (x *GuidanceInstanceParameters) GetModels() []*Model { + if x != nil { + return x.Models + } + return nil +} + +func (x *GuidanceInstanceParameters) GetGuidanceStrength() float32 { + if x != nil && x.GuidanceStrength != nil { + return *x.GuidanceStrength + } + return 0 +} + +func (x *GuidanceInstanceParameters) GetSchedule() []*GuidanceScheduleParameters { + if x != nil { + return x.Schedule + } + return nil +} + +func (x *GuidanceInstanceParameters) GetCutouts() *CutoutParameters { + if x != nil { + return x.Cutouts + } + return nil +} + +func (x *GuidanceInstanceParameters) GetPrompt() *Prompt { + if x != nil { + return x.Prompt + } + return nil +} + +// Parameters that affect the behavior of the guidance, typically used for CLIP. +// The omission of this field implies the default guidance of CFG. +type GuidanceParameters struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + GuidancePreset GuidancePreset `protobuf:"varint,1,opt,name=guidance_preset,json=guidancePreset,proto3,enum=stabilityai.platformapis.generation.v1.GuidancePreset" json:"guidance_preset,omitempty"` // base preset for guidance + Instances []*GuidanceInstanceParameters `protobuf:"bytes,2,rep,name=instances,proto3" json:"instances,omitempty"` // guidance instances +} + +func (x *GuidanceParameters) Reset() { + *x = GuidanceParameters{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GuidanceParameters) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GuidanceParameters) ProtoMessage() {} + +func (x *GuidanceParameters) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GuidanceParameters.ProtoReflect.Descriptor instead. +func (*GuidanceParameters) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{13} +} + +func (x *GuidanceParameters) GetGuidancePreset() GuidancePreset { + if x != nil { + return x.GuidancePreset + } + return GuidancePreset_GUIDANCE_PRESET_NONE +} + +func (x *GuidanceParameters) GetInstances() []*GuidanceInstanceParameters { + if x != nil { + return x.Instances + } + return nil +} + +type TransformType struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Type: + // + // *TransformType_Diffusion + // *TransformType_Upscaler + Type isTransformType_Type `protobuf_oneof:"type"` +} + +func (x *TransformType) Reset() { + *x = TransformType{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TransformType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TransformType) ProtoMessage() {} + +func (x *TransformType) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TransformType.ProtoReflect.Descriptor instead. +func (*TransformType) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{14} +} + +func (m *TransformType) GetType() isTransformType_Type { + if m != nil { + return m.Type + } + return nil +} + +func (x *TransformType) GetDiffusion() DiffusionSampler { + if x, ok := x.GetType().(*TransformType_Diffusion); ok { + return x.Diffusion + } + return DiffusionSampler_SAMPLER_DDIM +} + +func (x *TransformType) GetUpscaler() Upscaler { + if x, ok := x.GetType().(*TransformType_Upscaler); ok { + return x.Upscaler + } + return Upscaler_UPSCALER_RGB +} + +type isTransformType_Type interface { + isTransformType_Type() +} + +type TransformType_Diffusion struct { + Diffusion DiffusionSampler `protobuf:"varint,1,opt,name=diffusion,proto3,enum=stabilityai.platformapis.generation.v1.DiffusionSampler,oneof"` +} + +type TransformType_Upscaler struct { + Upscaler Upscaler `protobuf:"varint,2,opt,name=upscaler,proto3,enum=stabilityai.platformapis.generation.v1.Upscaler,oneof"` +} + +func (*TransformType_Diffusion) isTransformType_Type() {} + +func (*TransformType_Upscaler) isTransformType_Type() {} + +type ImageParameters struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Height *uint64 `protobuf:"varint,1,opt,name=height,proto3,oneof" json:"height,omitempty"` + Width *uint64 `protobuf:"varint,2,opt,name=width,proto3,oneof" json:"width,omitempty"` + Seed []uint32 `protobuf:"varint,3,rep,packed,name=seed,proto3" json:"seed,omitempty"` + Samples *uint64 `protobuf:"varint,4,opt,name=samples,proto3,oneof" json:"samples,omitempty"` + Steps *uint64 `protobuf:"varint,5,opt,name=steps,proto3,oneof" json:"steps,omitempty"` + Transform *TransformType `protobuf:"bytes,6,opt,name=transform,proto3,oneof" json:"transform,omitempty"` + Parameters []*StepParameter `protobuf:"bytes,7,rep,name=parameters,proto3" json:"parameters,omitempty"` + MaskedAreaInit *MaskedAreaInit `protobuf:"varint,8,opt,name=masked_area_init,json=maskedAreaInit,proto3,enum=stabilityai.platformapis.generation.v1.MaskedAreaInit,oneof" json:"masked_area_init,omitempty"` // defaults to MASKED_AREA_INIT_ZERO + WeightMethod *WeightMethod `protobuf:"varint,9,opt,name=weight_method,json=weightMethod,proto3,enum=stabilityai.platformapis.generation.v1.WeightMethod,oneof" json:"weight_method,omitempty"` //defaults to TEXT_ENCODER + Quantize *bool `protobuf:"varint,10,opt,name=quantize,proto3,oneof" json:"quantize,omitempty"` //defaults to true +} + +func (x *ImageParameters) Reset() { + *x = ImageParameters{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ImageParameters) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ImageParameters) ProtoMessage() {} + +func (x *ImageParameters) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ImageParameters.ProtoReflect.Descriptor instead. +func (*ImageParameters) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{15} +} + +func (x *ImageParameters) GetHeight() uint64 { + if x != nil && x.Height != nil { + return *x.Height + } + return 0 +} + +func (x *ImageParameters) GetWidth() uint64 { + if x != nil && x.Width != nil { + return *x.Width + } + return 0 +} + +func (x *ImageParameters) GetSeed() []uint32 { + if x != nil { + return x.Seed + } + return nil +} + +func (x *ImageParameters) GetSamples() uint64 { + if x != nil && x.Samples != nil { + return *x.Samples + } + return 0 +} + +func (x *ImageParameters) GetSteps() uint64 { + if x != nil && x.Steps != nil { + return *x.Steps + } + return 0 +} + +func (x *ImageParameters) GetTransform() *TransformType { + if x != nil { + return x.Transform + } + return nil +} + +func (x *ImageParameters) GetParameters() []*StepParameter { + if x != nil { + return x.Parameters + } + return nil +} + +func (x *ImageParameters) GetMaskedAreaInit() MaskedAreaInit { + if x != nil && x.MaskedAreaInit != nil { + return *x.MaskedAreaInit + } + return MaskedAreaInit_MASKED_AREA_INIT_ZERO +} + +func (x *ImageParameters) GetWeightMethod() WeightMethod { + if x != nil && x.WeightMethod != nil { + return *x.WeightMethod + } + return WeightMethod_TEXT_ENCODER +} + +func (x *ImageParameters) GetQuantize() bool { + if x != nil && x.Quantize != nil { + return *x.Quantize + } + return false +} + +type ClassifierConcept struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Concept string `protobuf:"bytes,1,opt,name=concept,proto3" json:"concept,omitempty"` + Threshold *float32 `protobuf:"fixed32,2,opt,name=threshold,proto3,oneof" json:"threshold,omitempty"` +} + +func (x *ClassifierConcept) Reset() { + *x = ClassifierConcept{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ClassifierConcept) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClassifierConcept) ProtoMessage() {} + +func (x *ClassifierConcept) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ClassifierConcept.ProtoReflect.Descriptor instead. +func (*ClassifierConcept) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{16} +} + +func (x *ClassifierConcept) GetConcept() string { + if x != nil { + return x.Concept + } + return "" +} + +func (x *ClassifierConcept) GetThreshold() float32 { + if x != nil && x.Threshold != nil { + return *x.Threshold + } + return 0 +} + +type ClassifierCategory struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Concepts []*ClassifierConcept `protobuf:"bytes,2,rep,name=concepts,proto3" json:"concepts,omitempty"` + Adjustment *float32 `protobuf:"fixed32,3,opt,name=adjustment,proto3,oneof" json:"adjustment,omitempty"` + Action *Action `protobuf:"varint,4,opt,name=action,proto3,enum=stabilityai.platformapis.generation.v1.Action,oneof" json:"action,omitempty"` + ClassifierMode *ClassifierMode `protobuf:"varint,5,opt,name=classifier_mode,json=classifierMode,proto3,enum=stabilityai.platformapis.generation.v1.ClassifierMode,oneof" json:"classifier_mode,omitempty"` +} + +func (x *ClassifierCategory) Reset() { + *x = ClassifierCategory{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ClassifierCategory) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClassifierCategory) ProtoMessage() {} + +func (x *ClassifierCategory) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ClassifierCategory.ProtoReflect.Descriptor instead. +func (*ClassifierCategory) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{17} +} + +func (x *ClassifierCategory) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ClassifierCategory) GetConcepts() []*ClassifierConcept { + if x != nil { + return x.Concepts + } + return nil +} + +func (x *ClassifierCategory) GetAdjustment() float32 { + if x != nil && x.Adjustment != nil { + return *x.Adjustment + } + return 0 +} + +func (x *ClassifierCategory) GetAction() Action { + if x != nil && x.Action != nil { + return *x.Action + } + return Action_ACTION_PASSTHROUGH +} + +func (x *ClassifierCategory) GetClassifierMode() ClassifierMode { + if x != nil && x.ClassifierMode != nil { + return *x.ClassifierMode + } + return ClassifierMode_CLSFR_MODE_ZEROSHOT +} + +type ClassifierParameters struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Categories []*ClassifierCategory `protobuf:"bytes,1,rep,name=categories,proto3" json:"categories,omitempty"` + Exceeds []*ClassifierCategory `protobuf:"bytes,2,rep,name=exceeds,proto3" json:"exceeds,omitempty"` + RealizedAction *Action `protobuf:"varint,3,opt,name=realized_action,json=realizedAction,proto3,enum=stabilityai.platformapis.generation.v1.Action,oneof" json:"realized_action,omitempty"` +} + +func (x *ClassifierParameters) Reset() { + *x = ClassifierParameters{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ClassifierParameters) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClassifierParameters) ProtoMessage() {} + +func (x *ClassifierParameters) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ClassifierParameters.ProtoReflect.Descriptor instead. +func (*ClassifierParameters) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{18} +} + +func (x *ClassifierParameters) GetCategories() []*ClassifierCategory { + if x != nil { + return x.Categories + } + return nil +} + +func (x *ClassifierParameters) GetExceeds() []*ClassifierCategory { + if x != nil { + return x.Exceeds + } + return nil +} + +func (x *ClassifierParameters) GetRealizedAction() Action { + if x != nil && x.RealizedAction != nil { + return *x.RealizedAction + } + return Action_ACTION_PASSTHROUGH +} + +// Interpolation between two images applied at specified blend ratios +type InterpolateParameters struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ratios []float32 `protobuf:"fixed32,1,rep,packed,name=ratios,proto3" json:"ratios,omitempty"` + Mode *InterpolateMode `protobuf:"varint,2,opt,name=mode,proto3,enum=stabilityai.platformapis.generation.v1.InterpolateMode,oneof" json:"mode,omitempty"` +} + +func (x *InterpolateParameters) Reset() { + *x = InterpolateParameters{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InterpolateParameters) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InterpolateParameters) ProtoMessage() {} + +func (x *InterpolateParameters) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InterpolateParameters.ProtoReflect.Descriptor instead. +func (*InterpolateParameters) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{19} +} + +func (x *InterpolateParameters) GetRatios() []float32 { + if x != nil { + return x.Ratios + } + return nil +} + +func (x *InterpolateParameters) GetMode() InterpolateMode { + if x != nil && x.Mode != nil { + return *x.Mode + } + return InterpolateMode_INTERPOLATE_LINEAR +} + +type TransformColorAdjust struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Brightness *float32 `protobuf:"fixed32,1,opt,name=brightness,proto3,oneof" json:"brightness,omitempty"` // scale pixel intensities, 1.0 is no change + Contrast *float32 `protobuf:"fixed32,2,opt,name=contrast,proto3,oneof" json:"contrast,omitempty"` // contrast adjustment, 1.0 is no change + Hue *float32 `protobuf:"fixed32,3,opt,name=hue,proto3,oneof" json:"hue,omitempty"` // -180 to 180 hue adjustment, 0.0 is no change + Saturation *float32 `protobuf:"fixed32,4,opt,name=saturation,proto3,oneof" json:"saturation,omitempty"` // 0.0 to 2.0 saturation scale, 1.0 is no change + Lightness *float32 `protobuf:"fixed32,5,opt,name=lightness,proto3,oneof" json:"lightness,omitempty"` // -1.0 to 1.0 lightness adjustment, 0.0 is no change + MatchImage *Artifact `protobuf:"bytes,6,opt,name=match_image,json=matchImage,proto3,oneof" json:"match_image,omitempty"` // image to color match + MatchMode *ColorMatchMode `protobuf:"varint,7,opt,name=match_mode,json=matchMode,proto3,enum=stabilityai.platformapis.generation.v1.ColorMatchMode,oneof" json:"match_mode,omitempty"` // color match mode to use + NoiseAmount *float32 `protobuf:"fixed32,8,opt,name=noise_amount,json=noiseAmount,proto3,oneof" json:"noise_amount,omitempty"` // amount of gaussian noise to add + NoiseSeed *uint32 `protobuf:"varint,9,opt,name=noise_seed,json=noiseSeed,proto3,oneof" json:"noise_seed,omitempty"` // random seed for noise +} + +func (x *TransformColorAdjust) Reset() { + *x = TransformColorAdjust{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TransformColorAdjust) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TransformColorAdjust) ProtoMessage() {} + +func (x *TransformColorAdjust) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TransformColorAdjust.ProtoReflect.Descriptor instead. +func (*TransformColorAdjust) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{20} +} + +func (x *TransformColorAdjust) GetBrightness() float32 { + if x != nil && x.Brightness != nil { + return *x.Brightness + } + return 0 +} + +func (x *TransformColorAdjust) GetContrast() float32 { + if x != nil && x.Contrast != nil { + return *x.Contrast + } + return 0 +} + +func (x *TransformColorAdjust) GetHue() float32 { + if x != nil && x.Hue != nil { + return *x.Hue + } + return 0 +} + +func (x *TransformColorAdjust) GetSaturation() float32 { + if x != nil && x.Saturation != nil { + return *x.Saturation + } + return 0 +} + +func (x *TransformColorAdjust) GetLightness() float32 { + if x != nil && x.Lightness != nil { + return *x.Lightness + } + return 0 +} + +func (x *TransformColorAdjust) GetMatchImage() *Artifact { + if x != nil { + return x.MatchImage + } + return nil +} + +func (x *TransformColorAdjust) GetMatchMode() ColorMatchMode { + if x != nil && x.MatchMode != nil { + return *x.MatchMode + } + return ColorMatchMode_COLOR_MATCH_HSV +} + +func (x *TransformColorAdjust) GetNoiseAmount() float32 { + if x != nil && x.NoiseAmount != nil { + return *x.NoiseAmount + } + return 0 +} + +func (x *TransformColorAdjust) GetNoiseSeed() uint32 { + if x != nil && x.NoiseSeed != nil { + return *x.NoiseSeed + } + return 0 +} + +type TransformDepthCalc struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BlendWeight *float32 `protobuf:"fixed32,1,opt,name=blend_weight,json=blendWeight,proto3,oneof" json:"blend_weight,omitempty"` // blend factor between AdaBins (0.0) and MiDaS (1.0) + BlurRadius *uint32 `protobuf:"varint,2,opt,name=blur_radius,json=blurRadius,proto3,oneof" json:"blur_radius,omitempty"` // defaults to 0.0 + Reverse *bool `protobuf:"varint,3,opt,name=reverse,proto3,oneof" json:"reverse,omitempty"` // make near depths have higher values +} + +func (x *TransformDepthCalc) Reset() { + *x = TransformDepthCalc{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TransformDepthCalc) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TransformDepthCalc) ProtoMessage() {} + +func (x *TransformDepthCalc) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TransformDepthCalc.ProtoReflect.Descriptor instead. +func (*TransformDepthCalc) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{21} +} + +func (x *TransformDepthCalc) GetBlendWeight() float32 { + if x != nil && x.BlendWeight != nil { + return *x.BlendWeight + } + return 0 +} + +func (x *TransformDepthCalc) GetBlurRadius() uint32 { + if x != nil && x.BlurRadius != nil { + return *x.BlurRadius + } + return 0 +} + +func (x *TransformDepthCalc) GetReverse() bool { + if x != nil && x.Reverse != nil { + return *x.Reverse + } + return false +} + +type TransformMatrix struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Column-major 3x3 or 4x4 perspective matrix + // [sx, 10, 20, tx] [x] + // [01, sy, 21, ty] . [y] + // [02, 12, sz, tz] [z] + // [03, 13, 23, 33] [1] + Data []float32 `protobuf:"fixed32,1,rep,packed,name=data,proto3" json:"data,omitempty"` +} + +func (x *TransformMatrix) Reset() { + *x = TransformMatrix{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TransformMatrix) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TransformMatrix) ProtoMessage() {} + +func (x *TransformMatrix) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TransformMatrix.ProtoReflect.Descriptor instead. +func (*TransformMatrix) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{22} +} + +func (x *TransformMatrix) GetData() []float32 { + if x != nil { + return x.Data + } + return nil +} + +type TransformResample struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BorderMode BorderMode `protobuf:"varint,1,opt,name=border_mode,json=borderMode,proto3,enum=stabilityai.platformapis.generation.v1.BorderMode" json:"border_mode,omitempty"` // extrapolation of border pixels + Transform *TransformMatrix `protobuf:"bytes,2,opt,name=transform,proto3" json:"transform,omitempty"` // 3x3 or 4x4 matrix + PrevTransform *TransformMatrix `protobuf:"bytes,3,opt,name=prev_transform,json=prevTransform,proto3,oneof" json:"prev_transform,omitempty"` // 3x3 or 4x4 matrix, defaults to identity + DepthWarp *float32 `protobuf:"fixed32,4,opt,name=depth_warp,json=depthWarp,proto3,oneof" json:"depth_warp,omitempty"` // depth warp factor, defaults to 1.0 + ExportMask *bool `protobuf:"varint,5,opt,name=export_mask,json=exportMask,proto3,oneof" json:"export_mask,omitempty"` // return inpaint mask +} + +func (x *TransformResample) Reset() { + *x = TransformResample{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TransformResample) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TransformResample) ProtoMessage() {} + +func (x *TransformResample) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TransformResample.ProtoReflect.Descriptor instead. +func (*TransformResample) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{23} +} + +func (x *TransformResample) GetBorderMode() BorderMode { + if x != nil { + return x.BorderMode + } + return BorderMode_BORDER_REFLECT +} + +func (x *TransformResample) GetTransform() *TransformMatrix { + if x != nil { + return x.Transform + } + return nil +} + +func (x *TransformResample) GetPrevTransform() *TransformMatrix { + if x != nil { + return x.PrevTransform + } + return nil +} + +func (x *TransformResample) GetDepthWarp() float32 { + if x != nil && x.DepthWarp != nil { + return *x.DepthWarp + } + return 0 +} + +func (x *TransformResample) GetExportMask() bool { + if x != nil && x.ExportMask != nil { + return *x.ExportMask + } + return false +} + +type CameraParameters struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CameraType CameraType `protobuf:"varint,1,opt,name=camera_type,json=cameraType,proto3,enum=stabilityai.platformapis.generation.v1.CameraType" json:"camera_type,omitempty"` + NearPlane float32 `protobuf:"fixed32,2,opt,name=near_plane,json=nearPlane,proto3" json:"near_plane,omitempty"` // Nearest plane depth of a rendered frustum + FarPlane float32 `protobuf:"fixed32,3,opt,name=far_plane,json=farPlane,proto3" json:"far_plane,omitempty"` // Farthest plane depth of a rendered frustum + Fov *float32 `protobuf:"fixed32,4,opt,name=fov,proto3,oneof" json:"fov,omitempty"` // Camera field of view (in degrees). Must be set for CAMERA_PERSPECTIVE type. +} + +func (x *CameraParameters) Reset() { + *x = CameraParameters{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CameraParameters) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CameraParameters) ProtoMessage() {} + +func (x *CameraParameters) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CameraParameters.ProtoReflect.Descriptor instead. +func (*CameraParameters) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{24} +} + +func (x *CameraParameters) GetCameraType() CameraType { + if x != nil { + return x.CameraType + } + return CameraType_CAMERA_PERSPECTIVE +} + +func (x *CameraParameters) GetNearPlane() float32 { + if x != nil { + return x.NearPlane + } + return 0 +} + +func (x *CameraParameters) GetFarPlane() float32 { + if x != nil { + return x.FarPlane + } + return 0 +} + +func (x *CameraParameters) GetFov() float32 { + if x != nil && x.Fov != nil { + return *x.Fov + } + return 0 +} + +type TransformCameraPose struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + WorldToViewMatrix *TransformMatrix `protobuf:"bytes,1,opt,name=world_to_view_matrix,json=worldToViewMatrix,proto3" json:"world_to_view_matrix,omitempty"` // 4x4 transform matrix for the next frame + CameraParameters *CameraParameters `protobuf:"bytes,2,opt,name=camera_parameters,json=cameraParameters,proto3" json:"camera_parameters,omitempty"` + DoPrefill bool `protobuf:"varint,5,opt,name=do_prefill,json=doPrefill,proto3" json:"do_prefill,omitempty"` // Prefill masked areas with values matching the colors around the area + RenderMode RenderMode `protobuf:"varint,8,opt,name=render_mode,json=renderMode,proto3,enum=stabilityai.platformapis.generation.v1.RenderMode" json:"render_mode,omitempty"` // Both image and mask will be rendered using this method. +} + +func (x *TransformCameraPose) Reset() { + *x = TransformCameraPose{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TransformCameraPose) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TransformCameraPose) ProtoMessage() {} + +func (x *TransformCameraPose) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TransformCameraPose.ProtoReflect.Descriptor instead. +func (*TransformCameraPose) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{25} +} + +func (x *TransformCameraPose) GetWorldToViewMatrix() *TransformMatrix { + if x != nil { + return x.WorldToViewMatrix + } + return nil +} + +func (x *TransformCameraPose) GetCameraParameters() *CameraParameters { + if x != nil { + return x.CameraParameters + } + return nil +} + +func (x *TransformCameraPose) GetDoPrefill() bool { + if x != nil { + return x.DoPrefill + } + return false +} + +func (x *TransformCameraPose) GetRenderMode() RenderMode { + if x != nil { + return x.RenderMode + } + return RenderMode_RENDER_MESH +} + +type TransformParameters struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Transform: + // + // *TransformParameters_ColorAdjust + // *TransformParameters_DepthCalc + // *TransformParameters_Resample + // *TransformParameters_CameraPose + Transform isTransformParameters_Transform `protobuf_oneof:"transform"` +} + +func (x *TransformParameters) Reset() { + *x = TransformParameters{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TransformParameters) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TransformParameters) ProtoMessage() {} + +func (x *TransformParameters) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TransformParameters.ProtoReflect.Descriptor instead. +func (*TransformParameters) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{26} +} + +func (m *TransformParameters) GetTransform() isTransformParameters_Transform { + if m != nil { + return m.Transform + } + return nil +} + +func (x *TransformParameters) GetColorAdjust() *TransformColorAdjust { + if x, ok := x.GetTransform().(*TransformParameters_ColorAdjust); ok { + return x.ColorAdjust + } + return nil +} + +func (x *TransformParameters) GetDepthCalc() *TransformDepthCalc { + if x, ok := x.GetTransform().(*TransformParameters_DepthCalc); ok { + return x.DepthCalc + } + return nil +} + +func (x *TransformParameters) GetResample() *TransformResample { + if x, ok := x.GetTransform().(*TransformParameters_Resample); ok { + return x.Resample + } + return nil +} + +func (x *TransformParameters) GetCameraPose() *TransformCameraPose { + if x, ok := x.GetTransform().(*TransformParameters_CameraPose); ok { + return x.CameraPose + } + return nil +} + +type isTransformParameters_Transform interface { + isTransformParameters_Transform() +} + +type TransformParameters_ColorAdjust struct { + ColorAdjust *TransformColorAdjust `protobuf:"bytes,2,opt,name=color_adjust,json=colorAdjust,proto3,oneof"` +} + +type TransformParameters_DepthCalc struct { + DepthCalc *TransformDepthCalc `protobuf:"bytes,4,opt,name=depth_calc,json=depthCalc,proto3,oneof"` +} + +type TransformParameters_Resample struct { + Resample *TransformResample `protobuf:"bytes,5,opt,name=resample,proto3,oneof"` +} + +type TransformParameters_CameraPose struct { + CameraPose *TransformCameraPose `protobuf:"bytes,6,opt,name=camera_pose,json=cameraPose,proto3,oneof"` +} + +func (*TransformParameters_ColorAdjust) isTransformParameters_Transform() {} + +func (*TransformParameters_DepthCalc) isTransformParameters_Transform() {} + +func (*TransformParameters_Resample) isTransformParameters_Transform() {} + +func (*TransformParameters_CameraPose) isTransformParameters_Transform() {} + +type AssetParameters struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Action AssetAction `protobuf:"varint,1,opt,name=action,proto3,enum=stabilityai.platformapis.generation.v1.AssetAction" json:"action,omitempty"` + ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Use AssetUse `protobuf:"varint,3,opt,name=use,proto3,enum=stabilityai.platformapis.generation.v1.AssetUse" json:"use,omitempty"` +} + +func (x *AssetParameters) Reset() { + *x = AssetParameters{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AssetParameters) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AssetParameters) ProtoMessage() {} + +func (x *AssetParameters) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AssetParameters.ProtoReflect.Descriptor instead. +func (*AssetParameters) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{27} +} + +func (x *AssetParameters) GetAction() AssetAction { + if x != nil { + return x.Action + } + return AssetAction_ASSET_PUT +} + +func (x *AssetParameters) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *AssetParameters) GetUse() AssetUse { + if x != nil { + return x.Use + } + return AssetUse_ASSET_USE_UNDEFINED +} + +// AnswerMeta is a set of metadata about an answer, usually the operating +// environment. +type AnswerMeta struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + GpuId *string `protobuf:"bytes,1,opt,name=gpu_id,json=gpuId,proto3,oneof" json:"gpu_id,omitempty"` + CpuId *string `protobuf:"bytes,2,opt,name=cpu_id,json=cpuId,proto3,oneof" json:"cpu_id,omitempty"` + NodeId *string `protobuf:"bytes,3,opt,name=node_id,json=nodeId,proto3,oneof" json:"node_id,omitempty"` + EngineId *string `protobuf:"bytes,4,opt,name=engine_id,json=engineId,proto3,oneof" json:"engine_id,omitempty"` +} + +func (x *AnswerMeta) Reset() { + *x = AnswerMeta{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AnswerMeta) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AnswerMeta) ProtoMessage() {} + +func (x *AnswerMeta) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AnswerMeta.ProtoReflect.Descriptor instead. +func (*AnswerMeta) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{28} +} + +func (x *AnswerMeta) GetGpuId() string { + if x != nil && x.GpuId != nil { + return *x.GpuId + } + return "" +} + +func (x *AnswerMeta) GetCpuId() string { + if x != nil && x.CpuId != nil { + return *x.CpuId + } + return "" +} + +func (x *AnswerMeta) GetNodeId() string { + if x != nil && x.NodeId != nil { + return *x.NodeId + } + return "" +} + +func (x *AnswerMeta) GetEngineId() string { + if x != nil && x.EngineId != nil { + return *x.EngineId + } + return "" +} + +// An Answer is a response to a Request. It is a set of Artifacts, which can be +// of any type and forwarded to the client or the next stage. +type Answer struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AnswerId string `protobuf:"bytes,1,opt,name=answer_id,json=answerId,proto3" json:"answer_id,omitempty"` + RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + Received uint64 `protobuf:"varint,3,opt,name=received,proto3" json:"received,omitempty"` + Created uint64 `protobuf:"varint,4,opt,name=created,proto3" json:"created,omitempty"` + Meta *AnswerMeta `protobuf:"bytes,6,opt,name=meta,proto3,oneof" json:"meta,omitempty"` + Artifacts []*Artifact `protobuf:"bytes,7,rep,name=artifacts,proto3" json:"artifacts,omitempty"` +} + +func (x *Answer) Reset() { + *x = Answer{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Answer) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Answer) ProtoMessage() {} + +func (x *Answer) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[29] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Answer.ProtoReflect.Descriptor instead. +func (*Answer) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{29} +} + +func (x *Answer) GetAnswerId() string { + if x != nil { + return x.AnswerId + } + return "" +} + +func (x *Answer) GetRequestId() string { + if x != nil { + return x.RequestId + } + return "" +} + +func (x *Answer) GetReceived() uint64 { + if x != nil { + return x.Received + } + return 0 +} + +func (x *Answer) GetCreated() uint64 { + if x != nil { + return x.Created + } + return 0 +} + +func (x *Answer) GetMeta() *AnswerMeta { + if x != nil { + return x.Meta + } + return nil +} + +func (x *Answer) GetArtifacts() []*Artifact { + if x != nil { + return x.Artifacts + } + return nil +} + +// An AnswerBatch is a set of Answers. It can represent one or several completed +// requests, which may be sent to the client in a single response. +type AnswerBatch struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BatchId string `protobuf:"bytes,1,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"` + Answers []*Answer `protobuf:"bytes,2,rep,name=answers,proto3" json:"answers,omitempty"` +} + +func (x *AnswerBatch) Reset() { + *x = AnswerBatch{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AnswerBatch) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AnswerBatch) ProtoMessage() {} + +func (x *AnswerBatch) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[30] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AnswerBatch.ProtoReflect.Descriptor instead. +func (*AnswerBatch) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{30} +} + +func (x *AnswerBatch) GetBatchId() string { + if x != nil { + return x.BatchId + } + return "" +} + +func (x *AnswerBatch) GetAnswers() []*Answer { + if x != nil { + return x.Answers + } + return nil +} + +// A Request is a set of Artifacts, which can be of any type with model or +// transform parameters. It is sent to the server, which will respond with an +// Answer. +type Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + EngineId string `protobuf:"bytes,1,opt,name=engine_id,json=engineId,proto3" json:"engine_id,omitempty"` + RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + RequestedType ArtifactType `protobuf:"varint,3,opt,name=requested_type,json=requestedType,proto3,enum=stabilityai.platformapis.generation.v1.ArtifactType" json:"requested_type,omitempty"` + Prompt []*Prompt `protobuf:"bytes,4,rep,name=prompt,proto3" json:"prompt,omitempty"` + // Types that are assignable to Params: + // + // *Request_Image + // *Request_Classifier + // *Request_Asset + // *Request_Interpolate + // *Request_Transform + Params isRequest_Params `protobuf_oneof:"params"` + Conditioner *ConditionerParameters `protobuf:"bytes,6,opt,name=conditioner,proto3,oneof" json:"conditioner,omitempty"` + Extras *structpb.Struct `protobuf:"bytes,2047,opt,name=extras,proto3,oneof" json:"extras,omitempty"` // for development use +} + +func (x *Request) Reset() { + *x = Request{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Request) ProtoMessage() {} + +func (x *Request) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[31] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Request.ProtoReflect.Descriptor instead. +func (*Request) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{31} +} + +func (x *Request) GetEngineId() string { + if x != nil { + return x.EngineId + } + return "" +} + +func (x *Request) GetRequestId() string { + if x != nil { + return x.RequestId + } + return "" +} + +func (x *Request) GetRequestedType() ArtifactType { + if x != nil { + return x.RequestedType + } + return ArtifactType_ARTIFACT_NONE +} + +func (x *Request) GetPrompt() []*Prompt { + if x != nil { + return x.Prompt + } + return nil +} + +func (m *Request) GetParams() isRequest_Params { + if m != nil { + return m.Params + } + return nil +} + +func (x *Request) GetImage() *ImageParameters { + if x, ok := x.GetParams().(*Request_Image); ok { + return x.Image + } + return nil +} + +func (x *Request) GetClassifier() *ClassifierParameters { + if x, ok := x.GetParams().(*Request_Classifier); ok { + return x.Classifier + } + return nil +} + +func (x *Request) GetAsset() *AssetParameters { + if x, ok := x.GetParams().(*Request_Asset); ok { + return x.Asset + } + return nil +} + +func (x *Request) GetInterpolate() *InterpolateParameters { + if x, ok := x.GetParams().(*Request_Interpolate); ok { + return x.Interpolate + } + return nil +} + +func (x *Request) GetTransform() *TransformParameters { + if x, ok := x.GetParams().(*Request_Transform); ok { + return x.Transform + } + return nil +} + +func (x *Request) GetConditioner() *ConditionerParameters { + if x != nil { + return x.Conditioner + } + return nil +} + +func (x *Request) GetExtras() *structpb.Struct { + if x != nil { + return x.Extras + } + return nil +} + +type isRequest_Params interface { + isRequest_Params() +} + +type Request_Image struct { + Image *ImageParameters `protobuf:"bytes,5,opt,name=image,proto3,oneof"` +} + +type Request_Classifier struct { + Classifier *ClassifierParameters `protobuf:"bytes,7,opt,name=classifier,proto3,oneof"` +} + +type Request_Asset struct { + Asset *AssetParameters `protobuf:"bytes,8,opt,name=asset,proto3,oneof"` +} + +type Request_Interpolate struct { + Interpolate *InterpolateParameters `protobuf:"bytes,11,opt,name=interpolate,proto3,oneof"` +} + +type Request_Transform struct { + Transform *TransformParameters `protobuf:"bytes,12,opt,name=transform,proto3,oneof"` +} + +func (*Request_Image) isRequest_Params() {} + +func (*Request_Classifier) isRequest_Params() {} + +func (*Request_Asset) isRequest_Params() {} + +func (*Request_Interpolate) isRequest_Params() {} + +func (*Request_Transform) isRequest_Params() {} + +type OnStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Reason []FinishReason `protobuf:"varint,1,rep,packed,name=reason,proto3,enum=stabilityai.platformapis.generation.v1.FinishReason" json:"reason,omitempty"` + Target *string `protobuf:"bytes,2,opt,name=target,proto3,oneof" json:"target,omitempty"` + Action []StageAction `protobuf:"varint,3,rep,packed,name=action,proto3,enum=stabilityai.platformapis.generation.v1.StageAction" json:"action,omitempty"` +} + +func (x *OnStatus) Reset() { + *x = OnStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OnStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OnStatus) ProtoMessage() {} + +func (x *OnStatus) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[32] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OnStatus.ProtoReflect.Descriptor instead. +func (*OnStatus) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{32} +} + +func (x *OnStatus) GetReason() []FinishReason { + if x != nil { + return x.Reason + } + return nil +} + +func (x *OnStatus) GetTarget() string { + if x != nil && x.Target != nil { + return *x.Target + } + return "" +} + +func (x *OnStatus) GetAction() []StageAction { + if x != nil { + return x.Action + } + return nil +} + +type Stage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Request *Request `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` + OnStatus []*OnStatus `protobuf:"bytes,3,rep,name=on_status,json=onStatus,proto3" json:"on_status,omitempty"` +} + +func (x *Stage) Reset() { + *x = Stage{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Stage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Stage) ProtoMessage() {} + +func (x *Stage) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[33] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Stage.ProtoReflect.Descriptor instead. +func (*Stage) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{33} +} + +func (x *Stage) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Stage) GetRequest() *Request { + if x != nil { + return x.Request + } + return nil +} + +func (x *Stage) GetOnStatus() []*OnStatus { + if x != nil { + return x.OnStatus + } + return nil +} + +type ChainRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + Stage []*Stage `protobuf:"bytes,2,rep,name=stage,proto3" json:"stage,omitempty"` +} + +func (x *ChainRequest) Reset() { + *x = ChainRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ChainRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChainRequest) ProtoMessage() {} + +func (x *ChainRequest) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[34] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ChainRequest.ProtoReflect.Descriptor instead. +func (*ChainRequest) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{34} +} + +func (x *ChainRequest) GetRequestId() string { + if x != nil { + return x.RequestId + } + return "" +} + +func (x *ChainRequest) GetStage() []*Stage { + if x != nil { + return x.Stage + } + return nil +} + +var File_stabilityai_platformapis_generation_v1_generation_proto protoreflect.FileDescriptor + +var file_stabilityai_platformapis_generation_v1_generation_proto_rawDesc = []byte{ + 0x0a, 0x37, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2f, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x26, 0x73, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1f, 0x63, 0x6f, 0x72, 0x65, 0x77, 0x65, 0x61, 0x76, 0x65, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x73, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0x39, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x17, 0x0a, 0x04, 0x74, 0x65, 0x78, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x88, + 0x01, 0x01, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, + 0x69, 0x64, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x22, 0x88, 0x01, 0x0a, 0x06, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x45, 0x0a, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x26, 0x0a, + 0x0c, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, 0x72, + 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x69, + 0x7a, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0xd7, 0x04, 0x0a, 0x08, 0x41, 0x72, 0x74, 0x69, 0x66, + 0x61, 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x48, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, + 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, + 0x04, 0x6d, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x69, 0x6d, + 0x65, 0x12, 0x19, 0x0a, 0x05, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x01, 0x52, 0x05, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x88, 0x01, 0x01, 0x12, 0x18, 0x0a, 0x06, + 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x06, + 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x48, 0x0a, 0x06, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x73, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x06, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x5e, 0x0a, 0x0a, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, + 0x66, 0x69, 0x65, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x73, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, 0x0a, 0x63, 0x6c, 0x61, 0x73, + 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x06, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, + 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x06, 0x74, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x59, 0x0a, 0x0d, 0x66, 0x69, 0x6e, 0x69, 0x73, + 0x68, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, + 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, + 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x0c, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x61, 0x73, + 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x0c, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, + 0x7a, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x42, 0x06, + 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6d, 0x61, 0x67, 0x69, 0x63, + 0x22, 0x5c, 0x0a, 0x10, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, + 0x74, 0x65, 0x72, 0x73, 0x12, 0x17, 0x0a, 0x04, 0x69, 0x6e, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x08, 0x48, 0x00, 0x52, 0x04, 0x69, 0x6e, 0x69, 0x74, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, + 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x48, 0x01, 0x52, + 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x69, + 0x6e, 0x69, 0x74, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0xb0, + 0x02, 0x0a, 0x06, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x12, 0x5d, 0x0a, 0x0a, 0x70, 0x61, 0x72, + 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, + 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x01, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, + 0x65, 0x74, 0x65, 0x72, 0x73, 0x88, 0x01, 0x01, 0x12, 0x14, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x48, + 0x0a, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, + 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x48, 0x00, + 0x52, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x4e, 0x0a, 0x08, 0x61, 0x72, 0x74, 0x69, + 0x66, 0x61, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x48, 0x00, 0x52, 0x08, + 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x42, 0x08, 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x6d, + 0x70, 0x74, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, + 0x73, 0x22, 0xb9, 0x03, 0x0a, 0x11, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x15, 0x0a, 0x03, 0x65, 0x74, 0x61, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x03, 0x65, 0x74, 0x61, 0x88, 0x01, 0x01, 0x12, 0x2a, + 0x0a, 0x0e, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x48, 0x01, 0x52, 0x0d, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, + 0x6e, 0x67, 0x53, 0x74, 0x65, 0x70, 0x73, 0x88, 0x01, 0x01, 0x12, 0x2c, 0x0a, 0x0f, 0x6c, 0x61, + 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x04, 0x48, 0x02, 0x52, 0x0e, 0x6c, 0x61, 0x74, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, + 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x88, 0x01, 0x01, 0x12, 0x34, 0x0a, 0x13, 0x64, 0x6f, 0x77, 0x6e, + 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x04, 0x48, 0x03, 0x52, 0x12, 0x64, 0x6f, 0x77, 0x6e, 0x73, 0x61, 0x6d, + 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x88, 0x01, 0x01, 0x12, 0x20, + 0x0a, 0x09, 0x63, 0x66, 0x67, 0x5f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x02, 0x48, 0x04, 0x52, 0x08, 0x63, 0x66, 0x67, 0x53, 0x63, 0x61, 0x6c, 0x65, 0x88, 0x01, 0x01, + 0x12, 0x2d, 0x0a, 0x10, 0x69, 0x6e, 0x69, 0x74, 0x5f, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x73, + 0x63, 0x61, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x02, 0x48, 0x05, 0x52, 0x0e, 0x69, 0x6e, + 0x69, 0x74, 0x4e, 0x6f, 0x69, 0x73, 0x65, 0x53, 0x63, 0x61, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x12, + 0x2d, 0x0a, 0x10, 0x73, 0x74, 0x65, 0x70, 0x5f, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x73, 0x63, + 0x61, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x02, 0x48, 0x06, 0x52, 0x0e, 0x73, 0x74, 0x65, + 0x70, 0x4e, 0x6f, 0x69, 0x73, 0x65, 0x53, 0x63, 0x61, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x42, 0x06, + 0x0a, 0x04, 0x5f, 0x65, 0x74, 0x61, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x73, 0x61, 0x6d, 0x70, 0x6c, + 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x73, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x6c, 0x61, + 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x42, 0x16, 0x0a, + 0x14, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x66, + 0x61, 0x63, 0x74, 0x6f, 0x72, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x63, 0x66, 0x67, 0x5f, 0x73, 0x63, + 0x61, 0x6c, 0x65, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x69, 0x6e, 0x69, 0x74, 0x5f, 0x6e, 0x6f, 0x69, + 0x73, 0x65, 0x5f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x73, 0x74, 0x65, + 0x70, 0x5f, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x22, 0xca, 0x01, + 0x0a, 0x15, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x33, 0x0a, 0x13, 0x76, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x5f, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x11, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x41, 0x64, + 0x6a, 0x75, 0x73, 0x74, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x88, 0x01, 0x01, 0x12, 0x54, 0x0a, 0x0b, + 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, + 0x48, 0x01, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x88, + 0x01, 0x01, 0x42, 0x16, 0x0a, 0x14, 0x5f, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, + 0x6a, 0x75, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, + 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x22, 0x7d, 0x0a, 0x12, 0x53, 0x63, + 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, + 0x12, 0x19, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x48, + 0x00, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x88, 0x01, 0x01, 0x12, 0x15, 0x0a, 0x03, 0x65, + 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x48, 0x01, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x88, + 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x02, 0x48, 0x02, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, + 0x06, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x65, 0x6e, 0x64, 0x42, + 0x08, 0x0a, 0x06, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xea, 0x02, 0x0a, 0x0d, 0x53, 0x74, + 0x65, 0x70, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x73, + 0x63, 0x61, 0x6c, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, + 0x52, 0x0a, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x64, 0x53, 0x74, 0x65, 0x70, 0x12, 0x58, 0x0a, 0x07, + 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, + 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, 0x07, 0x73, 0x61, 0x6d, 0x70, + 0x6c, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x5b, 0x0a, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, + 0x74, 0x65, 0x72, 0x73, 0x48, 0x01, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, + 0x88, 0x01, 0x01, 0x12, 0x5b, 0x0a, 0x08, 0x67, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, + 0x73, 0x48, 0x02, 0x52, 0x08, 0x67, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x88, 0x01, 0x01, + 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x42, 0x0b, 0x0a, 0x09, + 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x67, 0x75, + 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x22, 0xf9, 0x01, 0x0a, 0x05, 0x4d, 0x6f, 0x64, 0x65, 0x6c, + 0x12, 0x5d, 0x0a, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, + 0x65, 0x52, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, + 0x1c, 0x0a, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x12, 0x18, 0x0a, + 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x65, 0x6d, + 0x61, 0x6e, 0x74, 0x69, 0x63, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, + 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, + 0x61, 0x73, 0x22, 0x82, 0x02, 0x0a, 0x10, 0x43, 0x75, 0x74, 0x6f, 0x75, 0x74, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x52, 0x0a, 0x07, 0x63, 0x75, 0x74, 0x6f, 0x75, + 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x75, 0x74, 0x6f, 0x75, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, + 0x72, 0x73, 0x52, 0x07, 0x63, 0x75, 0x74, 0x6f, 0x75, 0x74, 0x73, 0x12, 0x19, 0x0a, 0x05, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x05, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x17, 0x0a, 0x04, 0x67, 0x72, 0x61, 0x79, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x02, 0x48, 0x01, 0x52, 0x04, 0x67, 0x72, 0x61, 0x79, 0x88, 0x01, 0x01, 0x12, + 0x17, 0x0a, 0x04, 0x62, 0x6c, 0x75, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x48, 0x02, 0x52, + 0x04, 0x62, 0x6c, 0x75, 0x72, 0x88, 0x01, 0x01, 0x12, 0x22, 0x0a, 0x0a, 0x73, 0x69, 0x7a, 0x65, + 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x48, 0x03, 0x52, 0x09, + 0x73, 0x69, 0x7a, 0x65, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, + 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x67, 0x72, 0x61, 0x79, 0x42, + 0x07, 0x0a, 0x05, 0x5f, 0x62, 0x6c, 0x75, 0x72, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x73, 0x69, 0x7a, + 0x65, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x22, 0x4e, 0x0a, 0x1a, 0x47, 0x75, 0x69, 0x64, 0x61, + 0x6e, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xc8, 0x03, 0x0a, 0x1a, 0x47, 0x75, 0x69, 0x64, + 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x45, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x12, 0x30, 0x0a, + 0x11, 0x67, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x6e, 0x67, + 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x10, 0x67, 0x75, 0x69, 0x64, + 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x72, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, + 0x5e, 0x0a, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x42, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x75, 0x69, 0x64, 0x61, + 0x6e, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, + 0x57, 0x0a, 0x07, 0x63, 0x75, 0x74, 0x6f, 0x75, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x74, 0x6f, 0x75, 0x74, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x01, 0x52, 0x07, 0x63, 0x75, + 0x74, 0x6f, 0x75, 0x74, 0x73, 0x88, 0x01, 0x01, 0x12, 0x4b, 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x6d, + 0x70, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x48, 0x02, 0x52, 0x06, 0x70, 0x72, 0x6f, 0x6d, + 0x70, 0x74, 0x88, 0x01, 0x01, 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x67, 0x75, 0x69, 0x64, 0x61, 0x6e, + 0x63, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x42, 0x0a, 0x0a, 0x08, 0x5f, + 0x63, 0x75, 0x74, 0x6f, 0x75, 0x74, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x70, 0x72, 0x6f, 0x6d, + 0x70, 0x74, 0x22, 0xd7, 0x01, 0x0a, 0x12, 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x5f, 0x0a, 0x0f, 0x67, 0x75, 0x69, + 0x64, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x75, 0x69, 0x64, + 0x61, 0x6e, 0x63, 0x65, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x0e, 0x67, 0x75, 0x69, 0x64, + 0x61, 0x6e, 0x63, 0x65, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x12, 0x60, 0x0a, 0x09, 0x69, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x42, 0x2e, + 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, + 0x73, 0x52, 0x09, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x22, 0xc1, 0x01, 0x0a, + 0x0d, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x58, + 0x0a, 0x09, 0x64, 0x69, 0x66, 0x66, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x75, + 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x48, 0x00, 0x52, 0x09, 0x64, + 0x69, 0x66, 0x66, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4e, 0x0a, 0x08, 0x75, 0x70, 0x73, 0x63, + 0x61, 0x6c, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x48, 0x00, 0x52, 0x08, + 0x75, 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x22, 0x9d, 0x05, 0x0a, 0x0f, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, + 0x74, 0x65, 0x72, 0x73, 0x12, 0x1b, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x88, 0x01, + 0x01, 0x12, 0x19, 0x0a, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, + 0x48, 0x01, 0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x12, 0x0a, 0x04, + 0x73, 0x65, 0x65, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, + 0x12, 0x1d, 0x0a, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x04, 0x48, 0x02, 0x52, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, + 0x19, 0x0a, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x48, 0x03, + 0x52, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x88, 0x01, 0x01, 0x12, 0x58, 0x0a, 0x09, 0x74, 0x72, + 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, + 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, + 0x54, 0x79, 0x70, 0x65, 0x48, 0x04, 0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, + 0x6d, 0x88, 0x01, 0x01, 0x12, 0x55, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, + 0x72, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x53, 0x74, 0x65, 0x70, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, + 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x65, 0x0a, 0x10, 0x6d, + 0x61, 0x73, 0x6b, 0x65, 0x64, 0x5f, 0x61, 0x72, 0x65, 0x61, 0x5f, 0x69, 0x6e, 0x69, 0x74, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, + 0x61, 0x73, 0x6b, 0x65, 0x64, 0x41, 0x72, 0x65, 0x61, 0x49, 0x6e, 0x69, 0x74, 0x48, 0x05, 0x52, + 0x0e, 0x6d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x41, 0x72, 0x65, 0x61, 0x49, 0x6e, 0x69, 0x74, 0x88, + 0x01, 0x01, 0x12, 0x5e, 0x0a, 0x0d, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x6d, 0x65, 0x74, + 0x68, 0x6f, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x48, + 0x06, 0x52, 0x0c, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x88, + 0x01, 0x01, 0x12, 0x1f, 0x0a, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x7a, 0x65, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x08, 0x48, 0x07, 0x52, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x7a, 0x65, + 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x42, 0x08, + 0x0a, 0x06, 0x5f, 0x77, 0x69, 0x64, 0x74, 0x68, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x73, 0x61, 0x6d, + 0x70, 0x6c, 0x65, 0x73, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x73, 0x42, 0x0c, + 0x0a, 0x0a, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x13, 0x0a, 0x11, + 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x5f, 0x61, 0x72, 0x65, 0x61, 0x5f, 0x69, 0x6e, 0x69, + 0x74, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x6d, 0x65, 0x74, + 0x68, 0x6f, 0x64, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x7a, 0x65, + 0x22, 0x5e, 0x0a, 0x11, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x43, 0x6f, + 0x6e, 0x63, 0x65, 0x70, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x12, + 0x21, 0x0a, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x02, 0x48, 0x00, 0x52, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x88, + 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, + 0x22, 0x85, 0x03, 0x0a, 0x12, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x43, + 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x55, 0x0a, 0x08, 0x63, + 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, + 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x43, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x63, 0x65, 0x70, + 0x74, 0x73, 0x12, 0x23, 0x0a, 0x0a, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x6d, 0x65, 0x6e, 0x74, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, + 0x6d, 0x65, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x4b, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x01, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x88, 0x01, 0x01, 0x12, 0x64, 0x0a, 0x0f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, + 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, + 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x48, 0x02, 0x52, 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, + 0x69, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x61, + 0x64, 0x6a, 0x75, 0x73, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, + 0x69, 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0xba, 0x02, 0x0a, 0x14, 0x43, 0x6c, 0x61, + 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, + 0x73, 0x12, 0x5a, 0x0a, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, + 0x79, 0x52, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0x54, 0x0a, + 0x07, 0x65, 0x78, 0x63, 0x65, 0x65, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, + 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, + 0x65, 0x72, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x07, 0x65, 0x78, 0x63, 0x65, + 0x65, 0x64, 0x73, 0x12, 0x5c, 0x0a, 0x0f, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x73, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0e, + 0x72, 0x65, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, + 0x01, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x8a, 0x01, 0x0a, 0x15, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x70, + 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, + 0x16, 0x0a, 0x06, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x02, 0x52, + 0x06, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x73, 0x12, 0x50, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x49, + 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x48, 0x00, + 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6d, 0x6f, + 0x64, 0x65, 0x22, 0xbb, 0x04, 0x0a, 0x14, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, + 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0a, 0x62, + 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x48, + 0x00, 0x52, 0x0a, 0x62, 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x88, 0x01, 0x01, + 0x12, 0x1f, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x02, 0x48, 0x01, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x73, 0x74, 0x88, 0x01, + 0x01, 0x12, 0x15, 0x0a, 0x03, 0x68, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x48, 0x02, + 0x52, 0x03, 0x68, 0x75, 0x65, 0x88, 0x01, 0x01, 0x12, 0x23, 0x0a, 0x0a, 0x73, 0x61, 0x74, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x48, 0x03, 0x52, 0x0a, + 0x73, 0x61, 0x74, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x21, 0x0a, + 0x09, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, + 0x48, 0x04, 0x52, 0x09, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x88, 0x01, 0x01, + 0x12, 0x56, 0x0a, 0x0b, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, + 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x48, 0x05, 0x52, 0x0a, 0x6d, 0x61, 0x74, 0x63, 0x68, + 0x49, 0x6d, 0x61, 0x67, 0x65, 0x88, 0x01, 0x01, 0x12, 0x5a, 0x0a, 0x0a, 0x6d, 0x61, 0x74, 0x63, + 0x68, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x73, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x4d, 0x61, 0x74, 0x63, 0x68, + 0x4d, 0x6f, 0x64, 0x65, 0x48, 0x06, 0x52, 0x09, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x4d, 0x6f, 0x64, + 0x65, 0x88, 0x01, 0x01, 0x12, 0x26, 0x0a, 0x0c, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x61, 0x6d, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x02, 0x48, 0x07, 0x52, 0x0b, 0x6e, 0x6f, + 0x69, 0x73, 0x65, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x22, 0x0a, 0x0a, + 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, + 0x48, 0x08, 0x52, 0x09, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x53, 0x65, 0x65, 0x64, 0x88, 0x01, 0x01, + 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x62, 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x42, + 0x0b, 0x0a, 0x09, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x73, 0x74, 0x42, 0x06, 0x0a, 0x04, + 0x5f, 0x68, 0x75, 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x73, 0x61, 0x74, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, + 0x73, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x69, 0x6d, 0x61, 0x67, + 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x6d, 0x6f, 0x64, 0x65, + 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x65, 0x64, + 0x22, 0xae, 0x01, 0x0a, 0x12, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x44, 0x65, + 0x70, 0x74, 0x68, 0x43, 0x61, 0x6c, 0x63, 0x12, 0x26, 0x0a, 0x0c, 0x62, 0x6c, 0x65, 0x6e, 0x64, + 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, + 0x0b, 0x62, 0x6c, 0x65, 0x6e, 0x64, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x88, 0x01, 0x01, 0x12, + 0x24, 0x0a, 0x0b, 0x62, 0x6c, 0x75, 0x72, 0x5f, 0x72, 0x61, 0x64, 0x69, 0x75, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0d, 0x48, 0x01, 0x52, 0x0a, 0x62, 0x6c, 0x75, 0x72, 0x52, 0x61, 0x64, 0x69, + 0x75, 0x73, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x48, 0x02, 0x52, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, + 0x65, 0x88, 0x01, 0x01, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x62, 0x6c, 0x65, 0x6e, 0x64, 0x5f, 0x77, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x62, 0x6c, 0x75, 0x72, 0x5f, 0x72, + 0x61, 0x64, 0x69, 0x75, 0x73, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, + 0x65, 0x22, 0x29, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, + 0x74, 0x72, 0x69, 0x78, 0x12, 0x16, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x02, 0x42, 0x02, 0x10, 0x01, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xa0, 0x03, 0x0a, + 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x65, 0x73, 0x61, 0x6d, 0x70, + 0x6c, 0x65, 0x12, 0x53, 0x0a, 0x0b, 0x62, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x42, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x62, 0x6f, 0x72, + 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x55, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, + 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x74, + 0x72, 0x69, 0x78, 0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x63, + 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x48, + 0x00, 0x52, 0x0d, 0x70, 0x72, 0x65, 0x76, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, + 0x88, 0x01, 0x01, 0x12, 0x22, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x74, 0x68, 0x5f, 0x77, 0x61, 0x72, + 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x48, 0x01, 0x52, 0x09, 0x64, 0x65, 0x70, 0x74, 0x68, + 0x57, 0x61, 0x72, 0x70, 0x88, 0x01, 0x01, 0x12, 0x24, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x6f, 0x72, + 0x74, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x48, 0x02, 0x52, 0x0a, + 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x61, 0x73, 0x6b, 0x88, 0x01, 0x01, 0x42, 0x11, 0x0a, + 0x0f, 0x5f, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, + 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x64, 0x65, 0x70, 0x74, 0x68, 0x5f, 0x77, 0x61, 0x72, 0x70, 0x42, + 0x0e, 0x0a, 0x0c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x22, + 0xc2, 0x01, 0x0a, 0x10, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, + 0x74, 0x65, 0x72, 0x73, 0x12, 0x53, 0x0a, 0x0b, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x63, + 0x61, 0x6d, 0x65, 0x72, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x61, + 0x72, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x09, 0x6e, + 0x65, 0x61, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x61, 0x72, 0x5f, + 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x08, 0x66, 0x61, 0x72, + 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x66, 0x6f, 0x76, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x02, 0x48, 0x00, 0x52, 0x03, 0x66, 0x6f, 0x76, 0x88, 0x01, 0x01, 0x42, 0x06, 0x0a, 0x04, + 0x5f, 0x66, 0x6f, 0x76, 0x22, 0xf2, 0x02, 0x0a, 0x13, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, + 0x72, 0x6d, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x6f, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x14, + 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x5f, 0x74, 0x6f, 0x5f, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x6d, 0x61, + 0x74, 0x72, 0x69, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x74, + 0x72, 0x69, 0x78, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x54, 0x6f, 0x56, 0x69, 0x65, 0x77, + 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x12, 0x65, 0x0a, 0x11, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, + 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6d, 0x65, 0x72, + 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x10, 0x63, 0x61, 0x6d, + 0x65, 0x72, 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1d, 0x0a, + 0x0a, 0x64, 0x6f, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x6c, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x09, 0x64, 0x6f, 0x50, 0x72, 0x65, 0x66, 0x69, 0x6c, 0x6c, 0x12, 0x53, 0x0a, 0x0b, + 0x72, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x72, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, + 0x65, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x4a, 0x04, 0x08, + 0x06, 0x10, 0x07, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x22, 0x9b, 0x03, 0x0a, 0x13, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, + 0x73, 0x12, 0x61, 0x0a, 0x0c, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x6a, 0x75, 0x73, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x41, + 0x64, 0x6a, 0x75, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x41, 0x64, + 0x6a, 0x75, 0x73, 0x74, 0x12, 0x5b, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x74, 0x68, 0x5f, 0x63, 0x61, + 0x6c, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x44, 0x65, 0x70, 0x74, 0x68, + 0x43, 0x61, 0x6c, 0x63, 0x48, 0x00, 0x52, 0x09, 0x64, 0x65, 0x70, 0x74, 0x68, 0x43, 0x61, 0x6c, + 0x63, 0x12, 0x57, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, + 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x65, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x48, 0x00, + 0x52, 0x08, 0x72, 0x65, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x5e, 0x0a, 0x0b, 0x63, 0x61, + 0x6d, 0x65, 0x72, 0x61, 0x5f, 0x70, 0x6f, 0x73, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x3b, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, + 0x72, 0x6d, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x6f, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0a, + 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x6f, 0x73, 0x65, 0x42, 0x0b, 0x0a, 0x09, 0x74, 0x72, + 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x22, 0xc1, 0x01, 0x0a, 0x0f, 0x41, 0x73, 0x73, 0x65, + 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x4b, 0x0a, 0x06, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x73, 0x74, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x03, 0x75, 0x73, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, + 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, + 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x52, 0x03, 0x75, 0x73, 0x65, 0x22, 0xb4, 0x01, 0x0a, 0x0a, + 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x06, 0x67, 0x70, + 0x75, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x67, 0x70, + 0x75, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1a, 0x0a, 0x06, 0x63, 0x70, 0x75, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x05, 0x63, 0x70, 0x75, 0x49, 0x64, 0x88, + 0x01, 0x01, 0x12, 0x1c, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x88, 0x01, 0x01, + 0x12, 0x20, 0x0a, 0x09, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x08, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x88, + 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x67, 0x70, 0x75, 0x5f, 0x69, 0x64, 0x42, 0x09, 0x0a, + 0x07, 0x5f, 0x63, 0x70, 0x75, 0x5f, 0x69, 0x64, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x6e, 0x6f, 0x64, + 0x65, 0x5f, 0x69, 0x64, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, + 0x69, 0x64, 0x22, 0xa0, 0x02, 0x0a, 0x06, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, 0x1b, 0x0a, + 0x09, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x63, + 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x63, + 0x65, 0x69, 0x76, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, + 0x4b, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, + 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x4d, 0x65, 0x74, + 0x61, 0x48, 0x00, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x88, 0x01, 0x01, 0x12, 0x4e, 0x0a, 0x09, + 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, + 0x74, 0x52, 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x42, 0x07, 0x0a, 0x05, + 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x22, 0x72, 0x0a, 0x0b, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x42, + 0x61, 0x74, 0x63, 0x68, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x61, 0x74, 0x63, 0x68, 0x49, 0x64, 0x12, + 0x48, 0x0a, 0x07, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, + 0x52, 0x07, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x22, 0xfa, 0x06, 0x0a, 0x07, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, + 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, + 0x64, 0x12, 0x5b, 0x0a, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x46, + 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, + 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x52, 0x06, + 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x12, 0x4f, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x49, + 0x6d, 0x61, 0x67, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, + 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x5e, 0x0a, 0x0a, 0x63, 0x6c, 0x61, 0x73, 0x73, + 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x73, 0x74, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, 0x0a, 0x63, 0x6c, 0x61, + 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x4f, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x41, 0x73, 0x73, 0x65, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, + 0x00, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x61, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, + 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, + 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, 0x0b, + 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x5b, 0x0a, 0x09, 0x74, + 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, + 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, + 0x6d, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, 0x09, 0x74, + 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x64, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x64, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, + 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x01, 0x52, 0x0b, + 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x35, + 0x0a, 0x06, 0x65, 0x78, 0x74, 0x72, 0x61, 0x73, 0x18, 0xff, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x48, 0x02, 0x52, 0x06, 0x65, 0x78, 0x74, 0x72, + 0x61, 0x73, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, + 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x42, + 0x09, 0x0a, 0x07, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x73, 0x4a, 0x04, 0x08, 0x09, 0x10, 0x0a, + 0x4a, 0x04, 0x08, 0x0a, 0x10, 0x0b, 0x22, 0xcd, 0x01, 0x0a, 0x08, 0x4f, 0x6e, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x4c, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6e, + 0x69, 0x73, 0x68, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, + 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x00, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x88, 0x01, 0x01, 0x12, 0x4b, + 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x33, + 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x67, 0x65, 0x41, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x09, 0x0a, 0x07, 0x5f, + 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, 0xb1, 0x01, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x67, 0x65, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x49, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4d, 0x0a, 0x09, 0x6f, + 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, + 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x08, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x72, 0x0a, 0x0c, 0x43, 0x68, + 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x43, 0x0a, 0x05, 0x73, 0x74, 0x61, + 0x67, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x53, 0x74, 0x61, 0x67, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x67, 0x65, 0x2a, 0x45, + 0x0a, 0x0c, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x08, + 0x0a, 0x04, 0x4e, 0x55, 0x4c, 0x4c, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x45, 0x4e, 0x47, + 0x54, 0x48, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x53, 0x54, 0x4f, 0x50, 0x10, 0x02, 0x12, 0x09, + 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x49, 0x4c, + 0x54, 0x45, 0x52, 0x10, 0x04, 0x2a, 0xf8, 0x01, 0x0a, 0x0c, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, + 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, + 0x43, 0x54, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x52, 0x54, + 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x10, 0x01, 0x12, 0x12, 0x0a, + 0x0e, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x56, 0x49, 0x44, 0x45, 0x4f, 0x10, + 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x54, 0x45, + 0x58, 0x54, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, + 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x53, 0x10, 0x04, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x52, 0x54, + 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x45, 0x4d, 0x42, 0x45, 0x44, 0x44, 0x49, 0x4e, 0x47, 0x10, + 0x05, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x43, 0x4c, + 0x41, 0x53, 0x53, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x10, 0x06, 0x12, + 0x11, 0x0a, 0x0d, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x4d, 0x41, 0x53, 0x4b, + 0x10, 0x07, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x4c, + 0x41, 0x54, 0x45, 0x4e, 0x54, 0x10, 0x08, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x52, 0x54, 0x49, 0x46, + 0x41, 0x43, 0x54, 0x5f, 0x54, 0x45, 0x4e, 0x53, 0x4f, 0x52, 0x10, 0x09, 0x12, 0x12, 0x0a, 0x0e, + 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x44, 0x45, 0x50, 0x54, 0x48, 0x10, 0x0a, + 0x2a, 0x67, 0x0a, 0x0e, 0x4d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x41, 0x72, 0x65, 0x61, 0x49, 0x6e, + 0x69, 0x74, 0x12, 0x19, 0x0a, 0x15, 0x4d, 0x41, 0x53, 0x4b, 0x45, 0x44, 0x5f, 0x41, 0x52, 0x45, + 0x41, 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x1b, 0x0a, + 0x17, 0x4d, 0x41, 0x53, 0x4b, 0x45, 0x44, 0x5f, 0x41, 0x52, 0x45, 0x41, 0x5f, 0x49, 0x4e, 0x49, + 0x54, 0x5f, 0x52, 0x41, 0x4e, 0x44, 0x4f, 0x4d, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x4d, 0x41, + 0x53, 0x4b, 0x45, 0x44, 0x5f, 0x41, 0x52, 0x45, 0x41, 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x5f, 0x4f, + 0x52, 0x49, 0x47, 0x49, 0x4e, 0x41, 0x4c, 0x10, 0x02, 0x2a, 0x35, 0x0a, 0x0c, 0x57, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x45, 0x58, + 0x54, 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x45, 0x52, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x43, + 0x52, 0x4f, 0x53, 0x53, 0x5f, 0x41, 0x54, 0x54, 0x45, 0x4e, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x01, + 0x2a, 0x98, 0x02, 0x0a, 0x10, 0x44, 0x69, 0x66, 0x66, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x61, + 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, + 0x5f, 0x44, 0x44, 0x49, 0x4d, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x41, 0x4d, 0x50, 0x4c, + 0x45, 0x52, 0x5f, 0x44, 0x44, 0x50, 0x4d, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x41, 0x4d, + 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x45, 0x55, 0x4c, 0x45, 0x52, 0x10, 0x02, 0x12, 0x1d, + 0x0a, 0x19, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x45, 0x55, 0x4c, 0x45, + 0x52, 0x5f, 0x41, 0x4e, 0x43, 0x45, 0x53, 0x54, 0x52, 0x41, 0x4c, 0x10, 0x03, 0x12, 0x12, 0x0a, + 0x0e, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x48, 0x45, 0x55, 0x4e, 0x10, + 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x44, + 0x50, 0x4d, 0x5f, 0x32, 0x10, 0x05, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, + 0x52, 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x5f, 0x32, 0x5f, 0x41, 0x4e, 0x43, 0x45, 0x53, 0x54, + 0x52, 0x41, 0x4c, 0x10, 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, + 0x5f, 0x4b, 0x5f, 0x4c, 0x4d, 0x53, 0x10, 0x07, 0x12, 0x20, 0x0a, 0x1c, 0x53, 0x41, 0x4d, 0x50, + 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x50, 0x50, 0x5f, 0x32, 0x53, 0x5f, 0x41, + 0x4e, 0x43, 0x45, 0x53, 0x54, 0x52, 0x41, 0x4c, 0x10, 0x08, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x41, + 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x50, 0x50, 0x5f, 0x32, 0x4d, + 0x10, 0x09, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, + 0x44, 0x50, 0x4d, 0x50, 0x50, 0x5f, 0x53, 0x44, 0x45, 0x10, 0x0a, 0x2a, 0x46, 0x0a, 0x08, 0x55, + 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x0c, 0x55, 0x50, 0x53, 0x43, 0x41, + 0x4c, 0x45, 0x52, 0x5f, 0x52, 0x47, 0x42, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x50, 0x53, + 0x43, 0x41, 0x4c, 0x45, 0x52, 0x5f, 0x47, 0x46, 0x50, 0x47, 0x41, 0x4e, 0x10, 0x01, 0x12, 0x13, + 0x0a, 0x0f, 0x55, 0x50, 0x53, 0x43, 0x41, 0x4c, 0x45, 0x52, 0x5f, 0x45, 0x53, 0x52, 0x47, 0x41, + 0x4e, 0x10, 0x02, 0x2a, 0xd8, 0x01, 0x0a, 0x0e, 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, + 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x14, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, + 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, + 0x12, 0x1a, 0x0a, 0x16, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, + 0x53, 0x45, 0x54, 0x5f, 0x53, 0x49, 0x4d, 0x50, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, + 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, + 0x46, 0x41, 0x53, 0x54, 0x5f, 0x42, 0x4c, 0x55, 0x45, 0x10, 0x02, 0x12, 0x1e, 0x0a, 0x1a, 0x47, + 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x46, + 0x41, 0x53, 0x54, 0x5f, 0x47, 0x52, 0x45, 0x45, 0x4e, 0x10, 0x03, 0x12, 0x18, 0x0a, 0x14, 0x47, + 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x53, + 0x4c, 0x4f, 0x57, 0x10, 0x04, 0x12, 0x1a, 0x0a, 0x16, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, + 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x45, 0x52, 0x10, + 0x05, 0x12, 0x1b, 0x0a, 0x17, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, + 0x45, 0x53, 0x45, 0x54, 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x45, 0x53, 0x54, 0x10, 0x06, 0x2a, 0x91, + 0x01, 0x0a, 0x11, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, + 0x74, 0x75, 0x72, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x41, 0x52, + 0x43, 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, + 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x41, 0x52, 0x43, 0x48, 0x49, + 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x43, 0x4c, 0x49, 0x50, 0x5f, 0x56, 0x49, 0x54, + 0x10, 0x01, 0x12, 0x22, 0x0a, 0x1e, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x41, 0x52, 0x43, 0x48, + 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x43, 0x4c, 0x49, 0x50, 0x5f, 0x52, 0x45, + 0x53, 0x4e, 0x45, 0x54, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, + 0x41, 0x52, 0x43, 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x4c, 0x44, 0x4d, + 0x10, 0x03, 0x2a, 0xa2, 0x01, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, + 0x12, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x41, 0x53, 0x53, 0x54, 0x48, 0x52, 0x4f, + 0x55, 0x47, 0x48, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, + 0x52, 0x45, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x44, 0x55, 0x50, 0x4c, 0x49, + 0x43, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, + 0x5f, 0x52, 0x45, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x1e, 0x0a, + 0x1a, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4f, 0x42, 0x46, 0x55, 0x53, 0x43, 0x41, 0x54, + 0x45, 0x5f, 0x44, 0x55, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x45, 0x10, 0x03, 0x12, 0x14, 0x0a, + 0x10, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4f, 0x42, 0x46, 0x55, 0x53, 0x43, 0x41, 0x54, + 0x45, 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x49, + 0x53, 0x43, 0x41, 0x52, 0x44, 0x10, 0x05, 0x2a, 0x44, 0x0a, 0x0e, 0x43, 0x6c, 0x61, 0x73, 0x73, + 0x69, 0x66, 0x69, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x4c, 0x53, + 0x46, 0x52, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x53, 0x48, 0x4f, 0x54, + 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x4c, 0x53, 0x46, 0x52, 0x5f, 0x4d, 0x4f, 0x44, 0x45, + 0x5f, 0x4d, 0x55, 0x4c, 0x54, 0x49, 0x43, 0x4c, 0x41, 0x53, 0x53, 0x10, 0x01, 0x2a, 0x8c, 0x01, + 0x0a, 0x0f, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, + 0x65, 0x12, 0x16, 0x0a, 0x12, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x50, 0x4f, 0x4c, 0x41, 0x54, 0x45, + 0x5f, 0x4c, 0x49, 0x4e, 0x45, 0x41, 0x52, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x49, 0x4e, 0x54, + 0x45, 0x52, 0x50, 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x52, 0x49, 0x46, 0x45, 0x10, 0x01, 0x12, + 0x1a, 0x0a, 0x16, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x50, 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x56, + 0x41, 0x45, 0x5f, 0x4c, 0x49, 0x4e, 0x45, 0x41, 0x52, 0x10, 0x02, 0x12, 0x19, 0x0a, 0x15, 0x49, + 0x4e, 0x54, 0x45, 0x52, 0x50, 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x56, 0x41, 0x45, 0x5f, 0x53, + 0x4c, 0x45, 0x52, 0x50, 0x10, 0x03, 0x12, 0x14, 0x0a, 0x10, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x50, + 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x46, 0x49, 0x4c, 0x4d, 0x10, 0x04, 0x2a, 0x6c, 0x0a, 0x0a, + 0x42, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x42, 0x4f, + 0x52, 0x44, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x46, 0x4c, 0x45, 0x43, 0x54, 0x10, 0x00, 0x12, 0x14, + 0x0a, 0x10, 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x50, 0x4c, 0x49, 0x43, 0x41, + 0x54, 0x45, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x57, + 0x52, 0x41, 0x50, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, + 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, + 0x5f, 0x50, 0x52, 0x45, 0x46, 0x49, 0x4c, 0x4c, 0x10, 0x04, 0x2a, 0x4f, 0x0a, 0x0e, 0x43, 0x6f, + 0x6c, 0x6f, 0x72, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x13, 0x0a, 0x0f, + 0x43, 0x4f, 0x4c, 0x4f, 0x52, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x5f, 0x48, 0x53, 0x56, 0x10, + 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x4f, 0x4c, 0x4f, 0x52, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, + 0x5f, 0x4c, 0x41, 0x42, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x4f, 0x4c, 0x4f, 0x52, 0x5f, + 0x4d, 0x41, 0x54, 0x43, 0x48, 0x5f, 0x52, 0x47, 0x42, 0x10, 0x02, 0x2a, 0x3d, 0x0a, 0x0a, 0x43, + 0x61, 0x6d, 0x65, 0x72, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x41, 0x4d, + 0x45, 0x52, 0x41, 0x5f, 0x50, 0x45, 0x52, 0x53, 0x50, 0x45, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, + 0x00, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x41, 0x4d, 0x45, 0x52, 0x41, 0x5f, 0x4f, 0x52, 0x54, 0x48, + 0x4f, 0x47, 0x52, 0x41, 0x50, 0x48, 0x49, 0x43, 0x10, 0x01, 0x2a, 0x34, 0x0a, 0x0a, 0x52, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x45, 0x4e, 0x44, + 0x45, 0x52, 0x5f, 0x4d, 0x45, 0x53, 0x48, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, 0x4e, + 0x44, 0x45, 0x52, 0x5f, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x43, 0x4c, 0x4f, 0x55, 0x44, 0x10, 0x01, + 0x2a, 0x3d, 0x0a, 0x0b, 0x41, 0x73, 0x73, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x0d, 0x0a, 0x09, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x50, 0x55, 0x54, 0x10, 0x00, 0x12, 0x0d, + 0x0a, 0x09, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x47, 0x45, 0x54, 0x10, 0x01, 0x12, 0x10, 0x0a, + 0x0c, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x02, 0x2a, + 0x81, 0x01, 0x0a, 0x08, 0x41, 0x73, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x12, 0x17, 0x0a, 0x13, + 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, + 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, + 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x50, 0x55, 0x54, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x41, 0x53, + 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x10, 0x02, + 0x12, 0x1a, 0x0a, 0x16, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x4e, + 0x54, 0x45, 0x52, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x54, 0x45, 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, + 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, + 0x54, 0x10, 0x04, 0x2a, 0x57, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x67, 0x65, 0x41, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, + 0x4f, 0x4e, 0x5f, 0x50, 0x41, 0x53, 0x53, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x54, 0x41, + 0x47, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x49, 0x53, 0x43, 0x41, 0x52, + 0x44, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x41, 0x43, 0x54, + 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x54, 0x55, 0x52, 0x4e, 0x10, 0x02, 0x32, 0xff, 0x01, 0x0a, + 0x11, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x12, 0x6f, 0x0a, 0x08, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x12, 0x2f, + 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x22, + 0x00, 0x30, 0x01, 0x12, 0x79, 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x47, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x65, 0x12, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, + 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, + 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x22, 0x00, 0x30, 0x01, 0x42, 0xe1, + 0x02, 0x0a, 0x2a, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, + 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x47, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x67, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, 0x47, 0xaa, + 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x50, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x70, 0x69, 0x73, 0x5c, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, + 0x31, 0xe2, 0x02, 0x32, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, + 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x47, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x29, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x3a, 0x3a, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, + 0x69, 0x73, 0x3a, 0x3a, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, + 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_stabilityai_platformapis_generation_v1_generation_proto_rawDescOnce sync.Once + file_stabilityai_platformapis_generation_v1_generation_proto_rawDescData = file_stabilityai_platformapis_generation_v1_generation_proto_rawDesc +) + +func file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP() []byte { + file_stabilityai_platformapis_generation_v1_generation_proto_rawDescOnce.Do(func() { + file_stabilityai_platformapis_generation_v1_generation_proto_rawDescData = protoimpl.X.CompressGZIP(file_stabilityai_platformapis_generation_v1_generation_proto_rawDescData) + }) + return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescData +} + +var file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes = make([]protoimpl.EnumInfo, 18) +var file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes = make([]protoimpl.MessageInfo, 35) +var file_stabilityai_platformapis_generation_v1_generation_proto_goTypes = []interface{}{ + (FinishReason)(0), // 0: stabilityai.platformapis.generation.v1.FinishReason + (ArtifactType)(0), // 1: stabilityai.platformapis.generation.v1.ArtifactType + (MaskedAreaInit)(0), // 2: stabilityai.platformapis.generation.v1.MaskedAreaInit + (WeightMethod)(0), // 3: stabilityai.platformapis.generation.v1.WeightMethod + (DiffusionSampler)(0), // 4: stabilityai.platformapis.generation.v1.DiffusionSampler + (Upscaler)(0), // 5: stabilityai.platformapis.generation.v1.Upscaler + (GuidancePreset)(0), // 6: stabilityai.platformapis.generation.v1.GuidancePreset + (ModelArchitecture)(0), // 7: stabilityai.platformapis.generation.v1.ModelArchitecture + (Action)(0), // 8: stabilityai.platformapis.generation.v1.Action + (ClassifierMode)(0), // 9: stabilityai.platformapis.generation.v1.ClassifierMode + (InterpolateMode)(0), // 10: stabilityai.platformapis.generation.v1.InterpolateMode + (BorderMode)(0), // 11: stabilityai.platformapis.generation.v1.BorderMode + (ColorMatchMode)(0), // 12: stabilityai.platformapis.generation.v1.ColorMatchMode + (CameraType)(0), // 13: stabilityai.platformapis.generation.v1.CameraType + (RenderMode)(0), // 14: stabilityai.platformapis.generation.v1.RenderMode + (AssetAction)(0), // 15: stabilityai.platformapis.generation.v1.AssetAction + (AssetUse)(0), // 16: stabilityai.platformapis.generation.v1.AssetUse + (StageAction)(0), // 17: stabilityai.platformapis.generation.v1.StageAction + (*Token)(nil), // 18: stabilityai.platformapis.generation.v1.Token + (*Tokens)(nil), // 19: stabilityai.platformapis.generation.v1.Tokens + (*Artifact)(nil), // 20: stabilityai.platformapis.generation.v1.Artifact + (*PromptParameters)(nil), // 21: stabilityai.platformapis.generation.v1.PromptParameters + (*Prompt)(nil), // 22: stabilityai.platformapis.generation.v1.Prompt + (*SamplerParameters)(nil), // 23: stabilityai.platformapis.generation.v1.SamplerParameters + (*ConditionerParameters)(nil), // 24: stabilityai.platformapis.generation.v1.ConditionerParameters + (*ScheduleParameters)(nil), // 25: stabilityai.platformapis.generation.v1.ScheduleParameters + (*StepParameter)(nil), // 26: stabilityai.platformapis.generation.v1.StepParameter + (*Model)(nil), // 27: stabilityai.platformapis.generation.v1.Model + (*CutoutParameters)(nil), // 28: stabilityai.platformapis.generation.v1.CutoutParameters + (*GuidanceScheduleParameters)(nil), // 29: stabilityai.platformapis.generation.v1.GuidanceScheduleParameters + (*GuidanceInstanceParameters)(nil), // 30: stabilityai.platformapis.generation.v1.GuidanceInstanceParameters + (*GuidanceParameters)(nil), // 31: stabilityai.platformapis.generation.v1.GuidanceParameters + (*TransformType)(nil), // 32: stabilityai.platformapis.generation.v1.TransformType + (*ImageParameters)(nil), // 33: stabilityai.platformapis.generation.v1.ImageParameters + (*ClassifierConcept)(nil), // 34: stabilityai.platformapis.generation.v1.ClassifierConcept + (*ClassifierCategory)(nil), // 35: stabilityai.platformapis.generation.v1.ClassifierCategory + (*ClassifierParameters)(nil), // 36: stabilityai.platformapis.generation.v1.ClassifierParameters + (*InterpolateParameters)(nil), // 37: stabilityai.platformapis.generation.v1.InterpolateParameters + (*TransformColorAdjust)(nil), // 38: stabilityai.platformapis.generation.v1.TransformColorAdjust + (*TransformDepthCalc)(nil), // 39: stabilityai.platformapis.generation.v1.TransformDepthCalc + (*TransformMatrix)(nil), // 40: stabilityai.platformapis.generation.v1.TransformMatrix + (*TransformResample)(nil), // 41: stabilityai.platformapis.generation.v1.TransformResample + (*CameraParameters)(nil), // 42: stabilityai.platformapis.generation.v1.CameraParameters + (*TransformCameraPose)(nil), // 43: stabilityai.platformapis.generation.v1.TransformCameraPose + (*TransformParameters)(nil), // 44: stabilityai.platformapis.generation.v1.TransformParameters + (*AssetParameters)(nil), // 45: stabilityai.platformapis.generation.v1.AssetParameters + (*AnswerMeta)(nil), // 46: stabilityai.platformapis.generation.v1.AnswerMeta + (*Answer)(nil), // 47: stabilityai.platformapis.generation.v1.Answer + (*AnswerBatch)(nil), // 48: stabilityai.platformapis.generation.v1.AnswerBatch + (*Request)(nil), // 49: stabilityai.platformapis.generation.v1.Request + (*OnStatus)(nil), // 50: stabilityai.platformapis.generation.v1.OnStatus + (*Stage)(nil), // 51: stabilityai.platformapis.generation.v1.Stage + (*ChainRequest)(nil), // 52: stabilityai.platformapis.generation.v1.ChainRequest + (*tensors.Tensor)(nil), // 53: tensors.Tensor + (*structpb.Struct)(nil), // 54: google.protobuf.Struct +} +var file_stabilityai_platformapis_generation_v1_generation_proto_depIdxs = []int32{ + 18, // 0: stabilityai.platformapis.generation.v1.Tokens.tokens:type_name -> stabilityai.platformapis.generation.v1.Token + 1, // 1: stabilityai.platformapis.generation.v1.Artifact.type:type_name -> stabilityai.platformapis.generation.v1.ArtifactType + 19, // 2: stabilityai.platformapis.generation.v1.Artifact.tokens:type_name -> stabilityai.platformapis.generation.v1.Tokens + 36, // 3: stabilityai.platformapis.generation.v1.Artifact.classifier:type_name -> stabilityai.platformapis.generation.v1.ClassifierParameters + 53, // 4: stabilityai.platformapis.generation.v1.Artifact.tensor:type_name -> tensors.Tensor + 0, // 5: stabilityai.platformapis.generation.v1.Artifact.finish_reason:type_name -> stabilityai.platformapis.generation.v1.FinishReason + 21, // 6: stabilityai.platformapis.generation.v1.Prompt.parameters:type_name -> stabilityai.platformapis.generation.v1.PromptParameters + 19, // 7: stabilityai.platformapis.generation.v1.Prompt.tokens:type_name -> stabilityai.platformapis.generation.v1.Tokens + 20, // 8: stabilityai.platformapis.generation.v1.Prompt.artifact:type_name -> stabilityai.platformapis.generation.v1.Artifact + 27, // 9: stabilityai.platformapis.generation.v1.ConditionerParameters.conditioner:type_name -> stabilityai.platformapis.generation.v1.Model + 23, // 10: stabilityai.platformapis.generation.v1.StepParameter.sampler:type_name -> stabilityai.platformapis.generation.v1.SamplerParameters + 25, // 11: stabilityai.platformapis.generation.v1.StepParameter.schedule:type_name -> stabilityai.platformapis.generation.v1.ScheduleParameters + 31, // 12: stabilityai.platformapis.generation.v1.StepParameter.guidance:type_name -> stabilityai.platformapis.generation.v1.GuidanceParameters + 7, // 13: stabilityai.platformapis.generation.v1.Model.architecture:type_name -> stabilityai.platformapis.generation.v1.ModelArchitecture + 28, // 14: stabilityai.platformapis.generation.v1.CutoutParameters.cutouts:type_name -> stabilityai.platformapis.generation.v1.CutoutParameters + 27, // 15: stabilityai.platformapis.generation.v1.GuidanceInstanceParameters.models:type_name -> stabilityai.platformapis.generation.v1.Model + 29, // 16: stabilityai.platformapis.generation.v1.GuidanceInstanceParameters.schedule:type_name -> stabilityai.platformapis.generation.v1.GuidanceScheduleParameters + 28, // 17: stabilityai.platformapis.generation.v1.GuidanceInstanceParameters.cutouts:type_name -> stabilityai.platformapis.generation.v1.CutoutParameters + 22, // 18: stabilityai.platformapis.generation.v1.GuidanceInstanceParameters.prompt:type_name -> stabilityai.platformapis.generation.v1.Prompt + 6, // 19: stabilityai.platformapis.generation.v1.GuidanceParameters.guidance_preset:type_name -> stabilityai.platformapis.generation.v1.GuidancePreset + 30, // 20: stabilityai.platformapis.generation.v1.GuidanceParameters.instances:type_name -> stabilityai.platformapis.generation.v1.GuidanceInstanceParameters + 4, // 21: stabilityai.platformapis.generation.v1.TransformType.diffusion:type_name -> stabilityai.platformapis.generation.v1.DiffusionSampler + 5, // 22: stabilityai.platformapis.generation.v1.TransformType.upscaler:type_name -> stabilityai.platformapis.generation.v1.Upscaler + 32, // 23: stabilityai.platformapis.generation.v1.ImageParameters.transform:type_name -> stabilityai.platformapis.generation.v1.TransformType + 26, // 24: stabilityai.platformapis.generation.v1.ImageParameters.parameters:type_name -> stabilityai.platformapis.generation.v1.StepParameter + 2, // 25: stabilityai.platformapis.generation.v1.ImageParameters.masked_area_init:type_name -> stabilityai.platformapis.generation.v1.MaskedAreaInit + 3, // 26: stabilityai.platformapis.generation.v1.ImageParameters.weight_method:type_name -> stabilityai.platformapis.generation.v1.WeightMethod + 34, // 27: stabilityai.platformapis.generation.v1.ClassifierCategory.concepts:type_name -> stabilityai.platformapis.generation.v1.ClassifierConcept + 8, // 28: stabilityai.platformapis.generation.v1.ClassifierCategory.action:type_name -> stabilityai.platformapis.generation.v1.Action + 9, // 29: stabilityai.platformapis.generation.v1.ClassifierCategory.classifier_mode:type_name -> stabilityai.platformapis.generation.v1.ClassifierMode + 35, // 30: stabilityai.platformapis.generation.v1.ClassifierParameters.categories:type_name -> stabilityai.platformapis.generation.v1.ClassifierCategory + 35, // 31: stabilityai.platformapis.generation.v1.ClassifierParameters.exceeds:type_name -> stabilityai.platformapis.generation.v1.ClassifierCategory + 8, // 32: stabilityai.platformapis.generation.v1.ClassifierParameters.realized_action:type_name -> stabilityai.platformapis.generation.v1.Action + 10, // 33: stabilityai.platformapis.generation.v1.InterpolateParameters.mode:type_name -> stabilityai.platformapis.generation.v1.InterpolateMode + 20, // 34: stabilityai.platformapis.generation.v1.TransformColorAdjust.match_image:type_name -> stabilityai.platformapis.generation.v1.Artifact + 12, // 35: stabilityai.platformapis.generation.v1.TransformColorAdjust.match_mode:type_name -> stabilityai.platformapis.generation.v1.ColorMatchMode + 11, // 36: stabilityai.platformapis.generation.v1.TransformResample.border_mode:type_name -> stabilityai.platformapis.generation.v1.BorderMode + 40, // 37: stabilityai.platformapis.generation.v1.TransformResample.transform:type_name -> stabilityai.platformapis.generation.v1.TransformMatrix + 40, // 38: stabilityai.platformapis.generation.v1.TransformResample.prev_transform:type_name -> stabilityai.platformapis.generation.v1.TransformMatrix + 13, // 39: stabilityai.platformapis.generation.v1.CameraParameters.camera_type:type_name -> stabilityai.platformapis.generation.v1.CameraType + 40, // 40: stabilityai.platformapis.generation.v1.TransformCameraPose.world_to_view_matrix:type_name -> stabilityai.platformapis.generation.v1.TransformMatrix + 42, // 41: stabilityai.platformapis.generation.v1.TransformCameraPose.camera_parameters:type_name -> stabilityai.platformapis.generation.v1.CameraParameters + 14, // 42: stabilityai.platformapis.generation.v1.TransformCameraPose.render_mode:type_name -> stabilityai.platformapis.generation.v1.RenderMode + 38, // 43: stabilityai.platformapis.generation.v1.TransformParameters.color_adjust:type_name -> stabilityai.platformapis.generation.v1.TransformColorAdjust + 39, // 44: stabilityai.platformapis.generation.v1.TransformParameters.depth_calc:type_name -> stabilityai.platformapis.generation.v1.TransformDepthCalc + 41, // 45: stabilityai.platformapis.generation.v1.TransformParameters.resample:type_name -> stabilityai.platformapis.generation.v1.TransformResample + 43, // 46: stabilityai.platformapis.generation.v1.TransformParameters.camera_pose:type_name -> stabilityai.platformapis.generation.v1.TransformCameraPose + 15, // 47: stabilityai.platformapis.generation.v1.AssetParameters.action:type_name -> stabilityai.platformapis.generation.v1.AssetAction + 16, // 48: stabilityai.platformapis.generation.v1.AssetParameters.use:type_name -> stabilityai.platformapis.generation.v1.AssetUse + 46, // 49: stabilityai.platformapis.generation.v1.Answer.meta:type_name -> stabilityai.platformapis.generation.v1.AnswerMeta + 20, // 50: stabilityai.platformapis.generation.v1.Answer.artifacts:type_name -> stabilityai.platformapis.generation.v1.Artifact + 47, // 51: stabilityai.platformapis.generation.v1.AnswerBatch.answers:type_name -> stabilityai.platformapis.generation.v1.Answer + 1, // 52: stabilityai.platformapis.generation.v1.Request.requested_type:type_name -> stabilityai.platformapis.generation.v1.ArtifactType + 22, // 53: stabilityai.platformapis.generation.v1.Request.prompt:type_name -> stabilityai.platformapis.generation.v1.Prompt + 33, // 54: stabilityai.platformapis.generation.v1.Request.image:type_name -> stabilityai.platformapis.generation.v1.ImageParameters + 36, // 55: stabilityai.platformapis.generation.v1.Request.classifier:type_name -> stabilityai.platformapis.generation.v1.ClassifierParameters + 45, // 56: stabilityai.platformapis.generation.v1.Request.asset:type_name -> stabilityai.platformapis.generation.v1.AssetParameters + 37, // 57: stabilityai.platformapis.generation.v1.Request.interpolate:type_name -> stabilityai.platformapis.generation.v1.InterpolateParameters + 44, // 58: stabilityai.platformapis.generation.v1.Request.transform:type_name -> stabilityai.platformapis.generation.v1.TransformParameters + 24, // 59: stabilityai.platformapis.generation.v1.Request.conditioner:type_name -> stabilityai.platformapis.generation.v1.ConditionerParameters + 54, // 60: stabilityai.platformapis.generation.v1.Request.extras:type_name -> google.protobuf.Struct + 0, // 61: stabilityai.platformapis.generation.v1.OnStatus.reason:type_name -> stabilityai.platformapis.generation.v1.FinishReason + 17, // 62: stabilityai.platformapis.generation.v1.OnStatus.action:type_name -> stabilityai.platformapis.generation.v1.StageAction + 49, // 63: stabilityai.platformapis.generation.v1.Stage.request:type_name -> stabilityai.platformapis.generation.v1.Request + 50, // 64: stabilityai.platformapis.generation.v1.Stage.on_status:type_name -> stabilityai.platformapis.generation.v1.OnStatus + 51, // 65: stabilityai.platformapis.generation.v1.ChainRequest.stage:type_name -> stabilityai.platformapis.generation.v1.Stage + 49, // 66: stabilityai.platformapis.generation.v1.GenerationService.Generate:input_type -> stabilityai.platformapis.generation.v1.Request + 52, // 67: stabilityai.platformapis.generation.v1.GenerationService.ChainGenerate:input_type -> stabilityai.platformapis.generation.v1.ChainRequest + 47, // 68: stabilityai.platformapis.generation.v1.GenerationService.Generate:output_type -> stabilityai.platformapis.generation.v1.Answer + 47, // 69: stabilityai.platformapis.generation.v1.GenerationService.ChainGenerate:output_type -> stabilityai.platformapis.generation.v1.Answer + 68, // [68:70] is the sub-list for method output_type + 66, // [66:68] is the sub-list for method input_type + 66, // [66:66] is the sub-list for extension type_name + 66, // [66:66] is the sub-list for extension extendee + 0, // [0:66] is the sub-list for field type_name +} + +func init() { file_stabilityai_platformapis_generation_v1_generation_proto_init() } +func file_stabilityai_platformapis_generation_v1_generation_proto_init() { + if File_stabilityai_platformapis_generation_v1_generation_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Token); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Tokens); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Artifact); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PromptParameters); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Prompt); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SamplerParameters); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConditionerParameters); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ScheduleParameters); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StepParameter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Model); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CutoutParameters); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GuidanceScheduleParameters); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GuidanceInstanceParameters); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GuidanceParameters); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransformType); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ImageParameters); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClassifierConcept); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClassifierCategory); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClassifierParameters); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InterpolateParameters); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransformColorAdjust); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransformDepthCalc); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransformMatrix); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransformResample); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CameraParameters); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransformCameraPose); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransformParameters); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AssetParameters); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AnswerMeta); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Answer); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AnswerBatch); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OnStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Stage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ChainRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[1].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[2].OneofWrappers = []interface{}{ + (*Artifact_Binary)(nil), + (*Artifact_Text)(nil), + (*Artifact_Tokens)(nil), + (*Artifact_Classifier)(nil), + (*Artifact_Tensor)(nil), + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[3].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[4].OneofWrappers = []interface{}{ + (*Prompt_Text)(nil), + (*Prompt_Tokens)(nil), + (*Prompt_Artifact)(nil), + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[5].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[6].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[7].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[8].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[10].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[12].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[14].OneofWrappers = []interface{}{ + (*TransformType_Diffusion)(nil), + (*TransformType_Upscaler)(nil), + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[15].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[16].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[17].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[18].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[19].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[20].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[21].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[23].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[24].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[26].OneofWrappers = []interface{}{ + (*TransformParameters_ColorAdjust)(nil), + (*TransformParameters_DepthCalc)(nil), + (*TransformParameters_Resample)(nil), + (*TransformParameters_CameraPose)(nil), + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[28].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[29].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[31].OneofWrappers = []interface{}{ + (*Request_Image)(nil), + (*Request_Classifier)(nil), + (*Request_Asset)(nil), + (*Request_Interpolate)(nil), + (*Request_Transform)(nil), + } + file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[32].OneofWrappers = []interface{}{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_stabilityai_platformapis_generation_v1_generation_proto_rawDesc, + NumEnums: 18, + NumMessages: 35, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_stabilityai_platformapis_generation_v1_generation_proto_goTypes, + DependencyIndexes: file_stabilityai_platformapis_generation_v1_generation_proto_depIdxs, + EnumInfos: file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes, + MessageInfos: file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes, + }.Build() + File_stabilityai_platformapis_generation_v1_generation_proto = out.File + file_stabilityai_platformapis_generation_v1_generation_proto_rawDesc = nil + file_stabilityai_platformapis_generation_v1_generation_proto_goTypes = nil + file_stabilityai_platformapis_generation_v1_generation_proto_depIdxs = nil +} diff --git a/gen/proto/go/stabilityai/platformapis/generation/v1/generation_grpc.pb.go b/gen/proto/go/stabilityai/platformapis/generation/v1/generation_grpc.pb.go new file mode 100644 index 0000000..8fd24e9 --- /dev/null +++ b/gen/proto/go/stabilityai/platformapis/generation/v1/generation_grpc.pb.go @@ -0,0 +1,200 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: stabilityai/platformapis/generation/v1/generation.proto + +package generationv1 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + GenerationService_Generate_FullMethodName = "/stabilityai.platformapis.generation.v1.GenerationService/Generate" + GenerationService_ChainGenerate_FullMethodName = "/stabilityai.platformapis.generation.v1.GenerationService/ChainGenerate" +) + +// GenerationServiceClient is the client API for GenerationService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type GenerationServiceClient interface { + Generate(ctx context.Context, in *Request, opts ...grpc.CallOption) (GenerationService_GenerateClient, error) + ChainGenerate(ctx context.Context, in *ChainRequest, opts ...grpc.CallOption) (GenerationService_ChainGenerateClient, error) +} + +type generationServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewGenerationServiceClient(cc grpc.ClientConnInterface) GenerationServiceClient { + return &generationServiceClient{cc} +} + +func (c *generationServiceClient) Generate(ctx context.Context, in *Request, opts ...grpc.CallOption) (GenerationService_GenerateClient, error) { + stream, err := c.cc.NewStream(ctx, &GenerationService_ServiceDesc.Streams[0], GenerationService_Generate_FullMethodName, opts...) + if err != nil { + return nil, err + } + x := &generationServiceGenerateClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type GenerationService_GenerateClient interface { + Recv() (*Answer, error) + grpc.ClientStream +} + +type generationServiceGenerateClient struct { + grpc.ClientStream +} + +func (x *generationServiceGenerateClient) Recv() (*Answer, error) { + m := new(Answer) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *generationServiceClient) ChainGenerate(ctx context.Context, in *ChainRequest, opts ...grpc.CallOption) (GenerationService_ChainGenerateClient, error) { + stream, err := c.cc.NewStream(ctx, &GenerationService_ServiceDesc.Streams[1], GenerationService_ChainGenerate_FullMethodName, opts...) + if err != nil { + return nil, err + } + x := &generationServiceChainGenerateClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type GenerationService_ChainGenerateClient interface { + Recv() (*Answer, error) + grpc.ClientStream +} + +type generationServiceChainGenerateClient struct { + grpc.ClientStream +} + +func (x *generationServiceChainGenerateClient) Recv() (*Answer, error) { + m := new(Answer) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// GenerationServiceServer is the server API for GenerationService service. +// All implementations must embed UnimplementedGenerationServiceServer +// for forward compatibility +type GenerationServiceServer interface { + Generate(*Request, GenerationService_GenerateServer) error + ChainGenerate(*ChainRequest, GenerationService_ChainGenerateServer) error + mustEmbedUnimplementedGenerationServiceServer() +} + +// UnimplementedGenerationServiceServer must be embedded to have forward compatible implementations. +type UnimplementedGenerationServiceServer struct { +} + +func (UnimplementedGenerationServiceServer) Generate(*Request, GenerationService_GenerateServer) error { + return status.Errorf(codes.Unimplemented, "method Generate not implemented") +} +func (UnimplementedGenerationServiceServer) ChainGenerate(*ChainRequest, GenerationService_ChainGenerateServer) error { + return status.Errorf(codes.Unimplemented, "method ChainGenerate not implemented") +} +func (UnimplementedGenerationServiceServer) mustEmbedUnimplementedGenerationServiceServer() {} + +// UnsafeGenerationServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to GenerationServiceServer will +// result in compilation errors. +type UnsafeGenerationServiceServer interface { + mustEmbedUnimplementedGenerationServiceServer() +} + +func RegisterGenerationServiceServer(s grpc.ServiceRegistrar, srv GenerationServiceServer) { + s.RegisterService(&GenerationService_ServiceDesc, srv) +} + +func _GenerationService_Generate_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(Request) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(GenerationServiceServer).Generate(m, &generationServiceGenerateServer{stream}) +} + +type GenerationService_GenerateServer interface { + Send(*Answer) error + grpc.ServerStream +} + +type generationServiceGenerateServer struct { + grpc.ServerStream +} + +func (x *generationServiceGenerateServer) Send(m *Answer) error { + return x.ServerStream.SendMsg(m) +} + +func _GenerationService_ChainGenerate_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ChainRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(GenerationServiceServer).ChainGenerate(m, &generationServiceChainGenerateServer{stream}) +} + +type GenerationService_ChainGenerateServer interface { + Send(*Answer) error + grpc.ServerStream +} + +type generationServiceChainGenerateServer struct { + grpc.ServerStream +} + +func (x *generationServiceChainGenerateServer) Send(m *Answer) error { + return x.ServerStream.SendMsg(m) +} + +// GenerationService_ServiceDesc is the grpc.ServiceDesc for GenerationService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var GenerationService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "stabilityai.platformapis.generation.v1.GenerationService", + HandlerType: (*GenerationServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "Generate", + Handler: _GenerationService_Generate_Handler, + ServerStreams: true, + }, + { + StreamName: "ChainGenerate", + Handler: _GenerationService_ChainGenerate_Handler, + ServerStreams: true, + }, + }, + Metadata: "stabilityai/platformapis/generation/v1/generation.proto", +} diff --git a/gen/proto/go/stabilityai/platformapis/generation/v1/generationv1connect/generation.connect.go b/gen/proto/go/stabilityai/platformapis/generation/v1/generationv1connect/generation.connect.go new file mode 100644 index 0000000..000e64f --- /dev/null +++ b/gen/proto/go/stabilityai/platformapis/generation/v1/generationv1connect/generation.connect.go @@ -0,0 +1,127 @@ +// Code generated by protoc-gen-connect-go. DO NOT EDIT. +// +// Source: stabilityai/platformapis/generation/v1/generation.proto + +package generationv1connect + +import ( + context "context" + errors "errors" + connect_go "github.com/bufbuild/connect-go" + v1 "github.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/generation/v1" + http "net/http" + strings "strings" +) + +// This is a compile-time assertion to ensure that this generated file and the connect package are +// compatible. If you get a compiler error that this constant is not defined, this code was +// generated with a version of connect newer than the one compiled into your binary. You can fix the +// problem by either regenerating this code with an older version of connect or updating the connect +// version compiled into your binary. +const _ = connect_go.IsAtLeastVersion0_1_0 + +const ( + // GenerationServiceName is the fully-qualified name of the GenerationService service. + GenerationServiceName = "stabilityai.platformapis.generation.v1.GenerationService" +) + +// These constants are the fully-qualified names of the RPCs defined in this package. They're +// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route. +// +// Note that these are different from the fully-qualified method names used by +// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to +// reflection-formatted method names, remove the leading slash and convert the remaining slash to a +// period. +const ( + // GenerationServiceGenerateProcedure is the fully-qualified name of the GenerationService's + // Generate RPC. + GenerationServiceGenerateProcedure = "/stabilityai.platformapis.generation.v1.GenerationService/Generate" + // GenerationServiceChainGenerateProcedure is the fully-qualified name of the GenerationService's + // ChainGenerate RPC. + GenerationServiceChainGenerateProcedure = "/stabilityai.platformapis.generation.v1.GenerationService/ChainGenerate" +) + +// GenerationServiceClient is a client for the +// stabilityai.platformapis.generation.v1.GenerationService service. +type GenerationServiceClient interface { + Generate(context.Context, *connect_go.Request[v1.Request]) (*connect_go.ServerStreamForClient[v1.Answer], error) + ChainGenerate(context.Context, *connect_go.Request[v1.ChainRequest]) (*connect_go.ServerStreamForClient[v1.Answer], error) +} + +// NewGenerationServiceClient constructs a client for the +// stabilityai.platformapis.generation.v1.GenerationService service. By default, it uses the Connect +// protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed +// requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or +// connect.WithGRPCWeb() options. +// +// The URL supplied here should be the base URL for the Connect or gRPC server (for example, +// http://api.acme.com or https://acme.com/grpc). +func NewGenerationServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) GenerationServiceClient { + baseURL = strings.TrimRight(baseURL, "/") + return &generationServiceClient{ + generate: connect_go.NewClient[v1.Request, v1.Answer]( + httpClient, + baseURL+GenerationServiceGenerateProcedure, + opts..., + ), + chainGenerate: connect_go.NewClient[v1.ChainRequest, v1.Answer]( + httpClient, + baseURL+GenerationServiceChainGenerateProcedure, + opts..., + ), + } +} + +// generationServiceClient implements GenerationServiceClient. +type generationServiceClient struct { + generate *connect_go.Client[v1.Request, v1.Answer] + chainGenerate *connect_go.Client[v1.ChainRequest, v1.Answer] +} + +// Generate calls stabilityai.platformapis.generation.v1.GenerationService.Generate. +func (c *generationServiceClient) Generate(ctx context.Context, req *connect_go.Request[v1.Request]) (*connect_go.ServerStreamForClient[v1.Answer], error) { + return c.generate.CallServerStream(ctx, req) +} + +// ChainGenerate calls stabilityai.platformapis.generation.v1.GenerationService.ChainGenerate. +func (c *generationServiceClient) ChainGenerate(ctx context.Context, req *connect_go.Request[v1.ChainRequest]) (*connect_go.ServerStreamForClient[v1.Answer], error) { + return c.chainGenerate.CallServerStream(ctx, req) +} + +// GenerationServiceHandler is an implementation of the +// stabilityai.platformapis.generation.v1.GenerationService service. +type GenerationServiceHandler interface { + Generate(context.Context, *connect_go.Request[v1.Request], *connect_go.ServerStream[v1.Answer]) error + ChainGenerate(context.Context, *connect_go.Request[v1.ChainRequest], *connect_go.ServerStream[v1.Answer]) error +} + +// NewGenerationServiceHandler builds an HTTP handler from the service implementation. It returns +// the path on which to mount the handler and the handler itself. +// +// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf +// and JSON codecs. They also support gzip compression. +func NewGenerationServiceHandler(svc GenerationServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler) { + mux := http.NewServeMux() + mux.Handle(GenerationServiceGenerateProcedure, connect_go.NewServerStreamHandler( + GenerationServiceGenerateProcedure, + svc.Generate, + opts..., + )) + mux.Handle(GenerationServiceChainGenerateProcedure, connect_go.NewServerStreamHandler( + GenerationServiceChainGenerateProcedure, + svc.ChainGenerate, + opts..., + )) + return "/stabilityai.platformapis.generation.v1.GenerationService/", mux +} + +// UnimplementedGenerationServiceHandler returns CodeUnimplemented from all methods. +type UnimplementedGenerationServiceHandler struct{} + +func (UnimplementedGenerationServiceHandler) Generate(context.Context, *connect_go.Request[v1.Request], *connect_go.ServerStream[v1.Answer]) error { + return connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.platformapis.generation.v1.GenerationService.Generate is not implemented")) +} + +func (UnimplementedGenerationServiceHandler) ChainGenerate(context.Context, *connect_go.Request[v1.ChainRequest], *connect_go.ServerStream[v1.Answer]) error { + return connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.platformapis.generation.v1.GenerationService.ChainGenerate is not implemented")) +} diff --git a/gen/proto/go/stabilityai/platformapis/project/v1/project.pb.go b/gen/proto/go/stabilityai/platformapis/project/v1/project.pb.go new file mode 100644 index 0000000..759d33e --- /dev/null +++ b/gen/proto/go/stabilityai/platformapis/project/v1/project.pb.go @@ -0,0 +1,1977 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: stabilityai/platformapis/project/v1/project.proto + +package projectv1 + +import ( + v1 "github.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/generation/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type ProjectAccess int32 + +const ( + ProjectAccess_PROJECT_ACCESS_PRIVATE ProjectAccess = 0 // Private access, only owner organization can access + ProjectAccess_PROJECT_ACCESS_PUBLIC ProjectAccess = 1 // Public access, anyone can access +) + +// Enum value maps for ProjectAccess. +var ( + ProjectAccess_name = map[int32]string{ + 0: "PROJECT_ACCESS_PRIVATE", + 1: "PROJECT_ACCESS_PUBLIC", + } + ProjectAccess_value = map[string]int32{ + "PROJECT_ACCESS_PRIVATE": 0, + "PROJECT_ACCESS_PUBLIC": 1, + } +) + +func (x ProjectAccess) Enum() *ProjectAccess { + p := new(ProjectAccess) + *p = x + return p +} + +func (x ProjectAccess) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ProjectAccess) Descriptor() protoreflect.EnumDescriptor { + return file_stabilityai_platformapis_project_v1_project_proto_enumTypes[0].Descriptor() +} + +func (ProjectAccess) Type() protoreflect.EnumType { + return &file_stabilityai_platformapis_project_v1_project_proto_enumTypes[0] +} + +func (x ProjectAccess) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ProjectAccess.Descriptor instead. +func (ProjectAccess) EnumDescriptor() ([]byte, []int) { + return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{0} +} + +type ProjectStatus int32 + +const ( + ProjectStatus_PROJECT_STATUS_INACTIVE ProjectStatus = 0 // Inactive project + ProjectStatus_PROJECT_STATUS_ACTIVE ProjectStatus = 1 // Active project + ProjectStatus_PROJECT_STATUS_DELETED ProjectStatus = 2 // Deleted project, only set by delete endpoint +) + +// Enum value maps for ProjectStatus. +var ( + ProjectStatus_name = map[int32]string{ + 0: "PROJECT_STATUS_INACTIVE", + 1: "PROJECT_STATUS_ACTIVE", + 2: "PROJECT_STATUS_DELETED", + } + ProjectStatus_value = map[string]int32{ + "PROJECT_STATUS_INACTIVE": 0, + "PROJECT_STATUS_ACTIVE": 1, + "PROJECT_STATUS_DELETED": 2, + } +) + +func (x ProjectStatus) Enum() *ProjectStatus { + p := new(ProjectStatus) + *p = x + return p +} + +func (x ProjectStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ProjectStatus) Descriptor() protoreflect.EnumDescriptor { + return file_stabilityai_platformapis_project_v1_project_proto_enumTypes[1].Descriptor() +} + +func (ProjectStatus) Type() protoreflect.EnumType { + return &file_stabilityai_platformapis_project_v1_project_proto_enumTypes[1] +} + +func (x ProjectStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ProjectStatus.Descriptor instead. +func (ProjectStatus) EnumDescriptor() ([]byte, []int) { + return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{1} +} + +type ProjectAssetUse int32 + +const ( + ProjectAssetUse_PROJECT_ASSET_USE_UNDEFINED ProjectAssetUse = 0 // Asset does not have use defined + ProjectAssetUse_PROJECT_ASSET_USE_INPUT ProjectAssetUse = 1 // Asset is used as an input for the project + ProjectAssetUse_PROJECT_ASSET_USE_OUTPUT ProjectAssetUse = 2 // Asset is an output from the project + ProjectAssetUse_PROJECT_ASSET_USE_INTERMEDIATE ProjectAssetUse = 3 // Asset is an output from an intermediate step of the project + ProjectAssetUse_PROJECT_ASSET_USE_PROJECT ProjectAssetUse = 4 // Asset is used as the project file for the project +) + +// Enum value maps for ProjectAssetUse. +var ( + ProjectAssetUse_name = map[int32]string{ + 0: "PROJECT_ASSET_USE_UNDEFINED", + 1: "PROJECT_ASSET_USE_INPUT", + 2: "PROJECT_ASSET_USE_OUTPUT", + 3: "PROJECT_ASSET_USE_INTERMEDIATE", + 4: "PROJECT_ASSET_USE_PROJECT", + } + ProjectAssetUse_value = map[string]int32{ + "PROJECT_ASSET_USE_UNDEFINED": 0, + "PROJECT_ASSET_USE_INPUT": 1, + "PROJECT_ASSET_USE_OUTPUT": 2, + "PROJECT_ASSET_USE_INTERMEDIATE": 3, + "PROJECT_ASSET_USE_PROJECT": 4, + } +) + +func (x ProjectAssetUse) Enum() *ProjectAssetUse { + p := new(ProjectAssetUse) + *p = x + return p +} + +func (x ProjectAssetUse) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ProjectAssetUse) Descriptor() protoreflect.EnumDescriptor { + return file_stabilityai_platformapis_project_v1_project_proto_enumTypes[2].Descriptor() +} + +func (ProjectAssetUse) Type() protoreflect.EnumType { + return &file_stabilityai_platformapis_project_v1_project_proto_enumTypes[2] +} + +func (x ProjectAssetUse) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ProjectAssetUse.Descriptor instead. +func (ProjectAssetUse) EnumDescriptor() ([]byte, []int) { + return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{2} +} + +type ProjectSortDir int32 + +const ( + ProjectSortDir_PROJECT_SORT_DIR_UNSPECIFIED ProjectSortDir = 0 // Sort direction is not specified, uses default + ProjectSortDir_PROJECT_SORT_DIR_ASC ProjectSortDir = 1 // Sort in ascending order + ProjectSortDir_PROJECT_SORT_DIR_DESC ProjectSortDir = 2 // Sort in descending order +) + +// Enum value maps for ProjectSortDir. +var ( + ProjectSortDir_name = map[int32]string{ + 0: "PROJECT_SORT_DIR_UNSPECIFIED", + 1: "PROJECT_SORT_DIR_ASC", + 2: "PROJECT_SORT_DIR_DESC", + } + ProjectSortDir_value = map[string]int32{ + "PROJECT_SORT_DIR_UNSPECIFIED": 0, + "PROJECT_SORT_DIR_ASC": 1, + "PROJECT_SORT_DIR_DESC": 2, + } +) + +func (x ProjectSortDir) Enum() *ProjectSortDir { + p := new(ProjectSortDir) + *p = x + return p +} + +func (x ProjectSortDir) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ProjectSortDir) Descriptor() protoreflect.EnumDescriptor { + return file_stabilityai_platformapis_project_v1_project_proto_enumTypes[3].Descriptor() +} + +func (ProjectSortDir) Type() protoreflect.EnumType { + return &file_stabilityai_platformapis_project_v1_project_proto_enumTypes[3] +} + +func (x ProjectSortDir) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ProjectSortDir.Descriptor instead. +func (ProjectSortDir) EnumDescriptor() ([]byte, []int) { + return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{3} +} + +type ProjectAsset struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the asset, UUIDv4 + Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"` // The URI to the asset + Use ProjectAssetUse `protobuf:"varint,3,opt,name=use,proto3,enum=stabilityai.platformapis.project.v1.ProjectAssetUse" json:"use,omitempty"` // The use of the asset with respect to the project + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // The name of the asset + Size uint64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"` // The asset size in bytes + CreatedAt uint64 `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Time of asset creation (UTC seconds epoch) + UpdatedAt uint64 `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Time of last asset update (UTC seconds epoch) + Request *v1.Request `protobuf:"bytes,8,opt,name=request,proto3" json:"request,omitempty"` // The request object that is associated with the artifact + Tags map[string]string `protobuf:"bytes,9,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // The tags associated with the asset +} + +func (x *ProjectAsset) Reset() { + *x = ProjectAsset{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectAsset) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectAsset) ProtoMessage() {} + +func (x *ProjectAsset) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProjectAsset.ProtoReflect.Descriptor instead. +func (*ProjectAsset) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{0} +} + +func (x *ProjectAsset) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *ProjectAsset) GetUri() string { + if x != nil { + return x.Uri + } + return "" +} + +func (x *ProjectAsset) GetUse() ProjectAssetUse { + if x != nil { + return x.Use + } + return ProjectAssetUse_PROJECT_ASSET_USE_UNDEFINED +} + +func (x *ProjectAsset) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ProjectAsset) GetSize() uint64 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *ProjectAsset) GetCreatedAt() uint64 { + if x != nil { + return x.CreatedAt + } + return 0 +} + +func (x *ProjectAsset) GetUpdatedAt() uint64 { + if x != nil { + return x.UpdatedAt + } + return 0 +} + +func (x *ProjectAsset) GetRequest() *v1.Request { + if x != nil { + return x.Request + } + return nil +} + +func (x *ProjectAsset) GetTags() map[string]string { + if x != nil { + return x.Tags + } + return nil +} + +type Project struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project, UUIDv4 + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // Title of the project + OwnerId string `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // The ID of the organization owning the project + Access ProjectAccess `protobuf:"varint,4,opt,name=access,proto3,enum=stabilityai.platformapis.project.v1.ProjectAccess" json:"access,omitempty"` // The access of the project (such as public vs private) + Status ProjectStatus `protobuf:"varint,5,opt,name=status,proto3,enum=stabilityai.platformapis.project.v1.ProjectStatus" json:"status,omitempty"` // The status of the project (such as active vs inactive) + Size uint64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` // The size of the project in bytes + File *ProjectAsset `protobuf:"bytes,7,opt,name=file,proto3" json:"file,omitempty"` // Project file for the project + CreatedAt uint64 `protobuf:"varint,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Time of project creation (UTC seconds epoch) + UpdatedAt uint64 `protobuf:"varint,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Time of last project update (UTC seconds epoch) + Assets []*ProjectAsset `protobuf:"bytes,10,rep,name=assets,proto3" json:"assets,omitempty"` // The listing of all assets associated with the project +} + +func (x *Project) Reset() { + *x = Project{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Project) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Project) ProtoMessage() {} + +func (x *Project) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Project.ProtoReflect.Descriptor instead. +func (*Project) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{1} +} + +func (x *Project) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Project) GetTitle() string { + if x != nil { + return x.Title + } + return "" +} + +func (x *Project) GetOwnerId() string { + if x != nil { + return x.OwnerId + } + return "" +} + +func (x *Project) GetAccess() ProjectAccess { + if x != nil { + return x.Access + } + return ProjectAccess_PROJECT_ACCESS_PRIVATE +} + +func (x *Project) GetStatus() ProjectStatus { + if x != nil { + return x.Status + } + return ProjectStatus_PROJECT_STATUS_INACTIVE +} + +func (x *Project) GetSize() uint64 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *Project) GetFile() *ProjectAsset { + if x != nil { + return x.File + } + return nil +} + +func (x *Project) GetCreatedAt() uint64 { + if x != nil { + return x.CreatedAt + } + return 0 +} + +func (x *Project) GetUpdatedAt() uint64 { + if x != nil { + return x.UpdatedAt + } + return 0 +} + +func (x *Project) GetAssets() []*ProjectAsset { + if x != nil { + return x.Assets + } + return nil +} + +type CreateProjectRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // title of the project + OwnerId *string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3,oneof" json:"owner_id,omitempty"` // The ID of the organization owning the project, empty for default org for user + Access ProjectAccess `protobuf:"varint,3,opt,name=access,proto3,enum=stabilityai.platformapis.project.v1.ProjectAccess" json:"access,omitempty"` // The access of the project (such as public vs private) + Status ProjectStatus `protobuf:"varint,4,opt,name=status,proto3,enum=stabilityai.platformapis.project.v1.ProjectStatus" json:"status,omitempty"` // The status of the project (such as active vs inactive) + File *ProjectAsset `protobuf:"bytes,5,opt,name=file,proto3,oneof" json:"file,omitempty"` // Project file for the project (if existing, else will create) +} + +func (x *CreateProjectRequest) Reset() { + *x = CreateProjectRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateProjectRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateProjectRequest) ProtoMessage() {} + +func (x *CreateProjectRequest) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateProjectRequest.ProtoReflect.Descriptor instead. +func (*CreateProjectRequest) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{2} +} + +func (x *CreateProjectRequest) GetTitle() string { + if x != nil { + return x.Title + } + return "" +} + +func (x *CreateProjectRequest) GetOwnerId() string { + if x != nil && x.OwnerId != nil { + return *x.OwnerId + } + return "" +} + +func (x *CreateProjectRequest) GetAccess() ProjectAccess { + if x != nil { + return x.Access + } + return ProjectAccess_PROJECT_ACCESS_PRIVATE +} + +func (x *CreateProjectRequest) GetStatus() ProjectStatus { + if x != nil { + return x.Status + } + return ProjectStatus_PROJECT_STATUS_INACTIVE +} + +func (x *CreateProjectRequest) GetFile() *ProjectAsset { + if x != nil { + return x.File + } + return nil +} + +type UpdateProjectRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project, UUIDv4 + OwnerId *string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3,oneof" json:"owner_id,omitempty"` // The ID of the organization owning the project, empty for default org for user + Title *string `protobuf:"bytes,3,opt,name=title,proto3,oneof" json:"title,omitempty"` // Title of the project + Access *ProjectAccess `protobuf:"varint,4,opt,name=access,proto3,enum=stabilityai.platformapis.project.v1.ProjectAccess,oneof" json:"access,omitempty"` // The access of the project (such as public vs private) + Status *ProjectStatus `protobuf:"varint,5,opt,name=status,proto3,enum=stabilityai.platformapis.project.v1.ProjectStatus,oneof" json:"status,omitempty"` // The status of the project (such as active vs inactive) + File *ProjectAsset `protobuf:"bytes,6,opt,name=file,proto3,oneof" json:"file,omitempty"` // Project file for the project +} + +func (x *UpdateProjectRequest) Reset() { + *x = UpdateProjectRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateProjectRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateProjectRequest) ProtoMessage() {} + +func (x *UpdateProjectRequest) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateProjectRequest.ProtoReflect.Descriptor instead. +func (*UpdateProjectRequest) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{3} +} + +func (x *UpdateProjectRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *UpdateProjectRequest) GetOwnerId() string { + if x != nil && x.OwnerId != nil { + return *x.OwnerId + } + return "" +} + +func (x *UpdateProjectRequest) GetTitle() string { + if x != nil && x.Title != nil { + return *x.Title + } + return "" +} + +func (x *UpdateProjectRequest) GetAccess() ProjectAccess { + if x != nil && x.Access != nil { + return *x.Access + } + return ProjectAccess_PROJECT_ACCESS_PRIVATE +} + +func (x *UpdateProjectRequest) GetStatus() ProjectStatus { + if x != nil && x.Status != nil { + return *x.Status + } + return ProjectStatus_PROJECT_STATUS_INACTIVE +} + +func (x *UpdateProjectRequest) GetFile() *ProjectAsset { + if x != nil { + return x.File + } + return nil +} + +type ListProjectRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + OwnerId *string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3,oneof" json:"owner_id,omitempty"` // The ID of the organization owning the project, empty for default org for user +} + +func (x *ListProjectRequest) Reset() { + *x = ListProjectRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListProjectRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListProjectRequest) ProtoMessage() {} + +func (x *ListProjectRequest) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListProjectRequest.ProtoReflect.Descriptor instead. +func (*ListProjectRequest) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{4} +} + +func (x *ListProjectRequest) GetOwnerId() string { + if x != nil && x.OwnerId != nil { + return *x.OwnerId + } + return "" +} + +type GetProjectRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project to request, UUIDv4, empty string uses default project + OwnerId *string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3,oneof" json:"owner_id,omitempty"` // The ID of the organization owning the project, empty for default org for user +} + +func (x *GetProjectRequest) Reset() { + *x = GetProjectRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetProjectRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProjectRequest) ProtoMessage() {} + +func (x *GetProjectRequest) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetProjectRequest.ProtoReflect.Descriptor instead. +func (*GetProjectRequest) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{5} +} + +func (x *GetProjectRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *GetProjectRequest) GetOwnerId() string { + if x != nil && x.OwnerId != nil { + return *x.OwnerId + } + return "" +} + +type DeleteProjectRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project to request, UUIDv4 + OwnerId *string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3,oneof" json:"owner_id,omitempty"` // The ID of the organization owning the project, empty for default org for user +} + +func (x *DeleteProjectRequest) Reset() { + *x = DeleteProjectRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteProjectRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteProjectRequest) ProtoMessage() {} + +func (x *DeleteProjectRequest) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteProjectRequest.ProtoReflect.Descriptor instead. +func (*DeleteProjectRequest) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{6} +} + +func (x *DeleteProjectRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *DeleteProjectRequest) GetOwnerId() string { + if x != nil && x.OwnerId != nil { + return *x.OwnerId + } + return "" +} + +type QueryAssetsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project to request, UUIDv4, empty string uses default project + OwnerId *string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3,oneof" json:"owner_id,omitempty"` // The ID of the organization owning the assets, unset for default org for user + Since *uint64 `protobuf:"varint,3,opt,name=since,proto3,oneof" json:"since,omitempty"` // The time (UTC seconds epoch) to start listing assets from, unset for no restriction + Until *uint64 `protobuf:"varint,4,opt,name=until,proto3,oneof" json:"until,omitempty"` // The time (UTC seconds epoch) to stop listing assets at, unset for no restriction + Limit *uint64 `protobuf:"varint,5,opt,name=limit,proto3,oneof" json:"limit,omitempty"` // The maximum number of assets to return, unset for no limit + StartKey *string `protobuf:"bytes,6,opt,name=start_key,json=startKey,proto3,oneof" json:"start_key,omitempty"` // The key to start from, used to paginate results, unset for no offset + Use []ProjectAssetUse `protobuf:"varint,7,rep,packed,name=use,proto3,enum=stabilityai.platformapis.project.v1.ProjectAssetUse" json:"use,omitempty"` // The asset usage to filter the assets returned, empty for no filter + SortDir ProjectSortDir `protobuf:"varint,8,opt,name=sort_dir,json=sortDir,proto3,enum=stabilityai.platformapis.project.v1.ProjectSortDir" json:"sort_dir,omitempty"` // The sort direction based on asset creation time, default is descending + Tags map[string]string `protobuf:"bytes,9,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // The tag values used to filter the assets returned, empty for no filter +} + +func (x *QueryAssetsRequest) Reset() { + *x = QueryAssetsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAssetsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAssetsRequest) ProtoMessage() {} + +func (x *QueryAssetsRequest) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use QueryAssetsRequest.ProtoReflect.Descriptor instead. +func (*QueryAssetsRequest) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{7} +} + +func (x *QueryAssetsRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *QueryAssetsRequest) GetOwnerId() string { + if x != nil && x.OwnerId != nil { + return *x.OwnerId + } + return "" +} + +func (x *QueryAssetsRequest) GetSince() uint64 { + if x != nil && x.Since != nil { + return *x.Since + } + return 0 +} + +func (x *QueryAssetsRequest) GetUntil() uint64 { + if x != nil && x.Until != nil { + return *x.Until + } + return 0 +} + +func (x *QueryAssetsRequest) GetLimit() uint64 { + if x != nil && x.Limit != nil { + return *x.Limit + } + return 0 +} + +func (x *QueryAssetsRequest) GetStartKey() string { + if x != nil && x.StartKey != nil { + return *x.StartKey + } + return "" +} + +func (x *QueryAssetsRequest) GetUse() []ProjectAssetUse { + if x != nil { + return x.Use + } + return nil +} + +func (x *QueryAssetsRequest) GetSortDir() ProjectSortDir { + if x != nil { + return x.SortDir + } + return ProjectSortDir_PROJECT_SORT_DIR_UNSPECIFIED +} + +func (x *QueryAssetsRequest) GetTags() map[string]string { + if x != nil { + return x.Tags + } + return nil +} + +type QueryAssetsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Assets []*ProjectAsset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"` // The assets returned by the query + LastKey *string `protobuf:"bytes,2,opt,name=last_key,json=lastKey,proto3,oneof" json:"last_key,omitempty"` // The last asset key returned when the results were limited, unset when not limited +} + +func (x *QueryAssetsResponse) Reset() { + *x = QueryAssetsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryAssetsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryAssetsResponse) ProtoMessage() {} + +func (x *QueryAssetsResponse) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use QueryAssetsResponse.ProtoReflect.Descriptor instead. +func (*QueryAssetsResponse) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{8} +} + +func (x *QueryAssetsResponse) GetAssets() []*ProjectAsset { + if x != nil { + return x.Assets + } + return nil +} + +func (x *QueryAssetsResponse) GetLastKey() string { + if x != nil && x.LastKey != nil { + return *x.LastKey + } + return "" +} + +type TagAssetsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project to request, UUIDv4, empty string uses default project + OwnerId *string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3,oneof" json:"owner_id,omitempty"` // The ID of the organization owning the assets, unset for default org for user + AssetIds []string `protobuf:"bytes,3,rep,name=asset_ids,json=assetIds,proto3" json:"asset_ids,omitempty"` // The IDs of the assets to tag in the project, UUIDv4, limit 1000 + Tags map[string]string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // The tags to add to the assets +} + +func (x *TagAssetsRequest) Reset() { + *x = TagAssetsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TagAssetsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TagAssetsRequest) ProtoMessage() {} + +func (x *TagAssetsRequest) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TagAssetsRequest.ProtoReflect.Descriptor instead. +func (*TagAssetsRequest) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{9} +} + +func (x *TagAssetsRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *TagAssetsRequest) GetOwnerId() string { + if x != nil && x.OwnerId != nil { + return *x.OwnerId + } + return "" +} + +func (x *TagAssetsRequest) GetAssetIds() []string { + if x != nil { + return x.AssetIds + } + return nil +} + +func (x *TagAssetsRequest) GetTags() map[string]string { + if x != nil { + return x.Tags + } + return nil +} + +type TagAssetsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project, UUIDv4 + OwnerId string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // The ID of the organization owning the project + AssetIds []string `protobuf:"bytes,3,rep,name=asset_ids,json=assetIds,proto3" json:"asset_ids,omitempty"` // The IDs of the assets updated in the project, UUIDv4, limit 1000 +} + +func (x *TagAssetsResponse) Reset() { + *x = TagAssetsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TagAssetsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TagAssetsResponse) ProtoMessage() {} + +func (x *TagAssetsResponse) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TagAssetsResponse.ProtoReflect.Descriptor instead. +func (*TagAssetsResponse) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{10} +} + +func (x *TagAssetsResponse) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *TagAssetsResponse) GetOwnerId() string { + if x != nil { + return x.OwnerId + } + return "" +} + +func (x *TagAssetsResponse) GetAssetIds() []string { + if x != nil { + return x.AssetIds + } + return nil +} + +type UntagAssetsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project to request, UUIDv4, empty string uses default project + OwnerId *string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3,oneof" json:"owner_id,omitempty"` // The ID of the organization owning the assets, unset for default org for user + AssetIds []string `protobuf:"bytes,3,rep,name=asset_ids,json=assetIds,proto3" json:"asset_ids,omitempty"` // The IDs of the assets to tag in the project, UUIDv4, limit 1000 + TagKeys []string `protobuf:"bytes,4,rep,name=tag_keys,json=tagKeys,proto3" json:"tag_keys,omitempty"` // The keys of the tags to remove from the assets +} + +func (x *UntagAssetsRequest) Reset() { + *x = UntagAssetsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UntagAssetsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UntagAssetsRequest) ProtoMessage() {} + +func (x *UntagAssetsRequest) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UntagAssetsRequest.ProtoReflect.Descriptor instead. +func (*UntagAssetsRequest) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{11} +} + +func (x *UntagAssetsRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *UntagAssetsRequest) GetOwnerId() string { + if x != nil && x.OwnerId != nil { + return *x.OwnerId + } + return "" +} + +func (x *UntagAssetsRequest) GetAssetIds() []string { + if x != nil { + return x.AssetIds + } + return nil +} + +func (x *UntagAssetsRequest) GetTagKeys() []string { + if x != nil { + return x.TagKeys + } + return nil +} + +type UntagAssetsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project, UUIDv4 + OwnerId string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // The ID of the organization owning the project + AssetIds []string `protobuf:"bytes,3,rep,name=asset_ids,json=assetIds,proto3" json:"asset_ids,omitempty"` // The IDs of the assets updated in the project, UUIDv4, limit 1000 +} + +func (x *UntagAssetsResponse) Reset() { + *x = UntagAssetsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UntagAssetsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UntagAssetsResponse) ProtoMessage() {} + +func (x *UntagAssetsResponse) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UntagAssetsResponse.ProtoReflect.Descriptor instead. +func (*UntagAssetsResponse) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{12} +} + +func (x *UntagAssetsResponse) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *UntagAssetsResponse) GetOwnerId() string { + if x != nil { + return x.OwnerId + } + return "" +} + +func (x *UntagAssetsResponse) GetAssetIds() []string { + if x != nil { + return x.AssetIds + } + return nil +} + +type DeleteAssetsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project to request, UUIDv4, empty string uses default project + OwnerId *string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3,oneof" json:"owner_id,omitempty"` // The ID of the organization owning the project, unset for default org for user + AssetIds []string `protobuf:"bytes,3,rep,name=asset_ids,json=assetIds,proto3" json:"asset_ids,omitempty"` // The IDs of the assets to delete from the project, UUIDv4, limit 1000 +} + +func (x *DeleteAssetsRequest) Reset() { + *x = DeleteAssetsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteAssetsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteAssetsRequest) ProtoMessage() {} + +func (x *DeleteAssetsRequest) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteAssetsRequest.ProtoReflect.Descriptor instead. +func (*DeleteAssetsRequest) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{13} +} + +func (x *DeleteAssetsRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *DeleteAssetsRequest) GetOwnerId() string { + if x != nil && x.OwnerId != nil { + return *x.OwnerId + } + return "" +} + +func (x *DeleteAssetsRequest) GetAssetIds() []string { + if x != nil { + return x.AssetIds + } + return nil +} + +type DeleteAssetsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project, UUIDv4 + OwnerId string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // The ID of the organization owning the project + AssetIds []string `protobuf:"bytes,3,rep,name=asset_ids,json=assetIds,proto3" json:"asset_ids,omitempty"` // The IDs of the assets deleted from the project, UUIDv4, limit 1000 +} + +func (x *DeleteAssetsResponse) Reset() { + *x = DeleteAssetsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteAssetsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteAssetsResponse) ProtoMessage() {} + +func (x *DeleteAssetsResponse) ProtoReflect() protoreflect.Message { + mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteAssetsResponse.ProtoReflect.Descriptor instead. +func (*DeleteAssetsResponse) Descriptor() ([]byte, []int) { + return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{14} +} + +func (x *DeleteAssetsResponse) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *DeleteAssetsResponse) GetOwnerId() string { + if x != nil { + return x.OwnerId + } + return "" +} + +func (x *DeleteAssetsResponse) GetAssetIds() []string { + if x != nil { + return x.AssetIds + } + return nil +} + +var File_stabilityai_platformapis_project_v1_project_proto protoreflect.FileDescriptor + +var file_stabilityai_platformapis_project_v1_project_proto_rawDesc = []byte{ + 0x0a, 0x31, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2f, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x23, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x1a, 0x37, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, + 0x69, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, + 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0xb3, 0x03, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, + 0x65, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x75, 0x72, 0x69, 0x12, 0x46, 0x0a, 0x03, 0x75, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, + 0x73, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x52, 0x03, 0x75, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, + 0x73, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, + 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, + 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, + 0x41, 0x74, 0x12, 0x49, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, + 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x73, 0x74, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x54, + 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x1a, 0x37, + 0x0a, 0x09, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xc6, 0x03, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x49, 0x64, 0x12, 0x4a, 0x0a, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x12, 0x4a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, + 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, + 0x12, 0x45, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, + 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, + 0x74, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x64, 0x5f, 0x61, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x49, 0x0a, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x18, + 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, + 0x22, 0xc6, 0x02, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, + 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, + 0x1e, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, + 0x4a, 0x0a, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, + 0x65, 0x73, 0x73, 0x52, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x4a, 0x0a, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x4a, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x48, 0x01, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, + 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0x85, 0x03, 0x0a, 0x14, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, + 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x01, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x12, 0x4f, 0x0a, + 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, + 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x48, 0x02, 0x52, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x88, 0x01, 0x01, 0x12, 0x4f, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, + 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x48, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x88, 0x01, 0x01, 0x12, + 0x4a, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, + 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, + 0x48, 0x04, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, + 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x74, 0x69, 0x74, + 0x6c, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x09, 0x0a, + 0x07, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x66, 0x69, 0x6c, + 0x65, 0x22, 0x41, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x22, 0x50, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6f, + 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x53, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, + 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0b, + 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x98, 0x04, 0x0a, 0x12, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, + 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x04, 0x48, 0x01, 0x52, 0x05, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, + 0x05, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x48, 0x02, 0x52, 0x05, + 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, + 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x48, 0x03, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, + 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6b, 0x65, 0x79, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x04, 0x52, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4b, + 0x65, 0x79, 0x88, 0x01, 0x01, 0x12, 0x46, 0x0a, 0x03, 0x75, 0x73, 0x65, 0x18, 0x07, 0x20, 0x03, + 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x41, 0x73, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x52, 0x03, 0x75, 0x73, 0x65, 0x12, 0x4e, 0x0a, + 0x08, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x33, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x6f, 0x72, + 0x74, 0x44, 0x69, 0x72, 0x52, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x44, 0x69, 0x72, 0x12, 0x55, 0x0a, + 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x41, 0x2e, 0x73, 0x74, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, + 0x74, 0x61, 0x67, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x0b, 0x0a, + 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x73, + 0x69, 0x6e, 0x63, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x42, 0x08, + 0x0a, 0x06, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x73, 0x74, 0x61, + 0x72, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x22, 0x8d, 0x01, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, + 0x0a, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, + 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, + 0x74, 0x52, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x1e, 0x0a, 0x08, 0x6c, 0x61, 0x73, + 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6c, + 0x61, 0x73, 0x74, 0x4b, 0x65, 0x79, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6c, 0x61, + 0x73, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x22, 0xfa, 0x01, 0x0a, 0x10, 0x54, 0x61, 0x67, 0x41, 0x73, + 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x08, 0x6f, + 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, + 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x09, 0x61, + 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, + 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x73, 0x12, 0x53, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, + 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x67, + 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x61, + 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x1a, 0x37, 0x0a, + 0x09, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x5f, 0x69, 0x64, 0x22, 0x5b, 0x0a, 0x11, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x73, + 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x73, + 0x22, 0x89, 0x01, 0x0a, 0x12, 0x55, 0x6e, 0x74, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x73, 0x73, 0x65, 0x74, + 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x61, 0x73, 0x73, 0x65, + 0x74, 0x49, 0x64, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x61, 0x67, 0x5f, 0x6b, 0x65, 0x79, 0x73, + 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x74, 0x61, 0x67, 0x4b, 0x65, 0x79, 0x73, 0x42, + 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x5d, 0x0a, 0x13, + 0x55, 0x6e, 0x74, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1b, + 0x0a, 0x09, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x73, 0x22, 0x6f, 0x0a, 0x13, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, + 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, + 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x73, 0x42, + 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x5e, 0x0a, 0x14, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, + 0x1b, 0x0a, 0x09, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x73, 0x2a, 0x46, 0x0a, 0x0d, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a, + 0x16, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x53, 0x53, 0x5f, + 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x52, 0x4f, + 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x53, 0x53, 0x5f, 0x50, 0x55, 0x42, 0x4c, + 0x49, 0x43, 0x10, 0x01, 0x2a, 0x63, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, + 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x49, 0x4e, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, + 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x53, 0x54, + 0x41, 0x54, 0x55, 0x53, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x1a, 0x0a, + 0x16, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, + 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x02, 0x2a, 0xb0, 0x01, 0x0a, 0x0f, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x12, 0x1f, 0x0a, + 0x1b, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, + 0x53, 0x45, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1b, + 0x0a, 0x17, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, + 0x55, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x50, 0x55, 0x54, 0x10, 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x50, + 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, + 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x10, 0x02, 0x12, 0x22, 0x0a, 0x1e, 0x50, 0x52, 0x4f, + 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x49, + 0x4e, 0x54, 0x45, 0x52, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x54, 0x45, 0x10, 0x03, 0x12, 0x1d, 0x0a, + 0x19, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, + 0x53, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x04, 0x2a, 0x67, 0x0a, 0x0e, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x6f, 0x72, 0x74, 0x44, 0x69, 0x72, 0x12, 0x20, + 0x0a, 0x1c, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x53, 0x4f, 0x52, 0x54, 0x5f, 0x44, + 0x49, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, + 0x12, 0x18, 0x0a, 0x14, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x53, 0x4f, 0x52, 0x54, + 0x5f, 0x44, 0x49, 0x52, 0x5f, 0x41, 0x53, 0x43, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x52, + 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x53, 0x4f, 0x52, 0x54, 0x5f, 0x44, 0x49, 0x52, 0x5f, 0x44, + 0x45, 0x53, 0x43, 0x10, 0x02, 0x32, 0xe1, 0x08, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x73, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x12, 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, + 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x00, 0x12, 0x73, 0x0a, + 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x22, 0x00, 0x12, 0x71, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x37, 0x2e, 0x73, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x22, 0x00, 0x30, 0x01, 0x12, 0x6d, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x36, 0x2e, 0x73, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x22, 0x00, 0x12, 0x73, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x39, + 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x00, 0x12, 0x7c, 0x0a, 0x09, 0x54, 0x61, 0x67, + 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x35, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x67, + 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, + 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x82, 0x01, 0x0a, 0x0b, 0x55, 0x6e, 0x74, 0x61, + 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, + 0x74, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x74, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, + 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x82, 0x01, 0x0a, + 0x0b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x37, 0x2e, 0x73, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x85, 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, + 0x74, 0x73, 0x12, 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, + 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x73, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xc9, 0x02, 0x0a, 0x27, 0x63, 0x6f, + 0x6d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x61, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, 0x61, 0x69, 0x2f, 0x61, + 0x70, 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x67, 0x65, + 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x70, 0x69, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, 0x50, 0xaa, 0x02, + 0x23, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x50, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x23, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x2f, 0x53, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5c, 0x56, 0x31, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x26, 0x53, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x3a, 0x3a, 0x50, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_stabilityai_platformapis_project_v1_project_proto_rawDescOnce sync.Once + file_stabilityai_platformapis_project_v1_project_proto_rawDescData = file_stabilityai_platformapis_project_v1_project_proto_rawDesc +) + +func file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP() []byte { + file_stabilityai_platformapis_project_v1_project_proto_rawDescOnce.Do(func() { + file_stabilityai_platformapis_project_v1_project_proto_rawDescData = protoimpl.X.CompressGZIP(file_stabilityai_platformapis_project_v1_project_proto_rawDescData) + }) + return file_stabilityai_platformapis_project_v1_project_proto_rawDescData +} + +var file_stabilityai_platformapis_project_v1_project_proto_enumTypes = make([]protoimpl.EnumInfo, 4) +var file_stabilityai_platformapis_project_v1_project_proto_msgTypes = make([]protoimpl.MessageInfo, 18) +var file_stabilityai_platformapis_project_v1_project_proto_goTypes = []interface{}{ + (ProjectAccess)(0), // 0: stabilityai.platformapis.project.v1.ProjectAccess + (ProjectStatus)(0), // 1: stabilityai.platformapis.project.v1.ProjectStatus + (ProjectAssetUse)(0), // 2: stabilityai.platformapis.project.v1.ProjectAssetUse + (ProjectSortDir)(0), // 3: stabilityai.platformapis.project.v1.ProjectSortDir + (*ProjectAsset)(nil), // 4: stabilityai.platformapis.project.v1.ProjectAsset + (*Project)(nil), // 5: stabilityai.platformapis.project.v1.Project + (*CreateProjectRequest)(nil), // 6: stabilityai.platformapis.project.v1.CreateProjectRequest + (*UpdateProjectRequest)(nil), // 7: stabilityai.platformapis.project.v1.UpdateProjectRequest + (*ListProjectRequest)(nil), // 8: stabilityai.platformapis.project.v1.ListProjectRequest + (*GetProjectRequest)(nil), // 9: stabilityai.platformapis.project.v1.GetProjectRequest + (*DeleteProjectRequest)(nil), // 10: stabilityai.platformapis.project.v1.DeleteProjectRequest + (*QueryAssetsRequest)(nil), // 11: stabilityai.platformapis.project.v1.QueryAssetsRequest + (*QueryAssetsResponse)(nil), // 12: stabilityai.platformapis.project.v1.QueryAssetsResponse + (*TagAssetsRequest)(nil), // 13: stabilityai.platformapis.project.v1.TagAssetsRequest + (*TagAssetsResponse)(nil), // 14: stabilityai.platformapis.project.v1.TagAssetsResponse + (*UntagAssetsRequest)(nil), // 15: stabilityai.platformapis.project.v1.UntagAssetsRequest + (*UntagAssetsResponse)(nil), // 16: stabilityai.platformapis.project.v1.UntagAssetsResponse + (*DeleteAssetsRequest)(nil), // 17: stabilityai.platformapis.project.v1.DeleteAssetsRequest + (*DeleteAssetsResponse)(nil), // 18: stabilityai.platformapis.project.v1.DeleteAssetsResponse + nil, // 19: stabilityai.platformapis.project.v1.ProjectAsset.TagsEntry + nil, // 20: stabilityai.platformapis.project.v1.QueryAssetsRequest.TagsEntry + nil, // 21: stabilityai.platformapis.project.v1.TagAssetsRequest.TagsEntry + (*v1.Request)(nil), // 22: stabilityai.platformapis.generation.v1.Request +} +var file_stabilityai_platformapis_project_v1_project_proto_depIdxs = []int32{ + 2, // 0: stabilityai.platformapis.project.v1.ProjectAsset.use:type_name -> stabilityai.platformapis.project.v1.ProjectAssetUse + 22, // 1: stabilityai.platformapis.project.v1.ProjectAsset.request:type_name -> stabilityai.platformapis.generation.v1.Request + 19, // 2: stabilityai.platformapis.project.v1.ProjectAsset.tags:type_name -> stabilityai.platformapis.project.v1.ProjectAsset.TagsEntry + 0, // 3: stabilityai.platformapis.project.v1.Project.access:type_name -> stabilityai.platformapis.project.v1.ProjectAccess + 1, // 4: stabilityai.platformapis.project.v1.Project.status:type_name -> stabilityai.platformapis.project.v1.ProjectStatus + 4, // 5: stabilityai.platformapis.project.v1.Project.file:type_name -> stabilityai.platformapis.project.v1.ProjectAsset + 4, // 6: stabilityai.platformapis.project.v1.Project.assets:type_name -> stabilityai.platformapis.project.v1.ProjectAsset + 0, // 7: stabilityai.platformapis.project.v1.CreateProjectRequest.access:type_name -> stabilityai.platformapis.project.v1.ProjectAccess + 1, // 8: stabilityai.platformapis.project.v1.CreateProjectRequest.status:type_name -> stabilityai.platformapis.project.v1.ProjectStatus + 4, // 9: stabilityai.platformapis.project.v1.CreateProjectRequest.file:type_name -> stabilityai.platformapis.project.v1.ProjectAsset + 0, // 10: stabilityai.platformapis.project.v1.UpdateProjectRequest.access:type_name -> stabilityai.platformapis.project.v1.ProjectAccess + 1, // 11: stabilityai.platformapis.project.v1.UpdateProjectRequest.status:type_name -> stabilityai.platformapis.project.v1.ProjectStatus + 4, // 12: stabilityai.platformapis.project.v1.UpdateProjectRequest.file:type_name -> stabilityai.platformapis.project.v1.ProjectAsset + 2, // 13: stabilityai.platformapis.project.v1.QueryAssetsRequest.use:type_name -> stabilityai.platformapis.project.v1.ProjectAssetUse + 3, // 14: stabilityai.platformapis.project.v1.QueryAssetsRequest.sort_dir:type_name -> stabilityai.platformapis.project.v1.ProjectSortDir + 20, // 15: stabilityai.platformapis.project.v1.QueryAssetsRequest.tags:type_name -> stabilityai.platformapis.project.v1.QueryAssetsRequest.TagsEntry + 4, // 16: stabilityai.platformapis.project.v1.QueryAssetsResponse.assets:type_name -> stabilityai.platformapis.project.v1.ProjectAsset + 21, // 17: stabilityai.platformapis.project.v1.TagAssetsRequest.tags:type_name -> stabilityai.platformapis.project.v1.TagAssetsRequest.TagsEntry + 6, // 18: stabilityai.platformapis.project.v1.ProjectService.Create:input_type -> stabilityai.platformapis.project.v1.CreateProjectRequest + 7, // 19: stabilityai.platformapis.project.v1.ProjectService.Update:input_type -> stabilityai.platformapis.project.v1.UpdateProjectRequest + 8, // 20: stabilityai.platformapis.project.v1.ProjectService.List:input_type -> stabilityai.platformapis.project.v1.ListProjectRequest + 9, // 21: stabilityai.platformapis.project.v1.ProjectService.Get:input_type -> stabilityai.platformapis.project.v1.GetProjectRequest + 10, // 22: stabilityai.platformapis.project.v1.ProjectService.Delete:input_type -> stabilityai.platformapis.project.v1.DeleteProjectRequest + 13, // 23: stabilityai.platformapis.project.v1.ProjectService.TagAssets:input_type -> stabilityai.platformapis.project.v1.TagAssetsRequest + 15, // 24: stabilityai.platformapis.project.v1.ProjectService.UntagAssets:input_type -> stabilityai.platformapis.project.v1.UntagAssetsRequest + 11, // 25: stabilityai.platformapis.project.v1.ProjectService.QueryAssets:input_type -> stabilityai.platformapis.project.v1.QueryAssetsRequest + 17, // 26: stabilityai.platformapis.project.v1.ProjectService.DeleteAssets:input_type -> stabilityai.platformapis.project.v1.DeleteAssetsRequest + 5, // 27: stabilityai.platformapis.project.v1.ProjectService.Create:output_type -> stabilityai.platformapis.project.v1.Project + 5, // 28: stabilityai.platformapis.project.v1.ProjectService.Update:output_type -> stabilityai.platformapis.project.v1.Project + 5, // 29: stabilityai.platformapis.project.v1.ProjectService.List:output_type -> stabilityai.platformapis.project.v1.Project + 5, // 30: stabilityai.platformapis.project.v1.ProjectService.Get:output_type -> stabilityai.platformapis.project.v1.Project + 5, // 31: stabilityai.platformapis.project.v1.ProjectService.Delete:output_type -> stabilityai.platformapis.project.v1.Project + 14, // 32: stabilityai.platformapis.project.v1.ProjectService.TagAssets:output_type -> stabilityai.platformapis.project.v1.TagAssetsResponse + 16, // 33: stabilityai.platformapis.project.v1.ProjectService.UntagAssets:output_type -> stabilityai.platformapis.project.v1.UntagAssetsResponse + 12, // 34: stabilityai.platformapis.project.v1.ProjectService.QueryAssets:output_type -> stabilityai.platformapis.project.v1.QueryAssetsResponse + 18, // 35: stabilityai.platformapis.project.v1.ProjectService.DeleteAssets:output_type -> stabilityai.platformapis.project.v1.DeleteAssetsResponse + 27, // [27:36] is the sub-list for method output_type + 18, // [18:27] is the sub-list for method input_type + 18, // [18:18] is the sub-list for extension type_name + 18, // [18:18] is the sub-list for extension extendee + 0, // [0:18] is the sub-list for field type_name +} + +func init() { file_stabilityai_platformapis_project_v1_project_proto_init() } +func file_stabilityai_platformapis_project_v1_project_proto_init() { + if File_stabilityai_platformapis_project_v1_project_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_stabilityai_platformapis_project_v1_project_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectAsset); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_project_v1_project_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Project); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_project_v1_project_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateProjectRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_project_v1_project_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateProjectRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_project_v1_project_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListProjectRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_project_v1_project_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetProjectRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_project_v1_project_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteProjectRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_project_v1_project_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAssetsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_project_v1_project_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryAssetsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_project_v1_project_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TagAssetsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_project_v1_project_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TagAssetsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_project_v1_project_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UntagAssetsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_project_v1_project_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UntagAssetsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_project_v1_project_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteAssetsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stabilityai_platformapis_project_v1_project_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteAssetsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_stabilityai_platformapis_project_v1_project_proto_msgTypes[2].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_project_v1_project_proto_msgTypes[3].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_project_v1_project_proto_msgTypes[4].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_project_v1_project_proto_msgTypes[5].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_project_v1_project_proto_msgTypes[6].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_project_v1_project_proto_msgTypes[7].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_project_v1_project_proto_msgTypes[8].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_project_v1_project_proto_msgTypes[9].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_project_v1_project_proto_msgTypes[11].OneofWrappers = []interface{}{} + file_stabilityai_platformapis_project_v1_project_proto_msgTypes[13].OneofWrappers = []interface{}{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_stabilityai_platformapis_project_v1_project_proto_rawDesc, + NumEnums: 4, + NumMessages: 18, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_stabilityai_platformapis_project_v1_project_proto_goTypes, + DependencyIndexes: file_stabilityai_platformapis_project_v1_project_proto_depIdxs, + EnumInfos: file_stabilityai_platformapis_project_v1_project_proto_enumTypes, + MessageInfos: file_stabilityai_platformapis_project_v1_project_proto_msgTypes, + }.Build() + File_stabilityai_platformapis_project_v1_project_proto = out.File + file_stabilityai_platformapis_project_v1_project_proto_rawDesc = nil + file_stabilityai_platformapis_project_v1_project_proto_goTypes = nil + file_stabilityai_platformapis_project_v1_project_proto_depIdxs = nil +} diff --git a/gen/proto/go/stabilityai/platformapis/project/v1/project_grpc.pb.go b/gen/proto/go/stabilityai/platformapis/project/v1/project_grpc.pb.go new file mode 100644 index 0000000..015db73 --- /dev/null +++ b/gen/proto/go/stabilityai/platformapis/project/v1/project_grpc.pb.go @@ -0,0 +1,449 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: stabilityai/platformapis/project/v1/project.proto + +package projectv1 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + ProjectService_Create_FullMethodName = "/stabilityai.platformapis.project.v1.ProjectService/Create" + ProjectService_Update_FullMethodName = "/stabilityai.platformapis.project.v1.ProjectService/Update" + ProjectService_List_FullMethodName = "/stabilityai.platformapis.project.v1.ProjectService/List" + ProjectService_Get_FullMethodName = "/stabilityai.platformapis.project.v1.ProjectService/Get" + ProjectService_Delete_FullMethodName = "/stabilityai.platformapis.project.v1.ProjectService/Delete" + ProjectService_TagAssets_FullMethodName = "/stabilityai.platformapis.project.v1.ProjectService/TagAssets" + ProjectService_UntagAssets_FullMethodName = "/stabilityai.platformapis.project.v1.ProjectService/UntagAssets" + ProjectService_QueryAssets_FullMethodName = "/stabilityai.platformapis.project.v1.ProjectService/QueryAssets" + ProjectService_DeleteAssets_FullMethodName = "/stabilityai.platformapis.project.v1.ProjectService/DeleteAssets" +) + +// ProjectServiceClient is the client API for ProjectService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ProjectServiceClient interface { + // Create a new project if it does not exist + Create(ctx context.Context, in *CreateProjectRequest, opts ...grpc.CallOption) (*Project, error) + // Update an existing project + Update(ctx context.Context, in *UpdateProjectRequest, opts ...grpc.CallOption) (*Project, error) + // List all the projects for an organization + List(ctx context.Context, in *ListProjectRequest, opts ...grpc.CallOption) (ProjectService_ListClient, error) + // Get a project + Get(ctx context.Context, in *GetProjectRequest, opts ...grpc.CallOption) (*Project, error) + // Delete a project + Delete(ctx context.Context, in *DeleteProjectRequest, opts ...grpc.CallOption) (*Project, error) + // Add or remove tags from an asset + TagAssets(ctx context.Context, in *TagAssetsRequest, opts ...grpc.CallOption) (*TagAssetsResponse, error) + UntagAssets(ctx context.Context, in *UntagAssetsRequest, opts ...grpc.CallOption) (*UntagAssetsResponse, error) + // Query the assets of a project, with additional filtering + QueryAssets(ctx context.Context, in *QueryAssetsRequest, opts ...grpc.CallOption) (*QueryAssetsResponse, error) + // Delete one or more assets of a project + DeleteAssets(ctx context.Context, in *DeleteAssetsRequest, opts ...grpc.CallOption) (*DeleteAssetsResponse, error) +} + +type projectServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewProjectServiceClient(cc grpc.ClientConnInterface) ProjectServiceClient { + return &projectServiceClient{cc} +} + +func (c *projectServiceClient) Create(ctx context.Context, in *CreateProjectRequest, opts ...grpc.CallOption) (*Project, error) { + out := new(Project) + err := c.cc.Invoke(ctx, ProjectService_Create_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *projectServiceClient) Update(ctx context.Context, in *UpdateProjectRequest, opts ...grpc.CallOption) (*Project, error) { + out := new(Project) + err := c.cc.Invoke(ctx, ProjectService_Update_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *projectServiceClient) List(ctx context.Context, in *ListProjectRequest, opts ...grpc.CallOption) (ProjectService_ListClient, error) { + stream, err := c.cc.NewStream(ctx, &ProjectService_ServiceDesc.Streams[0], ProjectService_List_FullMethodName, opts...) + if err != nil { + return nil, err + } + x := &projectServiceListClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ProjectService_ListClient interface { + Recv() (*Project, error) + grpc.ClientStream +} + +type projectServiceListClient struct { + grpc.ClientStream +} + +func (x *projectServiceListClient) Recv() (*Project, error) { + m := new(Project) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *projectServiceClient) Get(ctx context.Context, in *GetProjectRequest, opts ...grpc.CallOption) (*Project, error) { + out := new(Project) + err := c.cc.Invoke(ctx, ProjectService_Get_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *projectServiceClient) Delete(ctx context.Context, in *DeleteProjectRequest, opts ...grpc.CallOption) (*Project, error) { + out := new(Project) + err := c.cc.Invoke(ctx, ProjectService_Delete_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *projectServiceClient) TagAssets(ctx context.Context, in *TagAssetsRequest, opts ...grpc.CallOption) (*TagAssetsResponse, error) { + out := new(TagAssetsResponse) + err := c.cc.Invoke(ctx, ProjectService_TagAssets_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *projectServiceClient) UntagAssets(ctx context.Context, in *UntagAssetsRequest, opts ...grpc.CallOption) (*UntagAssetsResponse, error) { + out := new(UntagAssetsResponse) + err := c.cc.Invoke(ctx, ProjectService_UntagAssets_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *projectServiceClient) QueryAssets(ctx context.Context, in *QueryAssetsRequest, opts ...grpc.CallOption) (*QueryAssetsResponse, error) { + out := new(QueryAssetsResponse) + err := c.cc.Invoke(ctx, ProjectService_QueryAssets_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *projectServiceClient) DeleteAssets(ctx context.Context, in *DeleteAssetsRequest, opts ...grpc.CallOption) (*DeleteAssetsResponse, error) { + out := new(DeleteAssetsResponse) + err := c.cc.Invoke(ctx, ProjectService_DeleteAssets_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ProjectServiceServer is the server API for ProjectService service. +// All implementations must embed UnimplementedProjectServiceServer +// for forward compatibility +type ProjectServiceServer interface { + // Create a new project if it does not exist + Create(context.Context, *CreateProjectRequest) (*Project, error) + // Update an existing project + Update(context.Context, *UpdateProjectRequest) (*Project, error) + // List all the projects for an organization + List(*ListProjectRequest, ProjectService_ListServer) error + // Get a project + Get(context.Context, *GetProjectRequest) (*Project, error) + // Delete a project + Delete(context.Context, *DeleteProjectRequest) (*Project, error) + // Add or remove tags from an asset + TagAssets(context.Context, *TagAssetsRequest) (*TagAssetsResponse, error) + UntagAssets(context.Context, *UntagAssetsRequest) (*UntagAssetsResponse, error) + // Query the assets of a project, with additional filtering + QueryAssets(context.Context, *QueryAssetsRequest) (*QueryAssetsResponse, error) + // Delete one or more assets of a project + DeleteAssets(context.Context, *DeleteAssetsRequest) (*DeleteAssetsResponse, error) + mustEmbedUnimplementedProjectServiceServer() +} + +// UnimplementedProjectServiceServer must be embedded to have forward compatible implementations. +type UnimplementedProjectServiceServer struct { +} + +func (UnimplementedProjectServiceServer) Create(context.Context, *CreateProjectRequest) (*Project, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +} +func (UnimplementedProjectServiceServer) Update(context.Context, *UpdateProjectRequest) (*Project, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (UnimplementedProjectServiceServer) List(*ListProjectRequest, ProjectService_ListServer) error { + return status.Errorf(codes.Unimplemented, "method List not implemented") +} +func (UnimplementedProjectServiceServer) Get(context.Context, *GetProjectRequest) (*Project, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (UnimplementedProjectServiceServer) Delete(context.Context, *DeleteProjectRequest) (*Project, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +} +func (UnimplementedProjectServiceServer) TagAssets(context.Context, *TagAssetsRequest) (*TagAssetsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TagAssets not implemented") +} +func (UnimplementedProjectServiceServer) UntagAssets(context.Context, *UntagAssetsRequest) (*UntagAssetsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UntagAssets not implemented") +} +func (UnimplementedProjectServiceServer) QueryAssets(context.Context, *QueryAssetsRequest) (*QueryAssetsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryAssets not implemented") +} +func (UnimplementedProjectServiceServer) DeleteAssets(context.Context, *DeleteAssetsRequest) (*DeleteAssetsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteAssets not implemented") +} +func (UnimplementedProjectServiceServer) mustEmbedUnimplementedProjectServiceServer() {} + +// UnsafeProjectServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ProjectServiceServer will +// result in compilation errors. +type UnsafeProjectServiceServer interface { + mustEmbedUnimplementedProjectServiceServer() +} + +func RegisterProjectServiceServer(s grpc.ServiceRegistrar, srv ProjectServiceServer) { + s.RegisterService(&ProjectService_ServiceDesc, srv) +} + +func _ProjectService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateProjectRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProjectServiceServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ProjectService_Create_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProjectServiceServer).Create(ctx, req.(*CreateProjectRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProjectService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateProjectRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProjectServiceServer).Update(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ProjectService_Update_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProjectServiceServer).Update(ctx, req.(*UpdateProjectRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProjectService_List_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListProjectRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ProjectServiceServer).List(m, &projectServiceListServer{stream}) +} + +type ProjectService_ListServer interface { + Send(*Project) error + grpc.ServerStream +} + +type projectServiceListServer struct { + grpc.ServerStream +} + +func (x *projectServiceListServer) Send(m *Project) error { + return x.ServerStream.SendMsg(m) +} + +func _ProjectService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetProjectRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProjectServiceServer).Get(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ProjectService_Get_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProjectServiceServer).Get(ctx, req.(*GetProjectRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProjectService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteProjectRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProjectServiceServer).Delete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ProjectService_Delete_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProjectServiceServer).Delete(ctx, req.(*DeleteProjectRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProjectService_TagAssets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TagAssetsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProjectServiceServer).TagAssets(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ProjectService_TagAssets_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProjectServiceServer).TagAssets(ctx, req.(*TagAssetsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProjectService_UntagAssets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UntagAssetsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProjectServiceServer).UntagAssets(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ProjectService_UntagAssets_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProjectServiceServer).UntagAssets(ctx, req.(*UntagAssetsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProjectService_QueryAssets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAssetsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProjectServiceServer).QueryAssets(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ProjectService_QueryAssets_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProjectServiceServer).QueryAssets(ctx, req.(*QueryAssetsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProjectService_DeleteAssets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteAssetsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProjectServiceServer).DeleteAssets(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ProjectService_DeleteAssets_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProjectServiceServer).DeleteAssets(ctx, req.(*DeleteAssetsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// ProjectService_ServiceDesc is the grpc.ServiceDesc for ProjectService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var ProjectService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "stabilityai.platformapis.project.v1.ProjectService", + HandlerType: (*ProjectServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Create", + Handler: _ProjectService_Create_Handler, + }, + { + MethodName: "Update", + Handler: _ProjectService_Update_Handler, + }, + { + MethodName: "Get", + Handler: _ProjectService_Get_Handler, + }, + { + MethodName: "Delete", + Handler: _ProjectService_Delete_Handler, + }, + { + MethodName: "TagAssets", + Handler: _ProjectService_TagAssets_Handler, + }, + { + MethodName: "UntagAssets", + Handler: _ProjectService_UntagAssets_Handler, + }, + { + MethodName: "QueryAssets", + Handler: _ProjectService_QueryAssets_Handler, + }, + { + MethodName: "DeleteAssets", + Handler: _ProjectService_DeleteAssets_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "List", + Handler: _ProjectService_List_Handler, + ServerStreams: true, + }, + }, + Metadata: "stabilityai/platformapis/project/v1/project.proto", +} diff --git a/gen/proto/go/stabilityai/platformapis/project/v1/projectv1connect/project.connect.go b/gen/proto/go/stabilityai/platformapis/project/v1/projectv1connect/project.connect.go new file mode 100644 index 0000000..9054c88 --- /dev/null +++ b/gen/proto/go/stabilityai/platformapis/project/v1/projectv1connect/project.connect.go @@ -0,0 +1,313 @@ +// Code generated by protoc-gen-connect-go. DO NOT EDIT. +// +// Source: stabilityai/platformapis/project/v1/project.proto + +package projectv1connect + +import ( + context "context" + errors "errors" + connect_go "github.com/bufbuild/connect-go" + v1 "github.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/project/v1" + http "net/http" + strings "strings" +) + +// This is a compile-time assertion to ensure that this generated file and the connect package are +// compatible. If you get a compiler error that this constant is not defined, this code was +// generated with a version of connect newer than the one compiled into your binary. You can fix the +// problem by either regenerating this code with an older version of connect or updating the connect +// version compiled into your binary. +const _ = connect_go.IsAtLeastVersion0_1_0 + +const ( + // ProjectServiceName is the fully-qualified name of the ProjectService service. + ProjectServiceName = "stabilityai.platformapis.project.v1.ProjectService" +) + +// These constants are the fully-qualified names of the RPCs defined in this package. They're +// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route. +// +// Note that these are different from the fully-qualified method names used by +// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to +// reflection-formatted method names, remove the leading slash and convert the remaining slash to a +// period. +const ( + // ProjectServiceCreateProcedure is the fully-qualified name of the ProjectService's Create RPC. + ProjectServiceCreateProcedure = "/stabilityai.platformapis.project.v1.ProjectService/Create" + // ProjectServiceUpdateProcedure is the fully-qualified name of the ProjectService's Update RPC. + ProjectServiceUpdateProcedure = "/stabilityai.platformapis.project.v1.ProjectService/Update" + // ProjectServiceListProcedure is the fully-qualified name of the ProjectService's List RPC. + ProjectServiceListProcedure = "/stabilityai.platformapis.project.v1.ProjectService/List" + // ProjectServiceGetProcedure is the fully-qualified name of the ProjectService's Get RPC. + ProjectServiceGetProcedure = "/stabilityai.platformapis.project.v1.ProjectService/Get" + // ProjectServiceDeleteProcedure is the fully-qualified name of the ProjectService's Delete RPC. + ProjectServiceDeleteProcedure = "/stabilityai.platformapis.project.v1.ProjectService/Delete" + // ProjectServiceTagAssetsProcedure is the fully-qualified name of the ProjectService's TagAssets + // RPC. + ProjectServiceTagAssetsProcedure = "/stabilityai.platformapis.project.v1.ProjectService/TagAssets" + // ProjectServiceUntagAssetsProcedure is the fully-qualified name of the ProjectService's + // UntagAssets RPC. + ProjectServiceUntagAssetsProcedure = "/stabilityai.platformapis.project.v1.ProjectService/UntagAssets" + // ProjectServiceQueryAssetsProcedure is the fully-qualified name of the ProjectService's + // QueryAssets RPC. + ProjectServiceQueryAssetsProcedure = "/stabilityai.platformapis.project.v1.ProjectService/QueryAssets" + // ProjectServiceDeleteAssetsProcedure is the fully-qualified name of the ProjectService's + // DeleteAssets RPC. + ProjectServiceDeleteAssetsProcedure = "/stabilityai.platformapis.project.v1.ProjectService/DeleteAssets" +) + +// ProjectServiceClient is a client for the stabilityai.platformapis.project.v1.ProjectService +// service. +type ProjectServiceClient interface { + // Create a new project if it does not exist + Create(context.Context, *connect_go.Request[v1.CreateProjectRequest]) (*connect_go.Response[v1.Project], error) + // Update an existing project + Update(context.Context, *connect_go.Request[v1.UpdateProjectRequest]) (*connect_go.Response[v1.Project], error) + // List all the projects for an organization + List(context.Context, *connect_go.Request[v1.ListProjectRequest]) (*connect_go.ServerStreamForClient[v1.Project], error) + // Get a project + Get(context.Context, *connect_go.Request[v1.GetProjectRequest]) (*connect_go.Response[v1.Project], error) + // Delete a project + Delete(context.Context, *connect_go.Request[v1.DeleteProjectRequest]) (*connect_go.Response[v1.Project], error) + // Add or remove tags from an asset + TagAssets(context.Context, *connect_go.Request[v1.TagAssetsRequest]) (*connect_go.Response[v1.TagAssetsResponse], error) + UntagAssets(context.Context, *connect_go.Request[v1.UntagAssetsRequest]) (*connect_go.Response[v1.UntagAssetsResponse], error) + // Query the assets of a project, with additional filtering + QueryAssets(context.Context, *connect_go.Request[v1.QueryAssetsRequest]) (*connect_go.Response[v1.QueryAssetsResponse], error) + // Delete one or more assets of a project + DeleteAssets(context.Context, *connect_go.Request[v1.DeleteAssetsRequest]) (*connect_go.Response[v1.DeleteAssetsResponse], error) +} + +// NewProjectServiceClient constructs a client for the +// stabilityai.platformapis.project.v1.ProjectService service. By default, it uses the Connect +// protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed +// requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or +// connect.WithGRPCWeb() options. +// +// The URL supplied here should be the base URL for the Connect or gRPC server (for example, +// http://api.acme.com or https://acme.com/grpc). +func NewProjectServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) ProjectServiceClient { + baseURL = strings.TrimRight(baseURL, "/") + return &projectServiceClient{ + create: connect_go.NewClient[v1.CreateProjectRequest, v1.Project]( + httpClient, + baseURL+ProjectServiceCreateProcedure, + opts..., + ), + update: connect_go.NewClient[v1.UpdateProjectRequest, v1.Project]( + httpClient, + baseURL+ProjectServiceUpdateProcedure, + opts..., + ), + list: connect_go.NewClient[v1.ListProjectRequest, v1.Project]( + httpClient, + baseURL+ProjectServiceListProcedure, + opts..., + ), + get: connect_go.NewClient[v1.GetProjectRequest, v1.Project]( + httpClient, + baseURL+ProjectServiceGetProcedure, + opts..., + ), + delete: connect_go.NewClient[v1.DeleteProjectRequest, v1.Project]( + httpClient, + baseURL+ProjectServiceDeleteProcedure, + opts..., + ), + tagAssets: connect_go.NewClient[v1.TagAssetsRequest, v1.TagAssetsResponse]( + httpClient, + baseURL+ProjectServiceTagAssetsProcedure, + opts..., + ), + untagAssets: connect_go.NewClient[v1.UntagAssetsRequest, v1.UntagAssetsResponse]( + httpClient, + baseURL+ProjectServiceUntagAssetsProcedure, + opts..., + ), + queryAssets: connect_go.NewClient[v1.QueryAssetsRequest, v1.QueryAssetsResponse]( + httpClient, + baseURL+ProjectServiceQueryAssetsProcedure, + opts..., + ), + deleteAssets: connect_go.NewClient[v1.DeleteAssetsRequest, v1.DeleteAssetsResponse]( + httpClient, + baseURL+ProjectServiceDeleteAssetsProcedure, + opts..., + ), + } +} + +// projectServiceClient implements ProjectServiceClient. +type projectServiceClient struct { + create *connect_go.Client[v1.CreateProjectRequest, v1.Project] + update *connect_go.Client[v1.UpdateProjectRequest, v1.Project] + list *connect_go.Client[v1.ListProjectRequest, v1.Project] + get *connect_go.Client[v1.GetProjectRequest, v1.Project] + delete *connect_go.Client[v1.DeleteProjectRequest, v1.Project] + tagAssets *connect_go.Client[v1.TagAssetsRequest, v1.TagAssetsResponse] + untagAssets *connect_go.Client[v1.UntagAssetsRequest, v1.UntagAssetsResponse] + queryAssets *connect_go.Client[v1.QueryAssetsRequest, v1.QueryAssetsResponse] + deleteAssets *connect_go.Client[v1.DeleteAssetsRequest, v1.DeleteAssetsResponse] +} + +// Create calls stabilityai.platformapis.project.v1.ProjectService.Create. +func (c *projectServiceClient) Create(ctx context.Context, req *connect_go.Request[v1.CreateProjectRequest]) (*connect_go.Response[v1.Project], error) { + return c.create.CallUnary(ctx, req) +} + +// Update calls stabilityai.platformapis.project.v1.ProjectService.Update. +func (c *projectServiceClient) Update(ctx context.Context, req *connect_go.Request[v1.UpdateProjectRequest]) (*connect_go.Response[v1.Project], error) { + return c.update.CallUnary(ctx, req) +} + +// List calls stabilityai.platformapis.project.v1.ProjectService.List. +func (c *projectServiceClient) List(ctx context.Context, req *connect_go.Request[v1.ListProjectRequest]) (*connect_go.ServerStreamForClient[v1.Project], error) { + return c.list.CallServerStream(ctx, req) +} + +// Get calls stabilityai.platformapis.project.v1.ProjectService.Get. +func (c *projectServiceClient) Get(ctx context.Context, req *connect_go.Request[v1.GetProjectRequest]) (*connect_go.Response[v1.Project], error) { + return c.get.CallUnary(ctx, req) +} + +// Delete calls stabilityai.platformapis.project.v1.ProjectService.Delete. +func (c *projectServiceClient) Delete(ctx context.Context, req *connect_go.Request[v1.DeleteProjectRequest]) (*connect_go.Response[v1.Project], error) { + return c.delete.CallUnary(ctx, req) +} + +// TagAssets calls stabilityai.platformapis.project.v1.ProjectService.TagAssets. +func (c *projectServiceClient) TagAssets(ctx context.Context, req *connect_go.Request[v1.TagAssetsRequest]) (*connect_go.Response[v1.TagAssetsResponse], error) { + return c.tagAssets.CallUnary(ctx, req) +} + +// UntagAssets calls stabilityai.platformapis.project.v1.ProjectService.UntagAssets. +func (c *projectServiceClient) UntagAssets(ctx context.Context, req *connect_go.Request[v1.UntagAssetsRequest]) (*connect_go.Response[v1.UntagAssetsResponse], error) { + return c.untagAssets.CallUnary(ctx, req) +} + +// QueryAssets calls stabilityai.platformapis.project.v1.ProjectService.QueryAssets. +func (c *projectServiceClient) QueryAssets(ctx context.Context, req *connect_go.Request[v1.QueryAssetsRequest]) (*connect_go.Response[v1.QueryAssetsResponse], error) { + return c.queryAssets.CallUnary(ctx, req) +} + +// DeleteAssets calls stabilityai.platformapis.project.v1.ProjectService.DeleteAssets. +func (c *projectServiceClient) DeleteAssets(ctx context.Context, req *connect_go.Request[v1.DeleteAssetsRequest]) (*connect_go.Response[v1.DeleteAssetsResponse], error) { + return c.deleteAssets.CallUnary(ctx, req) +} + +// ProjectServiceHandler is an implementation of the +// stabilityai.platformapis.project.v1.ProjectService service. +type ProjectServiceHandler interface { + // Create a new project if it does not exist + Create(context.Context, *connect_go.Request[v1.CreateProjectRequest]) (*connect_go.Response[v1.Project], error) + // Update an existing project + Update(context.Context, *connect_go.Request[v1.UpdateProjectRequest]) (*connect_go.Response[v1.Project], error) + // List all the projects for an organization + List(context.Context, *connect_go.Request[v1.ListProjectRequest], *connect_go.ServerStream[v1.Project]) error + // Get a project + Get(context.Context, *connect_go.Request[v1.GetProjectRequest]) (*connect_go.Response[v1.Project], error) + // Delete a project + Delete(context.Context, *connect_go.Request[v1.DeleteProjectRequest]) (*connect_go.Response[v1.Project], error) + // Add or remove tags from an asset + TagAssets(context.Context, *connect_go.Request[v1.TagAssetsRequest]) (*connect_go.Response[v1.TagAssetsResponse], error) + UntagAssets(context.Context, *connect_go.Request[v1.UntagAssetsRequest]) (*connect_go.Response[v1.UntagAssetsResponse], error) + // Query the assets of a project, with additional filtering + QueryAssets(context.Context, *connect_go.Request[v1.QueryAssetsRequest]) (*connect_go.Response[v1.QueryAssetsResponse], error) + // Delete one or more assets of a project + DeleteAssets(context.Context, *connect_go.Request[v1.DeleteAssetsRequest]) (*connect_go.Response[v1.DeleteAssetsResponse], error) +} + +// NewProjectServiceHandler builds an HTTP handler from the service implementation. It returns the +// path on which to mount the handler and the handler itself. +// +// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf +// and JSON codecs. They also support gzip compression. +func NewProjectServiceHandler(svc ProjectServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler) { + mux := http.NewServeMux() + mux.Handle(ProjectServiceCreateProcedure, connect_go.NewUnaryHandler( + ProjectServiceCreateProcedure, + svc.Create, + opts..., + )) + mux.Handle(ProjectServiceUpdateProcedure, connect_go.NewUnaryHandler( + ProjectServiceUpdateProcedure, + svc.Update, + opts..., + )) + mux.Handle(ProjectServiceListProcedure, connect_go.NewServerStreamHandler( + ProjectServiceListProcedure, + svc.List, + opts..., + )) + mux.Handle(ProjectServiceGetProcedure, connect_go.NewUnaryHandler( + ProjectServiceGetProcedure, + svc.Get, + opts..., + )) + mux.Handle(ProjectServiceDeleteProcedure, connect_go.NewUnaryHandler( + ProjectServiceDeleteProcedure, + svc.Delete, + opts..., + )) + mux.Handle(ProjectServiceTagAssetsProcedure, connect_go.NewUnaryHandler( + ProjectServiceTagAssetsProcedure, + svc.TagAssets, + opts..., + )) + mux.Handle(ProjectServiceUntagAssetsProcedure, connect_go.NewUnaryHandler( + ProjectServiceUntagAssetsProcedure, + svc.UntagAssets, + opts..., + )) + mux.Handle(ProjectServiceQueryAssetsProcedure, connect_go.NewUnaryHandler( + ProjectServiceQueryAssetsProcedure, + svc.QueryAssets, + opts..., + )) + mux.Handle(ProjectServiceDeleteAssetsProcedure, connect_go.NewUnaryHandler( + ProjectServiceDeleteAssetsProcedure, + svc.DeleteAssets, + opts..., + )) + return "/stabilityai.platformapis.project.v1.ProjectService/", mux +} + +// UnimplementedProjectServiceHandler returns CodeUnimplemented from all methods. +type UnimplementedProjectServiceHandler struct{} + +func (UnimplementedProjectServiceHandler) Create(context.Context, *connect_go.Request[v1.CreateProjectRequest]) (*connect_go.Response[v1.Project], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.platformapis.project.v1.ProjectService.Create is not implemented")) +} + +func (UnimplementedProjectServiceHandler) Update(context.Context, *connect_go.Request[v1.UpdateProjectRequest]) (*connect_go.Response[v1.Project], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.platformapis.project.v1.ProjectService.Update is not implemented")) +} + +func (UnimplementedProjectServiceHandler) List(context.Context, *connect_go.Request[v1.ListProjectRequest], *connect_go.ServerStream[v1.Project]) error { + return connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.platformapis.project.v1.ProjectService.List is not implemented")) +} + +func (UnimplementedProjectServiceHandler) Get(context.Context, *connect_go.Request[v1.GetProjectRequest]) (*connect_go.Response[v1.Project], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.platformapis.project.v1.ProjectService.Get is not implemented")) +} + +func (UnimplementedProjectServiceHandler) Delete(context.Context, *connect_go.Request[v1.DeleteProjectRequest]) (*connect_go.Response[v1.Project], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.platformapis.project.v1.ProjectService.Delete is not implemented")) +} + +func (UnimplementedProjectServiceHandler) TagAssets(context.Context, *connect_go.Request[v1.TagAssetsRequest]) (*connect_go.Response[v1.TagAssetsResponse], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.platformapis.project.v1.ProjectService.TagAssets is not implemented")) +} + +func (UnimplementedProjectServiceHandler) UntagAssets(context.Context, *connect_go.Request[v1.UntagAssetsRequest]) (*connect_go.Response[v1.UntagAssetsResponse], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.platformapis.project.v1.ProjectService.UntagAssets is not implemented")) +} + +func (UnimplementedProjectServiceHandler) QueryAssets(context.Context, *connect_go.Request[v1.QueryAssetsRequest]) (*connect_go.Response[v1.QueryAssetsResponse], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.platformapis.project.v1.ProjectService.QueryAssets is not implemented")) +} + +func (UnimplementedProjectServiceHandler) DeleteAssets(context.Context, *connect_go.Request[v1.DeleteAssetsRequest]) (*connect_go.Response[v1.DeleteAssetsResponse], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.platformapis.project.v1.ProjectService.DeleteAssets is not implemented")) +} diff --git a/gen/proto/js/coreweave/tensors/tensors_pb.d.ts b/gen/proto/js/coreweave/tensors/tensors_pb.d.ts new file mode 100644 index 0000000..3e7b5a8 --- /dev/null +++ b/gen/proto/js/coreweave/tensors/tensors_pb.d.ts @@ -0,0 +1,256 @@ +// @generated by protoc-gen-es v1.2.0 +// @generated from file coreweave/tensors/tensors.proto (package tensors, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from enum tensors.Dtype + */ +export declare enum Dtype { + /** + * @generated from enum value: DT_INVALID = 0; + */ + DT_INVALID = 0, + + /** + * @generated from enum value: DT_FLOAT32 = 1; + */ + DT_FLOAT32 = 1, + + /** + * @generated from enum value: DT_FLOAT64 = 2; + */ + DT_FLOAT64 = 2, + + /** + * @generated from enum value: DT_FLOAT16 = 3; + */ + DT_FLOAT16 = 3, + + /** + * @generated from enum value: DT_BFLOAT16 = 4; + */ + DT_BFLOAT16 = 4, + + /** + * @generated from enum value: DT_COMPLEX32 = 5; + */ + DT_COMPLEX32 = 5, + + /** + * @generated from enum value: DT_COMPLEX64 = 6; + */ + DT_COMPLEX64 = 6, + + /** + * @generated from enum value: DT_COMPLEX128 = 7; + */ + DT_COMPLEX128 = 7, + + /** + * @generated from enum value: DT_UINT8 = 8; + */ + DT_UINT8 = 8, + + /** + * @generated from enum value: DT_INT8 = 9; + */ + DT_INT8 = 9, + + /** + * @generated from enum value: DT_INT16 = 10; + */ + DT_INT16 = 10, + + /** + * @generated from enum value: DT_INT32 = 11; + */ + DT_INT32 = 11, + + /** + * @generated from enum value: DT_INT64 = 12; + */ + DT_INT64 = 12, + + /** + * @generated from enum value: DT_BOOL = 13; + */ + DT_BOOL = 13, + + /** + * @generated from enum value: DT_QUINT8 = 14; + */ + DT_QUINT8 = 14, + + /** + * @generated from enum value: DT_QINT8 = 15; + */ + DT_QINT8 = 15, + + /** + * @generated from enum value: DT_QINT32 = 16; + */ + DT_QINT32 = 16, + + /** + * @generated from enum value: DT_QUINT4_2 = 17; + */ + DT_QUINT4_2 = 17, +} + +/** + * @generated from enum tensors.AttributeType + */ +export declare enum AttributeType { + /** + * @generated from enum value: AT_PARAMETER = 0; + */ + AT_PARAMETER = 0, + + /** + * @generated from enum value: AT_BUFFER = 1; + */ + AT_BUFFER = 1, +} + +/** + * @generated from message tensors.Tensor + */ +export declare class Tensor extends Message { + /** + * @generated from field: tensors.Dtype dtype = 1; + */ + dtype: Dtype; + + /** + * @generated from field: repeated int64 shape = 2; + */ + shape: bigint[]; + + /** + * @generated from field: bytes data = 3; + */ + data: Uint8Array; + + /** + * @generated from field: optional tensors.AttributeType attr_type = 4; + */ + attrType?: AttributeType; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "tensors.Tensor"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Tensor; + + static fromJson(jsonValue: JsonValue, options?: Partial): Tensor; + + static fromJsonString(jsonString: string, options?: Partial): Tensor; + + static equals(a: Tensor | PlainMessage | undefined, b: Tensor | PlainMessage | undefined): boolean; +} + +/** + * @generated from message tensors.Attribute + */ +export declare class Attribute extends Message { + /** + * @generated from field: string name = 1; + */ + name: string; + + /** + * @generated from oneof tensors.Attribute.value + */ + value: { + /** + * @generated from field: tensors.Module module = 3; + */ + value: Module; + case: "module"; + } | { + /** + * @generated from field: tensors.Tensor tensor = 4; + */ + value: Tensor; + case: "tensor"; + } | { + /** + * @generated from field: string string = 5; + */ + value: string; + case: "string"; + } | { + /** + * @generated from field: int64 int64 = 6; + */ + value: bigint; + case: "int64"; + } | { + /** + * @generated from field: float float = 7; + */ + value: number; + case: "float"; + } | { + /** + * @generated from field: bool bool = 8; + */ + value: boolean; + case: "bool"; + } | { case: undefined; value?: undefined }; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "tensors.Attribute"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Attribute; + + static fromJson(jsonValue: JsonValue, options?: Partial): Attribute; + + static fromJsonString(jsonString: string, options?: Partial): Attribute; + + static equals(a: Attribute | PlainMessage | undefined, b: Attribute | PlainMessage | undefined): boolean; +} + +/** + * @generated from message tensors.Module + */ +export declare class Module extends Message { + /** + * @generated from field: string name = 1; + */ + name: string; + + /** + * @generated from field: repeated string names = 2; + */ + names: string[]; + + /** + * @generated from field: repeated tensors.Attribute attributes = 3; + */ + attributes: Attribute[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "tensors.Module"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Module; + + static fromJson(jsonValue: JsonValue, options?: Partial): Module; + + static fromJsonString(jsonString: string, options?: Partial): Module; + + static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean; +} + diff --git a/gen/proto/js/coreweave/tensors/tensors_pb.js b/gen/proto/js/coreweave/tensors/tensors_pb.js new file mode 100644 index 0000000..6a5796c --- /dev/null +++ b/gen/proto/js/coreweave/tensors/tensors_pb.js @@ -0,0 +1,86 @@ +// @generated by protoc-gen-es v1.2.0 +// @generated from file coreweave/tensors/tensors.proto (package tensors, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from enum tensors.Dtype + */ +export const Dtype = proto3.makeEnum( + "tensors.Dtype", + [ + {no: 0, name: "DT_INVALID"}, + {no: 1, name: "DT_FLOAT32"}, + {no: 2, name: "DT_FLOAT64"}, + {no: 3, name: "DT_FLOAT16"}, + {no: 4, name: "DT_BFLOAT16"}, + {no: 5, name: "DT_COMPLEX32"}, + {no: 6, name: "DT_COMPLEX64"}, + {no: 7, name: "DT_COMPLEX128"}, + {no: 8, name: "DT_UINT8"}, + {no: 9, name: "DT_INT8"}, + {no: 10, name: "DT_INT16"}, + {no: 11, name: "DT_INT32"}, + {no: 12, name: "DT_INT64"}, + {no: 13, name: "DT_BOOL"}, + {no: 14, name: "DT_QUINT8"}, + {no: 15, name: "DT_QINT8"}, + {no: 16, name: "DT_QINT32"}, + {no: 17, name: "DT_QUINT4_2"}, + ], +); + +/** + * @generated from enum tensors.AttributeType + */ +export const AttributeType = proto3.makeEnum( + "tensors.AttributeType", + [ + {no: 0, name: "AT_PARAMETER"}, + {no: 1, name: "AT_BUFFER"}, + ], +); + +/** + * @generated from message tensors.Tensor + */ +export const Tensor = proto3.makeMessageType( + "tensors.Tensor", + () => [ + { no: 1, name: "dtype", kind: "enum", T: proto3.getEnumType(Dtype) }, + { no: 2, name: "shape", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true }, + { no: 3, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 4, name: "attr_type", kind: "enum", T: proto3.getEnumType(AttributeType), opt: true }, + ], +); + +/** + * @generated from message tensors.Attribute + */ +export const Attribute = proto3.makeMessageType( + "tensors.Attribute", + () => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "module", kind: "message", T: Module, oneof: "value" }, + { no: 4, name: "tensor", kind: "message", T: Tensor, oneof: "value" }, + { no: 5, name: "string", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "value" }, + { no: 6, name: "int64", kind: "scalar", T: 3 /* ScalarType.INT64 */, oneof: "value" }, + { no: 7, name: "float", kind: "scalar", T: 2 /* ScalarType.FLOAT */, oneof: "value" }, + { no: 8, name: "bool", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "value" }, + ], +); + +/** + * @generated from message tensors.Module + */ +export const Module = proto3.makeMessageType( + "tensors.Module", + () => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "names", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 3, name: "attributes", kind: "message", T: Attribute, repeated: true }, + ], +); + diff --git a/gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_connect.d.ts b/gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_connect.d.ts new file mode 100644 index 0000000..3017a63 --- /dev/null +++ b/gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_connect.d.ts @@ -0,0 +1,169 @@ +// @generated by protoc-gen-connect-es v0.8.6 +// @generated from file stabilityai/platformapis/dashboard/v1/dashboard.proto (package stabilityai.api.dashboard.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { APIKey, APIKeyFindRequest, APIKeyRequest, AutoChargeIntent, Charge, Charges, ClientSettings, CreateAutoChargeIntentRequest, CreateChargeRequest, EmptyRequest, GetAutoChargeRequest, GetChargesRequest, GetMetricsRequest, GetOrganizationRequest, Metrics, Organization, UpdateDefaultOrganizationRequest, UpdateUserInfoRequest, User, UserPasswordChangeTicket } from "./dashboard_pb.js"; +import { MethodKind } from "@bufbuild/protobuf"; + +/** + * @generated from service stabilityai.api.dashboard.v1.DashboardService + */ +export declare const DashboardService: { + readonly typeName: "stabilityai.api.dashboard.v1.DashboardService", + readonly methods: { + /** + * Get info + * + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.GetMe + */ + readonly getMe: { + readonly name: "GetMe", + readonly I: typeof EmptyRequest, + readonly O: typeof User, + readonly kind: MethodKind.Unary, + }, + /** + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.GetOrganization + */ + readonly getOrganization: { + readonly name: "GetOrganization", + readonly I: typeof GetOrganizationRequest, + readonly O: typeof Organization, + readonly kind: MethodKind.Unary, + }, + /** + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.GetMetrics + */ + readonly getMetrics: { + readonly name: "GetMetrics", + readonly I: typeof GetMetricsRequest, + readonly O: typeof Metrics, + readonly kind: MethodKind.Unary, + }, + /** + * API key management + * + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.CreateAPIKey + */ + readonly createAPIKey: { + readonly name: "CreateAPIKey", + readonly I: typeof APIKeyRequest, + readonly O: typeof APIKey, + readonly kind: MethodKind.Unary, + }, + /** + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.DeleteAPIKey + */ + readonly deleteAPIKey: { + readonly name: "DeleteAPIKey", + readonly I: typeof APIKeyFindRequest, + readonly O: typeof APIKey, + readonly kind: MethodKind.Unary, + }, + /** + * User settings + * + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.UpdateDefaultOrganization + */ + readonly updateDefaultOrganization: { + readonly name: "UpdateDefaultOrganization", + readonly I: typeof UpdateDefaultOrganizationRequest, + readonly O: typeof User, + readonly kind: MethodKind.Unary, + }, + /** + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.GetClientSettings + */ + readonly getClientSettings: { + readonly name: "GetClientSettings", + readonly I: typeof EmptyRequest, + readonly O: typeof ClientSettings, + readonly kind: MethodKind.Unary, + }, + /** + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.SetClientSettings + */ + readonly setClientSettings: { + readonly name: "SetClientSettings", + readonly I: typeof ClientSettings, + readonly O: typeof ClientSettings, + readonly kind: MethodKind.Unary, + }, + /** + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.UpdateUserInfo + */ + readonly updateUserInfo: { + readonly name: "UpdateUserInfo", + readonly I: typeof UpdateUserInfoRequest, + readonly O: typeof User, + readonly kind: MethodKind.Unary, + }, + /** + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.CreatePasswordChangeTicket + */ + readonly createPasswordChangeTicket: { + readonly name: "CreatePasswordChangeTicket", + readonly I: typeof EmptyRequest, + readonly O: typeof UserPasswordChangeTicket, + readonly kind: MethodKind.Unary, + }, + /** + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.DeleteAccount + */ + readonly deleteAccount: { + readonly name: "DeleteAccount", + readonly I: typeof EmptyRequest, + readonly O: typeof User, + readonly kind: MethodKind.Unary, + }, + /** + * Payment functions + * + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.CreateCharge + */ + readonly createCharge: { + readonly name: "CreateCharge", + readonly I: typeof CreateChargeRequest, + readonly O: typeof Charge, + readonly kind: MethodKind.Unary, + }, + /** + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.GetCharges + */ + readonly getCharges: { + readonly name: "GetCharges", + readonly I: typeof GetChargesRequest, + readonly O: typeof Charges, + readonly kind: MethodKind.Unary, + }, + /** + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.CreateAutoChargeIntent + */ + readonly createAutoChargeIntent: { + readonly name: "CreateAutoChargeIntent", + readonly I: typeof CreateAutoChargeIntentRequest, + readonly O: typeof AutoChargeIntent, + readonly kind: MethodKind.Unary, + }, + /** + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.UpdateAutoChargeIntent + */ + readonly updateAutoChargeIntent: { + readonly name: "UpdateAutoChargeIntent", + readonly I: typeof CreateAutoChargeIntentRequest, + readonly O: typeof AutoChargeIntent, + readonly kind: MethodKind.Unary, + }, + /** + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.GetAutoChargeIntent + */ + readonly getAutoChargeIntent: { + readonly name: "GetAutoChargeIntent", + readonly I: typeof GetAutoChargeRequest, + readonly O: typeof AutoChargeIntent, + readonly kind: MethodKind.Unary, + }, + } +}; + diff --git a/gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_connect.js b/gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_connect.js new file mode 100644 index 0000000..6380442 --- /dev/null +++ b/gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_connect.js @@ -0,0 +1,169 @@ +// @generated by protoc-gen-connect-es v0.8.6 +// @generated from file stabilityai/platformapis/dashboard/v1/dashboard.proto (package stabilityai.api.dashboard.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { APIKey, APIKeyFindRequest, APIKeyRequest, AutoChargeIntent, Charge, Charges, ClientSettings, CreateAutoChargeIntentRequest, CreateChargeRequest, EmptyRequest, GetAutoChargeRequest, GetChargesRequest, GetMetricsRequest, GetOrganizationRequest, Metrics, Organization, UpdateDefaultOrganizationRequest, UpdateUserInfoRequest, User, UserPasswordChangeTicket } from "./dashboard_pb.js"; +import { MethodKind } from "@bufbuild/protobuf"; + +/** + * @generated from service stabilityai.api.dashboard.v1.DashboardService + */ +export const DashboardService = { + typeName: "stabilityai.api.dashboard.v1.DashboardService", + methods: { + /** + * Get info + * + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.GetMe + */ + getMe: { + name: "GetMe", + I: EmptyRequest, + O: User, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.GetOrganization + */ + getOrganization: { + name: "GetOrganization", + I: GetOrganizationRequest, + O: Organization, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.GetMetrics + */ + getMetrics: { + name: "GetMetrics", + I: GetMetricsRequest, + O: Metrics, + kind: MethodKind.Unary, + }, + /** + * API key management + * + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.CreateAPIKey + */ + createAPIKey: { + name: "CreateAPIKey", + I: APIKeyRequest, + O: APIKey, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.DeleteAPIKey + */ + deleteAPIKey: { + name: "DeleteAPIKey", + I: APIKeyFindRequest, + O: APIKey, + kind: MethodKind.Unary, + }, + /** + * User settings + * + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.UpdateDefaultOrganization + */ + updateDefaultOrganization: { + name: "UpdateDefaultOrganization", + I: UpdateDefaultOrganizationRequest, + O: User, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.GetClientSettings + */ + getClientSettings: { + name: "GetClientSettings", + I: EmptyRequest, + O: ClientSettings, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.SetClientSettings + */ + setClientSettings: { + name: "SetClientSettings", + I: ClientSettings, + O: ClientSettings, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.UpdateUserInfo + */ + updateUserInfo: { + name: "UpdateUserInfo", + I: UpdateUserInfoRequest, + O: User, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.CreatePasswordChangeTicket + */ + createPasswordChangeTicket: { + name: "CreatePasswordChangeTicket", + I: EmptyRequest, + O: UserPasswordChangeTicket, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.DeleteAccount + */ + deleteAccount: { + name: "DeleteAccount", + I: EmptyRequest, + O: User, + kind: MethodKind.Unary, + }, + /** + * Payment functions + * + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.CreateCharge + */ + createCharge: { + name: "CreateCharge", + I: CreateChargeRequest, + O: Charge, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.GetCharges + */ + getCharges: { + name: "GetCharges", + I: GetChargesRequest, + O: Charges, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.CreateAutoChargeIntent + */ + createAutoChargeIntent: { + name: "CreateAutoChargeIntent", + I: CreateAutoChargeIntentRequest, + O: AutoChargeIntent, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.UpdateAutoChargeIntent + */ + updateAutoChargeIntent: { + name: "UpdateAutoChargeIntent", + I: CreateAutoChargeIntentRequest, + O: AutoChargeIntent, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc stabilityai.api.dashboard.v1.DashboardService.GetAutoChargeIntent + */ + getAutoChargeIntent: { + name: "GetAutoChargeIntent", + I: GetAutoChargeRequest, + O: AutoChargeIntent, + kind: MethodKind.Unary, + }, + } +}; + diff --git a/gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_pb.d.ts b/gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_pb.d.ts new file mode 100644 index 0000000..c86ab43 --- /dev/null +++ b/gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_pb.d.ts @@ -0,0 +1,960 @@ +// @generated by protoc-gen-es v1.2.0 +// @generated from file stabilityai/platformapis/dashboard/v1/dashboard.proto (package stabilityai.api.dashboard.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from enum stabilityai.api.dashboard.v1.OrganizationRole + */ +export declare enum OrganizationRole { + /** + * @generated from enum value: MEMBER = 0; + */ + MEMBER = 0, + + /** + * @generated from enum value: ACCOUNTANT = 1; + */ + ACCOUNTANT = 1, + + /** + * @generated from enum value: OWNER = 2; + */ + OWNER = 2, +} + +/** + * @generated from message stabilityai.api.dashboard.v1.OrganizationMember + */ +export declare class OrganizationMember extends Message { + /** + * @generated from field: stabilityai.api.dashboard.v1.Organization organization = 1; + */ + organization?: Organization; + + /** + * @generated from field: optional stabilityai.api.dashboard.v1.User user = 2; + */ + user?: User; + + /** + * @generated from field: stabilityai.api.dashboard.v1.OrganizationRole role = 3; + */ + role: OrganizationRole; + + /** + * @generated from field: bool is_default = 4; + */ + isDefault: boolean; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.OrganizationMember"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): OrganizationMember; + + static fromJson(jsonValue: JsonValue, options?: Partial): OrganizationMember; + + static fromJsonString(jsonString: string, options?: Partial): OrganizationMember; + + static equals(a: OrganizationMember | PlainMessage | undefined, b: OrganizationMember | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.api.dashboard.v1.OrganizationGrant + */ +export declare class OrganizationGrant extends Message { + /** + * @generated from field: double amount_granted = 1; + */ + amountGranted: number; + + /** + * @generated from field: double amount_used = 2; + */ + amountUsed: number; + + /** + * @generated from field: uint64 expires_at = 3; + */ + expiresAt: bigint; + + /** + * @generated from field: uint64 granted_at = 4; + */ + grantedAt: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.OrganizationGrant"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): OrganizationGrant; + + static fromJson(jsonValue: JsonValue, options?: Partial): OrganizationGrant; + + static fromJsonString(jsonString: string, options?: Partial): OrganizationGrant; + + static equals(a: OrganizationGrant | PlainMessage | undefined, b: OrganizationGrant | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.api.dashboard.v1.OrganizationPaymentInfo + */ +export declare class OrganizationPaymentInfo extends Message { + /** + * @generated from field: double balance = 1; + */ + balance: number; + + /** + * @generated from field: repeated stabilityai.api.dashboard.v1.OrganizationGrant grants = 2; + */ + grants: OrganizationGrant[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.OrganizationPaymentInfo"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): OrganizationPaymentInfo; + + static fromJson(jsonValue: JsonValue, options?: Partial): OrganizationPaymentInfo; + + static fromJsonString(jsonString: string, options?: Partial): OrganizationPaymentInfo; + + static equals(a: OrganizationPaymentInfo | PlainMessage | undefined, b: OrganizationPaymentInfo | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.api.dashboard.v1.OrganizationAutoCharge + */ +export declare class OrganizationAutoCharge extends Message { + /** + * @generated from field: bool enabled = 1; + */ + enabled: boolean; + + /** + * @generated from field: string id = 2; + */ + id: string; + + /** + * @generated from field: uint64 created_at = 3; + */ + createdAt: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.OrganizationAutoCharge"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): OrganizationAutoCharge; + + static fromJson(jsonValue: JsonValue, options?: Partial): OrganizationAutoCharge; + + static fromJsonString(jsonString: string, options?: Partial): OrganizationAutoCharge; + + static equals(a: OrganizationAutoCharge | PlainMessage | undefined, b: OrganizationAutoCharge | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.api.dashboard.v1.Organization + */ +export declare class Organization extends Message { + /** + * @generated from field: string id = 1; + */ + id: string; + + /** + * @generated from field: string name = 2; + */ + name: string; + + /** + * @generated from field: string description = 3; + */ + description: string; + + /** + * @generated from field: repeated stabilityai.api.dashboard.v1.OrganizationMember members = 4; + */ + members: OrganizationMember[]; + + /** + * @generated from field: optional stabilityai.api.dashboard.v1.OrganizationPaymentInfo payment_info = 5; + */ + paymentInfo?: OrganizationPaymentInfo; + + /** + * @generated from field: optional string stripe_customer_id = 6; + */ + stripeCustomerId?: string; + + /** + * @generated from field: optional stabilityai.api.dashboard.v1.OrganizationAutoCharge auto_charge = 7; + */ + autoCharge?: OrganizationAutoCharge; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.Organization"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Organization; + + static fromJson(jsonValue: JsonValue, options?: Partial): Organization; + + static fromJsonString(jsonString: string, options?: Partial): Organization; + + static equals(a: Organization | PlainMessage | undefined, b: Organization | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.api.dashboard.v1.APIKey + */ +export declare class APIKey extends Message { + /** + * @generated from field: string key = 1; + */ + key: string; + + /** + * @generated from field: bool is_secret = 2; + */ + isSecret: boolean; + + /** + * @generated from field: uint64 created_at = 3; + */ + createdAt: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.APIKey"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): APIKey; + + static fromJson(jsonValue: JsonValue, options?: Partial): APIKey; + + static fromJsonString(jsonString: string, options?: Partial): APIKey; + + static equals(a: APIKey | PlainMessage | undefined, b: APIKey | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.api.dashboard.v1.User + */ +export declare class User extends Message { + /** + * @generated from field: string id = 1; + */ + id: string; + + /** + * @generated from field: optional string auth_id = 2; + */ + authId?: string; + + /** + * @generated from field: string profile_picture = 3; + */ + profilePicture: string; + + /** + * @generated from field: string email = 4; + */ + email: string; + + /** + * @generated from field: repeated stabilityai.api.dashboard.v1.OrganizationMember organizations = 5; + */ + organizations: OrganizationMember[]; + + /** + * @generated from field: repeated stabilityai.api.dashboard.v1.APIKey api_keys = 7; + */ + apiKeys: APIKey[]; + + /** + * @generated from field: uint64 created_at = 8; + */ + createdAt: bigint; + + /** + * @generated from field: optional bool email_verified = 9; + */ + emailVerified?: boolean; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.User"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): User; + + static fromJson(jsonValue: JsonValue, options?: Partial): User; + + static fromJsonString(jsonString: string, options?: Partial): User; + + static equals(a: User | PlainMessage | undefined, b: User | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.api.dashboard.v1.CostData + */ +export declare class CostData extends Message { + /** + * @generated from field: uint32 amount_tokens = 1; + */ + amountTokens: number; + + /** + * @generated from field: double amount_credits = 2; + */ + amountCredits: number; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.CostData"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): CostData; + + static fromJson(jsonValue: JsonValue, options?: Partial): CostData; + + static fromJsonString(jsonString: string, options?: Partial): CostData; + + static equals(a: CostData | PlainMessage | undefined, b: CostData | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.api.dashboard.v1.UsageMetric + */ +export declare class UsageMetric extends Message { + /** + * @generated from field: string operation = 1; + */ + operation: string; + + /** + * @generated from field: string engine = 2; + */ + engine: string; + + /** + * @generated from field: stabilityai.api.dashboard.v1.CostData input_cost = 3; + */ + inputCost?: CostData; + + /** + * @generated from field: stabilityai.api.dashboard.v1.CostData output_cost = 4; + */ + outputCost?: CostData; + + /** + * @generated from field: optional string user = 5; + */ + user?: string; + + /** + * @generated from field: uint64 aggregation_timestamp = 6; + */ + aggregationTimestamp: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.UsageMetric"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): UsageMetric; + + static fromJson(jsonValue: JsonValue, options?: Partial): UsageMetric; + + static fromJsonString(jsonString: string, options?: Partial): UsageMetric; + + static equals(a: UsageMetric | PlainMessage | undefined, b: UsageMetric | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.api.dashboard.v1.CostTotal + */ +export declare class CostTotal extends Message { + /** + * @generated from field: uint32 amount_tokens = 1; + */ + amountTokens: number; + + /** + * @generated from field: double amount_credits = 2; + */ + amountCredits: number; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.CostTotal"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): CostTotal; + + static fromJson(jsonValue: JsonValue, options?: Partial): CostTotal; + + static fromJsonString(jsonString: string, options?: Partial): CostTotal; + + static equals(a: CostTotal | PlainMessage | undefined, b: CostTotal | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.api.dashboard.v1.TotalMetricsData + */ +export declare class TotalMetricsData extends Message { + /** + * @generated from field: stabilityai.api.dashboard.v1.CostTotal input_total = 1; + */ + inputTotal?: CostTotal; + + /** + * @generated from field: stabilityai.api.dashboard.v1.CostTotal output_total = 2; + */ + outputTotal?: CostTotal; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.TotalMetricsData"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): TotalMetricsData; + + static fromJson(jsonValue: JsonValue, options?: Partial): TotalMetricsData; + + static fromJsonString(jsonString: string, options?: Partial): TotalMetricsData; + + static equals(a: TotalMetricsData | PlainMessage | undefined, b: TotalMetricsData | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.api.dashboard.v1.Metrics + */ +export declare class Metrics extends Message { + /** + * @generated from field: repeated stabilityai.api.dashboard.v1.UsageMetric metrics = 1; + */ + metrics: UsageMetric[]; + + /** + * @generated from field: stabilityai.api.dashboard.v1.TotalMetricsData total = 2; + */ + total?: TotalMetricsData; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.Metrics"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Metrics; + + static fromJson(jsonValue: JsonValue, options?: Partial): Metrics; + + static fromJsonString(jsonString: string, options?: Partial): Metrics; + + static equals(a: Metrics | PlainMessage | undefined, b: Metrics | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.api.dashboard.v1.EmptyRequest + */ +export declare class EmptyRequest extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.EmptyRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): EmptyRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): EmptyRequest; + + static fromJsonString(jsonString: string, options?: Partial): EmptyRequest; + + static equals(a: EmptyRequest | PlainMessage | undefined, b: EmptyRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.api.dashboard.v1.GetOrganizationRequest + */ +export declare class GetOrganizationRequest extends Message { + /** + * @generated from field: string id = 1; + */ + id: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.GetOrganizationRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): GetOrganizationRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): GetOrganizationRequest; + + static fromJsonString(jsonString: string, options?: Partial): GetOrganizationRequest; + + static equals(a: GetOrganizationRequest | PlainMessage | undefined, b: GetOrganizationRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.api.dashboard.v1.GetMetricsRequest + */ +export declare class GetMetricsRequest extends Message { + /** + * @generated from field: string organization_id = 1; + */ + organizationId: string; + + /** + * @generated from field: optional string user_id = 2; + */ + userId?: string; + + /** + * @generated from field: uint64 range_from = 3; + */ + rangeFrom: bigint; + + /** + * @generated from field: uint64 range_to = 4; + */ + rangeTo: bigint; + + /** + * @generated from field: bool include_per_request_metrics = 5; + */ + includePerRequestMetrics: boolean; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.GetMetricsRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): GetMetricsRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): GetMetricsRequest; + + static fromJsonString(jsonString: string, options?: Partial): GetMetricsRequest; + + static equals(a: GetMetricsRequest | PlainMessage | undefined, b: GetMetricsRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.api.dashboard.v1.APIKeyRequest + */ +export declare class APIKeyRequest extends Message { + /** + * @generated from field: bool is_secret = 1; + */ + isSecret: boolean; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.APIKeyRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): APIKeyRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): APIKeyRequest; + + static fromJsonString(jsonString: string, options?: Partial): APIKeyRequest; + + static equals(a: APIKeyRequest | PlainMessage | undefined, b: APIKeyRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.api.dashboard.v1.APIKeyFindRequest + */ +export declare class APIKeyFindRequest extends Message { + /** + * @generated from field: string id = 1; + */ + id: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.APIKeyFindRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): APIKeyFindRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): APIKeyFindRequest; + + static fromJsonString(jsonString: string, options?: Partial): APIKeyFindRequest; + + static equals(a: APIKeyFindRequest | PlainMessage | undefined, b: APIKeyFindRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest + */ +export declare class UpdateDefaultOrganizationRequest extends Message { + /** + * @generated from field: string organization_id = 1; + */ + organizationId: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): UpdateDefaultOrganizationRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): UpdateDefaultOrganizationRequest; + + static fromJsonString(jsonString: string, options?: Partial): UpdateDefaultOrganizationRequest; + + static equals(a: UpdateDefaultOrganizationRequest | PlainMessage | undefined, b: UpdateDefaultOrganizationRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.api.dashboard.v1.ClientSettings + */ +export declare class ClientSettings extends Message { + /** + * @generated from field: bytes settings = 1; + */ + settings: Uint8Array; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.ClientSettings"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): ClientSettings; + + static fromJson(jsonValue: JsonValue, options?: Partial): ClientSettings; + + static fromJsonString(jsonString: string, options?: Partial): ClientSettings; + + static equals(a: ClientSettings | PlainMessage | undefined, b: ClientSettings | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest + */ +export declare class CreateAutoChargeIntentRequest extends Message { + /** + * @generated from field: string organization_id = 1; + */ + organizationId: string; + + /** + * @generated from field: uint64 monthly_maximum = 2; + */ + monthlyMaximum: bigint; + + /** + * @generated from field: uint64 minimum_value = 3; + */ + minimumValue: bigint; + + /** + * @generated from field: uint64 amount_credits = 4; + */ + amountCredits: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateAutoChargeIntentRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateAutoChargeIntentRequest; + + static fromJsonString(jsonString: string, options?: Partial): CreateAutoChargeIntentRequest; + + static equals(a: CreateAutoChargeIntentRequest | PlainMessage | undefined, b: CreateAutoChargeIntentRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.api.dashboard.v1.CreateChargeRequest + */ +export declare class CreateChargeRequest extends Message { + /** + * @generated from field: uint64 amount = 1; + */ + amount: bigint; + + /** + * @generated from field: string organization_id = 2; + */ + organizationId: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.CreateChargeRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateChargeRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateChargeRequest; + + static fromJsonString(jsonString: string, options?: Partial): CreateChargeRequest; + + static equals(a: CreateChargeRequest | PlainMessage | undefined, b: CreateChargeRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.api.dashboard.v1.GetChargesRequest + */ +export declare class GetChargesRequest extends Message { + /** + * @generated from field: string organization_id = 1; + */ + organizationId: string; + + /** + * @generated from field: uint64 range_from = 2; + */ + rangeFrom: bigint; + + /** + * @generated from field: uint64 range_to = 3; + */ + rangeTo: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.GetChargesRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): GetChargesRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): GetChargesRequest; + + static fromJsonString(jsonString: string, options?: Partial): GetChargesRequest; + + static equals(a: GetChargesRequest | PlainMessage | undefined, b: GetChargesRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.api.dashboard.v1.Charge + */ +export declare class Charge extends Message { + /** + * @generated from field: string id = 1; + */ + id: string; + + /** + * @generated from field: bool paid = 2; + */ + paid: boolean; + + /** + * @generated from field: string receipt_link = 3; + */ + receiptLink: string; + + /** + * @generated from field: string payment_link = 4; + */ + paymentLink: string; + + /** + * @generated from field: uint64 created_at = 5; + */ + createdAt: bigint; + + /** + * @generated from field: uint64 amount_credits = 6; + */ + amountCredits: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.Charge"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Charge; + + static fromJson(jsonValue: JsonValue, options?: Partial): Charge; + + static fromJsonString(jsonString: string, options?: Partial): Charge; + + static equals(a: Charge | PlainMessage | undefined, b: Charge | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.api.dashboard.v1.Charges + */ +export declare class Charges extends Message { + /** + * @generated from field: repeated stabilityai.api.dashboard.v1.Charge charges = 1; + */ + charges: Charge[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.Charges"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Charges; + + static fromJson(jsonValue: JsonValue, options?: Partial): Charges; + + static fromJsonString(jsonString: string, options?: Partial): Charges; + + static equals(a: Charges | PlainMessage | undefined, b: Charges | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.api.dashboard.v1.GetAutoChargeRequest + */ +export declare class GetAutoChargeRequest extends Message { + /** + * @generated from field: string organization_id = 1; + */ + organizationId: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.GetAutoChargeRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): GetAutoChargeRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): GetAutoChargeRequest; + + static fromJsonString(jsonString: string, options?: Partial): GetAutoChargeRequest; + + static equals(a: GetAutoChargeRequest | PlainMessage | undefined, b: GetAutoChargeRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.api.dashboard.v1.AutoChargeIntent + */ +export declare class AutoChargeIntent extends Message { + /** + * @generated from field: string id = 1; + */ + id: string; + + /** + * @generated from field: string payment_link = 2; + */ + paymentLink: string; + + /** + * @generated from field: uint64 created_at = 3; + */ + createdAt: bigint; + + /** + * @generated from field: uint64 monthly_maximum = 4; + */ + monthlyMaximum: bigint; + + /** + * @generated from field: uint64 minimum_value = 5; + */ + minimumValue: bigint; + + /** + * @generated from field: uint64 amount_credits = 6; + */ + amountCredits: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.AutoChargeIntent"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): AutoChargeIntent; + + static fromJson(jsonValue: JsonValue, options?: Partial): AutoChargeIntent; + + static fromJsonString(jsonString: string, options?: Partial): AutoChargeIntent; + + static equals(a: AutoChargeIntent | PlainMessage | undefined, b: AutoChargeIntent | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.api.dashboard.v1.UpdateUserInfoRequest + */ +export declare class UpdateUserInfoRequest extends Message { + /** + * @generated from field: optional string email = 1; + */ + email?: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.UpdateUserInfoRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): UpdateUserInfoRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): UpdateUserInfoRequest; + + static fromJsonString(jsonString: string, options?: Partial): UpdateUserInfoRequest; + + static equals(a: UpdateUserInfoRequest | PlainMessage | undefined, b: UpdateUserInfoRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.api.dashboard.v1.UserPasswordChangeTicket + */ +export declare class UserPasswordChangeTicket extends Message { + /** + * @generated from field: string ticket = 1; + */ + ticket: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.api.dashboard.v1.UserPasswordChangeTicket"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): UserPasswordChangeTicket; + + static fromJson(jsonValue: JsonValue, options?: Partial): UserPasswordChangeTicket; + + static fromJsonString(jsonString: string, options?: Partial): UserPasswordChangeTicket; + + static equals(a: UserPasswordChangeTicket | PlainMessage | undefined, b: UserPasswordChangeTicket | PlainMessage | undefined): boolean; +} + diff --git a/gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_pb.js b/gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_pb.js new file mode 100644 index 0000000..95ef15d --- /dev/null +++ b/gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_pb.js @@ -0,0 +1,350 @@ +// @generated by protoc-gen-es v1.2.0 +// @generated from file stabilityai/platformapis/dashboard/v1/dashboard.proto (package stabilityai.api.dashboard.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from enum stabilityai.api.dashboard.v1.OrganizationRole + */ +export const OrganizationRole = proto3.makeEnum( + "stabilityai.api.dashboard.v1.OrganizationRole", + [ + {no: 0, name: "MEMBER"}, + {no: 1, name: "ACCOUNTANT"}, + {no: 2, name: "OWNER"}, + ], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.OrganizationMember + */ +export const OrganizationMember = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.OrganizationMember", + () => [ + { no: 1, name: "organization", kind: "message", T: Organization }, + { no: 2, name: "user", kind: "message", T: User, opt: true }, + { no: 3, name: "role", kind: "enum", T: proto3.getEnumType(OrganizationRole) }, + { no: 4, name: "is_default", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.OrganizationGrant + */ +export const OrganizationGrant = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.OrganizationGrant", + () => [ + { no: 1, name: "amount_granted", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 2, name: "amount_used", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 3, name: "expires_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "granted_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.OrganizationPaymentInfo + */ +export const OrganizationPaymentInfo = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.OrganizationPaymentInfo", + () => [ + { no: 1, name: "balance", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 2, name: "grants", kind: "message", T: OrganizationGrant, repeated: true }, + ], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.OrganizationAutoCharge + */ +export const OrganizationAutoCharge = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.OrganizationAutoCharge", + () => [ + { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "created_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.Organization + */ +export const Organization = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.Organization", + () => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "members", kind: "message", T: OrganizationMember, repeated: true }, + { no: 5, name: "payment_info", kind: "message", T: OrganizationPaymentInfo, opt: true }, + { no: 6, name: "stripe_customer_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 7, name: "auto_charge", kind: "message", T: OrganizationAutoCharge, opt: true }, + ], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.APIKey + */ +export const APIKey = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.APIKey", + () => [ + { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "is_secret", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "created_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.User + */ +export const User = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.User", + () => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "auth_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 3, name: "profile_picture", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "organizations", kind: "message", T: OrganizationMember, repeated: true }, + { no: 7, name: "api_keys", kind: "message", T: APIKey, repeated: true }, + { no: 8, name: "created_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 9, name: "email_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, + ], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.CostData + */ +export const CostData = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.CostData", + () => [ + { no: 1, name: "amount_tokens", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "amount_credits", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + ], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.UsageMetric + */ +export const UsageMetric = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.UsageMetric", + () => [ + { no: 1, name: "operation", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "engine", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "input_cost", kind: "message", T: CostData }, + { no: 4, name: "output_cost", kind: "message", T: CostData }, + { no: 5, name: "user", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 6, name: "aggregation_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.CostTotal + */ +export const CostTotal = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.CostTotal", + () => [ + { no: 1, name: "amount_tokens", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "amount_credits", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + ], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.TotalMetricsData + */ +export const TotalMetricsData = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.TotalMetricsData", + () => [ + { no: 1, name: "input_total", kind: "message", T: CostTotal }, + { no: 2, name: "output_total", kind: "message", T: CostTotal }, + ], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.Metrics + */ +export const Metrics = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.Metrics", + () => [ + { no: 1, name: "metrics", kind: "message", T: UsageMetric, repeated: true }, + { no: 2, name: "total", kind: "message", T: TotalMetricsData }, + ], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.EmptyRequest + */ +export const EmptyRequest = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.EmptyRequest", + [], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.GetOrganizationRequest + */ +export const GetOrganizationRequest = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.GetOrganizationRequest", + () => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.GetMetricsRequest + */ +export const GetMetricsRequest = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.GetMetricsRequest", + () => [ + { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 3, name: "range_from", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "range_to", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "include_per_request_metrics", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.APIKeyRequest + */ +export const APIKeyRequest = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.APIKeyRequest", + () => [ + { no: 1, name: "is_secret", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.APIKeyFindRequest + */ +export const APIKeyFindRequest = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.APIKeyFindRequest", + () => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest + */ +export const UpdateDefaultOrganizationRequest = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest", + () => [ + { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.ClientSettings + */ +export const ClientSettings = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.ClientSettings", + () => [ + { no: 1, name: "settings", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest + */ +export const CreateAutoChargeIntentRequest = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest", + () => [ + { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "monthly_maximum", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "minimum_value", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "amount_credits", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.CreateChargeRequest + */ +export const CreateChargeRequest = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.CreateChargeRequest", + () => [ + { no: 1, name: "amount", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.GetChargesRequest + */ +export const GetChargesRequest = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.GetChargesRequest", + () => [ + { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "range_from", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "range_to", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.Charge + */ +export const Charge = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.Charge", + () => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "paid", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "receipt_link", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "payment_link", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "created_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "amount_credits", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.Charges + */ +export const Charges = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.Charges", + () => [ + { no: 1, name: "charges", kind: "message", T: Charge, repeated: true }, + ], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.GetAutoChargeRequest + */ +export const GetAutoChargeRequest = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.GetAutoChargeRequest", + () => [ + { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.AutoChargeIntent + */ +export const AutoChargeIntent = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.AutoChargeIntent", + () => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "payment_link", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "created_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "monthly_maximum", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "minimum_value", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "amount_credits", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.UpdateUserInfoRequest + */ +export const UpdateUserInfoRequest = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.UpdateUserInfoRequest", + () => [ + { no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + ], +); + +/** + * @generated from message stabilityai.api.dashboard.v1.UserPasswordChangeTicket + */ +export const UserPasswordChangeTicket = proto3.makeMessageType( + "stabilityai.api.dashboard.v1.UserPasswordChangeTicket", + () => [ + { no: 1, name: "ticket", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + diff --git a/gen/proto/js/stabilityai/platformapis/engines/v1/engines_connect.d.ts b/gen/proto/js/stabilityai/platformapis/engines/v1/engines_connect.d.ts new file mode 100644 index 0000000..b4802c6 --- /dev/null +++ b/gen/proto/js/stabilityai/platformapis/engines/v1/engines_connect.d.ts @@ -0,0 +1,26 @@ +// @generated by protoc-gen-connect-es v0.8.6 +// @generated from file stabilityai/platformapis/engines/v1/engines.proto (package stabilityai.platformapis.engines.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { Engines, ListEnginesRequest } from "./engines_pb.js"; +import { MethodKind } from "@bufbuild/protobuf"; + +/** + * @generated from service stabilityai.platformapis.engines.v1.EnginesService + */ +export declare const EnginesService: { + readonly typeName: "stabilityai.platformapis.engines.v1.EnginesService", + readonly methods: { + /** + * @generated from rpc stabilityai.platformapis.engines.v1.EnginesService.ListEngines + */ + readonly listEngines: { + readonly name: "ListEngines", + readonly I: typeof ListEnginesRequest, + readonly O: typeof Engines, + readonly kind: MethodKind.Unary, + }, + } +}; + diff --git a/gen/proto/js/stabilityai/platformapis/engines/v1/engines_connect.js b/gen/proto/js/stabilityai/platformapis/engines/v1/engines_connect.js new file mode 100644 index 0000000..02d9892 --- /dev/null +++ b/gen/proto/js/stabilityai/platformapis/engines/v1/engines_connect.js @@ -0,0 +1,26 @@ +// @generated by protoc-gen-connect-es v0.8.6 +// @generated from file stabilityai/platformapis/engines/v1/engines.proto (package stabilityai.platformapis.engines.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { Engines, ListEnginesRequest } from "./engines_pb.js"; +import { MethodKind } from "@bufbuild/protobuf"; + +/** + * @generated from service stabilityai.platformapis.engines.v1.EnginesService + */ +export const EnginesService = { + typeName: "stabilityai.platformapis.engines.v1.EnginesService", + methods: { + /** + * @generated from rpc stabilityai.platformapis.engines.v1.EnginesService.ListEngines + */ + listEngines: { + name: "ListEngines", + I: ListEnginesRequest, + O: Engines, + kind: MethodKind.Unary, + }, + } +}; + diff --git a/gen/proto/js/stabilityai/platformapis/engines/v1/engines_pb.d.ts b/gen/proto/js/stabilityai/platformapis/engines/v1/engines_pb.d.ts new file mode 100644 index 0000000..bcbda9b --- /dev/null +++ b/gen/proto/js/stabilityai/platformapis/engines/v1/engines_pb.d.ts @@ -0,0 +1,163 @@ +// @generated by protoc-gen-es v1.2.0 +// @generated from file stabilityai/platformapis/engines/v1/engines.proto (package stabilityai.platformapis.engines.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Possible engine type + * + * @generated from enum stabilityai.platformapis.engines.v1.EngineType + */ +export declare enum EngineType { + /** + * @generated from enum value: TEXT = 0; + */ + TEXT = 0, + + /** + * @generated from enum value: PICTURE = 1; + */ + PICTURE = 1, + + /** + * @generated from enum value: AUDIO = 2; + */ + AUDIO = 2, + + /** + * @generated from enum value: VIDEO = 3; + */ + VIDEO = 3, + + /** + * @generated from enum value: CLASSIFICATION = 4; + */ + CLASSIFICATION = 4, + + /** + * @generated from enum value: STORAGE = 5; + */ + STORAGE = 5, +} + +/** + * @generated from enum stabilityai.platformapis.engines.v1.EngineTokenizer + */ +export declare enum EngineTokenizer { + /** + * @generated from enum value: GPT2 = 0; + */ + GPT2 = 0, + + /** + * @generated from enum value: PILE = 1; + */ + PILE = 1, +} + +/** + * Engine info struct + * + * @generated from message stabilityai.platformapis.engines.v1.EngineInfo + */ +export declare class EngineInfo extends Message { + /** + * @generated from field: string id = 1; + */ + id: string; + + /** + * @generated from field: string owner = 2; + */ + owner: string; + + /** + * @generated from field: bool ready = 3; + */ + ready: boolean; + + /** + * @generated from field: stabilityai.platformapis.engines.v1.EngineType type = 4; + */ + type: EngineType; + + /** + * @generated from field: stabilityai.platformapis.engines.v1.EngineTokenizer tokenizer = 5; + */ + tokenizer: EngineTokenizer; + + /** + * @generated from field: string name = 6; + */ + name: string; + + /** + * @generated from field: string description = 7; + */ + description: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.engines.v1.EngineInfo"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): EngineInfo; + + static fromJson(jsonValue: JsonValue, options?: Partial): EngineInfo; + + static fromJsonString(jsonString: string, options?: Partial): EngineInfo; + + static equals(a: EngineInfo | PlainMessage | undefined, b: EngineInfo | PlainMessage | undefined): boolean; +} + +/** + * Empty + * + * @generated from message stabilityai.platformapis.engines.v1.ListEnginesRequest + */ +export declare class ListEnginesRequest extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.engines.v1.ListEnginesRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): ListEnginesRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): ListEnginesRequest; + + static fromJsonString(jsonString: string, options?: Partial): ListEnginesRequest; + + static equals(a: ListEnginesRequest | PlainMessage | undefined, b: ListEnginesRequest | PlainMessage | undefined): boolean; +} + +/** + * Engine info list + * + * @generated from message stabilityai.platformapis.engines.v1.Engines + */ +export declare class Engines extends Message { + /** + * @generated from field: repeated stabilityai.platformapis.engines.v1.EngineInfo engine = 1; + */ + engine: EngineInfo[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.engines.v1.Engines"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Engines; + + static fromJson(jsonValue: JsonValue, options?: Partial): Engines; + + static fromJsonString(jsonString: string, options?: Partial): Engines; + + static equals(a: Engines | PlainMessage | undefined, b: Engines | PlainMessage | undefined): boolean; +} + diff --git a/gen/proto/js/stabilityai/platformapis/engines/v1/engines_pb.js b/gen/proto/js/stabilityai/platformapis/engines/v1/engines_pb.js new file mode 100644 index 0000000..8eeb76a --- /dev/null +++ b/gen/proto/js/stabilityai/platformapis/engines/v1/engines_pb.js @@ -0,0 +1,75 @@ +// @generated by protoc-gen-es v1.2.0 +// @generated from file stabilityai/platformapis/engines/v1/engines.proto (package stabilityai.platformapis.engines.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; + +/** + * Possible engine type + * + * @generated from enum stabilityai.platformapis.engines.v1.EngineType + */ +export const EngineType = proto3.makeEnum( + "stabilityai.platformapis.engines.v1.EngineType", + [ + {no: 0, name: "TEXT"}, + {no: 1, name: "PICTURE"}, + {no: 2, name: "AUDIO"}, + {no: 3, name: "VIDEO"}, + {no: 4, name: "CLASSIFICATION"}, + {no: 5, name: "STORAGE"}, + ], +); + +/** + * @generated from enum stabilityai.platformapis.engines.v1.EngineTokenizer + */ +export const EngineTokenizer = proto3.makeEnum( + "stabilityai.platformapis.engines.v1.EngineTokenizer", + [ + {no: 0, name: "GPT2"}, + {no: 1, name: "PILE"}, + ], +); + +/** + * Engine info struct + * + * @generated from message stabilityai.platformapis.engines.v1.EngineInfo + */ +export const EngineInfo = proto3.makeMessageType( + "stabilityai.platformapis.engines.v1.EngineInfo", + () => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "ready", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "type", kind: "enum", T: proto3.getEnumType(EngineType) }, + { no: 5, name: "tokenizer", kind: "enum", T: proto3.getEnumType(EngineTokenizer) }, + { no: 6, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * Empty + * + * @generated from message stabilityai.platformapis.engines.v1.ListEnginesRequest + */ +export const ListEnginesRequest = proto3.makeMessageType( + "stabilityai.platformapis.engines.v1.ListEnginesRequest", + [], +); + +/** + * Engine info list + * + * @generated from message stabilityai.platformapis.engines.v1.Engines + */ +export const Engines = proto3.makeMessageType( + "stabilityai.platformapis.engines.v1.Engines", + () => [ + { no: 1, name: "engine", kind: "message", T: EngineInfo, repeated: true }, + ], +); + diff --git a/gen/proto/js/stabilityai/platformapis/generation/v1/generation_connect.d.ts b/gen/proto/js/stabilityai/platformapis/generation/v1/generation_connect.d.ts new file mode 100644 index 0000000..32fdd16 --- /dev/null +++ b/gen/proto/js/stabilityai/platformapis/generation/v1/generation_connect.d.ts @@ -0,0 +1,39 @@ +// @generated by protoc-gen-connect-es v0.8.6 +// @generated from file stabilityai/platformapis/generation/v1/generation.proto (package stabilityai.platformapis.generation.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { Answer, ChainRequest, Request } from "./generation_pb.js"; +import { MethodKind } from "@bufbuild/protobuf"; + +/** + * + * gRPC services + * + * + * @generated from service stabilityai.platformapis.generation.v1.GenerationService + */ +export declare const GenerationService: { + readonly typeName: "stabilityai.platformapis.generation.v1.GenerationService", + readonly methods: { + /** + * @generated from rpc stabilityai.platformapis.generation.v1.GenerationService.Generate + */ + readonly generate: { + readonly name: "Generate", + readonly I: typeof Request, + readonly O: typeof Answer, + readonly kind: MethodKind.ServerStreaming, + }, + /** + * @generated from rpc stabilityai.platformapis.generation.v1.GenerationService.ChainGenerate + */ + readonly chainGenerate: { + readonly name: "ChainGenerate", + readonly I: typeof ChainRequest, + readonly O: typeof Answer, + readonly kind: MethodKind.ServerStreaming, + }, + } +}; + diff --git a/gen/proto/js/stabilityai/platformapis/generation/v1/generation_connect.js b/gen/proto/js/stabilityai/platformapis/generation/v1/generation_connect.js new file mode 100644 index 0000000..f846300 --- /dev/null +++ b/gen/proto/js/stabilityai/platformapis/generation/v1/generation_connect.js @@ -0,0 +1,39 @@ +// @generated by protoc-gen-connect-es v0.8.6 +// @generated from file stabilityai/platformapis/generation/v1/generation.proto (package stabilityai.platformapis.generation.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { Answer, ChainRequest, Request } from "./generation_pb.js"; +import { MethodKind } from "@bufbuild/protobuf"; + +/** + * + * gRPC services + * + * + * @generated from service stabilityai.platformapis.generation.v1.GenerationService + */ +export const GenerationService = { + typeName: "stabilityai.platformapis.generation.v1.GenerationService", + methods: { + /** + * @generated from rpc stabilityai.platformapis.generation.v1.GenerationService.Generate + */ + generate: { + name: "Generate", + I: Request, + O: Answer, + kind: MethodKind.ServerStreaming, + }, + /** + * @generated from rpc stabilityai.platformapis.generation.v1.GenerationService.ChainGenerate + */ + chainGenerate: { + name: "ChainGenerate", + I: ChainRequest, + O: Answer, + kind: MethodKind.ServerStreaming, + }, + } +}; + diff --git a/gen/proto/js/stabilityai/platformapis/generation/v1/generation_pb.d.ts b/gen/proto/js/stabilityai/platformapis/generation/v1/generation_pb.d.ts new file mode 100644 index 0000000..48f2384 --- /dev/null +++ b/gen/proto/js/stabilityai/platformapis/generation/v1/generation_pb.d.ts @@ -0,0 +1,2171 @@ +// @generated by protoc-gen-es v1.2.0 +// @generated from file stabilityai/platformapis/generation/v1/generation.proto (package stabilityai.platformapis.generation.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Struct } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import type { Tensor } from "../../../../coreweave/tensors/tensors_pb.js"; + +/** + * @generated from enum stabilityai.platformapis.generation.v1.FinishReason + */ +export declare enum FinishReason { + /** + * @generated from enum value: NULL = 0; + */ + NULL = 0, + + /** + * @generated from enum value: LENGTH = 1; + */ + LENGTH = 1, + + /** + * @generated from enum value: STOP = 2; + */ + STOP = 2, + + /** + * @generated from enum value: ERROR = 3; + */ + ERROR = 3, + + /** + * @generated from enum value: FILTER = 4; + */ + FILTER = 4, +} + +/** + * @generated from enum stabilityai.platformapis.generation.v1.ArtifactType + */ +export declare enum ArtifactType { + /** + * @generated from enum value: ARTIFACT_NONE = 0; + */ + ARTIFACT_NONE = 0, + + /** + * @generated from enum value: ARTIFACT_IMAGE = 1; + */ + ARTIFACT_IMAGE = 1, + + /** + * @generated from enum value: ARTIFACT_VIDEO = 2; + */ + ARTIFACT_VIDEO = 2, + + /** + * @generated from enum value: ARTIFACT_TEXT = 3; + */ + ARTIFACT_TEXT = 3, + + /** + * @generated from enum value: ARTIFACT_TOKENS = 4; + */ + ARTIFACT_TOKENS = 4, + + /** + * @generated from enum value: ARTIFACT_EMBEDDING = 5; + */ + ARTIFACT_EMBEDDING = 5, + + /** + * @generated from enum value: ARTIFACT_CLASSIFICATIONS = 6; + */ + ARTIFACT_CLASSIFICATIONS = 6, + + /** + * @generated from enum value: ARTIFACT_MASK = 7; + */ + ARTIFACT_MASK = 7, + + /** + * @generated from enum value: ARTIFACT_LATENT = 8; + */ + ARTIFACT_LATENT = 8, + + /** + * @generated from enum value: ARTIFACT_TENSOR = 9; + */ + ARTIFACT_TENSOR = 9, + + /** + * @generated from enum value: ARTIFACT_DEPTH = 10; + */ + ARTIFACT_DEPTH = 10, +} + +/** + * @generated from enum stabilityai.platformapis.generation.v1.MaskedAreaInit + */ +export declare enum MaskedAreaInit { + /** + * @generated from enum value: MASKED_AREA_INIT_ZERO = 0; + */ + ZERO = 0, + + /** + * @generated from enum value: MASKED_AREA_INIT_RANDOM = 1; + */ + RANDOM = 1, + + /** + * @generated from enum value: MASKED_AREA_INIT_ORIGINAL = 2; + */ + ORIGINAL = 2, +} + +/** + * @generated from enum stabilityai.platformapis.generation.v1.WeightMethod + */ +export declare enum WeightMethod { + /** + * @generated from enum value: TEXT_ENCODER = 0; + */ + TEXT_ENCODER = 0, + + /** + * @generated from enum value: CROSS_ATTENTION = 1; + */ + CROSS_ATTENTION = 1, +} + +/** + * DiffusionSampler identifies which sampler to use for Diffusion, and represents + * the internal set of supported samplers. + * + * @generated from enum stabilityai.platformapis.generation.v1.DiffusionSampler + */ +export declare enum DiffusionSampler { + /** + * @generated from enum value: SAMPLER_DDIM = 0; + */ + SAMPLER_DDIM = 0, + + /** + * @generated from enum value: SAMPLER_DDPM = 1; + */ + SAMPLER_DDPM = 1, + + /** + * @generated from enum value: SAMPLER_K_EULER = 2; + */ + SAMPLER_K_EULER = 2, + + /** + * @generated from enum value: SAMPLER_K_EULER_ANCESTRAL = 3; + */ + SAMPLER_K_EULER_ANCESTRAL = 3, + + /** + * @generated from enum value: SAMPLER_K_HEUN = 4; + */ + SAMPLER_K_HEUN = 4, + + /** + * @generated from enum value: SAMPLER_K_DPM_2 = 5; + */ + SAMPLER_K_DPM_2 = 5, + + /** + * @generated from enum value: SAMPLER_K_DPM_2_ANCESTRAL = 6; + */ + SAMPLER_K_DPM_2_ANCESTRAL = 6, + + /** + * @generated from enum value: SAMPLER_K_LMS = 7; + */ + SAMPLER_K_LMS = 7, + + /** + * @generated from enum value: SAMPLER_K_DPMPP_2S_ANCESTRAL = 8; + */ + SAMPLER_K_DPMPP_2S_ANCESTRAL = 8, + + /** + * @generated from enum value: SAMPLER_K_DPMPP_2M = 9; + */ + SAMPLER_K_DPMPP_2M = 9, + + /** + * @generated from enum value: SAMPLER_K_DPMPP_SDE = 10; + */ + SAMPLER_K_DPMPP_SDE = 10, +} + +/** + * Future, unimplemented. + * + * @generated from enum stabilityai.platformapis.generation.v1.Upscaler + */ +export declare enum Upscaler { + /** + * @generated from enum value: UPSCALER_RGB = 0; + */ + RGB = 0, + + /** + * @generated from enum value: UPSCALER_GFPGAN = 1; + */ + GFPGAN = 1, + + /** + * @generated from enum value: UPSCALER_ESRGAN = 2; + */ + ESRGAN = 2, +} + +/** + * Presets for CLIP guidance. + * + * @generated from enum stabilityai.platformapis.generation.v1.GuidancePreset + */ +export declare enum GuidancePreset { + /** + * @generated from enum value: GUIDANCE_PRESET_NONE = 0; + */ + NONE = 0, + + /** + * @generated from enum value: GUIDANCE_PRESET_SIMPLE = 1; + */ + SIMPLE = 1, + + /** + * @generated from enum value: GUIDANCE_PRESET_FAST_BLUE = 2; + */ + FAST_BLUE = 2, + + /** + * @generated from enum value: GUIDANCE_PRESET_FAST_GREEN = 3; + */ + FAST_GREEN = 3, + + /** + * @generated from enum value: GUIDANCE_PRESET_SLOW = 4; + */ + SLOW = 4, + + /** + * @generated from enum value: GUIDANCE_PRESET_SLOWER = 5; + */ + SLOWER = 5, + + /** + * @generated from enum value: GUIDANCE_PRESET_SLOWEST = 6; + */ + SLOWEST = 6, +} + +/** + * @generated from enum stabilityai.platformapis.generation.v1.ModelArchitecture + */ +export declare enum ModelArchitecture { + /** + * @generated from enum value: MODEL_ARCHITECTURE_NONE = 0; + */ + NONE = 0, + + /** + * @generated from enum value: MODEL_ARCHITECTURE_CLIP_VIT = 1; + */ + CLIP_VIT = 1, + + /** + * @generated from enum value: MODEL_ARCHITECTURE_CLIP_RESNET = 2; + */ + CLIP_RESNET = 2, + + /** + * @generated from enum value: MODEL_ARCHITECTURE_LDM = 3; + */ + LDM = 3, +} + +/** + * @generated from enum stabilityai.platformapis.generation.v1.Action + */ +export declare enum Action { + /** + * @generated from enum value: ACTION_PASSTHROUGH = 0; + */ + PASSTHROUGH = 0, + + /** + * @generated from enum value: ACTION_REGENERATE_DUPLICATE = 1; + */ + REGENERATE_DUPLICATE = 1, + + /** + * @generated from enum value: ACTION_REGENERATE = 2; + */ + REGENERATE = 2, + + /** + * @generated from enum value: ACTION_OBFUSCATE_DUPLICATE = 3; + */ + OBFUSCATE_DUPLICATE = 3, + + /** + * @generated from enum value: ACTION_OBFUSCATE = 4; + */ + OBFUSCATE = 4, + + /** + * @generated from enum value: ACTION_DISCARD = 5; + */ + DISCARD = 5, +} + +/** + * @generated from enum stabilityai.platformapis.generation.v1.ClassifierMode + */ +export declare enum ClassifierMode { + /** + * @generated from enum value: CLSFR_MODE_ZEROSHOT = 0; + */ + CLSFR_MODE_ZEROSHOT = 0, + + /** + * CLSFR_MODE_ODDSRATIO = 2; + * + * @generated from enum value: CLSFR_MODE_MULTICLASS = 1; + */ + CLSFR_MODE_MULTICLASS = 1, +} + +/** + * @generated from enum stabilityai.platformapis.generation.v1.InterpolateMode + */ +export declare enum InterpolateMode { + /** + * @generated from enum value: INTERPOLATE_LINEAR = 0; + */ + INTERPOLATE_LINEAR = 0, + + /** + * @generated from enum value: INTERPOLATE_RIFE = 1; + */ + INTERPOLATE_RIFE = 1, + + /** + * @generated from enum value: INTERPOLATE_VAE_LINEAR = 2; + */ + INTERPOLATE_VAE_LINEAR = 2, + + /** + * @generated from enum value: INTERPOLATE_VAE_SLERP = 3; + */ + INTERPOLATE_VAE_SLERP = 3, + + /** + * @generated from enum value: INTERPOLATE_FILM = 4; + */ + INTERPOLATE_FILM = 4, +} + +/** + * @generated from enum stabilityai.platformapis.generation.v1.BorderMode + */ +export declare enum BorderMode { + /** + * reflect image values across the border + * + * @generated from enum value: BORDER_REFLECT = 0; + */ + BORDER_REFLECT = 0, + + /** + * replicate border values outside the image + * + * @generated from enum value: BORDER_REPLICATE = 1; + */ + BORDER_REPLICATE = 1, + + /** + * wrap around / tile the image values + * + * @generated from enum value: BORDER_WRAP = 2; + */ + BORDER_WRAP = 2, + + /** + * use 0 for locations outside the image + * + * @generated from enum value: BORDER_ZERO = 3; + */ + BORDER_ZERO = 3, + + /** + * prefill border areas with values matching the colors around the area + * + * @generated from enum value: BORDER_PREFILL = 4; + */ + BORDER_PREFILL = 4, +} + +/** + * @generated from enum stabilityai.platformapis.generation.v1.ColorMatchMode + */ +export declare enum ColorMatchMode { + /** + * match hue, saturation, and value histograms + * + * @generated from enum value: COLOR_MATCH_HSV = 0; + */ + COLOR_MATCH_HSV = 0, + + /** + * match lightness, a, and b histograms + * + * @generated from enum value: COLOR_MATCH_LAB = 1; + */ + COLOR_MATCH_LAB = 1, + + /** + * match red, green, and blue histograms + * + * @generated from enum value: COLOR_MATCH_RGB = 2; + */ + COLOR_MATCH_RGB = 2, +} + +/** + * @generated from enum stabilityai.platformapis.generation.v1.CameraType + */ +export declare enum CameraType { + /** + * Perspective camera + * + * @generated from enum value: CAMERA_PERSPECTIVE = 0; + */ + CAMERA_PERSPECTIVE = 0, + + /** + * Orthographic camera. Well suited for isometric animations + * + * @generated from enum value: CAMERA_ORTHOGRAPHIC = 1; + */ + CAMERA_ORTHOGRAPHIC = 1, +} + +/** + * @generated from enum stabilityai.platformapis.generation.v1.RenderMode + */ +export declare enum RenderMode { + /** + * @generated from enum value: RENDER_MESH = 0; + */ + RENDER_MESH = 0, + + /** + * @generated from enum value: RENDER_POINTCLOUD = 1; + */ + RENDER_POINTCLOUD = 1, +} + +/** + * @generated from enum stabilityai.platformapis.generation.v1.AssetAction + */ +export declare enum AssetAction { + /** + * @generated from enum value: ASSET_PUT = 0; + */ + ASSET_PUT = 0, + + /** + * @generated from enum value: ASSET_GET = 1; + */ + ASSET_GET = 1, + + /** + * @generated from enum value: ASSET_DELETE = 2; + */ + ASSET_DELETE = 2, +} + +/** + * AssetUse defines how the asset is used within a project. This enum matches + * the values the project proto. + * + * @generated from enum stabilityai.platformapis.generation.v1.AssetUse + */ +export declare enum AssetUse { + /** + * Asset does not have use defined + * + * @generated from enum value: ASSET_USE_UNDEFINED = 0; + */ + UNDEFINED = 0, + + /** + * Asset is used as an input for the project + * + * @generated from enum value: ASSET_USE_INPUT = 1; + */ + INPUT = 1, + + /** + * Asset is an output from the project + * + * @generated from enum value: ASSET_USE_OUTPUT = 2; + */ + OUTPUT = 2, + + /** + * Asset is an output from an intermediate step of the project + * + * @generated from enum value: ASSET_USE_INTERMEDIATE = 3; + */ + INTERMEDIATE = 3, + + /** + * Asset is used as the project file for the project + * + * @generated from enum value: ASSET_USE_PROJECT = 4; + */ + PROJECT = 4, +} + +/** + * @generated from enum stabilityai.platformapis.generation.v1.StageAction + */ +export declare enum StageAction { + /** + * @generated from enum value: STAGE_ACTION_PASS = 0; + */ + PASS = 0, + + /** + * @generated from enum value: STAGE_ACTION_DISCARD = 1; + */ + DISCARD = 1, + + /** + * @generated from enum value: STAGE_ACTION_RETURN = 2; + */ + RETURN = 2, +} + +/** + * Generally, a GPT BPE 16-bit token, paired with an optional string representation. + * + * @generated from message stabilityai.platformapis.generation.v1.Token + */ +export declare class Token extends Message { + /** + * @generated from field: optional string text = 1; + */ + text?: string; + + /** + * @generated from field: uint32 id = 2; + */ + id: number; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.Token"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Token; + + static fromJson(jsonValue: JsonValue, options?: Partial): Token; + + static fromJsonString(jsonString: string, options?: Partial): Token; + + static equals(a: Token | PlainMessage | undefined, b: Token | PlainMessage | undefined): boolean; +} + +/** + * Sequence of tokens, paired with the id of the tokenizer used to generate them. + * + * @generated from message stabilityai.platformapis.generation.v1.Tokens + */ +export declare class Tokens extends Message { + /** + * @generated from field: repeated stabilityai.platformapis.generation.v1.Token tokens = 1; + */ + tokens: Token[]; + + /** + * @generated from field: optional string tokenizer_id = 2; + */ + tokenizerId?: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.Tokens"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Tokens; + + static fromJson(jsonValue: JsonValue, options?: Partial): Tokens; + + static fromJsonString(jsonString: string, options?: Partial): Tokens; + + static equals(a: Tokens | PlainMessage | undefined, b: Tokens | PlainMessage | undefined): boolean; +} + +/** + * A tangible Artifact, such as an image, video, or text that is used for input + * or output. + * + * @generated from message stabilityai.platformapis.generation.v1.Artifact + */ +export declare class Artifact extends Message { + /** + * @generated from field: uint64 id = 1; + */ + id: bigint; + + /** + * @generated from field: stabilityai.platformapis.generation.v1.ArtifactType type = 2; + */ + type: ArtifactType; + + /** + * MIME type identifier, e.g. "image/png" + * + * @generated from field: string mime = 3; + */ + mime: string; + + /** + * Magic number, e.g. "PNG" + * + * @generated from field: optional string magic = 4; + */ + magic?: string; + + /** + * @generated from oneof stabilityai.platformapis.generation.v1.Artifact.data + */ + data: { + /** + * Binary data, e.g. PNG image + * + * @generated from field: bytes binary = 5; + */ + value: Uint8Array; + case: "binary"; + } | { + /** + * Text data, e.g. text prompt + * + * @generated from field: string text = 6; + */ + value: string; + case: "text"; + } | { + /** + * Tokenized text data, e.g. GPT tokens + * + * @generated from field: stabilityai.platformapis.generation.v1.Tokens tokens = 7; + */ + value: Tokens; + case: "tokens"; + } | { + /** + * @generated from field: stabilityai.platformapis.generation.v1.ClassifierParameters classifier = 11; + */ + value: ClassifierParameters; + case: "classifier"; + } | { + /** + * torch.Tensor: + * + * @generated from field: tensors.Tensor tensor = 14; + */ + value: Tensor; + case: "tensor"; + } | { case: undefined; value?: undefined }; + + /** + * Index of this artifact in input/output list + * + * @generated from field: uint32 index = 8; + */ + index: number; + + /** + * Reason for finishing, if applicable + * + * @generated from field: stabilityai.platformapis.generation.v1.FinishReason finish_reason = 9; + */ + finishReason: FinishReason; + + /** + * Seed used to generate this artifact + * + * @generated from field: uint32 seed = 10; + */ + seed: number; + + /** + * UUIDv4 of the artifact, used for asset lookup + * + * @generated from field: string uuid = 12; + */ + uuid: string; + + /** + * Size of the artifact in bytes + * + * @generated from field: uint64 size = 13; + */ + size: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.Artifact"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Artifact; + + static fromJson(jsonValue: JsonValue, options?: Partial): Artifact; + + static fromJsonString(jsonString: string, options?: Partial): Artifact; + + static equals(a: Artifact | PlainMessage | undefined, b: Artifact | PlainMessage | undefined): boolean; +} + +/** + * A set of parameters for each individual Prompt. + * + * @generated from message stabilityai.platformapis.generation.v1.PromptParameters + */ +export declare class PromptParameters extends Message { + /** + * deprecated, no longer used + * + * @generated from field: optional bool init = 1; + */ + init?: boolean; + + /** + * @generated from field: optional float weight = 2; + */ + weight?: number; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.PromptParameters"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): PromptParameters; + + static fromJson(jsonValue: JsonValue, options?: Partial): PromptParameters; + + static fromJsonString(jsonString: string, options?: Partial): PromptParameters; + + static equals(a: PromptParameters | PlainMessage | undefined, b: PromptParameters | PlainMessage | undefined): boolean; +} + +/** + * A Prompt is a special type of Artifact that is used to generate an output. + * There can be multiple Prompts that affect the same output. Currently, the + * only Prompts supported are: + * - Text (singular) + * - Init Image (singular, optional, type ARTIFACT_IMAGE) + * - Mask (singular, optional, type ARTIFACT_MASK) + * - Depth (singular, optional, type ARTIFACT_DEPTH) + * + * @generated from message stabilityai.platformapis.generation.v1.Prompt + */ +export declare class Prompt extends Message { + /** + * @generated from field: optional stabilityai.platformapis.generation.v1.PromptParameters parameters = 1; + */ + parameters?: PromptParameters; + + /** + * @generated from oneof stabilityai.platformapis.generation.v1.Prompt.prompt + */ + prompt: { + /** + * @generated from field: string text = 2; + */ + value: string; + case: "text"; + } | { + /** + * @generated from field: stabilityai.platformapis.generation.v1.Tokens tokens = 3; + */ + value: Tokens; + case: "tokens"; + } | { + /** + * @generated from field: stabilityai.platformapis.generation.v1.Artifact artifact = 4; + */ + value: Artifact; + case: "artifact"; + } | { case: undefined; value?: undefined }; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.Prompt"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Prompt; + + static fromJson(jsonValue: JsonValue, options?: Partial): Prompt; + + static fromJsonString(jsonString: string, options?: Partial): Prompt; + + static equals(a: Prompt | PlainMessage | undefined, b: Prompt | PlainMessage | undefined): boolean; +} + +/** + * Parameters that affect the behavior of the sampler, typically used for CFG. + * + * @generated from message stabilityai.platformapis.generation.v1.SamplerParameters + */ +export declare class SamplerParameters extends Message { + /** + * @generated from field: optional float eta = 1; + */ + eta?: number; + + /** + * @generated from field: optional uint64 sampling_steps = 2; + */ + samplingSteps?: bigint; + + /** + * @generated from field: optional uint64 latent_channels = 3; + */ + latentChannels?: bigint; + + /** + * @generated from field: optional uint64 downsampling_factor = 4; + */ + downsamplingFactor?: bigint; + + /** + * @generated from field: optional float cfg_scale = 5; + */ + cfgScale?: number; + + /** + * defaults to 0.99 + * + * @generated from field: optional float init_noise_scale = 6; + */ + initNoiseScale?: number; + + /** + * defaults to 0.99 + * + * @generated from field: optional float step_noise_scale = 7; + */ + stepNoiseScale?: number; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.SamplerParameters"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): SamplerParameters; + + static fromJson(jsonValue: JsonValue, options?: Partial): SamplerParameters; + + static fromJsonString(jsonString: string, options?: Partial): SamplerParameters; + + static equals(a: SamplerParameters | PlainMessage | undefined, b: SamplerParameters | PlainMessage | undefined): boolean; +} + +/** + * Unused, but reserved for future use. Adjustments to the latents after + * initialization. + * + * @generated from message stabilityai.platformapis.generation.v1.ConditionerParameters + */ +export declare class ConditionerParameters extends Message { + /** + * @generated from field: optional string vector_adjust_prior = 1; + */ + vectorAdjustPrior?: string; + + /** + * @generated from field: optional stabilityai.platformapis.generation.v1.Model conditioner = 2; + */ + conditioner?: Model; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.ConditionerParameters"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): ConditionerParameters; + + static fromJson(jsonValue: JsonValue, options?: Partial): ConditionerParameters; + + static fromJsonString(jsonString: string, options?: Partial): ConditionerParameters; + + static equals(a: ConditionerParameters | PlainMessage | undefined, b: ConditionerParameters | PlainMessage | undefined): boolean; +} + +/** + * When does this schedule definition apply? + * + * @generated from message stabilityai.platformapis.generation.v1.ScheduleParameters + */ +export declare class ScheduleParameters extends Message { + /** + * 0.0 to 1.0 + * + * @generated from field: optional float start = 1; + */ + start?: number; + + /** + * 0.0 to 1.0 + * + * @generated from field: optional float end = 2; + */ + end?: number; + + /** + * float value to apply on this schedule + * + * @generated from field: optional float value = 3; + */ + value?: number; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.ScheduleParameters"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): ScheduleParameters; + + static fromJson(jsonValue: JsonValue, options?: Partial): ScheduleParameters; + + static fromJsonString(jsonString: string, options?: Partial): ScheduleParameters; + + static equals(a: ScheduleParameters | PlainMessage | undefined, b: ScheduleParameters | PlainMessage | undefined): boolean; +} + +/** + * Parameters that apply to this block of the schedule. + * + * @generated from message stabilityai.platformapis.generation.v1.StepParameter + */ +export declare class StepParameter extends Message { + /** + * @generated from field: float scaled_step = 1; + */ + scaledStep: number; + + /** + * @generated from field: optional stabilityai.platformapis.generation.v1.SamplerParameters sampler = 2; + */ + sampler?: SamplerParameters; + + /** + * @generated from field: optional stabilityai.platformapis.generation.v1.ScheduleParameters schedule = 3; + */ + schedule?: ScheduleParameters; + + /** + * @generated from field: optional stabilityai.platformapis.generation.v1.GuidanceParameters guidance = 4; + */ + guidance?: GuidanceParameters; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.StepParameter"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): StepParameter; + + static fromJson(jsonValue: JsonValue, options?: Partial): StepParameter; + + static fromJsonString(jsonString: string, options?: Partial): StepParameter; + + static equals(a: StepParameter | PlainMessage | undefined, b: StepParameter | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.generation.v1.Model + */ +export declare class Model extends Message { + /** + * @generated from field: stabilityai.platformapis.generation.v1.ModelArchitecture architecture = 1; + */ + architecture: ModelArchitecture; + + /** + * @generated from field: string publisher = 2; + */ + publisher: string; + + /** + * @generated from field: string dataset = 3; + */ + dataset: string; + + /** + * @generated from field: float version = 4; + */ + version: number; + + /** + * @generated from field: string semantic_version = 5; + */ + semanticVersion: string; + + /** + * @generated from field: string alias = 6; + */ + alias: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.Model"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Model; + + static fromJson(jsonValue: JsonValue, options?: Partial): Model; + + static fromJsonString(jsonString: string, options?: Partial): Model; + + static equals(a: Model | PlainMessage | undefined, b: Model | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.generation.v1.CutoutParameters + */ +export declare class CutoutParameters extends Message { + /** + * Nested cutouts, unsupported + * + * @generated from field: repeated stabilityai.platformapis.generation.v1.CutoutParameters cutouts = 1; + */ + cutouts: CutoutParameters[]; + + /** + * 0 to n, usually 8 to 32, 0 inner + * + * @generated from field: optional uint32 count = 2; + */ + count?: number; + + /** + * 0.0 to 1.0, defaults to 0.2 + * + * @generated from field: optional float gray = 3; + */ + gray?: number; + + /** + * percentage of cutouts to blur + * + * @generated from field: optional float blur = 4; + */ + blur?: number; + + /** + * defaults to inner: 0.5, outer: 0.0 + * + * @generated from field: optional float size_power = 5; + */ + sizePower?: number; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.CutoutParameters"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): CutoutParameters; + + static fromJson(jsonValue: JsonValue, options?: Partial): CutoutParameters; + + static fromJsonString(jsonString: string, options?: Partial): CutoutParameters; + + static equals(a: CutoutParameters | PlainMessage | undefined, b: CutoutParameters | PlainMessage | undefined): boolean; +} + +/** + * GuidanceScheduleParameters are used to define a schedule for CLIP guidance, and + * are used to define the behavior of the guidance over time. They are relative + * to the total number of steps, and are scaled to the number of steps in the + * current run. + * + * @generated from message stabilityai.platformapis.generation.v1.GuidanceScheduleParameters + */ +export declare class GuidanceScheduleParameters extends Message { + /** + * @generated from field: float duration = 1; + */ + duration: number; + + /** + * @generated from field: float value = 2; + */ + value: number; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.GuidanceScheduleParameters"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): GuidanceScheduleParameters; + + static fromJson(jsonValue: JsonValue, options?: Partial): GuidanceScheduleParameters; + + static fromJsonString(jsonString: string, options?: Partial): GuidanceScheduleParameters; + + static equals(a: GuidanceScheduleParameters | PlainMessage | undefined, b: GuidanceScheduleParameters | PlainMessage | undefined): boolean; +} + +/** + * Parameters that affect the behavior of the guidance, typically used for CLIP. + * We can specify more than one model, and the guidance will be a weighted sum + * of the models. + * + * @generated from message stabilityai.platformapis.generation.v1.GuidanceInstanceParameters + */ +export declare class GuidanceInstanceParameters extends Message { + /** + * models to use for this set + * + * @generated from field: repeated stabilityai.platformapis.generation.v1.Model models = 2; + */ + models: Model[]; + + /** + * 0.0 to 1.0, usually 0.05 to 0.225 + * + * @generated from field: optional float guidance_strength = 3; + */ + guidanceStrength?: number; + + /** + * when to apply guidance + * + * @generated from field: repeated stabilityai.platformapis.generation.v1.GuidanceScheduleParameters schedule = 4; + */ + schedule: GuidanceScheduleParameters[]; + + /** + * cutout parameters + * + * @generated from field: optional stabilityai.platformapis.generation.v1.CutoutParameters cutouts = 5; + */ + cutouts?: CutoutParameters; + + /** + * prompt to use for guidance + * + * @generated from field: optional stabilityai.platformapis.generation.v1.Prompt prompt = 6; + */ + prompt?: Prompt; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.GuidanceInstanceParameters"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): GuidanceInstanceParameters; + + static fromJson(jsonValue: JsonValue, options?: Partial): GuidanceInstanceParameters; + + static fromJsonString(jsonString: string, options?: Partial): GuidanceInstanceParameters; + + static equals(a: GuidanceInstanceParameters | PlainMessage | undefined, b: GuidanceInstanceParameters | PlainMessage | undefined): boolean; +} + +/** + * Parameters that affect the behavior of the guidance, typically used for CLIP. + * The omission of this field implies the default guidance of CFG. + * + * @generated from message stabilityai.platformapis.generation.v1.GuidanceParameters + */ +export declare class GuidanceParameters extends Message { + /** + * base preset for guidance + * + * @generated from field: stabilityai.platformapis.generation.v1.GuidancePreset guidance_preset = 1; + */ + guidancePreset: GuidancePreset; + + /** + * guidance instances + * + * @generated from field: repeated stabilityai.platformapis.generation.v1.GuidanceInstanceParameters instances = 2; + */ + instances: GuidanceInstanceParameters[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.GuidanceParameters"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): GuidanceParameters; + + static fromJson(jsonValue: JsonValue, options?: Partial): GuidanceParameters; + + static fromJsonString(jsonString: string, options?: Partial): GuidanceParameters; + + static equals(a: GuidanceParameters | PlainMessage | undefined, b: GuidanceParameters | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.generation.v1.TransformType + */ +export declare class TransformType extends Message { + /** + * @generated from oneof stabilityai.platformapis.generation.v1.TransformType.type + */ + type: { + /** + * @generated from field: stabilityai.platformapis.generation.v1.DiffusionSampler diffusion = 1; + */ + value: DiffusionSampler; + case: "diffusion"; + } | { + /** + * @generated from field: stabilityai.platformapis.generation.v1.Upscaler upscaler = 2; + */ + value: Upscaler; + case: "upscaler"; + } | { case: undefined; value?: undefined }; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.TransformType"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): TransformType; + + static fromJson(jsonValue: JsonValue, options?: Partial): TransformType; + + static fromJsonString(jsonString: string, options?: Partial): TransformType; + + static equals(a: TransformType | PlainMessage | undefined, b: TransformType | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.generation.v1.ImageParameters + */ +export declare class ImageParameters extends Message { + /** + * @generated from field: optional uint64 height = 1; + */ + height?: bigint; + + /** + * @generated from field: optional uint64 width = 2; + */ + width?: bigint; + + /** + * @generated from field: repeated uint32 seed = 3; + */ + seed: number[]; + + /** + * @generated from field: optional uint64 samples = 4; + */ + samples?: bigint; + + /** + * @generated from field: optional uint64 steps = 5; + */ + steps?: bigint; + + /** + * @generated from field: optional stabilityai.platformapis.generation.v1.TransformType transform = 6; + */ + transform?: TransformType; + + /** + * @generated from field: repeated stabilityai.platformapis.generation.v1.StepParameter parameters = 7; + */ + parameters: StepParameter[]; + + /** + * defaults to MASKED_AREA_INIT_ZERO + * + * @generated from field: optional stabilityai.platformapis.generation.v1.MaskedAreaInit masked_area_init = 8; + */ + maskedAreaInit?: MaskedAreaInit; + + /** + * defaults to TEXT_ENCODER + * + * @generated from field: optional stabilityai.platformapis.generation.v1.WeightMethod weight_method = 9; + */ + weightMethod?: WeightMethod; + + /** + * defaults to true + * + * @generated from field: optional bool quantize = 10; + */ + quantize?: boolean; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.ImageParameters"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): ImageParameters; + + static fromJson(jsonValue: JsonValue, options?: Partial): ImageParameters; + + static fromJsonString(jsonString: string, options?: Partial): ImageParameters; + + static equals(a: ImageParameters | PlainMessage | undefined, b: ImageParameters | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.generation.v1.ClassifierConcept + */ +export declare class ClassifierConcept extends Message { + /** + * @generated from field: string concept = 1; + */ + concept: string; + + /** + * @generated from field: optional float threshold = 2; + */ + threshold?: number; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.ClassifierConcept"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): ClassifierConcept; + + static fromJson(jsonValue: JsonValue, options?: Partial): ClassifierConcept; + + static fromJsonString(jsonString: string, options?: Partial): ClassifierConcept; + + static equals(a: ClassifierConcept | PlainMessage | undefined, b: ClassifierConcept | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.generation.v1.ClassifierCategory + */ +export declare class ClassifierCategory extends Message { + /** + * @generated from field: string name = 1; + */ + name: string; + + /** + * @generated from field: repeated stabilityai.platformapis.generation.v1.ClassifierConcept concepts = 2; + */ + concepts: ClassifierConcept[]; + + /** + * @generated from field: optional float adjustment = 3; + */ + adjustment?: number; + + /** + * @generated from field: optional stabilityai.platformapis.generation.v1.Action action = 4; + */ + action?: Action; + + /** + * @generated from field: optional stabilityai.platformapis.generation.v1.ClassifierMode classifier_mode = 5; + */ + classifierMode?: ClassifierMode; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.ClassifierCategory"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): ClassifierCategory; + + static fromJson(jsonValue: JsonValue, options?: Partial): ClassifierCategory; + + static fromJsonString(jsonString: string, options?: Partial): ClassifierCategory; + + static equals(a: ClassifierCategory | PlainMessage | undefined, b: ClassifierCategory | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.generation.v1.ClassifierParameters + */ +export declare class ClassifierParameters extends Message { + /** + * @generated from field: repeated stabilityai.platformapis.generation.v1.ClassifierCategory categories = 1; + */ + categories: ClassifierCategory[]; + + /** + * @generated from field: repeated stabilityai.platformapis.generation.v1.ClassifierCategory exceeds = 2; + */ + exceeds: ClassifierCategory[]; + + /** + * @generated from field: optional stabilityai.platformapis.generation.v1.Action realized_action = 3; + */ + realizedAction?: Action; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.ClassifierParameters"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): ClassifierParameters; + + static fromJson(jsonValue: JsonValue, options?: Partial): ClassifierParameters; + + static fromJsonString(jsonString: string, options?: Partial): ClassifierParameters; + + static equals(a: ClassifierParameters | PlainMessage | undefined, b: ClassifierParameters | PlainMessage | undefined): boolean; +} + +/** + * Interpolation between two images applied at specified blend ratios + * + * @generated from message stabilityai.platformapis.generation.v1.InterpolateParameters + */ +export declare class InterpolateParameters extends Message { + /** + * @generated from field: repeated float ratios = 1; + */ + ratios: number[]; + + /** + * @generated from field: optional stabilityai.platformapis.generation.v1.InterpolateMode mode = 2; + */ + mode?: InterpolateMode; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.InterpolateParameters"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): InterpolateParameters; + + static fromJson(jsonValue: JsonValue, options?: Partial): InterpolateParameters; + + static fromJsonString(jsonString: string, options?: Partial): InterpolateParameters; + + static equals(a: InterpolateParameters | PlainMessage | undefined, b: InterpolateParameters | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.generation.v1.TransformColorAdjust + */ +export declare class TransformColorAdjust extends Message { + /** + * scale pixel intensities, 1.0 is no change + * + * @generated from field: optional float brightness = 1; + */ + brightness?: number; + + /** + * contrast adjustment, 1.0 is no change + * + * @generated from field: optional float contrast = 2; + */ + contrast?: number; + + /** + * -180 to 180 hue adjustment, 0.0 is no change + * + * @generated from field: optional float hue = 3; + */ + hue?: number; + + /** + * 0.0 to 2.0 saturation scale, 1.0 is no change + * + * @generated from field: optional float saturation = 4; + */ + saturation?: number; + + /** + * -1.0 to 1.0 lightness adjustment, 0.0 is no change + * + * @generated from field: optional float lightness = 5; + */ + lightness?: number; + + /** + * image to color match + * + * @generated from field: optional stabilityai.platformapis.generation.v1.Artifact match_image = 6; + */ + matchImage?: Artifact; + + /** + * color match mode to use + * + * @generated from field: optional stabilityai.platformapis.generation.v1.ColorMatchMode match_mode = 7; + */ + matchMode?: ColorMatchMode; + + /** + * amount of gaussian noise to add + * + * @generated from field: optional float noise_amount = 8; + */ + noiseAmount?: number; + + /** + * random seed for noise + * + * @generated from field: optional uint32 noise_seed = 9; + */ + noiseSeed?: number; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.TransformColorAdjust"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): TransformColorAdjust; + + static fromJson(jsonValue: JsonValue, options?: Partial): TransformColorAdjust; + + static fromJsonString(jsonString: string, options?: Partial): TransformColorAdjust; + + static equals(a: TransformColorAdjust | PlainMessage | undefined, b: TransformColorAdjust | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.generation.v1.TransformDepthCalc + */ +export declare class TransformDepthCalc extends Message { + /** + * blend factor between AdaBins (0.0) and MiDaS (1.0) + * + * @generated from field: optional float blend_weight = 1; + */ + blendWeight?: number; + + /** + * defaults to 0.0 + * + * @generated from field: optional uint32 blur_radius = 2; + */ + blurRadius?: number; + + /** + * make near depths have higher values + * + * @generated from field: optional bool reverse = 3; + */ + reverse?: boolean; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.TransformDepthCalc"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): TransformDepthCalc; + + static fromJson(jsonValue: JsonValue, options?: Partial): TransformDepthCalc; + + static fromJsonString(jsonString: string, options?: Partial): TransformDepthCalc; + + static equals(a: TransformDepthCalc | PlainMessage | undefined, b: TransformDepthCalc | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.generation.v1.TransformMatrix + */ +export declare class TransformMatrix extends Message { + /** + * Column-major 3x3 or 4x4 perspective matrix + * [sx, 10, 20, tx] [x] + * [01, sy, 21, ty] . [y] + * [02, 12, sz, tz] [z] + * [03, 13, 23, 33] [1] + * + * @generated from field: repeated float data = 1 [packed = true]; + */ + data: number[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.TransformMatrix"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): TransformMatrix; + + static fromJson(jsonValue: JsonValue, options?: Partial): TransformMatrix; + + static fromJsonString(jsonString: string, options?: Partial): TransformMatrix; + + static equals(a: TransformMatrix | PlainMessage | undefined, b: TransformMatrix | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.generation.v1.TransformResample + */ +export declare class TransformResample extends Message { + /** + * extrapolation of border pixels + * + * @generated from field: stabilityai.platformapis.generation.v1.BorderMode border_mode = 1; + */ + borderMode: BorderMode; + + /** + * 3x3 or 4x4 matrix + * + * @generated from field: stabilityai.platformapis.generation.v1.TransformMatrix transform = 2; + */ + transform?: TransformMatrix; + + /** + * 3x3 or 4x4 matrix, defaults to identity + * + * @generated from field: optional stabilityai.platformapis.generation.v1.TransformMatrix prev_transform = 3; + */ + prevTransform?: TransformMatrix; + + /** + * depth warp factor, defaults to 1.0 + * + * @generated from field: optional float depth_warp = 4; + */ + depthWarp?: number; + + /** + * return inpaint mask + * + * @generated from field: optional bool export_mask = 5; + */ + exportMask?: boolean; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.TransformResample"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): TransformResample; + + static fromJson(jsonValue: JsonValue, options?: Partial): TransformResample; + + static fromJsonString(jsonString: string, options?: Partial): TransformResample; + + static equals(a: TransformResample | PlainMessage | undefined, b: TransformResample | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.generation.v1.CameraParameters + */ +export declare class CameraParameters extends Message { + /** + * @generated from field: stabilityai.platformapis.generation.v1.CameraType camera_type = 1; + */ + cameraType: CameraType; + + /** + * Nearest plane depth of a rendered frustum + * + * @generated from field: float near_plane = 2; + */ + nearPlane: number; + + /** + * Farthest plane depth of a rendered frustum + * + * @generated from field: float far_plane = 3; + */ + farPlane: number; + + /** + * Camera field of view (in degrees). Must be set for CAMERA_PERSPECTIVE type. + * + * @generated from field: optional float fov = 4; + */ + fov?: number; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.CameraParameters"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): CameraParameters; + + static fromJson(jsonValue: JsonValue, options?: Partial): CameraParameters; + + static fromJsonString(jsonString: string, options?: Partial): CameraParameters; + + static equals(a: CameraParameters | PlainMessage | undefined, b: CameraParameters | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.generation.v1.TransformCameraPose + */ +export declare class TransformCameraPose extends Message { + /** + * 4x4 transform matrix for the next frame + * + * @generated from field: stabilityai.platformapis.generation.v1.TransformMatrix world_to_view_matrix = 1; + */ + worldToViewMatrix?: TransformMatrix; + + /** + * @generated from field: stabilityai.platformapis.generation.v1.CameraParameters camera_parameters = 2; + */ + cameraParameters?: CameraParameters; + + /** + * Prefill masked areas with values matching the colors around the area + * + * @generated from field: bool do_prefill = 5; + */ + doPrefill: boolean; + + /** + * Both image and mask will be rendered using this method. + * + * @generated from field: stabilityai.platformapis.generation.v1.RenderMode render_mode = 8; + */ + renderMode: RenderMode; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.TransformCameraPose"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): TransformCameraPose; + + static fromJson(jsonValue: JsonValue, options?: Partial): TransformCameraPose; + + static fromJsonString(jsonString: string, options?: Partial): TransformCameraPose; + + static equals(a: TransformCameraPose | PlainMessage | undefined, b: TransformCameraPose | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.generation.v1.TransformParameters + */ +export declare class TransformParameters extends Message { + /** + * @generated from oneof stabilityai.platformapis.generation.v1.TransformParameters.transform + */ + transform: { + /** + * @generated from field: stabilityai.platformapis.generation.v1.TransformColorAdjust color_adjust = 2; + */ + value: TransformColorAdjust; + case: "colorAdjust"; + } | { + /** + * @generated from field: stabilityai.platformapis.generation.v1.TransformDepthCalc depth_calc = 4; + */ + value: TransformDepthCalc; + case: "depthCalc"; + } | { + /** + * @generated from field: stabilityai.platformapis.generation.v1.TransformResample resample = 5; + */ + value: TransformResample; + case: "resample"; + } | { + /** + * @generated from field: stabilityai.platformapis.generation.v1.TransformCameraPose camera_pose = 6; + */ + value: TransformCameraPose; + case: "cameraPose"; + } | { case: undefined; value?: undefined }; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.TransformParameters"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): TransformParameters; + + static fromJson(jsonValue: JsonValue, options?: Partial): TransformParameters; + + static fromJsonString(jsonString: string, options?: Partial): TransformParameters; + + static equals(a: TransformParameters | PlainMessage | undefined, b: TransformParameters | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.generation.v1.AssetParameters + */ +export declare class AssetParameters extends Message { + /** + * @generated from field: stabilityai.platformapis.generation.v1.AssetAction action = 1; + */ + action: AssetAction; + + /** + * @generated from field: string project_id = 2; + */ + projectId: string; + + /** + * @generated from field: stabilityai.platformapis.generation.v1.AssetUse use = 3; + */ + use: AssetUse; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.AssetParameters"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): AssetParameters; + + static fromJson(jsonValue: JsonValue, options?: Partial): AssetParameters; + + static fromJsonString(jsonString: string, options?: Partial): AssetParameters; + + static equals(a: AssetParameters | PlainMessage | undefined, b: AssetParameters | PlainMessage | undefined): boolean; +} + +/** + * AnswerMeta is a set of metadata about an answer, usually the operating + * environment. + * + * @generated from message stabilityai.platformapis.generation.v1.AnswerMeta + */ +export declare class AnswerMeta extends Message { + /** + * @generated from field: optional string gpu_id = 1; + */ + gpuId?: string; + + /** + * @generated from field: optional string cpu_id = 2; + */ + cpuId?: string; + + /** + * @generated from field: optional string node_id = 3; + */ + nodeId?: string; + + /** + * @generated from field: optional string engine_id = 4; + */ + engineId?: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.AnswerMeta"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): AnswerMeta; + + static fromJson(jsonValue: JsonValue, options?: Partial): AnswerMeta; + + static fromJsonString(jsonString: string, options?: Partial): AnswerMeta; + + static equals(a: AnswerMeta | PlainMessage | undefined, b: AnswerMeta | PlainMessage | undefined): boolean; +} + +/** + * An Answer is a response to a Request. It is a set of Artifacts, which can be + * of any type and forwarded to the client or the next stage. + * + * @generated from message stabilityai.platformapis.generation.v1.Answer + */ +export declare class Answer extends Message { + /** + * @generated from field: string answer_id = 1; + */ + answerId: string; + + /** + * @generated from field: string request_id = 2; + */ + requestId: string; + + /** + * @generated from field: uint64 received = 3; + */ + received: bigint; + + /** + * @generated from field: uint64 created = 4; + */ + created: bigint; + + /** + * @generated from field: optional stabilityai.platformapis.generation.v1.AnswerMeta meta = 6; + */ + meta?: AnswerMeta; + + /** + * @generated from field: repeated stabilityai.platformapis.generation.v1.Artifact artifacts = 7; + */ + artifacts: Artifact[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.Answer"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Answer; + + static fromJson(jsonValue: JsonValue, options?: Partial): Answer; + + static fromJsonString(jsonString: string, options?: Partial): Answer; + + static equals(a: Answer | PlainMessage | undefined, b: Answer | PlainMessage | undefined): boolean; +} + +/** + * An AnswerBatch is a set of Answers. It can represent one or several completed + * requests, which may be sent to the client in a single response. + * + * @generated from message stabilityai.platformapis.generation.v1.AnswerBatch + */ +export declare class AnswerBatch extends Message { + /** + * @generated from field: string batch_id = 1; + */ + batchId: string; + + /** + * @generated from field: repeated stabilityai.platformapis.generation.v1.Answer answers = 2; + */ + answers: Answer[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.AnswerBatch"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): AnswerBatch; + + static fromJson(jsonValue: JsonValue, options?: Partial): AnswerBatch; + + static fromJsonString(jsonString: string, options?: Partial): AnswerBatch; + + static equals(a: AnswerBatch | PlainMessage | undefined, b: AnswerBatch | PlainMessage | undefined): boolean; +} + +/** + * A Request is a set of Artifacts, which can be of any type with model or + * transform parameters. It is sent to the server, which will respond with an + * Answer. + * + * @generated from message stabilityai.platformapis.generation.v1.Request + */ +export declare class Request extends Message { + /** + * @generated from field: string engine_id = 1; + */ + engineId: string; + + /** + * @generated from field: string request_id = 2; + */ + requestId: string; + + /** + * @generated from field: stabilityai.platformapis.generation.v1.ArtifactType requested_type = 3; + */ + requestedType: ArtifactType; + + /** + * @generated from field: repeated stabilityai.platformapis.generation.v1.Prompt prompt = 4; + */ + prompt: Prompt[]; + + /** + * @generated from oneof stabilityai.platformapis.generation.v1.Request.params + */ + params: { + /** + * @generated from field: stabilityai.platformapis.generation.v1.ImageParameters image = 5; + */ + value: ImageParameters; + case: "image"; + } | { + /** + * @generated from field: stabilityai.platformapis.generation.v1.ClassifierParameters classifier = 7; + */ + value: ClassifierParameters; + case: "classifier"; + } | { + /** + * @generated from field: stabilityai.platformapis.generation.v1.AssetParameters asset = 8; + */ + value: AssetParameters; + case: "asset"; + } | { + /** + * @generated from field: stabilityai.platformapis.generation.v1.InterpolateParameters interpolate = 11; + */ + value: InterpolateParameters; + case: "interpolate"; + } | { + /** + * @generated from field: stabilityai.platformapis.generation.v1.TransformParameters transform = 12; + */ + value: TransformParameters; + case: "transform"; + } | { case: undefined; value?: undefined }; + + /** + * @generated from field: optional stabilityai.platformapis.generation.v1.ConditionerParameters conditioner = 6; + */ + conditioner?: ConditionerParameters; + + /** + * for development use + * + * @generated from field: optional google.protobuf.Struct extras = 2047; + */ + extras?: Struct; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.Request"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Request; + + static fromJson(jsonValue: JsonValue, options?: Partial): Request; + + static fromJsonString(jsonString: string, options?: Partial): Request; + + static equals(a: Request | PlainMessage | undefined, b: Request | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.generation.v1.OnStatus + */ +export declare class OnStatus extends Message { + /** + * @generated from field: repeated stabilityai.platformapis.generation.v1.FinishReason reason = 1; + */ + reason: FinishReason[]; + + /** + * @generated from field: optional string target = 2; + */ + target?: string; + + /** + * @generated from field: repeated stabilityai.platformapis.generation.v1.StageAction action = 3; + */ + action: StageAction[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.OnStatus"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): OnStatus; + + static fromJson(jsonValue: JsonValue, options?: Partial): OnStatus; + + static fromJsonString(jsonString: string, options?: Partial): OnStatus; + + static equals(a: OnStatus | PlainMessage | undefined, b: OnStatus | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.generation.v1.Stage + */ +export declare class Stage extends Message { + /** + * @generated from field: string id = 1; + */ + id: string; + + /** + * @generated from field: stabilityai.platformapis.generation.v1.Request request = 2; + */ + request?: Request; + + /** + * @generated from field: repeated stabilityai.platformapis.generation.v1.OnStatus on_status = 3; + */ + onStatus: OnStatus[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.Stage"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Stage; + + static fromJson(jsonValue: JsonValue, options?: Partial): Stage; + + static fromJsonString(jsonString: string, options?: Partial): Stage; + + static equals(a: Stage | PlainMessage | undefined, b: Stage | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.generation.v1.ChainRequest + */ +export declare class ChainRequest extends Message { + /** + * @generated from field: string request_id = 1; + */ + requestId: string; + + /** + * @generated from field: repeated stabilityai.platformapis.generation.v1.Stage stage = 2; + */ + stage: Stage[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.ChainRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): ChainRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): ChainRequest; + + static fromJsonString(jsonString: string, options?: Partial): ChainRequest; + + static equals(a: ChainRequest | PlainMessage | undefined, b: ChainRequest | PlainMessage | undefined): boolean; +} + diff --git a/gen/proto/js/stabilityai/platformapis/generation/v1/generation_pb.js b/gen/proto/js/stabilityai/platformapis/generation/v1/generation_pb.js new file mode 100644 index 0000000..5cdc7e0 --- /dev/null +++ b/gen/proto/js/stabilityai/platformapis/generation/v1/generation_pb.js @@ -0,0 +1,778 @@ +// @generated by protoc-gen-es v1.2.0 +// @generated from file stabilityai/platformapis/generation/v1/generation.proto (package stabilityai.platformapis.generation.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3, Struct } from "@bufbuild/protobuf"; +import { Tensor } from "../../../../coreweave/tensors/tensors_pb.js"; + +/** + * @generated from enum stabilityai.platformapis.generation.v1.FinishReason + */ +export const FinishReason = proto3.makeEnum( + "stabilityai.platformapis.generation.v1.FinishReason", + [ + {no: 0, name: "NULL"}, + {no: 1, name: "LENGTH"}, + {no: 2, name: "STOP"}, + {no: 3, name: "ERROR"}, + {no: 4, name: "FILTER"}, + ], +); + +/** + * @generated from enum stabilityai.platformapis.generation.v1.ArtifactType + */ +export const ArtifactType = proto3.makeEnum( + "stabilityai.platformapis.generation.v1.ArtifactType", + [ + {no: 0, name: "ARTIFACT_NONE"}, + {no: 1, name: "ARTIFACT_IMAGE"}, + {no: 2, name: "ARTIFACT_VIDEO"}, + {no: 3, name: "ARTIFACT_TEXT"}, + {no: 4, name: "ARTIFACT_TOKENS"}, + {no: 5, name: "ARTIFACT_EMBEDDING"}, + {no: 6, name: "ARTIFACT_CLASSIFICATIONS"}, + {no: 7, name: "ARTIFACT_MASK"}, + {no: 8, name: "ARTIFACT_LATENT"}, + {no: 9, name: "ARTIFACT_TENSOR"}, + {no: 10, name: "ARTIFACT_DEPTH"}, + ], +); + +/** + * @generated from enum stabilityai.platformapis.generation.v1.MaskedAreaInit + */ +export const MaskedAreaInit = proto3.makeEnum( + "stabilityai.platformapis.generation.v1.MaskedAreaInit", + [ + {no: 0, name: "MASKED_AREA_INIT_ZERO", localName: "ZERO"}, + {no: 1, name: "MASKED_AREA_INIT_RANDOM", localName: "RANDOM"}, + {no: 2, name: "MASKED_AREA_INIT_ORIGINAL", localName: "ORIGINAL"}, + ], +); + +/** + * @generated from enum stabilityai.platformapis.generation.v1.WeightMethod + */ +export const WeightMethod = proto3.makeEnum( + "stabilityai.platformapis.generation.v1.WeightMethod", + [ + {no: 0, name: "TEXT_ENCODER"}, + {no: 1, name: "CROSS_ATTENTION"}, + ], +); + +/** + * DiffusionSampler identifies which sampler to use for Diffusion, and represents + * the internal set of supported samplers. + * + * @generated from enum stabilityai.platformapis.generation.v1.DiffusionSampler + */ +export const DiffusionSampler = proto3.makeEnum( + "stabilityai.platformapis.generation.v1.DiffusionSampler", + [ + {no: 0, name: "SAMPLER_DDIM"}, + {no: 1, name: "SAMPLER_DDPM"}, + {no: 2, name: "SAMPLER_K_EULER"}, + {no: 3, name: "SAMPLER_K_EULER_ANCESTRAL"}, + {no: 4, name: "SAMPLER_K_HEUN"}, + {no: 5, name: "SAMPLER_K_DPM_2"}, + {no: 6, name: "SAMPLER_K_DPM_2_ANCESTRAL"}, + {no: 7, name: "SAMPLER_K_LMS"}, + {no: 8, name: "SAMPLER_K_DPMPP_2S_ANCESTRAL"}, + {no: 9, name: "SAMPLER_K_DPMPP_2M"}, + {no: 10, name: "SAMPLER_K_DPMPP_SDE"}, + ], +); + +/** + * Future, unimplemented. + * + * @generated from enum stabilityai.platformapis.generation.v1.Upscaler + */ +export const Upscaler = proto3.makeEnum( + "stabilityai.platformapis.generation.v1.Upscaler", + [ + {no: 0, name: "UPSCALER_RGB", localName: "RGB"}, + {no: 1, name: "UPSCALER_GFPGAN", localName: "GFPGAN"}, + {no: 2, name: "UPSCALER_ESRGAN", localName: "ESRGAN"}, + ], +); + +/** + * Presets for CLIP guidance. + * + * @generated from enum stabilityai.platformapis.generation.v1.GuidancePreset + */ +export const GuidancePreset = proto3.makeEnum( + "stabilityai.platformapis.generation.v1.GuidancePreset", + [ + {no: 0, name: "GUIDANCE_PRESET_NONE", localName: "NONE"}, + {no: 1, name: "GUIDANCE_PRESET_SIMPLE", localName: "SIMPLE"}, + {no: 2, name: "GUIDANCE_PRESET_FAST_BLUE", localName: "FAST_BLUE"}, + {no: 3, name: "GUIDANCE_PRESET_FAST_GREEN", localName: "FAST_GREEN"}, + {no: 4, name: "GUIDANCE_PRESET_SLOW", localName: "SLOW"}, + {no: 5, name: "GUIDANCE_PRESET_SLOWER", localName: "SLOWER"}, + {no: 6, name: "GUIDANCE_PRESET_SLOWEST", localName: "SLOWEST"}, + ], +); + +/** + * @generated from enum stabilityai.platformapis.generation.v1.ModelArchitecture + */ +export const ModelArchitecture = proto3.makeEnum( + "stabilityai.platformapis.generation.v1.ModelArchitecture", + [ + {no: 0, name: "MODEL_ARCHITECTURE_NONE", localName: "NONE"}, + {no: 1, name: "MODEL_ARCHITECTURE_CLIP_VIT", localName: "CLIP_VIT"}, + {no: 2, name: "MODEL_ARCHITECTURE_CLIP_RESNET", localName: "CLIP_RESNET"}, + {no: 3, name: "MODEL_ARCHITECTURE_LDM", localName: "LDM"}, + ], +); + +/** + * @generated from enum stabilityai.platformapis.generation.v1.Action + */ +export const Action = proto3.makeEnum( + "stabilityai.platformapis.generation.v1.Action", + [ + {no: 0, name: "ACTION_PASSTHROUGH", localName: "PASSTHROUGH"}, + {no: 1, name: "ACTION_REGENERATE_DUPLICATE", localName: "REGENERATE_DUPLICATE"}, + {no: 2, name: "ACTION_REGENERATE", localName: "REGENERATE"}, + {no: 3, name: "ACTION_OBFUSCATE_DUPLICATE", localName: "OBFUSCATE_DUPLICATE"}, + {no: 4, name: "ACTION_OBFUSCATE", localName: "OBFUSCATE"}, + {no: 5, name: "ACTION_DISCARD", localName: "DISCARD"}, + ], +); + +/** + * @generated from enum stabilityai.platformapis.generation.v1.ClassifierMode + */ +export const ClassifierMode = proto3.makeEnum( + "stabilityai.platformapis.generation.v1.ClassifierMode", + [ + {no: 0, name: "CLSFR_MODE_ZEROSHOT"}, + {no: 1, name: "CLSFR_MODE_MULTICLASS"}, + ], +); + +/** + * @generated from enum stabilityai.platformapis.generation.v1.InterpolateMode + */ +export const InterpolateMode = proto3.makeEnum( + "stabilityai.platformapis.generation.v1.InterpolateMode", + [ + {no: 0, name: "INTERPOLATE_LINEAR"}, + {no: 1, name: "INTERPOLATE_RIFE"}, + {no: 2, name: "INTERPOLATE_VAE_LINEAR"}, + {no: 3, name: "INTERPOLATE_VAE_SLERP"}, + {no: 4, name: "INTERPOLATE_FILM"}, + ], +); + +/** + * @generated from enum stabilityai.platformapis.generation.v1.BorderMode + */ +export const BorderMode = proto3.makeEnum( + "stabilityai.platformapis.generation.v1.BorderMode", + [ + {no: 0, name: "BORDER_REFLECT"}, + {no: 1, name: "BORDER_REPLICATE"}, + {no: 2, name: "BORDER_WRAP"}, + {no: 3, name: "BORDER_ZERO"}, + {no: 4, name: "BORDER_PREFILL"}, + ], +); + +/** + * @generated from enum stabilityai.platformapis.generation.v1.ColorMatchMode + */ +export const ColorMatchMode = proto3.makeEnum( + "stabilityai.platformapis.generation.v1.ColorMatchMode", + [ + {no: 0, name: "COLOR_MATCH_HSV"}, + {no: 1, name: "COLOR_MATCH_LAB"}, + {no: 2, name: "COLOR_MATCH_RGB"}, + ], +); + +/** + * @generated from enum stabilityai.platformapis.generation.v1.CameraType + */ +export const CameraType = proto3.makeEnum( + "stabilityai.platformapis.generation.v1.CameraType", + [ + {no: 0, name: "CAMERA_PERSPECTIVE"}, + {no: 1, name: "CAMERA_ORTHOGRAPHIC"}, + ], +); + +/** + * @generated from enum stabilityai.platformapis.generation.v1.RenderMode + */ +export const RenderMode = proto3.makeEnum( + "stabilityai.platformapis.generation.v1.RenderMode", + [ + {no: 0, name: "RENDER_MESH"}, + {no: 1, name: "RENDER_POINTCLOUD"}, + ], +); + +/** + * @generated from enum stabilityai.platformapis.generation.v1.AssetAction + */ +export const AssetAction = proto3.makeEnum( + "stabilityai.platformapis.generation.v1.AssetAction", + [ + {no: 0, name: "ASSET_PUT"}, + {no: 1, name: "ASSET_GET"}, + {no: 2, name: "ASSET_DELETE"}, + ], +); + +/** + * AssetUse defines how the asset is used within a project. This enum matches + * the values the project proto. + * + * @generated from enum stabilityai.platformapis.generation.v1.AssetUse + */ +export const AssetUse = proto3.makeEnum( + "stabilityai.platformapis.generation.v1.AssetUse", + [ + {no: 0, name: "ASSET_USE_UNDEFINED", localName: "UNDEFINED"}, + {no: 1, name: "ASSET_USE_INPUT", localName: "INPUT"}, + {no: 2, name: "ASSET_USE_OUTPUT", localName: "OUTPUT"}, + {no: 3, name: "ASSET_USE_INTERMEDIATE", localName: "INTERMEDIATE"}, + {no: 4, name: "ASSET_USE_PROJECT", localName: "PROJECT"}, + ], +); + +/** + * @generated from enum stabilityai.platformapis.generation.v1.StageAction + */ +export const StageAction = proto3.makeEnum( + "stabilityai.platformapis.generation.v1.StageAction", + [ + {no: 0, name: "STAGE_ACTION_PASS", localName: "PASS"}, + {no: 1, name: "STAGE_ACTION_DISCARD", localName: "DISCARD"}, + {no: 2, name: "STAGE_ACTION_RETURN", localName: "RETURN"}, + ], +); + +/** + * Generally, a GPT BPE 16-bit token, paired with an optional string representation. + * + * @generated from message stabilityai.platformapis.generation.v1.Token + */ +export const Token = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.Token", + () => [ + { no: 1, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 2, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ], +); + +/** + * Sequence of tokens, paired with the id of the tokenizer used to generate them. + * + * @generated from message stabilityai.platformapis.generation.v1.Tokens + */ +export const Tokens = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.Tokens", + () => [ + { no: 1, name: "tokens", kind: "message", T: Token, repeated: true }, + { no: 2, name: "tokenizer_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + ], +); + +/** + * A tangible Artifact, such as an image, video, or text that is used for input + * or output. + * + * @generated from message stabilityai.platformapis.generation.v1.Artifact + */ +export const Artifact = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.Artifact", + () => [ + { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "type", kind: "enum", T: proto3.getEnumType(ArtifactType) }, + { no: 3, name: "mime", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "magic", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 5, name: "binary", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "data" }, + { no: 6, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "data" }, + { no: 7, name: "tokens", kind: "message", T: Tokens, oneof: "data" }, + { no: 11, name: "classifier", kind: "message", T: ClassifierParameters, oneof: "data" }, + { no: 14, name: "tensor", kind: "message", T: Tensor, oneof: "data" }, + { no: 8, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 9, name: "finish_reason", kind: "enum", T: proto3.getEnumType(FinishReason) }, + { no: 10, name: "seed", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 12, name: "uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "size", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ], +); + +/** + * A set of parameters for each individual Prompt. + * + * @generated from message stabilityai.platformapis.generation.v1.PromptParameters + */ +export const PromptParameters = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.PromptParameters", + () => [ + { no: 1, name: "init", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, + { no: 2, name: "weight", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, + ], +); + +/** + * A Prompt is a special type of Artifact that is used to generate an output. + * There can be multiple Prompts that affect the same output. Currently, the + * only Prompts supported are: + * - Text (singular) + * - Init Image (singular, optional, type ARTIFACT_IMAGE) + * - Mask (singular, optional, type ARTIFACT_MASK) + * - Depth (singular, optional, type ARTIFACT_DEPTH) + * + * @generated from message stabilityai.platformapis.generation.v1.Prompt + */ +export const Prompt = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.Prompt", + () => [ + { no: 1, name: "parameters", kind: "message", T: PromptParameters, opt: true }, + { no: 2, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "prompt" }, + { no: 3, name: "tokens", kind: "message", T: Tokens, oneof: "prompt" }, + { no: 4, name: "artifact", kind: "message", T: Artifact, oneof: "prompt" }, + ], +); + +/** + * Parameters that affect the behavior of the sampler, typically used for CFG. + * + * @generated from message stabilityai.platformapis.generation.v1.SamplerParameters + */ +export const SamplerParameters = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.SamplerParameters", + () => [ + { no: 1, name: "eta", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, + { no: 2, name: "sampling_steps", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true }, + { no: 3, name: "latent_channels", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true }, + { no: 4, name: "downsampling_factor", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true }, + { no: 5, name: "cfg_scale", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, + { no: 6, name: "init_noise_scale", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, + { no: 7, name: "step_noise_scale", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, + ], +); + +/** + * Unused, but reserved for future use. Adjustments to the latents after + * initialization. + * + * @generated from message stabilityai.platformapis.generation.v1.ConditionerParameters + */ +export const ConditionerParameters = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.ConditionerParameters", + () => [ + { no: 1, name: "vector_adjust_prior", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 2, name: "conditioner", kind: "message", T: Model, opt: true }, + ], +); + +/** + * When does this schedule definition apply? + * + * @generated from message stabilityai.platformapis.generation.v1.ScheduleParameters + */ +export const ScheduleParameters = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.ScheduleParameters", + () => [ + { no: 1, name: "start", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, + { no: 2, name: "end", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, + { no: 3, name: "value", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, + ], +); + +/** + * Parameters that apply to this block of the schedule. + * + * @generated from message stabilityai.platformapis.generation.v1.StepParameter + */ +export const StepParameter = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.StepParameter", + () => [ + { no: 1, name: "scaled_step", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, + { no: 2, name: "sampler", kind: "message", T: SamplerParameters, opt: true }, + { no: 3, name: "schedule", kind: "message", T: ScheduleParameters, opt: true }, + { no: 4, name: "guidance", kind: "message", T: GuidanceParameters, opt: true }, + ], +); + +/** + * @generated from message stabilityai.platformapis.generation.v1.Model + */ +export const Model = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.Model", + () => [ + { no: 1, name: "architecture", kind: "enum", T: proto3.getEnumType(ModelArchitecture) }, + { no: 2, name: "publisher", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "dataset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "version", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, + { no: 5, name: "semantic_version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "alias", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message stabilityai.platformapis.generation.v1.CutoutParameters + */ +export const CutoutParameters = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.CutoutParameters", + () => [ + { no: 1, name: "cutouts", kind: "message", T: CutoutParameters, repeated: true }, + { no: 2, name: "count", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, + { no: 3, name: "gray", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, + { no: 4, name: "blur", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, + { no: 5, name: "size_power", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, + ], +); + +/** + * GuidanceScheduleParameters are used to define a schedule for CLIP guidance, and + * are used to define the behavior of the guidance over time. They are relative + * to the total number of steps, and are scaled to the number of steps in the + * current run. + * + * @generated from message stabilityai.platformapis.generation.v1.GuidanceScheduleParameters + */ +export const GuidanceScheduleParameters = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.GuidanceScheduleParameters", + () => [ + { no: 1, name: "duration", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, + { no: 2, name: "value", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, + ], +); + +/** + * Parameters that affect the behavior of the guidance, typically used for CLIP. + * We can specify more than one model, and the guidance will be a weighted sum + * of the models. + * + * @generated from message stabilityai.platformapis.generation.v1.GuidanceInstanceParameters + */ +export const GuidanceInstanceParameters = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.GuidanceInstanceParameters", + () => [ + { no: 2, name: "models", kind: "message", T: Model, repeated: true }, + { no: 3, name: "guidance_strength", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, + { no: 4, name: "schedule", kind: "message", T: GuidanceScheduleParameters, repeated: true }, + { no: 5, name: "cutouts", kind: "message", T: CutoutParameters, opt: true }, + { no: 6, name: "prompt", kind: "message", T: Prompt, opt: true }, + ], +); + +/** + * Parameters that affect the behavior of the guidance, typically used for CLIP. + * The omission of this field implies the default guidance of CFG. + * + * @generated from message stabilityai.platformapis.generation.v1.GuidanceParameters + */ +export const GuidanceParameters = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.GuidanceParameters", + () => [ + { no: 1, name: "guidance_preset", kind: "enum", T: proto3.getEnumType(GuidancePreset) }, + { no: 2, name: "instances", kind: "message", T: GuidanceInstanceParameters, repeated: true }, + ], +); + +/** + * @generated from message stabilityai.platformapis.generation.v1.TransformType + */ +export const TransformType = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.TransformType", + () => [ + { no: 1, name: "diffusion", kind: "enum", T: proto3.getEnumType(DiffusionSampler), oneof: "type" }, + { no: 2, name: "upscaler", kind: "enum", T: proto3.getEnumType(Upscaler), oneof: "type" }, + ], +); + +/** + * @generated from message stabilityai.platformapis.generation.v1.ImageParameters + */ +export const ImageParameters = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.ImageParameters", + () => [ + { no: 1, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true }, + { no: 2, name: "width", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true }, + { no: 3, name: "seed", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true }, + { no: 4, name: "samples", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true }, + { no: 5, name: "steps", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true }, + { no: 6, name: "transform", kind: "message", T: TransformType, opt: true }, + { no: 7, name: "parameters", kind: "message", T: StepParameter, repeated: true }, + { no: 8, name: "masked_area_init", kind: "enum", T: proto3.getEnumType(MaskedAreaInit), opt: true }, + { no: 9, name: "weight_method", kind: "enum", T: proto3.getEnumType(WeightMethod), opt: true }, + { no: 10, name: "quantize", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, + ], +); + +/** + * @generated from message stabilityai.platformapis.generation.v1.ClassifierConcept + */ +export const ClassifierConcept = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.ClassifierConcept", + () => [ + { no: 1, name: "concept", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "threshold", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, + ], +); + +/** + * @generated from message stabilityai.platformapis.generation.v1.ClassifierCategory + */ +export const ClassifierCategory = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.ClassifierCategory", + () => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "concepts", kind: "message", T: ClassifierConcept, repeated: true }, + { no: 3, name: "adjustment", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, + { no: 4, name: "action", kind: "enum", T: proto3.getEnumType(Action), opt: true }, + { no: 5, name: "classifier_mode", kind: "enum", T: proto3.getEnumType(ClassifierMode), opt: true }, + ], +); + +/** + * @generated from message stabilityai.platformapis.generation.v1.ClassifierParameters + */ +export const ClassifierParameters = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.ClassifierParameters", + () => [ + { no: 1, name: "categories", kind: "message", T: ClassifierCategory, repeated: true }, + { no: 2, name: "exceeds", kind: "message", T: ClassifierCategory, repeated: true }, + { no: 3, name: "realized_action", kind: "enum", T: proto3.getEnumType(Action), opt: true }, + ], +); + +/** + * Interpolation between two images applied at specified blend ratios + * + * @generated from message stabilityai.platformapis.generation.v1.InterpolateParameters + */ +export const InterpolateParameters = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.InterpolateParameters", + () => [ + { no: 1, name: "ratios", kind: "scalar", T: 2 /* ScalarType.FLOAT */, repeated: true }, + { no: 2, name: "mode", kind: "enum", T: proto3.getEnumType(InterpolateMode), opt: true }, + ], +); + +/** + * @generated from message stabilityai.platformapis.generation.v1.TransformColorAdjust + */ +export const TransformColorAdjust = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.TransformColorAdjust", + () => [ + { no: 1, name: "brightness", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, + { no: 2, name: "contrast", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, + { no: 3, name: "hue", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, + { no: 4, name: "saturation", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, + { no: 5, name: "lightness", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, + { no: 6, name: "match_image", kind: "message", T: Artifact, opt: true }, + { no: 7, name: "match_mode", kind: "enum", T: proto3.getEnumType(ColorMatchMode), opt: true }, + { no: 8, name: "noise_amount", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, + { no: 9, name: "noise_seed", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, + ], +); + +/** + * @generated from message stabilityai.platformapis.generation.v1.TransformDepthCalc + */ +export const TransformDepthCalc = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.TransformDepthCalc", + () => [ + { no: 1, name: "blend_weight", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, + { no: 2, name: "blur_radius", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, + { no: 3, name: "reverse", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, + ], +); + +/** + * @generated from message stabilityai.platformapis.generation.v1.TransformMatrix + */ +export const TransformMatrix = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.TransformMatrix", + () => [ + { no: 1, name: "data", kind: "scalar", T: 2 /* ScalarType.FLOAT */, repeated: true }, + ], +); + +/** + * @generated from message stabilityai.platformapis.generation.v1.TransformResample + */ +export const TransformResample = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.TransformResample", + () => [ + { no: 1, name: "border_mode", kind: "enum", T: proto3.getEnumType(BorderMode) }, + { no: 2, name: "transform", kind: "message", T: TransformMatrix }, + { no: 3, name: "prev_transform", kind: "message", T: TransformMatrix, opt: true }, + { no: 4, name: "depth_warp", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, + { no: 5, name: "export_mask", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, + ], +); + +/** + * @generated from message stabilityai.platformapis.generation.v1.CameraParameters + */ +export const CameraParameters = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.CameraParameters", + () => [ + { no: 1, name: "camera_type", kind: "enum", T: proto3.getEnumType(CameraType) }, + { no: 2, name: "near_plane", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, + { no: 3, name: "far_plane", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, + { no: 4, name: "fov", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, + ], +); + +/** + * @generated from message stabilityai.platformapis.generation.v1.TransformCameraPose + */ +export const TransformCameraPose = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.TransformCameraPose", + () => [ + { no: 1, name: "world_to_view_matrix", kind: "message", T: TransformMatrix }, + { no: 2, name: "camera_parameters", kind: "message", T: CameraParameters }, + { no: 5, name: "do_prefill", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 8, name: "render_mode", kind: "enum", T: proto3.getEnumType(RenderMode) }, + ], +); + +/** + * @generated from message stabilityai.platformapis.generation.v1.TransformParameters + */ +export const TransformParameters = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.TransformParameters", + () => [ + { no: 2, name: "color_adjust", kind: "message", T: TransformColorAdjust, oneof: "transform" }, + { no: 4, name: "depth_calc", kind: "message", T: TransformDepthCalc, oneof: "transform" }, + { no: 5, name: "resample", kind: "message", T: TransformResample, oneof: "transform" }, + { no: 6, name: "camera_pose", kind: "message", T: TransformCameraPose, oneof: "transform" }, + ], +); + +/** + * @generated from message stabilityai.platformapis.generation.v1.AssetParameters + */ +export const AssetParameters = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.AssetParameters", + () => [ + { no: 1, name: "action", kind: "enum", T: proto3.getEnumType(AssetAction) }, + { no: 2, name: "project_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "use", kind: "enum", T: proto3.getEnumType(AssetUse) }, + ], +); + +/** + * AnswerMeta is a set of metadata about an answer, usually the operating + * environment. + * + * @generated from message stabilityai.platformapis.generation.v1.AnswerMeta + */ +export const AnswerMeta = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.AnswerMeta", + () => [ + { no: 1, name: "gpu_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 2, name: "cpu_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 3, name: "node_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 4, name: "engine_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + ], +); + +/** + * An Answer is a response to a Request. It is a set of Artifacts, which can be + * of any type and forwarded to the client or the next stage. + * + * @generated from message stabilityai.platformapis.generation.v1.Answer + */ +export const Answer = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.Answer", + () => [ + { no: 1, name: "answer_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "received", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "created", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "meta", kind: "message", T: AnswerMeta, opt: true }, + { no: 7, name: "artifacts", kind: "message", T: Artifact, repeated: true }, + ], +); + +/** + * An AnswerBatch is a set of Answers. It can represent one or several completed + * requests, which may be sent to the client in a single response. + * + * @generated from message stabilityai.platformapis.generation.v1.AnswerBatch + */ +export const AnswerBatch = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.AnswerBatch", + () => [ + { no: 1, name: "batch_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "answers", kind: "message", T: Answer, repeated: true }, + ], +); + +/** + * A Request is a set of Artifacts, which can be of any type with model or + * transform parameters. It is sent to the server, which will respond with an + * Answer. + * + * @generated from message stabilityai.platformapis.generation.v1.Request + */ +export const Request = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.Request", + () => [ + { no: 1, name: "engine_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "requested_type", kind: "enum", T: proto3.getEnumType(ArtifactType) }, + { no: 4, name: "prompt", kind: "message", T: Prompt, repeated: true }, + { no: 5, name: "image", kind: "message", T: ImageParameters, oneof: "params" }, + { no: 7, name: "classifier", kind: "message", T: ClassifierParameters, oneof: "params" }, + { no: 8, name: "asset", kind: "message", T: AssetParameters, oneof: "params" }, + { no: 11, name: "interpolate", kind: "message", T: InterpolateParameters, oneof: "params" }, + { no: 12, name: "transform", kind: "message", T: TransformParameters, oneof: "params" }, + { no: 6, name: "conditioner", kind: "message", T: ConditionerParameters, opt: true }, + { no: 2047, name: "extras", kind: "message", T: Struct, opt: true }, + ], +); + +/** + * @generated from message stabilityai.platformapis.generation.v1.OnStatus + */ +export const OnStatus = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.OnStatus", + () => [ + { no: 1, name: "reason", kind: "enum", T: proto3.getEnumType(FinishReason), repeated: true }, + { no: 2, name: "target", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 3, name: "action", kind: "enum", T: proto3.getEnumType(StageAction), repeated: true }, + ], +); + +/** + * @generated from message stabilityai.platformapis.generation.v1.Stage + */ +export const Stage = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.Stage", + () => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "request", kind: "message", T: Request }, + { no: 3, name: "on_status", kind: "message", T: OnStatus, repeated: true }, + ], +); + +/** + * @generated from message stabilityai.platformapis.generation.v1.ChainRequest + */ +export const ChainRequest = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.ChainRequest", + () => [ + { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "stage", kind: "message", T: Stage, repeated: true }, + ], +); + diff --git a/gen/proto/js/stabilityai/platformapis/project/v1/project_connect.d.ts b/gen/proto/js/stabilityai/platformapis/project/v1/project_connect.d.ts new file mode 100644 index 0000000..38c6a01 --- /dev/null +++ b/gen/proto/js/stabilityai/platformapis/project/v1/project_connect.d.ts @@ -0,0 +1,118 @@ +// @generated by protoc-gen-connect-es v0.8.6 +// @generated from file stabilityai/platformapis/project/v1/project.proto (package stabilityai.platformapis.project.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { CreateProjectRequest, DeleteAssetsRequest, DeleteAssetsResponse, DeleteProjectRequest, GetProjectRequest, ListProjectRequest, Project, QueryAssetsRequest, QueryAssetsResponse, TagAssetsRequest, TagAssetsResponse, UntagAssetsRequest, UntagAssetsResponse, UpdateProjectRequest } from "./project_pb.js"; +import { MethodKind } from "@bufbuild/protobuf"; + +/** + * + * gRPC services + * + * + * @generated from service stabilityai.platformapis.project.v1.ProjectService + */ +export declare const ProjectService: { + readonly typeName: "stabilityai.platformapis.project.v1.ProjectService", + readonly methods: { + /** + * Create a new project if it does not exist + * + * @generated from rpc stabilityai.platformapis.project.v1.ProjectService.Create + */ + readonly create: { + readonly name: "Create", + readonly I: typeof CreateProjectRequest, + readonly O: typeof Project, + readonly kind: MethodKind.Unary, + }, + /** + * Update an existing project + * + * @generated from rpc stabilityai.platformapis.project.v1.ProjectService.Update + */ + readonly update: { + readonly name: "Update", + readonly I: typeof UpdateProjectRequest, + readonly O: typeof Project, + readonly kind: MethodKind.Unary, + }, + /** + * List all the projects for an organization + * + * @generated from rpc stabilityai.platformapis.project.v1.ProjectService.List + */ + readonly list: { + readonly name: "List", + readonly I: typeof ListProjectRequest, + readonly O: typeof Project, + readonly kind: MethodKind.ServerStreaming, + }, + /** + * Get a project + * + * @generated from rpc stabilityai.platformapis.project.v1.ProjectService.Get + */ + readonly get: { + readonly name: "Get", + readonly I: typeof GetProjectRequest, + readonly O: typeof Project, + readonly kind: MethodKind.Unary, + }, + /** + * Delete a project + * + * @generated from rpc stabilityai.platformapis.project.v1.ProjectService.Delete + */ + readonly delete: { + readonly name: "Delete", + readonly I: typeof DeleteProjectRequest, + readonly O: typeof Project, + readonly kind: MethodKind.Unary, + }, + /** + * Add or remove tags from an asset + * + * @generated from rpc stabilityai.platformapis.project.v1.ProjectService.TagAssets + */ + readonly tagAssets: { + readonly name: "TagAssets", + readonly I: typeof TagAssetsRequest, + readonly O: typeof TagAssetsResponse, + readonly kind: MethodKind.Unary, + }, + /** + * @generated from rpc stabilityai.platformapis.project.v1.ProjectService.UntagAssets + */ + readonly untagAssets: { + readonly name: "UntagAssets", + readonly I: typeof UntagAssetsRequest, + readonly O: typeof UntagAssetsResponse, + readonly kind: MethodKind.Unary, + }, + /** + * Query the assets of a project, with additional filtering + * + * @generated from rpc stabilityai.platformapis.project.v1.ProjectService.QueryAssets + */ + readonly queryAssets: { + readonly name: "QueryAssets", + readonly I: typeof QueryAssetsRequest, + readonly O: typeof QueryAssetsResponse, + readonly kind: MethodKind.Unary, + }, + /** + * Delete one or more assets of a project + * + * @generated from rpc stabilityai.platformapis.project.v1.ProjectService.DeleteAssets + */ + readonly deleteAssets: { + readonly name: "DeleteAssets", + readonly I: typeof DeleteAssetsRequest, + readonly O: typeof DeleteAssetsResponse, + readonly kind: MethodKind.Unary, + }, + } +}; + diff --git a/gen/proto/js/stabilityai/platformapis/project/v1/project_connect.js b/gen/proto/js/stabilityai/platformapis/project/v1/project_connect.js new file mode 100644 index 0000000..b878357 --- /dev/null +++ b/gen/proto/js/stabilityai/platformapis/project/v1/project_connect.js @@ -0,0 +1,118 @@ +// @generated by protoc-gen-connect-es v0.8.6 +// @generated from file stabilityai/platformapis/project/v1/project.proto (package stabilityai.platformapis.project.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { CreateProjectRequest, DeleteAssetsRequest, DeleteAssetsResponse, DeleteProjectRequest, GetProjectRequest, ListProjectRequest, Project, QueryAssetsRequest, QueryAssetsResponse, TagAssetsRequest, TagAssetsResponse, UntagAssetsRequest, UntagAssetsResponse, UpdateProjectRequest } from "./project_pb.js"; +import { MethodKind } from "@bufbuild/protobuf"; + +/** + * + * gRPC services + * + * + * @generated from service stabilityai.platformapis.project.v1.ProjectService + */ +export const ProjectService = { + typeName: "stabilityai.platformapis.project.v1.ProjectService", + methods: { + /** + * Create a new project if it does not exist + * + * @generated from rpc stabilityai.platformapis.project.v1.ProjectService.Create + */ + create: { + name: "Create", + I: CreateProjectRequest, + O: Project, + kind: MethodKind.Unary, + }, + /** + * Update an existing project + * + * @generated from rpc stabilityai.platformapis.project.v1.ProjectService.Update + */ + update: { + name: "Update", + I: UpdateProjectRequest, + O: Project, + kind: MethodKind.Unary, + }, + /** + * List all the projects for an organization + * + * @generated from rpc stabilityai.platformapis.project.v1.ProjectService.List + */ + list: { + name: "List", + I: ListProjectRequest, + O: Project, + kind: MethodKind.ServerStreaming, + }, + /** + * Get a project + * + * @generated from rpc stabilityai.platformapis.project.v1.ProjectService.Get + */ + get: { + name: "Get", + I: GetProjectRequest, + O: Project, + kind: MethodKind.Unary, + }, + /** + * Delete a project + * + * @generated from rpc stabilityai.platformapis.project.v1.ProjectService.Delete + */ + delete: { + name: "Delete", + I: DeleteProjectRequest, + O: Project, + kind: MethodKind.Unary, + }, + /** + * Add or remove tags from an asset + * + * @generated from rpc stabilityai.platformapis.project.v1.ProjectService.TagAssets + */ + tagAssets: { + name: "TagAssets", + I: TagAssetsRequest, + O: TagAssetsResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc stabilityai.platformapis.project.v1.ProjectService.UntagAssets + */ + untagAssets: { + name: "UntagAssets", + I: UntagAssetsRequest, + O: UntagAssetsResponse, + kind: MethodKind.Unary, + }, + /** + * Query the assets of a project, with additional filtering + * + * @generated from rpc stabilityai.platformapis.project.v1.ProjectService.QueryAssets + */ + queryAssets: { + name: "QueryAssets", + I: QueryAssetsRequest, + O: QueryAssetsResponse, + kind: MethodKind.Unary, + }, + /** + * Delete one or more assets of a project + * + * @generated from rpc stabilityai.platformapis.project.v1.ProjectService.DeleteAssets + */ + deleteAssets: { + name: "DeleteAssets", + I: DeleteAssetsRequest, + O: DeleteAssetsResponse, + kind: MethodKind.Unary, + }, + } +}; + diff --git a/gen/proto/js/stabilityai/platformapis/project/v1/project_pb.d.ts b/gen/proto/js/stabilityai/platformapis/project/v1/project_pb.d.ts new file mode 100644 index 0000000..f119443 --- /dev/null +++ b/gen/proto/js/stabilityai/platformapis/project/v1/project_pb.d.ts @@ -0,0 +1,867 @@ +// @generated by protoc-gen-es v1.2.0 +// @generated from file stabilityai/platformapis/project/v1/project.proto (package stabilityai.platformapis.project.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import type { Request } from "../../generation/v1/generation_pb.js"; + +/** + * @generated from enum stabilityai.platformapis.project.v1.ProjectAccess + */ +export declare enum ProjectAccess { + /** + * Private access, only owner organization can access + * + * @generated from enum value: PROJECT_ACCESS_PRIVATE = 0; + */ + PRIVATE = 0, + + /** + * Public access, anyone can access + * + * @generated from enum value: PROJECT_ACCESS_PUBLIC = 1; + */ + PUBLIC = 1, +} + +/** + * @generated from enum stabilityai.platformapis.project.v1.ProjectStatus + */ +export declare enum ProjectStatus { + /** + * Inactive project + * + * @generated from enum value: PROJECT_STATUS_INACTIVE = 0; + */ + INACTIVE = 0, + + /** + * Active project + * + * @generated from enum value: PROJECT_STATUS_ACTIVE = 1; + */ + ACTIVE = 1, + + /** + * Deleted project, only set by delete endpoint + * + * @generated from enum value: PROJECT_STATUS_DELETED = 2; + */ + DELETED = 2, +} + +/** + * @generated from enum stabilityai.platformapis.project.v1.ProjectAssetUse + */ +export declare enum ProjectAssetUse { + /** + * Asset does not have use defined + * + * @generated from enum value: PROJECT_ASSET_USE_UNDEFINED = 0; + */ + UNDEFINED = 0, + + /** + * Asset is used as an input for the project + * + * @generated from enum value: PROJECT_ASSET_USE_INPUT = 1; + */ + INPUT = 1, + + /** + * Asset is an output from the project + * + * @generated from enum value: PROJECT_ASSET_USE_OUTPUT = 2; + */ + OUTPUT = 2, + + /** + * Asset is an output from an intermediate step of the project + * + * @generated from enum value: PROJECT_ASSET_USE_INTERMEDIATE = 3; + */ + INTERMEDIATE = 3, + + /** + * Asset is used as the project file for the project + * + * @generated from enum value: PROJECT_ASSET_USE_PROJECT = 4; + */ + PROJECT = 4, +} + +/** + * @generated from enum stabilityai.platformapis.project.v1.ProjectSortDir + */ +export declare enum ProjectSortDir { + /** + * Sort direction is not specified, uses default + * + * @generated from enum value: PROJECT_SORT_DIR_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * Sort in ascending order + * + * @generated from enum value: PROJECT_SORT_DIR_ASC = 1; + */ + ASC = 1, + + /** + * Sort in descending order + * + * @generated from enum value: PROJECT_SORT_DIR_DESC = 2; + */ + DESC = 2, +} + +/** + * @generated from message stabilityai.platformapis.project.v1.ProjectAsset + */ +export declare class ProjectAsset extends Message { + /** + * ID of the asset, UUIDv4 + * + * @generated from field: string id = 1; + */ + id: string; + + /** + * The URI to the asset + * + * @generated from field: string uri = 2; + */ + uri: string; + + /** + * The use of the asset with respect to the project + * + * @generated from field: stabilityai.platformapis.project.v1.ProjectAssetUse use = 3; + */ + use: ProjectAssetUse; + + /** + * The name of the asset + * + * @generated from field: string name = 4; + */ + name: string; + + /** + * The asset size in bytes + * + * @generated from field: uint64 size = 5; + */ + size: bigint; + + /** + * Time of asset creation (UTC seconds epoch) + * + * @generated from field: uint64 created_at = 6; + */ + createdAt: bigint; + + /** + * Time of last asset update (UTC seconds epoch) + * + * @generated from field: uint64 updated_at = 7; + */ + updatedAt: bigint; + + /** + * The request object that is associated with the artifact + * + * @generated from field: stabilityai.platformapis.generation.v1.Request request = 8; + */ + request?: Request; + + /** + * The tags associated with the asset + * + * @generated from field: map tags = 9; + */ + tags: { [key: string]: string }; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.project.v1.ProjectAsset"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): ProjectAsset; + + static fromJson(jsonValue: JsonValue, options?: Partial): ProjectAsset; + + static fromJsonString(jsonString: string, options?: Partial): ProjectAsset; + + static equals(a: ProjectAsset | PlainMessage | undefined, b: ProjectAsset | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.project.v1.Project + */ +export declare class Project extends Message { + /** + * ID of the project, UUIDv4 + * + * @generated from field: string id = 1; + */ + id: string; + + /** + * Title of the project + * + * @generated from field: string title = 2; + */ + title: string; + + /** + * The ID of the organization owning the project + * + * @generated from field: string owner_id = 3; + */ + ownerId: string; + + /** + * The access of the project (such as public vs private) + * + * @generated from field: stabilityai.platformapis.project.v1.ProjectAccess access = 4; + */ + access: ProjectAccess; + + /** + * The status of the project (such as active vs inactive) + * + * @generated from field: stabilityai.platformapis.project.v1.ProjectStatus status = 5; + */ + status: ProjectStatus; + + /** + * The size of the project in bytes + * + * @generated from field: uint64 size = 6; + */ + size: bigint; + + /** + * Project file for the project + * + * @generated from field: stabilityai.platformapis.project.v1.ProjectAsset file = 7; + */ + file?: ProjectAsset; + + /** + * Time of project creation (UTC seconds epoch) + * + * @generated from field: uint64 created_at = 8; + */ + createdAt: bigint; + + /** + * Time of last project update (UTC seconds epoch) + * + * @generated from field: uint64 updated_at = 9; + */ + updatedAt: bigint; + + /** + * The listing of all assets associated with the project + * + * @generated from field: repeated stabilityai.platformapis.project.v1.ProjectAsset assets = 10; + */ + assets: ProjectAsset[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.project.v1.Project"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Project; + + static fromJson(jsonValue: JsonValue, options?: Partial): Project; + + static fromJsonString(jsonString: string, options?: Partial): Project; + + static equals(a: Project | PlainMessage | undefined, b: Project | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.project.v1.CreateProjectRequest + */ +export declare class CreateProjectRequest extends Message { + /** + * title of the project + * + * @generated from field: string title = 1; + */ + title: string; + + /** + * The ID of the organization owning the project, empty for default org for user + * + * @generated from field: optional string owner_id = 2; + */ + ownerId?: string; + + /** + * The access of the project (such as public vs private) + * + * @generated from field: stabilityai.platformapis.project.v1.ProjectAccess access = 3; + */ + access: ProjectAccess; + + /** + * The status of the project (such as active vs inactive) + * + * @generated from field: stabilityai.platformapis.project.v1.ProjectStatus status = 4; + */ + status: ProjectStatus; + + /** + * Project file for the project (if existing, else will create) + * + * @generated from field: optional stabilityai.platformapis.project.v1.ProjectAsset file = 5; + */ + file?: ProjectAsset; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.project.v1.CreateProjectRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateProjectRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateProjectRequest; + + static fromJsonString(jsonString: string, options?: Partial): CreateProjectRequest; + + static equals(a: CreateProjectRequest | PlainMessage | undefined, b: CreateProjectRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.project.v1.UpdateProjectRequest + */ +export declare class UpdateProjectRequest extends Message { + /** + * ID of the project, UUIDv4 + * + * @generated from field: string id = 1; + */ + id: string; + + /** + * The ID of the organization owning the project, empty for default org for user + * + * @generated from field: optional string owner_id = 2; + */ + ownerId?: string; + + /** + * Title of the project + * + * @generated from field: optional string title = 3; + */ + title?: string; + + /** + * The access of the project (such as public vs private) + * + * @generated from field: optional stabilityai.platformapis.project.v1.ProjectAccess access = 4; + */ + access?: ProjectAccess; + + /** + * The status of the project (such as active vs inactive) + * + * @generated from field: optional stabilityai.platformapis.project.v1.ProjectStatus status = 5; + */ + status?: ProjectStatus; + + /** + * Project file for the project + * + * @generated from field: optional stabilityai.platformapis.project.v1.ProjectAsset file = 6; + */ + file?: ProjectAsset; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.project.v1.UpdateProjectRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): UpdateProjectRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): UpdateProjectRequest; + + static fromJsonString(jsonString: string, options?: Partial): UpdateProjectRequest; + + static equals(a: UpdateProjectRequest | PlainMessage | undefined, b: UpdateProjectRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.project.v1.ListProjectRequest + */ +export declare class ListProjectRequest extends Message { + /** + * The ID of the organization owning the project, empty for default org for user + * + * @generated from field: optional string owner_id = 1; + */ + ownerId?: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.project.v1.ListProjectRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): ListProjectRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): ListProjectRequest; + + static fromJsonString(jsonString: string, options?: Partial): ListProjectRequest; + + static equals(a: ListProjectRequest | PlainMessage | undefined, b: ListProjectRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.project.v1.GetProjectRequest + */ +export declare class GetProjectRequest extends Message { + /** + * ID of the project to request, UUIDv4, empty string uses default project + * + * @generated from field: string id = 1; + */ + id: string; + + /** + * The ID of the organization owning the project, empty for default org for user + * + * @generated from field: optional string owner_id = 2; + */ + ownerId?: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.project.v1.GetProjectRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): GetProjectRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): GetProjectRequest; + + static fromJsonString(jsonString: string, options?: Partial): GetProjectRequest; + + static equals(a: GetProjectRequest | PlainMessage | undefined, b: GetProjectRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.project.v1.DeleteProjectRequest + */ +export declare class DeleteProjectRequest extends Message { + /** + * ID of the project to request, UUIDv4 + * + * @generated from field: string id = 1; + */ + id: string; + + /** + * The ID of the organization owning the project, empty for default org for user + * + * @generated from field: optional string owner_id = 2; + */ + ownerId?: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.project.v1.DeleteProjectRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): DeleteProjectRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): DeleteProjectRequest; + + static fromJsonString(jsonString: string, options?: Partial): DeleteProjectRequest; + + static equals(a: DeleteProjectRequest | PlainMessage | undefined, b: DeleteProjectRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.project.v1.QueryAssetsRequest + */ +export declare class QueryAssetsRequest extends Message { + /** + * ID of the project to request, UUIDv4, empty string uses default project + * + * @generated from field: string id = 1; + */ + id: string; + + /** + * The ID of the organization owning the assets, unset for default org for user + * + * @generated from field: optional string owner_id = 2; + */ + ownerId?: string; + + /** + * The time (UTC seconds epoch) to start listing assets from, unset for no restriction + * + * @generated from field: optional uint64 since = 3; + */ + since?: bigint; + + /** + * The time (UTC seconds epoch) to stop listing assets at, unset for no restriction + * + * @generated from field: optional uint64 until = 4; + */ + until?: bigint; + + /** + * The maximum number of assets to return, unset for no limit + * + * @generated from field: optional uint64 limit = 5; + */ + limit?: bigint; + + /** + * The key to start from, used to paginate results, unset for no offset + * + * @generated from field: optional string start_key = 6; + */ + startKey?: string; + + /** + * The asset usage to filter the assets returned, empty for no filter + * + * @generated from field: repeated stabilityai.platformapis.project.v1.ProjectAssetUse use = 7; + */ + use: ProjectAssetUse[]; + + /** + * The sort direction based on asset creation time, default is descending + * + * @generated from field: stabilityai.platformapis.project.v1.ProjectSortDir sort_dir = 8; + */ + sortDir: ProjectSortDir; + + /** + * The tag values used to filter the assets returned, empty for no filter + * + * @generated from field: map tags = 9; + */ + tags: { [key: string]: string }; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.project.v1.QueryAssetsRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAssetsRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAssetsRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryAssetsRequest; + + static equals(a: QueryAssetsRequest | PlainMessage | undefined, b: QueryAssetsRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.project.v1.QueryAssetsResponse + */ +export declare class QueryAssetsResponse extends Message { + /** + * The assets returned by the query + * + * @generated from field: repeated stabilityai.platformapis.project.v1.ProjectAsset assets = 1; + */ + assets: ProjectAsset[]; + + /** + * The last asset key returned when the results were limited, unset when not limited + * + * @generated from field: optional string last_key = 2; + */ + lastKey?: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.project.v1.QueryAssetsResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAssetsResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAssetsResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryAssetsResponse; + + static equals(a: QueryAssetsResponse | PlainMessage | undefined, b: QueryAssetsResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.project.v1.TagAssetsRequest + */ +export declare class TagAssetsRequest extends Message { + /** + * ID of the project to request, UUIDv4, empty string uses default project + * + * @generated from field: string id = 1; + */ + id: string; + + /** + * The ID of the organization owning the assets, unset for default org for user + * + * @generated from field: optional string owner_id = 2; + */ + ownerId?: string; + + /** + * The IDs of the assets to tag in the project, UUIDv4, limit 1000 + * + * @generated from field: repeated string asset_ids = 3; + */ + assetIds: string[]; + + /** + * The tags to add to the assets + * + * @generated from field: map tags = 4; + */ + tags: { [key: string]: string }; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.project.v1.TagAssetsRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): TagAssetsRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): TagAssetsRequest; + + static fromJsonString(jsonString: string, options?: Partial): TagAssetsRequest; + + static equals(a: TagAssetsRequest | PlainMessage | undefined, b: TagAssetsRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.project.v1.TagAssetsResponse + */ +export declare class TagAssetsResponse extends Message { + /** + * ID of the project, UUIDv4 + * + * @generated from field: string id = 1; + */ + id: string; + + /** + * The ID of the organization owning the project + * + * @generated from field: string owner_id = 2; + */ + ownerId: string; + + /** + * The IDs of the assets updated in the project, UUIDv4, limit 1000 + * + * @generated from field: repeated string asset_ids = 3; + */ + assetIds: string[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.project.v1.TagAssetsResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): TagAssetsResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): TagAssetsResponse; + + static fromJsonString(jsonString: string, options?: Partial): TagAssetsResponse; + + static equals(a: TagAssetsResponse | PlainMessage | undefined, b: TagAssetsResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.project.v1.UntagAssetsRequest + */ +export declare class UntagAssetsRequest extends Message { + /** + * ID of the project to request, UUIDv4, empty string uses default project + * + * @generated from field: string id = 1; + */ + id: string; + + /** + * The ID of the organization owning the assets, unset for default org for user + * + * @generated from field: optional string owner_id = 2; + */ + ownerId?: string; + + /** + * The IDs of the assets to tag in the project, UUIDv4, limit 1000 + * + * @generated from field: repeated string asset_ids = 3; + */ + assetIds: string[]; + + /** + * The keys of the tags to remove from the assets + * + * @generated from field: repeated string tag_keys = 4; + */ + tagKeys: string[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.project.v1.UntagAssetsRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): UntagAssetsRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): UntagAssetsRequest; + + static fromJsonString(jsonString: string, options?: Partial): UntagAssetsRequest; + + static equals(a: UntagAssetsRequest | PlainMessage | undefined, b: UntagAssetsRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.project.v1.UntagAssetsResponse + */ +export declare class UntagAssetsResponse extends Message { + /** + * ID of the project, UUIDv4 + * + * @generated from field: string id = 1; + */ + id: string; + + /** + * The ID of the organization owning the project + * + * @generated from field: string owner_id = 2; + */ + ownerId: string; + + /** + * The IDs of the assets updated in the project, UUIDv4, limit 1000 + * + * @generated from field: repeated string asset_ids = 3; + */ + assetIds: string[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.project.v1.UntagAssetsResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): UntagAssetsResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): UntagAssetsResponse; + + static fromJsonString(jsonString: string, options?: Partial): UntagAssetsResponse; + + static equals(a: UntagAssetsResponse | PlainMessage | undefined, b: UntagAssetsResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.project.v1.DeleteAssetsRequest + */ +export declare class DeleteAssetsRequest extends Message { + /** + * ID of the project to request, UUIDv4, empty string uses default project + * + * @generated from field: string id = 1; + */ + id: string; + + /** + * The ID of the organization owning the project, unset for default org for user + * + * @generated from field: optional string owner_id = 2; + */ + ownerId?: string; + + /** + * The IDs of the assets to delete from the project, UUIDv4, limit 1000 + * + * @generated from field: repeated string asset_ids = 3; + */ + assetIds: string[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.project.v1.DeleteAssetsRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): DeleteAssetsRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): DeleteAssetsRequest; + + static fromJsonString(jsonString: string, options?: Partial): DeleteAssetsRequest; + + static equals(a: DeleteAssetsRequest | PlainMessage | undefined, b: DeleteAssetsRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.project.v1.DeleteAssetsResponse + */ +export declare class DeleteAssetsResponse extends Message { + /** + * ID of the project, UUIDv4 + * + * @generated from field: string id = 1; + */ + id: string; + + /** + * The ID of the organization owning the project + * + * @generated from field: string owner_id = 2; + */ + ownerId: string; + + /** + * The IDs of the assets deleted from the project, UUIDv4, limit 1000 + * + * @generated from field: repeated string asset_ids = 3; + */ + assetIds: string[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.project.v1.DeleteAssetsResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): DeleteAssetsResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): DeleteAssetsResponse; + + static fromJsonString(jsonString: string, options?: Partial): DeleteAssetsResponse; + + static equals(a: DeleteAssetsResponse | PlainMessage | undefined, b: DeleteAssetsResponse | PlainMessage | undefined): boolean; +} + diff --git a/gen/proto/js/stabilityai/platformapis/project/v1/project_pb.js b/gen/proto/js/stabilityai/platformapis/project/v1/project_pb.js new file mode 100644 index 0000000..d6f9929 --- /dev/null +++ b/gen/proto/js/stabilityai/platformapis/project/v1/project_pb.js @@ -0,0 +1,258 @@ +// @generated by protoc-gen-es v1.2.0 +// @generated from file stabilityai/platformapis/project/v1/project.proto (package stabilityai.platformapis.project.v1, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; +import { Request } from "../../generation/v1/generation_pb.js"; + +/** + * @generated from enum stabilityai.platformapis.project.v1.ProjectAccess + */ +export const ProjectAccess = proto3.makeEnum( + "stabilityai.platformapis.project.v1.ProjectAccess", + [ + {no: 0, name: "PROJECT_ACCESS_PRIVATE", localName: "PRIVATE"}, + {no: 1, name: "PROJECT_ACCESS_PUBLIC", localName: "PUBLIC"}, + ], +); + +/** + * @generated from enum stabilityai.platformapis.project.v1.ProjectStatus + */ +export const ProjectStatus = proto3.makeEnum( + "stabilityai.platformapis.project.v1.ProjectStatus", + [ + {no: 0, name: "PROJECT_STATUS_INACTIVE", localName: "INACTIVE"}, + {no: 1, name: "PROJECT_STATUS_ACTIVE", localName: "ACTIVE"}, + {no: 2, name: "PROJECT_STATUS_DELETED", localName: "DELETED"}, + ], +); + +/** + * @generated from enum stabilityai.platformapis.project.v1.ProjectAssetUse + */ +export const ProjectAssetUse = proto3.makeEnum( + "stabilityai.platformapis.project.v1.ProjectAssetUse", + [ + {no: 0, name: "PROJECT_ASSET_USE_UNDEFINED", localName: "UNDEFINED"}, + {no: 1, name: "PROJECT_ASSET_USE_INPUT", localName: "INPUT"}, + {no: 2, name: "PROJECT_ASSET_USE_OUTPUT", localName: "OUTPUT"}, + {no: 3, name: "PROJECT_ASSET_USE_INTERMEDIATE", localName: "INTERMEDIATE"}, + {no: 4, name: "PROJECT_ASSET_USE_PROJECT", localName: "PROJECT"}, + ], +); + +/** + * @generated from enum stabilityai.platformapis.project.v1.ProjectSortDir + */ +export const ProjectSortDir = proto3.makeEnum( + "stabilityai.platformapis.project.v1.ProjectSortDir", + [ + {no: 0, name: "PROJECT_SORT_DIR_UNSPECIFIED", localName: "UNSPECIFIED"}, + {no: 1, name: "PROJECT_SORT_DIR_ASC", localName: "ASC"}, + {no: 2, name: "PROJECT_SORT_DIR_DESC", localName: "DESC"}, + ], +); + +/** + * @generated from message stabilityai.platformapis.project.v1.ProjectAsset + */ +export const ProjectAsset = proto3.makeMessageType( + "stabilityai.platformapis.project.v1.ProjectAsset", + () => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "use", kind: "enum", T: proto3.getEnumType(ProjectAssetUse) }, + { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "size", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "created_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "updated_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 8, name: "request", kind: "message", T: Request }, + { no: 9, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + ], +); + +/** + * @generated from message stabilityai.platformapis.project.v1.Project + */ +export const Project = proto3.makeMessageType( + "stabilityai.platformapis.project.v1.Project", + () => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "owner_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "access", kind: "enum", T: proto3.getEnumType(ProjectAccess) }, + { no: 5, name: "status", kind: "enum", T: proto3.getEnumType(ProjectStatus) }, + { no: 6, name: "size", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "file", kind: "message", T: ProjectAsset }, + { no: 8, name: "created_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 9, name: "updated_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 10, name: "assets", kind: "message", T: ProjectAsset, repeated: true }, + ], +); + +/** + * @generated from message stabilityai.platformapis.project.v1.CreateProjectRequest + */ +export const CreateProjectRequest = proto3.makeMessageType( + "stabilityai.platformapis.project.v1.CreateProjectRequest", + () => [ + { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "owner_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 3, name: "access", kind: "enum", T: proto3.getEnumType(ProjectAccess) }, + { no: 4, name: "status", kind: "enum", T: proto3.getEnumType(ProjectStatus) }, + { no: 5, name: "file", kind: "message", T: ProjectAsset, opt: true }, + ], +); + +/** + * @generated from message stabilityai.platformapis.project.v1.UpdateProjectRequest + */ +export const UpdateProjectRequest = proto3.makeMessageType( + "stabilityai.platformapis.project.v1.UpdateProjectRequest", + () => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "owner_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 3, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 4, name: "access", kind: "enum", T: proto3.getEnumType(ProjectAccess), opt: true }, + { no: 5, name: "status", kind: "enum", T: proto3.getEnumType(ProjectStatus), opt: true }, + { no: 6, name: "file", kind: "message", T: ProjectAsset, opt: true }, + ], +); + +/** + * @generated from message stabilityai.platformapis.project.v1.ListProjectRequest + */ +export const ListProjectRequest = proto3.makeMessageType( + "stabilityai.platformapis.project.v1.ListProjectRequest", + () => [ + { no: 1, name: "owner_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + ], +); + +/** + * @generated from message stabilityai.platformapis.project.v1.GetProjectRequest + */ +export const GetProjectRequest = proto3.makeMessageType( + "stabilityai.platformapis.project.v1.GetProjectRequest", + () => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "owner_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + ], +); + +/** + * @generated from message stabilityai.platformapis.project.v1.DeleteProjectRequest + */ +export const DeleteProjectRequest = proto3.makeMessageType( + "stabilityai.platformapis.project.v1.DeleteProjectRequest", + () => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "owner_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + ], +); + +/** + * @generated from message stabilityai.platformapis.project.v1.QueryAssetsRequest + */ +export const QueryAssetsRequest = proto3.makeMessageType( + "stabilityai.platformapis.project.v1.QueryAssetsRequest", + () => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "owner_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 3, name: "since", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true }, + { no: 4, name: "until", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true }, + { no: 5, name: "limit", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true }, + { no: 6, name: "start_key", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 7, name: "use", kind: "enum", T: proto3.getEnumType(ProjectAssetUse), repeated: true }, + { no: 8, name: "sort_dir", kind: "enum", T: proto3.getEnumType(ProjectSortDir) }, + { no: 9, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + ], +); + +/** + * @generated from message stabilityai.platformapis.project.v1.QueryAssetsResponse + */ +export const QueryAssetsResponse = proto3.makeMessageType( + "stabilityai.platformapis.project.v1.QueryAssetsResponse", + () => [ + { no: 1, name: "assets", kind: "message", T: ProjectAsset, repeated: true }, + { no: 2, name: "last_key", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + ], +); + +/** + * @generated from message stabilityai.platformapis.project.v1.TagAssetsRequest + */ +export const TagAssetsRequest = proto3.makeMessageType( + "stabilityai.platformapis.project.v1.TagAssetsRequest", + () => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "owner_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 3, name: "asset_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + ], +); + +/** + * @generated from message stabilityai.platformapis.project.v1.TagAssetsResponse + */ +export const TagAssetsResponse = proto3.makeMessageType( + "stabilityai.platformapis.project.v1.TagAssetsResponse", + () => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "owner_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "asset_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ], +); + +/** + * @generated from message stabilityai.platformapis.project.v1.UntagAssetsRequest + */ +export const UntagAssetsRequest = proto3.makeMessageType( + "stabilityai.platformapis.project.v1.UntagAssetsRequest", + () => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "owner_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 3, name: "asset_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "tag_keys", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ], +); + +/** + * @generated from message stabilityai.platformapis.project.v1.UntagAssetsResponse + */ +export const UntagAssetsResponse = proto3.makeMessageType( + "stabilityai.platformapis.project.v1.UntagAssetsResponse", + () => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "owner_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "asset_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ], +); + +/** + * @generated from message stabilityai.platformapis.project.v1.DeleteAssetsRequest + */ +export const DeleteAssetsRequest = proto3.makeMessageType( + "stabilityai.platformapis.project.v1.DeleteAssetsRequest", + () => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "owner_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 3, name: "asset_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ], +); + +/** + * @generated from message stabilityai.platformapis.project.v1.DeleteAssetsResponse + */ +export const DeleteAssetsResponse = proto3.makeMessageType( + "stabilityai.platformapis.project.v1.DeleteAssetsResponse", + () => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "owner_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "asset_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ], +); + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyFindRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyFindRequestKt.kt new file mode 100644 index 0000000..7bf929e --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyFindRequestKt.kt @@ -0,0 +1,51 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializeaPIKeyFindRequest") +public inline fun aPIKeyFindRequest(block: com.stabilityai.api.dashboard.v1.APIKeyFindRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.APIKeyFindRequest = + com.stabilityai.api.dashboard.v1.APIKeyFindRequestKt.Dsl._create(com.stabilityai.api.dashboard.v1.APIKeyFindRequest.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.APIKeyFindRequest` + */ +public object APIKeyFindRequestKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.APIKeyFindRequest.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.APIKeyFindRequest.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.APIKeyFindRequest = _builder.build() + + /** + * `string id = 1 [json_name = "id"];` + */ + public var id: kotlin.String + @JvmName("getId") + get() = _builder.getId() + @JvmName("setId") + set(value) { + _builder.setId(value) + } + /** + * `string id = 1 [json_name = "id"];` + */ + public fun clearId() { + _builder.clearId() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.APIKeyFindRequest.copy(block: com.stabilityai.api.dashboard.v1.APIKeyFindRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.APIKeyFindRequest = + com.stabilityai.api.dashboard.v1.APIKeyFindRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyKt.kt new file mode 100644 index 0000000..c9b9074 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyKt.kt @@ -0,0 +1,85 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializeaPIKey") +public inline fun aPIKey(block: com.stabilityai.api.dashboard.v1.APIKeyKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.APIKey = + com.stabilityai.api.dashboard.v1.APIKeyKt.Dsl._create(com.stabilityai.api.dashboard.v1.APIKey.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.APIKey` + */ +public object APIKeyKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.APIKey.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.APIKey.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.APIKey = _builder.build() + + /** + * `string key = 1 [json_name = "key"];` + */ + public var key: kotlin.String + @JvmName("getKey") + get() = _builder.getKey() + @JvmName("setKey") + set(value) { + _builder.setKey(value) + } + /** + * `string key = 1 [json_name = "key"];` + */ + public fun clearKey() { + _builder.clearKey() + } + + /** + * `bool is_secret = 2 [json_name = "isSecret"];` + */ + public var isSecret: kotlin.Boolean + @JvmName("getIsSecret") + get() = _builder.getIsSecret() + @JvmName("setIsSecret") + set(value) { + _builder.setIsSecret(value) + } + /** + * `bool is_secret = 2 [json_name = "isSecret"];` + */ + public fun clearIsSecret() { + _builder.clearIsSecret() + } + + /** + * `uint64 created_at = 3 [json_name = "createdAt"];` + */ + public var createdAt: kotlin.Long + @JvmName("getCreatedAt") + get() = _builder.getCreatedAt() + @JvmName("setCreatedAt") + set(value) { + _builder.setCreatedAt(value) + } + /** + * `uint64 created_at = 3 [json_name = "createdAt"];` + */ + public fun clearCreatedAt() { + _builder.clearCreatedAt() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.APIKey.copy(block: com.stabilityai.api.dashboard.v1.APIKeyKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.APIKey = + com.stabilityai.api.dashboard.v1.APIKeyKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyRequestKt.kt new file mode 100644 index 0000000..5c7b751 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyRequestKt.kt @@ -0,0 +1,51 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializeaPIKeyRequest") +public inline fun aPIKeyRequest(block: com.stabilityai.api.dashboard.v1.APIKeyRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.APIKeyRequest = + com.stabilityai.api.dashboard.v1.APIKeyRequestKt.Dsl._create(com.stabilityai.api.dashboard.v1.APIKeyRequest.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.APIKeyRequest` + */ +public object APIKeyRequestKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.APIKeyRequest.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.APIKeyRequest.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.APIKeyRequest = _builder.build() + + /** + * `bool is_secret = 1 [json_name = "isSecret"];` + */ + public var isSecret: kotlin.Boolean + @JvmName("getIsSecret") + get() = _builder.getIsSecret() + @JvmName("setIsSecret") + set(value) { + _builder.setIsSecret(value) + } + /** + * `bool is_secret = 1 [json_name = "isSecret"];` + */ + public fun clearIsSecret() { + _builder.clearIsSecret() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.APIKeyRequest.copy(block: com.stabilityai.api.dashboard.v1.APIKeyRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.APIKeyRequest = + com.stabilityai.api.dashboard.v1.APIKeyRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/AutoChargeIntentKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/AutoChargeIntentKt.kt new file mode 100644 index 0000000..02ec0de --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/AutoChargeIntentKt.kt @@ -0,0 +1,136 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializeautoChargeIntent") +public inline fun autoChargeIntent(block: com.stabilityai.api.dashboard.v1.AutoChargeIntentKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.AutoChargeIntent = + com.stabilityai.api.dashboard.v1.AutoChargeIntentKt.Dsl._create(com.stabilityai.api.dashboard.v1.AutoChargeIntent.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.AutoChargeIntent` + */ +public object AutoChargeIntentKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.AutoChargeIntent.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.AutoChargeIntent.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.AutoChargeIntent = _builder.build() + + /** + * `string id = 1 [json_name = "id"];` + */ + public var id: kotlin.String + @JvmName("getId") + get() = _builder.getId() + @JvmName("setId") + set(value) { + _builder.setId(value) + } + /** + * `string id = 1 [json_name = "id"];` + */ + public fun clearId() { + _builder.clearId() + } + + /** + * `string payment_link = 2 [json_name = "paymentLink"];` + */ + public var paymentLink: kotlin.String + @JvmName("getPaymentLink") + get() = _builder.getPaymentLink() + @JvmName("setPaymentLink") + set(value) { + _builder.setPaymentLink(value) + } + /** + * `string payment_link = 2 [json_name = "paymentLink"];` + */ + public fun clearPaymentLink() { + _builder.clearPaymentLink() + } + + /** + * `uint64 created_at = 3 [json_name = "createdAt"];` + */ + public var createdAt: kotlin.Long + @JvmName("getCreatedAt") + get() = _builder.getCreatedAt() + @JvmName("setCreatedAt") + set(value) { + _builder.setCreatedAt(value) + } + /** + * `uint64 created_at = 3 [json_name = "createdAt"];` + */ + public fun clearCreatedAt() { + _builder.clearCreatedAt() + } + + /** + * `uint64 monthly_maximum = 4 [json_name = "monthlyMaximum"];` + */ + public var monthlyMaximum: kotlin.Long + @JvmName("getMonthlyMaximum") + get() = _builder.getMonthlyMaximum() + @JvmName("setMonthlyMaximum") + set(value) { + _builder.setMonthlyMaximum(value) + } + /** + * `uint64 monthly_maximum = 4 [json_name = "monthlyMaximum"];` + */ + public fun clearMonthlyMaximum() { + _builder.clearMonthlyMaximum() + } + + /** + * `uint64 minimum_value = 5 [json_name = "minimumValue"];` + */ + public var minimumValue: kotlin.Long + @JvmName("getMinimumValue") + get() = _builder.getMinimumValue() + @JvmName("setMinimumValue") + set(value) { + _builder.setMinimumValue(value) + } + /** + * `uint64 minimum_value = 5 [json_name = "minimumValue"];` + */ + public fun clearMinimumValue() { + _builder.clearMinimumValue() + } + + /** + * `uint64 amount_credits = 6 [json_name = "amountCredits"];` + */ + public var amountCredits: kotlin.Long + @JvmName("getAmountCredits") + get() = _builder.getAmountCredits() + @JvmName("setAmountCredits") + set(value) { + _builder.setAmountCredits(value) + } + /** + * `uint64 amount_credits = 6 [json_name = "amountCredits"];` + */ + public fun clearAmountCredits() { + _builder.clearAmountCredits() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.AutoChargeIntent.copy(block: com.stabilityai.api.dashboard.v1.AutoChargeIntentKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.AutoChargeIntent = + com.stabilityai.api.dashboard.v1.AutoChargeIntentKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/ChargeKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/ChargeKt.kt new file mode 100644 index 0000000..8591021 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/ChargeKt.kt @@ -0,0 +1,136 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializecharge") +public inline fun charge(block: com.stabilityai.api.dashboard.v1.ChargeKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.Charge = + com.stabilityai.api.dashboard.v1.ChargeKt.Dsl._create(com.stabilityai.api.dashboard.v1.Charge.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.Charge` + */ +public object ChargeKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.Charge.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.Charge.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.Charge = _builder.build() + + /** + * `string id = 1 [json_name = "id"];` + */ + public var id: kotlin.String + @JvmName("getId") + get() = _builder.getId() + @JvmName("setId") + set(value) { + _builder.setId(value) + } + /** + * `string id = 1 [json_name = "id"];` + */ + public fun clearId() { + _builder.clearId() + } + + /** + * `bool paid = 2 [json_name = "paid"];` + */ + public var paid: kotlin.Boolean + @JvmName("getPaid") + get() = _builder.getPaid() + @JvmName("setPaid") + set(value) { + _builder.setPaid(value) + } + /** + * `bool paid = 2 [json_name = "paid"];` + */ + public fun clearPaid() { + _builder.clearPaid() + } + + /** + * `string receipt_link = 3 [json_name = "receiptLink"];` + */ + public var receiptLink: kotlin.String + @JvmName("getReceiptLink") + get() = _builder.getReceiptLink() + @JvmName("setReceiptLink") + set(value) { + _builder.setReceiptLink(value) + } + /** + * `string receipt_link = 3 [json_name = "receiptLink"];` + */ + public fun clearReceiptLink() { + _builder.clearReceiptLink() + } + + /** + * `string payment_link = 4 [json_name = "paymentLink"];` + */ + public var paymentLink: kotlin.String + @JvmName("getPaymentLink") + get() = _builder.getPaymentLink() + @JvmName("setPaymentLink") + set(value) { + _builder.setPaymentLink(value) + } + /** + * `string payment_link = 4 [json_name = "paymentLink"];` + */ + public fun clearPaymentLink() { + _builder.clearPaymentLink() + } + + /** + * `uint64 created_at = 5 [json_name = "createdAt"];` + */ + public var createdAt: kotlin.Long + @JvmName("getCreatedAt") + get() = _builder.getCreatedAt() + @JvmName("setCreatedAt") + set(value) { + _builder.setCreatedAt(value) + } + /** + * `uint64 created_at = 5 [json_name = "createdAt"];` + */ + public fun clearCreatedAt() { + _builder.clearCreatedAt() + } + + /** + * `uint64 amount_credits = 6 [json_name = "amountCredits"];` + */ + public var amountCredits: kotlin.Long + @JvmName("getAmountCredits") + get() = _builder.getAmountCredits() + @JvmName("setAmountCredits") + set(value) { + _builder.setAmountCredits(value) + } + /** + * `uint64 amount_credits = 6 [json_name = "amountCredits"];` + */ + public fun clearAmountCredits() { + _builder.clearAmountCredits() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.Charge.copy(block: com.stabilityai.api.dashboard.v1.ChargeKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.Charge = + com.stabilityai.api.dashboard.v1.ChargeKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/ChargesKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/ChargesKt.kt new file mode 100644 index 0000000..3b091e5 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/ChargesKt.kt @@ -0,0 +1,106 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializecharges") +public inline fun charges(block: com.stabilityai.api.dashboard.v1.ChargesKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.Charges = + com.stabilityai.api.dashboard.v1.ChargesKt.Dsl._create(com.stabilityai.api.dashboard.v1.Charges.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.Charges` + */ +public object ChargesKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.Charges.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.Charges.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.Charges = _builder.build() + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class ChargesProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * `repeated .stabilityai.api.dashboard.v1.Charge charges = 1 [json_name = "charges"];` + */ + public val charges: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getChargesList() + ) + /** + * `repeated .stabilityai.api.dashboard.v1.Charge charges = 1 [json_name = "charges"];` + * @param value The charges to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addCharges") + public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.api.dashboard.v1.Charge) { + _builder.addCharges(value) + } + /** + * `repeated .stabilityai.api.dashboard.v1.Charge charges = 1 [json_name = "charges"];` + * @param value The charges to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignCharges") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.api.dashboard.v1.Charge) { + add(value) + } + /** + * `repeated .stabilityai.api.dashboard.v1.Charge charges = 1 [json_name = "charges"];` + * @param values The charges to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllCharges") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllCharges(values) + } + /** + * `repeated .stabilityai.api.dashboard.v1.Charge charges = 1 [json_name = "charges"];` + * @param values The charges to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllCharges") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * `repeated .stabilityai.api.dashboard.v1.Charge charges = 1 [json_name = "charges"];` + * @param index The index to set the value at. + * @param value The charges to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setCharges") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.api.dashboard.v1.Charge) { + _builder.setCharges(index, value) + } + /** + * `repeated .stabilityai.api.dashboard.v1.Charge charges = 1 [json_name = "charges"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearCharges") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearCharges() + } + + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.Charges.copy(block: com.stabilityai.api.dashboard.v1.ChargesKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.Charges = + com.stabilityai.api.dashboard.v1.ChargesKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/ClientSettingsKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/ClientSettingsKt.kt new file mode 100644 index 0000000..453f194 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/ClientSettingsKt.kt @@ -0,0 +1,51 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializeclientSettings") +public inline fun clientSettings(block: com.stabilityai.api.dashboard.v1.ClientSettingsKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.ClientSettings = + com.stabilityai.api.dashboard.v1.ClientSettingsKt.Dsl._create(com.stabilityai.api.dashboard.v1.ClientSettings.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.ClientSettings` + */ +public object ClientSettingsKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.ClientSettings.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.ClientSettings.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.ClientSettings = _builder.build() + + /** + * `bytes settings = 1 [json_name = "settings"];` + */ + public var settings: com.google.protobuf.ByteString + @JvmName("getSettings") + get() = _builder.getSettings() + @JvmName("setSettings") + set(value) { + _builder.setSettings(value) + } + /** + * `bytes settings = 1 [json_name = "settings"];` + */ + public fun clearSettings() { + _builder.clearSettings() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.ClientSettings.copy(block: com.stabilityai.api.dashboard.v1.ClientSettingsKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.ClientSettings = + com.stabilityai.api.dashboard.v1.ClientSettingsKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/CostDataKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/CostDataKt.kt new file mode 100644 index 0000000..e46216a --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/CostDataKt.kt @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializecostData") +public inline fun costData(block: com.stabilityai.api.dashboard.v1.CostDataKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.CostData = + com.stabilityai.api.dashboard.v1.CostDataKt.Dsl._create(com.stabilityai.api.dashboard.v1.CostData.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.CostData` + */ +public object CostDataKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.CostData.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.CostData.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.CostData = _builder.build() + + /** + * `uint32 amount_tokens = 1 [json_name = "amountTokens"];` + */ + public var amountTokens: kotlin.Int + @JvmName("getAmountTokens") + get() = _builder.getAmountTokens() + @JvmName("setAmountTokens") + set(value) { + _builder.setAmountTokens(value) + } + /** + * `uint32 amount_tokens = 1 [json_name = "amountTokens"];` + */ + public fun clearAmountTokens() { + _builder.clearAmountTokens() + } + + /** + * `double amount_credits = 2 [json_name = "amountCredits"];` + */ + public var amountCredits: kotlin.Double + @JvmName("getAmountCredits") + get() = _builder.getAmountCredits() + @JvmName("setAmountCredits") + set(value) { + _builder.setAmountCredits(value) + } + /** + * `double amount_credits = 2 [json_name = "amountCredits"];` + */ + public fun clearAmountCredits() { + _builder.clearAmountCredits() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.CostData.copy(block: com.stabilityai.api.dashboard.v1.CostDataKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.CostData = + com.stabilityai.api.dashboard.v1.CostDataKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/CostTotalKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/CostTotalKt.kt new file mode 100644 index 0000000..17a294e --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/CostTotalKt.kt @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializecostTotal") +public inline fun costTotal(block: com.stabilityai.api.dashboard.v1.CostTotalKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.CostTotal = + com.stabilityai.api.dashboard.v1.CostTotalKt.Dsl._create(com.stabilityai.api.dashboard.v1.CostTotal.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.CostTotal` + */ +public object CostTotalKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.CostTotal.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.CostTotal.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.CostTotal = _builder.build() + + /** + * `uint32 amount_tokens = 1 [json_name = "amountTokens"];` + */ + public var amountTokens: kotlin.Int + @JvmName("getAmountTokens") + get() = _builder.getAmountTokens() + @JvmName("setAmountTokens") + set(value) { + _builder.setAmountTokens(value) + } + /** + * `uint32 amount_tokens = 1 [json_name = "amountTokens"];` + */ + public fun clearAmountTokens() { + _builder.clearAmountTokens() + } + + /** + * `double amount_credits = 2 [json_name = "amountCredits"];` + */ + public var amountCredits: kotlin.Double + @JvmName("getAmountCredits") + get() = _builder.getAmountCredits() + @JvmName("setAmountCredits") + set(value) { + _builder.setAmountCredits(value) + } + /** + * `double amount_credits = 2 [json_name = "amountCredits"];` + */ + public fun clearAmountCredits() { + _builder.clearAmountCredits() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.CostTotal.copy(block: com.stabilityai.api.dashboard.v1.CostTotalKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.CostTotal = + com.stabilityai.api.dashboard.v1.CostTotalKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/CreateAutoChargeIntentRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/CreateAutoChargeIntentRequestKt.kt new file mode 100644 index 0000000..8517164 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/CreateAutoChargeIntentRequestKt.kt @@ -0,0 +1,102 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializecreateAutoChargeIntentRequest") +public inline fun createAutoChargeIntentRequest(block: com.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest = + com.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequestKt.Dsl._create(com.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest` + */ +public object CreateAutoChargeIntentRequestKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest = _builder.build() + + /** + * `string organization_id = 1 [json_name = "organizationId"];` + */ + public var organizationId: kotlin.String + @JvmName("getOrganizationId") + get() = _builder.getOrganizationId() + @JvmName("setOrganizationId") + set(value) { + _builder.setOrganizationId(value) + } + /** + * `string organization_id = 1 [json_name = "organizationId"];` + */ + public fun clearOrganizationId() { + _builder.clearOrganizationId() + } + + /** + * `uint64 monthly_maximum = 2 [json_name = "monthlyMaximum"];` + */ + public var monthlyMaximum: kotlin.Long + @JvmName("getMonthlyMaximum") + get() = _builder.getMonthlyMaximum() + @JvmName("setMonthlyMaximum") + set(value) { + _builder.setMonthlyMaximum(value) + } + /** + * `uint64 monthly_maximum = 2 [json_name = "monthlyMaximum"];` + */ + public fun clearMonthlyMaximum() { + _builder.clearMonthlyMaximum() + } + + /** + * `uint64 minimum_value = 3 [json_name = "minimumValue"];` + */ + public var minimumValue: kotlin.Long + @JvmName("getMinimumValue") + get() = _builder.getMinimumValue() + @JvmName("setMinimumValue") + set(value) { + _builder.setMinimumValue(value) + } + /** + * `uint64 minimum_value = 3 [json_name = "minimumValue"];` + */ + public fun clearMinimumValue() { + _builder.clearMinimumValue() + } + + /** + * `uint64 amount_credits = 4 [json_name = "amountCredits"];` + */ + public var amountCredits: kotlin.Long + @JvmName("getAmountCredits") + get() = _builder.getAmountCredits() + @JvmName("setAmountCredits") + set(value) { + _builder.setAmountCredits(value) + } + /** + * `uint64 amount_credits = 4 [json_name = "amountCredits"];` + */ + public fun clearAmountCredits() { + _builder.clearAmountCredits() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest.copy(block: com.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest = + com.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/CreateChargeRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/CreateChargeRequestKt.kt new file mode 100644 index 0000000..d7f7e02 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/CreateChargeRequestKt.kt @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializecreateChargeRequest") +public inline fun createChargeRequest(block: com.stabilityai.api.dashboard.v1.CreateChargeRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.CreateChargeRequest = + com.stabilityai.api.dashboard.v1.CreateChargeRequestKt.Dsl._create(com.stabilityai.api.dashboard.v1.CreateChargeRequest.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.CreateChargeRequest` + */ +public object CreateChargeRequestKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.CreateChargeRequest.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.CreateChargeRequest.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.CreateChargeRequest = _builder.build() + + /** + * `uint64 amount = 1 [json_name = "amount"];` + */ + public var amount: kotlin.Long + @JvmName("getAmount") + get() = _builder.getAmount() + @JvmName("setAmount") + set(value) { + _builder.setAmount(value) + } + /** + * `uint64 amount = 1 [json_name = "amount"];` + */ + public fun clearAmount() { + _builder.clearAmount() + } + + /** + * `string organization_id = 2 [json_name = "organizationId"];` + */ + public var organizationId: kotlin.String + @JvmName("getOrganizationId") + get() = _builder.getOrganizationId() + @JvmName("setOrganizationId") + set(value) { + _builder.setOrganizationId(value) + } + /** + * `string organization_id = 2 [json_name = "organizationId"];` + */ + public fun clearOrganizationId() { + _builder.clearOrganizationId() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.CreateChargeRequest.copy(block: com.stabilityai.api.dashboard.v1.CreateChargeRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.CreateChargeRequest = + com.stabilityai.api.dashboard.v1.CreateChargeRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardProtoKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardProtoKt.kt new file mode 100644 index 0000000..15a727e --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardProtoKt.kt @@ -0,0 +1,7 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardServiceClient.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardServiceClient.kt new file mode 100644 index 0000000..38135da --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardServiceClient.kt @@ -0,0 +1,218 @@ +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// +package com.stabilityai.api.dashboard.v1 + +import build.buf.connect.Headers +import build.buf.connect.MethodSpec +import build.buf.connect.ProtocolClientInterface +import build.buf.connect.ResponseMessage + +public class DashboardServiceClient( + private val client: ProtocolClientInterface, +) : DashboardServiceClientInterface { + /** + * Get info + */ + public override suspend fun getMe(request: EmptyRequest, headers: Headers): ResponseMessage + = client.unary( + request, + headers, + MethodSpec( + "stabilityai.api.dashboard.v1.DashboardService/GetMe", + com.stabilityai.api.dashboard.v1.EmptyRequest::class, + com.stabilityai.api.dashboard.v1.User::class + ), + ) + + + public override suspend fun getOrganization(request: GetOrganizationRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "stabilityai.api.dashboard.v1.DashboardService/GetOrganization", + com.stabilityai.api.dashboard.v1.GetOrganizationRequest::class, + com.stabilityai.api.dashboard.v1.Organization::class + ), + ) + + + public override suspend fun getMetrics(request: GetMetricsRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "stabilityai.api.dashboard.v1.DashboardService/GetMetrics", + com.stabilityai.api.dashboard.v1.GetMetricsRequest::class, + com.stabilityai.api.dashboard.v1.Metrics::class + ), + ) + + + /** + * API key management + */ + public override suspend fun createAPIKey(request: APIKeyRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "stabilityai.api.dashboard.v1.DashboardService/CreateAPIKey", + com.stabilityai.api.dashboard.v1.APIKeyRequest::class, + com.stabilityai.api.dashboard.v1.APIKey::class + ), + ) + + + public override suspend fun deleteAPIKey(request: APIKeyFindRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "stabilityai.api.dashboard.v1.DashboardService/DeleteAPIKey", + com.stabilityai.api.dashboard.v1.APIKeyFindRequest::class, + com.stabilityai.api.dashboard.v1.APIKey::class + ), + ) + + + /** + * User settings + */ + public override suspend fun updateDefaultOrganization(request: UpdateDefaultOrganizationRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "stabilityai.api.dashboard.v1.DashboardService/UpdateDefaultOrganization", + com.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest::class, + com.stabilityai.api.dashboard.v1.User::class + ), + ) + + + public override suspend fun getClientSettings(request: EmptyRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "stabilityai.api.dashboard.v1.DashboardService/GetClientSettings", + com.stabilityai.api.dashboard.v1.EmptyRequest::class, + com.stabilityai.api.dashboard.v1.ClientSettings::class + ), + ) + + + public override suspend fun setClientSettings(request: ClientSettings, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "stabilityai.api.dashboard.v1.DashboardService/SetClientSettings", + com.stabilityai.api.dashboard.v1.ClientSettings::class, + com.stabilityai.api.dashboard.v1.ClientSettings::class + ), + ) + + + public override suspend fun updateUserInfo(request: UpdateUserInfoRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "stabilityai.api.dashboard.v1.DashboardService/UpdateUserInfo", + com.stabilityai.api.dashboard.v1.UpdateUserInfoRequest::class, + com.stabilityai.api.dashboard.v1.User::class + ), + ) + + + public override suspend fun createPasswordChangeTicket(request: EmptyRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "stabilityai.api.dashboard.v1.DashboardService/CreatePasswordChangeTicket", + com.stabilityai.api.dashboard.v1.EmptyRequest::class, + com.stabilityai.api.dashboard.v1.UserPasswordChangeTicket::class + ), + ) + + + public override suspend fun deleteAccount(request: EmptyRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "stabilityai.api.dashboard.v1.DashboardService/DeleteAccount", + com.stabilityai.api.dashboard.v1.EmptyRequest::class, + com.stabilityai.api.dashboard.v1.User::class + ), + ) + + + /** + * Payment functions + */ + public override suspend fun createCharge(request: CreateChargeRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "stabilityai.api.dashboard.v1.DashboardService/CreateCharge", + com.stabilityai.api.dashboard.v1.CreateChargeRequest::class, + com.stabilityai.api.dashboard.v1.Charge::class + ), + ) + + + public override suspend fun getCharges(request: GetChargesRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "stabilityai.api.dashboard.v1.DashboardService/GetCharges", + com.stabilityai.api.dashboard.v1.GetChargesRequest::class, + com.stabilityai.api.dashboard.v1.Charges::class + ), + ) + + + public override suspend fun createAutoChargeIntent(request: CreateAutoChargeIntentRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "stabilityai.api.dashboard.v1.DashboardService/CreateAutoChargeIntent", + com.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest::class, + com.stabilityai.api.dashboard.v1.AutoChargeIntent::class + ), + ) + + + public override suspend fun updateAutoChargeIntent(request: CreateAutoChargeIntentRequest, + headers: Headers): ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "stabilityai.api.dashboard.v1.DashboardService/UpdateAutoChargeIntent", + com.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest::class, + com.stabilityai.api.dashboard.v1.AutoChargeIntent::class + ), + ) + + + public override suspend fun getAutoChargeIntent(request: GetAutoChargeRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "stabilityai.api.dashboard.v1.DashboardService/GetAutoChargeIntent", + com.stabilityai.api.dashboard.v1.GetAutoChargeRequest::class, + com.stabilityai.api.dashboard.v1.AutoChargeIntent::class + ), + ) + +} diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardServiceClientInterface.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardServiceClientInterface.kt new file mode 100644 index 0000000..fa56847 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardServiceClientInterface.kt @@ -0,0 +1,70 @@ +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// +package com.stabilityai.api.dashboard.v1 + +import build.buf.connect.Headers +import build.buf.connect.ResponseMessage + +public interface DashboardServiceClientInterface { + /** + * Get info + */ + public suspend fun getMe(request: EmptyRequest, headers: Headers = emptyMap()): + ResponseMessage + + public suspend fun getOrganization(request: GetOrganizationRequest, headers: Headers = + emptyMap()): ResponseMessage + + public suspend fun getMetrics(request: GetMetricsRequest, headers: Headers = emptyMap()): + ResponseMessage + + /** + * API key management + */ + public suspend fun createAPIKey(request: APIKeyRequest, headers: Headers = emptyMap()): + ResponseMessage + + public suspend fun deleteAPIKey(request: APIKeyFindRequest, headers: Headers = emptyMap()): + ResponseMessage + + /** + * User settings + */ + public suspend fun updateDefaultOrganization(request: UpdateDefaultOrganizationRequest, + headers: Headers = emptyMap()): ResponseMessage + + public suspend fun getClientSettings(request: EmptyRequest, headers: Headers = emptyMap()): + ResponseMessage + + public suspend fun setClientSettings(request: ClientSettings, headers: Headers = emptyMap()): + ResponseMessage + + public suspend fun updateUserInfo(request: UpdateUserInfoRequest, headers: Headers = emptyMap()): + ResponseMessage + + public suspend fun createPasswordChangeTicket(request: EmptyRequest, headers: Headers = + emptyMap()): ResponseMessage + + public suspend fun deleteAccount(request: EmptyRequest, headers: Headers = emptyMap()): + ResponseMessage + + /** + * Payment functions + */ + public suspend fun createCharge(request: CreateChargeRequest, headers: Headers = emptyMap()): + ResponseMessage + + public suspend fun getCharges(request: GetChargesRequest, headers: Headers = emptyMap()): + ResponseMessage + + public suspend fun createAutoChargeIntent(request: CreateAutoChargeIntentRequest, headers: Headers + = emptyMap()): ResponseMessage + + public suspend fun updateAutoChargeIntent(request: CreateAutoChargeIntentRequest, headers: Headers + = emptyMap()): ResponseMessage + + public suspend fun getAutoChargeIntent(request: GetAutoChargeRequest, headers: Headers = + emptyMap()): ResponseMessage +} diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/EmptyRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/EmptyRequestKt.kt new file mode 100644 index 0000000..6ad70d0 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/EmptyRequestKt.kt @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializeemptyRequest") +public inline fun emptyRequest(block: com.stabilityai.api.dashboard.v1.EmptyRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.EmptyRequest = + com.stabilityai.api.dashboard.v1.EmptyRequestKt.Dsl._create(com.stabilityai.api.dashboard.v1.EmptyRequest.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.EmptyRequest` + */ +public object EmptyRequestKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.EmptyRequest.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.EmptyRequest.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.EmptyRequest = _builder.build() + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.EmptyRequest.copy(block: com.stabilityai.api.dashboard.v1.EmptyRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.EmptyRequest = + com.stabilityai.api.dashboard.v1.EmptyRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetAutoChargeRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetAutoChargeRequestKt.kt new file mode 100644 index 0000000..1beb034 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetAutoChargeRequestKt.kt @@ -0,0 +1,51 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializegetAutoChargeRequest") +public inline fun getAutoChargeRequest(block: com.stabilityai.api.dashboard.v1.GetAutoChargeRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.GetAutoChargeRequest = + com.stabilityai.api.dashboard.v1.GetAutoChargeRequestKt.Dsl._create(com.stabilityai.api.dashboard.v1.GetAutoChargeRequest.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.GetAutoChargeRequest` + */ +public object GetAutoChargeRequestKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.GetAutoChargeRequest.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.GetAutoChargeRequest.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.GetAutoChargeRequest = _builder.build() + + /** + * `string organization_id = 1 [json_name = "organizationId"];` + */ + public var organizationId: kotlin.String + @JvmName("getOrganizationId") + get() = _builder.getOrganizationId() + @JvmName("setOrganizationId") + set(value) { + _builder.setOrganizationId(value) + } + /** + * `string organization_id = 1 [json_name = "organizationId"];` + */ + public fun clearOrganizationId() { + _builder.clearOrganizationId() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.GetAutoChargeRequest.copy(block: com.stabilityai.api.dashboard.v1.GetAutoChargeRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.GetAutoChargeRequest = + com.stabilityai.api.dashboard.v1.GetAutoChargeRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetChargesRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetChargesRequestKt.kt new file mode 100644 index 0000000..2f0a938 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetChargesRequestKt.kt @@ -0,0 +1,85 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializegetChargesRequest") +public inline fun getChargesRequest(block: com.stabilityai.api.dashboard.v1.GetChargesRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.GetChargesRequest = + com.stabilityai.api.dashboard.v1.GetChargesRequestKt.Dsl._create(com.stabilityai.api.dashboard.v1.GetChargesRequest.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.GetChargesRequest` + */ +public object GetChargesRequestKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.GetChargesRequest.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.GetChargesRequest.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.GetChargesRequest = _builder.build() + + /** + * `string organization_id = 1 [json_name = "organizationId"];` + */ + public var organizationId: kotlin.String + @JvmName("getOrganizationId") + get() = _builder.getOrganizationId() + @JvmName("setOrganizationId") + set(value) { + _builder.setOrganizationId(value) + } + /** + * `string organization_id = 1 [json_name = "organizationId"];` + */ + public fun clearOrganizationId() { + _builder.clearOrganizationId() + } + + /** + * `uint64 range_from = 2 [json_name = "rangeFrom"];` + */ + public var rangeFrom: kotlin.Long + @JvmName("getRangeFrom") + get() = _builder.getRangeFrom() + @JvmName("setRangeFrom") + set(value) { + _builder.setRangeFrom(value) + } + /** + * `uint64 range_from = 2 [json_name = "rangeFrom"];` + */ + public fun clearRangeFrom() { + _builder.clearRangeFrom() + } + + /** + * `uint64 range_to = 3 [json_name = "rangeTo"];` + */ + public var rangeTo: kotlin.Long + @JvmName("getRangeTo") + get() = _builder.getRangeTo() + @JvmName("setRangeTo") + set(value) { + _builder.setRangeTo(value) + } + /** + * `uint64 range_to = 3 [json_name = "rangeTo"];` + */ + public fun clearRangeTo() { + _builder.clearRangeTo() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.GetChargesRequest.copy(block: com.stabilityai.api.dashboard.v1.GetChargesRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.GetChargesRequest = + com.stabilityai.api.dashboard.v1.GetChargesRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetMetricsRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetMetricsRequestKt.kt new file mode 100644 index 0000000..7528ed3 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetMetricsRequestKt.kt @@ -0,0 +1,126 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializegetMetricsRequest") +public inline fun getMetricsRequest(block: com.stabilityai.api.dashboard.v1.GetMetricsRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.GetMetricsRequest = + com.stabilityai.api.dashboard.v1.GetMetricsRequestKt.Dsl._create(com.stabilityai.api.dashboard.v1.GetMetricsRequest.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.GetMetricsRequest` + */ +public object GetMetricsRequestKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.GetMetricsRequest.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.GetMetricsRequest.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.GetMetricsRequest = _builder.build() + + /** + * `string organization_id = 1 [json_name = "organizationId"];` + */ + public var organizationId: kotlin.String + @JvmName("getOrganizationId") + get() = _builder.getOrganizationId() + @JvmName("setOrganizationId") + set(value) { + _builder.setOrganizationId(value) + } + /** + * `string organization_id = 1 [json_name = "organizationId"];` + */ + public fun clearOrganizationId() { + _builder.clearOrganizationId() + } + + /** + * `optional string user_id = 2 [json_name = "userId"];` + */ + public var userId: kotlin.String + @JvmName("getUserId") + get() = _builder.getUserId() + @JvmName("setUserId") + set(value) { + _builder.setUserId(value) + } + /** + * `optional string user_id = 2 [json_name = "userId"];` + */ + public fun clearUserId() { + _builder.clearUserId() + } + /** + * `optional string user_id = 2 [json_name = "userId"];` + * @return Whether the userId field is set. + */ + public fun hasUserId(): kotlin.Boolean { + return _builder.hasUserId() + } + + /** + * `uint64 range_from = 3 [json_name = "rangeFrom"];` + */ + public var rangeFrom: kotlin.Long + @JvmName("getRangeFrom") + get() = _builder.getRangeFrom() + @JvmName("setRangeFrom") + set(value) { + _builder.setRangeFrom(value) + } + /** + * `uint64 range_from = 3 [json_name = "rangeFrom"];` + */ + public fun clearRangeFrom() { + _builder.clearRangeFrom() + } + + /** + * `uint64 range_to = 4 [json_name = "rangeTo"];` + */ + public var rangeTo: kotlin.Long + @JvmName("getRangeTo") + get() = _builder.getRangeTo() + @JvmName("setRangeTo") + set(value) { + _builder.setRangeTo(value) + } + /** + * `uint64 range_to = 4 [json_name = "rangeTo"];` + */ + public fun clearRangeTo() { + _builder.clearRangeTo() + } + + /** + * `bool include_per_request_metrics = 5 [json_name = "includePerRequestMetrics"];` + */ + public var includePerRequestMetrics: kotlin.Boolean + @JvmName("getIncludePerRequestMetrics") + get() = _builder.getIncludePerRequestMetrics() + @JvmName("setIncludePerRequestMetrics") + set(value) { + _builder.setIncludePerRequestMetrics(value) + } + /** + * `bool include_per_request_metrics = 5 [json_name = "includePerRequestMetrics"];` + */ + public fun clearIncludePerRequestMetrics() { + _builder.clearIncludePerRequestMetrics() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.GetMetricsRequest.copy(block: com.stabilityai.api.dashboard.v1.GetMetricsRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.GetMetricsRequest = + com.stabilityai.api.dashboard.v1.GetMetricsRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetOrganizationRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetOrganizationRequestKt.kt new file mode 100644 index 0000000..108ec7b --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetOrganizationRequestKt.kt @@ -0,0 +1,51 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializegetOrganizationRequest") +public inline fun getOrganizationRequest(block: com.stabilityai.api.dashboard.v1.GetOrganizationRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.GetOrganizationRequest = + com.stabilityai.api.dashboard.v1.GetOrganizationRequestKt.Dsl._create(com.stabilityai.api.dashboard.v1.GetOrganizationRequest.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.GetOrganizationRequest` + */ +public object GetOrganizationRequestKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.GetOrganizationRequest.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.GetOrganizationRequest.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.GetOrganizationRequest = _builder.build() + + /** + * `string id = 1 [json_name = "id"];` + */ + public var id: kotlin.String + @JvmName("getId") + get() = _builder.getId() + @JvmName("setId") + set(value) { + _builder.setId(value) + } + /** + * `string id = 1 [json_name = "id"];` + */ + public fun clearId() { + _builder.clearId() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.GetOrganizationRequest.copy(block: com.stabilityai.api.dashboard.v1.GetOrganizationRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.GetOrganizationRequest = + com.stabilityai.api.dashboard.v1.GetOrganizationRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/MetricsKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/MetricsKt.kt new file mode 100644 index 0000000..a733e69 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/MetricsKt.kt @@ -0,0 +1,133 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializemetrics") +public inline fun metrics(block: com.stabilityai.api.dashboard.v1.MetricsKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.Metrics = + com.stabilityai.api.dashboard.v1.MetricsKt.Dsl._create(com.stabilityai.api.dashboard.v1.Metrics.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.Metrics` + */ +public object MetricsKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.Metrics.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.Metrics.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.Metrics = _builder.build() + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class MetricsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * `repeated .stabilityai.api.dashboard.v1.UsageMetric metrics = 1 [json_name = "metrics"];` + */ + public val metrics: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getMetricsList() + ) + /** + * `repeated .stabilityai.api.dashboard.v1.UsageMetric metrics = 1 [json_name = "metrics"];` + * @param value The metrics to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addMetrics") + public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.api.dashboard.v1.UsageMetric) { + _builder.addMetrics(value) + } + /** + * `repeated .stabilityai.api.dashboard.v1.UsageMetric metrics = 1 [json_name = "metrics"];` + * @param value The metrics to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignMetrics") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.api.dashboard.v1.UsageMetric) { + add(value) + } + /** + * `repeated .stabilityai.api.dashboard.v1.UsageMetric metrics = 1 [json_name = "metrics"];` + * @param values The metrics to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllMetrics") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllMetrics(values) + } + /** + * `repeated .stabilityai.api.dashboard.v1.UsageMetric metrics = 1 [json_name = "metrics"];` + * @param values The metrics to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllMetrics") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * `repeated .stabilityai.api.dashboard.v1.UsageMetric metrics = 1 [json_name = "metrics"];` + * @param index The index to set the value at. + * @param value The metrics to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setMetrics") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.api.dashboard.v1.UsageMetric) { + _builder.setMetrics(index, value) + } + /** + * `repeated .stabilityai.api.dashboard.v1.UsageMetric metrics = 1 [json_name = "metrics"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearMetrics") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearMetrics() + } + + + /** + * `.stabilityai.api.dashboard.v1.TotalMetricsData total = 2 [json_name = "total"];` + */ + public var total: com.stabilityai.api.dashboard.v1.TotalMetricsData + @JvmName("getTotal") + get() = _builder.getTotal() + @JvmName("setTotal") + set(value) { + _builder.setTotal(value) + } + /** + * `.stabilityai.api.dashboard.v1.TotalMetricsData total = 2 [json_name = "total"];` + */ + public fun clearTotal() { + _builder.clearTotal() + } + /** + * `.stabilityai.api.dashboard.v1.TotalMetricsData total = 2 [json_name = "total"];` + * @return Whether the total field is set. + */ + public fun hasTotal(): kotlin.Boolean { + return _builder.hasTotal() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.Metrics.copy(block: com.stabilityai.api.dashboard.v1.MetricsKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.Metrics = + com.stabilityai.api.dashboard.v1.MetricsKt.Dsl._create(this.toBuilder()).apply { block() }._build() + +public val com.stabilityai.api.dashboard.v1.MetricsOrBuilder.totalOrNull: com.stabilityai.api.dashboard.v1.TotalMetricsData? + get() = if (hasTotal()) getTotal() else null + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationAutoChargeKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationAutoChargeKt.kt new file mode 100644 index 0000000..7c94820 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationAutoChargeKt.kt @@ -0,0 +1,85 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializeorganizationAutoCharge") +public inline fun organizationAutoCharge(block: com.stabilityai.api.dashboard.v1.OrganizationAutoChargeKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.OrganizationAutoCharge = + com.stabilityai.api.dashboard.v1.OrganizationAutoChargeKt.Dsl._create(com.stabilityai.api.dashboard.v1.OrganizationAutoCharge.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.OrganizationAutoCharge` + */ +public object OrganizationAutoChargeKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.OrganizationAutoCharge.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.OrganizationAutoCharge.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.OrganizationAutoCharge = _builder.build() + + /** + * `bool enabled = 1 [json_name = "enabled"];` + */ + public var enabled: kotlin.Boolean + @JvmName("getEnabled") + get() = _builder.getEnabled() + @JvmName("setEnabled") + set(value) { + _builder.setEnabled(value) + } + /** + * `bool enabled = 1 [json_name = "enabled"];` + */ + public fun clearEnabled() { + _builder.clearEnabled() + } + + /** + * `string id = 2 [json_name = "id"];` + */ + public var id: kotlin.String + @JvmName("getId") + get() = _builder.getId() + @JvmName("setId") + set(value) { + _builder.setId(value) + } + /** + * `string id = 2 [json_name = "id"];` + */ + public fun clearId() { + _builder.clearId() + } + + /** + * `uint64 created_at = 3 [json_name = "createdAt"];` + */ + public var createdAt: kotlin.Long + @JvmName("getCreatedAt") + get() = _builder.getCreatedAt() + @JvmName("setCreatedAt") + set(value) { + _builder.setCreatedAt(value) + } + /** + * `uint64 created_at = 3 [json_name = "createdAt"];` + */ + public fun clearCreatedAt() { + _builder.clearCreatedAt() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.OrganizationAutoCharge.copy(block: com.stabilityai.api.dashboard.v1.OrganizationAutoChargeKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.OrganizationAutoCharge = + com.stabilityai.api.dashboard.v1.OrganizationAutoChargeKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationGrantKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationGrantKt.kt new file mode 100644 index 0000000..e2eaf16 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationGrantKt.kt @@ -0,0 +1,102 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializeorganizationGrant") +public inline fun organizationGrant(block: com.stabilityai.api.dashboard.v1.OrganizationGrantKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.OrganizationGrant = + com.stabilityai.api.dashboard.v1.OrganizationGrantKt.Dsl._create(com.stabilityai.api.dashboard.v1.OrganizationGrant.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.OrganizationGrant` + */ +public object OrganizationGrantKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.OrganizationGrant.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.OrganizationGrant.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.OrganizationGrant = _builder.build() + + /** + * `double amount_granted = 1 [json_name = "amountGranted"];` + */ + public var amountGranted: kotlin.Double + @JvmName("getAmountGranted") + get() = _builder.getAmountGranted() + @JvmName("setAmountGranted") + set(value) { + _builder.setAmountGranted(value) + } + /** + * `double amount_granted = 1 [json_name = "amountGranted"];` + */ + public fun clearAmountGranted() { + _builder.clearAmountGranted() + } + + /** + * `double amount_used = 2 [json_name = "amountUsed"];` + */ + public var amountUsed: kotlin.Double + @JvmName("getAmountUsed") + get() = _builder.getAmountUsed() + @JvmName("setAmountUsed") + set(value) { + _builder.setAmountUsed(value) + } + /** + * `double amount_used = 2 [json_name = "amountUsed"];` + */ + public fun clearAmountUsed() { + _builder.clearAmountUsed() + } + + /** + * `uint64 expires_at = 3 [json_name = "expiresAt"];` + */ + public var expiresAt: kotlin.Long + @JvmName("getExpiresAt") + get() = _builder.getExpiresAt() + @JvmName("setExpiresAt") + set(value) { + _builder.setExpiresAt(value) + } + /** + * `uint64 expires_at = 3 [json_name = "expiresAt"];` + */ + public fun clearExpiresAt() { + _builder.clearExpiresAt() + } + + /** + * `uint64 granted_at = 4 [json_name = "grantedAt"];` + */ + public var grantedAt: kotlin.Long + @JvmName("getGrantedAt") + get() = _builder.getGrantedAt() + @JvmName("setGrantedAt") + set(value) { + _builder.setGrantedAt(value) + } + /** + * `uint64 granted_at = 4 [json_name = "grantedAt"];` + */ + public fun clearGrantedAt() { + _builder.clearGrantedAt() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.OrganizationGrant.copy(block: com.stabilityai.api.dashboard.v1.OrganizationGrantKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.OrganizationGrant = + com.stabilityai.api.dashboard.v1.OrganizationGrantKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationKt.kt new file mode 100644 index 0000000..83220d0 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationKt.kt @@ -0,0 +1,239 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializeorganization") +public inline fun organization(block: com.stabilityai.api.dashboard.v1.OrganizationKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.Organization = + com.stabilityai.api.dashboard.v1.OrganizationKt.Dsl._create(com.stabilityai.api.dashboard.v1.Organization.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.Organization` + */ +public object OrganizationKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.Organization.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.Organization.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.Organization = _builder.build() + + /** + * `string id = 1 [json_name = "id"];` + */ + public var id: kotlin.String + @JvmName("getId") + get() = _builder.getId() + @JvmName("setId") + set(value) { + _builder.setId(value) + } + /** + * `string id = 1 [json_name = "id"];` + */ + public fun clearId() { + _builder.clearId() + } + + /** + * `string name = 2 [json_name = "name"];` + */ + public var name: kotlin.String + @JvmName("getName") + get() = _builder.getName() + @JvmName("setName") + set(value) { + _builder.setName(value) + } + /** + * `string name = 2 [json_name = "name"];` + */ + public fun clearName() { + _builder.clearName() + } + + /** + * `string description = 3 [json_name = "description"];` + */ + public var description: kotlin.String + @JvmName("getDescription") + get() = _builder.getDescription() + @JvmName("setDescription") + set(value) { + _builder.setDescription(value) + } + /** + * `string description = 3 [json_name = "description"];` + */ + public fun clearDescription() { + _builder.clearDescription() + } + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class MembersProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * `repeated .stabilityai.api.dashboard.v1.OrganizationMember members = 4 [json_name = "members"];` + */ + public val members: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getMembersList() + ) + /** + * `repeated .stabilityai.api.dashboard.v1.OrganizationMember members = 4 [json_name = "members"];` + * @param value The members to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addMembers") + public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.api.dashboard.v1.OrganizationMember) { + _builder.addMembers(value) + } + /** + * `repeated .stabilityai.api.dashboard.v1.OrganizationMember members = 4 [json_name = "members"];` + * @param value The members to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignMembers") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.api.dashboard.v1.OrganizationMember) { + add(value) + } + /** + * `repeated .stabilityai.api.dashboard.v1.OrganizationMember members = 4 [json_name = "members"];` + * @param values The members to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllMembers") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllMembers(values) + } + /** + * `repeated .stabilityai.api.dashboard.v1.OrganizationMember members = 4 [json_name = "members"];` + * @param values The members to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllMembers") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * `repeated .stabilityai.api.dashboard.v1.OrganizationMember members = 4 [json_name = "members"];` + * @param index The index to set the value at. + * @param value The members to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setMembers") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.api.dashboard.v1.OrganizationMember) { + _builder.setMembers(index, value) + } + /** + * `repeated .stabilityai.api.dashboard.v1.OrganizationMember members = 4 [json_name = "members"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearMembers") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearMembers() + } + + + /** + * `optional .stabilityai.api.dashboard.v1.OrganizationPaymentInfo payment_info = 5 [json_name = "paymentInfo"];` + */ + public var paymentInfo: com.stabilityai.api.dashboard.v1.OrganizationPaymentInfo + @JvmName("getPaymentInfo") + get() = _builder.getPaymentInfo() + @JvmName("setPaymentInfo") + set(value) { + _builder.setPaymentInfo(value) + } + /** + * `optional .stabilityai.api.dashboard.v1.OrganizationPaymentInfo payment_info = 5 [json_name = "paymentInfo"];` + */ + public fun clearPaymentInfo() { + _builder.clearPaymentInfo() + } + /** + * `optional .stabilityai.api.dashboard.v1.OrganizationPaymentInfo payment_info = 5 [json_name = "paymentInfo"];` + * @return Whether the paymentInfo field is set. + */ + public fun hasPaymentInfo(): kotlin.Boolean { + return _builder.hasPaymentInfo() + } + public val OrganizationKt.Dsl.paymentInfoOrNull: com.stabilityai.api.dashboard.v1.OrganizationPaymentInfo? + get() = _builder.paymentInfoOrNull + + /** + * `optional string stripe_customer_id = 6 [json_name = "stripeCustomerId"];` + */ + public var stripeCustomerId: kotlin.String + @JvmName("getStripeCustomerId") + get() = _builder.getStripeCustomerId() + @JvmName("setStripeCustomerId") + set(value) { + _builder.setStripeCustomerId(value) + } + /** + * `optional string stripe_customer_id = 6 [json_name = "stripeCustomerId"];` + */ + public fun clearStripeCustomerId() { + _builder.clearStripeCustomerId() + } + /** + * `optional string stripe_customer_id = 6 [json_name = "stripeCustomerId"];` + * @return Whether the stripeCustomerId field is set. + */ + public fun hasStripeCustomerId(): kotlin.Boolean { + return _builder.hasStripeCustomerId() + } + + /** + * `optional .stabilityai.api.dashboard.v1.OrganizationAutoCharge auto_charge = 7 [json_name = "autoCharge"];` + */ + public var autoCharge: com.stabilityai.api.dashboard.v1.OrganizationAutoCharge + @JvmName("getAutoCharge") + get() = _builder.getAutoCharge() + @JvmName("setAutoCharge") + set(value) { + _builder.setAutoCharge(value) + } + /** + * `optional .stabilityai.api.dashboard.v1.OrganizationAutoCharge auto_charge = 7 [json_name = "autoCharge"];` + */ + public fun clearAutoCharge() { + _builder.clearAutoCharge() + } + /** + * `optional .stabilityai.api.dashboard.v1.OrganizationAutoCharge auto_charge = 7 [json_name = "autoCharge"];` + * @return Whether the autoCharge field is set. + */ + public fun hasAutoCharge(): kotlin.Boolean { + return _builder.hasAutoCharge() + } + public val OrganizationKt.Dsl.autoChargeOrNull: com.stabilityai.api.dashboard.v1.OrganizationAutoCharge? + get() = _builder.autoChargeOrNull + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.Organization.copy(block: com.stabilityai.api.dashboard.v1.OrganizationKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.Organization = + com.stabilityai.api.dashboard.v1.OrganizationKt.Dsl._create(this.toBuilder()).apply { block() }._build() + +public val com.stabilityai.api.dashboard.v1.OrganizationOrBuilder.paymentInfoOrNull: com.stabilityai.api.dashboard.v1.OrganizationPaymentInfo? + get() = if (hasPaymentInfo()) getPaymentInfo() else null + +public val com.stabilityai.api.dashboard.v1.OrganizationOrBuilder.autoChargeOrNull: com.stabilityai.api.dashboard.v1.OrganizationAutoCharge? + get() = if (hasAutoCharge()) getAutoCharge() else null + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationMemberKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationMemberKt.kt new file mode 100644 index 0000000..3cf6385 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationMemberKt.kt @@ -0,0 +1,131 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializeorganizationMember") +public inline fun organizationMember(block: com.stabilityai.api.dashboard.v1.OrganizationMemberKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.OrganizationMember = + com.stabilityai.api.dashboard.v1.OrganizationMemberKt.Dsl._create(com.stabilityai.api.dashboard.v1.OrganizationMember.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.OrganizationMember` + */ +public object OrganizationMemberKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.OrganizationMember.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.OrganizationMember.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.OrganizationMember = _builder.build() + + /** + * `.stabilityai.api.dashboard.v1.Organization organization = 1 [json_name = "organization"];` + */ + public var organization: com.stabilityai.api.dashboard.v1.Organization + @JvmName("getOrganization") + get() = _builder.getOrganization() + @JvmName("setOrganization") + set(value) { + _builder.setOrganization(value) + } + /** + * `.stabilityai.api.dashboard.v1.Organization organization = 1 [json_name = "organization"];` + */ + public fun clearOrganization() { + _builder.clearOrganization() + } + /** + * `.stabilityai.api.dashboard.v1.Organization organization = 1 [json_name = "organization"];` + * @return Whether the organization field is set. + */ + public fun hasOrganization(): kotlin.Boolean { + return _builder.hasOrganization() + } + + /** + * `optional .stabilityai.api.dashboard.v1.User user = 2 [json_name = "user"];` + */ + public var user: com.stabilityai.api.dashboard.v1.User + @JvmName("getUser") + get() = _builder.getUser() + @JvmName("setUser") + set(value) { + _builder.setUser(value) + } + /** + * `optional .stabilityai.api.dashboard.v1.User user = 2 [json_name = "user"];` + */ + public fun clearUser() { + _builder.clearUser() + } + /** + * `optional .stabilityai.api.dashboard.v1.User user = 2 [json_name = "user"];` + * @return Whether the user field is set. + */ + public fun hasUser(): kotlin.Boolean { + return _builder.hasUser() + } + public val OrganizationMemberKt.Dsl.userOrNull: com.stabilityai.api.dashboard.v1.User? + get() = _builder.userOrNull + + /** + * `.stabilityai.api.dashboard.v1.OrganizationRole role = 3 [json_name = "role"];` + */ + public var role: com.stabilityai.api.dashboard.v1.OrganizationRole + @JvmName("getRole") + get() = _builder.getRole() + @JvmName("setRole") + set(value) { + _builder.setRole(value) + } + public var roleValue: kotlin.Int + @JvmName("getRoleValue") + get() = _builder.getRoleValue() + @JvmName("setRoleValue") + set(value) { + _builder.setRoleValue(value) + } + /** + * `.stabilityai.api.dashboard.v1.OrganizationRole role = 3 [json_name = "role"];` + */ + public fun clearRole() { + _builder.clearRole() + } + + /** + * `bool is_default = 4 [json_name = "isDefault"];` + */ + public var isDefault: kotlin.Boolean + @JvmName("getIsDefault") + get() = _builder.getIsDefault() + @JvmName("setIsDefault") + set(value) { + _builder.setIsDefault(value) + } + /** + * `bool is_default = 4 [json_name = "isDefault"];` + */ + public fun clearIsDefault() { + _builder.clearIsDefault() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.OrganizationMember.copy(block: com.stabilityai.api.dashboard.v1.OrganizationMemberKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.OrganizationMember = + com.stabilityai.api.dashboard.v1.OrganizationMemberKt.Dsl._create(this.toBuilder()).apply { block() }._build() + +public val com.stabilityai.api.dashboard.v1.OrganizationMemberOrBuilder.organizationOrNull: com.stabilityai.api.dashboard.v1.Organization? + get() = if (hasOrganization()) getOrganization() else null + +public val com.stabilityai.api.dashboard.v1.OrganizationMemberOrBuilder.userOrNull: com.stabilityai.api.dashboard.v1.User? + get() = if (hasUser()) getUser() else null + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationPaymentInfoKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationPaymentInfoKt.kt new file mode 100644 index 0000000..da8cda5 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationPaymentInfoKt.kt @@ -0,0 +1,123 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializeorganizationPaymentInfo") +public inline fun organizationPaymentInfo(block: com.stabilityai.api.dashboard.v1.OrganizationPaymentInfoKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.OrganizationPaymentInfo = + com.stabilityai.api.dashboard.v1.OrganizationPaymentInfoKt.Dsl._create(com.stabilityai.api.dashboard.v1.OrganizationPaymentInfo.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.OrganizationPaymentInfo` + */ +public object OrganizationPaymentInfoKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.OrganizationPaymentInfo.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.OrganizationPaymentInfo.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.OrganizationPaymentInfo = _builder.build() + + /** + * `double balance = 1 [json_name = "balance"];` + */ + public var balance: kotlin.Double + @JvmName("getBalance") + get() = _builder.getBalance() + @JvmName("setBalance") + set(value) { + _builder.setBalance(value) + } + /** + * `double balance = 1 [json_name = "balance"];` + */ + public fun clearBalance() { + _builder.clearBalance() + } + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class GrantsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * `repeated .stabilityai.api.dashboard.v1.OrganizationGrant grants = 2 [json_name = "grants"];` + */ + public val grants: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getGrantsList() + ) + /** + * `repeated .stabilityai.api.dashboard.v1.OrganizationGrant grants = 2 [json_name = "grants"];` + * @param value The grants to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addGrants") + public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.api.dashboard.v1.OrganizationGrant) { + _builder.addGrants(value) + } + /** + * `repeated .stabilityai.api.dashboard.v1.OrganizationGrant grants = 2 [json_name = "grants"];` + * @param value The grants to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignGrants") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.api.dashboard.v1.OrganizationGrant) { + add(value) + } + /** + * `repeated .stabilityai.api.dashboard.v1.OrganizationGrant grants = 2 [json_name = "grants"];` + * @param values The grants to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllGrants") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllGrants(values) + } + /** + * `repeated .stabilityai.api.dashboard.v1.OrganizationGrant grants = 2 [json_name = "grants"];` + * @param values The grants to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllGrants") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * `repeated .stabilityai.api.dashboard.v1.OrganizationGrant grants = 2 [json_name = "grants"];` + * @param index The index to set the value at. + * @param value The grants to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setGrants") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.api.dashboard.v1.OrganizationGrant) { + _builder.setGrants(index, value) + } + /** + * `repeated .stabilityai.api.dashboard.v1.OrganizationGrant grants = 2 [json_name = "grants"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearGrants") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearGrants() + } + + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.OrganizationPaymentInfo.copy(block: com.stabilityai.api.dashboard.v1.OrganizationPaymentInfoKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.OrganizationPaymentInfo = + com.stabilityai.api.dashboard.v1.OrganizationPaymentInfoKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/TotalMetricsDataKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/TotalMetricsDataKt.kt new file mode 100644 index 0000000..bf40828 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/TotalMetricsDataKt.kt @@ -0,0 +1,88 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializetotalMetricsData") +public inline fun totalMetricsData(block: com.stabilityai.api.dashboard.v1.TotalMetricsDataKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.TotalMetricsData = + com.stabilityai.api.dashboard.v1.TotalMetricsDataKt.Dsl._create(com.stabilityai.api.dashboard.v1.TotalMetricsData.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.TotalMetricsData` + */ +public object TotalMetricsDataKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.TotalMetricsData.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.TotalMetricsData.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.TotalMetricsData = _builder.build() + + /** + * `.stabilityai.api.dashboard.v1.CostTotal input_total = 1 [json_name = "inputTotal"];` + */ + public var inputTotal: com.stabilityai.api.dashboard.v1.CostTotal + @JvmName("getInputTotal") + get() = _builder.getInputTotal() + @JvmName("setInputTotal") + set(value) { + _builder.setInputTotal(value) + } + /** + * `.stabilityai.api.dashboard.v1.CostTotal input_total = 1 [json_name = "inputTotal"];` + */ + public fun clearInputTotal() { + _builder.clearInputTotal() + } + /** + * `.stabilityai.api.dashboard.v1.CostTotal input_total = 1 [json_name = "inputTotal"];` + * @return Whether the inputTotal field is set. + */ + public fun hasInputTotal(): kotlin.Boolean { + return _builder.hasInputTotal() + } + + /** + * `.stabilityai.api.dashboard.v1.CostTotal output_total = 2 [json_name = "outputTotal"];` + */ + public var outputTotal: com.stabilityai.api.dashboard.v1.CostTotal + @JvmName("getOutputTotal") + get() = _builder.getOutputTotal() + @JvmName("setOutputTotal") + set(value) { + _builder.setOutputTotal(value) + } + /** + * `.stabilityai.api.dashboard.v1.CostTotal output_total = 2 [json_name = "outputTotal"];` + */ + public fun clearOutputTotal() { + _builder.clearOutputTotal() + } + /** + * `.stabilityai.api.dashboard.v1.CostTotal output_total = 2 [json_name = "outputTotal"];` + * @return Whether the outputTotal field is set. + */ + public fun hasOutputTotal(): kotlin.Boolean { + return _builder.hasOutputTotal() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.TotalMetricsData.copy(block: com.stabilityai.api.dashboard.v1.TotalMetricsDataKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.TotalMetricsData = + com.stabilityai.api.dashboard.v1.TotalMetricsDataKt.Dsl._create(this.toBuilder()).apply { block() }._build() + +public val com.stabilityai.api.dashboard.v1.TotalMetricsDataOrBuilder.inputTotalOrNull: com.stabilityai.api.dashboard.v1.CostTotal? + get() = if (hasInputTotal()) getInputTotal() else null + +public val com.stabilityai.api.dashboard.v1.TotalMetricsDataOrBuilder.outputTotalOrNull: com.stabilityai.api.dashboard.v1.CostTotal? + get() = if (hasOutputTotal()) getOutputTotal() else null + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/UpdateDefaultOrganizationRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/UpdateDefaultOrganizationRequestKt.kt new file mode 100644 index 0000000..e8098e0 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/UpdateDefaultOrganizationRequestKt.kt @@ -0,0 +1,51 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializeupdateDefaultOrganizationRequest") +public inline fun updateDefaultOrganizationRequest(block: com.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest = + com.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequestKt.Dsl._create(com.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest` + */ +public object UpdateDefaultOrganizationRequestKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest = _builder.build() + + /** + * `string organization_id = 1 [json_name = "organizationId"];` + */ + public var organizationId: kotlin.String + @JvmName("getOrganizationId") + get() = _builder.getOrganizationId() + @JvmName("setOrganizationId") + set(value) { + _builder.setOrganizationId(value) + } + /** + * `string organization_id = 1 [json_name = "organizationId"];` + */ + public fun clearOrganizationId() { + _builder.clearOrganizationId() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest.copy(block: com.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest = + com.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/UpdateUserInfoRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/UpdateUserInfoRequestKt.kt new file mode 100644 index 0000000..b2217b5 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/UpdateUserInfoRequestKt.kt @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializeupdateUserInfoRequest") +public inline fun updateUserInfoRequest(block: com.stabilityai.api.dashboard.v1.UpdateUserInfoRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.UpdateUserInfoRequest = + com.stabilityai.api.dashboard.v1.UpdateUserInfoRequestKt.Dsl._create(com.stabilityai.api.dashboard.v1.UpdateUserInfoRequest.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.UpdateUserInfoRequest` + */ +public object UpdateUserInfoRequestKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.UpdateUserInfoRequest.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.UpdateUserInfoRequest.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.UpdateUserInfoRequest = _builder.build() + + /** + * `optional string email = 1 [json_name = "email"];` + */ + public var email: kotlin.String + @JvmName("getEmail") + get() = _builder.getEmail() + @JvmName("setEmail") + set(value) { + _builder.setEmail(value) + } + /** + * `optional string email = 1 [json_name = "email"];` + */ + public fun clearEmail() { + _builder.clearEmail() + } + /** + * `optional string email = 1 [json_name = "email"];` + * @return Whether the email field is set. + */ + public fun hasEmail(): kotlin.Boolean { + return _builder.hasEmail() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.UpdateUserInfoRequest.copy(block: com.stabilityai.api.dashboard.v1.UpdateUserInfoRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.UpdateUserInfoRequest = + com.stabilityai.api.dashboard.v1.UpdateUserInfoRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/UsageMetricKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/UsageMetricKt.kt new file mode 100644 index 0000000..8ec0b72 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/UsageMetricKt.kt @@ -0,0 +1,163 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializeusageMetric") +public inline fun usageMetric(block: com.stabilityai.api.dashboard.v1.UsageMetricKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.UsageMetric = + com.stabilityai.api.dashboard.v1.UsageMetricKt.Dsl._create(com.stabilityai.api.dashboard.v1.UsageMetric.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.UsageMetric` + */ +public object UsageMetricKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.UsageMetric.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.UsageMetric.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.UsageMetric = _builder.build() + + /** + * `string operation = 1 [json_name = "operation"];` + */ + public var operation: kotlin.String + @JvmName("getOperation") + get() = _builder.getOperation() + @JvmName("setOperation") + set(value) { + _builder.setOperation(value) + } + /** + * `string operation = 1 [json_name = "operation"];` + */ + public fun clearOperation() { + _builder.clearOperation() + } + + /** + * `string engine = 2 [json_name = "engine"];` + */ + public var engine: kotlin.String + @JvmName("getEngine") + get() = _builder.getEngine() + @JvmName("setEngine") + set(value) { + _builder.setEngine(value) + } + /** + * `string engine = 2 [json_name = "engine"];` + */ + public fun clearEngine() { + _builder.clearEngine() + } + + /** + * `.stabilityai.api.dashboard.v1.CostData input_cost = 3 [json_name = "inputCost"];` + */ + public var inputCost: com.stabilityai.api.dashboard.v1.CostData + @JvmName("getInputCost") + get() = _builder.getInputCost() + @JvmName("setInputCost") + set(value) { + _builder.setInputCost(value) + } + /** + * `.stabilityai.api.dashboard.v1.CostData input_cost = 3 [json_name = "inputCost"];` + */ + public fun clearInputCost() { + _builder.clearInputCost() + } + /** + * `.stabilityai.api.dashboard.v1.CostData input_cost = 3 [json_name = "inputCost"];` + * @return Whether the inputCost field is set. + */ + public fun hasInputCost(): kotlin.Boolean { + return _builder.hasInputCost() + } + + /** + * `.stabilityai.api.dashboard.v1.CostData output_cost = 4 [json_name = "outputCost"];` + */ + public var outputCost: com.stabilityai.api.dashboard.v1.CostData + @JvmName("getOutputCost") + get() = _builder.getOutputCost() + @JvmName("setOutputCost") + set(value) { + _builder.setOutputCost(value) + } + /** + * `.stabilityai.api.dashboard.v1.CostData output_cost = 4 [json_name = "outputCost"];` + */ + public fun clearOutputCost() { + _builder.clearOutputCost() + } + /** + * `.stabilityai.api.dashboard.v1.CostData output_cost = 4 [json_name = "outputCost"];` + * @return Whether the outputCost field is set. + */ + public fun hasOutputCost(): kotlin.Boolean { + return _builder.hasOutputCost() + } + + /** + * `optional string user = 5 [json_name = "user"];` + */ + public var user: kotlin.String + @JvmName("getUser") + get() = _builder.getUser() + @JvmName("setUser") + set(value) { + _builder.setUser(value) + } + /** + * `optional string user = 5 [json_name = "user"];` + */ + public fun clearUser() { + _builder.clearUser() + } + /** + * `optional string user = 5 [json_name = "user"];` + * @return Whether the user field is set. + */ + public fun hasUser(): kotlin.Boolean { + return _builder.hasUser() + } + + /** + * `uint64 aggregation_timestamp = 6 [json_name = "aggregationTimestamp"];` + */ + public var aggregationTimestamp: kotlin.Long + @JvmName("getAggregationTimestamp") + get() = _builder.getAggregationTimestamp() + @JvmName("setAggregationTimestamp") + set(value) { + _builder.setAggregationTimestamp(value) + } + /** + * `uint64 aggregation_timestamp = 6 [json_name = "aggregationTimestamp"];` + */ + public fun clearAggregationTimestamp() { + _builder.clearAggregationTimestamp() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.UsageMetric.copy(block: com.stabilityai.api.dashboard.v1.UsageMetricKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.UsageMetric = + com.stabilityai.api.dashboard.v1.UsageMetricKt.Dsl._create(this.toBuilder()).apply { block() }._build() + +public val com.stabilityai.api.dashboard.v1.UsageMetricOrBuilder.inputCostOrNull: com.stabilityai.api.dashboard.v1.CostData? + get() = if (hasInputCost()) getInputCost() else null + +public val com.stabilityai.api.dashboard.v1.UsageMetricOrBuilder.outputCostOrNull: com.stabilityai.api.dashboard.v1.CostData? + get() = if (hasOutputCost()) getOutputCost() else null + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/UserKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/UserKt.kt new file mode 100644 index 0000000..d77bfe8 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/UserKt.kt @@ -0,0 +1,294 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializeuser") +public inline fun user(block: com.stabilityai.api.dashboard.v1.UserKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.User = + com.stabilityai.api.dashboard.v1.UserKt.Dsl._create(com.stabilityai.api.dashboard.v1.User.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.User` + */ +public object UserKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.User.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.User.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.User = _builder.build() + + /** + * `string id = 1 [json_name = "id"];` + */ + public var id: kotlin.String + @JvmName("getId") + get() = _builder.getId() + @JvmName("setId") + set(value) { + _builder.setId(value) + } + /** + * `string id = 1 [json_name = "id"];` + */ + public fun clearId() { + _builder.clearId() + } + + /** + * `optional string auth_id = 2 [json_name = "authId"];` + */ + public var authId: kotlin.String + @JvmName("getAuthId") + get() = _builder.getAuthId() + @JvmName("setAuthId") + set(value) { + _builder.setAuthId(value) + } + /** + * `optional string auth_id = 2 [json_name = "authId"];` + */ + public fun clearAuthId() { + _builder.clearAuthId() + } + /** + * `optional string auth_id = 2 [json_name = "authId"];` + * @return Whether the authId field is set. + */ + public fun hasAuthId(): kotlin.Boolean { + return _builder.hasAuthId() + } + + /** + * `string profile_picture = 3 [json_name = "profilePicture"];` + */ + public var profilePicture: kotlin.String + @JvmName("getProfilePicture") + get() = _builder.getProfilePicture() + @JvmName("setProfilePicture") + set(value) { + _builder.setProfilePicture(value) + } + /** + * `string profile_picture = 3 [json_name = "profilePicture"];` + */ + public fun clearProfilePicture() { + _builder.clearProfilePicture() + } + + /** + * `string email = 4 [json_name = "email"];` + */ + public var email: kotlin.String + @JvmName("getEmail") + get() = _builder.getEmail() + @JvmName("setEmail") + set(value) { + _builder.setEmail(value) + } + /** + * `string email = 4 [json_name = "email"];` + */ + public fun clearEmail() { + _builder.clearEmail() + } + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class OrganizationsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * `repeated .stabilityai.api.dashboard.v1.OrganizationMember organizations = 5 [json_name = "organizations"];` + */ + public val organizations: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getOrganizationsList() + ) + /** + * `repeated .stabilityai.api.dashboard.v1.OrganizationMember organizations = 5 [json_name = "organizations"];` + * @param value The organizations to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addOrganizations") + public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.api.dashboard.v1.OrganizationMember) { + _builder.addOrganizations(value) + } + /** + * `repeated .stabilityai.api.dashboard.v1.OrganizationMember organizations = 5 [json_name = "organizations"];` + * @param value The organizations to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignOrganizations") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.api.dashboard.v1.OrganizationMember) { + add(value) + } + /** + * `repeated .stabilityai.api.dashboard.v1.OrganizationMember organizations = 5 [json_name = "organizations"];` + * @param values The organizations to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllOrganizations") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllOrganizations(values) + } + /** + * `repeated .stabilityai.api.dashboard.v1.OrganizationMember organizations = 5 [json_name = "organizations"];` + * @param values The organizations to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllOrganizations") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * `repeated .stabilityai.api.dashboard.v1.OrganizationMember organizations = 5 [json_name = "organizations"];` + * @param index The index to set the value at. + * @param value The organizations to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setOrganizations") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.api.dashboard.v1.OrganizationMember) { + _builder.setOrganizations(index, value) + } + /** + * `repeated .stabilityai.api.dashboard.v1.OrganizationMember organizations = 5 [json_name = "organizations"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearOrganizations") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearOrganizations() + } + + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class ApiKeysProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * `repeated .stabilityai.api.dashboard.v1.APIKey api_keys = 7 [json_name = "apiKeys"];` + */ + public val apiKeys: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getApiKeysList() + ) + /** + * `repeated .stabilityai.api.dashboard.v1.APIKey api_keys = 7 [json_name = "apiKeys"];` + * @param value The apiKeys to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addApiKeys") + public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.api.dashboard.v1.APIKey) { + _builder.addApiKeys(value) + } + /** + * `repeated .stabilityai.api.dashboard.v1.APIKey api_keys = 7 [json_name = "apiKeys"];` + * @param value The apiKeys to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignApiKeys") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.api.dashboard.v1.APIKey) { + add(value) + } + /** + * `repeated .stabilityai.api.dashboard.v1.APIKey api_keys = 7 [json_name = "apiKeys"];` + * @param values The apiKeys to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllApiKeys") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllApiKeys(values) + } + /** + * `repeated .stabilityai.api.dashboard.v1.APIKey api_keys = 7 [json_name = "apiKeys"];` + * @param values The apiKeys to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllApiKeys") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * `repeated .stabilityai.api.dashboard.v1.APIKey api_keys = 7 [json_name = "apiKeys"];` + * @param index The index to set the value at. + * @param value The apiKeys to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setApiKeys") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.api.dashboard.v1.APIKey) { + _builder.setApiKeys(index, value) + } + /** + * `repeated .stabilityai.api.dashboard.v1.APIKey api_keys = 7 [json_name = "apiKeys"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearApiKeys") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearApiKeys() + } + + + /** + * `uint64 created_at = 8 [json_name = "createdAt"];` + */ + public var createdAt: kotlin.Long + @JvmName("getCreatedAt") + get() = _builder.getCreatedAt() + @JvmName("setCreatedAt") + set(value) { + _builder.setCreatedAt(value) + } + /** + * `uint64 created_at = 8 [json_name = "createdAt"];` + */ + public fun clearCreatedAt() { + _builder.clearCreatedAt() + } + + /** + * `optional bool email_verified = 9 [json_name = "emailVerified"];` + */ + public var emailVerified: kotlin.Boolean + @JvmName("getEmailVerified") + get() = _builder.getEmailVerified() + @JvmName("setEmailVerified") + set(value) { + _builder.setEmailVerified(value) + } + /** + * `optional bool email_verified = 9 [json_name = "emailVerified"];` + */ + public fun clearEmailVerified() { + _builder.clearEmailVerified() + } + /** + * `optional bool email_verified = 9 [json_name = "emailVerified"];` + * @return Whether the emailVerified field is set. + */ + public fun hasEmailVerified(): kotlin.Boolean { + return _builder.hasEmailVerified() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.User.copy(block: com.stabilityai.api.dashboard.v1.UserKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.User = + com.stabilityai.api.dashboard.v1.UserKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/UserPasswordChangeTicketKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/UserPasswordChangeTicketKt.kt new file mode 100644 index 0000000..0362078 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/UserPasswordChangeTicketKt.kt @@ -0,0 +1,51 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/dashboard/v1/dashboard.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.api.dashboard.v1; + +@kotlin.jvm.JvmName("-initializeuserPasswordChangeTicket") +public inline fun userPasswordChangeTicket(block: com.stabilityai.api.dashboard.v1.UserPasswordChangeTicketKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.UserPasswordChangeTicket = + com.stabilityai.api.dashboard.v1.UserPasswordChangeTicketKt.Dsl._create(com.stabilityai.api.dashboard.v1.UserPasswordChangeTicket.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.api.dashboard.v1.UserPasswordChangeTicket` + */ +public object UserPasswordChangeTicketKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.api.dashboard.v1.UserPasswordChangeTicket.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.api.dashboard.v1.UserPasswordChangeTicket.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.api.dashboard.v1.UserPasswordChangeTicket = _builder.build() + + /** + * `string ticket = 1 [json_name = "ticket"];` + */ + public var ticket: kotlin.String + @JvmName("getTicket") + get() = _builder.getTicket() + @JvmName("setTicket") + set(value) { + _builder.setTicket(value) + } + /** + * `string ticket = 1 [json_name = "ticket"];` + */ + public fun clearTicket() { + _builder.clearTicket() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.api.dashboard.v1.UserPasswordChangeTicket.copy(block: com.stabilityai.api.dashboard.v1.UserPasswordChangeTicketKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.UserPasswordChangeTicket = + com.stabilityai.api.dashboard.v1.UserPasswordChangeTicketKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EngineInfoKt.kt b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EngineInfoKt.kt new file mode 100644 index 0000000..9dbdf2a --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EngineInfoKt.kt @@ -0,0 +1,171 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/engines/v1/engines.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.engines.v1; + +@kotlin.jvm.JvmName("-initializeengineInfo") +public inline fun engineInfo(block: com.stabilityai.platformapis.engines.v1.EngineInfoKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.engines.v1.EngineInfo = + com.stabilityai.platformapis.engines.v1.EngineInfoKt.Dsl._create(com.stabilityai.platformapis.engines.v1.EngineInfo.newBuilder()).apply { block() }._build() +/** + * ``` + * Engine info struct + * ``` + * + * Protobuf type `stabilityai.platformapis.engines.v1.EngineInfo` + */ +public object EngineInfoKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.engines.v1.EngineInfo.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.engines.v1.EngineInfo.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.engines.v1.EngineInfo = _builder.build() + + /** + * `string id = 1 [json_name = "id"];` + */ + public var id: kotlin.String + @JvmName("getId") + get() = _builder.getId() + @JvmName("setId") + set(value) { + _builder.setId(value) + } + /** + * `string id = 1 [json_name = "id"];` + */ + public fun clearId() { + _builder.clearId() + } + + /** + * `string owner = 2 [json_name = "owner"];` + */ + public var owner: kotlin.String + @JvmName("getOwner") + get() = _builder.getOwner() + @JvmName("setOwner") + set(value) { + _builder.setOwner(value) + } + /** + * `string owner = 2 [json_name = "owner"];` + */ + public fun clearOwner() { + _builder.clearOwner() + } + + /** + * `bool ready = 3 [json_name = "ready"];` + */ + public var ready: kotlin.Boolean + @JvmName("getReady") + get() = _builder.getReady() + @JvmName("setReady") + set(value) { + _builder.setReady(value) + } + /** + * `bool ready = 3 [json_name = "ready"];` + */ + public fun clearReady() { + _builder.clearReady() + } + + /** + * `.stabilityai.platformapis.engines.v1.EngineType type = 4 [json_name = "type"];` + */ + public var type: com.stabilityai.platformapis.engines.v1.EngineType + @JvmName("getType") + get() = _builder.getType() + @JvmName("setType") + set(value) { + _builder.setType(value) + } + public var typeValue: kotlin.Int + @JvmName("getTypeValue") + get() = _builder.getTypeValue() + @JvmName("setTypeValue") + set(value) { + _builder.setTypeValue(value) + } + /** + * `.stabilityai.platformapis.engines.v1.EngineType type = 4 [json_name = "type"];` + */ + public fun clearType() { + _builder.clearType() + } + + /** + * `.stabilityai.platformapis.engines.v1.EngineTokenizer tokenizer = 5 [json_name = "tokenizer"];` + */ + public var tokenizer: com.stabilityai.platformapis.engines.v1.EngineTokenizer + @JvmName("getTokenizer") + get() = _builder.getTokenizer() + @JvmName("setTokenizer") + set(value) { + _builder.setTokenizer(value) + } + public var tokenizerValue: kotlin.Int + @JvmName("getTokenizerValue") + get() = _builder.getTokenizerValue() + @JvmName("setTokenizerValue") + set(value) { + _builder.setTokenizerValue(value) + } + /** + * `.stabilityai.platformapis.engines.v1.EngineTokenizer tokenizer = 5 [json_name = "tokenizer"];` + */ + public fun clearTokenizer() { + _builder.clearTokenizer() + } + + /** + * `string name = 6 [json_name = "name"];` + */ + public var name: kotlin.String + @JvmName("getName") + get() = _builder.getName() + @JvmName("setName") + set(value) { + _builder.setName(value) + } + /** + * `string name = 6 [json_name = "name"];` + */ + public fun clearName() { + _builder.clearName() + } + + /** + * `string description = 7 [json_name = "description"];` + */ + public var description: kotlin.String + @JvmName("getDescription") + get() = _builder.getDescription() + @JvmName("setDescription") + set(value) { + _builder.setDescription(value) + } + /** + * `string description = 7 [json_name = "description"];` + */ + public fun clearDescription() { + _builder.clearDescription() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.engines.v1.EngineInfo.copy(block: com.stabilityai.platformapis.engines.v1.EngineInfoKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.engines.v1.EngineInfo = + com.stabilityai.platformapis.engines.v1.EngineInfoKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesKt.kt b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesKt.kt new file mode 100644 index 0000000..4690811 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesKt.kt @@ -0,0 +1,110 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/engines/v1/engines.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.engines.v1; + +@kotlin.jvm.JvmName("-initializeengines") +public inline fun engines(block: com.stabilityai.platformapis.engines.v1.EnginesKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.engines.v1.Engines = + com.stabilityai.platformapis.engines.v1.EnginesKt.Dsl._create(com.stabilityai.platformapis.engines.v1.Engines.newBuilder()).apply { block() }._build() +/** + * ``` + * Engine info list + * ``` + * + * Protobuf type `stabilityai.platformapis.engines.v1.Engines` + */ +public object EnginesKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.engines.v1.Engines.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.engines.v1.Engines.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.engines.v1.Engines = _builder.build() + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class EngineProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * `repeated .stabilityai.platformapis.engines.v1.EngineInfo engine = 1 [json_name = "engine"];` + */ + public val engine: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getEngineList() + ) + /** + * `repeated .stabilityai.platformapis.engines.v1.EngineInfo engine = 1 [json_name = "engine"];` + * @param value The engine to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addEngine") + public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.engines.v1.EngineInfo) { + _builder.addEngine(value) + } + /** + * `repeated .stabilityai.platformapis.engines.v1.EngineInfo engine = 1 [json_name = "engine"];` + * @param value The engine to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignEngine") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.engines.v1.EngineInfo) { + add(value) + } + /** + * `repeated .stabilityai.platformapis.engines.v1.EngineInfo engine = 1 [json_name = "engine"];` + * @param values The engine to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllEngine") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllEngine(values) + } + /** + * `repeated .stabilityai.platformapis.engines.v1.EngineInfo engine = 1 [json_name = "engine"];` + * @param values The engine to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllEngine") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * `repeated .stabilityai.platformapis.engines.v1.EngineInfo engine = 1 [json_name = "engine"];` + * @param index The index to set the value at. + * @param value The engine to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setEngine") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.engines.v1.EngineInfo) { + _builder.setEngine(index, value) + } + /** + * `repeated .stabilityai.platformapis.engines.v1.EngineInfo engine = 1 [json_name = "engine"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearEngine") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearEngine() + } + + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.engines.v1.Engines.copy(block: com.stabilityai.platformapis.engines.v1.EnginesKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.engines.v1.Engines = + com.stabilityai.platformapis.engines.v1.EnginesKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesProtoKt.kt b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesProtoKt.kt new file mode 100644 index 0000000..dfe6576 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesProtoKt.kt @@ -0,0 +1,7 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/engines/v1/engines.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.engines.v1; + diff --git a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesServiceClient.kt b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesServiceClient.kt new file mode 100644 index 0000000..5028797 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesServiceClient.kt @@ -0,0 +1,26 @@ +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: stabilityai/platformapis/engines/v1/engines.proto +// +package com.stabilityai.platformapis.engines.v1 + +import build.buf.connect.Headers +import build.buf.connect.MethodSpec +import build.buf.connect.ProtocolClientInterface +import build.buf.connect.ResponseMessage + +public class EnginesServiceClient( + private val client: ProtocolClientInterface, +) : EnginesServiceClientInterface { + public override suspend fun listEngines(request: ListEnginesRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "stabilityai.platformapis.engines.v1.EnginesService/ListEngines", + com.stabilityai.platformapis.engines.v1.ListEnginesRequest::class, + com.stabilityai.platformapis.engines.v1.Engines::class + ), + ) + +} diff --git a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesServiceClientInterface.kt b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesServiceClientInterface.kt new file mode 100644 index 0000000..bf73aef --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesServiceClientInterface.kt @@ -0,0 +1,13 @@ +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: stabilityai/platformapis/engines/v1/engines.proto +// +package com.stabilityai.platformapis.engines.v1 + +import build.buf.connect.Headers +import build.buf.connect.ResponseMessage + +public interface EnginesServiceClientInterface { + public suspend fun listEngines(request: ListEnginesRequest, headers: Headers = emptyMap()): + ResponseMessage +} diff --git a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/ListEnginesRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/ListEnginesRequestKt.kt new file mode 100644 index 0000000..8a69578 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/ListEnginesRequestKt.kt @@ -0,0 +1,38 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/engines/v1/engines.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.engines.v1; + +@kotlin.jvm.JvmName("-initializelistEnginesRequest") +public inline fun listEnginesRequest(block: com.stabilityai.platformapis.engines.v1.ListEnginesRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.engines.v1.ListEnginesRequest = + com.stabilityai.platformapis.engines.v1.ListEnginesRequestKt.Dsl._create(com.stabilityai.platformapis.engines.v1.ListEnginesRequest.newBuilder()).apply { block() }._build() +/** + * ``` + * Empty + * ``` + * + * Protobuf type `stabilityai.platformapis.engines.v1.ListEnginesRequest` + */ +public object ListEnginesRequestKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.engines.v1.ListEnginesRequest.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.engines.v1.ListEnginesRequest.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.engines.v1.ListEnginesRequest = _builder.build() + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.engines.v1.ListEnginesRequest.copy(block: com.stabilityai.platformapis.engines.v1.ListEnginesRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.engines.v1.ListEnginesRequest = + com.stabilityai.platformapis.engines.v1.ListEnginesRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerBatchKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerBatchKt.kt new file mode 100644 index 0000000..75e1234 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerBatchKt.kt @@ -0,0 +1,128 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializeanswerBatch") +public inline fun answerBatch(block: com.stabilityai.platformapis.generation.v1.AnswerBatchKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.AnswerBatch = + com.stabilityai.platformapis.generation.v1.AnswerBatchKt.Dsl._create(com.stabilityai.platformapis.generation.v1.AnswerBatch.newBuilder()).apply { block() }._build() +/** + * ``` + * An AnswerBatch is a set of Answers. It can represent one or several completed + * requests, which may be sent to the client in a single response. + * ``` + * + * Protobuf type `stabilityai.platformapis.generation.v1.AnswerBatch` + */ +public object AnswerBatchKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.AnswerBatch.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.AnswerBatch.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.AnswerBatch = _builder.build() + + /** + * `string batch_id = 1 [json_name = "batchId"];` + */ + public var batchId: kotlin.String + @JvmName("getBatchId") + get() = _builder.getBatchId() + @JvmName("setBatchId") + set(value) { + _builder.setBatchId(value) + } + /** + * `string batch_id = 1 [json_name = "batchId"];` + */ + public fun clearBatchId() { + _builder.clearBatchId() + } + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class AnswersProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * `repeated .stabilityai.platformapis.generation.v1.Answer answers = 2 [json_name = "answers"];` + */ + public val answers: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getAnswersList() + ) + /** + * `repeated .stabilityai.platformapis.generation.v1.Answer answers = 2 [json_name = "answers"];` + * @param value The answers to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAnswers") + public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.Answer) { + _builder.addAnswers(value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.Answer answers = 2 [json_name = "answers"];` + * @param value The answers to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAnswers") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.Answer) { + add(value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.Answer answers = 2 [json_name = "answers"];` + * @param values The answers to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllAnswers") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllAnswers(values) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.Answer answers = 2 [json_name = "answers"];` + * @param values The answers to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllAnswers") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.Answer answers = 2 [json_name = "answers"];` + * @param index The index to set the value at. + * @param value The answers to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setAnswers") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.Answer) { + _builder.setAnswers(index, value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.Answer answers = 2 [json_name = "answers"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearAnswers") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearAnswers() + } + + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.AnswerBatch.copy(block: com.stabilityai.platformapis.generation.v1.AnswerBatchKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.AnswerBatch = + com.stabilityai.platformapis.generation.v1.AnswerBatchKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerKt.kt new file mode 100644 index 0000000..09be80b --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerKt.kt @@ -0,0 +1,208 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializeanswer") +public inline fun answer(block: com.stabilityai.platformapis.generation.v1.AnswerKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Answer = + com.stabilityai.platformapis.generation.v1.AnswerKt.Dsl._create(com.stabilityai.platformapis.generation.v1.Answer.newBuilder()).apply { block() }._build() +/** + * ``` + * An Answer is a response to a Request. It is a set of Artifacts, which can be + * of any type and forwarded to the client or the next stage. + * ``` + * + * Protobuf type `stabilityai.platformapis.generation.v1.Answer` + */ +public object AnswerKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.Answer.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.Answer.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.Answer = _builder.build() + + /** + * `string answer_id = 1 [json_name = "answerId"];` + */ + public var answerId: kotlin.String + @JvmName("getAnswerId") + get() = _builder.getAnswerId() + @JvmName("setAnswerId") + set(value) { + _builder.setAnswerId(value) + } + /** + * `string answer_id = 1 [json_name = "answerId"];` + */ + public fun clearAnswerId() { + _builder.clearAnswerId() + } + + /** + * `string request_id = 2 [json_name = "requestId"];` + */ + public var requestId: kotlin.String + @JvmName("getRequestId") + get() = _builder.getRequestId() + @JvmName("setRequestId") + set(value) { + _builder.setRequestId(value) + } + /** + * `string request_id = 2 [json_name = "requestId"];` + */ + public fun clearRequestId() { + _builder.clearRequestId() + } + + /** + * `uint64 received = 3 [json_name = "received"];` + */ + public var received: kotlin.Long + @JvmName("getReceived") + get() = _builder.getReceived() + @JvmName("setReceived") + set(value) { + _builder.setReceived(value) + } + /** + * `uint64 received = 3 [json_name = "received"];` + */ + public fun clearReceived() { + _builder.clearReceived() + } + + /** + * `uint64 created = 4 [json_name = "created"];` + */ + public var created: kotlin.Long + @JvmName("getCreated") + get() = _builder.getCreated() + @JvmName("setCreated") + set(value) { + _builder.setCreated(value) + } + /** + * `uint64 created = 4 [json_name = "created"];` + */ + public fun clearCreated() { + _builder.clearCreated() + } + + /** + * `optional .stabilityai.platformapis.generation.v1.AnswerMeta meta = 6 [json_name = "meta"];` + */ + public var meta: com.stabilityai.platformapis.generation.v1.AnswerMeta + @JvmName("getMeta") + get() = _builder.getMeta() + @JvmName("setMeta") + set(value) { + _builder.setMeta(value) + } + /** + * `optional .stabilityai.platformapis.generation.v1.AnswerMeta meta = 6 [json_name = "meta"];` + */ + public fun clearMeta() { + _builder.clearMeta() + } + /** + * `optional .stabilityai.platformapis.generation.v1.AnswerMeta meta = 6 [json_name = "meta"];` + * @return Whether the meta field is set. + */ + public fun hasMeta(): kotlin.Boolean { + return _builder.hasMeta() + } + public val AnswerKt.Dsl.metaOrNull: com.stabilityai.platformapis.generation.v1.AnswerMeta? + get() = _builder.metaOrNull + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class ArtifactsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * `repeated .stabilityai.platformapis.generation.v1.Artifact artifacts = 7 [json_name = "artifacts"];` + */ + public val artifacts: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getArtifactsList() + ) + /** + * `repeated .stabilityai.platformapis.generation.v1.Artifact artifacts = 7 [json_name = "artifacts"];` + * @param value The artifacts to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addArtifacts") + public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.Artifact) { + _builder.addArtifacts(value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.Artifact artifacts = 7 [json_name = "artifacts"];` + * @param value The artifacts to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignArtifacts") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.Artifact) { + add(value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.Artifact artifacts = 7 [json_name = "artifacts"];` + * @param values The artifacts to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllArtifacts") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllArtifacts(values) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.Artifact artifacts = 7 [json_name = "artifacts"];` + * @param values The artifacts to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllArtifacts") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.Artifact artifacts = 7 [json_name = "artifacts"];` + * @param index The index to set the value at. + * @param value The artifacts to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setArtifacts") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.Artifact) { + _builder.setArtifacts(index, value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.Artifact artifacts = 7 [json_name = "artifacts"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearArtifacts") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearArtifacts() + } + + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.Answer.copy(block: com.stabilityai.platformapis.generation.v1.AnswerKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Answer = + com.stabilityai.platformapis.generation.v1.AnswerKt.Dsl._create(this.toBuilder()).apply { block() }._build() + +public val com.stabilityai.platformapis.generation.v1.AnswerOrBuilder.metaOrNull: com.stabilityai.platformapis.generation.v1.AnswerMeta? + get() = if (hasMeta()) getMeta() else null + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerMetaKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerMetaKt.kt new file mode 100644 index 0000000..d245dde --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerMetaKt.kt @@ -0,0 +1,135 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializeanswerMeta") +public inline fun answerMeta(block: com.stabilityai.platformapis.generation.v1.AnswerMetaKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.AnswerMeta = + com.stabilityai.platformapis.generation.v1.AnswerMetaKt.Dsl._create(com.stabilityai.platformapis.generation.v1.AnswerMeta.newBuilder()).apply { block() }._build() +/** + * ``` + * AnswerMeta is a set of metadata about an answer, usually the operating + * environment. + * ``` + * + * Protobuf type `stabilityai.platformapis.generation.v1.AnswerMeta` + */ +public object AnswerMetaKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.AnswerMeta.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.AnswerMeta.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.AnswerMeta = _builder.build() + + /** + * `optional string gpu_id = 1 [json_name = "gpuId"];` + */ + public var gpuId: kotlin.String + @JvmName("getGpuId") + get() = _builder.getGpuId() + @JvmName("setGpuId") + set(value) { + _builder.setGpuId(value) + } + /** + * `optional string gpu_id = 1 [json_name = "gpuId"];` + */ + public fun clearGpuId() { + _builder.clearGpuId() + } + /** + * `optional string gpu_id = 1 [json_name = "gpuId"];` + * @return Whether the gpuId field is set. + */ + public fun hasGpuId(): kotlin.Boolean { + return _builder.hasGpuId() + } + + /** + * `optional string cpu_id = 2 [json_name = "cpuId"];` + */ + public var cpuId: kotlin.String + @JvmName("getCpuId") + get() = _builder.getCpuId() + @JvmName("setCpuId") + set(value) { + _builder.setCpuId(value) + } + /** + * `optional string cpu_id = 2 [json_name = "cpuId"];` + */ + public fun clearCpuId() { + _builder.clearCpuId() + } + /** + * `optional string cpu_id = 2 [json_name = "cpuId"];` + * @return Whether the cpuId field is set. + */ + public fun hasCpuId(): kotlin.Boolean { + return _builder.hasCpuId() + } + + /** + * `optional string node_id = 3 [json_name = "nodeId"];` + */ + public var nodeId: kotlin.String + @JvmName("getNodeId") + get() = _builder.getNodeId() + @JvmName("setNodeId") + set(value) { + _builder.setNodeId(value) + } + /** + * `optional string node_id = 3 [json_name = "nodeId"];` + */ + public fun clearNodeId() { + _builder.clearNodeId() + } + /** + * `optional string node_id = 3 [json_name = "nodeId"];` + * @return Whether the nodeId field is set. + */ + public fun hasNodeId(): kotlin.Boolean { + return _builder.hasNodeId() + } + + /** + * `optional string engine_id = 4 [json_name = "engineId"];` + */ + public var engineId: kotlin.String + @JvmName("getEngineId") + get() = _builder.getEngineId() + @JvmName("setEngineId") + set(value) { + _builder.setEngineId(value) + } + /** + * `optional string engine_id = 4 [json_name = "engineId"];` + */ + public fun clearEngineId() { + _builder.clearEngineId() + } + /** + * `optional string engine_id = 4 [json_name = "engineId"];` + * @return Whether the engineId field is set. + */ + public fun hasEngineId(): kotlin.Boolean { + return _builder.hasEngineId() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.AnswerMeta.copy(block: com.stabilityai.platformapis.generation.v1.AnswerMetaKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.AnswerMeta = + com.stabilityai.platformapis.generation.v1.AnswerMetaKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ArtifactKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ArtifactKt.kt new file mode 100644 index 0000000..898cde5 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ArtifactKt.kt @@ -0,0 +1,457 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializeartifact") +public inline fun artifact(block: com.stabilityai.platformapis.generation.v1.ArtifactKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Artifact = + com.stabilityai.platformapis.generation.v1.ArtifactKt.Dsl._create(com.stabilityai.platformapis.generation.v1.Artifact.newBuilder()).apply { block() }._build() +/** + * ``` + * A tangible Artifact, such as an image, video, or text that is used for input + * or output. + * ``` + * + * Protobuf type `stabilityai.platformapis.generation.v1.Artifact` + */ +public object ArtifactKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.Artifact.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.Artifact.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.Artifact = _builder.build() + + /** + * `uint64 id = 1 [json_name = "id"];` + */ + public var id: kotlin.Long + @JvmName("getId") + get() = _builder.getId() + @JvmName("setId") + set(value) { + _builder.setId(value) + } + /** + * `uint64 id = 1 [json_name = "id"];` + */ + public fun clearId() { + _builder.clearId() + } + + /** + * `.stabilityai.platformapis.generation.v1.ArtifactType type = 2 [json_name = "type"];` + */ + public var type: com.stabilityai.platformapis.generation.v1.ArtifactType + @JvmName("getType") + get() = _builder.getType() + @JvmName("setType") + set(value) { + _builder.setType(value) + } + public var typeValue: kotlin.Int + @JvmName("getTypeValue") + get() = _builder.getTypeValue() + @JvmName("setTypeValue") + set(value) { + _builder.setTypeValue(value) + } + /** + * `.stabilityai.platformapis.generation.v1.ArtifactType type = 2 [json_name = "type"];` + */ + public fun clearType() { + _builder.clearType() + } + + /** + * ``` + * MIME type identifier, e.g. "image/png" + * ``` + * + * `string mime = 3 [json_name = "mime"];` + */ + public var mime: kotlin.String + @JvmName("getMime") + get() = _builder.getMime() + @JvmName("setMime") + set(value) { + _builder.setMime(value) + } + /** + * ``` + * MIME type identifier, e.g. "image/png" + * ``` + * + * `string mime = 3 [json_name = "mime"];` + */ + public fun clearMime() { + _builder.clearMime() + } + + /** + * ``` + * Magic number, e.g. "PNG" + * ``` + * + * `optional string magic = 4 [json_name = "magic"];` + */ + public var magic: kotlin.String + @JvmName("getMagic") + get() = _builder.getMagic() + @JvmName("setMagic") + set(value) { + _builder.setMagic(value) + } + /** + * ``` + * Magic number, e.g. "PNG" + * ``` + * + * `optional string magic = 4 [json_name = "magic"];` + */ + public fun clearMagic() { + _builder.clearMagic() + } + /** + * ``` + * Magic number, e.g. "PNG" + * ``` + * + * `optional string magic = 4 [json_name = "magic"];` + * @return Whether the magic field is set. + */ + public fun hasMagic(): kotlin.Boolean { + return _builder.hasMagic() + } + + /** + * ``` + * Binary data, e.g. PNG image + * ``` + * + * `bytes binary = 5 [json_name = "binary"];` + */ + public var binary: com.google.protobuf.ByteString + @JvmName("getBinary") + get() = _builder.getBinary() + @JvmName("setBinary") + set(value) { + _builder.setBinary(value) + } + /** + * ``` + * Binary data, e.g. PNG image + * ``` + * + * `bytes binary = 5 [json_name = "binary"];` + */ + public fun clearBinary() { + _builder.clearBinary() + } + /** + * ``` + * Binary data, e.g. PNG image + * ``` + * + * `bytes binary = 5 [json_name = "binary"];` + * @return Whether the binary field is set. + */ + public fun hasBinary(): kotlin.Boolean { + return _builder.hasBinary() + } + + /** + * ``` + * Text data, e.g. text prompt + * ``` + * + * `string text = 6 [json_name = "text"];` + */ + public var text: kotlin.String + @JvmName("getText") + get() = _builder.getText() + @JvmName("setText") + set(value) { + _builder.setText(value) + } + /** + * ``` + * Text data, e.g. text prompt + * ``` + * + * `string text = 6 [json_name = "text"];` + */ + public fun clearText() { + _builder.clearText() + } + /** + * ``` + * Text data, e.g. text prompt + * ``` + * + * `string text = 6 [json_name = "text"];` + * @return Whether the text field is set. + */ + public fun hasText(): kotlin.Boolean { + return _builder.hasText() + } + + /** + * ``` + * Tokenized text data, e.g. GPT tokens + * ``` + * + * `.stabilityai.platformapis.generation.v1.Tokens tokens = 7 [json_name = "tokens"];` + */ + public var tokens: com.stabilityai.platformapis.generation.v1.Tokens + @JvmName("getTokens") + get() = _builder.getTokens() + @JvmName("setTokens") + set(value) { + _builder.setTokens(value) + } + /** + * ``` + * Tokenized text data, e.g. GPT tokens + * ``` + * + * `.stabilityai.platformapis.generation.v1.Tokens tokens = 7 [json_name = "tokens"];` + */ + public fun clearTokens() { + _builder.clearTokens() + } + /** + * ``` + * Tokenized text data, e.g. GPT tokens + * ``` + * + * `.stabilityai.platformapis.generation.v1.Tokens tokens = 7 [json_name = "tokens"];` + * @return Whether the tokens field is set. + */ + public fun hasTokens(): kotlin.Boolean { + return _builder.hasTokens() + } + + /** + * `.stabilityai.platformapis.generation.v1.ClassifierParameters classifier = 11 [json_name = "classifier"];` + */ + public var classifier: com.stabilityai.platformapis.generation.v1.ClassifierParameters + @JvmName("getClassifier") + get() = _builder.getClassifier() + @JvmName("setClassifier") + set(value) { + _builder.setClassifier(value) + } + /** + * `.stabilityai.platformapis.generation.v1.ClassifierParameters classifier = 11 [json_name = "classifier"];` + */ + public fun clearClassifier() { + _builder.clearClassifier() + } + /** + * `.stabilityai.platformapis.generation.v1.ClassifierParameters classifier = 11 [json_name = "classifier"];` + * @return Whether the classifier field is set. + */ + public fun hasClassifier(): kotlin.Boolean { + return _builder.hasClassifier() + } + + /** + * ``` + * torch.Tensor: + * ``` + * + * `.tensors.Tensor tensor = 14 [json_name = "tensor"];` + */ + public var tensor: com.tensors.Tensor + @JvmName("getTensor") + get() = _builder.getTensor() + @JvmName("setTensor") + set(value) { + _builder.setTensor(value) + } + /** + * ``` + * torch.Tensor: + * ``` + * + * `.tensors.Tensor tensor = 14 [json_name = "tensor"];` + */ + public fun clearTensor() { + _builder.clearTensor() + } + /** + * ``` + * torch.Tensor: + * ``` + * + * `.tensors.Tensor tensor = 14 [json_name = "tensor"];` + * @return Whether the tensor field is set. + */ + public fun hasTensor(): kotlin.Boolean { + return _builder.hasTensor() + } + + /** + * ``` + * Index of this artifact in input/output list + * ``` + * + * `uint32 index = 8 [json_name = "index"];` + */ + public var index: kotlin.Int + @JvmName("getIndex") + get() = _builder.getIndex() + @JvmName("setIndex") + set(value) { + _builder.setIndex(value) + } + /** + * ``` + * Index of this artifact in input/output list + * ``` + * + * `uint32 index = 8 [json_name = "index"];` + */ + public fun clearIndex() { + _builder.clearIndex() + } + + /** + * ``` + * Reason for finishing, if applicable + * ``` + * + * `.stabilityai.platformapis.generation.v1.FinishReason finish_reason = 9 [json_name = "finishReason"];` + */ + public var finishReason: com.stabilityai.platformapis.generation.v1.FinishReason + @JvmName("getFinishReason") + get() = _builder.getFinishReason() + @JvmName("setFinishReason") + set(value) { + _builder.setFinishReason(value) + } + public var finishReasonValue: kotlin.Int + @JvmName("getFinishReasonValue") + get() = _builder.getFinishReasonValue() + @JvmName("setFinishReasonValue") + set(value) { + _builder.setFinishReasonValue(value) + } + /** + * ``` + * Reason for finishing, if applicable + * ``` + * + * `.stabilityai.platformapis.generation.v1.FinishReason finish_reason = 9 [json_name = "finishReason"];` + */ + public fun clearFinishReason() { + _builder.clearFinishReason() + } + + /** + * ``` + * Seed used to generate this artifact + * ``` + * + * `uint32 seed = 10 [json_name = "seed"];` + */ + public var seed: kotlin.Int + @JvmName("getSeed") + get() = _builder.getSeed() + @JvmName("setSeed") + set(value) { + _builder.setSeed(value) + } + /** + * ``` + * Seed used to generate this artifact + * ``` + * + * `uint32 seed = 10 [json_name = "seed"];` + */ + public fun clearSeed() { + _builder.clearSeed() + } + + /** + * ``` + * UUIDv4 of the artifact, used for asset lookup + * ``` + * + * `string uuid = 12 [json_name = "uuid"];` + */ + public var uuid: kotlin.String + @JvmName("getUuid") + get() = _builder.getUuid() + @JvmName("setUuid") + set(value) { + _builder.setUuid(value) + } + /** + * ``` + * UUIDv4 of the artifact, used for asset lookup + * ``` + * + * `string uuid = 12 [json_name = "uuid"];` + */ + public fun clearUuid() { + _builder.clearUuid() + } + + /** + * ``` + * Size of the artifact in bytes + * ``` + * + * `uint64 size = 13 [json_name = "size"];` + */ + public var size: kotlin.Long + @JvmName("getSize") + get() = _builder.getSize() + @JvmName("setSize") + set(value) { + _builder.setSize(value) + } + /** + * ``` + * Size of the artifact in bytes + * ``` + * + * `uint64 size = 13 [json_name = "size"];` + */ + public fun clearSize() { + _builder.clearSize() + } + public val dataCase: com.stabilityai.platformapis.generation.v1.Artifact.DataCase + @JvmName("getDataCase") + get() = _builder.getDataCase() + + public fun clearData() { + _builder.clearData() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.Artifact.copy(block: com.stabilityai.platformapis.generation.v1.ArtifactKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Artifact = + com.stabilityai.platformapis.generation.v1.ArtifactKt.Dsl._create(this.toBuilder()).apply { block() }._build() + +public val com.stabilityai.platformapis.generation.v1.ArtifactOrBuilder.tokensOrNull: com.stabilityai.platformapis.generation.v1.Tokens? + get() = if (hasTokens()) getTokens() else null + +public val com.stabilityai.platformapis.generation.v1.ArtifactOrBuilder.classifierOrNull: com.stabilityai.platformapis.generation.v1.ClassifierParameters? + get() = if (hasClassifier()) getClassifier() else null + +public val com.stabilityai.platformapis.generation.v1.ArtifactOrBuilder.tensorOrNull: com.tensors.Tensor? + get() = if (hasTensor()) getTensor() else null + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AssetParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AssetParametersKt.kt new file mode 100644 index 0000000..ab56fbc --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AssetParametersKt.kt @@ -0,0 +1,99 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializeassetParameters") +public inline fun assetParameters(block: com.stabilityai.platformapis.generation.v1.AssetParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.AssetParameters = + com.stabilityai.platformapis.generation.v1.AssetParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.AssetParameters.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.generation.v1.AssetParameters` + */ +public object AssetParametersKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.AssetParameters.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.AssetParameters.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.AssetParameters = _builder.build() + + /** + * `.stabilityai.platformapis.generation.v1.AssetAction action = 1 [json_name = "action"];` + */ + public var action: com.stabilityai.platformapis.generation.v1.AssetAction + @JvmName("getAction") + get() = _builder.getAction() + @JvmName("setAction") + set(value) { + _builder.setAction(value) + } + public var actionValue: kotlin.Int + @JvmName("getActionValue") + get() = _builder.getActionValue() + @JvmName("setActionValue") + set(value) { + _builder.setActionValue(value) + } + /** + * `.stabilityai.platformapis.generation.v1.AssetAction action = 1 [json_name = "action"];` + */ + public fun clearAction() { + _builder.clearAction() + } + + /** + * `string project_id = 2 [json_name = "projectId"];` + */ + public var projectId: kotlin.String + @JvmName("getProjectId") + get() = _builder.getProjectId() + @JvmName("setProjectId") + set(value) { + _builder.setProjectId(value) + } + /** + * `string project_id = 2 [json_name = "projectId"];` + */ + public fun clearProjectId() { + _builder.clearProjectId() + } + + /** + * `.stabilityai.platformapis.generation.v1.AssetUse use = 3 [json_name = "use"];` + */ + public var use: com.stabilityai.platformapis.generation.v1.AssetUse + @JvmName("getUse") + get() = _builder.getUse() + @JvmName("setUse") + set(value) { + _builder.setUse(value) + } + public var useValue: kotlin.Int + @JvmName("getUseValue") + get() = _builder.getUseValue() + @JvmName("setUseValue") + set(value) { + _builder.setUseValue(value) + } + /** + * `.stabilityai.platformapis.generation.v1.AssetUse use = 3 [json_name = "use"];` + */ + public fun clearUse() { + _builder.clearUse() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.AssetParameters.copy(block: com.stabilityai.platformapis.generation.v1.AssetParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.AssetParameters = + com.stabilityai.platformapis.generation.v1.AssetParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/CameraParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/CameraParametersKt.kt new file mode 100644 index 0000000..ec1c695 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/CameraParametersKt.kt @@ -0,0 +1,144 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializecameraParameters") +public inline fun cameraParameters(block: com.stabilityai.platformapis.generation.v1.CameraParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.CameraParameters = + com.stabilityai.platformapis.generation.v1.CameraParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.CameraParameters.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.generation.v1.CameraParameters` + */ +public object CameraParametersKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.CameraParameters.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.CameraParameters.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.CameraParameters = _builder.build() + + /** + * `.stabilityai.platformapis.generation.v1.CameraType camera_type = 1 [json_name = "cameraType"];` + */ + public var cameraType: com.stabilityai.platformapis.generation.v1.CameraType + @JvmName("getCameraType") + get() = _builder.getCameraType() + @JvmName("setCameraType") + set(value) { + _builder.setCameraType(value) + } + public var cameraTypeValue: kotlin.Int + @JvmName("getCameraTypeValue") + get() = _builder.getCameraTypeValue() + @JvmName("setCameraTypeValue") + set(value) { + _builder.setCameraTypeValue(value) + } + /** + * `.stabilityai.platformapis.generation.v1.CameraType camera_type = 1 [json_name = "cameraType"];` + */ + public fun clearCameraType() { + _builder.clearCameraType() + } + + /** + * ``` + * Nearest plane depth of a rendered frustum + * ``` + * + * `float near_plane = 2 [json_name = "nearPlane"];` + */ + public var nearPlane: kotlin.Float + @JvmName("getNearPlane") + get() = _builder.getNearPlane() + @JvmName("setNearPlane") + set(value) { + _builder.setNearPlane(value) + } + /** + * ``` + * Nearest plane depth of a rendered frustum + * ``` + * + * `float near_plane = 2 [json_name = "nearPlane"];` + */ + public fun clearNearPlane() { + _builder.clearNearPlane() + } + + /** + * ``` + * Farthest plane depth of a rendered frustum + * ``` + * + * `float far_plane = 3 [json_name = "farPlane"];` + */ + public var farPlane: kotlin.Float + @JvmName("getFarPlane") + get() = _builder.getFarPlane() + @JvmName("setFarPlane") + set(value) { + _builder.setFarPlane(value) + } + /** + * ``` + * Farthest plane depth of a rendered frustum + * ``` + * + * `float far_plane = 3 [json_name = "farPlane"];` + */ + public fun clearFarPlane() { + _builder.clearFarPlane() + } + + /** + * ``` + * Camera field of view (in degrees). Must be set for CAMERA_PERSPECTIVE type. + * ``` + * + * `optional float fov = 4 [json_name = "fov"];` + */ + public var fov: kotlin.Float + @JvmName("getFov") + get() = _builder.getFov() + @JvmName("setFov") + set(value) { + _builder.setFov(value) + } + /** + * ``` + * Camera field of view (in degrees). Must be set for CAMERA_PERSPECTIVE type. + * ``` + * + * `optional float fov = 4 [json_name = "fov"];` + */ + public fun clearFov() { + _builder.clearFov() + } + /** + * ``` + * Camera field of view (in degrees). Must be set for CAMERA_PERSPECTIVE type. + * ``` + * + * `optional float fov = 4 [json_name = "fov"];` + * @return Whether the fov field is set. + */ + public fun hasFov(): kotlin.Boolean { + return _builder.hasFov() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.CameraParameters.copy(block: com.stabilityai.platformapis.generation.v1.CameraParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.CameraParameters = + com.stabilityai.platformapis.generation.v1.CameraParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ChainRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ChainRequestKt.kt new file mode 100644 index 0000000..74e73d9 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ChainRequestKt.kt @@ -0,0 +1,123 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializechainRequest") +public inline fun chainRequest(block: com.stabilityai.platformapis.generation.v1.ChainRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ChainRequest = + com.stabilityai.platformapis.generation.v1.ChainRequestKt.Dsl._create(com.stabilityai.platformapis.generation.v1.ChainRequest.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.generation.v1.ChainRequest` + */ +public object ChainRequestKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.ChainRequest.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.ChainRequest.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.ChainRequest = _builder.build() + + /** + * `string request_id = 1 [json_name = "requestId"];` + */ + public var requestId: kotlin.String + @JvmName("getRequestId") + get() = _builder.getRequestId() + @JvmName("setRequestId") + set(value) { + _builder.setRequestId(value) + } + /** + * `string request_id = 1 [json_name = "requestId"];` + */ + public fun clearRequestId() { + _builder.clearRequestId() + } + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class StageProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * `repeated .stabilityai.platformapis.generation.v1.Stage stage = 2 [json_name = "stage"];` + */ + public val stage: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getStageList() + ) + /** + * `repeated .stabilityai.platformapis.generation.v1.Stage stage = 2 [json_name = "stage"];` + * @param value The stage to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addStage") + public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.Stage) { + _builder.addStage(value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.Stage stage = 2 [json_name = "stage"];` + * @param value The stage to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignStage") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.Stage) { + add(value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.Stage stage = 2 [json_name = "stage"];` + * @param values The stage to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllStage") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllStage(values) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.Stage stage = 2 [json_name = "stage"];` + * @param values The stage to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllStage") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.Stage stage = 2 [json_name = "stage"];` + * @param index The index to set the value at. + * @param value The stage to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setStage") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.Stage) { + _builder.setStage(index, value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.Stage stage = 2 [json_name = "stage"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearStage") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearStage() + } + + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.ChainRequest.copy(block: com.stabilityai.platformapis.generation.v1.ChainRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ChainRequest = + com.stabilityai.platformapis.generation.v1.ChainRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierCategoryKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierCategoryKt.kt new file mode 100644 index 0000000..941e3ea --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierCategoryKt.kt @@ -0,0 +1,209 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializeclassifierCategory") +public inline fun classifierCategory(block: com.stabilityai.platformapis.generation.v1.ClassifierCategoryKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ClassifierCategory = + com.stabilityai.platformapis.generation.v1.ClassifierCategoryKt.Dsl._create(com.stabilityai.platformapis.generation.v1.ClassifierCategory.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.generation.v1.ClassifierCategory` + */ +public object ClassifierCategoryKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.ClassifierCategory.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.ClassifierCategory.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.ClassifierCategory = _builder.build() + + /** + * `string name = 1 [json_name = "name"];` + */ + public var name: kotlin.String + @JvmName("getName") + get() = _builder.getName() + @JvmName("setName") + set(value) { + _builder.setName(value) + } + /** + * `string name = 1 [json_name = "name"];` + */ + public fun clearName() { + _builder.clearName() + } + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class ConceptsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * `repeated .stabilityai.platformapis.generation.v1.ClassifierConcept concepts = 2 [json_name = "concepts"];` + */ + public val concepts: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getConceptsList() + ) + /** + * `repeated .stabilityai.platformapis.generation.v1.ClassifierConcept concepts = 2 [json_name = "concepts"];` + * @param value The concepts to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addConcepts") + public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.ClassifierConcept) { + _builder.addConcepts(value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.ClassifierConcept concepts = 2 [json_name = "concepts"];` + * @param value The concepts to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignConcepts") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.ClassifierConcept) { + add(value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.ClassifierConcept concepts = 2 [json_name = "concepts"];` + * @param values The concepts to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllConcepts") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllConcepts(values) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.ClassifierConcept concepts = 2 [json_name = "concepts"];` + * @param values The concepts to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllConcepts") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.ClassifierConcept concepts = 2 [json_name = "concepts"];` + * @param index The index to set the value at. + * @param value The concepts to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setConcepts") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.ClassifierConcept) { + _builder.setConcepts(index, value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.ClassifierConcept concepts = 2 [json_name = "concepts"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearConcepts") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearConcepts() + } + + + /** + * `optional float adjustment = 3 [json_name = "adjustment"];` + */ + public var adjustment: kotlin.Float + @JvmName("getAdjustment") + get() = _builder.getAdjustment() + @JvmName("setAdjustment") + set(value) { + _builder.setAdjustment(value) + } + /** + * `optional float adjustment = 3 [json_name = "adjustment"];` + */ + public fun clearAdjustment() { + _builder.clearAdjustment() + } + /** + * `optional float adjustment = 3 [json_name = "adjustment"];` + * @return Whether the adjustment field is set. + */ + public fun hasAdjustment(): kotlin.Boolean { + return _builder.hasAdjustment() + } + + /** + * `optional .stabilityai.platformapis.generation.v1.Action action = 4 [json_name = "action"];` + */ + public var action: com.stabilityai.platformapis.generation.v1.Action + @JvmName("getAction") + get() = _builder.getAction() + @JvmName("setAction") + set(value) { + _builder.setAction(value) + } + public var actionValue: kotlin.Int + @JvmName("getActionValue") + get() = _builder.getActionValue() + @JvmName("setActionValue") + set(value) { + _builder.setActionValue(value) + } + /** + * `optional .stabilityai.platformapis.generation.v1.Action action = 4 [json_name = "action"];` + */ + public fun clearAction() { + _builder.clearAction() + } + /** + * `optional .stabilityai.platformapis.generation.v1.Action action = 4 [json_name = "action"];` + * @return Whether the action field is set. + */ + public fun hasAction(): kotlin.Boolean { + return _builder.hasAction() + } + + /** + * `optional .stabilityai.platformapis.generation.v1.ClassifierMode classifier_mode = 5 [json_name = "classifierMode"];` + */ + public var classifierMode: com.stabilityai.platformapis.generation.v1.ClassifierMode + @JvmName("getClassifierMode") + get() = _builder.getClassifierMode() + @JvmName("setClassifierMode") + set(value) { + _builder.setClassifierMode(value) + } + public var classifierModeValue: kotlin.Int + @JvmName("getClassifierModeValue") + get() = _builder.getClassifierModeValue() + @JvmName("setClassifierModeValue") + set(value) { + _builder.setClassifierModeValue(value) + } + /** + * `optional .stabilityai.platformapis.generation.v1.ClassifierMode classifier_mode = 5 [json_name = "classifierMode"];` + */ + public fun clearClassifierMode() { + _builder.clearClassifierMode() + } + /** + * `optional .stabilityai.platformapis.generation.v1.ClassifierMode classifier_mode = 5 [json_name = "classifierMode"];` + * @return Whether the classifierMode field is set. + */ + public fun hasClassifierMode(): kotlin.Boolean { + return _builder.hasClassifierMode() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.ClassifierCategory.copy(block: com.stabilityai.platformapis.generation.v1.ClassifierCategoryKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ClassifierCategory = + com.stabilityai.platformapis.generation.v1.ClassifierCategoryKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierConceptKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierConceptKt.kt new file mode 100644 index 0000000..e76c218 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierConceptKt.kt @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializeclassifierConcept") +public inline fun classifierConcept(block: com.stabilityai.platformapis.generation.v1.ClassifierConceptKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ClassifierConcept = + com.stabilityai.platformapis.generation.v1.ClassifierConceptKt.Dsl._create(com.stabilityai.platformapis.generation.v1.ClassifierConcept.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.generation.v1.ClassifierConcept` + */ +public object ClassifierConceptKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.ClassifierConcept.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.ClassifierConcept.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.ClassifierConcept = _builder.build() + + /** + * `string concept = 1 [json_name = "concept"];` + */ + public var concept: kotlin.String + @JvmName("getConcept") + get() = _builder.getConcept() + @JvmName("setConcept") + set(value) { + _builder.setConcept(value) + } + /** + * `string concept = 1 [json_name = "concept"];` + */ + public fun clearConcept() { + _builder.clearConcept() + } + + /** + * `optional float threshold = 2 [json_name = "threshold"];` + */ + public var threshold: kotlin.Float + @JvmName("getThreshold") + get() = _builder.getThreshold() + @JvmName("setThreshold") + set(value) { + _builder.setThreshold(value) + } + /** + * `optional float threshold = 2 [json_name = "threshold"];` + */ + public fun clearThreshold() { + _builder.clearThreshold() + } + /** + * `optional float threshold = 2 [json_name = "threshold"];` + * @return Whether the threshold field is set. + */ + public fun hasThreshold(): kotlin.Boolean { + return _builder.hasThreshold() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.ClassifierConcept.copy(block: com.stabilityai.platformapis.generation.v1.ClassifierConceptKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ClassifierConcept = + com.stabilityai.platformapis.generation.v1.ClassifierConceptKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierParametersKt.kt new file mode 100644 index 0000000..5a90a14 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierParametersKt.kt @@ -0,0 +1,209 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializeclassifierParameters") +public inline fun classifierParameters(block: com.stabilityai.platformapis.generation.v1.ClassifierParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ClassifierParameters = + com.stabilityai.platformapis.generation.v1.ClassifierParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.ClassifierParameters.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.generation.v1.ClassifierParameters` + */ +public object ClassifierParametersKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.ClassifierParameters.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.ClassifierParameters.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.ClassifierParameters = _builder.build() + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class CategoriesProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory categories = 1 [json_name = "categories"];` + */ + public val categories: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getCategoriesList() + ) + /** + * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory categories = 1 [json_name = "categories"];` + * @param value The categories to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addCategories") + public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.ClassifierCategory) { + _builder.addCategories(value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory categories = 1 [json_name = "categories"];` + * @param value The categories to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignCategories") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.ClassifierCategory) { + add(value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory categories = 1 [json_name = "categories"];` + * @param values The categories to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllCategories") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllCategories(values) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory categories = 1 [json_name = "categories"];` + * @param values The categories to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllCategories") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory categories = 1 [json_name = "categories"];` + * @param index The index to set the value at. + * @param value The categories to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setCategories") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.ClassifierCategory) { + _builder.setCategories(index, value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory categories = 1 [json_name = "categories"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearCategories") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearCategories() + } + + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class ExceedsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory exceeds = 2 [json_name = "exceeds"];` + */ + public val exceeds: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getExceedsList() + ) + /** + * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory exceeds = 2 [json_name = "exceeds"];` + * @param value The exceeds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addExceeds") + public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.ClassifierCategory) { + _builder.addExceeds(value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory exceeds = 2 [json_name = "exceeds"];` + * @param value The exceeds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignExceeds") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.ClassifierCategory) { + add(value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory exceeds = 2 [json_name = "exceeds"];` + * @param values The exceeds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllExceeds") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllExceeds(values) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory exceeds = 2 [json_name = "exceeds"];` + * @param values The exceeds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllExceeds") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory exceeds = 2 [json_name = "exceeds"];` + * @param index The index to set the value at. + * @param value The exceeds to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setExceeds") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.ClassifierCategory) { + _builder.setExceeds(index, value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory exceeds = 2 [json_name = "exceeds"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearExceeds") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearExceeds() + } + + + /** + * `optional .stabilityai.platformapis.generation.v1.Action realized_action = 3 [json_name = "realizedAction"];` + */ + public var realizedAction: com.stabilityai.platformapis.generation.v1.Action + @JvmName("getRealizedAction") + get() = _builder.getRealizedAction() + @JvmName("setRealizedAction") + set(value) { + _builder.setRealizedAction(value) + } + public var realizedActionValue: kotlin.Int + @JvmName("getRealizedActionValue") + get() = _builder.getRealizedActionValue() + @JvmName("setRealizedActionValue") + set(value) { + _builder.setRealizedActionValue(value) + } + /** + * `optional .stabilityai.platformapis.generation.v1.Action realized_action = 3 [json_name = "realizedAction"];` + */ + public fun clearRealizedAction() { + _builder.clearRealizedAction() + } + /** + * `optional .stabilityai.platformapis.generation.v1.Action realized_action = 3 [json_name = "realizedAction"];` + * @return Whether the realizedAction field is set. + */ + public fun hasRealizedAction(): kotlin.Boolean { + return _builder.hasRealizedAction() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.ClassifierParameters.copy(block: com.stabilityai.platformapis.generation.v1.ClassifierParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ClassifierParameters = + com.stabilityai.platformapis.generation.v1.ClassifierParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ConditionerParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ConditionerParametersKt.kt new file mode 100644 index 0000000..7a3c96c --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ConditionerParametersKt.kt @@ -0,0 +1,92 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializeconditionerParameters") +public inline fun conditionerParameters(block: com.stabilityai.platformapis.generation.v1.ConditionerParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ConditionerParameters = + com.stabilityai.platformapis.generation.v1.ConditionerParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.ConditionerParameters.newBuilder()).apply { block() }._build() +/** + * ``` + * Unused, but reserved for future use. Adjustments to the latents after + * initialization. + * ``` + * + * Protobuf type `stabilityai.platformapis.generation.v1.ConditionerParameters` + */ +public object ConditionerParametersKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.ConditionerParameters.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.ConditionerParameters.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.ConditionerParameters = _builder.build() + + /** + * `optional string vector_adjust_prior = 1 [json_name = "vectorAdjustPrior"];` + */ + public var vectorAdjustPrior: kotlin.String + @JvmName("getVectorAdjustPrior") + get() = _builder.getVectorAdjustPrior() + @JvmName("setVectorAdjustPrior") + set(value) { + _builder.setVectorAdjustPrior(value) + } + /** + * `optional string vector_adjust_prior = 1 [json_name = "vectorAdjustPrior"];` + */ + public fun clearVectorAdjustPrior() { + _builder.clearVectorAdjustPrior() + } + /** + * `optional string vector_adjust_prior = 1 [json_name = "vectorAdjustPrior"];` + * @return Whether the vectorAdjustPrior field is set. + */ + public fun hasVectorAdjustPrior(): kotlin.Boolean { + return _builder.hasVectorAdjustPrior() + } + + /** + * `optional .stabilityai.platformapis.generation.v1.Model conditioner = 2 [json_name = "conditioner"];` + */ + public var conditioner: com.stabilityai.platformapis.generation.v1.Model + @JvmName("getConditioner") + get() = _builder.getConditioner() + @JvmName("setConditioner") + set(value) { + _builder.setConditioner(value) + } + /** + * `optional .stabilityai.platformapis.generation.v1.Model conditioner = 2 [json_name = "conditioner"];` + */ + public fun clearConditioner() { + _builder.clearConditioner() + } + /** + * `optional .stabilityai.platformapis.generation.v1.Model conditioner = 2 [json_name = "conditioner"];` + * @return Whether the conditioner field is set. + */ + public fun hasConditioner(): kotlin.Boolean { + return _builder.hasConditioner() + } + public val ConditionerParametersKt.Dsl.conditionerOrNull: com.stabilityai.platformapis.generation.v1.Model? + get() = _builder.conditionerOrNull + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.ConditionerParameters.copy(block: com.stabilityai.platformapis.generation.v1.ConditionerParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ConditionerParameters = + com.stabilityai.platformapis.generation.v1.ConditionerParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() + +public val com.stabilityai.platformapis.generation.v1.ConditionerParametersOrBuilder.conditionerOrNull: com.stabilityai.platformapis.generation.v1.Model? + get() = if (hasConditioner()) getConditioner() else null + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/CutoutParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/CutoutParametersKt.kt new file mode 100644 index 0000000..d833867 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/CutoutParametersKt.kt @@ -0,0 +1,278 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializecutoutParameters") +public inline fun cutoutParameters(block: com.stabilityai.platformapis.generation.v1.CutoutParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.CutoutParameters = + com.stabilityai.platformapis.generation.v1.CutoutParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.CutoutParameters.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.generation.v1.CutoutParameters` + */ +public object CutoutParametersKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.CutoutParameters.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.CutoutParameters.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.CutoutParameters = _builder.build() + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class CutoutsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * ``` + * Nested cutouts, unsupported + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.CutoutParameters cutouts = 1 [json_name = "cutouts"];` + */ + public val cutouts: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getCutoutsList() + ) + /** + * ``` + * Nested cutouts, unsupported + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.CutoutParameters cutouts = 1 [json_name = "cutouts"];` + * @param value The cutouts to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addCutouts") + public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.CutoutParameters) { + _builder.addCutouts(value) + } + /** + * ``` + * Nested cutouts, unsupported + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.CutoutParameters cutouts = 1 [json_name = "cutouts"];` + * @param value The cutouts to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignCutouts") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.CutoutParameters) { + add(value) + } + /** + * ``` + * Nested cutouts, unsupported + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.CutoutParameters cutouts = 1 [json_name = "cutouts"];` + * @param values The cutouts to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllCutouts") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllCutouts(values) + } + /** + * ``` + * Nested cutouts, unsupported + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.CutoutParameters cutouts = 1 [json_name = "cutouts"];` + * @param values The cutouts to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllCutouts") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * ``` + * Nested cutouts, unsupported + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.CutoutParameters cutouts = 1 [json_name = "cutouts"];` + * @param index The index to set the value at. + * @param value The cutouts to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setCutouts") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.CutoutParameters) { + _builder.setCutouts(index, value) + } + /** + * ``` + * Nested cutouts, unsupported + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.CutoutParameters cutouts = 1 [json_name = "cutouts"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearCutouts") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearCutouts() + } + + + /** + * ``` + * 0 to n, usually 8 to 32, 0 inner + * ``` + * + * `optional uint32 count = 2 [json_name = "count"];` + */ + public var count: kotlin.Int + @JvmName("getCount") + get() = _builder.getCount() + @JvmName("setCount") + set(value) { + _builder.setCount(value) + } + /** + * ``` + * 0 to n, usually 8 to 32, 0 inner + * ``` + * + * `optional uint32 count = 2 [json_name = "count"];` + */ + public fun clearCount() { + _builder.clearCount() + } + /** + * ``` + * 0 to n, usually 8 to 32, 0 inner + * ``` + * + * `optional uint32 count = 2 [json_name = "count"];` + * @return Whether the count field is set. + */ + public fun hasCount(): kotlin.Boolean { + return _builder.hasCount() + } + + /** + * ``` + * 0.0 to 1.0, defaults to 0.2 + * ``` + * + * `optional float gray = 3 [json_name = "gray"];` + */ + public var gray: kotlin.Float + @JvmName("getGray") + get() = _builder.getGray() + @JvmName("setGray") + set(value) { + _builder.setGray(value) + } + /** + * ``` + * 0.0 to 1.0, defaults to 0.2 + * ``` + * + * `optional float gray = 3 [json_name = "gray"];` + */ + public fun clearGray() { + _builder.clearGray() + } + /** + * ``` + * 0.0 to 1.0, defaults to 0.2 + * ``` + * + * `optional float gray = 3 [json_name = "gray"];` + * @return Whether the gray field is set. + */ + public fun hasGray(): kotlin.Boolean { + return _builder.hasGray() + } + + /** + * ``` + * percentage of cutouts to blur + * ``` + * + * `optional float blur = 4 [json_name = "blur"];` + */ + public var blur: kotlin.Float + @JvmName("getBlur") + get() = _builder.getBlur() + @JvmName("setBlur") + set(value) { + _builder.setBlur(value) + } + /** + * ``` + * percentage of cutouts to blur + * ``` + * + * `optional float blur = 4 [json_name = "blur"];` + */ + public fun clearBlur() { + _builder.clearBlur() + } + /** + * ``` + * percentage of cutouts to blur + * ``` + * + * `optional float blur = 4 [json_name = "blur"];` + * @return Whether the blur field is set. + */ + public fun hasBlur(): kotlin.Boolean { + return _builder.hasBlur() + } + + /** + * ``` + * defaults to inner: 0.5, outer: 0.0 + * ``` + * + * `optional float size_power = 5 [json_name = "sizePower"];` + */ + public var sizePower: kotlin.Float + @JvmName("getSizePower") + get() = _builder.getSizePower() + @JvmName("setSizePower") + set(value) { + _builder.setSizePower(value) + } + /** + * ``` + * defaults to inner: 0.5, outer: 0.0 + * ``` + * + * `optional float size_power = 5 [json_name = "sizePower"];` + */ + public fun clearSizePower() { + _builder.clearSizePower() + } + /** + * ``` + * defaults to inner: 0.5, outer: 0.0 + * ``` + * + * `optional float size_power = 5 [json_name = "sizePower"];` + * @return Whether the sizePower field is set. + */ + public fun hasSizePower(): kotlin.Boolean { + return _builder.hasSizePower() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.CutoutParameters.copy(block: com.stabilityai.platformapis.generation.v1.CutoutParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.CutoutParameters = + com.stabilityai.platformapis.generation.v1.CutoutParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationProtoKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationProtoKt.kt new file mode 100644 index 0000000..e375700 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationProtoKt.kt @@ -0,0 +1,7 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationServiceClient.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationServiceClient.kt new file mode 100644 index 0000000..ba2a78f --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationServiceClient.kt @@ -0,0 +1,40 @@ +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: stabilityai/platformapis/generation/v1/generation.proto +// +package com.stabilityai.platformapis.generation.v1 + +import build.buf.connect.Headers +import build.buf.connect.MethodSpec +import build.buf.connect.ProtocolClientInterface +import build.buf.connect.ServerOnlyStreamInterface + +/** + * + * gRPC services + */ +public class GenerationServiceClient( + private val client: ProtocolClientInterface, +) : GenerationServiceClientInterface { + public override suspend fun generate(headers: Headers): ServerOnlyStreamInterface + = client.serverStream( + headers, + MethodSpec( + "stabilityai.platformapis.generation.v1.GenerationService/Generate", + com.stabilityai.platformapis.generation.v1.Request::class, + com.stabilityai.platformapis.generation.v1.Answer::class + ), + ) + + + public override suspend fun chainGenerate(headers: Headers): + ServerOnlyStreamInterface = client.serverStream( + headers, + MethodSpec( + "stabilityai.platformapis.generation.v1.GenerationService/ChainGenerate", + com.stabilityai.platformapis.generation.v1.ChainRequest::class, + com.stabilityai.platformapis.generation.v1.Answer::class + ), + ) + +} diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationServiceClientInterface.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationServiceClientInterface.kt new file mode 100644 index 0000000..45baed7 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationServiceClientInterface.kt @@ -0,0 +1,20 @@ +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: stabilityai/platformapis/generation/v1/generation.proto +// +package com.stabilityai.platformapis.generation.v1 + +import build.buf.connect.Headers +import build.buf.connect.ServerOnlyStreamInterface + +/** + * + * gRPC services + */ +public interface GenerationServiceClientInterface { + public suspend fun generate(headers: Headers = emptyMap()): + ServerOnlyStreamInterface + + public suspend fun chainGenerate(headers: Headers = emptyMap()): + ServerOnlyStreamInterface +} diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceInstanceParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceInstanceParametersKt.kt new file mode 100644 index 0000000..30e1164 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceInstanceParametersKt.kt @@ -0,0 +1,358 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializeguidanceInstanceParameters") +public inline fun guidanceInstanceParameters(block: com.stabilityai.platformapis.generation.v1.GuidanceInstanceParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.GuidanceInstanceParameters = + com.stabilityai.platformapis.generation.v1.GuidanceInstanceParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.GuidanceInstanceParameters.newBuilder()).apply { block() }._build() +/** + * ``` + * Parameters that affect the behavior of the guidance, typically used for CLIP. + * We can specify more than one model, and the guidance will be a weighted sum + * of the models. + * ``` + * + * Protobuf type `stabilityai.platformapis.generation.v1.GuidanceInstanceParameters` + */ +public object GuidanceInstanceParametersKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.GuidanceInstanceParameters.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.GuidanceInstanceParameters.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.GuidanceInstanceParameters = _builder.build() + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class ModelsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * ``` + * models to use for this set + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.Model models = 2 [json_name = "models"];` + */ + public val models: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getModelsList() + ) + /** + * ``` + * models to use for this set + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.Model models = 2 [json_name = "models"];` + * @param value The models to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addModels") + public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.Model) { + _builder.addModels(value) + } + /** + * ``` + * models to use for this set + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.Model models = 2 [json_name = "models"];` + * @param value The models to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignModels") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.Model) { + add(value) + } + /** + * ``` + * models to use for this set + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.Model models = 2 [json_name = "models"];` + * @param values The models to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllModels") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllModels(values) + } + /** + * ``` + * models to use for this set + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.Model models = 2 [json_name = "models"];` + * @param values The models to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllModels") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * ``` + * models to use for this set + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.Model models = 2 [json_name = "models"];` + * @param index The index to set the value at. + * @param value The models to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setModels") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.Model) { + _builder.setModels(index, value) + } + /** + * ``` + * models to use for this set + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.Model models = 2 [json_name = "models"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearModels") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearModels() + } + + + /** + * ``` + * 0.0 to 1.0, usually 0.05 to 0.225 + * ``` + * + * `optional float guidance_strength = 3 [json_name = "guidanceStrength"];` + */ + public var guidanceStrength: kotlin.Float + @JvmName("getGuidanceStrength") + get() = _builder.getGuidanceStrength() + @JvmName("setGuidanceStrength") + set(value) { + _builder.setGuidanceStrength(value) + } + /** + * ``` + * 0.0 to 1.0, usually 0.05 to 0.225 + * ``` + * + * `optional float guidance_strength = 3 [json_name = "guidanceStrength"];` + */ + public fun clearGuidanceStrength() { + _builder.clearGuidanceStrength() + } + /** + * ``` + * 0.0 to 1.0, usually 0.05 to 0.225 + * ``` + * + * `optional float guidance_strength = 3 [json_name = "guidanceStrength"];` + * @return Whether the guidanceStrength field is set. + */ + public fun hasGuidanceStrength(): kotlin.Boolean { + return _builder.hasGuidanceStrength() + } + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class ScheduleProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * ``` + * when to apply guidance + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.GuidanceScheduleParameters schedule = 4 [json_name = "schedule"];` + */ + public val schedule: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getScheduleList() + ) + /** + * ``` + * when to apply guidance + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.GuidanceScheduleParameters schedule = 4 [json_name = "schedule"];` + * @param value The schedule to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addSchedule") + public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.GuidanceScheduleParameters) { + _builder.addSchedule(value) + } + /** + * ``` + * when to apply guidance + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.GuidanceScheduleParameters schedule = 4 [json_name = "schedule"];` + * @param value The schedule to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignSchedule") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.GuidanceScheduleParameters) { + add(value) + } + /** + * ``` + * when to apply guidance + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.GuidanceScheduleParameters schedule = 4 [json_name = "schedule"];` + * @param values The schedule to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllSchedule") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllSchedule(values) + } + /** + * ``` + * when to apply guidance + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.GuidanceScheduleParameters schedule = 4 [json_name = "schedule"];` + * @param values The schedule to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllSchedule") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * ``` + * when to apply guidance + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.GuidanceScheduleParameters schedule = 4 [json_name = "schedule"];` + * @param index The index to set the value at. + * @param value The schedule to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setSchedule") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.GuidanceScheduleParameters) { + _builder.setSchedule(index, value) + } + /** + * ``` + * when to apply guidance + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.GuidanceScheduleParameters schedule = 4 [json_name = "schedule"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearSchedule") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearSchedule() + } + + + /** + * ``` + * cutout parameters + * ``` + * + * `optional .stabilityai.platformapis.generation.v1.CutoutParameters cutouts = 5 [json_name = "cutouts"];` + */ + public var cutouts: com.stabilityai.platformapis.generation.v1.CutoutParameters + @JvmName("getCutouts") + get() = _builder.getCutouts() + @JvmName("setCutouts") + set(value) { + _builder.setCutouts(value) + } + /** + * ``` + * cutout parameters + * ``` + * + * `optional .stabilityai.platformapis.generation.v1.CutoutParameters cutouts = 5 [json_name = "cutouts"];` + */ + public fun clearCutouts() { + _builder.clearCutouts() + } + /** + * ``` + * cutout parameters + * ``` + * + * `optional .stabilityai.platformapis.generation.v1.CutoutParameters cutouts = 5 [json_name = "cutouts"];` + * @return Whether the cutouts field is set. + */ + public fun hasCutouts(): kotlin.Boolean { + return _builder.hasCutouts() + } + public val GuidanceInstanceParametersKt.Dsl.cutoutsOrNull: com.stabilityai.platformapis.generation.v1.CutoutParameters? + get() = _builder.cutoutsOrNull + + /** + * ``` + * prompt to use for guidance + * ``` + * + * `optional .stabilityai.platformapis.generation.v1.Prompt prompt = 6 [json_name = "prompt"];` + */ + public var prompt: com.stabilityai.platformapis.generation.v1.Prompt + @JvmName("getPrompt") + get() = _builder.getPrompt() + @JvmName("setPrompt") + set(value) { + _builder.setPrompt(value) + } + /** + * ``` + * prompt to use for guidance + * ``` + * + * `optional .stabilityai.platformapis.generation.v1.Prompt prompt = 6 [json_name = "prompt"];` + */ + public fun clearPrompt() { + _builder.clearPrompt() + } + /** + * ``` + * prompt to use for guidance + * ``` + * + * `optional .stabilityai.platformapis.generation.v1.Prompt prompt = 6 [json_name = "prompt"];` + * @return Whether the prompt field is set. + */ + public fun hasPrompt(): kotlin.Boolean { + return _builder.hasPrompt() + } + public val GuidanceInstanceParametersKt.Dsl.promptOrNull: com.stabilityai.platformapis.generation.v1.Prompt? + get() = _builder.promptOrNull + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.GuidanceInstanceParameters.copy(block: com.stabilityai.platformapis.generation.v1.GuidanceInstanceParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.GuidanceInstanceParameters = + com.stabilityai.platformapis.generation.v1.GuidanceInstanceParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() + +public val com.stabilityai.platformapis.generation.v1.GuidanceInstanceParametersOrBuilder.cutoutsOrNull: com.stabilityai.platformapis.generation.v1.CutoutParameters? + get() = if (hasCutouts()) getCutouts() else null + +public val com.stabilityai.platformapis.generation.v1.GuidanceInstanceParametersOrBuilder.promptOrNull: com.stabilityai.platformapis.generation.v1.Prompt? + get() = if (hasPrompt()) getPrompt() else null + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceParametersKt.kt new file mode 100644 index 0000000..15758d8 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceParametersKt.kt @@ -0,0 +1,171 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializeguidanceParameters") +public inline fun guidanceParameters(block: com.stabilityai.platformapis.generation.v1.GuidanceParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.GuidanceParameters = + com.stabilityai.platformapis.generation.v1.GuidanceParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.GuidanceParameters.newBuilder()).apply { block() }._build() +/** + * ``` + * Parameters that affect the behavior of the guidance, typically used for CLIP. + * The omission of this field implies the default guidance of CFG. + * ``` + * + * Protobuf type `stabilityai.platformapis.generation.v1.GuidanceParameters` + */ +public object GuidanceParametersKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.GuidanceParameters.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.GuidanceParameters.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.GuidanceParameters = _builder.build() + + /** + * ``` + * base preset for guidance + * ``` + * + * `.stabilityai.platformapis.generation.v1.GuidancePreset guidance_preset = 1 [json_name = "guidancePreset"];` + */ + public var guidancePreset: com.stabilityai.platformapis.generation.v1.GuidancePreset + @JvmName("getGuidancePreset") + get() = _builder.getGuidancePreset() + @JvmName("setGuidancePreset") + set(value) { + _builder.setGuidancePreset(value) + } + public var guidancePresetValue: kotlin.Int + @JvmName("getGuidancePresetValue") + get() = _builder.getGuidancePresetValue() + @JvmName("setGuidancePresetValue") + set(value) { + _builder.setGuidancePresetValue(value) + } + /** + * ``` + * base preset for guidance + * ``` + * + * `.stabilityai.platformapis.generation.v1.GuidancePreset guidance_preset = 1 [json_name = "guidancePreset"];` + */ + public fun clearGuidancePreset() { + _builder.clearGuidancePreset() + } + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class InstancesProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * ``` + * guidance instances + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.GuidanceInstanceParameters instances = 2 [json_name = "instances"];` + */ + public val instances: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getInstancesList() + ) + /** + * ``` + * guidance instances + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.GuidanceInstanceParameters instances = 2 [json_name = "instances"];` + * @param value The instances to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addInstances") + public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.GuidanceInstanceParameters) { + _builder.addInstances(value) + } + /** + * ``` + * guidance instances + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.GuidanceInstanceParameters instances = 2 [json_name = "instances"];` + * @param value The instances to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignInstances") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.GuidanceInstanceParameters) { + add(value) + } + /** + * ``` + * guidance instances + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.GuidanceInstanceParameters instances = 2 [json_name = "instances"];` + * @param values The instances to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllInstances") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllInstances(values) + } + /** + * ``` + * guidance instances + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.GuidanceInstanceParameters instances = 2 [json_name = "instances"];` + * @param values The instances to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllInstances") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * ``` + * guidance instances + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.GuidanceInstanceParameters instances = 2 [json_name = "instances"];` + * @param index The index to set the value at. + * @param value The instances to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setInstances") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.GuidanceInstanceParameters) { + _builder.setInstances(index, value) + } + /** + * ``` + * guidance instances + * ``` + * + * `repeated .stabilityai.platformapis.generation.v1.GuidanceInstanceParameters instances = 2 [json_name = "instances"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearInstances") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearInstances() + } + + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.GuidanceParameters.copy(block: com.stabilityai.platformapis.generation.v1.GuidanceParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.GuidanceParameters = + com.stabilityai.platformapis.generation.v1.GuidanceParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceScheduleParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceScheduleParametersKt.kt new file mode 100644 index 0000000..509a9bd --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceScheduleParametersKt.kt @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializeguidanceScheduleParameters") +public inline fun guidanceScheduleParameters(block: com.stabilityai.platformapis.generation.v1.GuidanceScheduleParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.GuidanceScheduleParameters = + com.stabilityai.platformapis.generation.v1.GuidanceScheduleParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.GuidanceScheduleParameters.newBuilder()).apply { block() }._build() +/** + * ``` + * GuidanceScheduleParameters are used to define a schedule for CLIP guidance, and + * are used to define the behavior of the guidance over time. They are relative + * to the total number of steps, and are scaled to the number of steps in the + * current run. + * ``` + * + * Protobuf type `stabilityai.platformapis.generation.v1.GuidanceScheduleParameters` + */ +public object GuidanceScheduleParametersKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.GuidanceScheduleParameters.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.GuidanceScheduleParameters.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.GuidanceScheduleParameters = _builder.build() + + /** + * `float duration = 1 [json_name = "duration"];` + */ + public var duration: kotlin.Float + @JvmName("getDuration") + get() = _builder.getDuration() + @JvmName("setDuration") + set(value) { + _builder.setDuration(value) + } + /** + * `float duration = 1 [json_name = "duration"];` + */ + public fun clearDuration() { + _builder.clearDuration() + } + + /** + * `float value = 2 [json_name = "value"];` + */ + public var value: kotlin.Float + @JvmName("getValue") + get() = _builder.getValue() + @JvmName("setValue") + set(value) { + _builder.setValue(value) + } + /** + * `float value = 2 [json_name = "value"];` + */ + public fun clearValue() { + _builder.clearValue() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.GuidanceScheduleParameters.copy(block: com.stabilityai.platformapis.generation.v1.GuidanceScheduleParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.GuidanceScheduleParameters = + com.stabilityai.platformapis.generation.v1.GuidanceScheduleParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ImageParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ImageParametersKt.kt new file mode 100644 index 0000000..905b49c --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ImageParametersKt.kt @@ -0,0 +1,418 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializeimageParameters") +public inline fun imageParameters(block: com.stabilityai.platformapis.generation.v1.ImageParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ImageParameters = + com.stabilityai.platformapis.generation.v1.ImageParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.ImageParameters.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.generation.v1.ImageParameters` + */ +public object ImageParametersKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.ImageParameters.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.ImageParameters.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.ImageParameters = _builder.build() + + /** + * `optional uint64 height = 1 [json_name = "height"];` + */ + public var height: kotlin.Long + @JvmName("getHeight") + get() = _builder.getHeight() + @JvmName("setHeight") + set(value) { + _builder.setHeight(value) + } + /** + * `optional uint64 height = 1 [json_name = "height"];` + */ + public fun clearHeight() { + _builder.clearHeight() + } + /** + * `optional uint64 height = 1 [json_name = "height"];` + * @return Whether the height field is set. + */ + public fun hasHeight(): kotlin.Boolean { + return _builder.hasHeight() + } + + /** + * `optional uint64 width = 2 [json_name = "width"];` + */ + public var width: kotlin.Long + @JvmName("getWidth") + get() = _builder.getWidth() + @JvmName("setWidth") + set(value) { + _builder.setWidth(value) + } + /** + * `optional uint64 width = 2 [json_name = "width"];` + */ + public fun clearWidth() { + _builder.clearWidth() + } + /** + * `optional uint64 width = 2 [json_name = "width"];` + * @return Whether the width field is set. + */ + public fun hasWidth(): kotlin.Boolean { + return _builder.hasWidth() + } + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class SeedProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * `repeated uint32 seed = 3 [json_name = "seed"];` + */ + public val seed: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getSeedList() + ) + /** + * `repeated uint32 seed = 3 [json_name = "seed"];` + * @param value The seed to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addSeed") + public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.Int) { + _builder.addSeed(value) + }/** + * `repeated uint32 seed = 3 [json_name = "seed"];` + * @param value The seed to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignSeed") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.Int) { + add(value) + }/** + * `repeated uint32 seed = 3 [json_name = "seed"];` + * @param values The seed to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllSeed") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllSeed(values) + }/** + * `repeated uint32 seed = 3 [json_name = "seed"];` + * @param values The seed to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllSeed") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + }/** + * `repeated uint32 seed = 3 [json_name = "seed"];` + * @param index The index to set the value at. + * @param value The seed to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setSeed") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.Int) { + _builder.setSeed(index, value) + }/** + * `repeated uint32 seed = 3 [json_name = "seed"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearSeed") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearSeed() + } + /** + * `optional uint64 samples = 4 [json_name = "samples"];` + */ + public var samples: kotlin.Long + @JvmName("getSamples") + get() = _builder.getSamples() + @JvmName("setSamples") + set(value) { + _builder.setSamples(value) + } + /** + * `optional uint64 samples = 4 [json_name = "samples"];` + */ + public fun clearSamples() { + _builder.clearSamples() + } + /** + * `optional uint64 samples = 4 [json_name = "samples"];` + * @return Whether the samples field is set. + */ + public fun hasSamples(): kotlin.Boolean { + return _builder.hasSamples() + } + + /** + * `optional uint64 steps = 5 [json_name = "steps"];` + */ + public var steps: kotlin.Long + @JvmName("getSteps") + get() = _builder.getSteps() + @JvmName("setSteps") + set(value) { + _builder.setSteps(value) + } + /** + * `optional uint64 steps = 5 [json_name = "steps"];` + */ + public fun clearSteps() { + _builder.clearSteps() + } + /** + * `optional uint64 steps = 5 [json_name = "steps"];` + * @return Whether the steps field is set. + */ + public fun hasSteps(): kotlin.Boolean { + return _builder.hasSteps() + } + + /** + * `optional .stabilityai.platformapis.generation.v1.TransformType transform = 6 [json_name = "transform"];` + */ + public var transform: com.stabilityai.platformapis.generation.v1.TransformType + @JvmName("getTransform") + get() = _builder.getTransform() + @JvmName("setTransform") + set(value) { + _builder.setTransform(value) + } + /** + * `optional .stabilityai.platformapis.generation.v1.TransformType transform = 6 [json_name = "transform"];` + */ + public fun clearTransform() { + _builder.clearTransform() + } + /** + * `optional .stabilityai.platformapis.generation.v1.TransformType transform = 6 [json_name = "transform"];` + * @return Whether the transform field is set. + */ + public fun hasTransform(): kotlin.Boolean { + return _builder.hasTransform() + } + public val ImageParametersKt.Dsl.transformOrNull: com.stabilityai.platformapis.generation.v1.TransformType? + get() = _builder.transformOrNull + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class ParametersProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * `repeated .stabilityai.platformapis.generation.v1.StepParameter parameters = 7 [json_name = "parameters"];` + */ + public val parameters: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getParametersList() + ) + /** + * `repeated .stabilityai.platformapis.generation.v1.StepParameter parameters = 7 [json_name = "parameters"];` + * @param value The parameters to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addParameters") + public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.StepParameter) { + _builder.addParameters(value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.StepParameter parameters = 7 [json_name = "parameters"];` + * @param value The parameters to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignParameters") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.StepParameter) { + add(value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.StepParameter parameters = 7 [json_name = "parameters"];` + * @param values The parameters to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllParameters") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllParameters(values) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.StepParameter parameters = 7 [json_name = "parameters"];` + * @param values The parameters to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllParameters") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.StepParameter parameters = 7 [json_name = "parameters"];` + * @param index The index to set the value at. + * @param value The parameters to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setParameters") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.StepParameter) { + _builder.setParameters(index, value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.StepParameter parameters = 7 [json_name = "parameters"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearParameters") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearParameters() + } + + + /** + * ``` + * defaults to MASKED_AREA_INIT_ZERO + * ``` + * + * `optional .stabilityai.platformapis.generation.v1.MaskedAreaInit masked_area_init = 8 [json_name = "maskedAreaInit"];` + */ + public var maskedAreaInit: com.stabilityai.platformapis.generation.v1.MaskedAreaInit + @JvmName("getMaskedAreaInit") + get() = _builder.getMaskedAreaInit() + @JvmName("setMaskedAreaInit") + set(value) { + _builder.setMaskedAreaInit(value) + } + public var maskedAreaInitValue: kotlin.Int + @JvmName("getMaskedAreaInitValue") + get() = _builder.getMaskedAreaInitValue() + @JvmName("setMaskedAreaInitValue") + set(value) { + _builder.setMaskedAreaInitValue(value) + } + /** + * ``` + * defaults to MASKED_AREA_INIT_ZERO + * ``` + * + * `optional .stabilityai.platformapis.generation.v1.MaskedAreaInit masked_area_init = 8 [json_name = "maskedAreaInit"];` + */ + public fun clearMaskedAreaInit() { + _builder.clearMaskedAreaInit() + } + /** + * ``` + * defaults to MASKED_AREA_INIT_ZERO + * ``` + * + * `optional .stabilityai.platformapis.generation.v1.MaskedAreaInit masked_area_init = 8 [json_name = "maskedAreaInit"];` + * @return Whether the maskedAreaInit field is set. + */ + public fun hasMaskedAreaInit(): kotlin.Boolean { + return _builder.hasMaskedAreaInit() + } + + /** + * ``` + *defaults to TEXT_ENCODER + * ``` + * + * `optional .stabilityai.platformapis.generation.v1.WeightMethod weight_method = 9 [json_name = "weightMethod"];` + */ + public var weightMethod: com.stabilityai.platformapis.generation.v1.WeightMethod + @JvmName("getWeightMethod") + get() = _builder.getWeightMethod() + @JvmName("setWeightMethod") + set(value) { + _builder.setWeightMethod(value) + } + public var weightMethodValue: kotlin.Int + @JvmName("getWeightMethodValue") + get() = _builder.getWeightMethodValue() + @JvmName("setWeightMethodValue") + set(value) { + _builder.setWeightMethodValue(value) + } + /** + * ``` + *defaults to TEXT_ENCODER + * ``` + * + * `optional .stabilityai.platformapis.generation.v1.WeightMethod weight_method = 9 [json_name = "weightMethod"];` + */ + public fun clearWeightMethod() { + _builder.clearWeightMethod() + } + /** + * ``` + *defaults to TEXT_ENCODER + * ``` + * + * `optional .stabilityai.platformapis.generation.v1.WeightMethod weight_method = 9 [json_name = "weightMethod"];` + * @return Whether the weightMethod field is set. + */ + public fun hasWeightMethod(): kotlin.Boolean { + return _builder.hasWeightMethod() + } + + /** + * ``` + *defaults to true + * ``` + * + * `optional bool quantize = 10 [json_name = "quantize"];` + */ + public var quantize: kotlin.Boolean + @JvmName("getQuantize") + get() = _builder.getQuantize() + @JvmName("setQuantize") + set(value) { + _builder.setQuantize(value) + } + /** + * ``` + *defaults to true + * ``` + * + * `optional bool quantize = 10 [json_name = "quantize"];` + */ + public fun clearQuantize() { + _builder.clearQuantize() + } + /** + * ``` + *defaults to true + * ``` + * + * `optional bool quantize = 10 [json_name = "quantize"];` + * @return Whether the quantize field is set. + */ + public fun hasQuantize(): kotlin.Boolean { + return _builder.hasQuantize() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.ImageParameters.copy(block: com.stabilityai.platformapis.generation.v1.ImageParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ImageParameters = + com.stabilityai.platformapis.generation.v1.ImageParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() + +public val com.stabilityai.platformapis.generation.v1.ImageParametersOrBuilder.transformOrNull: com.stabilityai.platformapis.generation.v1.TransformType? + get() = if (hasTransform()) getTransform() else null + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/InterpolateParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/InterpolateParametersKt.kt new file mode 100644 index 0000000..9769fbd --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/InterpolateParametersKt.kt @@ -0,0 +1,134 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializeinterpolateParameters") +public inline fun interpolateParameters(block: com.stabilityai.platformapis.generation.v1.InterpolateParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.InterpolateParameters = + com.stabilityai.platformapis.generation.v1.InterpolateParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.InterpolateParameters.newBuilder()).apply { block() }._build() +/** + * ``` + * Interpolation between two images applied at specified blend ratios + * ``` + * + * Protobuf type `stabilityai.platformapis.generation.v1.InterpolateParameters` + */ +public object InterpolateParametersKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.InterpolateParameters.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.InterpolateParameters.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.InterpolateParameters = _builder.build() + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class RatiosProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * `repeated float ratios = 1 [json_name = "ratios"];` + */ + public val ratios: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getRatiosList() + ) + /** + * `repeated float ratios = 1 [json_name = "ratios"];` + * @param value The ratios to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addRatios") + public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.Float) { + _builder.addRatios(value) + }/** + * `repeated float ratios = 1 [json_name = "ratios"];` + * @param value The ratios to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignRatios") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.Float) { + add(value) + }/** + * `repeated float ratios = 1 [json_name = "ratios"];` + * @param values The ratios to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllRatios") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllRatios(values) + }/** + * `repeated float ratios = 1 [json_name = "ratios"];` + * @param values The ratios to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllRatios") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + }/** + * `repeated float ratios = 1 [json_name = "ratios"];` + * @param index The index to set the value at. + * @param value The ratios to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setRatios") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.Float) { + _builder.setRatios(index, value) + }/** + * `repeated float ratios = 1 [json_name = "ratios"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearRatios") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearRatios() + } + /** + * `optional .stabilityai.platformapis.generation.v1.InterpolateMode mode = 2 [json_name = "mode"];` + */ + public var mode: com.stabilityai.platformapis.generation.v1.InterpolateMode + @JvmName("getMode") + get() = _builder.getMode() + @JvmName("setMode") + set(value) { + _builder.setMode(value) + } + public var modeValue: kotlin.Int + @JvmName("getModeValue") + get() = _builder.getModeValue() + @JvmName("setModeValue") + set(value) { + _builder.setModeValue(value) + } + /** + * `optional .stabilityai.platformapis.generation.v1.InterpolateMode mode = 2 [json_name = "mode"];` + */ + public fun clearMode() { + _builder.clearMode() + } + /** + * `optional .stabilityai.platformapis.generation.v1.InterpolateMode mode = 2 [json_name = "mode"];` + * @return Whether the mode field is set. + */ + public fun hasMode(): kotlin.Boolean { + return _builder.hasMode() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.InterpolateParameters.copy(block: com.stabilityai.platformapis.generation.v1.InterpolateParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.InterpolateParameters = + com.stabilityai.platformapis.generation.v1.InterpolateParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ModelKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ModelKt.kt new file mode 100644 index 0000000..ca2e17d --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ModelKt.kt @@ -0,0 +1,143 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializemodel") +public inline fun model(block: com.stabilityai.platformapis.generation.v1.ModelKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Model = + com.stabilityai.platformapis.generation.v1.ModelKt.Dsl._create(com.stabilityai.platformapis.generation.v1.Model.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.generation.v1.Model` + */ +public object ModelKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.Model.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.Model.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.Model = _builder.build() + + /** + * `.stabilityai.platformapis.generation.v1.ModelArchitecture architecture = 1 [json_name = "architecture"];` + */ + public var architecture: com.stabilityai.platformapis.generation.v1.ModelArchitecture + @JvmName("getArchitecture") + get() = _builder.getArchitecture() + @JvmName("setArchitecture") + set(value) { + _builder.setArchitecture(value) + } + public var architectureValue: kotlin.Int + @JvmName("getArchitectureValue") + get() = _builder.getArchitectureValue() + @JvmName("setArchitectureValue") + set(value) { + _builder.setArchitectureValue(value) + } + /** + * `.stabilityai.platformapis.generation.v1.ModelArchitecture architecture = 1 [json_name = "architecture"];` + */ + public fun clearArchitecture() { + _builder.clearArchitecture() + } + + /** + * `string publisher = 2 [json_name = "publisher"];` + */ + public var publisher: kotlin.String + @JvmName("getPublisher") + get() = _builder.getPublisher() + @JvmName("setPublisher") + set(value) { + _builder.setPublisher(value) + } + /** + * `string publisher = 2 [json_name = "publisher"];` + */ + public fun clearPublisher() { + _builder.clearPublisher() + } + + /** + * `string dataset = 3 [json_name = "dataset"];` + */ + public var dataset: kotlin.String + @JvmName("getDataset") + get() = _builder.getDataset() + @JvmName("setDataset") + set(value) { + _builder.setDataset(value) + } + /** + * `string dataset = 3 [json_name = "dataset"];` + */ + public fun clearDataset() { + _builder.clearDataset() + } + + /** + * `float version = 4 [json_name = "version"];` + */ + public var version: kotlin.Float + @JvmName("getVersion") + get() = _builder.getVersion() + @JvmName("setVersion") + set(value) { + _builder.setVersion(value) + } + /** + * `float version = 4 [json_name = "version"];` + */ + public fun clearVersion() { + _builder.clearVersion() + } + + /** + * `string semantic_version = 5 [json_name = "semanticVersion"];` + */ + public var semanticVersion: kotlin.String + @JvmName("getSemanticVersion") + get() = _builder.getSemanticVersion() + @JvmName("setSemanticVersion") + set(value) { + _builder.setSemanticVersion(value) + } + /** + * `string semantic_version = 5 [json_name = "semanticVersion"];` + */ + public fun clearSemanticVersion() { + _builder.clearSemanticVersion() + } + + /** + * `string alias = 6 [json_name = "alias"];` + */ + public var alias: kotlin.String + @JvmName("getAlias") + get() = _builder.getAlias() + @JvmName("setAlias") + set(value) { + _builder.setAlias(value) + } + /** + * `string alias = 6 [json_name = "alias"];` + */ + public fun clearAlias() { + _builder.clearAlias() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.Model.copy(block: com.stabilityai.platformapis.generation.v1.ModelKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Model = + com.stabilityai.platformapis.generation.v1.ModelKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/OnStatusKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/OnStatusKt.kt new file mode 100644 index 0000000..0f4b397 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/OnStatusKt.kt @@ -0,0 +1,188 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializeonStatus") +public inline fun onStatus(block: com.stabilityai.platformapis.generation.v1.OnStatusKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.OnStatus = + com.stabilityai.platformapis.generation.v1.OnStatusKt.Dsl._create(com.stabilityai.platformapis.generation.v1.OnStatus.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.generation.v1.OnStatus` + */ +public object OnStatusKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.OnStatus.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.OnStatus.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.OnStatus = _builder.build() + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class ReasonProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * `repeated .stabilityai.platformapis.generation.v1.FinishReason reason = 1 [json_name = "reason"];` + */ + public val reason: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getReasonList() + ) + /** + * `repeated .stabilityai.platformapis.generation.v1.FinishReason reason = 1 [json_name = "reason"];` + * @param value The reason to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addReason") + public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.FinishReason) { + _builder.addReason(value) + }/** + * `repeated .stabilityai.platformapis.generation.v1.FinishReason reason = 1 [json_name = "reason"];` + * @param value The reason to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignReason") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.FinishReason) { + add(value) + }/** + * `repeated .stabilityai.platformapis.generation.v1.FinishReason reason = 1 [json_name = "reason"];` + * @param values The reason to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllReason") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllReason(values) + }/** + * `repeated .stabilityai.platformapis.generation.v1.FinishReason reason = 1 [json_name = "reason"];` + * @param values The reason to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllReason") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + }/** + * `repeated .stabilityai.platformapis.generation.v1.FinishReason reason = 1 [json_name = "reason"];` + * @param index The index to set the value at. + * @param value The reason to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setReason") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.FinishReason) { + _builder.setReason(index, value) + }/** + * `repeated .stabilityai.platformapis.generation.v1.FinishReason reason = 1 [json_name = "reason"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearReason") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearReason() + } + /** + * `optional string target = 2 [json_name = "target"];` + */ + public var target: kotlin.String + @JvmName("getTarget") + get() = _builder.getTarget() + @JvmName("setTarget") + set(value) { + _builder.setTarget(value) + } + /** + * `optional string target = 2 [json_name = "target"];` + */ + public fun clearTarget() { + _builder.clearTarget() + } + /** + * `optional string target = 2 [json_name = "target"];` + * @return Whether the target field is set. + */ + public fun hasTarget(): kotlin.Boolean { + return _builder.hasTarget() + } + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class ActionProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * `repeated .stabilityai.platformapis.generation.v1.StageAction action = 3 [json_name = "action"];` + */ + public val action: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getActionList() + ) + /** + * `repeated .stabilityai.platformapis.generation.v1.StageAction action = 3 [json_name = "action"];` + * @param value The action to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAction") + public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.StageAction) { + _builder.addAction(value) + }/** + * `repeated .stabilityai.platformapis.generation.v1.StageAction action = 3 [json_name = "action"];` + * @param value The action to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAction") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.StageAction) { + add(value) + }/** + * `repeated .stabilityai.platformapis.generation.v1.StageAction action = 3 [json_name = "action"];` + * @param values The action to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllAction") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllAction(values) + }/** + * `repeated .stabilityai.platformapis.generation.v1.StageAction action = 3 [json_name = "action"];` + * @param values The action to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllAction") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + }/** + * `repeated .stabilityai.platformapis.generation.v1.StageAction action = 3 [json_name = "action"];` + * @param index The index to set the value at. + * @param value The action to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setAction") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.StageAction) { + _builder.setAction(index, value) + }/** + * `repeated .stabilityai.platformapis.generation.v1.StageAction action = 3 [json_name = "action"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearAction") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearAction() + }} +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.OnStatus.copy(block: com.stabilityai.platformapis.generation.v1.OnStatusKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.OnStatus = + com.stabilityai.platformapis.generation.v1.OnStatusKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/PromptKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/PromptKt.kt new file mode 100644 index 0000000..307f054 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/PromptKt.kt @@ -0,0 +1,158 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializeprompt") +public inline fun prompt(block: com.stabilityai.platformapis.generation.v1.PromptKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Prompt = + com.stabilityai.platformapis.generation.v1.PromptKt.Dsl._create(com.stabilityai.platformapis.generation.v1.Prompt.newBuilder()).apply { block() }._build() +/** + * ``` + * A Prompt is a special type of Artifact that is used to generate an output. + * There can be multiple Prompts that affect the same output. Currently, the + * only Prompts supported are: + * - Text (singular) + * - Init Image (singular, optional, type ARTIFACT_IMAGE) + * - Mask (singular, optional, type ARTIFACT_MASK) + * - Depth (singular, optional, type ARTIFACT_DEPTH) + * ``` + * + * Protobuf type `stabilityai.platformapis.generation.v1.Prompt` + */ +public object PromptKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.Prompt.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.Prompt.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.Prompt = _builder.build() + + /** + * `optional .stabilityai.platformapis.generation.v1.PromptParameters parameters = 1 [json_name = "parameters"];` + */ + public var parameters: com.stabilityai.platformapis.generation.v1.PromptParameters + @JvmName("getParameters") + get() = _builder.getParameters() + @JvmName("setParameters") + set(value) { + _builder.setParameters(value) + } + /** + * `optional .stabilityai.platformapis.generation.v1.PromptParameters parameters = 1 [json_name = "parameters"];` + */ + public fun clearParameters() { + _builder.clearParameters() + } + /** + * `optional .stabilityai.platformapis.generation.v1.PromptParameters parameters = 1 [json_name = "parameters"];` + * @return Whether the parameters field is set. + */ + public fun hasParameters(): kotlin.Boolean { + return _builder.hasParameters() + } + public val PromptKt.Dsl.parametersOrNull: com.stabilityai.platformapis.generation.v1.PromptParameters? + get() = _builder.parametersOrNull + + /** + * `string text = 2 [json_name = "text"];` + */ + public var text: kotlin.String + @JvmName("getText") + get() = _builder.getText() + @JvmName("setText") + set(value) { + _builder.setText(value) + } + /** + * `string text = 2 [json_name = "text"];` + */ + public fun clearText() { + _builder.clearText() + } + /** + * `string text = 2 [json_name = "text"];` + * @return Whether the text field is set. + */ + public fun hasText(): kotlin.Boolean { + return _builder.hasText() + } + + /** + * `.stabilityai.platformapis.generation.v1.Tokens tokens = 3 [json_name = "tokens"];` + */ + public var tokens: com.stabilityai.platformapis.generation.v1.Tokens + @JvmName("getTokens") + get() = _builder.getTokens() + @JvmName("setTokens") + set(value) { + _builder.setTokens(value) + } + /** + * `.stabilityai.platformapis.generation.v1.Tokens tokens = 3 [json_name = "tokens"];` + */ + public fun clearTokens() { + _builder.clearTokens() + } + /** + * `.stabilityai.platformapis.generation.v1.Tokens tokens = 3 [json_name = "tokens"];` + * @return Whether the tokens field is set. + */ + public fun hasTokens(): kotlin.Boolean { + return _builder.hasTokens() + } + + /** + * `.stabilityai.platformapis.generation.v1.Artifact artifact = 4 [json_name = "artifact"];` + */ + public var artifact: com.stabilityai.platformapis.generation.v1.Artifact + @JvmName("getArtifact") + get() = _builder.getArtifact() + @JvmName("setArtifact") + set(value) { + _builder.setArtifact(value) + } + /** + * `.stabilityai.platformapis.generation.v1.Artifact artifact = 4 [json_name = "artifact"];` + */ + public fun clearArtifact() { + _builder.clearArtifact() + } + /** + * `.stabilityai.platformapis.generation.v1.Artifact artifact = 4 [json_name = "artifact"];` + * @return Whether the artifact field is set. + */ + public fun hasArtifact(): kotlin.Boolean { + return _builder.hasArtifact() + } + public val promptCase: com.stabilityai.platformapis.generation.v1.Prompt.PromptCase + @JvmName("getPromptCase") + get() = _builder.getPromptCase() + + public fun clearPrompt() { + _builder.clearPrompt() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.Prompt.copy(block: com.stabilityai.platformapis.generation.v1.PromptKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Prompt = + com.stabilityai.platformapis.generation.v1.PromptKt.Dsl._create(this.toBuilder()).apply { block() }._build() + +public val com.stabilityai.platformapis.generation.v1.PromptOrBuilder.parametersOrNull: com.stabilityai.platformapis.generation.v1.PromptParameters? + get() = if (hasParameters()) getParameters() else null + +public val com.stabilityai.platformapis.generation.v1.PromptOrBuilder.tokensOrNull: com.stabilityai.platformapis.generation.v1.Tokens? + get() = if (hasTokens()) getTokens() else null + +public val com.stabilityai.platformapis.generation.v1.PromptOrBuilder.artifactOrNull: com.stabilityai.platformapis.generation.v1.Artifact? + get() = if (hasArtifact()) getArtifact() else null + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/PromptParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/PromptParametersKt.kt new file mode 100644 index 0000000..6dc29ad --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/PromptParametersKt.kt @@ -0,0 +1,98 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializepromptParameters") +public inline fun promptParameters(block: com.stabilityai.platformapis.generation.v1.PromptParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.PromptParameters = + com.stabilityai.platformapis.generation.v1.PromptParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.PromptParameters.newBuilder()).apply { block() }._build() +/** + * ``` + * A set of parameters for each individual Prompt. + * ``` + * + * Protobuf type `stabilityai.platformapis.generation.v1.PromptParameters` + */ +public object PromptParametersKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.PromptParameters.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.PromptParameters.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.PromptParameters = _builder.build() + + /** + * ``` + * deprecated, no longer used + * ``` + * + * `optional bool init = 1 [json_name = "init"];` + */ + public var init: kotlin.Boolean + @JvmName("getInit") + get() = _builder.getInit() + @JvmName("setInit") + set(value) { + _builder.setInit(value) + } + /** + * ``` + * deprecated, no longer used + * ``` + * + * `optional bool init = 1 [json_name = "init"];` + */ + public fun clearInit() { + _builder.clearInit() + } + /** + * ``` + * deprecated, no longer used + * ``` + * + * `optional bool init = 1 [json_name = "init"];` + * @return Whether the init field is set. + */ + public fun hasInit(): kotlin.Boolean { + return _builder.hasInit() + } + + /** + * `optional float weight = 2 [json_name = "weight"];` + */ + public var weight: kotlin.Float + @JvmName("getWeight") + get() = _builder.getWeight() + @JvmName("setWeight") + set(value) { + _builder.setWeight(value) + } + /** + * `optional float weight = 2 [json_name = "weight"];` + */ + public fun clearWeight() { + _builder.clearWeight() + } + /** + * `optional float weight = 2 [json_name = "weight"];` + * @return Whether the weight field is set. + */ + public fun hasWeight(): kotlin.Boolean { + return _builder.hasWeight() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.PromptParameters.copy(block: com.stabilityai.platformapis.generation.v1.PromptParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.PromptParameters = + com.stabilityai.platformapis.generation.v1.PromptParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/RequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/RequestKt.kt new file mode 100644 index 0000000..5985280 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/RequestKt.kt @@ -0,0 +1,382 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializerequest") +public inline fun request(block: com.stabilityai.platformapis.generation.v1.RequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Request = + com.stabilityai.platformapis.generation.v1.RequestKt.Dsl._create(com.stabilityai.platformapis.generation.v1.Request.newBuilder()).apply { block() }._build() +/** + * ``` + * A Request is a set of Artifacts, which can be of any type with model or + * transform parameters. It is sent to the server, which will respond with an + * Answer. + * ``` + * + * Protobuf type `stabilityai.platformapis.generation.v1.Request` + */ +public object RequestKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.Request.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.Request.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.Request = _builder.build() + + /** + * `string engine_id = 1 [json_name = "engineId"];` + */ + public var engineId: kotlin.String + @JvmName("getEngineId") + get() = _builder.getEngineId() + @JvmName("setEngineId") + set(value) { + _builder.setEngineId(value) + } + /** + * `string engine_id = 1 [json_name = "engineId"];` + */ + public fun clearEngineId() { + _builder.clearEngineId() + } + + /** + * `string request_id = 2 [json_name = "requestId"];` + */ + public var requestId: kotlin.String + @JvmName("getRequestId") + get() = _builder.getRequestId() + @JvmName("setRequestId") + set(value) { + _builder.setRequestId(value) + } + /** + * `string request_id = 2 [json_name = "requestId"];` + */ + public fun clearRequestId() { + _builder.clearRequestId() + } + + /** + * `.stabilityai.platformapis.generation.v1.ArtifactType requested_type = 3 [json_name = "requestedType"];` + */ + public var requestedType: com.stabilityai.platformapis.generation.v1.ArtifactType + @JvmName("getRequestedType") + get() = _builder.getRequestedType() + @JvmName("setRequestedType") + set(value) { + _builder.setRequestedType(value) + } + public var requestedTypeValue: kotlin.Int + @JvmName("getRequestedTypeValue") + get() = _builder.getRequestedTypeValue() + @JvmName("setRequestedTypeValue") + set(value) { + _builder.setRequestedTypeValue(value) + } + /** + * `.stabilityai.platformapis.generation.v1.ArtifactType requested_type = 3 [json_name = "requestedType"];` + */ + public fun clearRequestedType() { + _builder.clearRequestedType() + } + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class PromptProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * `repeated .stabilityai.platformapis.generation.v1.Prompt prompt = 4 [json_name = "prompt"];` + */ + public val prompt: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getPromptList() + ) + /** + * `repeated .stabilityai.platformapis.generation.v1.Prompt prompt = 4 [json_name = "prompt"];` + * @param value The prompt to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addPrompt") + public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.Prompt) { + _builder.addPrompt(value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.Prompt prompt = 4 [json_name = "prompt"];` + * @param value The prompt to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignPrompt") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.Prompt) { + add(value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.Prompt prompt = 4 [json_name = "prompt"];` + * @param values The prompt to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllPrompt") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllPrompt(values) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.Prompt prompt = 4 [json_name = "prompt"];` + * @param values The prompt to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllPrompt") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.Prompt prompt = 4 [json_name = "prompt"];` + * @param index The index to set the value at. + * @param value The prompt to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setPrompt") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.Prompt) { + _builder.setPrompt(index, value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.Prompt prompt = 4 [json_name = "prompt"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearPrompt") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearPrompt() + } + + + /** + * `.stabilityai.platformapis.generation.v1.ImageParameters image = 5 [json_name = "image"];` + */ + public var image: com.stabilityai.platformapis.generation.v1.ImageParameters + @JvmName("getImage") + get() = _builder.getImage() + @JvmName("setImage") + set(value) { + _builder.setImage(value) + } + /** + * `.stabilityai.platformapis.generation.v1.ImageParameters image = 5 [json_name = "image"];` + */ + public fun clearImage() { + _builder.clearImage() + } + /** + * `.stabilityai.platformapis.generation.v1.ImageParameters image = 5 [json_name = "image"];` + * @return Whether the image field is set. + */ + public fun hasImage(): kotlin.Boolean { + return _builder.hasImage() + } + + /** + * `.stabilityai.platformapis.generation.v1.ClassifierParameters classifier = 7 [json_name = "classifier"];` + */ + public var classifier: com.stabilityai.platformapis.generation.v1.ClassifierParameters + @JvmName("getClassifier") + get() = _builder.getClassifier() + @JvmName("setClassifier") + set(value) { + _builder.setClassifier(value) + } + /** + * `.stabilityai.platformapis.generation.v1.ClassifierParameters classifier = 7 [json_name = "classifier"];` + */ + public fun clearClassifier() { + _builder.clearClassifier() + } + /** + * `.stabilityai.platformapis.generation.v1.ClassifierParameters classifier = 7 [json_name = "classifier"];` + * @return Whether the classifier field is set. + */ + public fun hasClassifier(): kotlin.Boolean { + return _builder.hasClassifier() + } + + /** + * `.stabilityai.platformapis.generation.v1.AssetParameters asset = 8 [json_name = "asset"];` + */ + public var asset: com.stabilityai.platformapis.generation.v1.AssetParameters + @JvmName("getAsset") + get() = _builder.getAsset() + @JvmName("setAsset") + set(value) { + _builder.setAsset(value) + } + /** + * `.stabilityai.platformapis.generation.v1.AssetParameters asset = 8 [json_name = "asset"];` + */ + public fun clearAsset() { + _builder.clearAsset() + } + /** + * `.stabilityai.platformapis.generation.v1.AssetParameters asset = 8 [json_name = "asset"];` + * @return Whether the asset field is set. + */ + public fun hasAsset(): kotlin.Boolean { + return _builder.hasAsset() + } + + /** + * `.stabilityai.platformapis.generation.v1.InterpolateParameters interpolate = 11 [json_name = "interpolate"];` + */ + public var interpolate: com.stabilityai.platformapis.generation.v1.InterpolateParameters + @JvmName("getInterpolate") + get() = _builder.getInterpolate() + @JvmName("setInterpolate") + set(value) { + _builder.setInterpolate(value) + } + /** + * `.stabilityai.platformapis.generation.v1.InterpolateParameters interpolate = 11 [json_name = "interpolate"];` + */ + public fun clearInterpolate() { + _builder.clearInterpolate() + } + /** + * `.stabilityai.platformapis.generation.v1.InterpolateParameters interpolate = 11 [json_name = "interpolate"];` + * @return Whether the interpolate field is set. + */ + public fun hasInterpolate(): kotlin.Boolean { + return _builder.hasInterpolate() + } + + /** + * `.stabilityai.platformapis.generation.v1.TransformParameters transform = 12 [json_name = "transform"];` + */ + public var transform: com.stabilityai.platformapis.generation.v1.TransformParameters + @JvmName("getTransform") + get() = _builder.getTransform() + @JvmName("setTransform") + set(value) { + _builder.setTransform(value) + } + /** + * `.stabilityai.platformapis.generation.v1.TransformParameters transform = 12 [json_name = "transform"];` + */ + public fun clearTransform() { + _builder.clearTransform() + } + /** + * `.stabilityai.platformapis.generation.v1.TransformParameters transform = 12 [json_name = "transform"];` + * @return Whether the transform field is set. + */ + public fun hasTransform(): kotlin.Boolean { + return _builder.hasTransform() + } + + /** + * `optional .stabilityai.platformapis.generation.v1.ConditionerParameters conditioner = 6 [json_name = "conditioner"];` + */ + public var conditioner: com.stabilityai.platformapis.generation.v1.ConditionerParameters + @JvmName("getConditioner") + get() = _builder.getConditioner() + @JvmName("setConditioner") + set(value) { + _builder.setConditioner(value) + } + /** + * `optional .stabilityai.platformapis.generation.v1.ConditionerParameters conditioner = 6 [json_name = "conditioner"];` + */ + public fun clearConditioner() { + _builder.clearConditioner() + } + /** + * `optional .stabilityai.platformapis.generation.v1.ConditionerParameters conditioner = 6 [json_name = "conditioner"];` + * @return Whether the conditioner field is set. + */ + public fun hasConditioner(): kotlin.Boolean { + return _builder.hasConditioner() + } + public val RequestKt.Dsl.conditionerOrNull: com.stabilityai.platformapis.generation.v1.ConditionerParameters? + get() = _builder.conditionerOrNull + + /** + * ``` + * for development use + * ``` + * + * `optional .google.protobuf.Struct extras = 2047 [json_name = "extras"];` + */ + public var extras: com.google.protobuf.Struct + @JvmName("getExtras") + get() = _builder.getExtras() + @JvmName("setExtras") + set(value) { + _builder.setExtras(value) + } + /** + * ``` + * for development use + * ``` + * + * `optional .google.protobuf.Struct extras = 2047 [json_name = "extras"];` + */ + public fun clearExtras() { + _builder.clearExtras() + } + /** + * ``` + * for development use + * ``` + * + * `optional .google.protobuf.Struct extras = 2047 [json_name = "extras"];` + * @return Whether the extras field is set. + */ + public fun hasExtras(): kotlin.Boolean { + return _builder.hasExtras() + } + public val RequestKt.Dsl.extrasOrNull: com.google.protobuf.Struct? + get() = _builder.extrasOrNull + public val paramsCase: com.stabilityai.platformapis.generation.v1.Request.ParamsCase + @JvmName("getParamsCase") + get() = _builder.getParamsCase() + + public fun clearParams() { + _builder.clearParams() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.Request.copy(block: com.stabilityai.platformapis.generation.v1.RequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Request = + com.stabilityai.platformapis.generation.v1.RequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() + +public val com.stabilityai.platformapis.generation.v1.RequestOrBuilder.imageOrNull: com.stabilityai.platformapis.generation.v1.ImageParameters? + get() = if (hasImage()) getImage() else null + +public val com.stabilityai.platformapis.generation.v1.RequestOrBuilder.classifierOrNull: com.stabilityai.platformapis.generation.v1.ClassifierParameters? + get() = if (hasClassifier()) getClassifier() else null + +public val com.stabilityai.platformapis.generation.v1.RequestOrBuilder.assetOrNull: com.stabilityai.platformapis.generation.v1.AssetParameters? + get() = if (hasAsset()) getAsset() else null + +public val com.stabilityai.platformapis.generation.v1.RequestOrBuilder.interpolateOrNull: com.stabilityai.platformapis.generation.v1.InterpolateParameters? + get() = if (hasInterpolate()) getInterpolate() else null + +public val com.stabilityai.platformapis.generation.v1.RequestOrBuilder.transformOrNull: com.stabilityai.platformapis.generation.v1.TransformParameters? + get() = if (hasTransform()) getTransform() else null + +public val com.stabilityai.platformapis.generation.v1.RequestOrBuilder.conditionerOrNull: com.stabilityai.platformapis.generation.v1.ConditionerParameters? + get() = if (hasConditioner()) getConditioner() else null + +public val com.stabilityai.platformapis.generation.v1.RequestOrBuilder.extrasOrNull: com.google.protobuf.Struct? + get() = if (hasExtras()) getExtras() else null + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/SamplerParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/SamplerParametersKt.kt new file mode 100644 index 0000000..24d9bd6 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/SamplerParametersKt.kt @@ -0,0 +1,230 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializesamplerParameters") +public inline fun samplerParameters(block: com.stabilityai.platformapis.generation.v1.SamplerParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.SamplerParameters = + com.stabilityai.platformapis.generation.v1.SamplerParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.SamplerParameters.newBuilder()).apply { block() }._build() +/** + * ``` + * Parameters that affect the behavior of the sampler, typically used for CFG. + * ``` + * + * Protobuf type `stabilityai.platformapis.generation.v1.SamplerParameters` + */ +public object SamplerParametersKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.SamplerParameters.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.SamplerParameters.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.SamplerParameters = _builder.build() + + /** + * `optional float eta = 1 [json_name = "eta"];` + */ + public var eta: kotlin.Float + @JvmName("getEta") + get() = _builder.getEta() + @JvmName("setEta") + set(value) { + _builder.setEta(value) + } + /** + * `optional float eta = 1 [json_name = "eta"];` + */ + public fun clearEta() { + _builder.clearEta() + } + /** + * `optional float eta = 1 [json_name = "eta"];` + * @return Whether the eta field is set. + */ + public fun hasEta(): kotlin.Boolean { + return _builder.hasEta() + } + + /** + * `optional uint64 sampling_steps = 2 [json_name = "samplingSteps"];` + */ + public var samplingSteps: kotlin.Long + @JvmName("getSamplingSteps") + get() = _builder.getSamplingSteps() + @JvmName("setSamplingSteps") + set(value) { + _builder.setSamplingSteps(value) + } + /** + * `optional uint64 sampling_steps = 2 [json_name = "samplingSteps"];` + */ + public fun clearSamplingSteps() { + _builder.clearSamplingSteps() + } + /** + * `optional uint64 sampling_steps = 2 [json_name = "samplingSteps"];` + * @return Whether the samplingSteps field is set. + */ + public fun hasSamplingSteps(): kotlin.Boolean { + return _builder.hasSamplingSteps() + } + + /** + * `optional uint64 latent_channels = 3 [json_name = "latentChannels"];` + */ + public var latentChannels: kotlin.Long + @JvmName("getLatentChannels") + get() = _builder.getLatentChannels() + @JvmName("setLatentChannels") + set(value) { + _builder.setLatentChannels(value) + } + /** + * `optional uint64 latent_channels = 3 [json_name = "latentChannels"];` + */ + public fun clearLatentChannels() { + _builder.clearLatentChannels() + } + /** + * `optional uint64 latent_channels = 3 [json_name = "latentChannels"];` + * @return Whether the latentChannels field is set. + */ + public fun hasLatentChannels(): kotlin.Boolean { + return _builder.hasLatentChannels() + } + + /** + * `optional uint64 downsampling_factor = 4 [json_name = "downsamplingFactor"];` + */ + public var downsamplingFactor: kotlin.Long + @JvmName("getDownsamplingFactor") + get() = _builder.getDownsamplingFactor() + @JvmName("setDownsamplingFactor") + set(value) { + _builder.setDownsamplingFactor(value) + } + /** + * `optional uint64 downsampling_factor = 4 [json_name = "downsamplingFactor"];` + */ + public fun clearDownsamplingFactor() { + _builder.clearDownsamplingFactor() + } + /** + * `optional uint64 downsampling_factor = 4 [json_name = "downsamplingFactor"];` + * @return Whether the downsamplingFactor field is set. + */ + public fun hasDownsamplingFactor(): kotlin.Boolean { + return _builder.hasDownsamplingFactor() + } + + /** + * `optional float cfg_scale = 5 [json_name = "cfgScale"];` + */ + public var cfgScale: kotlin.Float + @JvmName("getCfgScale") + get() = _builder.getCfgScale() + @JvmName("setCfgScale") + set(value) { + _builder.setCfgScale(value) + } + /** + * `optional float cfg_scale = 5 [json_name = "cfgScale"];` + */ + public fun clearCfgScale() { + _builder.clearCfgScale() + } + /** + * `optional float cfg_scale = 5 [json_name = "cfgScale"];` + * @return Whether the cfgScale field is set. + */ + public fun hasCfgScale(): kotlin.Boolean { + return _builder.hasCfgScale() + } + + /** + * ``` + * defaults to 0.99 + * ``` + * + * `optional float init_noise_scale = 6 [json_name = "initNoiseScale"];` + */ + public var initNoiseScale: kotlin.Float + @JvmName("getInitNoiseScale") + get() = _builder.getInitNoiseScale() + @JvmName("setInitNoiseScale") + set(value) { + _builder.setInitNoiseScale(value) + } + /** + * ``` + * defaults to 0.99 + * ``` + * + * `optional float init_noise_scale = 6 [json_name = "initNoiseScale"];` + */ + public fun clearInitNoiseScale() { + _builder.clearInitNoiseScale() + } + /** + * ``` + * defaults to 0.99 + * ``` + * + * `optional float init_noise_scale = 6 [json_name = "initNoiseScale"];` + * @return Whether the initNoiseScale field is set. + */ + public fun hasInitNoiseScale(): kotlin.Boolean { + return _builder.hasInitNoiseScale() + } + + /** + * ``` + * defaults to 0.99 + * ``` + * + * `optional float step_noise_scale = 7 [json_name = "stepNoiseScale"];` + */ + public var stepNoiseScale: kotlin.Float + @JvmName("getStepNoiseScale") + get() = _builder.getStepNoiseScale() + @JvmName("setStepNoiseScale") + set(value) { + _builder.setStepNoiseScale(value) + } + /** + * ``` + * defaults to 0.99 + * ``` + * + * `optional float step_noise_scale = 7 [json_name = "stepNoiseScale"];` + */ + public fun clearStepNoiseScale() { + _builder.clearStepNoiseScale() + } + /** + * ``` + * defaults to 0.99 + * ``` + * + * `optional float step_noise_scale = 7 [json_name = "stepNoiseScale"];` + * @return Whether the stepNoiseScale field is set. + */ + public fun hasStepNoiseScale(): kotlin.Boolean { + return _builder.hasStepNoiseScale() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.SamplerParameters.copy(block: com.stabilityai.platformapis.generation.v1.SamplerParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.SamplerParameters = + com.stabilityai.platformapis.generation.v1.SamplerParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ScheduleParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ScheduleParametersKt.kt new file mode 100644 index 0000000..9826f02 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ScheduleParametersKt.kt @@ -0,0 +1,146 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializescheduleParameters") +public inline fun scheduleParameters(block: com.stabilityai.platformapis.generation.v1.ScheduleParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ScheduleParameters = + com.stabilityai.platformapis.generation.v1.ScheduleParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.ScheduleParameters.newBuilder()).apply { block() }._build() +/** + * ``` + * When does this schedule definition apply? + * ``` + * + * Protobuf type `stabilityai.platformapis.generation.v1.ScheduleParameters` + */ +public object ScheduleParametersKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.ScheduleParameters.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.ScheduleParameters.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.ScheduleParameters = _builder.build() + + /** + * ``` + * 0.0 to 1.0 + * ``` + * + * `optional float start = 1 [json_name = "start"];` + */ + public var start: kotlin.Float + @JvmName("getStart") + get() = _builder.getStart() + @JvmName("setStart") + set(value) { + _builder.setStart(value) + } + /** + * ``` + * 0.0 to 1.0 + * ``` + * + * `optional float start = 1 [json_name = "start"];` + */ + public fun clearStart() { + _builder.clearStart() + } + /** + * ``` + * 0.0 to 1.0 + * ``` + * + * `optional float start = 1 [json_name = "start"];` + * @return Whether the start field is set. + */ + public fun hasStart(): kotlin.Boolean { + return _builder.hasStart() + } + + /** + * ``` + * 0.0 to 1.0 + * ``` + * + * `optional float end = 2 [json_name = "end"];` + */ + public var end: kotlin.Float + @JvmName("getEnd") + get() = _builder.getEnd() + @JvmName("setEnd") + set(value) { + _builder.setEnd(value) + } + /** + * ``` + * 0.0 to 1.0 + * ``` + * + * `optional float end = 2 [json_name = "end"];` + */ + public fun clearEnd() { + _builder.clearEnd() + } + /** + * ``` + * 0.0 to 1.0 + * ``` + * + * `optional float end = 2 [json_name = "end"];` + * @return Whether the end field is set. + */ + public fun hasEnd(): kotlin.Boolean { + return _builder.hasEnd() + } + + /** + * ``` + * float value to apply on this schedule + * ``` + * + * `optional float value = 3 [json_name = "value"];` + */ + public var value: kotlin.Float + @JvmName("getValue") + get() = _builder.getValue() + @JvmName("setValue") + set(value) { + _builder.setValue(value) + } + /** + * ``` + * float value to apply on this schedule + * ``` + * + * `optional float value = 3 [json_name = "value"];` + */ + public fun clearValue() { + _builder.clearValue() + } + /** + * ``` + * float value to apply on this schedule + * ``` + * + * `optional float value = 3 [json_name = "value"];` + * @return Whether the value field is set. + */ + public fun hasValue(): kotlin.Boolean { + return _builder.hasValue() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.ScheduleParameters.copy(block: com.stabilityai.platformapis.generation.v1.ScheduleParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ScheduleParameters = + com.stabilityai.platformapis.generation.v1.ScheduleParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/StageKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/StageKt.kt new file mode 100644 index 0000000..5f52c24 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/StageKt.kt @@ -0,0 +1,150 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializestage") +public inline fun stage(block: com.stabilityai.platformapis.generation.v1.StageKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Stage = + com.stabilityai.platformapis.generation.v1.StageKt.Dsl._create(com.stabilityai.platformapis.generation.v1.Stage.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.generation.v1.Stage` + */ +public object StageKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.Stage.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.Stage.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.Stage = _builder.build() + + /** + * `string id = 1 [json_name = "id"];` + */ + public var id: kotlin.String + @JvmName("getId") + get() = _builder.getId() + @JvmName("setId") + set(value) { + _builder.setId(value) + } + /** + * `string id = 1 [json_name = "id"];` + */ + public fun clearId() { + _builder.clearId() + } + + /** + * `.stabilityai.platformapis.generation.v1.Request request = 2 [json_name = "request"];` + */ + public var request: com.stabilityai.platformapis.generation.v1.Request + @JvmName("getRequest") + get() = _builder.getRequest() + @JvmName("setRequest") + set(value) { + _builder.setRequest(value) + } + /** + * `.stabilityai.platformapis.generation.v1.Request request = 2 [json_name = "request"];` + */ + public fun clearRequest() { + _builder.clearRequest() + } + /** + * `.stabilityai.platformapis.generation.v1.Request request = 2 [json_name = "request"];` + * @return Whether the request field is set. + */ + public fun hasRequest(): kotlin.Boolean { + return _builder.hasRequest() + } + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class OnStatusProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * `repeated .stabilityai.platformapis.generation.v1.OnStatus on_status = 3 [json_name = "onStatus"];` + */ + public val onStatus: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getOnStatusList() + ) + /** + * `repeated .stabilityai.platformapis.generation.v1.OnStatus on_status = 3 [json_name = "onStatus"];` + * @param value The onStatus to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addOnStatus") + public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.OnStatus) { + _builder.addOnStatus(value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.OnStatus on_status = 3 [json_name = "onStatus"];` + * @param value The onStatus to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignOnStatus") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.OnStatus) { + add(value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.OnStatus on_status = 3 [json_name = "onStatus"];` + * @param values The onStatus to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllOnStatus") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllOnStatus(values) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.OnStatus on_status = 3 [json_name = "onStatus"];` + * @param values The onStatus to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllOnStatus") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.OnStatus on_status = 3 [json_name = "onStatus"];` + * @param index The index to set the value at. + * @param value The onStatus to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setOnStatus") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.OnStatus) { + _builder.setOnStatus(index, value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.OnStatus on_status = 3 [json_name = "onStatus"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearOnStatus") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearOnStatus() + } + + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.Stage.copy(block: com.stabilityai.platformapis.generation.v1.StageKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Stage = + com.stabilityai.platformapis.generation.v1.StageKt.Dsl._create(this.toBuilder()).apply { block() }._build() + +public val com.stabilityai.platformapis.generation.v1.StageOrBuilder.requestOrNull: com.stabilityai.platformapis.generation.v1.Request? + get() = if (hasRequest()) getRequest() else null + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/StepParameterKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/StepParameterKt.kt new file mode 100644 index 0000000..c2a9d3c --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/StepParameterKt.kt @@ -0,0 +1,142 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializestepParameter") +public inline fun stepParameter(block: com.stabilityai.platformapis.generation.v1.StepParameterKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.StepParameter = + com.stabilityai.platformapis.generation.v1.StepParameterKt.Dsl._create(com.stabilityai.platformapis.generation.v1.StepParameter.newBuilder()).apply { block() }._build() +/** + * ``` + * Parameters that apply to this block of the schedule. + * ``` + * + * Protobuf type `stabilityai.platformapis.generation.v1.StepParameter` + */ +public object StepParameterKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.StepParameter.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.StepParameter.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.StepParameter = _builder.build() + + /** + * `float scaled_step = 1 [json_name = "scaledStep"];` + */ + public var scaledStep: kotlin.Float + @JvmName("getScaledStep") + get() = _builder.getScaledStep() + @JvmName("setScaledStep") + set(value) { + _builder.setScaledStep(value) + } + /** + * `float scaled_step = 1 [json_name = "scaledStep"];` + */ + public fun clearScaledStep() { + _builder.clearScaledStep() + } + + /** + * `optional .stabilityai.platformapis.generation.v1.SamplerParameters sampler = 2 [json_name = "sampler"];` + */ + public var sampler: com.stabilityai.platformapis.generation.v1.SamplerParameters + @JvmName("getSampler") + get() = _builder.getSampler() + @JvmName("setSampler") + set(value) { + _builder.setSampler(value) + } + /** + * `optional .stabilityai.platformapis.generation.v1.SamplerParameters sampler = 2 [json_name = "sampler"];` + */ + public fun clearSampler() { + _builder.clearSampler() + } + /** + * `optional .stabilityai.platformapis.generation.v1.SamplerParameters sampler = 2 [json_name = "sampler"];` + * @return Whether the sampler field is set. + */ + public fun hasSampler(): kotlin.Boolean { + return _builder.hasSampler() + } + public val StepParameterKt.Dsl.samplerOrNull: com.stabilityai.platformapis.generation.v1.SamplerParameters? + get() = _builder.samplerOrNull + + /** + * `optional .stabilityai.platformapis.generation.v1.ScheduleParameters schedule = 3 [json_name = "schedule"];` + */ + public var schedule: com.stabilityai.platformapis.generation.v1.ScheduleParameters + @JvmName("getSchedule") + get() = _builder.getSchedule() + @JvmName("setSchedule") + set(value) { + _builder.setSchedule(value) + } + /** + * `optional .stabilityai.platformapis.generation.v1.ScheduleParameters schedule = 3 [json_name = "schedule"];` + */ + public fun clearSchedule() { + _builder.clearSchedule() + } + /** + * `optional .stabilityai.platformapis.generation.v1.ScheduleParameters schedule = 3 [json_name = "schedule"];` + * @return Whether the schedule field is set. + */ + public fun hasSchedule(): kotlin.Boolean { + return _builder.hasSchedule() + } + public val StepParameterKt.Dsl.scheduleOrNull: com.stabilityai.platformapis.generation.v1.ScheduleParameters? + get() = _builder.scheduleOrNull + + /** + * `optional .stabilityai.platformapis.generation.v1.GuidanceParameters guidance = 4 [json_name = "guidance"];` + */ + public var guidance: com.stabilityai.platformapis.generation.v1.GuidanceParameters + @JvmName("getGuidance") + get() = _builder.getGuidance() + @JvmName("setGuidance") + set(value) { + _builder.setGuidance(value) + } + /** + * `optional .stabilityai.platformapis.generation.v1.GuidanceParameters guidance = 4 [json_name = "guidance"];` + */ + public fun clearGuidance() { + _builder.clearGuidance() + } + /** + * `optional .stabilityai.platformapis.generation.v1.GuidanceParameters guidance = 4 [json_name = "guidance"];` + * @return Whether the guidance field is set. + */ + public fun hasGuidance(): kotlin.Boolean { + return _builder.hasGuidance() + } + public val StepParameterKt.Dsl.guidanceOrNull: com.stabilityai.platformapis.generation.v1.GuidanceParameters? + get() = _builder.guidanceOrNull + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.StepParameter.copy(block: com.stabilityai.platformapis.generation.v1.StepParameterKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.StepParameter = + com.stabilityai.platformapis.generation.v1.StepParameterKt.Dsl._create(this.toBuilder()).apply { block() }._build() + +public val com.stabilityai.platformapis.generation.v1.StepParameterOrBuilder.samplerOrNull: com.stabilityai.platformapis.generation.v1.SamplerParameters? + get() = if (hasSampler()) getSampler() else null + +public val com.stabilityai.platformapis.generation.v1.StepParameterOrBuilder.scheduleOrNull: com.stabilityai.platformapis.generation.v1.ScheduleParameters? + get() = if (hasSchedule()) getSchedule() else null + +public val com.stabilityai.platformapis.generation.v1.StepParameterOrBuilder.guidanceOrNull: com.stabilityai.platformapis.generation.v1.GuidanceParameters? + get() = if (hasGuidance()) getGuidance() else null + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TokenKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TokenKt.kt new file mode 100644 index 0000000..04b83f8 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TokenKt.kt @@ -0,0 +1,79 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializetoken") +public inline fun token(block: com.stabilityai.platformapis.generation.v1.TokenKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Token = + com.stabilityai.platformapis.generation.v1.TokenKt.Dsl._create(com.stabilityai.platformapis.generation.v1.Token.newBuilder()).apply { block() }._build() +/** + * ``` + * Generally, a GPT BPE 16-bit token, paired with an optional string representation. + * ``` + * + * Protobuf type `stabilityai.platformapis.generation.v1.Token` + */ +public object TokenKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.Token.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.Token.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.Token = _builder.build() + + /** + * `optional string text = 1 [json_name = "text"];` + */ + public var text: kotlin.String + @JvmName("getText") + get() = _builder.getText() + @JvmName("setText") + set(value) { + _builder.setText(value) + } + /** + * `optional string text = 1 [json_name = "text"];` + */ + public fun clearText() { + _builder.clearText() + } + /** + * `optional string text = 1 [json_name = "text"];` + * @return Whether the text field is set. + */ + public fun hasText(): kotlin.Boolean { + return _builder.hasText() + } + + /** + * `uint32 id = 2 [json_name = "id"];` + */ + public var id: kotlin.Int + @JvmName("getId") + get() = _builder.getId() + @JvmName("setId") + set(value) { + _builder.setId(value) + } + /** + * `uint32 id = 2 [json_name = "id"];` + */ + public fun clearId() { + _builder.clearId() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.Token.copy(block: com.stabilityai.platformapis.generation.v1.TokenKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Token = + com.stabilityai.platformapis.generation.v1.TokenKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TokensKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TokensKt.kt new file mode 100644 index 0000000..babf062 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TokensKt.kt @@ -0,0 +1,134 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializetokens") +public inline fun tokens(block: com.stabilityai.platformapis.generation.v1.TokensKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Tokens = + com.stabilityai.platformapis.generation.v1.TokensKt.Dsl._create(com.stabilityai.platformapis.generation.v1.Tokens.newBuilder()).apply { block() }._build() +/** + * ``` + * Sequence of tokens, paired with the id of the tokenizer used to generate them. + * ``` + * + * Protobuf type `stabilityai.platformapis.generation.v1.Tokens` + */ +public object TokensKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.Tokens.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.Tokens.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.Tokens = _builder.build() + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class TokensProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * `repeated .stabilityai.platformapis.generation.v1.Token tokens = 1 [json_name = "tokens"];` + */ + public val tokens: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getTokensList() + ) + /** + * `repeated .stabilityai.platformapis.generation.v1.Token tokens = 1 [json_name = "tokens"];` + * @param value The tokens to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addTokens") + public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.Token) { + _builder.addTokens(value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.Token tokens = 1 [json_name = "tokens"];` + * @param value The tokens to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignTokens") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.Token) { + add(value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.Token tokens = 1 [json_name = "tokens"];` + * @param values The tokens to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllTokens") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllTokens(values) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.Token tokens = 1 [json_name = "tokens"];` + * @param values The tokens to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllTokens") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.Token tokens = 1 [json_name = "tokens"];` + * @param index The index to set the value at. + * @param value The tokens to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setTokens") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.Token) { + _builder.setTokens(index, value) + } + /** + * `repeated .stabilityai.platformapis.generation.v1.Token tokens = 1 [json_name = "tokens"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearTokens") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearTokens() + } + + + /** + * `optional string tokenizer_id = 2 [json_name = "tokenizerId"];` + */ + public var tokenizerId: kotlin.String + @JvmName("getTokenizerId") + get() = _builder.getTokenizerId() + @JvmName("setTokenizerId") + set(value) { + _builder.setTokenizerId(value) + } + /** + * `optional string tokenizer_id = 2 [json_name = "tokenizerId"];` + */ + public fun clearTokenizerId() { + _builder.clearTokenizerId() + } + /** + * `optional string tokenizer_id = 2 [json_name = "tokenizerId"];` + * @return Whether the tokenizerId field is set. + */ + public fun hasTokenizerId(): kotlin.Boolean { + return _builder.hasTokenizerId() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.Tokens.copy(block: com.stabilityai.platformapis.generation.v1.TokensKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Tokens = + com.stabilityai.platformapis.generation.v1.TokensKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformCameraPoseKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformCameraPoseKt.kt new file mode 100644 index 0000000..c428867 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformCameraPoseKt.kt @@ -0,0 +1,157 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializetransformCameraPose") +public inline fun transformCameraPose(block: com.stabilityai.platformapis.generation.v1.TransformCameraPoseKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformCameraPose = + com.stabilityai.platformapis.generation.v1.TransformCameraPoseKt.Dsl._create(com.stabilityai.platformapis.generation.v1.TransformCameraPose.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.generation.v1.TransformCameraPose` + */ +public object TransformCameraPoseKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.TransformCameraPose.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.TransformCameraPose.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.TransformCameraPose = _builder.build() + + /** + * ``` + * 4x4 transform matrix for the next frame + * ``` + * + * `.stabilityai.platformapis.generation.v1.TransformMatrix world_to_view_matrix = 1 [json_name = "worldToViewMatrix"];` + */ + public var worldToViewMatrix: com.stabilityai.platformapis.generation.v1.TransformMatrix + @JvmName("getWorldToViewMatrix") + get() = _builder.getWorldToViewMatrix() + @JvmName("setWorldToViewMatrix") + set(value) { + _builder.setWorldToViewMatrix(value) + } + /** + * ``` + * 4x4 transform matrix for the next frame + * ``` + * + * `.stabilityai.platformapis.generation.v1.TransformMatrix world_to_view_matrix = 1 [json_name = "worldToViewMatrix"];` + */ + public fun clearWorldToViewMatrix() { + _builder.clearWorldToViewMatrix() + } + /** + * ``` + * 4x4 transform matrix for the next frame + * ``` + * + * `.stabilityai.platformapis.generation.v1.TransformMatrix world_to_view_matrix = 1 [json_name = "worldToViewMatrix"];` + * @return Whether the worldToViewMatrix field is set. + */ + public fun hasWorldToViewMatrix(): kotlin.Boolean { + return _builder.hasWorldToViewMatrix() + } + + /** + * `.stabilityai.platformapis.generation.v1.CameraParameters camera_parameters = 2 [json_name = "cameraParameters"];` + */ + public var cameraParameters: com.stabilityai.platformapis.generation.v1.CameraParameters + @JvmName("getCameraParameters") + get() = _builder.getCameraParameters() + @JvmName("setCameraParameters") + set(value) { + _builder.setCameraParameters(value) + } + /** + * `.stabilityai.platformapis.generation.v1.CameraParameters camera_parameters = 2 [json_name = "cameraParameters"];` + */ + public fun clearCameraParameters() { + _builder.clearCameraParameters() + } + /** + * `.stabilityai.platformapis.generation.v1.CameraParameters camera_parameters = 2 [json_name = "cameraParameters"];` + * @return Whether the cameraParameters field is set. + */ + public fun hasCameraParameters(): kotlin.Boolean { + return _builder.hasCameraParameters() + } + + /** + * ``` + * Prefill masked areas with values matching the colors around the area + * ``` + * + * `bool do_prefill = 5 [json_name = "doPrefill"];` + */ + public var doPrefill: kotlin.Boolean + @JvmName("getDoPrefill") + get() = _builder.getDoPrefill() + @JvmName("setDoPrefill") + set(value) { + _builder.setDoPrefill(value) + } + /** + * ``` + * Prefill masked areas with values matching the colors around the area + * ``` + * + * `bool do_prefill = 5 [json_name = "doPrefill"];` + */ + public fun clearDoPrefill() { + _builder.clearDoPrefill() + } + + /** + * ``` + * Both image and mask will be rendered using this method. + * ``` + * + * `.stabilityai.platformapis.generation.v1.RenderMode render_mode = 8 [json_name = "renderMode"];` + */ + public var renderMode: com.stabilityai.platformapis.generation.v1.RenderMode + @JvmName("getRenderMode") + get() = _builder.getRenderMode() + @JvmName("setRenderMode") + set(value) { + _builder.setRenderMode(value) + } + public var renderModeValue: kotlin.Int + @JvmName("getRenderModeValue") + get() = _builder.getRenderModeValue() + @JvmName("setRenderModeValue") + set(value) { + _builder.setRenderModeValue(value) + } + /** + * ``` + * Both image and mask will be rendered using this method. + * ``` + * + * `.stabilityai.platformapis.generation.v1.RenderMode render_mode = 8 [json_name = "renderMode"];` + */ + public fun clearRenderMode() { + _builder.clearRenderMode() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.TransformCameraPose.copy(block: com.stabilityai.platformapis.generation.v1.TransformCameraPoseKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformCameraPose = + com.stabilityai.platformapis.generation.v1.TransformCameraPoseKt.Dsl._create(this.toBuilder()).apply { block() }._build() + +public val com.stabilityai.platformapis.generation.v1.TransformCameraPoseOrBuilder.worldToViewMatrixOrNull: com.stabilityai.platformapis.generation.v1.TransformMatrix? + get() = if (hasWorldToViewMatrix()) getWorldToViewMatrix() else null + +public val com.stabilityai.platformapis.generation.v1.TransformCameraPoseOrBuilder.cameraParametersOrNull: com.stabilityai.platformapis.generation.v1.CameraParameters? + get() = if (hasCameraParameters()) getCameraParameters() else null + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformColorAdjustKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformColorAdjustKt.kt new file mode 100644 index 0000000..b36ffec --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformColorAdjustKt.kt @@ -0,0 +1,370 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializetransformColorAdjust") +public inline fun transformColorAdjust(block: com.stabilityai.platformapis.generation.v1.TransformColorAdjustKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformColorAdjust = + com.stabilityai.platformapis.generation.v1.TransformColorAdjustKt.Dsl._create(com.stabilityai.platformapis.generation.v1.TransformColorAdjust.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.generation.v1.TransformColorAdjust` + */ +public object TransformColorAdjustKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.TransformColorAdjust.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.TransformColorAdjust.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.TransformColorAdjust = _builder.build() + + /** + * ``` + * scale pixel intensities, 1.0 is no change + * ``` + * + * `optional float brightness = 1 [json_name = "brightness"];` + */ + public var brightness: kotlin.Float + @JvmName("getBrightness") + get() = _builder.getBrightness() + @JvmName("setBrightness") + set(value) { + _builder.setBrightness(value) + } + /** + * ``` + * scale pixel intensities, 1.0 is no change + * ``` + * + * `optional float brightness = 1 [json_name = "brightness"];` + */ + public fun clearBrightness() { + _builder.clearBrightness() + } + /** + * ``` + * scale pixel intensities, 1.0 is no change + * ``` + * + * `optional float brightness = 1 [json_name = "brightness"];` + * @return Whether the brightness field is set. + */ + public fun hasBrightness(): kotlin.Boolean { + return _builder.hasBrightness() + } + + /** + * ``` + * contrast adjustment, 1.0 is no change + * ``` + * + * `optional float contrast = 2 [json_name = "contrast"];` + */ + public var contrast: kotlin.Float + @JvmName("getContrast") + get() = _builder.getContrast() + @JvmName("setContrast") + set(value) { + _builder.setContrast(value) + } + /** + * ``` + * contrast adjustment, 1.0 is no change + * ``` + * + * `optional float contrast = 2 [json_name = "contrast"];` + */ + public fun clearContrast() { + _builder.clearContrast() + } + /** + * ``` + * contrast adjustment, 1.0 is no change + * ``` + * + * `optional float contrast = 2 [json_name = "contrast"];` + * @return Whether the contrast field is set. + */ + public fun hasContrast(): kotlin.Boolean { + return _builder.hasContrast() + } + + /** + * ``` + * -180 to 180 hue adjustment, 0.0 is no change + * ``` + * + * `optional float hue = 3 [json_name = "hue"];` + */ + public var hue: kotlin.Float + @JvmName("getHue") + get() = _builder.getHue() + @JvmName("setHue") + set(value) { + _builder.setHue(value) + } + /** + * ``` + * -180 to 180 hue adjustment, 0.0 is no change + * ``` + * + * `optional float hue = 3 [json_name = "hue"];` + */ + public fun clearHue() { + _builder.clearHue() + } + /** + * ``` + * -180 to 180 hue adjustment, 0.0 is no change + * ``` + * + * `optional float hue = 3 [json_name = "hue"];` + * @return Whether the hue field is set. + */ + public fun hasHue(): kotlin.Boolean { + return _builder.hasHue() + } + + /** + * ``` + * 0.0 to 2.0 saturation scale, 1.0 is no change + * ``` + * + * `optional float saturation = 4 [json_name = "saturation"];` + */ + public var saturation: kotlin.Float + @JvmName("getSaturation") + get() = _builder.getSaturation() + @JvmName("setSaturation") + set(value) { + _builder.setSaturation(value) + } + /** + * ``` + * 0.0 to 2.0 saturation scale, 1.0 is no change + * ``` + * + * `optional float saturation = 4 [json_name = "saturation"];` + */ + public fun clearSaturation() { + _builder.clearSaturation() + } + /** + * ``` + * 0.0 to 2.0 saturation scale, 1.0 is no change + * ``` + * + * `optional float saturation = 4 [json_name = "saturation"];` + * @return Whether the saturation field is set. + */ + public fun hasSaturation(): kotlin.Boolean { + return _builder.hasSaturation() + } + + /** + * ``` + * -1.0 to 1.0 lightness adjustment, 0.0 is no change + * ``` + * + * `optional float lightness = 5 [json_name = "lightness"];` + */ + public var lightness: kotlin.Float + @JvmName("getLightness") + get() = _builder.getLightness() + @JvmName("setLightness") + set(value) { + _builder.setLightness(value) + } + /** + * ``` + * -1.0 to 1.0 lightness adjustment, 0.0 is no change + * ``` + * + * `optional float lightness = 5 [json_name = "lightness"];` + */ + public fun clearLightness() { + _builder.clearLightness() + } + /** + * ``` + * -1.0 to 1.0 lightness adjustment, 0.0 is no change + * ``` + * + * `optional float lightness = 5 [json_name = "lightness"];` + * @return Whether the lightness field is set. + */ + public fun hasLightness(): kotlin.Boolean { + return _builder.hasLightness() + } + + /** + * ``` + * image to color match + * ``` + * + * `optional .stabilityai.platformapis.generation.v1.Artifact match_image = 6 [json_name = "matchImage"];` + */ + public var matchImage: com.stabilityai.platformapis.generation.v1.Artifact + @JvmName("getMatchImage") + get() = _builder.getMatchImage() + @JvmName("setMatchImage") + set(value) { + _builder.setMatchImage(value) + } + /** + * ``` + * image to color match + * ``` + * + * `optional .stabilityai.platformapis.generation.v1.Artifact match_image = 6 [json_name = "matchImage"];` + */ + public fun clearMatchImage() { + _builder.clearMatchImage() + } + /** + * ``` + * image to color match + * ``` + * + * `optional .stabilityai.platformapis.generation.v1.Artifact match_image = 6 [json_name = "matchImage"];` + * @return Whether the matchImage field is set. + */ + public fun hasMatchImage(): kotlin.Boolean { + return _builder.hasMatchImage() + } + public val TransformColorAdjustKt.Dsl.matchImageOrNull: com.stabilityai.platformapis.generation.v1.Artifact? + get() = _builder.matchImageOrNull + + /** + * ``` + * color match mode to use + * ``` + * + * `optional .stabilityai.platformapis.generation.v1.ColorMatchMode match_mode = 7 [json_name = "matchMode"];` + */ + public var matchMode: com.stabilityai.platformapis.generation.v1.ColorMatchMode + @JvmName("getMatchMode") + get() = _builder.getMatchMode() + @JvmName("setMatchMode") + set(value) { + _builder.setMatchMode(value) + } + public var matchModeValue: kotlin.Int + @JvmName("getMatchModeValue") + get() = _builder.getMatchModeValue() + @JvmName("setMatchModeValue") + set(value) { + _builder.setMatchModeValue(value) + } + /** + * ``` + * color match mode to use + * ``` + * + * `optional .stabilityai.platformapis.generation.v1.ColorMatchMode match_mode = 7 [json_name = "matchMode"];` + */ + public fun clearMatchMode() { + _builder.clearMatchMode() + } + /** + * ``` + * color match mode to use + * ``` + * + * `optional .stabilityai.platformapis.generation.v1.ColorMatchMode match_mode = 7 [json_name = "matchMode"];` + * @return Whether the matchMode field is set. + */ + public fun hasMatchMode(): kotlin.Boolean { + return _builder.hasMatchMode() + } + + /** + * ``` + * amount of gaussian noise to add + * ``` + * + * `optional float noise_amount = 8 [json_name = "noiseAmount"];` + */ + public var noiseAmount: kotlin.Float + @JvmName("getNoiseAmount") + get() = _builder.getNoiseAmount() + @JvmName("setNoiseAmount") + set(value) { + _builder.setNoiseAmount(value) + } + /** + * ``` + * amount of gaussian noise to add + * ``` + * + * `optional float noise_amount = 8 [json_name = "noiseAmount"];` + */ + public fun clearNoiseAmount() { + _builder.clearNoiseAmount() + } + /** + * ``` + * amount of gaussian noise to add + * ``` + * + * `optional float noise_amount = 8 [json_name = "noiseAmount"];` + * @return Whether the noiseAmount field is set. + */ + public fun hasNoiseAmount(): kotlin.Boolean { + return _builder.hasNoiseAmount() + } + + /** + * ``` + * random seed for noise + * ``` + * + * `optional uint32 noise_seed = 9 [json_name = "noiseSeed"];` + */ + public var noiseSeed: kotlin.Int + @JvmName("getNoiseSeed") + get() = _builder.getNoiseSeed() + @JvmName("setNoiseSeed") + set(value) { + _builder.setNoiseSeed(value) + } + /** + * ``` + * random seed for noise + * ``` + * + * `optional uint32 noise_seed = 9 [json_name = "noiseSeed"];` + */ + public fun clearNoiseSeed() { + _builder.clearNoiseSeed() + } + /** + * ``` + * random seed for noise + * ``` + * + * `optional uint32 noise_seed = 9 [json_name = "noiseSeed"];` + * @return Whether the noiseSeed field is set. + */ + public fun hasNoiseSeed(): kotlin.Boolean { + return _builder.hasNoiseSeed() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.TransformColorAdjust.copy(block: com.stabilityai.platformapis.generation.v1.TransformColorAdjustKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformColorAdjust = + com.stabilityai.platformapis.generation.v1.TransformColorAdjustKt.Dsl._create(this.toBuilder()).apply { block() }._build() + +public val com.stabilityai.platformapis.generation.v1.TransformColorAdjustOrBuilder.matchImageOrNull: com.stabilityai.platformapis.generation.v1.Artifact? + get() = if (hasMatchImage()) getMatchImage() else null + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformDepthCalcKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformDepthCalcKt.kt new file mode 100644 index 0000000..7d4595b --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformDepthCalcKt.kt @@ -0,0 +1,142 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializetransformDepthCalc") +public inline fun transformDepthCalc(block: com.stabilityai.platformapis.generation.v1.TransformDepthCalcKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformDepthCalc = + com.stabilityai.platformapis.generation.v1.TransformDepthCalcKt.Dsl._create(com.stabilityai.platformapis.generation.v1.TransformDepthCalc.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.generation.v1.TransformDepthCalc` + */ +public object TransformDepthCalcKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.TransformDepthCalc.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.TransformDepthCalc.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.TransformDepthCalc = _builder.build() + + /** + * ``` + * blend factor between AdaBins (0.0) and MiDaS (1.0) + * ``` + * + * `optional float blend_weight = 1 [json_name = "blendWeight"];` + */ + public var blendWeight: kotlin.Float + @JvmName("getBlendWeight") + get() = _builder.getBlendWeight() + @JvmName("setBlendWeight") + set(value) { + _builder.setBlendWeight(value) + } + /** + * ``` + * blend factor between AdaBins (0.0) and MiDaS (1.0) + * ``` + * + * `optional float blend_weight = 1 [json_name = "blendWeight"];` + */ + public fun clearBlendWeight() { + _builder.clearBlendWeight() + } + /** + * ``` + * blend factor between AdaBins (0.0) and MiDaS (1.0) + * ``` + * + * `optional float blend_weight = 1 [json_name = "blendWeight"];` + * @return Whether the blendWeight field is set. + */ + public fun hasBlendWeight(): kotlin.Boolean { + return _builder.hasBlendWeight() + } + + /** + * ``` + * defaults to 0.0 + * ``` + * + * `optional uint32 blur_radius = 2 [json_name = "blurRadius"];` + */ + public var blurRadius: kotlin.Int + @JvmName("getBlurRadius") + get() = _builder.getBlurRadius() + @JvmName("setBlurRadius") + set(value) { + _builder.setBlurRadius(value) + } + /** + * ``` + * defaults to 0.0 + * ``` + * + * `optional uint32 blur_radius = 2 [json_name = "blurRadius"];` + */ + public fun clearBlurRadius() { + _builder.clearBlurRadius() + } + /** + * ``` + * defaults to 0.0 + * ``` + * + * `optional uint32 blur_radius = 2 [json_name = "blurRadius"];` + * @return Whether the blurRadius field is set. + */ + public fun hasBlurRadius(): kotlin.Boolean { + return _builder.hasBlurRadius() + } + + /** + * ``` + * make near depths have higher values + * ``` + * + * `optional bool reverse = 3 [json_name = "reverse"];` + */ + public var reverse: kotlin.Boolean + @JvmName("getReverse") + get() = _builder.getReverse() + @JvmName("setReverse") + set(value) { + _builder.setReverse(value) + } + /** + * ``` + * make near depths have higher values + * ``` + * + * `optional bool reverse = 3 [json_name = "reverse"];` + */ + public fun clearReverse() { + _builder.clearReverse() + } + /** + * ``` + * make near depths have higher values + * ``` + * + * `optional bool reverse = 3 [json_name = "reverse"];` + * @return Whether the reverse field is set. + */ + public fun hasReverse(): kotlin.Boolean { + return _builder.hasReverse() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.TransformDepthCalc.copy(block: com.stabilityai.platformapis.generation.v1.TransformDepthCalcKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformDepthCalc = + com.stabilityai.platformapis.generation.v1.TransformDepthCalcKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformMatrixKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformMatrixKt.kt new file mode 100644 index 0000000..f596150 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformMatrixKt.kt @@ -0,0 +1,155 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializetransformMatrix") +public inline fun transformMatrix(block: com.stabilityai.platformapis.generation.v1.TransformMatrixKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformMatrix = + com.stabilityai.platformapis.generation.v1.TransformMatrixKt.Dsl._create(com.stabilityai.platformapis.generation.v1.TransformMatrix.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.generation.v1.TransformMatrix` + */ +public object TransformMatrixKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.TransformMatrix.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.TransformMatrix.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.TransformMatrix = _builder.build() + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class DataProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * ``` + * Column-major 3x3 or 4x4 perspective matrix + * [sx, 10, 20, tx] [x] + * [01, sy, 21, ty] . [y] + * [02, 12, sz, tz] [z] + * [03, 13, 23, 33] [1] + * ``` + * + * `repeated float data = 1 [json_name = "data", packed = true];` + */ + public val data: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getDataList() + ) + /** + * ``` + * Column-major 3x3 or 4x4 perspective matrix + * [sx, 10, 20, tx] [x] + * [01, sy, 21, ty] . [y] + * [02, 12, sz, tz] [z] + * [03, 13, 23, 33] [1] + * ``` + * + * `repeated float data = 1 [json_name = "data", packed = true];` + * @param value The data to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addData") + public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.Float) { + _builder.addData(value) + }/** + * ``` + * Column-major 3x3 or 4x4 perspective matrix + * [sx, 10, 20, tx] [x] + * [01, sy, 21, ty] . [y] + * [02, 12, sz, tz] [z] + * [03, 13, 23, 33] [1] + * ``` + * + * `repeated float data = 1 [json_name = "data", packed = true];` + * @param value The data to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignData") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.Float) { + add(value) + }/** + * ``` + * Column-major 3x3 or 4x4 perspective matrix + * [sx, 10, 20, tx] [x] + * [01, sy, 21, ty] . [y] + * [02, 12, sz, tz] [z] + * [03, 13, 23, 33] [1] + * ``` + * + * `repeated float data = 1 [json_name = "data", packed = true];` + * @param values The data to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllData") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllData(values) + }/** + * ``` + * Column-major 3x3 or 4x4 perspective matrix + * [sx, 10, 20, tx] [x] + * [01, sy, 21, ty] . [y] + * [02, 12, sz, tz] [z] + * [03, 13, 23, 33] [1] + * ``` + * + * `repeated float data = 1 [json_name = "data", packed = true];` + * @param values The data to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllData") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + }/** + * ``` + * Column-major 3x3 or 4x4 perspective matrix + * [sx, 10, 20, tx] [x] + * [01, sy, 21, ty] . [y] + * [02, 12, sz, tz] [z] + * [03, 13, 23, 33] [1] + * ``` + * + * `repeated float data = 1 [json_name = "data", packed = true];` + * @param index The index to set the value at. + * @param value The data to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setData") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.Float) { + _builder.setData(index, value) + }/** + * ``` + * Column-major 3x3 or 4x4 perspective matrix + * [sx, 10, 20, tx] [x] + * [01, sy, 21, ty] . [y] + * [02, 12, sz, tz] [z] + * [03, 13, 23, 33] [1] + * ``` + * + * `repeated float data = 1 [json_name = "data", packed = true];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearData") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearData() + }} +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.TransformMatrix.copy(block: com.stabilityai.platformapis.generation.v1.TransformMatrixKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformMatrix = + com.stabilityai.platformapis.generation.v1.TransformMatrixKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformParametersKt.kt new file mode 100644 index 0000000..c48f269 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformParametersKt.kt @@ -0,0 +1,149 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializetransformParameters") +public inline fun transformParameters(block: com.stabilityai.platformapis.generation.v1.TransformParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformParameters = + com.stabilityai.platformapis.generation.v1.TransformParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.TransformParameters.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.generation.v1.TransformParameters` + */ +public object TransformParametersKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.TransformParameters.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.TransformParameters.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.TransformParameters = _builder.build() + + /** + * `.stabilityai.platformapis.generation.v1.TransformColorAdjust color_adjust = 2 [json_name = "colorAdjust"];` + */ + public var colorAdjust: com.stabilityai.platformapis.generation.v1.TransformColorAdjust + @JvmName("getColorAdjust") + get() = _builder.getColorAdjust() + @JvmName("setColorAdjust") + set(value) { + _builder.setColorAdjust(value) + } + /** + * `.stabilityai.platformapis.generation.v1.TransformColorAdjust color_adjust = 2 [json_name = "colorAdjust"];` + */ + public fun clearColorAdjust() { + _builder.clearColorAdjust() + } + /** + * `.stabilityai.platformapis.generation.v1.TransformColorAdjust color_adjust = 2 [json_name = "colorAdjust"];` + * @return Whether the colorAdjust field is set. + */ + public fun hasColorAdjust(): kotlin.Boolean { + return _builder.hasColorAdjust() + } + + /** + * `.stabilityai.platformapis.generation.v1.TransformDepthCalc depth_calc = 4 [json_name = "depthCalc"];` + */ + public var depthCalc: com.stabilityai.platformapis.generation.v1.TransformDepthCalc + @JvmName("getDepthCalc") + get() = _builder.getDepthCalc() + @JvmName("setDepthCalc") + set(value) { + _builder.setDepthCalc(value) + } + /** + * `.stabilityai.platformapis.generation.v1.TransformDepthCalc depth_calc = 4 [json_name = "depthCalc"];` + */ + public fun clearDepthCalc() { + _builder.clearDepthCalc() + } + /** + * `.stabilityai.platformapis.generation.v1.TransformDepthCalc depth_calc = 4 [json_name = "depthCalc"];` + * @return Whether the depthCalc field is set. + */ + public fun hasDepthCalc(): kotlin.Boolean { + return _builder.hasDepthCalc() + } + + /** + * `.stabilityai.platformapis.generation.v1.TransformResample resample = 5 [json_name = "resample"];` + */ + public var resample: com.stabilityai.platformapis.generation.v1.TransformResample + @JvmName("getResample") + get() = _builder.getResample() + @JvmName("setResample") + set(value) { + _builder.setResample(value) + } + /** + * `.stabilityai.platformapis.generation.v1.TransformResample resample = 5 [json_name = "resample"];` + */ + public fun clearResample() { + _builder.clearResample() + } + /** + * `.stabilityai.platformapis.generation.v1.TransformResample resample = 5 [json_name = "resample"];` + * @return Whether the resample field is set. + */ + public fun hasResample(): kotlin.Boolean { + return _builder.hasResample() + } + + /** + * `.stabilityai.platformapis.generation.v1.TransformCameraPose camera_pose = 6 [json_name = "cameraPose"];` + */ + public var cameraPose: com.stabilityai.platformapis.generation.v1.TransformCameraPose + @JvmName("getCameraPose") + get() = _builder.getCameraPose() + @JvmName("setCameraPose") + set(value) { + _builder.setCameraPose(value) + } + /** + * `.stabilityai.platformapis.generation.v1.TransformCameraPose camera_pose = 6 [json_name = "cameraPose"];` + */ + public fun clearCameraPose() { + _builder.clearCameraPose() + } + /** + * `.stabilityai.platformapis.generation.v1.TransformCameraPose camera_pose = 6 [json_name = "cameraPose"];` + * @return Whether the cameraPose field is set. + */ + public fun hasCameraPose(): kotlin.Boolean { + return _builder.hasCameraPose() + } + public val transformCase: com.stabilityai.platformapis.generation.v1.TransformParameters.TransformCase + @JvmName("getTransformCase") + get() = _builder.getTransformCase() + + public fun clearTransform() { + _builder.clearTransform() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.TransformParameters.copy(block: com.stabilityai.platformapis.generation.v1.TransformParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformParameters = + com.stabilityai.platformapis.generation.v1.TransformParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() + +public val com.stabilityai.platformapis.generation.v1.TransformParametersOrBuilder.colorAdjustOrNull: com.stabilityai.platformapis.generation.v1.TransformColorAdjust? + get() = if (hasColorAdjust()) getColorAdjust() else null + +public val com.stabilityai.platformapis.generation.v1.TransformParametersOrBuilder.depthCalcOrNull: com.stabilityai.platformapis.generation.v1.TransformDepthCalc? + get() = if (hasDepthCalc()) getDepthCalc() else null + +public val com.stabilityai.platformapis.generation.v1.TransformParametersOrBuilder.resampleOrNull: com.stabilityai.platformapis.generation.v1.TransformResample? + get() = if (hasResample()) getResample() else null + +public val com.stabilityai.platformapis.generation.v1.TransformParametersOrBuilder.cameraPoseOrNull: com.stabilityai.platformapis.generation.v1.TransformCameraPose? + get() = if (hasCameraPose()) getCameraPose() else null + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformResampleKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformResampleKt.kt new file mode 100644 index 0000000..80e5ae5 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformResampleKt.kt @@ -0,0 +1,218 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializetransformResample") +public inline fun transformResample(block: com.stabilityai.platformapis.generation.v1.TransformResampleKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformResample = + com.stabilityai.platformapis.generation.v1.TransformResampleKt.Dsl._create(com.stabilityai.platformapis.generation.v1.TransformResample.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.generation.v1.TransformResample` + */ +public object TransformResampleKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.TransformResample.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.TransformResample.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.TransformResample = _builder.build() + + /** + * ``` + * extrapolation of border pixels + * ``` + * + * `.stabilityai.platformapis.generation.v1.BorderMode border_mode = 1 [json_name = "borderMode"];` + */ + public var borderMode: com.stabilityai.platformapis.generation.v1.BorderMode + @JvmName("getBorderMode") + get() = _builder.getBorderMode() + @JvmName("setBorderMode") + set(value) { + _builder.setBorderMode(value) + } + public var borderModeValue: kotlin.Int + @JvmName("getBorderModeValue") + get() = _builder.getBorderModeValue() + @JvmName("setBorderModeValue") + set(value) { + _builder.setBorderModeValue(value) + } + /** + * ``` + * extrapolation of border pixels + * ``` + * + * `.stabilityai.platformapis.generation.v1.BorderMode border_mode = 1 [json_name = "borderMode"];` + */ + public fun clearBorderMode() { + _builder.clearBorderMode() + } + + /** + * ``` + * 3x3 or 4x4 matrix + * ``` + * + * `.stabilityai.platformapis.generation.v1.TransformMatrix transform = 2 [json_name = "transform"];` + */ + public var transform: com.stabilityai.platformapis.generation.v1.TransformMatrix + @JvmName("getTransform") + get() = _builder.getTransform() + @JvmName("setTransform") + set(value) { + _builder.setTransform(value) + } + /** + * ``` + * 3x3 or 4x4 matrix + * ``` + * + * `.stabilityai.platformapis.generation.v1.TransformMatrix transform = 2 [json_name = "transform"];` + */ + public fun clearTransform() { + _builder.clearTransform() + } + /** + * ``` + * 3x3 or 4x4 matrix + * ``` + * + * `.stabilityai.platformapis.generation.v1.TransformMatrix transform = 2 [json_name = "transform"];` + * @return Whether the transform field is set. + */ + public fun hasTransform(): kotlin.Boolean { + return _builder.hasTransform() + } + + /** + * ``` + * 3x3 or 4x4 matrix, defaults to identity + * ``` + * + * `optional .stabilityai.platformapis.generation.v1.TransformMatrix prev_transform = 3 [json_name = "prevTransform"];` + */ + public var prevTransform: com.stabilityai.platformapis.generation.v1.TransformMatrix + @JvmName("getPrevTransform") + get() = _builder.getPrevTransform() + @JvmName("setPrevTransform") + set(value) { + _builder.setPrevTransform(value) + } + /** + * ``` + * 3x3 or 4x4 matrix, defaults to identity + * ``` + * + * `optional .stabilityai.platformapis.generation.v1.TransformMatrix prev_transform = 3 [json_name = "prevTransform"];` + */ + public fun clearPrevTransform() { + _builder.clearPrevTransform() + } + /** + * ``` + * 3x3 or 4x4 matrix, defaults to identity + * ``` + * + * `optional .stabilityai.platformapis.generation.v1.TransformMatrix prev_transform = 3 [json_name = "prevTransform"];` + * @return Whether the prevTransform field is set. + */ + public fun hasPrevTransform(): kotlin.Boolean { + return _builder.hasPrevTransform() + } + public val TransformResampleKt.Dsl.prevTransformOrNull: com.stabilityai.platformapis.generation.v1.TransformMatrix? + get() = _builder.prevTransformOrNull + + /** + * ``` + * depth warp factor, defaults to 1.0 + * ``` + * + * `optional float depth_warp = 4 [json_name = "depthWarp"];` + */ + public var depthWarp: kotlin.Float + @JvmName("getDepthWarp") + get() = _builder.getDepthWarp() + @JvmName("setDepthWarp") + set(value) { + _builder.setDepthWarp(value) + } + /** + * ``` + * depth warp factor, defaults to 1.0 + * ``` + * + * `optional float depth_warp = 4 [json_name = "depthWarp"];` + */ + public fun clearDepthWarp() { + _builder.clearDepthWarp() + } + /** + * ``` + * depth warp factor, defaults to 1.0 + * ``` + * + * `optional float depth_warp = 4 [json_name = "depthWarp"];` + * @return Whether the depthWarp field is set. + */ + public fun hasDepthWarp(): kotlin.Boolean { + return _builder.hasDepthWarp() + } + + /** + * ``` + * return inpaint mask + * ``` + * + * `optional bool export_mask = 5 [json_name = "exportMask"];` + */ + public var exportMask: kotlin.Boolean + @JvmName("getExportMask") + get() = _builder.getExportMask() + @JvmName("setExportMask") + set(value) { + _builder.setExportMask(value) + } + /** + * ``` + * return inpaint mask + * ``` + * + * `optional bool export_mask = 5 [json_name = "exportMask"];` + */ + public fun clearExportMask() { + _builder.clearExportMask() + } + /** + * ``` + * return inpaint mask + * ``` + * + * `optional bool export_mask = 5 [json_name = "exportMask"];` + * @return Whether the exportMask field is set. + */ + public fun hasExportMask(): kotlin.Boolean { + return _builder.hasExportMask() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.TransformResample.copy(block: com.stabilityai.platformapis.generation.v1.TransformResampleKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformResample = + com.stabilityai.platformapis.generation.v1.TransformResampleKt.Dsl._create(this.toBuilder()).apply { block() }._build() + +public val com.stabilityai.platformapis.generation.v1.TransformResampleOrBuilder.transformOrNull: com.stabilityai.platformapis.generation.v1.TransformMatrix? + get() = if (hasTransform()) getTransform() else null + +public val com.stabilityai.platformapis.generation.v1.TransformResampleOrBuilder.prevTransformOrNull: com.stabilityai.platformapis.generation.v1.TransformMatrix? + get() = if (hasPrevTransform()) getPrevTransform() else null + diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformTypeKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformTypeKt.kt new file mode 100644 index 0000000..731df9f --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformTypeKt.kt @@ -0,0 +1,103 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/generation/v1/generation.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.generation.v1; + +@kotlin.jvm.JvmName("-initializetransformType") +public inline fun transformType(block: com.stabilityai.platformapis.generation.v1.TransformTypeKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformType = + com.stabilityai.platformapis.generation.v1.TransformTypeKt.Dsl._create(com.stabilityai.platformapis.generation.v1.TransformType.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.generation.v1.TransformType` + */ +public object TransformTypeKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.generation.v1.TransformType.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.generation.v1.TransformType.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.generation.v1.TransformType = _builder.build() + + /** + * `.stabilityai.platformapis.generation.v1.DiffusionSampler diffusion = 1 [json_name = "diffusion"];` + */ + public var diffusion: com.stabilityai.platformapis.generation.v1.DiffusionSampler + @JvmName("getDiffusion") + get() = _builder.getDiffusion() + @JvmName("setDiffusion") + set(value) { + _builder.setDiffusion(value) + } + public var diffusionValue: kotlin.Int + @JvmName("getDiffusionValue") + get() = _builder.getDiffusionValue() + @JvmName("setDiffusionValue") + set(value) { + _builder.setDiffusionValue(value) + } + /** + * `.stabilityai.platformapis.generation.v1.DiffusionSampler diffusion = 1 [json_name = "diffusion"];` + */ + public fun clearDiffusion() { + _builder.clearDiffusion() + } + /** + * `.stabilityai.platformapis.generation.v1.DiffusionSampler diffusion = 1 [json_name = "diffusion"];` + * @return Whether the diffusion field is set. + */ + public fun hasDiffusion(): kotlin.Boolean { + return _builder.hasDiffusion() + } + + /** + * `.stabilityai.platformapis.generation.v1.Upscaler upscaler = 2 [json_name = "upscaler"];` + */ + public var upscaler: com.stabilityai.platformapis.generation.v1.Upscaler + @JvmName("getUpscaler") + get() = _builder.getUpscaler() + @JvmName("setUpscaler") + set(value) { + _builder.setUpscaler(value) + } + public var upscalerValue: kotlin.Int + @JvmName("getUpscalerValue") + get() = _builder.getUpscalerValue() + @JvmName("setUpscalerValue") + set(value) { + _builder.setUpscalerValue(value) + } + /** + * `.stabilityai.platformapis.generation.v1.Upscaler upscaler = 2 [json_name = "upscaler"];` + */ + public fun clearUpscaler() { + _builder.clearUpscaler() + } + /** + * `.stabilityai.platformapis.generation.v1.Upscaler upscaler = 2 [json_name = "upscaler"];` + * @return Whether the upscaler field is set. + */ + public fun hasUpscaler(): kotlin.Boolean { + return _builder.hasUpscaler() + } + public val typeCase: com.stabilityai.platformapis.generation.v1.TransformType.TypeCase + @JvmName("getTypeCase") + get() = _builder.getTypeCase() + + public fun clearType() { + _builder.clearType() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.generation.v1.TransformType.copy(block: com.stabilityai.platformapis.generation.v1.TransformTypeKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformType = + com.stabilityai.platformapis.generation.v1.TransformTypeKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/CreateProjectRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/CreateProjectRequestKt.kt new file mode 100644 index 0000000..ab769eb --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/CreateProjectRequestKt.kt @@ -0,0 +1,200 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/project/v1/project.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.project.v1; + +@kotlin.jvm.JvmName("-initializecreateProjectRequest") +public inline fun createProjectRequest(block: com.stabilityai.platformapis.project.v1.CreateProjectRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.CreateProjectRequest = + com.stabilityai.platformapis.project.v1.CreateProjectRequestKt.Dsl._create(com.stabilityai.platformapis.project.v1.CreateProjectRequest.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.project.v1.CreateProjectRequest` + */ +public object CreateProjectRequestKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.project.v1.CreateProjectRequest.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.project.v1.CreateProjectRequest.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.project.v1.CreateProjectRequest = _builder.build() + + /** + * ``` + * title of the project + * ``` + * + * `string title = 1 [json_name = "title"];` + */ + public var title: kotlin.String + @JvmName("getTitle") + get() = _builder.getTitle() + @JvmName("setTitle") + set(value) { + _builder.setTitle(value) + } + /** + * ``` + * title of the project + * ``` + * + * `string title = 1 [json_name = "title"];` + */ + public fun clearTitle() { + _builder.clearTitle() + } + + /** + * ``` + * The ID of the organization owning the project, empty for default org for user + * ``` + * + * `optional string owner_id = 2 [json_name = "ownerId"];` + */ + public var ownerId: kotlin.String + @JvmName("getOwnerId") + get() = _builder.getOwnerId() + @JvmName("setOwnerId") + set(value) { + _builder.setOwnerId(value) + } + /** + * ``` + * The ID of the organization owning the project, empty for default org for user + * ``` + * + * `optional string owner_id = 2 [json_name = "ownerId"];` + */ + public fun clearOwnerId() { + _builder.clearOwnerId() + } + /** + * ``` + * The ID of the organization owning the project, empty for default org for user + * ``` + * + * `optional string owner_id = 2 [json_name = "ownerId"];` + * @return Whether the ownerId field is set. + */ + public fun hasOwnerId(): kotlin.Boolean { + return _builder.hasOwnerId() + } + + /** + * ``` + * The access of the project (such as public vs private) + * ``` + * + * `.stabilityai.platformapis.project.v1.ProjectAccess access = 3 [json_name = "access"];` + */ + public var access: com.stabilityai.platformapis.project.v1.ProjectAccess + @JvmName("getAccess") + get() = _builder.getAccess() + @JvmName("setAccess") + set(value) { + _builder.setAccess(value) + } + public var accessValue: kotlin.Int + @JvmName("getAccessValue") + get() = _builder.getAccessValue() + @JvmName("setAccessValue") + set(value) { + _builder.setAccessValue(value) + } + /** + * ``` + * The access of the project (such as public vs private) + * ``` + * + * `.stabilityai.platformapis.project.v1.ProjectAccess access = 3 [json_name = "access"];` + */ + public fun clearAccess() { + _builder.clearAccess() + } + + /** + * ``` + * The status of the project (such as active vs inactive) + * ``` + * + * `.stabilityai.platformapis.project.v1.ProjectStatus status = 4 [json_name = "status"];` + */ + public var status: com.stabilityai.platformapis.project.v1.ProjectStatus + @JvmName("getStatus") + get() = _builder.getStatus() + @JvmName("setStatus") + set(value) { + _builder.setStatus(value) + } + public var statusValue: kotlin.Int + @JvmName("getStatusValue") + get() = _builder.getStatusValue() + @JvmName("setStatusValue") + set(value) { + _builder.setStatusValue(value) + } + /** + * ``` + * The status of the project (such as active vs inactive) + * ``` + * + * `.stabilityai.platformapis.project.v1.ProjectStatus status = 4 [json_name = "status"];` + */ + public fun clearStatus() { + _builder.clearStatus() + } + + /** + * ``` + * Project file for the project (if existing, else will create) + * ``` + * + * `optional .stabilityai.platformapis.project.v1.ProjectAsset file = 5 [json_name = "file"];` + */ + public var file: com.stabilityai.platformapis.project.v1.ProjectAsset + @JvmName("getFile") + get() = _builder.getFile() + @JvmName("setFile") + set(value) { + _builder.setFile(value) + } + /** + * ``` + * Project file for the project (if existing, else will create) + * ``` + * + * `optional .stabilityai.platformapis.project.v1.ProjectAsset file = 5 [json_name = "file"];` + */ + public fun clearFile() { + _builder.clearFile() + } + /** + * ``` + * Project file for the project (if existing, else will create) + * ``` + * + * `optional .stabilityai.platformapis.project.v1.ProjectAsset file = 5 [json_name = "file"];` + * @return Whether the file field is set. + */ + public fun hasFile(): kotlin.Boolean { + return _builder.hasFile() + } + public val CreateProjectRequestKt.Dsl.fileOrNull: com.stabilityai.platformapis.project.v1.ProjectAsset? + get() = _builder.fileOrNull + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.project.v1.CreateProjectRequest.copy(block: com.stabilityai.platformapis.project.v1.CreateProjectRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.CreateProjectRequest = + com.stabilityai.platformapis.project.v1.CreateProjectRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() + +public val com.stabilityai.platformapis.project.v1.CreateProjectRequestOrBuilder.fileOrNull: com.stabilityai.platformapis.project.v1.ProjectAsset? + get() = if (hasFile()) getFile() else null + diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteAssetsRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteAssetsRequestKt.kt new file mode 100644 index 0000000..7fcd5d3 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteAssetsRequestKt.kt @@ -0,0 +1,193 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/project/v1/project.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.project.v1; + +@kotlin.jvm.JvmName("-initializedeleteAssetsRequest") +public inline fun deleteAssetsRequest(block: com.stabilityai.platformapis.project.v1.DeleteAssetsRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.DeleteAssetsRequest = + com.stabilityai.platformapis.project.v1.DeleteAssetsRequestKt.Dsl._create(com.stabilityai.platformapis.project.v1.DeleteAssetsRequest.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.project.v1.DeleteAssetsRequest` + */ +public object DeleteAssetsRequestKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.project.v1.DeleteAssetsRequest.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.project.v1.DeleteAssetsRequest.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.project.v1.DeleteAssetsRequest = _builder.build() + + /** + * ``` + * ID of the project to request, UUIDv4, empty string uses default project + * ``` + * + * `string id = 1 [json_name = "id"];` + */ + public var id: kotlin.String + @JvmName("getId") + get() = _builder.getId() + @JvmName("setId") + set(value) { + _builder.setId(value) + } + /** + * ``` + * ID of the project to request, UUIDv4, empty string uses default project + * ``` + * + * `string id = 1 [json_name = "id"];` + */ + public fun clearId() { + _builder.clearId() + } + + /** + * ``` + * The ID of the organization owning the project, unset for default org for user + * ``` + * + * `optional string owner_id = 2 [json_name = "ownerId"];` + */ + public var ownerId: kotlin.String + @JvmName("getOwnerId") + get() = _builder.getOwnerId() + @JvmName("setOwnerId") + set(value) { + _builder.setOwnerId(value) + } + /** + * ``` + * The ID of the organization owning the project, unset for default org for user + * ``` + * + * `optional string owner_id = 2 [json_name = "ownerId"];` + */ + public fun clearOwnerId() { + _builder.clearOwnerId() + } + /** + * ``` + * The ID of the organization owning the project, unset for default org for user + * ``` + * + * `optional string owner_id = 2 [json_name = "ownerId"];` + * @return Whether the ownerId field is set. + */ + public fun hasOwnerId(): kotlin.Boolean { + return _builder.hasOwnerId() + } + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class AssetIdsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * ``` + * The IDs of the assets to delete from the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @return A list containing the assetIds. + */ + public val assetIds: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getAssetIdsList() + ) + /** + * ``` + * The IDs of the assets to delete from the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param value The assetIds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAssetIds") + public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) { + _builder.addAssetIds(value) + } + /** + * ``` + * The IDs of the assets to delete from the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param value The assetIds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAssetIds") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) { + add(value) + } + /** + * ``` + * The IDs of the assets to delete from the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param values The assetIds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllAssetIds") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllAssetIds(values) + } + /** + * ``` + * The IDs of the assets to delete from the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param values The assetIds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllAssetIds") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * ``` + * The IDs of the assets to delete from the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param index The index to set the value at. + * @param value The assetIds to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setAssetIds") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) { + _builder.setAssetIds(index, value) + }/** + * ``` + * The IDs of the assets to delete from the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearAssetIds") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearAssetIds() + }} +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.project.v1.DeleteAssetsRequest.copy(block: com.stabilityai.platformapis.project.v1.DeleteAssetsRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.DeleteAssetsRequest = + com.stabilityai.platformapis.project.v1.DeleteAssetsRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteAssetsResponseKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteAssetsResponseKt.kt new file mode 100644 index 0000000..13cbb0a --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteAssetsResponseKt.kt @@ -0,0 +1,182 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/project/v1/project.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.project.v1; + +@kotlin.jvm.JvmName("-initializedeleteAssetsResponse") +public inline fun deleteAssetsResponse(block: com.stabilityai.platformapis.project.v1.DeleteAssetsResponseKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.DeleteAssetsResponse = + com.stabilityai.platformapis.project.v1.DeleteAssetsResponseKt.Dsl._create(com.stabilityai.platformapis.project.v1.DeleteAssetsResponse.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.project.v1.DeleteAssetsResponse` + */ +public object DeleteAssetsResponseKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.project.v1.DeleteAssetsResponse.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.project.v1.DeleteAssetsResponse.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.project.v1.DeleteAssetsResponse = _builder.build() + + /** + * ``` + * ID of the project, UUIDv4 + * ``` + * + * `string id = 1 [json_name = "id"];` + */ + public var id: kotlin.String + @JvmName("getId") + get() = _builder.getId() + @JvmName("setId") + set(value) { + _builder.setId(value) + } + /** + * ``` + * ID of the project, UUIDv4 + * ``` + * + * `string id = 1 [json_name = "id"];` + */ + public fun clearId() { + _builder.clearId() + } + + /** + * ``` + * The ID of the organization owning the project + * ``` + * + * `string owner_id = 2 [json_name = "ownerId"];` + */ + public var ownerId: kotlin.String + @JvmName("getOwnerId") + get() = _builder.getOwnerId() + @JvmName("setOwnerId") + set(value) { + _builder.setOwnerId(value) + } + /** + * ``` + * The ID of the organization owning the project + * ``` + * + * `string owner_id = 2 [json_name = "ownerId"];` + */ + public fun clearOwnerId() { + _builder.clearOwnerId() + } + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class AssetIdsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * ``` + * The IDs of the assets deleted from the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @return A list containing the assetIds. + */ + public val assetIds: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getAssetIdsList() + ) + /** + * ``` + * The IDs of the assets deleted from the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param value The assetIds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAssetIds") + public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) { + _builder.addAssetIds(value) + } + /** + * ``` + * The IDs of the assets deleted from the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param value The assetIds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAssetIds") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) { + add(value) + } + /** + * ``` + * The IDs of the assets deleted from the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param values The assetIds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllAssetIds") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllAssetIds(values) + } + /** + * ``` + * The IDs of the assets deleted from the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param values The assetIds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllAssetIds") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * ``` + * The IDs of the assets deleted from the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param index The index to set the value at. + * @param value The assetIds to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setAssetIds") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) { + _builder.setAssetIds(index, value) + }/** + * ``` + * The IDs of the assets deleted from the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearAssetIds") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearAssetIds() + }} +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.project.v1.DeleteAssetsResponse.copy(block: com.stabilityai.platformapis.project.v1.DeleteAssetsResponseKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.DeleteAssetsResponse = + com.stabilityai.platformapis.project.v1.DeleteAssetsResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteProjectRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteProjectRequestKt.kt new file mode 100644 index 0000000..e992ae0 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteProjectRequestKt.kt @@ -0,0 +1,95 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/project/v1/project.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.project.v1; + +@kotlin.jvm.JvmName("-initializedeleteProjectRequest") +public inline fun deleteProjectRequest(block: com.stabilityai.platformapis.project.v1.DeleteProjectRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.DeleteProjectRequest = + com.stabilityai.platformapis.project.v1.DeleteProjectRequestKt.Dsl._create(com.stabilityai.platformapis.project.v1.DeleteProjectRequest.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.project.v1.DeleteProjectRequest` + */ +public object DeleteProjectRequestKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.project.v1.DeleteProjectRequest.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.project.v1.DeleteProjectRequest.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.project.v1.DeleteProjectRequest = _builder.build() + + /** + * ``` + * ID of the project to request, UUIDv4 + * ``` + * + * `string id = 1 [json_name = "id"];` + */ + public var id: kotlin.String + @JvmName("getId") + get() = _builder.getId() + @JvmName("setId") + set(value) { + _builder.setId(value) + } + /** + * ``` + * ID of the project to request, UUIDv4 + * ``` + * + * `string id = 1 [json_name = "id"];` + */ + public fun clearId() { + _builder.clearId() + } + + /** + * ``` + * The ID of the organization owning the project, empty for default org for user + * ``` + * + * `optional string owner_id = 2 [json_name = "ownerId"];` + */ + public var ownerId: kotlin.String + @JvmName("getOwnerId") + get() = _builder.getOwnerId() + @JvmName("setOwnerId") + set(value) { + _builder.setOwnerId(value) + } + /** + * ``` + * The ID of the organization owning the project, empty for default org for user + * ``` + * + * `optional string owner_id = 2 [json_name = "ownerId"];` + */ + public fun clearOwnerId() { + _builder.clearOwnerId() + } + /** + * ``` + * The ID of the organization owning the project, empty for default org for user + * ``` + * + * `optional string owner_id = 2 [json_name = "ownerId"];` + * @return Whether the ownerId field is set. + */ + public fun hasOwnerId(): kotlin.Boolean { + return _builder.hasOwnerId() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.project.v1.DeleteProjectRequest.copy(block: com.stabilityai.platformapis.project.v1.DeleteProjectRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.DeleteProjectRequest = + com.stabilityai.platformapis.project.v1.DeleteProjectRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/GetProjectRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/GetProjectRequestKt.kt new file mode 100644 index 0000000..2735240 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/GetProjectRequestKt.kt @@ -0,0 +1,95 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/project/v1/project.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.project.v1; + +@kotlin.jvm.JvmName("-initializegetProjectRequest") +public inline fun getProjectRequest(block: com.stabilityai.platformapis.project.v1.GetProjectRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.GetProjectRequest = + com.stabilityai.platformapis.project.v1.GetProjectRequestKt.Dsl._create(com.stabilityai.platformapis.project.v1.GetProjectRequest.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.project.v1.GetProjectRequest` + */ +public object GetProjectRequestKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.project.v1.GetProjectRequest.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.project.v1.GetProjectRequest.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.project.v1.GetProjectRequest = _builder.build() + + /** + * ``` + * ID of the project to request, UUIDv4, empty string uses default project + * ``` + * + * `string id = 1 [json_name = "id"];` + */ + public var id: kotlin.String + @JvmName("getId") + get() = _builder.getId() + @JvmName("setId") + set(value) { + _builder.setId(value) + } + /** + * ``` + * ID of the project to request, UUIDv4, empty string uses default project + * ``` + * + * `string id = 1 [json_name = "id"];` + */ + public fun clearId() { + _builder.clearId() + } + + /** + * ``` + * The ID of the organization owning the project, empty for default org for user + * ``` + * + * `optional string owner_id = 2 [json_name = "ownerId"];` + */ + public var ownerId: kotlin.String + @JvmName("getOwnerId") + get() = _builder.getOwnerId() + @JvmName("setOwnerId") + set(value) { + _builder.setOwnerId(value) + } + /** + * ``` + * The ID of the organization owning the project, empty for default org for user + * ``` + * + * `optional string owner_id = 2 [json_name = "ownerId"];` + */ + public fun clearOwnerId() { + _builder.clearOwnerId() + } + /** + * ``` + * The ID of the organization owning the project, empty for default org for user + * ``` + * + * `optional string owner_id = 2 [json_name = "ownerId"];` + * @return Whether the ownerId field is set. + */ + public fun hasOwnerId(): kotlin.Boolean { + return _builder.hasOwnerId() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.project.v1.GetProjectRequest.copy(block: com.stabilityai.platformapis.project.v1.GetProjectRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.GetProjectRequest = + com.stabilityai.platformapis.project.v1.GetProjectRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ListProjectRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ListProjectRequestKt.kt new file mode 100644 index 0000000..048bd02 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ListProjectRequestKt.kt @@ -0,0 +1,70 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/project/v1/project.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.project.v1; + +@kotlin.jvm.JvmName("-initializelistProjectRequest") +public inline fun listProjectRequest(block: com.stabilityai.platformapis.project.v1.ListProjectRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.ListProjectRequest = + com.stabilityai.platformapis.project.v1.ListProjectRequestKt.Dsl._create(com.stabilityai.platformapis.project.v1.ListProjectRequest.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.project.v1.ListProjectRequest` + */ +public object ListProjectRequestKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.project.v1.ListProjectRequest.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.project.v1.ListProjectRequest.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.project.v1.ListProjectRequest = _builder.build() + + /** + * ``` + * The ID of the organization owning the project, empty for default org for user + * ``` + * + * `optional string owner_id = 1 [json_name = "ownerId"];` + */ + public var ownerId: kotlin.String + @JvmName("getOwnerId") + get() = _builder.getOwnerId() + @JvmName("setOwnerId") + set(value) { + _builder.setOwnerId(value) + } + /** + * ``` + * The ID of the organization owning the project, empty for default org for user + * ``` + * + * `optional string owner_id = 1 [json_name = "ownerId"];` + */ + public fun clearOwnerId() { + _builder.clearOwnerId() + } + /** + * ``` + * The ID of the organization owning the project, empty for default org for user + * ``` + * + * `optional string owner_id = 1 [json_name = "ownerId"];` + * @return Whether the ownerId field is set. + */ + public fun hasOwnerId(): kotlin.Boolean { + return _builder.hasOwnerId() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.project.v1.ListProjectRequest.copy(block: com.stabilityai.platformapis.project.v1.ListProjectRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.ListProjectRequest = + com.stabilityai.platformapis.project.v1.ListProjectRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectAssetKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectAssetKt.kt new file mode 100644 index 0000000..28e0c20 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectAssetKt.kt @@ -0,0 +1,340 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/project/v1/project.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.project.v1; + +@kotlin.jvm.JvmName("-initializeprojectAsset") +public inline fun projectAsset(block: com.stabilityai.platformapis.project.v1.ProjectAssetKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.ProjectAsset = + com.stabilityai.platformapis.project.v1.ProjectAssetKt.Dsl._create(com.stabilityai.platformapis.project.v1.ProjectAsset.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.project.v1.ProjectAsset` + */ +public object ProjectAssetKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.project.v1.ProjectAsset.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.project.v1.ProjectAsset.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.project.v1.ProjectAsset = _builder.build() + + /** + * ``` + * ID of the asset, UUIDv4 + * ``` + * + * `string id = 1 [json_name = "id"];` + */ + public var id: kotlin.String + @JvmName("getId") + get() = _builder.getId() + @JvmName("setId") + set(value) { + _builder.setId(value) + } + /** + * ``` + * ID of the asset, UUIDv4 + * ``` + * + * `string id = 1 [json_name = "id"];` + */ + public fun clearId() { + _builder.clearId() + } + + /** + * ``` + * The URI to the asset + * ``` + * + * `string uri = 2 [json_name = "uri"];` + */ + public var uri: kotlin.String + @JvmName("getUri") + get() = _builder.getUri() + @JvmName("setUri") + set(value) { + _builder.setUri(value) + } + /** + * ``` + * The URI to the asset + * ``` + * + * `string uri = 2 [json_name = "uri"];` + */ + public fun clearUri() { + _builder.clearUri() + } + + /** + * ``` + * The use of the asset with respect to the project + * ``` + * + * `.stabilityai.platformapis.project.v1.ProjectAssetUse use = 3 [json_name = "use"];` + */ + public var use: com.stabilityai.platformapis.project.v1.ProjectAssetUse + @JvmName("getUse") + get() = _builder.getUse() + @JvmName("setUse") + set(value) { + _builder.setUse(value) + } + public var useValue: kotlin.Int + @JvmName("getUseValue") + get() = _builder.getUseValue() + @JvmName("setUseValue") + set(value) { + _builder.setUseValue(value) + } + /** + * ``` + * The use of the asset with respect to the project + * ``` + * + * `.stabilityai.platformapis.project.v1.ProjectAssetUse use = 3 [json_name = "use"];` + */ + public fun clearUse() { + _builder.clearUse() + } + + /** + * ``` + * The name of the asset + * ``` + * + * `string name = 4 [json_name = "name"];` + */ + public var name: kotlin.String + @JvmName("getName") + get() = _builder.getName() + @JvmName("setName") + set(value) { + _builder.setName(value) + } + /** + * ``` + * The name of the asset + * ``` + * + * `string name = 4 [json_name = "name"];` + */ + public fun clearName() { + _builder.clearName() + } + + /** + * ``` + * The asset size in bytes + * ``` + * + * `uint64 size = 5 [json_name = "size"];` + */ + public var size: kotlin.Long + @JvmName("getSize") + get() = _builder.getSize() + @JvmName("setSize") + set(value) { + _builder.setSize(value) + } + /** + * ``` + * The asset size in bytes + * ``` + * + * `uint64 size = 5 [json_name = "size"];` + */ + public fun clearSize() { + _builder.clearSize() + } + + /** + * ``` + * Time of asset creation (UTC seconds epoch) + * ``` + * + * `uint64 created_at = 6 [json_name = "createdAt"];` + */ + public var createdAt: kotlin.Long + @JvmName("getCreatedAt") + get() = _builder.getCreatedAt() + @JvmName("setCreatedAt") + set(value) { + _builder.setCreatedAt(value) + } + /** + * ``` + * Time of asset creation (UTC seconds epoch) + * ``` + * + * `uint64 created_at = 6 [json_name = "createdAt"];` + */ + public fun clearCreatedAt() { + _builder.clearCreatedAt() + } + + /** + * ``` + * Time of last asset update (UTC seconds epoch) + * ``` + * + * `uint64 updated_at = 7 [json_name = "updatedAt"];` + */ + public var updatedAt: kotlin.Long + @JvmName("getUpdatedAt") + get() = _builder.getUpdatedAt() + @JvmName("setUpdatedAt") + set(value) { + _builder.setUpdatedAt(value) + } + /** + * ``` + * Time of last asset update (UTC seconds epoch) + * ``` + * + * `uint64 updated_at = 7 [json_name = "updatedAt"];` + */ + public fun clearUpdatedAt() { + _builder.clearUpdatedAt() + } + + /** + * ``` + * The request object that is associated with the artifact + * ``` + * + * `.stabilityai.platformapis.generation.v1.Request request = 8 [json_name = "request"];` + */ + public var request: com.stabilityai.platformapis.generation.v1.Request + @JvmName("getRequest") + get() = _builder.getRequest() + @JvmName("setRequest") + set(value) { + _builder.setRequest(value) + } + /** + * ``` + * The request object that is associated with the artifact + * ``` + * + * `.stabilityai.platformapis.generation.v1.Request request = 8 [json_name = "request"];` + */ + public fun clearRequest() { + _builder.clearRequest() + } + /** + * ``` + * The request object that is associated with the artifact + * ``` + * + * `.stabilityai.platformapis.generation.v1.Request request = 8 [json_name = "request"];` + * @return Whether the request field is set. + */ + public fun hasRequest(): kotlin.Boolean { + return _builder.hasRequest() + } + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class TagsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * ``` + * The tags associated with the asset + * ``` + * + * `map tags = 9 [json_name = "tags"];` + */ + public val tags: com.google.protobuf.kotlin.DslMap + @kotlin.jvm.JvmSynthetic + @JvmName("getTagsMap") + get() = com.google.protobuf.kotlin.DslMap( + _builder.getTagsMap() + ) + /** + * ``` + * The tags associated with the asset + * ``` + * + * `map tags = 9 [json_name = "tags"];` + */ + @JvmName("putTags") + public fun com.google.protobuf.kotlin.DslMap + .put(key: kotlin.String, value: kotlin.String) { + _builder.putTags(key, value) + } + /** + * ``` + * The tags associated with the asset + * ``` + * + * `map tags = 9 [json_name = "tags"];` + */ + @kotlin.jvm.JvmSynthetic + @JvmName("setTags") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslMap + .set(key: kotlin.String, value: kotlin.String) { + put(key, value) + } + /** + * ``` + * The tags associated with the asset + * ``` + * + * `map tags = 9 [json_name = "tags"];` + */ + @kotlin.jvm.JvmSynthetic + @JvmName("removeTags") + public fun com.google.protobuf.kotlin.DslMap + .remove(key: kotlin.String) { + _builder.removeTags(key) + } + /** + * ``` + * The tags associated with the asset + * ``` + * + * `map tags = 9 [json_name = "tags"];` + */ + @kotlin.jvm.JvmSynthetic + @JvmName("putAllTags") + public fun com.google.protobuf.kotlin.DslMap + .putAll(map: kotlin.collections.Map) { + _builder.putAllTags(map) + } + /** + * ``` + * The tags associated with the asset + * ``` + * + * `map tags = 9 [json_name = "tags"];` + */ + @kotlin.jvm.JvmSynthetic + @JvmName("clearTags") + public fun com.google.protobuf.kotlin.DslMap + .clear() { + _builder.clearTags() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.project.v1.ProjectAsset.copy(block: com.stabilityai.platformapis.project.v1.ProjectAssetKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.ProjectAsset = + com.stabilityai.platformapis.project.v1.ProjectAssetKt.Dsl._create(this.toBuilder()).apply { block() }._build() + +public val com.stabilityai.platformapis.project.v1.ProjectAssetOrBuilder.requestOrNull: com.stabilityai.platformapis.generation.v1.Request? + get() = if (hasRequest()) getRequest() else null + diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectKt.kt new file mode 100644 index 0000000..b09cfc7 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectKt.kt @@ -0,0 +1,387 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/project/v1/project.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.project.v1; + +@kotlin.jvm.JvmName("-initializeproject") +public inline fun project(block: com.stabilityai.platformapis.project.v1.ProjectKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.Project = + com.stabilityai.platformapis.project.v1.ProjectKt.Dsl._create(com.stabilityai.platformapis.project.v1.Project.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.project.v1.Project` + */ +public object ProjectKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.project.v1.Project.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.project.v1.Project.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.project.v1.Project = _builder.build() + + /** + * ``` + * ID of the project, UUIDv4 + * ``` + * + * `string id = 1 [json_name = "id"];` + */ + public var id: kotlin.String + @JvmName("getId") + get() = _builder.getId() + @JvmName("setId") + set(value) { + _builder.setId(value) + } + /** + * ``` + * ID of the project, UUIDv4 + * ``` + * + * `string id = 1 [json_name = "id"];` + */ + public fun clearId() { + _builder.clearId() + } + + /** + * ``` + * Title of the project + * ``` + * + * `string title = 2 [json_name = "title"];` + */ + public var title: kotlin.String + @JvmName("getTitle") + get() = _builder.getTitle() + @JvmName("setTitle") + set(value) { + _builder.setTitle(value) + } + /** + * ``` + * Title of the project + * ``` + * + * `string title = 2 [json_name = "title"];` + */ + public fun clearTitle() { + _builder.clearTitle() + } + + /** + * ``` + * The ID of the organization owning the project + * ``` + * + * `string owner_id = 3 [json_name = "ownerId"];` + */ + public var ownerId: kotlin.String + @JvmName("getOwnerId") + get() = _builder.getOwnerId() + @JvmName("setOwnerId") + set(value) { + _builder.setOwnerId(value) + } + /** + * ``` + * The ID of the organization owning the project + * ``` + * + * `string owner_id = 3 [json_name = "ownerId"];` + */ + public fun clearOwnerId() { + _builder.clearOwnerId() + } + + /** + * ``` + * The access of the project (such as public vs private) + * ``` + * + * `.stabilityai.platformapis.project.v1.ProjectAccess access = 4 [json_name = "access"];` + */ + public var access: com.stabilityai.platformapis.project.v1.ProjectAccess + @JvmName("getAccess") + get() = _builder.getAccess() + @JvmName("setAccess") + set(value) { + _builder.setAccess(value) + } + public var accessValue: kotlin.Int + @JvmName("getAccessValue") + get() = _builder.getAccessValue() + @JvmName("setAccessValue") + set(value) { + _builder.setAccessValue(value) + } + /** + * ``` + * The access of the project (such as public vs private) + * ``` + * + * `.stabilityai.platformapis.project.v1.ProjectAccess access = 4 [json_name = "access"];` + */ + public fun clearAccess() { + _builder.clearAccess() + } + + /** + * ``` + * The status of the project (such as active vs inactive) + * ``` + * + * `.stabilityai.platformapis.project.v1.ProjectStatus status = 5 [json_name = "status"];` + */ + public var status: com.stabilityai.platformapis.project.v1.ProjectStatus + @JvmName("getStatus") + get() = _builder.getStatus() + @JvmName("setStatus") + set(value) { + _builder.setStatus(value) + } + public var statusValue: kotlin.Int + @JvmName("getStatusValue") + get() = _builder.getStatusValue() + @JvmName("setStatusValue") + set(value) { + _builder.setStatusValue(value) + } + /** + * ``` + * The status of the project (such as active vs inactive) + * ``` + * + * `.stabilityai.platformapis.project.v1.ProjectStatus status = 5 [json_name = "status"];` + */ + public fun clearStatus() { + _builder.clearStatus() + } + + /** + * ``` + * The size of the project in bytes + * ``` + * + * `uint64 size = 6 [json_name = "size"];` + */ + public var size: kotlin.Long + @JvmName("getSize") + get() = _builder.getSize() + @JvmName("setSize") + set(value) { + _builder.setSize(value) + } + /** + * ``` + * The size of the project in bytes + * ``` + * + * `uint64 size = 6 [json_name = "size"];` + */ + public fun clearSize() { + _builder.clearSize() + } + + /** + * ``` + * Project file for the project + * ``` + * + * `.stabilityai.platformapis.project.v1.ProjectAsset file = 7 [json_name = "file"];` + */ + public var file: com.stabilityai.platformapis.project.v1.ProjectAsset + @JvmName("getFile") + get() = _builder.getFile() + @JvmName("setFile") + set(value) { + _builder.setFile(value) + } + /** + * ``` + * Project file for the project + * ``` + * + * `.stabilityai.platformapis.project.v1.ProjectAsset file = 7 [json_name = "file"];` + */ + public fun clearFile() { + _builder.clearFile() + } + /** + * ``` + * Project file for the project + * ``` + * + * `.stabilityai.platformapis.project.v1.ProjectAsset file = 7 [json_name = "file"];` + * @return Whether the file field is set. + */ + public fun hasFile(): kotlin.Boolean { + return _builder.hasFile() + } + + /** + * ``` + * Time of project creation (UTC seconds epoch) + * ``` + * + * `uint64 created_at = 8 [json_name = "createdAt"];` + */ + public var createdAt: kotlin.Long + @JvmName("getCreatedAt") + get() = _builder.getCreatedAt() + @JvmName("setCreatedAt") + set(value) { + _builder.setCreatedAt(value) + } + /** + * ``` + * Time of project creation (UTC seconds epoch) + * ``` + * + * `uint64 created_at = 8 [json_name = "createdAt"];` + */ + public fun clearCreatedAt() { + _builder.clearCreatedAt() + } + + /** + * ``` + * Time of last project update (UTC seconds epoch) + * ``` + * + * `uint64 updated_at = 9 [json_name = "updatedAt"];` + */ + public var updatedAt: kotlin.Long + @JvmName("getUpdatedAt") + get() = _builder.getUpdatedAt() + @JvmName("setUpdatedAt") + set(value) { + _builder.setUpdatedAt(value) + } + /** + * ``` + * Time of last project update (UTC seconds epoch) + * ``` + * + * `uint64 updated_at = 9 [json_name = "updatedAt"];` + */ + public fun clearUpdatedAt() { + _builder.clearUpdatedAt() + } + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class AssetsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * ``` + * The listing of all assets associated with the project + * ``` + * + * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 10 [json_name = "assets"];` + */ + public val assets: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getAssetsList() + ) + /** + * ``` + * The listing of all assets associated with the project + * ``` + * + * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 10 [json_name = "assets"];` + * @param value The assets to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAssets") + public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.project.v1.ProjectAsset) { + _builder.addAssets(value) + } + /** + * ``` + * The listing of all assets associated with the project + * ``` + * + * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 10 [json_name = "assets"];` + * @param value The assets to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAssets") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.project.v1.ProjectAsset) { + add(value) + } + /** + * ``` + * The listing of all assets associated with the project + * ``` + * + * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 10 [json_name = "assets"];` + * @param values The assets to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllAssets") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllAssets(values) + } + /** + * ``` + * The listing of all assets associated with the project + * ``` + * + * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 10 [json_name = "assets"];` + * @param values The assets to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllAssets") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * ``` + * The listing of all assets associated with the project + * ``` + * + * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 10 [json_name = "assets"];` + * @param index The index to set the value at. + * @param value The assets to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setAssets") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.project.v1.ProjectAsset) { + _builder.setAssets(index, value) + } + /** + * ``` + * The listing of all assets associated with the project + * ``` + * + * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 10 [json_name = "assets"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearAssets") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearAssets() + } + + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.project.v1.Project.copy(block: com.stabilityai.platformapis.project.v1.ProjectKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.Project = + com.stabilityai.platformapis.project.v1.ProjectKt.Dsl._create(this.toBuilder()).apply { block() }._build() + +public val com.stabilityai.platformapis.project.v1.ProjectOrBuilder.fileOrNull: com.stabilityai.platformapis.project.v1.ProjectAsset? + get() = if (hasFile()) getFile() else null + diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectProtoKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectProtoKt.kt new file mode 100644 index 0000000..3a36aca --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectProtoKt.kt @@ -0,0 +1,7 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/project/v1/project.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.project.v1; + diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectServiceClient.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectServiceClient.kt new file mode 100644 index 0000000..3719555 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectServiceClient.kt @@ -0,0 +1,150 @@ +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: stabilityai/platformapis/project/v1/project.proto +// +package com.stabilityai.platformapis.project.v1 + +import build.buf.connect.Headers +import build.buf.connect.MethodSpec +import build.buf.connect.ProtocolClientInterface +import build.buf.connect.ResponseMessage +import build.buf.connect.ServerOnlyStreamInterface + +/** + * + * gRPC services + */ +public class ProjectServiceClient( + private val client: ProtocolClientInterface, +) : ProjectServiceClientInterface { + /** + * Create a new project if it does not exist + */ + public override suspend fun create(request: CreateProjectRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "stabilityai.platformapis.project.v1.ProjectService/Create", + com.stabilityai.platformapis.project.v1.CreateProjectRequest::class, + com.stabilityai.platformapis.project.v1.Project::class + ), + ) + + + /** + * Update an existing project + */ + public override suspend fun update(request: UpdateProjectRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "stabilityai.platformapis.project.v1.ProjectService/Update", + com.stabilityai.platformapis.project.v1.UpdateProjectRequest::class, + com.stabilityai.platformapis.project.v1.Project::class + ), + ) + + + /** + * List all the projects for an organization + */ + public override suspend fun list(headers: Headers): + ServerOnlyStreamInterface = client.serverStream( + headers, + MethodSpec( + "stabilityai.platformapis.project.v1.ProjectService/List", + com.stabilityai.platformapis.project.v1.ListProjectRequest::class, + com.stabilityai.platformapis.project.v1.Project::class + ), + ) + + + /** + * Get a project + */ + public override suspend fun `get`(request: GetProjectRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "stabilityai.platformapis.project.v1.ProjectService/Get", + com.stabilityai.platformapis.project.v1.GetProjectRequest::class, + com.stabilityai.platformapis.project.v1.Project::class + ), + ) + + + /** + * Delete a project + */ + public override suspend fun delete(request: DeleteProjectRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "stabilityai.platformapis.project.v1.ProjectService/Delete", + com.stabilityai.platformapis.project.v1.DeleteProjectRequest::class, + com.stabilityai.platformapis.project.v1.Project::class + ), + ) + + + /** + * Add or remove tags from an asset + */ + public override suspend fun tagAssets(request: TagAssetsRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "stabilityai.platformapis.project.v1.ProjectService/TagAssets", + com.stabilityai.platformapis.project.v1.TagAssetsRequest::class, + com.stabilityai.platformapis.project.v1.TagAssetsResponse::class + ), + ) + + + public override suspend fun untagAssets(request: UntagAssetsRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "stabilityai.platformapis.project.v1.ProjectService/UntagAssets", + com.stabilityai.platformapis.project.v1.UntagAssetsRequest::class, + com.stabilityai.platformapis.project.v1.UntagAssetsResponse::class + ), + ) + + + /** + * Query the assets of a project, with additional filtering + */ + public override suspend fun queryAssets(request: QueryAssetsRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "stabilityai.platformapis.project.v1.ProjectService/QueryAssets", + com.stabilityai.platformapis.project.v1.QueryAssetsRequest::class, + com.stabilityai.platformapis.project.v1.QueryAssetsResponse::class + ), + ) + + + /** + * Delete one or more assets of a project + */ + public override suspend fun deleteAssets(request: DeleteAssetsRequest, headers: Headers): + ResponseMessage = client.unary( + request, + headers, + MethodSpec( + "stabilityai.platformapis.project.v1.ProjectService/DeleteAssets", + com.stabilityai.platformapis.project.v1.DeleteAssetsRequest::class, + com.stabilityai.platformapis.project.v1.DeleteAssetsResponse::class + ), + ) + +} diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectServiceClientInterface.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectServiceClientInterface.kt new file mode 100644 index 0000000..ce07728 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectServiceClientInterface.kt @@ -0,0 +1,66 @@ +// Code generated by connect-kotlin. DO NOT EDIT. +// +// Source: stabilityai/platformapis/project/v1/project.proto +// +package com.stabilityai.platformapis.project.v1 + +import build.buf.connect.Headers +import build.buf.connect.ResponseMessage +import build.buf.connect.ServerOnlyStreamInterface + +/** + * + * gRPC services + */ +public interface ProjectServiceClientInterface { + /** + * Create a new project if it does not exist + */ + public suspend fun create(request: CreateProjectRequest, headers: Headers = emptyMap()): + ResponseMessage + + /** + * Update an existing project + */ + public suspend fun update(request: UpdateProjectRequest, headers: Headers = emptyMap()): + ResponseMessage + + /** + * List all the projects for an organization + */ + public suspend fun list(headers: Headers = emptyMap()): + ServerOnlyStreamInterface + + /** + * Get a project + */ + public suspend fun `get`(request: GetProjectRequest, headers: Headers = emptyMap()): + ResponseMessage + + /** + * Delete a project + */ + public suspend fun delete(request: DeleteProjectRequest, headers: Headers = emptyMap()): + ResponseMessage + + /** + * Add or remove tags from an asset + */ + public suspend fun tagAssets(request: TagAssetsRequest, headers: Headers = emptyMap()): + ResponseMessage + + public suspend fun untagAssets(request: UntagAssetsRequest, headers: Headers = emptyMap()): + ResponseMessage + + /** + * Query the assets of a project, with additional filtering + */ + public suspend fun queryAssets(request: QueryAssetsRequest, headers: Headers = emptyMap()): + ResponseMessage + + /** + * Delete one or more assets of a project + */ + public suspend fun deleteAssets(request: DeleteAssetsRequest, headers: Headers = emptyMap()): + ResponseMessage +} diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/QueryAssetsRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/QueryAssetsRequestKt.kt new file mode 100644 index 0000000..721e8e0 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/QueryAssetsRequestKt.kt @@ -0,0 +1,449 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/project/v1/project.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.project.v1; + +@kotlin.jvm.JvmName("-initializequeryAssetsRequest") +public inline fun queryAssetsRequest(block: com.stabilityai.platformapis.project.v1.QueryAssetsRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.QueryAssetsRequest = + com.stabilityai.platformapis.project.v1.QueryAssetsRequestKt.Dsl._create(com.stabilityai.platformapis.project.v1.QueryAssetsRequest.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.project.v1.QueryAssetsRequest` + */ +public object QueryAssetsRequestKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.project.v1.QueryAssetsRequest.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.project.v1.QueryAssetsRequest.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.project.v1.QueryAssetsRequest = _builder.build() + + /** + * ``` + * ID of the project to request, UUIDv4, empty string uses default project + * ``` + * + * `string id = 1 [json_name = "id"];` + */ + public var id: kotlin.String + @JvmName("getId") + get() = _builder.getId() + @JvmName("setId") + set(value) { + _builder.setId(value) + } + /** + * ``` + * ID of the project to request, UUIDv4, empty string uses default project + * ``` + * + * `string id = 1 [json_name = "id"];` + */ + public fun clearId() { + _builder.clearId() + } + + /** + * ``` + * The ID of the organization owning the assets, unset for default org for user + * ``` + * + * `optional string owner_id = 2 [json_name = "ownerId"];` + */ + public var ownerId: kotlin.String + @JvmName("getOwnerId") + get() = _builder.getOwnerId() + @JvmName("setOwnerId") + set(value) { + _builder.setOwnerId(value) + } + /** + * ``` + * The ID of the organization owning the assets, unset for default org for user + * ``` + * + * `optional string owner_id = 2 [json_name = "ownerId"];` + */ + public fun clearOwnerId() { + _builder.clearOwnerId() + } + /** + * ``` + * The ID of the organization owning the assets, unset for default org for user + * ``` + * + * `optional string owner_id = 2 [json_name = "ownerId"];` + * @return Whether the ownerId field is set. + */ + public fun hasOwnerId(): kotlin.Boolean { + return _builder.hasOwnerId() + } + + /** + * ``` + * The time (UTC seconds epoch) to start listing assets from, unset for no restriction + * ``` + * + * `optional uint64 since = 3 [json_name = "since"];` + */ + public var since: kotlin.Long + @JvmName("getSince") + get() = _builder.getSince() + @JvmName("setSince") + set(value) { + _builder.setSince(value) + } + /** + * ``` + * The time (UTC seconds epoch) to start listing assets from, unset for no restriction + * ``` + * + * `optional uint64 since = 3 [json_name = "since"];` + */ + public fun clearSince() { + _builder.clearSince() + } + /** + * ``` + * The time (UTC seconds epoch) to start listing assets from, unset for no restriction + * ``` + * + * `optional uint64 since = 3 [json_name = "since"];` + * @return Whether the since field is set. + */ + public fun hasSince(): kotlin.Boolean { + return _builder.hasSince() + } + + /** + * ``` + * The time (UTC seconds epoch) to stop listing assets at, unset for no restriction + * ``` + * + * `optional uint64 until = 4 [json_name = "until"];` + */ + public var until: kotlin.Long + @JvmName("getUntil") + get() = _builder.getUntil() + @JvmName("setUntil") + set(value) { + _builder.setUntil(value) + } + /** + * ``` + * The time (UTC seconds epoch) to stop listing assets at, unset for no restriction + * ``` + * + * `optional uint64 until = 4 [json_name = "until"];` + */ + public fun clearUntil() { + _builder.clearUntil() + } + /** + * ``` + * The time (UTC seconds epoch) to stop listing assets at, unset for no restriction + * ``` + * + * `optional uint64 until = 4 [json_name = "until"];` + * @return Whether the until field is set. + */ + public fun hasUntil(): kotlin.Boolean { + return _builder.hasUntil() + } + + /** + * ``` + * The maximum number of assets to return, unset for no limit + * ``` + * + * `optional uint64 limit = 5 [json_name = "limit"];` + */ + public var limit: kotlin.Long + @JvmName("getLimit") + get() = _builder.getLimit() + @JvmName("setLimit") + set(value) { + _builder.setLimit(value) + } + /** + * ``` + * The maximum number of assets to return, unset for no limit + * ``` + * + * `optional uint64 limit = 5 [json_name = "limit"];` + */ + public fun clearLimit() { + _builder.clearLimit() + } + /** + * ``` + * The maximum number of assets to return, unset for no limit + * ``` + * + * `optional uint64 limit = 5 [json_name = "limit"];` + * @return Whether the limit field is set. + */ + public fun hasLimit(): kotlin.Boolean { + return _builder.hasLimit() + } + + /** + * ``` + * The key to start from, used to paginate results, unset for no offset + * ``` + * + * `optional string start_key = 6 [json_name = "startKey"];` + */ + public var startKey: kotlin.String + @JvmName("getStartKey") + get() = _builder.getStartKey() + @JvmName("setStartKey") + set(value) { + _builder.setStartKey(value) + } + /** + * ``` + * The key to start from, used to paginate results, unset for no offset + * ``` + * + * `optional string start_key = 6 [json_name = "startKey"];` + */ + public fun clearStartKey() { + _builder.clearStartKey() + } + /** + * ``` + * The key to start from, used to paginate results, unset for no offset + * ``` + * + * `optional string start_key = 6 [json_name = "startKey"];` + * @return Whether the startKey field is set. + */ + public fun hasStartKey(): kotlin.Boolean { + return _builder.hasStartKey() + } + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class UseProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * ``` + * The asset usage to filter the assets returned, empty for no filter + * ``` + * + * `repeated .stabilityai.platformapis.project.v1.ProjectAssetUse use = 7 [json_name = "use"];` + */ + public val use: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getUseList() + ) + /** + * ``` + * The asset usage to filter the assets returned, empty for no filter + * ``` + * + * `repeated .stabilityai.platformapis.project.v1.ProjectAssetUse use = 7 [json_name = "use"];` + * @param value The use to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addUse") + public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.project.v1.ProjectAssetUse) { + _builder.addUse(value) + }/** + * ``` + * The asset usage to filter the assets returned, empty for no filter + * ``` + * + * `repeated .stabilityai.platformapis.project.v1.ProjectAssetUse use = 7 [json_name = "use"];` + * @param value The use to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignUse") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.project.v1.ProjectAssetUse) { + add(value) + }/** + * ``` + * The asset usage to filter the assets returned, empty for no filter + * ``` + * + * `repeated .stabilityai.platformapis.project.v1.ProjectAssetUse use = 7 [json_name = "use"];` + * @param values The use to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllUse") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllUse(values) + }/** + * ``` + * The asset usage to filter the assets returned, empty for no filter + * ``` + * + * `repeated .stabilityai.platformapis.project.v1.ProjectAssetUse use = 7 [json_name = "use"];` + * @param values The use to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllUse") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + }/** + * ``` + * The asset usage to filter the assets returned, empty for no filter + * ``` + * + * `repeated .stabilityai.platformapis.project.v1.ProjectAssetUse use = 7 [json_name = "use"];` + * @param index The index to set the value at. + * @param value The use to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setUse") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.project.v1.ProjectAssetUse) { + _builder.setUse(index, value) + }/** + * ``` + * The asset usage to filter the assets returned, empty for no filter + * ``` + * + * `repeated .stabilityai.platformapis.project.v1.ProjectAssetUse use = 7 [json_name = "use"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearUse") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearUse() + } + /** + * ``` + * The sort direction based on asset creation time, default is descending + * ``` + * + * `.stabilityai.platformapis.project.v1.ProjectSortDir sort_dir = 8 [json_name = "sortDir"];` + */ + public var sortDir: com.stabilityai.platformapis.project.v1.ProjectSortDir + @JvmName("getSortDir") + get() = _builder.getSortDir() + @JvmName("setSortDir") + set(value) { + _builder.setSortDir(value) + } + public var sortDirValue: kotlin.Int + @JvmName("getSortDirValue") + get() = _builder.getSortDirValue() + @JvmName("setSortDirValue") + set(value) { + _builder.setSortDirValue(value) + } + /** + * ``` + * The sort direction based on asset creation time, default is descending + * ``` + * + * `.stabilityai.platformapis.project.v1.ProjectSortDir sort_dir = 8 [json_name = "sortDir"];` + */ + public fun clearSortDir() { + _builder.clearSortDir() + } + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class TagsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * ``` + * The tag values used to filter the assets returned, empty for no filter + * ``` + * + * `map tags = 9 [json_name = "tags"];` + */ + public val tags: com.google.protobuf.kotlin.DslMap + @kotlin.jvm.JvmSynthetic + @JvmName("getTagsMap") + get() = com.google.protobuf.kotlin.DslMap( + _builder.getTagsMap() + ) + /** + * ``` + * The tag values used to filter the assets returned, empty for no filter + * ``` + * + * `map tags = 9 [json_name = "tags"];` + */ + @JvmName("putTags") + public fun com.google.protobuf.kotlin.DslMap + .put(key: kotlin.String, value: kotlin.String) { + _builder.putTags(key, value) + } + /** + * ``` + * The tag values used to filter the assets returned, empty for no filter + * ``` + * + * `map tags = 9 [json_name = "tags"];` + */ + @kotlin.jvm.JvmSynthetic + @JvmName("setTags") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslMap + .set(key: kotlin.String, value: kotlin.String) { + put(key, value) + } + /** + * ``` + * The tag values used to filter the assets returned, empty for no filter + * ``` + * + * `map tags = 9 [json_name = "tags"];` + */ + @kotlin.jvm.JvmSynthetic + @JvmName("removeTags") + public fun com.google.protobuf.kotlin.DslMap + .remove(key: kotlin.String) { + _builder.removeTags(key) + } + /** + * ``` + * The tag values used to filter the assets returned, empty for no filter + * ``` + * + * `map tags = 9 [json_name = "tags"];` + */ + @kotlin.jvm.JvmSynthetic + @JvmName("putAllTags") + public fun com.google.protobuf.kotlin.DslMap + .putAll(map: kotlin.collections.Map) { + _builder.putAllTags(map) + } + /** + * ``` + * The tag values used to filter the assets returned, empty for no filter + * ``` + * + * `map tags = 9 [json_name = "tags"];` + */ + @kotlin.jvm.JvmSynthetic + @JvmName("clearTags") + public fun com.google.protobuf.kotlin.DslMap + .clear() { + _builder.clearTags() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.project.v1.QueryAssetsRequest.copy(block: com.stabilityai.platformapis.project.v1.QueryAssetsRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.QueryAssetsRequest = + com.stabilityai.platformapis.project.v1.QueryAssetsRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/QueryAssetsResponseKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/QueryAssetsResponseKt.kt new file mode 100644 index 0000000..f4001b6 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/QueryAssetsResponseKt.kt @@ -0,0 +1,170 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/project/v1/project.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.project.v1; + +@kotlin.jvm.JvmName("-initializequeryAssetsResponse") +public inline fun queryAssetsResponse(block: com.stabilityai.platformapis.project.v1.QueryAssetsResponseKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.QueryAssetsResponse = + com.stabilityai.platformapis.project.v1.QueryAssetsResponseKt.Dsl._create(com.stabilityai.platformapis.project.v1.QueryAssetsResponse.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.project.v1.QueryAssetsResponse` + */ +public object QueryAssetsResponseKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.project.v1.QueryAssetsResponse.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.project.v1.QueryAssetsResponse.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.project.v1.QueryAssetsResponse = _builder.build() + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class AssetsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * ``` + * The assets returned by the query + * ``` + * + * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 1 [json_name = "assets"];` + */ + public val assets: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getAssetsList() + ) + /** + * ``` + * The assets returned by the query + * ``` + * + * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 1 [json_name = "assets"];` + * @param value The assets to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAssets") + public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.project.v1.ProjectAsset) { + _builder.addAssets(value) + } + /** + * ``` + * The assets returned by the query + * ``` + * + * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 1 [json_name = "assets"];` + * @param value The assets to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAssets") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.project.v1.ProjectAsset) { + add(value) + } + /** + * ``` + * The assets returned by the query + * ``` + * + * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 1 [json_name = "assets"];` + * @param values The assets to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllAssets") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllAssets(values) + } + /** + * ``` + * The assets returned by the query + * ``` + * + * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 1 [json_name = "assets"];` + * @param values The assets to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllAssets") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * ``` + * The assets returned by the query + * ``` + * + * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 1 [json_name = "assets"];` + * @param index The index to set the value at. + * @param value The assets to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setAssets") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.project.v1.ProjectAsset) { + _builder.setAssets(index, value) + } + /** + * ``` + * The assets returned by the query + * ``` + * + * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 1 [json_name = "assets"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearAssets") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearAssets() + } + + + /** + * ``` + * The last asset key returned when the results were limited, unset when not limited + * ``` + * + * `optional string last_key = 2 [json_name = "lastKey"];` + */ + public var lastKey: kotlin.String + @JvmName("getLastKey") + get() = _builder.getLastKey() + @JvmName("setLastKey") + set(value) { + _builder.setLastKey(value) + } + /** + * ``` + * The last asset key returned when the results were limited, unset when not limited + * ``` + * + * `optional string last_key = 2 [json_name = "lastKey"];` + */ + public fun clearLastKey() { + _builder.clearLastKey() + } + /** + * ``` + * The last asset key returned when the results were limited, unset when not limited + * ``` + * + * `optional string last_key = 2 [json_name = "lastKey"];` + * @return Whether the lastKey field is set. + */ + public fun hasLastKey(): kotlin.Boolean { + return _builder.hasLastKey() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.project.v1.QueryAssetsResponse.copy(block: com.stabilityai.platformapis.project.v1.QueryAssetsResponseKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.QueryAssetsResponse = + com.stabilityai.platformapis.project.v1.QueryAssetsResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/TagAssetsRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/TagAssetsRequestKt.kt new file mode 100644 index 0000000..6a59062 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/TagAssetsRequestKt.kt @@ -0,0 +1,278 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/project/v1/project.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.project.v1; + +@kotlin.jvm.JvmName("-initializetagAssetsRequest") +public inline fun tagAssetsRequest(block: com.stabilityai.platformapis.project.v1.TagAssetsRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.TagAssetsRequest = + com.stabilityai.platformapis.project.v1.TagAssetsRequestKt.Dsl._create(com.stabilityai.platformapis.project.v1.TagAssetsRequest.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.project.v1.TagAssetsRequest` + */ +public object TagAssetsRequestKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.project.v1.TagAssetsRequest.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.project.v1.TagAssetsRequest.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.project.v1.TagAssetsRequest = _builder.build() + + /** + * ``` + * ID of the project to request, UUIDv4, empty string uses default project + * ``` + * + * `string id = 1 [json_name = "id"];` + */ + public var id: kotlin.String + @JvmName("getId") + get() = _builder.getId() + @JvmName("setId") + set(value) { + _builder.setId(value) + } + /** + * ``` + * ID of the project to request, UUIDv4, empty string uses default project + * ``` + * + * `string id = 1 [json_name = "id"];` + */ + public fun clearId() { + _builder.clearId() + } + + /** + * ``` + * The ID of the organization owning the assets, unset for default org for user + * ``` + * + * `optional string owner_id = 2 [json_name = "ownerId"];` + */ + public var ownerId: kotlin.String + @JvmName("getOwnerId") + get() = _builder.getOwnerId() + @JvmName("setOwnerId") + set(value) { + _builder.setOwnerId(value) + } + /** + * ``` + * The ID of the organization owning the assets, unset for default org for user + * ``` + * + * `optional string owner_id = 2 [json_name = "ownerId"];` + */ + public fun clearOwnerId() { + _builder.clearOwnerId() + } + /** + * ``` + * The ID of the organization owning the assets, unset for default org for user + * ``` + * + * `optional string owner_id = 2 [json_name = "ownerId"];` + * @return Whether the ownerId field is set. + */ + public fun hasOwnerId(): kotlin.Boolean { + return _builder.hasOwnerId() + } + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class AssetIdsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * ``` + * The IDs of the assets to tag in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @return A list containing the assetIds. + */ + public val assetIds: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getAssetIdsList() + ) + /** + * ``` + * The IDs of the assets to tag in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param value The assetIds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAssetIds") + public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) { + _builder.addAssetIds(value) + } + /** + * ``` + * The IDs of the assets to tag in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param value The assetIds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAssetIds") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) { + add(value) + } + /** + * ``` + * The IDs of the assets to tag in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param values The assetIds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllAssetIds") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllAssetIds(values) + } + /** + * ``` + * The IDs of the assets to tag in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param values The assetIds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllAssetIds") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * ``` + * The IDs of the assets to tag in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param index The index to set the value at. + * @param value The assetIds to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setAssetIds") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) { + _builder.setAssetIds(index, value) + }/** + * ``` + * The IDs of the assets to tag in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearAssetIds") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearAssetIds() + } + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class TagsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * ``` + * The tags to add to the assets + * ``` + * + * `map tags = 4 [json_name = "tags"];` + */ + public val tags: com.google.protobuf.kotlin.DslMap + @kotlin.jvm.JvmSynthetic + @JvmName("getTagsMap") + get() = com.google.protobuf.kotlin.DslMap( + _builder.getTagsMap() + ) + /** + * ``` + * The tags to add to the assets + * ``` + * + * `map tags = 4 [json_name = "tags"];` + */ + @JvmName("putTags") + public fun com.google.protobuf.kotlin.DslMap + .put(key: kotlin.String, value: kotlin.String) { + _builder.putTags(key, value) + } + /** + * ``` + * The tags to add to the assets + * ``` + * + * `map tags = 4 [json_name = "tags"];` + */ + @kotlin.jvm.JvmSynthetic + @JvmName("setTags") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslMap + .set(key: kotlin.String, value: kotlin.String) { + put(key, value) + } + /** + * ``` + * The tags to add to the assets + * ``` + * + * `map tags = 4 [json_name = "tags"];` + */ + @kotlin.jvm.JvmSynthetic + @JvmName("removeTags") + public fun com.google.protobuf.kotlin.DslMap + .remove(key: kotlin.String) { + _builder.removeTags(key) + } + /** + * ``` + * The tags to add to the assets + * ``` + * + * `map tags = 4 [json_name = "tags"];` + */ + @kotlin.jvm.JvmSynthetic + @JvmName("putAllTags") + public fun com.google.protobuf.kotlin.DslMap + .putAll(map: kotlin.collections.Map) { + _builder.putAllTags(map) + } + /** + * ``` + * The tags to add to the assets + * ``` + * + * `map tags = 4 [json_name = "tags"];` + */ + @kotlin.jvm.JvmSynthetic + @JvmName("clearTags") + public fun com.google.protobuf.kotlin.DslMap + .clear() { + _builder.clearTags() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.project.v1.TagAssetsRequest.copy(block: com.stabilityai.platformapis.project.v1.TagAssetsRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.TagAssetsRequest = + com.stabilityai.platformapis.project.v1.TagAssetsRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/TagAssetsResponseKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/TagAssetsResponseKt.kt new file mode 100644 index 0000000..0928d52 --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/TagAssetsResponseKt.kt @@ -0,0 +1,182 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/project/v1/project.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.project.v1; + +@kotlin.jvm.JvmName("-initializetagAssetsResponse") +public inline fun tagAssetsResponse(block: com.stabilityai.platformapis.project.v1.TagAssetsResponseKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.TagAssetsResponse = + com.stabilityai.platformapis.project.v1.TagAssetsResponseKt.Dsl._create(com.stabilityai.platformapis.project.v1.TagAssetsResponse.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.project.v1.TagAssetsResponse` + */ +public object TagAssetsResponseKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.project.v1.TagAssetsResponse.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.project.v1.TagAssetsResponse.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.project.v1.TagAssetsResponse = _builder.build() + + /** + * ``` + * ID of the project, UUIDv4 + * ``` + * + * `string id = 1 [json_name = "id"];` + */ + public var id: kotlin.String + @JvmName("getId") + get() = _builder.getId() + @JvmName("setId") + set(value) { + _builder.setId(value) + } + /** + * ``` + * ID of the project, UUIDv4 + * ``` + * + * `string id = 1 [json_name = "id"];` + */ + public fun clearId() { + _builder.clearId() + } + + /** + * ``` + * The ID of the organization owning the project + * ``` + * + * `string owner_id = 2 [json_name = "ownerId"];` + */ + public var ownerId: kotlin.String + @JvmName("getOwnerId") + get() = _builder.getOwnerId() + @JvmName("setOwnerId") + set(value) { + _builder.setOwnerId(value) + } + /** + * ``` + * The ID of the organization owning the project + * ``` + * + * `string owner_id = 2 [json_name = "ownerId"];` + */ + public fun clearOwnerId() { + _builder.clearOwnerId() + } + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class AssetIdsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * ``` + * The IDs of the assets updated in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @return A list containing the assetIds. + */ + public val assetIds: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getAssetIdsList() + ) + /** + * ``` + * The IDs of the assets updated in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param value The assetIds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAssetIds") + public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) { + _builder.addAssetIds(value) + } + /** + * ``` + * The IDs of the assets updated in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param value The assetIds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAssetIds") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) { + add(value) + } + /** + * ``` + * The IDs of the assets updated in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param values The assetIds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllAssetIds") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllAssetIds(values) + } + /** + * ``` + * The IDs of the assets updated in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param values The assetIds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllAssetIds") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * ``` + * The IDs of the assets updated in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param index The index to set the value at. + * @param value The assetIds to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setAssetIds") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) { + _builder.setAssetIds(index, value) + }/** + * ``` + * The IDs of the assets updated in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearAssetIds") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearAssetIds() + }} +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.project.v1.TagAssetsResponse.copy(block: com.stabilityai.platformapis.project.v1.TagAssetsResponseKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.TagAssetsResponse = + com.stabilityai.platformapis.project.v1.TagAssetsResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/UntagAssetsRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/UntagAssetsRequestKt.kt new file mode 100644 index 0000000..fc1f3df --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/UntagAssetsRequestKt.kt @@ -0,0 +1,291 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/project/v1/project.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.project.v1; + +@kotlin.jvm.JvmName("-initializeuntagAssetsRequest") +public inline fun untagAssetsRequest(block: com.stabilityai.platformapis.project.v1.UntagAssetsRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.UntagAssetsRequest = + com.stabilityai.platformapis.project.v1.UntagAssetsRequestKt.Dsl._create(com.stabilityai.platformapis.project.v1.UntagAssetsRequest.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.project.v1.UntagAssetsRequest` + */ +public object UntagAssetsRequestKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.project.v1.UntagAssetsRequest.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.project.v1.UntagAssetsRequest.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.project.v1.UntagAssetsRequest = _builder.build() + + /** + * ``` + * ID of the project to request, UUIDv4, empty string uses default project + * ``` + * + * `string id = 1 [json_name = "id"];` + */ + public var id: kotlin.String + @JvmName("getId") + get() = _builder.getId() + @JvmName("setId") + set(value) { + _builder.setId(value) + } + /** + * ``` + * ID of the project to request, UUIDv4, empty string uses default project + * ``` + * + * `string id = 1 [json_name = "id"];` + */ + public fun clearId() { + _builder.clearId() + } + + /** + * ``` + * The ID of the organization owning the assets, unset for default org for user + * ``` + * + * `optional string owner_id = 2 [json_name = "ownerId"];` + */ + public var ownerId: kotlin.String + @JvmName("getOwnerId") + get() = _builder.getOwnerId() + @JvmName("setOwnerId") + set(value) { + _builder.setOwnerId(value) + } + /** + * ``` + * The ID of the organization owning the assets, unset for default org for user + * ``` + * + * `optional string owner_id = 2 [json_name = "ownerId"];` + */ + public fun clearOwnerId() { + _builder.clearOwnerId() + } + /** + * ``` + * The ID of the organization owning the assets, unset for default org for user + * ``` + * + * `optional string owner_id = 2 [json_name = "ownerId"];` + * @return Whether the ownerId field is set. + */ + public fun hasOwnerId(): kotlin.Boolean { + return _builder.hasOwnerId() + } + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class AssetIdsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * ``` + * The IDs of the assets to tag in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @return A list containing the assetIds. + */ + public val assetIds: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getAssetIdsList() + ) + /** + * ``` + * The IDs of the assets to tag in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param value The assetIds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAssetIds") + public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) { + _builder.addAssetIds(value) + } + /** + * ``` + * The IDs of the assets to tag in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param value The assetIds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAssetIds") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) { + add(value) + } + /** + * ``` + * The IDs of the assets to tag in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param values The assetIds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllAssetIds") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllAssetIds(values) + } + /** + * ``` + * The IDs of the assets to tag in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param values The assetIds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllAssetIds") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * ``` + * The IDs of the assets to tag in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param index The index to set the value at. + * @param value The assetIds to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setAssetIds") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) { + _builder.setAssetIds(index, value) + }/** + * ``` + * The IDs of the assets to tag in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearAssetIds") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearAssetIds() + } + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class TagKeysProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * ``` + * The keys of the tags to remove from the assets + * ``` + * + * `repeated string tag_keys = 4 [json_name = "tagKeys"];` + * @return A list containing the tagKeys. + */ + public val tagKeys: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getTagKeysList() + ) + /** + * ``` + * The keys of the tags to remove from the assets + * ``` + * + * `repeated string tag_keys = 4 [json_name = "tagKeys"];` + * @param value The tagKeys to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addTagKeys") + public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) { + _builder.addTagKeys(value) + } + /** + * ``` + * The keys of the tags to remove from the assets + * ``` + * + * `repeated string tag_keys = 4 [json_name = "tagKeys"];` + * @param value The tagKeys to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignTagKeys") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) { + add(value) + } + /** + * ``` + * The keys of the tags to remove from the assets + * ``` + * + * `repeated string tag_keys = 4 [json_name = "tagKeys"];` + * @param values The tagKeys to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllTagKeys") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllTagKeys(values) + } + /** + * ``` + * The keys of the tags to remove from the assets + * ``` + * + * `repeated string tag_keys = 4 [json_name = "tagKeys"];` + * @param values The tagKeys to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllTagKeys") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * ``` + * The keys of the tags to remove from the assets + * ``` + * + * `repeated string tag_keys = 4 [json_name = "tagKeys"];` + * @param index The index to set the value at. + * @param value The tagKeys to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setTagKeys") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) { + _builder.setTagKeys(index, value) + }/** + * ``` + * The keys of the tags to remove from the assets + * ``` + * + * `repeated string tag_keys = 4 [json_name = "tagKeys"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearTagKeys") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearTagKeys() + }} +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.project.v1.UntagAssetsRequest.copy(block: com.stabilityai.platformapis.project.v1.UntagAssetsRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.UntagAssetsRequest = + com.stabilityai.platformapis.project.v1.UntagAssetsRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/UntagAssetsResponseKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/UntagAssetsResponseKt.kt new file mode 100644 index 0000000..37de15a --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/UntagAssetsResponseKt.kt @@ -0,0 +1,182 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/project/v1/project.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.project.v1; + +@kotlin.jvm.JvmName("-initializeuntagAssetsResponse") +public inline fun untagAssetsResponse(block: com.stabilityai.platformapis.project.v1.UntagAssetsResponseKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.UntagAssetsResponse = + com.stabilityai.platformapis.project.v1.UntagAssetsResponseKt.Dsl._create(com.stabilityai.platformapis.project.v1.UntagAssetsResponse.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.project.v1.UntagAssetsResponse` + */ +public object UntagAssetsResponseKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.project.v1.UntagAssetsResponse.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.project.v1.UntagAssetsResponse.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.project.v1.UntagAssetsResponse = _builder.build() + + /** + * ``` + * ID of the project, UUIDv4 + * ``` + * + * `string id = 1 [json_name = "id"];` + */ + public var id: kotlin.String + @JvmName("getId") + get() = _builder.getId() + @JvmName("setId") + set(value) { + _builder.setId(value) + } + /** + * ``` + * ID of the project, UUIDv4 + * ``` + * + * `string id = 1 [json_name = "id"];` + */ + public fun clearId() { + _builder.clearId() + } + + /** + * ``` + * The ID of the organization owning the project + * ``` + * + * `string owner_id = 2 [json_name = "ownerId"];` + */ + public var ownerId: kotlin.String + @JvmName("getOwnerId") + get() = _builder.getOwnerId() + @JvmName("setOwnerId") + set(value) { + _builder.setOwnerId(value) + } + /** + * ``` + * The ID of the organization owning the project + * ``` + * + * `string owner_id = 2 [json_name = "ownerId"];` + */ + public fun clearOwnerId() { + _builder.clearOwnerId() + } + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class AssetIdsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * ``` + * The IDs of the assets updated in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @return A list containing the assetIds. + */ + public val assetIds: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getAssetIdsList() + ) + /** + * ``` + * The IDs of the assets updated in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param value The assetIds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAssetIds") + public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) { + _builder.addAssetIds(value) + } + /** + * ``` + * The IDs of the assets updated in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param value The assetIds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAssetIds") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) { + add(value) + } + /** + * ``` + * The IDs of the assets updated in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param values The assetIds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllAssetIds") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllAssetIds(values) + } + /** + * ``` + * The IDs of the assets updated in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param values The assetIds to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllAssetIds") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * ``` + * The IDs of the assets updated in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + * @param index The index to set the value at. + * @param value The assetIds to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setAssetIds") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) { + _builder.setAssetIds(index, value) + }/** + * ``` + * The IDs of the assets updated in the project, UUIDv4, limit 1000 + * ``` + * + * `repeated string asset_ids = 3 [json_name = "assetIds"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearAssetIds") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearAssetIds() + }} +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.project.v1.UntagAssetsResponse.copy(block: com.stabilityai.platformapis.project.v1.UntagAssetsResponseKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.UntagAssetsResponse = + com.stabilityai.platformapis.project.v1.UntagAssetsResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/UpdateProjectRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/UpdateProjectRequestKt.kt new file mode 100644 index 0000000..0b52d6f --- /dev/null +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/UpdateProjectRequestKt.kt @@ -0,0 +1,258 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: stabilityai/platformapis/project/v1/project.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.stabilityai.platformapis.project.v1; + +@kotlin.jvm.JvmName("-initializeupdateProjectRequest") +public inline fun updateProjectRequest(block: com.stabilityai.platformapis.project.v1.UpdateProjectRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.UpdateProjectRequest = + com.stabilityai.platformapis.project.v1.UpdateProjectRequestKt.Dsl._create(com.stabilityai.platformapis.project.v1.UpdateProjectRequest.newBuilder()).apply { block() }._build() +/** + * Protobuf type `stabilityai.platformapis.project.v1.UpdateProjectRequest` + */ +public object UpdateProjectRequestKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.stabilityai.platformapis.project.v1.UpdateProjectRequest.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.stabilityai.platformapis.project.v1.UpdateProjectRequest.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.stabilityai.platformapis.project.v1.UpdateProjectRequest = _builder.build() + + /** + * ``` + * ID of the project, UUIDv4 + * ``` + * + * `string id = 1 [json_name = "id"];` + */ + public var id: kotlin.String + @JvmName("getId") + get() = _builder.getId() + @JvmName("setId") + set(value) { + _builder.setId(value) + } + /** + * ``` + * ID of the project, UUIDv4 + * ``` + * + * `string id = 1 [json_name = "id"];` + */ + public fun clearId() { + _builder.clearId() + } + + /** + * ``` + * The ID of the organization owning the project, empty for default org for user + * ``` + * + * `optional string owner_id = 2 [json_name = "ownerId"];` + */ + public var ownerId: kotlin.String + @JvmName("getOwnerId") + get() = _builder.getOwnerId() + @JvmName("setOwnerId") + set(value) { + _builder.setOwnerId(value) + } + /** + * ``` + * The ID of the organization owning the project, empty for default org for user + * ``` + * + * `optional string owner_id = 2 [json_name = "ownerId"];` + */ + public fun clearOwnerId() { + _builder.clearOwnerId() + } + /** + * ``` + * The ID of the organization owning the project, empty for default org for user + * ``` + * + * `optional string owner_id = 2 [json_name = "ownerId"];` + * @return Whether the ownerId field is set. + */ + public fun hasOwnerId(): kotlin.Boolean { + return _builder.hasOwnerId() + } + + /** + * ``` + * Title of the project + * ``` + * + * `optional string title = 3 [json_name = "title"];` + */ + public var title: kotlin.String + @JvmName("getTitle") + get() = _builder.getTitle() + @JvmName("setTitle") + set(value) { + _builder.setTitle(value) + } + /** + * ``` + * Title of the project + * ``` + * + * `optional string title = 3 [json_name = "title"];` + */ + public fun clearTitle() { + _builder.clearTitle() + } + /** + * ``` + * Title of the project + * ``` + * + * `optional string title = 3 [json_name = "title"];` + * @return Whether the title field is set. + */ + public fun hasTitle(): kotlin.Boolean { + return _builder.hasTitle() + } + + /** + * ``` + * The access of the project (such as public vs private) + * ``` + * + * `optional .stabilityai.platformapis.project.v1.ProjectAccess access = 4 [json_name = "access"];` + */ + public var access: com.stabilityai.platformapis.project.v1.ProjectAccess + @JvmName("getAccess") + get() = _builder.getAccess() + @JvmName("setAccess") + set(value) { + _builder.setAccess(value) + } + public var accessValue: kotlin.Int + @JvmName("getAccessValue") + get() = _builder.getAccessValue() + @JvmName("setAccessValue") + set(value) { + _builder.setAccessValue(value) + } + /** + * ``` + * The access of the project (such as public vs private) + * ``` + * + * `optional .stabilityai.platformapis.project.v1.ProjectAccess access = 4 [json_name = "access"];` + */ + public fun clearAccess() { + _builder.clearAccess() + } + /** + * ``` + * The access of the project (such as public vs private) + * ``` + * + * `optional .stabilityai.platformapis.project.v1.ProjectAccess access = 4 [json_name = "access"];` + * @return Whether the access field is set. + */ + public fun hasAccess(): kotlin.Boolean { + return _builder.hasAccess() + } + + /** + * ``` + * The status of the project (such as active vs inactive) + * ``` + * + * `optional .stabilityai.platformapis.project.v1.ProjectStatus status = 5 [json_name = "status"];` + */ + public var status: com.stabilityai.platformapis.project.v1.ProjectStatus + @JvmName("getStatus") + get() = _builder.getStatus() + @JvmName("setStatus") + set(value) { + _builder.setStatus(value) + } + public var statusValue: kotlin.Int + @JvmName("getStatusValue") + get() = _builder.getStatusValue() + @JvmName("setStatusValue") + set(value) { + _builder.setStatusValue(value) + } + /** + * ``` + * The status of the project (such as active vs inactive) + * ``` + * + * `optional .stabilityai.platformapis.project.v1.ProjectStatus status = 5 [json_name = "status"];` + */ + public fun clearStatus() { + _builder.clearStatus() + } + /** + * ``` + * The status of the project (such as active vs inactive) + * ``` + * + * `optional .stabilityai.platformapis.project.v1.ProjectStatus status = 5 [json_name = "status"];` + * @return Whether the status field is set. + */ + public fun hasStatus(): kotlin.Boolean { + return _builder.hasStatus() + } + + /** + * ``` + * Project file for the project + * ``` + * + * `optional .stabilityai.platformapis.project.v1.ProjectAsset file = 6 [json_name = "file"];` + */ + public var file: com.stabilityai.platformapis.project.v1.ProjectAsset + @JvmName("getFile") + get() = _builder.getFile() + @JvmName("setFile") + set(value) { + _builder.setFile(value) + } + /** + * ``` + * Project file for the project + * ``` + * + * `optional .stabilityai.platformapis.project.v1.ProjectAsset file = 6 [json_name = "file"];` + */ + public fun clearFile() { + _builder.clearFile() + } + /** + * ``` + * Project file for the project + * ``` + * + * `optional .stabilityai.platformapis.project.v1.ProjectAsset file = 6 [json_name = "file"];` + * @return Whether the file field is set. + */ + public fun hasFile(): kotlin.Boolean { + return _builder.hasFile() + } + public val UpdateProjectRequestKt.Dsl.fileOrNull: com.stabilityai.platformapis.project.v1.ProjectAsset? + get() = _builder.fileOrNull + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.stabilityai.platformapis.project.v1.UpdateProjectRequest.copy(block: com.stabilityai.platformapis.project.v1.UpdateProjectRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.UpdateProjectRequest = + com.stabilityai.platformapis.project.v1.UpdateProjectRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() + +public val com.stabilityai.platformapis.project.v1.UpdateProjectRequestOrBuilder.fileOrNull: com.stabilityai.platformapis.project.v1.ProjectAsset? + get() = if (hasFile()) getFile() else null + diff --git a/gen/proto/kt/com/tensors/AttributeKt.kt b/gen/proto/kt/com/tensors/AttributeKt.kt new file mode 100644 index 0000000..8c329a1 --- /dev/null +++ b/gen/proto/kt/com/tensors/AttributeKt.kt @@ -0,0 +1,208 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: coreweave/tensors/tensors.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.tensors; + +@kotlin.jvm.JvmName("-initializeattribute") +public inline fun attribute(block: com.tensors.AttributeKt.Dsl.() -> kotlin.Unit): com.tensors.Attribute = + com.tensors.AttributeKt.Dsl._create(com.tensors.Attribute.newBuilder()).apply { block() }._build() +/** + * Protobuf type `tensors.Attribute` + */ +public object AttributeKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.tensors.Attribute.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.tensors.Attribute.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.tensors.Attribute = _builder.build() + + /** + * `string name = 1 [json_name = "name"];` + */ + public var name: kotlin.String + @JvmName("getName") + get() = _builder.getName() + @JvmName("setName") + set(value) { + _builder.setName(value) + } + /** + * `string name = 1 [json_name = "name"];` + */ + public fun clearName() { + _builder.clearName() + } + + /** + * `.tensors.Module module = 3 [json_name = "module"];` + */ + public var module: com.tensors.Module + @JvmName("getModule") + get() = _builder.getModule() + @JvmName("setModule") + set(value) { + _builder.setModule(value) + } + /** + * `.tensors.Module module = 3 [json_name = "module"];` + */ + public fun clearModule() { + _builder.clearModule() + } + /** + * `.tensors.Module module = 3 [json_name = "module"];` + * @return Whether the module field is set. + */ + public fun hasModule(): kotlin.Boolean { + return _builder.hasModule() + } + + /** + * `.tensors.Tensor tensor = 4 [json_name = "tensor"];` + */ + public var tensor: com.tensors.Tensor + @JvmName("getTensor") + get() = _builder.getTensor() + @JvmName("setTensor") + set(value) { + _builder.setTensor(value) + } + /** + * `.tensors.Tensor tensor = 4 [json_name = "tensor"];` + */ + public fun clearTensor() { + _builder.clearTensor() + } + /** + * `.tensors.Tensor tensor = 4 [json_name = "tensor"];` + * @return Whether the tensor field is set. + */ + public fun hasTensor(): kotlin.Boolean { + return _builder.hasTensor() + } + + /** + * `string string = 5 [json_name = "string"];` + */ + public var string: kotlin.String + @JvmName("getString") + get() = _builder.getString() + @JvmName("setString") + set(value) { + _builder.setString(value) + } + /** + * `string string = 5 [json_name = "string"];` + */ + public fun clearString() { + _builder.clearString() + } + /** + * `string string = 5 [json_name = "string"];` + * @return Whether the string field is set. + */ + public fun hasString(): kotlin.Boolean { + return _builder.hasString() + } + + /** + * `int64 int64 = 6 [json_name = "int64"];` + */ + public var int64: kotlin.Long + @JvmName("getInt64") + get() = _builder.getInt64() + @JvmName("setInt64") + set(value) { + _builder.setInt64(value) + } + /** + * `int64 int64 = 6 [json_name = "int64"];` + */ + public fun clearInt64() { + _builder.clearInt64() + } + /** + * `int64 int64 = 6 [json_name = "int64"];` + * @return Whether the int64 field is set. + */ + public fun hasInt64(): kotlin.Boolean { + return _builder.hasInt64() + } + + /** + * `float float = 7 [json_name = "float"];` + */ + public var float: kotlin.Float + @JvmName("getFloat") + get() = _builder.getFloat() + @JvmName("setFloat") + set(value) { + _builder.setFloat(value) + } + /** + * `float float = 7 [json_name = "float"];` + */ + public fun clearFloat() { + _builder.clearFloat() + } + /** + * `float float = 7 [json_name = "float"];` + * @return Whether the float field is set. + */ + public fun hasFloat(): kotlin.Boolean { + return _builder.hasFloat() + } + + /** + * `bool bool = 8 [json_name = "bool"];` + */ + public var bool: kotlin.Boolean + @JvmName("getBool") + get() = _builder.getBool() + @JvmName("setBool") + set(value) { + _builder.setBool(value) + } + /** + * `bool bool = 8 [json_name = "bool"];` + */ + public fun clearBool() { + _builder.clearBool() + } + /** + * `bool bool = 8 [json_name = "bool"];` + * @return Whether the bool field is set. + */ + public fun hasBool(): kotlin.Boolean { + return _builder.hasBool() + } + public val valueCase: com.tensors.Attribute.ValueCase + @JvmName("getValueCase") + get() = _builder.getValueCase() + + public fun clearValue() { + _builder.clearValue() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.tensors.Attribute.copy(block: com.tensors.AttributeKt.Dsl.() -> kotlin.Unit): com.tensors.Attribute = + com.tensors.AttributeKt.Dsl._create(this.toBuilder()).apply { block() }._build() + +public val com.tensors.AttributeOrBuilder.moduleOrNull: com.tensors.Module? + get() = if (hasModule()) getModule() else null + +public val com.tensors.AttributeOrBuilder.tensorOrNull: com.tensors.Tensor? + get() = if (hasTensor()) getTensor() else null + diff --git a/gen/proto/kt/com/tensors/ModuleKt.kt b/gen/proto/kt/com/tensors/ModuleKt.kt new file mode 100644 index 0000000..70d4e80 --- /dev/null +++ b/gen/proto/kt/com/tensors/ModuleKt.kt @@ -0,0 +1,193 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: coreweave/tensors/tensors.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.tensors; + +@kotlin.jvm.JvmName("-initializemodule") +public inline fun module(block: com.tensors.ModuleKt.Dsl.() -> kotlin.Unit): com.tensors.Module = + com.tensors.ModuleKt.Dsl._create(com.tensors.Module.newBuilder()).apply { block() }._build() +/** + * Protobuf type `tensors.Module` + */ +public object ModuleKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.tensors.Module.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.tensors.Module.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.tensors.Module = _builder.build() + + /** + * `string name = 1 [json_name = "name"];` + */ + public var name: kotlin.String + @JvmName("getName") + get() = _builder.getName() + @JvmName("setName") + set(value) { + _builder.setName(value) + } + /** + * `string name = 1 [json_name = "name"];` + */ + public fun clearName() { + _builder.clearName() + } + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class NamesProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * `repeated string names = 2 [json_name = "names"];` + * @return A list containing the names. + */ + public val names: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getNamesList() + ) + /** + * `repeated string names = 2 [json_name = "names"];` + * @param value The names to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addNames") + public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) { + _builder.addNames(value) + } + /** + * `repeated string names = 2 [json_name = "names"];` + * @param value The names to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignNames") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) { + add(value) + } + /** + * `repeated string names = 2 [json_name = "names"];` + * @param values The names to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllNames") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllNames(values) + } + /** + * `repeated string names = 2 [json_name = "names"];` + * @param values The names to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllNames") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * `repeated string names = 2 [json_name = "names"];` + * @param index The index to set the value at. + * @param value The names to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setNames") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) { + _builder.setNames(index, value) + }/** + * `repeated string names = 2 [json_name = "names"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearNames") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearNames() + } + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class AttributesProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * `repeated .tensors.Attribute attributes = 3 [json_name = "attributes"];` + */ + public val attributes: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getAttributesList() + ) + /** + * `repeated .tensors.Attribute attributes = 3 [json_name = "attributes"];` + * @param value The attributes to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAttributes") + public fun com.google.protobuf.kotlin.DslList.add(value: com.tensors.Attribute) { + _builder.addAttributes(value) + } + /** + * `repeated .tensors.Attribute attributes = 3 [json_name = "attributes"];` + * @param value The attributes to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAttributes") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.tensors.Attribute) { + add(value) + } + /** + * `repeated .tensors.Attribute attributes = 3 [json_name = "attributes"];` + * @param values The attributes to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllAttributes") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllAttributes(values) + } + /** + * `repeated .tensors.Attribute attributes = 3 [json_name = "attributes"];` + * @param values The attributes to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllAttributes") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + } + /** + * `repeated .tensors.Attribute attributes = 3 [json_name = "attributes"];` + * @param index The index to set the value at. + * @param value The attributes to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setAttributes") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.tensors.Attribute) { + _builder.setAttributes(index, value) + } + /** + * `repeated .tensors.Attribute attributes = 3 [json_name = "attributes"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearAttributes") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearAttributes() + } + + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.tensors.Module.copy(block: com.tensors.ModuleKt.Dsl.() -> kotlin.Unit): com.tensors.Module = + com.tensors.ModuleKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/tensors/TensorKt.kt b/gen/proto/kt/com/tensors/TensorKt.kt new file mode 100644 index 0000000..434616b --- /dev/null +++ b/gen/proto/kt/com/tensors/TensorKt.kt @@ -0,0 +1,171 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: coreweave/tensors/tensors.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.tensors; + +@kotlin.jvm.JvmName("-initializetensor") +public inline fun tensor(block: com.tensors.TensorKt.Dsl.() -> kotlin.Unit): com.tensors.Tensor = + com.tensors.TensorKt.Dsl._create(com.tensors.Tensor.newBuilder()).apply { block() }._build() +/** + * Protobuf type `tensors.Tensor` + */ +public object TensorKt { + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + @com.google.protobuf.kotlin.ProtoDslMarker + public class Dsl private constructor( + private val _builder: com.tensors.Tensor.Builder + ) { + public companion object { + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _create(builder: com.tensors.Tensor.Builder): Dsl = Dsl(builder) + } + + @kotlin.jvm.JvmSynthetic + @kotlin.PublishedApi + internal fun _build(): com.tensors.Tensor = _builder.build() + + /** + * `.tensors.Dtype dtype = 1 [json_name = "dtype"];` + */ + public var dtype: com.tensors.Dtype + @JvmName("getDtype") + get() = _builder.getDtype() + @JvmName("setDtype") + set(value) { + _builder.setDtype(value) + } + public var dtypeValue: kotlin.Int + @JvmName("getDtypeValue") + get() = _builder.getDtypeValue() + @JvmName("setDtypeValue") + set(value) { + _builder.setDtypeValue(value) + } + /** + * `.tensors.Dtype dtype = 1 [json_name = "dtype"];` + */ + public fun clearDtype() { + _builder.clearDtype() + } + + /** + * An uninstantiable, behaviorless type to represent the field in + * generics. + */ + @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) + public class ShapeProxy private constructor() : com.google.protobuf.kotlin.DslProxy() + /** + * `repeated int64 shape = 2 [json_name = "shape"];` + */ + public val shape: com.google.protobuf.kotlin.DslList + @kotlin.jvm.JvmSynthetic + get() = com.google.protobuf.kotlin.DslList( + _builder.getShapeList() + ) + /** + * `repeated int64 shape = 2 [json_name = "shape"];` + * @param value The shape to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addShape") + public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.Long) { + _builder.addShape(value) + }/** + * `repeated int64 shape = 2 [json_name = "shape"];` + * @param value The shape to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignShape") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.Long) { + add(value) + }/** + * `repeated int64 shape = 2 [json_name = "shape"];` + * @param values The shape to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("addAllShape") + public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { + _builder.addAllShape(values) + }/** + * `repeated int64 shape = 2 [json_name = "shape"];` + * @param values The shape to add. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("plusAssignAllShape") + @Suppress("NOTHING_TO_INLINE") + public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { + addAll(values) + }/** + * `repeated int64 shape = 2 [json_name = "shape"];` + * @param index The index to set the value at. + * @param value The shape to set. + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("setShape") + public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.Long) { + _builder.setShape(index, value) + }/** + * `repeated int64 shape = 2 [json_name = "shape"];` + */ + @kotlin.jvm.JvmSynthetic + @kotlin.jvm.JvmName("clearShape") + public fun com.google.protobuf.kotlin.DslList.clear() { + _builder.clearShape() + } + /** + * `bytes data = 3 [json_name = "data"];` + */ + public var data: com.google.protobuf.ByteString + @JvmName("getData") + get() = _builder.getData() + @JvmName("setData") + set(value) { + _builder.setData(value) + } + /** + * `bytes data = 3 [json_name = "data"];` + */ + public fun clearData() { + _builder.clearData() + } + + /** + * `optional .tensors.AttributeType attr_type = 4 [json_name = "attrType"];` + */ + public var attrType: com.tensors.AttributeType + @JvmName("getAttrType") + get() = _builder.getAttrType() + @JvmName("setAttrType") + set(value) { + _builder.setAttrType(value) + } + public var attrTypeValue: kotlin.Int + @JvmName("getAttrTypeValue") + get() = _builder.getAttrTypeValue() + @JvmName("setAttrTypeValue") + set(value) { + _builder.setAttrTypeValue(value) + } + /** + * `optional .tensors.AttributeType attr_type = 4 [json_name = "attrType"];` + */ + public fun clearAttrType() { + _builder.clearAttrType() + } + /** + * `optional .tensors.AttributeType attr_type = 4 [json_name = "attrType"];` + * @return Whether the attrType field is set. + */ + public fun hasAttrType(): kotlin.Boolean { + return _builder.hasAttrType() + } + } +} +@kotlin.jvm.JvmSynthetic +public inline fun com.tensors.Tensor.copy(block: com.tensors.TensorKt.Dsl.() -> kotlin.Unit): com.tensors.Tensor = + com.tensors.TensorKt.Dsl._create(this.toBuilder()).apply { block() }._build() + diff --git a/gen/proto/kt/com/tensors/TensorsProtoKt.kt b/gen/proto/kt/com/tensors/TensorsProtoKt.kt new file mode 100644 index 0000000..d7a7d29 --- /dev/null +++ b/gen/proto/kt/com/tensors/TensorsProtoKt.kt @@ -0,0 +1,7 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: coreweave/tensors/tensors.proto + +// Generated files should ignore deprecation warnings +@file:Suppress("DEPRECATION") +package com.tensors; + diff --git a/gen/proto/py/coreweave/tensors/tensors_pb2.py b/gen/proto/py/coreweave/tensors/tensors_pb2.py new file mode 100644 index 0000000..fd1d41a --- /dev/null +++ b/gen/proto/py/coreweave/tensors/tensors_pb2.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: coreweave/tensors/tensors.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x63oreweave/tensors/tensors.proto\x12\x07tensors\"\xa0\x01\n\x06Tensor\x12$\n\x05\x64type\x18\x01 \x01(\x0e\x32\x0e.tensors.DtypeR\x05\x64type\x12\x14\n\x05shape\x18\x02 \x03(\x03R\x05shape\x12\x12\n\x04\x64\x61ta\x18\x03 \x01(\x0cR\x04\x64\x61ta\x12\x38\n\tattr_type\x18\x04 \x01(\x0e\x32\x16.tensors.AttributeTypeH\x00R\x08\x61ttrType\x88\x01\x01\x42\x0c\n\n_attr_type\"\xde\x01\n\tAttribute\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12)\n\x06module\x18\x03 \x01(\x0b\x32\x0f.tensors.ModuleH\x00R\x06module\x12)\n\x06tensor\x18\x04 \x01(\x0b\x32\x0f.tensors.TensorH\x00R\x06tensor\x12\x18\n\x06string\x18\x05 \x01(\tH\x00R\x06string\x12\x16\n\x05int64\x18\x06 \x01(\x03H\x00R\x05int64\x12\x16\n\x05\x66loat\x18\x07 \x01(\x02H\x00R\x05\x66loat\x12\x14\n\x04\x62ool\x18\x08 \x01(\x08H\x00R\x04\x62oolB\x07\n\x05value\"f\n\x06Module\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n\x05names\x18\x02 \x03(\tR\x05names\x12\x32\n\nattributes\x18\x03 \x03(\x0b\x32\x12.tensors.AttributeR\nattributes*\x9e\x02\n\x05\x44type\x12\x0e\n\nDT_INVALID\x10\x00\x12\x0e\n\nDT_FLOAT32\x10\x01\x12\x0e\n\nDT_FLOAT64\x10\x02\x12\x0e\n\nDT_FLOAT16\x10\x03\x12\x0f\n\x0b\x44T_BFLOAT16\x10\x04\x12\x10\n\x0c\x44T_COMPLEX32\x10\x05\x12\x10\n\x0c\x44T_COMPLEX64\x10\x06\x12\x11\n\rDT_COMPLEX128\x10\x07\x12\x0c\n\x08\x44T_UINT8\x10\x08\x12\x0b\n\x07\x44T_INT8\x10\t\x12\x0c\n\x08\x44T_INT16\x10\n\x12\x0c\n\x08\x44T_INT32\x10\x0b\x12\x0c\n\x08\x44T_INT64\x10\x0c\x12\x0b\n\x07\x44T_BOOL\x10\r\x12\r\n\tDT_QUINT8\x10\x0e\x12\x0c\n\x08\x44T_QINT8\x10\x0f\x12\r\n\tDT_QINT32\x10\x10\x12\x0f\n\x0b\x44T_QUINT4_2\x10\x11*0\n\rAttributeType\x12\x10\n\x0c\x41T_PARAMETER\x10\x00\x12\r\n\tAT_BUFFER\x10\x01\x42\x80\x01\n\x0b\x63om.tensorsB\x0cTensorsProtoP\x01Z\'github.com/coreweave/tensorizer/tensors\xa2\x02\x03TXX\xaa\x02\x07Tensors\xca\x02\x07Tensors\xe2\x02\x13Tensors\\GPBMetadata\xea\x02\x07Tensorsb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'coreweave.tensors.tensors_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\013com.tensorsB\014TensorsProtoP\001Z\'github.com/coreweave/tensorizer/tensors\242\002\003TXX\252\002\007Tensors\312\002\007Tensors\342\002\023Tensors\\GPBMetadata\352\002\007Tensors' + _globals['_DTYPE']._serialized_start=537 + _globals['_DTYPE']._serialized_end=823 + _globals['_ATTRIBUTETYPE']._serialized_start=825 + _globals['_ATTRIBUTETYPE']._serialized_end=873 + _globals['_TENSOR']._serialized_start=45 + _globals['_TENSOR']._serialized_end=205 + _globals['_ATTRIBUTE']._serialized_start=208 + _globals['_ATTRIBUTE']._serialized_end=430 + _globals['_MODULE']._serialized_start=432 + _globals['_MODULE']._serialized_end=534 +# @@protoc_insertion_point(module_scope) diff --git a/gen/proto/py/coreweave/tensors/tensors_pb2.pyi b/gen/proto/py/coreweave/tensors/tensors_pb2.pyi new file mode 100644 index 0000000..b2a9039 --- /dev/null +++ b/gen/proto/py/coreweave/tensors/tensors_pb2.pyi @@ -0,0 +1,93 @@ +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class Dtype(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + DT_INVALID: _ClassVar[Dtype] + DT_FLOAT32: _ClassVar[Dtype] + DT_FLOAT64: _ClassVar[Dtype] + DT_FLOAT16: _ClassVar[Dtype] + DT_BFLOAT16: _ClassVar[Dtype] + DT_COMPLEX32: _ClassVar[Dtype] + DT_COMPLEX64: _ClassVar[Dtype] + DT_COMPLEX128: _ClassVar[Dtype] + DT_UINT8: _ClassVar[Dtype] + DT_INT8: _ClassVar[Dtype] + DT_INT16: _ClassVar[Dtype] + DT_INT32: _ClassVar[Dtype] + DT_INT64: _ClassVar[Dtype] + DT_BOOL: _ClassVar[Dtype] + DT_QUINT8: _ClassVar[Dtype] + DT_QINT8: _ClassVar[Dtype] + DT_QINT32: _ClassVar[Dtype] + DT_QUINT4_2: _ClassVar[Dtype] + +class AttributeType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + AT_PARAMETER: _ClassVar[AttributeType] + AT_BUFFER: _ClassVar[AttributeType] +DT_INVALID: Dtype +DT_FLOAT32: Dtype +DT_FLOAT64: Dtype +DT_FLOAT16: Dtype +DT_BFLOAT16: Dtype +DT_COMPLEX32: Dtype +DT_COMPLEX64: Dtype +DT_COMPLEX128: Dtype +DT_UINT8: Dtype +DT_INT8: Dtype +DT_INT16: Dtype +DT_INT32: Dtype +DT_INT64: Dtype +DT_BOOL: Dtype +DT_QUINT8: Dtype +DT_QINT8: Dtype +DT_QINT32: Dtype +DT_QUINT4_2: Dtype +AT_PARAMETER: AttributeType +AT_BUFFER: AttributeType + +class Tensor(_message.Message): + __slots__ = ["dtype", "shape", "data", "attr_type"] + DTYPE_FIELD_NUMBER: _ClassVar[int] + SHAPE_FIELD_NUMBER: _ClassVar[int] + DATA_FIELD_NUMBER: _ClassVar[int] + ATTR_TYPE_FIELD_NUMBER: _ClassVar[int] + dtype: Dtype + shape: _containers.RepeatedScalarFieldContainer[int] + data: bytes + attr_type: AttributeType + def __init__(self, dtype: _Optional[_Union[Dtype, str]] = ..., shape: _Optional[_Iterable[int]] = ..., data: _Optional[bytes] = ..., attr_type: _Optional[_Union[AttributeType, str]] = ...) -> None: ... + +class Attribute(_message.Message): + __slots__ = ["name", "module", "tensor", "string", "int64", "float", "bool"] + NAME_FIELD_NUMBER: _ClassVar[int] + MODULE_FIELD_NUMBER: _ClassVar[int] + TENSOR_FIELD_NUMBER: _ClassVar[int] + STRING_FIELD_NUMBER: _ClassVar[int] + INT64_FIELD_NUMBER: _ClassVar[int] + FLOAT_FIELD_NUMBER: _ClassVar[int] + BOOL_FIELD_NUMBER: _ClassVar[int] + name: str + module: Module + tensor: Tensor + string: str + int64: int + float: float + bool: bool + def __init__(self, name: _Optional[str] = ..., module: _Optional[_Union[Module, _Mapping]] = ..., tensor: _Optional[_Union[Tensor, _Mapping]] = ..., string: _Optional[str] = ..., int64: _Optional[int] = ..., float: _Optional[float] = ..., bool: bool = ...) -> None: ... + +class Module(_message.Message): + __slots__ = ["name", "names", "attributes"] + NAME_FIELD_NUMBER: _ClassVar[int] + NAMES_FIELD_NUMBER: _ClassVar[int] + ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + name: str + names: _containers.RepeatedScalarFieldContainer[str] + attributes: _containers.RepeatedCompositeFieldContainer[Attribute] + def __init__(self, name: _Optional[str] = ..., names: _Optional[_Iterable[str]] = ..., attributes: _Optional[_Iterable[_Union[Attribute, _Mapping]]] = ...) -> None: ... diff --git a/gen/proto/py/coreweave/tensors/tensors_pb2_grpc.py b/gen/proto/py/coreweave/tensors/tensors_pb2_grpc.py new file mode 100644 index 0000000..2daafff --- /dev/null +++ b/gen/proto/py/coreweave/tensors/tensors_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/gen/proto/py/stabilityai/platformapis/dashboard/v1/dashboard_pb2.py b/gen/proto/py/stabilityai/platformapis/dashboard/v1/dashboard_pb2.py new file mode 100644 index 0000000..cdbd356 --- /dev/null +++ b/gen/proto/py/stabilityai/platformapis/dashboard/v1/dashboard_pb2.py @@ -0,0 +1,85 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: stabilityai/platformapis/dashboard/v1/dashboard.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n5stabilityai/platformapis/dashboard/v1/dashboard.proto\x12\x1cstabilityai.api.dashboard.v1\"\x8d\x02\n\x12OrganizationMember\x12N\n\x0corganization\x18\x01 \x01(\x0b\x32*.stabilityai.api.dashboard.v1.OrganizationR\x0corganization\x12;\n\x04user\x18\x02 \x01(\x0b\x32\".stabilityai.api.dashboard.v1.UserH\x00R\x04user\x88\x01\x01\x12\x42\n\x04role\x18\x03 \x01(\x0e\x32..stabilityai.api.dashboard.v1.OrganizationRoleR\x04role\x12\x1d\n\nis_default\x18\x04 \x01(\x08R\tisDefaultB\x07\n\x05_user\"\x99\x01\n\x11OrganizationGrant\x12%\n\x0e\x61mount_granted\x18\x01 \x01(\x01R\ramountGranted\x12\x1f\n\x0b\x61mount_used\x18\x02 \x01(\x01R\namountUsed\x12\x1d\n\nexpires_at\x18\x03 \x01(\x04R\texpiresAt\x12\x1d\n\ngranted_at\x18\x04 \x01(\x04R\tgrantedAt\"|\n\x17OrganizationPaymentInfo\x12\x18\n\x07\x62\x61lance\x18\x01 \x01(\x01R\x07\x62\x61lance\x12G\n\x06grants\x18\x02 \x03(\x0b\x32/.stabilityai.api.dashboard.v1.OrganizationGrantR\x06grants\"a\n\x16OrganizationAutoCharge\x12\x18\n\x07\x65nabled\x18\x01 \x01(\x08R\x07\x65nabled\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\x12\x1d\n\ncreated_at\x18\x03 \x01(\x04R\tcreatedAt\"\xc6\x03\n\x0cOrganization\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12J\n\x07members\x18\x04 \x03(\x0b\x32\x30.stabilityai.api.dashboard.v1.OrganizationMemberR\x07members\x12]\n\x0cpayment_info\x18\x05 \x01(\x0b\x32\x35.stabilityai.api.dashboard.v1.OrganizationPaymentInfoH\x00R\x0bpaymentInfo\x88\x01\x01\x12\x31\n\x12stripe_customer_id\x18\x06 \x01(\tH\x01R\x10stripeCustomerId\x88\x01\x01\x12Z\n\x0b\x61uto_charge\x18\x07 \x01(\x0b\x32\x34.stabilityai.api.dashboard.v1.OrganizationAutoChargeH\x02R\nautoCharge\x88\x01\x01\x42\x0f\n\r_payment_infoB\x15\n\x13_stripe_customer_idB\x0e\n\x0c_auto_charge\"V\n\x06\x41PIKey\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x1b\n\tis_secret\x18\x02 \x01(\x08R\x08isSecret\x12\x1d\n\ncreated_at\x18\x03 \x01(\x04R\tcreatedAt\"\xf6\x02\n\x04User\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1c\n\x07\x61uth_id\x18\x02 \x01(\tH\x00R\x06\x61uthId\x88\x01\x01\x12\'\n\x0fprofile_picture\x18\x03 \x01(\tR\x0eprofilePicture\x12\x14\n\x05\x65mail\x18\x04 \x01(\tR\x05\x65mail\x12V\n\rorganizations\x18\x05 \x03(\x0b\x32\x30.stabilityai.api.dashboard.v1.OrganizationMemberR\rorganizations\x12?\n\x08\x61pi_keys\x18\x07 \x03(\x0b\x32$.stabilityai.api.dashboard.v1.APIKeyR\x07\x61piKeys\x12\x1d\n\ncreated_at\x18\x08 \x01(\x04R\tcreatedAt\x12*\n\x0e\x65mail_verified\x18\t \x01(\x08H\x01R\remailVerified\x88\x01\x01\x42\n\n\x08_auth_idB\x11\n\x0f_email_verified\"V\n\x08\x43ostData\x12#\n\ramount_tokens\x18\x01 \x01(\rR\x0c\x61mountTokens\x12%\n\x0e\x61mount_credits\x18\x02 \x01(\x01R\ramountCredits\"\xaa\x02\n\x0bUsageMetric\x12\x1c\n\toperation\x18\x01 \x01(\tR\toperation\x12\x16\n\x06\x65ngine\x18\x02 \x01(\tR\x06\x65ngine\x12\x45\n\ninput_cost\x18\x03 \x01(\x0b\x32&.stabilityai.api.dashboard.v1.CostDataR\tinputCost\x12G\n\x0boutput_cost\x18\x04 \x01(\x0b\x32&.stabilityai.api.dashboard.v1.CostDataR\noutputCost\x12\x17\n\x04user\x18\x05 \x01(\tH\x00R\x04user\x88\x01\x01\x12\x33\n\x15\x61ggregation_timestamp\x18\x06 \x01(\x04R\x14\x61ggregationTimestampB\x07\n\x05_user\"W\n\tCostTotal\x12#\n\ramount_tokens\x18\x01 \x01(\rR\x0c\x61mountTokens\x12%\n\x0e\x61mount_credits\x18\x02 \x01(\x01R\ramountCredits\"\xa8\x01\n\x10TotalMetricsData\x12H\n\x0binput_total\x18\x01 \x01(\x0b\x32\'.stabilityai.api.dashboard.v1.CostTotalR\ninputTotal\x12J\n\x0coutput_total\x18\x02 \x01(\x0b\x32\'.stabilityai.api.dashboard.v1.CostTotalR\x0boutputTotal\"\x94\x01\n\x07Metrics\x12\x43\n\x07metrics\x18\x01 \x03(\x0b\x32).stabilityai.api.dashboard.v1.UsageMetricR\x07metrics\x12\x44\n\x05total\x18\x02 \x01(\x0b\x32..stabilityai.api.dashboard.v1.TotalMetricsDataR\x05total\"\x0e\n\x0c\x45mptyRequest\"(\n\x16GetOrganizationRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"\xdf\x01\n\x11GetMetricsRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\x1c\n\x07user_id\x18\x02 \x01(\tH\x00R\x06userId\x88\x01\x01\x12\x1d\n\nrange_from\x18\x03 \x01(\x04R\trangeFrom\x12\x19\n\x08range_to\x18\x04 \x01(\x04R\x07rangeTo\x12=\n\x1binclude_per_request_metrics\x18\x05 \x01(\x08R\x18includePerRequestMetricsB\n\n\x08_user_id\",\n\rAPIKeyRequest\x12\x1b\n\tis_secret\x18\x01 \x01(\x08R\x08isSecret\"#\n\x11\x41PIKeyFindRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"K\n UpdateDefaultOrganizationRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\",\n\x0e\x43lientSettings\x12\x1a\n\x08settings\x18\x01 \x01(\x0cR\x08settings\"\xbd\x01\n\x1d\x43reateAutoChargeIntentRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\'\n\x0fmonthly_maximum\x18\x02 \x01(\x04R\x0emonthlyMaximum\x12#\n\rminimum_value\x18\x03 \x01(\x04R\x0cminimumValue\x12%\n\x0e\x61mount_credits\x18\x04 \x01(\x04R\ramountCredits\"V\n\x13\x43reateChargeRequest\x12\x16\n\x06\x61mount\x18\x01 \x01(\x04R\x06\x61mount\x12\'\n\x0forganization_id\x18\x02 \x01(\tR\x0eorganizationId\"v\n\x11GetChargesRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\x1d\n\nrange_from\x18\x02 \x01(\x04R\trangeFrom\x12\x19\n\x08range_to\x18\x03 \x01(\x04R\x07rangeTo\"\xb8\x01\n\x06\x43harge\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04paid\x18\x02 \x01(\x08R\x04paid\x12!\n\x0creceipt_link\x18\x03 \x01(\tR\x0breceiptLink\x12!\n\x0cpayment_link\x18\x04 \x01(\tR\x0bpaymentLink\x12\x1d\n\ncreated_at\x18\x05 \x01(\x04R\tcreatedAt\x12%\n\x0e\x61mount_credits\x18\x06 \x01(\x04R\ramountCredits\"I\n\x07\x43harges\x12>\n\x07\x63harges\x18\x01 \x03(\x0b\x32$.stabilityai.api.dashboard.v1.ChargeR\x07\x63harges\"?\n\x14GetAutoChargeRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\"\xd9\x01\n\x10\x41utoChargeIntent\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12!\n\x0cpayment_link\x18\x02 \x01(\tR\x0bpaymentLink\x12\x1d\n\ncreated_at\x18\x03 \x01(\x04R\tcreatedAt\x12\'\n\x0fmonthly_maximum\x18\x04 \x01(\x04R\x0emonthlyMaximum\x12#\n\rminimum_value\x18\x05 \x01(\x04R\x0cminimumValue\x12%\n\x0e\x61mount_credits\x18\x06 \x01(\x04R\ramountCredits\"<\n\x15UpdateUserInfoRequest\x12\x19\n\x05\x65mail\x18\x01 \x01(\tH\x00R\x05\x65mail\x88\x01\x01\x42\x08\n\x06_email\"2\n\x18UserPasswordChangeTicket\x12\x16\n\x06ticket\x18\x01 \x01(\tR\x06ticket*9\n\x10OrganizationRole\x12\n\n\x06MEMBER\x10\x00\x12\x0e\n\nACCOUNTANT\x10\x01\x12\t\n\x05OWNER\x10\x02\x32\x9a\x0e\n\x10\x44\x61shboardService\x12W\n\x05GetMe\x12*.stabilityai.api.dashboard.v1.EmptyRequest\x1a\".stabilityai.api.dashboard.v1.User\x12s\n\x0fGetOrganization\x12\x34.stabilityai.api.dashboard.v1.GetOrganizationRequest\x1a*.stabilityai.api.dashboard.v1.Organization\x12\x64\n\nGetMetrics\x12/.stabilityai.api.dashboard.v1.GetMetricsRequest\x1a%.stabilityai.api.dashboard.v1.Metrics\x12\x61\n\x0c\x43reateAPIKey\x12+.stabilityai.api.dashboard.v1.APIKeyRequest\x1a$.stabilityai.api.dashboard.v1.APIKey\x12\x65\n\x0c\x44\x65leteAPIKey\x12/.stabilityai.api.dashboard.v1.APIKeyFindRequest\x1a$.stabilityai.api.dashboard.v1.APIKey\x12\x7f\n\x19UpdateDefaultOrganization\x12>.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest\x1a\".stabilityai.api.dashboard.v1.User\x12m\n\x11GetClientSettings\x12*.stabilityai.api.dashboard.v1.EmptyRequest\x1a,.stabilityai.api.dashboard.v1.ClientSettings\x12o\n\x11SetClientSettings\x12,.stabilityai.api.dashboard.v1.ClientSettings\x1a,.stabilityai.api.dashboard.v1.ClientSettings\x12i\n\x0eUpdateUserInfo\x12\x33.stabilityai.api.dashboard.v1.UpdateUserInfoRequest\x1a\".stabilityai.api.dashboard.v1.User\x12\x80\x01\n\x1a\x43reatePasswordChangeTicket\x12*.stabilityai.api.dashboard.v1.EmptyRequest\x1a\x36.stabilityai.api.dashboard.v1.UserPasswordChangeTicket\x12_\n\rDeleteAccount\x12*.stabilityai.api.dashboard.v1.EmptyRequest\x1a\".stabilityai.api.dashboard.v1.User\x12g\n\x0c\x43reateCharge\x12\x31.stabilityai.api.dashboard.v1.CreateChargeRequest\x1a$.stabilityai.api.dashboard.v1.Charge\x12\x64\n\nGetCharges\x12/.stabilityai.api.dashboard.v1.GetChargesRequest\x1a%.stabilityai.api.dashboard.v1.Charges\x12\x85\x01\n\x16\x43reateAutoChargeIntent\x12;.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest\x1a..stabilityai.api.dashboard.v1.AutoChargeIntent\x12\x85\x01\n\x16UpdateAutoChargeIntent\x12;.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest\x1a..stabilityai.api.dashboard.v1.AutoChargeIntent\x12y\n\x13GetAutoChargeIntent\x12\x32.stabilityai.api.dashboard.v1.GetAutoChargeRequest\x1a..stabilityai.api.dashboard.v1.AutoChargeIntentB\xac\x02\n com.stabilityai.api.dashboard.v1B\x0e\x44\x61shboardProtoP\x01Zegithub.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/dashboard/v1;dashboardv1\xa2\x02\x03SAD\xaa\x02\x1cStabilityai.Api.Dashboard.V1\xca\x02\x1cStabilityai\\Api\\Dashboard\\V1\xe2\x02(Stabilityai\\Api\\Dashboard\\V1\\GPBMetadata\xea\x02\x1fStabilityai::Api::Dashboard::V1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'stabilityai.platformapis.dashboard.v1.dashboard_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n com.stabilityai.api.dashboard.v1B\016DashboardProtoP\001Zegithub.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/dashboard/v1;dashboardv1\242\002\003SAD\252\002\034Stabilityai.Api.Dashboard.V1\312\002\034Stabilityai\\Api\\Dashboard\\V1\342\002(Stabilityai\\Api\\Dashboard\\V1\\GPBMetadata\352\002\037Stabilityai::Api::Dashboard::V1' + _globals['_ORGANIZATIONROLE']._serialized_start=4013 + _globals['_ORGANIZATIONROLE']._serialized_end=4070 + _globals['_ORGANIZATIONMEMBER']._serialized_start=88 + _globals['_ORGANIZATIONMEMBER']._serialized_end=357 + _globals['_ORGANIZATIONGRANT']._serialized_start=360 + _globals['_ORGANIZATIONGRANT']._serialized_end=513 + _globals['_ORGANIZATIONPAYMENTINFO']._serialized_start=515 + _globals['_ORGANIZATIONPAYMENTINFO']._serialized_end=639 + _globals['_ORGANIZATIONAUTOCHARGE']._serialized_start=641 + _globals['_ORGANIZATIONAUTOCHARGE']._serialized_end=738 + _globals['_ORGANIZATION']._serialized_start=741 + _globals['_ORGANIZATION']._serialized_end=1195 + _globals['_APIKEY']._serialized_start=1197 + _globals['_APIKEY']._serialized_end=1283 + _globals['_USER']._serialized_start=1286 + _globals['_USER']._serialized_end=1660 + _globals['_COSTDATA']._serialized_start=1662 + _globals['_COSTDATA']._serialized_end=1748 + _globals['_USAGEMETRIC']._serialized_start=1751 + _globals['_USAGEMETRIC']._serialized_end=2049 + _globals['_COSTTOTAL']._serialized_start=2051 + _globals['_COSTTOTAL']._serialized_end=2138 + _globals['_TOTALMETRICSDATA']._serialized_start=2141 + _globals['_TOTALMETRICSDATA']._serialized_end=2309 + _globals['_METRICS']._serialized_start=2312 + _globals['_METRICS']._serialized_end=2460 + _globals['_EMPTYREQUEST']._serialized_start=2462 + _globals['_EMPTYREQUEST']._serialized_end=2476 + _globals['_GETORGANIZATIONREQUEST']._serialized_start=2478 + _globals['_GETORGANIZATIONREQUEST']._serialized_end=2518 + _globals['_GETMETRICSREQUEST']._serialized_start=2521 + _globals['_GETMETRICSREQUEST']._serialized_end=2744 + _globals['_APIKEYREQUEST']._serialized_start=2746 + _globals['_APIKEYREQUEST']._serialized_end=2790 + _globals['_APIKEYFINDREQUEST']._serialized_start=2792 + _globals['_APIKEYFINDREQUEST']._serialized_end=2827 + _globals['_UPDATEDEFAULTORGANIZATIONREQUEST']._serialized_start=2829 + _globals['_UPDATEDEFAULTORGANIZATIONREQUEST']._serialized_end=2904 + _globals['_CLIENTSETTINGS']._serialized_start=2906 + _globals['_CLIENTSETTINGS']._serialized_end=2950 + _globals['_CREATEAUTOCHARGEINTENTREQUEST']._serialized_start=2953 + _globals['_CREATEAUTOCHARGEINTENTREQUEST']._serialized_end=3142 + _globals['_CREATECHARGEREQUEST']._serialized_start=3144 + _globals['_CREATECHARGEREQUEST']._serialized_end=3230 + _globals['_GETCHARGESREQUEST']._serialized_start=3232 + _globals['_GETCHARGESREQUEST']._serialized_end=3350 + _globals['_CHARGE']._serialized_start=3353 + _globals['_CHARGE']._serialized_end=3537 + _globals['_CHARGES']._serialized_start=3539 + _globals['_CHARGES']._serialized_end=3612 + _globals['_GETAUTOCHARGEREQUEST']._serialized_start=3614 + _globals['_GETAUTOCHARGEREQUEST']._serialized_end=3677 + _globals['_AUTOCHARGEINTENT']._serialized_start=3680 + _globals['_AUTOCHARGEINTENT']._serialized_end=3897 + _globals['_UPDATEUSERINFOREQUEST']._serialized_start=3899 + _globals['_UPDATEUSERINFOREQUEST']._serialized_end=3959 + _globals['_USERPASSWORDCHANGETICKET']._serialized_start=3961 + _globals['_USERPASSWORDCHANGETICKET']._serialized_end=4011 + _globals['_DASHBOARDSERVICE']._serialized_start=4073 + _globals['_DASHBOARDSERVICE']._serialized_end=5891 +# @@protoc_insertion_point(module_scope) diff --git a/gen/proto/py/stabilityai/platformapis/dashboard/v1/dashboard_pb2.pyi b/gen/proto/py/stabilityai/platformapis/dashboard/v1/dashboard_pb2.pyi new file mode 100644 index 0000000..2b786ca --- /dev/null +++ b/gen/proto/py/stabilityai/platformapis/dashboard/v1/dashboard_pb2.pyi @@ -0,0 +1,288 @@ +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class OrganizationRole(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + MEMBER: _ClassVar[OrganizationRole] + ACCOUNTANT: _ClassVar[OrganizationRole] + OWNER: _ClassVar[OrganizationRole] +MEMBER: OrganizationRole +ACCOUNTANT: OrganizationRole +OWNER: OrganizationRole + +class OrganizationMember(_message.Message): + __slots__ = ["organization", "user", "role", "is_default"] + ORGANIZATION_FIELD_NUMBER: _ClassVar[int] + USER_FIELD_NUMBER: _ClassVar[int] + ROLE_FIELD_NUMBER: _ClassVar[int] + IS_DEFAULT_FIELD_NUMBER: _ClassVar[int] + organization: Organization + user: User + role: OrganizationRole + is_default: bool + def __init__(self, organization: _Optional[_Union[Organization, _Mapping]] = ..., user: _Optional[_Union[User, _Mapping]] = ..., role: _Optional[_Union[OrganizationRole, str]] = ..., is_default: bool = ...) -> None: ... + +class OrganizationGrant(_message.Message): + __slots__ = ["amount_granted", "amount_used", "expires_at", "granted_at"] + AMOUNT_GRANTED_FIELD_NUMBER: _ClassVar[int] + AMOUNT_USED_FIELD_NUMBER: _ClassVar[int] + EXPIRES_AT_FIELD_NUMBER: _ClassVar[int] + GRANTED_AT_FIELD_NUMBER: _ClassVar[int] + amount_granted: float + amount_used: float + expires_at: int + granted_at: int + def __init__(self, amount_granted: _Optional[float] = ..., amount_used: _Optional[float] = ..., expires_at: _Optional[int] = ..., granted_at: _Optional[int] = ...) -> None: ... + +class OrganizationPaymentInfo(_message.Message): + __slots__ = ["balance", "grants"] + BALANCE_FIELD_NUMBER: _ClassVar[int] + GRANTS_FIELD_NUMBER: _ClassVar[int] + balance: float + grants: _containers.RepeatedCompositeFieldContainer[OrganizationGrant] + def __init__(self, balance: _Optional[float] = ..., grants: _Optional[_Iterable[_Union[OrganizationGrant, _Mapping]]] = ...) -> None: ... + +class OrganizationAutoCharge(_message.Message): + __slots__ = ["enabled", "id", "created_at"] + ENABLED_FIELD_NUMBER: _ClassVar[int] + ID_FIELD_NUMBER: _ClassVar[int] + CREATED_AT_FIELD_NUMBER: _ClassVar[int] + enabled: bool + id: str + created_at: int + def __init__(self, enabled: bool = ..., id: _Optional[str] = ..., created_at: _Optional[int] = ...) -> None: ... + +class Organization(_message.Message): + __slots__ = ["id", "name", "description", "members", "payment_info", "stripe_customer_id", "auto_charge"] + ID_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + MEMBERS_FIELD_NUMBER: _ClassVar[int] + PAYMENT_INFO_FIELD_NUMBER: _ClassVar[int] + STRIPE_CUSTOMER_ID_FIELD_NUMBER: _ClassVar[int] + AUTO_CHARGE_FIELD_NUMBER: _ClassVar[int] + id: str + name: str + description: str + members: _containers.RepeatedCompositeFieldContainer[OrganizationMember] + payment_info: OrganizationPaymentInfo + stripe_customer_id: str + auto_charge: OrganizationAutoCharge + def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., members: _Optional[_Iterable[_Union[OrganizationMember, _Mapping]]] = ..., payment_info: _Optional[_Union[OrganizationPaymentInfo, _Mapping]] = ..., stripe_customer_id: _Optional[str] = ..., auto_charge: _Optional[_Union[OrganizationAutoCharge, _Mapping]] = ...) -> None: ... + +class APIKey(_message.Message): + __slots__ = ["key", "is_secret", "created_at"] + KEY_FIELD_NUMBER: _ClassVar[int] + IS_SECRET_FIELD_NUMBER: _ClassVar[int] + CREATED_AT_FIELD_NUMBER: _ClassVar[int] + key: str + is_secret: bool + created_at: int + def __init__(self, key: _Optional[str] = ..., is_secret: bool = ..., created_at: _Optional[int] = ...) -> None: ... + +class User(_message.Message): + __slots__ = ["id", "auth_id", "profile_picture", "email", "organizations", "api_keys", "created_at", "email_verified"] + ID_FIELD_NUMBER: _ClassVar[int] + AUTH_ID_FIELD_NUMBER: _ClassVar[int] + PROFILE_PICTURE_FIELD_NUMBER: _ClassVar[int] + EMAIL_FIELD_NUMBER: _ClassVar[int] + ORGANIZATIONS_FIELD_NUMBER: _ClassVar[int] + API_KEYS_FIELD_NUMBER: _ClassVar[int] + CREATED_AT_FIELD_NUMBER: _ClassVar[int] + EMAIL_VERIFIED_FIELD_NUMBER: _ClassVar[int] + id: str + auth_id: str + profile_picture: str + email: str + organizations: _containers.RepeatedCompositeFieldContainer[OrganizationMember] + api_keys: _containers.RepeatedCompositeFieldContainer[APIKey] + created_at: int + email_verified: bool + def __init__(self, id: _Optional[str] = ..., auth_id: _Optional[str] = ..., profile_picture: _Optional[str] = ..., email: _Optional[str] = ..., organizations: _Optional[_Iterable[_Union[OrganizationMember, _Mapping]]] = ..., api_keys: _Optional[_Iterable[_Union[APIKey, _Mapping]]] = ..., created_at: _Optional[int] = ..., email_verified: bool = ...) -> None: ... + +class CostData(_message.Message): + __slots__ = ["amount_tokens", "amount_credits"] + AMOUNT_TOKENS_FIELD_NUMBER: _ClassVar[int] + AMOUNT_CREDITS_FIELD_NUMBER: _ClassVar[int] + amount_tokens: int + amount_credits: float + def __init__(self, amount_tokens: _Optional[int] = ..., amount_credits: _Optional[float] = ...) -> None: ... + +class UsageMetric(_message.Message): + __slots__ = ["operation", "engine", "input_cost", "output_cost", "user", "aggregation_timestamp"] + OPERATION_FIELD_NUMBER: _ClassVar[int] + ENGINE_FIELD_NUMBER: _ClassVar[int] + INPUT_COST_FIELD_NUMBER: _ClassVar[int] + OUTPUT_COST_FIELD_NUMBER: _ClassVar[int] + USER_FIELD_NUMBER: _ClassVar[int] + AGGREGATION_TIMESTAMP_FIELD_NUMBER: _ClassVar[int] + operation: str + engine: str + input_cost: CostData + output_cost: CostData + user: str + aggregation_timestamp: int + def __init__(self, operation: _Optional[str] = ..., engine: _Optional[str] = ..., input_cost: _Optional[_Union[CostData, _Mapping]] = ..., output_cost: _Optional[_Union[CostData, _Mapping]] = ..., user: _Optional[str] = ..., aggregation_timestamp: _Optional[int] = ...) -> None: ... + +class CostTotal(_message.Message): + __slots__ = ["amount_tokens", "amount_credits"] + AMOUNT_TOKENS_FIELD_NUMBER: _ClassVar[int] + AMOUNT_CREDITS_FIELD_NUMBER: _ClassVar[int] + amount_tokens: int + amount_credits: float + def __init__(self, amount_tokens: _Optional[int] = ..., amount_credits: _Optional[float] = ...) -> None: ... + +class TotalMetricsData(_message.Message): + __slots__ = ["input_total", "output_total"] + INPUT_TOTAL_FIELD_NUMBER: _ClassVar[int] + OUTPUT_TOTAL_FIELD_NUMBER: _ClassVar[int] + input_total: CostTotal + output_total: CostTotal + def __init__(self, input_total: _Optional[_Union[CostTotal, _Mapping]] = ..., output_total: _Optional[_Union[CostTotal, _Mapping]] = ...) -> None: ... + +class Metrics(_message.Message): + __slots__ = ["metrics", "total"] + METRICS_FIELD_NUMBER: _ClassVar[int] + TOTAL_FIELD_NUMBER: _ClassVar[int] + metrics: _containers.RepeatedCompositeFieldContainer[UsageMetric] + total: TotalMetricsData + def __init__(self, metrics: _Optional[_Iterable[_Union[UsageMetric, _Mapping]]] = ..., total: _Optional[_Union[TotalMetricsData, _Mapping]] = ...) -> None: ... + +class EmptyRequest(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class GetOrganizationRequest(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: str + def __init__(self, id: _Optional[str] = ...) -> None: ... + +class GetMetricsRequest(_message.Message): + __slots__ = ["organization_id", "user_id", "range_from", "range_to", "include_per_request_metrics"] + ORGANIZATION_ID_FIELD_NUMBER: _ClassVar[int] + USER_ID_FIELD_NUMBER: _ClassVar[int] + RANGE_FROM_FIELD_NUMBER: _ClassVar[int] + RANGE_TO_FIELD_NUMBER: _ClassVar[int] + INCLUDE_PER_REQUEST_METRICS_FIELD_NUMBER: _ClassVar[int] + organization_id: str + user_id: str + range_from: int + range_to: int + include_per_request_metrics: bool + def __init__(self, organization_id: _Optional[str] = ..., user_id: _Optional[str] = ..., range_from: _Optional[int] = ..., range_to: _Optional[int] = ..., include_per_request_metrics: bool = ...) -> None: ... + +class APIKeyRequest(_message.Message): + __slots__ = ["is_secret"] + IS_SECRET_FIELD_NUMBER: _ClassVar[int] + is_secret: bool + def __init__(self, is_secret: bool = ...) -> None: ... + +class APIKeyFindRequest(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: str + def __init__(self, id: _Optional[str] = ...) -> None: ... + +class UpdateDefaultOrganizationRequest(_message.Message): + __slots__ = ["organization_id"] + ORGANIZATION_ID_FIELD_NUMBER: _ClassVar[int] + organization_id: str + def __init__(self, organization_id: _Optional[str] = ...) -> None: ... + +class ClientSettings(_message.Message): + __slots__ = ["settings"] + SETTINGS_FIELD_NUMBER: _ClassVar[int] + settings: bytes + def __init__(self, settings: _Optional[bytes] = ...) -> None: ... + +class CreateAutoChargeIntentRequest(_message.Message): + __slots__ = ["organization_id", "monthly_maximum", "minimum_value", "amount_credits"] + ORGANIZATION_ID_FIELD_NUMBER: _ClassVar[int] + MONTHLY_MAXIMUM_FIELD_NUMBER: _ClassVar[int] + MINIMUM_VALUE_FIELD_NUMBER: _ClassVar[int] + AMOUNT_CREDITS_FIELD_NUMBER: _ClassVar[int] + organization_id: str + monthly_maximum: int + minimum_value: int + amount_credits: int + def __init__(self, organization_id: _Optional[str] = ..., monthly_maximum: _Optional[int] = ..., minimum_value: _Optional[int] = ..., amount_credits: _Optional[int] = ...) -> None: ... + +class CreateChargeRequest(_message.Message): + __slots__ = ["amount", "organization_id"] + AMOUNT_FIELD_NUMBER: _ClassVar[int] + ORGANIZATION_ID_FIELD_NUMBER: _ClassVar[int] + amount: int + organization_id: str + def __init__(self, amount: _Optional[int] = ..., organization_id: _Optional[str] = ...) -> None: ... + +class GetChargesRequest(_message.Message): + __slots__ = ["organization_id", "range_from", "range_to"] + ORGANIZATION_ID_FIELD_NUMBER: _ClassVar[int] + RANGE_FROM_FIELD_NUMBER: _ClassVar[int] + RANGE_TO_FIELD_NUMBER: _ClassVar[int] + organization_id: str + range_from: int + range_to: int + def __init__(self, organization_id: _Optional[str] = ..., range_from: _Optional[int] = ..., range_to: _Optional[int] = ...) -> None: ... + +class Charge(_message.Message): + __slots__ = ["id", "paid", "receipt_link", "payment_link", "created_at", "amount_credits"] + ID_FIELD_NUMBER: _ClassVar[int] + PAID_FIELD_NUMBER: _ClassVar[int] + RECEIPT_LINK_FIELD_NUMBER: _ClassVar[int] + PAYMENT_LINK_FIELD_NUMBER: _ClassVar[int] + CREATED_AT_FIELD_NUMBER: _ClassVar[int] + AMOUNT_CREDITS_FIELD_NUMBER: _ClassVar[int] + id: str + paid: bool + receipt_link: str + payment_link: str + created_at: int + amount_credits: int + def __init__(self, id: _Optional[str] = ..., paid: bool = ..., receipt_link: _Optional[str] = ..., payment_link: _Optional[str] = ..., created_at: _Optional[int] = ..., amount_credits: _Optional[int] = ...) -> None: ... + +class Charges(_message.Message): + __slots__ = ["charges"] + CHARGES_FIELD_NUMBER: _ClassVar[int] + charges: _containers.RepeatedCompositeFieldContainer[Charge] + def __init__(self, charges: _Optional[_Iterable[_Union[Charge, _Mapping]]] = ...) -> None: ... + +class GetAutoChargeRequest(_message.Message): + __slots__ = ["organization_id"] + ORGANIZATION_ID_FIELD_NUMBER: _ClassVar[int] + organization_id: str + def __init__(self, organization_id: _Optional[str] = ...) -> None: ... + +class AutoChargeIntent(_message.Message): + __slots__ = ["id", "payment_link", "created_at", "monthly_maximum", "minimum_value", "amount_credits"] + ID_FIELD_NUMBER: _ClassVar[int] + PAYMENT_LINK_FIELD_NUMBER: _ClassVar[int] + CREATED_AT_FIELD_NUMBER: _ClassVar[int] + MONTHLY_MAXIMUM_FIELD_NUMBER: _ClassVar[int] + MINIMUM_VALUE_FIELD_NUMBER: _ClassVar[int] + AMOUNT_CREDITS_FIELD_NUMBER: _ClassVar[int] + id: str + payment_link: str + created_at: int + monthly_maximum: int + minimum_value: int + amount_credits: int + def __init__(self, id: _Optional[str] = ..., payment_link: _Optional[str] = ..., created_at: _Optional[int] = ..., monthly_maximum: _Optional[int] = ..., minimum_value: _Optional[int] = ..., amount_credits: _Optional[int] = ...) -> None: ... + +class UpdateUserInfoRequest(_message.Message): + __slots__ = ["email"] + EMAIL_FIELD_NUMBER: _ClassVar[int] + email: str + def __init__(self, email: _Optional[str] = ...) -> None: ... + +class UserPasswordChangeTicket(_message.Message): + __slots__ = ["ticket"] + TICKET_FIELD_NUMBER: _ClassVar[int] + ticket: str + def __init__(self, ticket: _Optional[str] = ...) -> None: ... diff --git a/gen/proto/py/stabilityai/platformapis/dashboard/v1/dashboard_pb2_grpc.py b/gen/proto/py/stabilityai/platformapis/dashboard/v1/dashboard_pb2_grpc.py new file mode 100644 index 0000000..8bf5f7d --- /dev/null +++ b/gen/proto/py/stabilityai/platformapis/dashboard/v1/dashboard_pb2_grpc.py @@ -0,0 +1,565 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from stabilityai.platformapis.dashboard.v1 import dashboard_pb2 as stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2 + + +class DashboardServiceStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetMe = channel.unary_unary( + '/stabilityai.api.dashboard.v1.DashboardService/GetMe', + request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString, + ) + self.GetOrganization = channel.unary_unary( + '/stabilityai.api.dashboard.v1.DashboardService/GetOrganization', + request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.GetOrganizationRequest.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.Organization.FromString, + ) + self.GetMetrics = channel.unary_unary( + '/stabilityai.api.dashboard.v1.DashboardService/GetMetrics', + request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.GetMetricsRequest.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.Metrics.FromString, + ) + self.CreateAPIKey = channel.unary_unary( + '/stabilityai.api.dashboard.v1.DashboardService/CreateAPIKey', + request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKeyRequest.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKey.FromString, + ) + self.DeleteAPIKey = channel.unary_unary( + '/stabilityai.api.dashboard.v1.DashboardService/DeleteAPIKey', + request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKeyFindRequest.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKey.FromString, + ) + self.UpdateDefaultOrganization = channel.unary_unary( + '/stabilityai.api.dashboard.v1.DashboardService/UpdateDefaultOrganization', + request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.UpdateDefaultOrganizationRequest.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString, + ) + self.GetClientSettings = channel.unary_unary( + '/stabilityai.api.dashboard.v1.DashboardService/GetClientSettings', + request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.FromString, + ) + self.SetClientSettings = channel.unary_unary( + '/stabilityai.api.dashboard.v1.DashboardService/SetClientSettings', + request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.FromString, + ) + self.UpdateUserInfo = channel.unary_unary( + '/stabilityai.api.dashboard.v1.DashboardService/UpdateUserInfo', + request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.UpdateUserInfoRequest.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString, + ) + self.CreatePasswordChangeTicket = channel.unary_unary( + '/stabilityai.api.dashboard.v1.DashboardService/CreatePasswordChangeTicket', + request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.UserPasswordChangeTicket.FromString, + ) + self.DeleteAccount = channel.unary_unary( + '/stabilityai.api.dashboard.v1.DashboardService/DeleteAccount', + request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString, + ) + self.CreateCharge = channel.unary_unary( + '/stabilityai.api.dashboard.v1.DashboardService/CreateCharge', + request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateChargeRequest.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.Charge.FromString, + ) + self.GetCharges = channel.unary_unary( + '/stabilityai.api.dashboard.v1.DashboardService/GetCharges', + request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.GetChargesRequest.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.Charges.FromString, + ) + self.CreateAutoChargeIntent = channel.unary_unary( + '/stabilityai.api.dashboard.v1.DashboardService/CreateAutoChargeIntent', + request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateAutoChargeIntentRequest.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.FromString, + ) + self.UpdateAutoChargeIntent = channel.unary_unary( + '/stabilityai.api.dashboard.v1.DashboardService/UpdateAutoChargeIntent', + request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateAutoChargeIntentRequest.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.FromString, + ) + self.GetAutoChargeIntent = channel.unary_unary( + '/stabilityai.api.dashboard.v1.DashboardService/GetAutoChargeIntent', + request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.GetAutoChargeRequest.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.FromString, + ) + + +class DashboardServiceServicer(object): + """Missing associated documentation comment in .proto file.""" + + def GetMe(self, request, context): + """Get info + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetOrganization(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetMetrics(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateAPIKey(self, request, context): + """API key management + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteAPIKey(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateDefaultOrganization(self, request, context): + """User settings + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetClientSettings(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetClientSettings(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateUserInfo(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreatePasswordChangeTicket(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteAccount(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateCharge(self, request, context): + """Payment functions + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetCharges(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateAutoChargeIntent(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateAutoChargeIntent(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAutoChargeIntent(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_DashboardServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetMe': grpc.unary_unary_rpc_method_handler( + servicer.GetMe, + request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.FromString, + response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.User.SerializeToString, + ), + 'GetOrganization': grpc.unary_unary_rpc_method_handler( + servicer.GetOrganization, + request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.GetOrganizationRequest.FromString, + response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.Organization.SerializeToString, + ), + 'GetMetrics': grpc.unary_unary_rpc_method_handler( + servicer.GetMetrics, + request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.GetMetricsRequest.FromString, + response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.Metrics.SerializeToString, + ), + 'CreateAPIKey': grpc.unary_unary_rpc_method_handler( + servicer.CreateAPIKey, + request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKeyRequest.FromString, + response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKey.SerializeToString, + ), + 'DeleteAPIKey': grpc.unary_unary_rpc_method_handler( + servicer.DeleteAPIKey, + request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKeyFindRequest.FromString, + response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKey.SerializeToString, + ), + 'UpdateDefaultOrganization': grpc.unary_unary_rpc_method_handler( + servicer.UpdateDefaultOrganization, + request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.UpdateDefaultOrganizationRequest.FromString, + response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.User.SerializeToString, + ), + 'GetClientSettings': grpc.unary_unary_rpc_method_handler( + servicer.GetClientSettings, + request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.FromString, + response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.SerializeToString, + ), + 'SetClientSettings': grpc.unary_unary_rpc_method_handler( + servicer.SetClientSettings, + request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.FromString, + response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.SerializeToString, + ), + 'UpdateUserInfo': grpc.unary_unary_rpc_method_handler( + servicer.UpdateUserInfo, + request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.UpdateUserInfoRequest.FromString, + response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.User.SerializeToString, + ), + 'CreatePasswordChangeTicket': grpc.unary_unary_rpc_method_handler( + servicer.CreatePasswordChangeTicket, + request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.FromString, + response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.UserPasswordChangeTicket.SerializeToString, + ), + 'DeleteAccount': grpc.unary_unary_rpc_method_handler( + servicer.DeleteAccount, + request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.FromString, + response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.User.SerializeToString, + ), + 'CreateCharge': grpc.unary_unary_rpc_method_handler( + servicer.CreateCharge, + request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateChargeRequest.FromString, + response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.Charge.SerializeToString, + ), + 'GetCharges': grpc.unary_unary_rpc_method_handler( + servicer.GetCharges, + request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.GetChargesRequest.FromString, + response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.Charges.SerializeToString, + ), + 'CreateAutoChargeIntent': grpc.unary_unary_rpc_method_handler( + servicer.CreateAutoChargeIntent, + request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateAutoChargeIntentRequest.FromString, + response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.SerializeToString, + ), + 'UpdateAutoChargeIntent': grpc.unary_unary_rpc_method_handler( + servicer.UpdateAutoChargeIntent, + request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateAutoChargeIntentRequest.FromString, + response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.SerializeToString, + ), + 'GetAutoChargeIntent': grpc.unary_unary_rpc_method_handler( + servicer.GetAutoChargeIntent, + request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.GetAutoChargeRequest.FromString, + response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'stabilityai.api.dashboard.v1.DashboardService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class DashboardService(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def GetMe(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/GetMe', + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString, + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetOrganization(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/GetOrganization', + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.GetOrganizationRequest.SerializeToString, + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.Organization.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetMetrics(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/GetMetrics', + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.GetMetricsRequest.SerializeToString, + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.Metrics.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateAPIKey(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/CreateAPIKey', + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKeyRequest.SerializeToString, + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKey.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteAPIKey(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/DeleteAPIKey', + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKeyFindRequest.SerializeToString, + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKey.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateDefaultOrganization(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/UpdateDefaultOrganization', + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.UpdateDefaultOrganizationRequest.SerializeToString, + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetClientSettings(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/GetClientSettings', + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString, + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetClientSettings(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/SetClientSettings', + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.SerializeToString, + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateUserInfo(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/UpdateUserInfo', + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.UpdateUserInfoRequest.SerializeToString, + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreatePasswordChangeTicket(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/CreatePasswordChangeTicket', + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString, + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.UserPasswordChangeTicket.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteAccount(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/DeleteAccount', + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString, + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateCharge(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/CreateCharge', + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateChargeRequest.SerializeToString, + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.Charge.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetCharges(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/GetCharges', + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.GetChargesRequest.SerializeToString, + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.Charges.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateAutoChargeIntent(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/CreateAutoChargeIntent', + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateAutoChargeIntentRequest.SerializeToString, + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateAutoChargeIntent(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/UpdateAutoChargeIntent', + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateAutoChargeIntentRequest.SerializeToString, + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAutoChargeIntent(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/GetAutoChargeIntent', + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.GetAutoChargeRequest.SerializeToString, + stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/gen/proto/py/stabilityai/platformapis/engines/v1/engines_pb2.py b/gen/proto/py/stabilityai/platformapis/engines/v1/engines_pb2.py new file mode 100644 index 0000000..376f63d --- /dev/null +++ b/gen/proto/py/stabilityai/platformapis/engines/v1/engines_pb2.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: stabilityai/platformapis/engines/v1/engines.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n1stabilityai/platformapis/engines/v1/engines.proto\x12#stabilityai.platformapis.engines.v1\"\x97\x02\n\nEngineInfo\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05owner\x18\x02 \x01(\tR\x05owner\x12\x14\n\x05ready\x18\x03 \x01(\x08R\x05ready\x12\x43\n\x04type\x18\x04 \x01(\x0e\x32/.stabilityai.platformapis.engines.v1.EngineTypeR\x04type\x12R\n\ttokenizer\x18\x05 \x01(\x0e\x32\x34.stabilityai.platformapis.engines.v1.EngineTokenizerR\ttokenizer\x12\x12\n\x04name\x18\x06 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x07 \x01(\tR\x0b\x64\x65scription\"\x14\n\x12ListEnginesRequest\"R\n\x07\x45ngines\x12G\n\x06\x65ngine\x18\x01 \x03(\x0b\x32/.stabilityai.platformapis.engines.v1.EngineInfoR\x06\x65ngine*Z\n\nEngineType\x12\x08\n\x04TEXT\x10\x00\x12\x0b\n\x07PICTURE\x10\x01\x12\t\n\x05\x41UDIO\x10\x02\x12\t\n\x05VIDEO\x10\x03\x12\x12\n\x0e\x43LASSIFICATION\x10\x04\x12\x0b\n\x07STORAGE\x10\x05*%\n\x0f\x45ngineTokenizer\x12\x08\n\x04GPT2\x10\x00\x12\x08\n\x04PILE\x10\x01\x32\x88\x01\n\x0e\x45nginesService\x12v\n\x0bListEngines\x12\x37.stabilityai.platformapis.engines.v1.ListEnginesRequest\x1a,.stabilityai.platformapis.engines.v1.Engines\"\x00\x42\xc9\x02\n\'com.stabilityai.platformapis.engines.v1B\x0c\x45nginesProtoP\x01Zagithub.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/engines/v1;enginesv1\xa2\x02\x03SPE\xaa\x02#Stabilityai.Platformapis.Engines.V1\xca\x02#Stabilityai\\Platformapis\\Engines\\V1\xe2\x02/Stabilityai\\Platformapis\\Engines\\V1\\GPBMetadata\xea\x02&Stabilityai::Platformapis::Engines::V1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'stabilityai.platformapis.engines.v1.engines_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\'com.stabilityai.platformapis.engines.v1B\014EnginesProtoP\001Zagithub.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/engines/v1;enginesv1\242\002\003SPE\252\002#Stabilityai.Platformapis.Engines.V1\312\002#Stabilityai\\Platformapis\\Engines\\V1\342\002/Stabilityai\\Platformapis\\Engines\\V1\\GPBMetadata\352\002&Stabilityai::Platformapis::Engines::V1' + _globals['_ENGINETYPE']._serialized_start=478 + _globals['_ENGINETYPE']._serialized_end=568 + _globals['_ENGINETOKENIZER']._serialized_start=570 + _globals['_ENGINETOKENIZER']._serialized_end=607 + _globals['_ENGINEINFO']._serialized_start=91 + _globals['_ENGINEINFO']._serialized_end=370 + _globals['_LISTENGINESREQUEST']._serialized_start=372 + _globals['_LISTENGINESREQUEST']._serialized_end=392 + _globals['_ENGINES']._serialized_start=394 + _globals['_ENGINES']._serialized_end=476 + _globals['_ENGINESSERVICE']._serialized_start=610 + _globals['_ENGINESSERVICE']._serialized_end=746 +# @@protoc_insertion_point(module_scope) diff --git a/gen/proto/py/stabilityai/platformapis/engines/v1/engines_pb2.pyi b/gen/proto/py/stabilityai/platformapis/engines/v1/engines_pb2.pyi new file mode 100644 index 0000000..d9f5cc0 --- /dev/null +++ b/gen/proto/py/stabilityai/platformapis/engines/v1/engines_pb2.pyi @@ -0,0 +1,57 @@ +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class EngineType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + TEXT: _ClassVar[EngineType] + PICTURE: _ClassVar[EngineType] + AUDIO: _ClassVar[EngineType] + VIDEO: _ClassVar[EngineType] + CLASSIFICATION: _ClassVar[EngineType] + STORAGE: _ClassVar[EngineType] + +class EngineTokenizer(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + GPT2: _ClassVar[EngineTokenizer] + PILE: _ClassVar[EngineTokenizer] +TEXT: EngineType +PICTURE: EngineType +AUDIO: EngineType +VIDEO: EngineType +CLASSIFICATION: EngineType +STORAGE: EngineType +GPT2: EngineTokenizer +PILE: EngineTokenizer + +class EngineInfo(_message.Message): + __slots__ = ["id", "owner", "ready", "type", "tokenizer", "name", "description"] + ID_FIELD_NUMBER: _ClassVar[int] + OWNER_FIELD_NUMBER: _ClassVar[int] + READY_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + TOKENIZER_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + id: str + owner: str + ready: bool + type: EngineType + tokenizer: EngineTokenizer + name: str + description: str + def __init__(self, id: _Optional[str] = ..., owner: _Optional[str] = ..., ready: bool = ..., type: _Optional[_Union[EngineType, str]] = ..., tokenizer: _Optional[_Union[EngineTokenizer, str]] = ..., name: _Optional[str] = ..., description: _Optional[str] = ...) -> None: ... + +class ListEnginesRequest(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class Engines(_message.Message): + __slots__ = ["engine"] + ENGINE_FIELD_NUMBER: _ClassVar[int] + engine: _containers.RepeatedCompositeFieldContainer[EngineInfo] + def __init__(self, engine: _Optional[_Iterable[_Union[EngineInfo, _Mapping]]] = ...) -> None: ... diff --git a/gen/proto/py/stabilityai/platformapis/engines/v1/engines_pb2_grpc.py b/gen/proto/py/stabilityai/platformapis/engines/v1/engines_pb2_grpc.py new file mode 100644 index 0000000..a3ca2aa --- /dev/null +++ b/gen/proto/py/stabilityai/platformapis/engines/v1/engines_pb2_grpc.py @@ -0,0 +1,66 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from stabilityai.platformapis.engines.v1 import engines_pb2 as stabilityai_dot_platformapis_dot_engines_dot_v1_dot_engines__pb2 + + +class EnginesServiceStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.ListEngines = channel.unary_unary( + '/stabilityai.platformapis.engines.v1.EnginesService/ListEngines', + request_serializer=stabilityai_dot_platformapis_dot_engines_dot_v1_dot_engines__pb2.ListEnginesRequest.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_engines_dot_v1_dot_engines__pb2.Engines.FromString, + ) + + +class EnginesServiceServicer(object): + """Missing associated documentation comment in .proto file.""" + + def ListEngines(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_EnginesServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'ListEngines': grpc.unary_unary_rpc_method_handler( + servicer.ListEngines, + request_deserializer=stabilityai_dot_platformapis_dot_engines_dot_v1_dot_engines__pb2.ListEnginesRequest.FromString, + response_serializer=stabilityai_dot_platformapis_dot_engines_dot_v1_dot_engines__pb2.Engines.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'stabilityai.platformapis.engines.v1.EnginesService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class EnginesService(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def ListEngines(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/stabilityai.platformapis.engines.v1.EnginesService/ListEngines', + stabilityai_dot_platformapis_dot_engines_dot_v1_dot_engines__pb2.ListEnginesRequest.SerializeToString, + stabilityai_dot_platformapis_dot_engines_dot_v1_dot_engines__pb2.Engines.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2.py b/gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2.py new file mode 100644 index 0000000..5333e7d --- /dev/null +++ b/gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2.py @@ -0,0 +1,137 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: stabilityai/platformapis/generation/v1/generation.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 +from coreweave.tensors import tensors_pb2 as coreweave_dot_tensors_dot_tensors__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n7stabilityai/platformapis/generation/v1/generation.proto\x12&stabilityai.platformapis.generation.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1f\x63oreweave/tensors/tensors.proto\"9\n\x05Token\x12\x17\n\x04text\x18\x01 \x01(\tH\x00R\x04text\x88\x01\x01\x12\x0e\n\x02id\x18\x02 \x01(\rR\x02idB\x07\n\x05_text\"\x88\x01\n\x06Tokens\x12\x45\n\x06tokens\x18\x01 \x03(\x0b\x32-.stabilityai.platformapis.generation.v1.TokenR\x06tokens\x12&\n\x0ctokenizer_id\x18\x02 \x01(\tH\x00R\x0btokenizerId\x88\x01\x01\x42\x0f\n\r_tokenizer_id\"\xd7\x04\n\x08\x41rtifact\x12\x0e\n\x02id\x18\x01 \x01(\x04R\x02id\x12H\n\x04type\x18\x02 \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.ArtifactTypeR\x04type\x12\x12\n\x04mime\x18\x03 \x01(\tR\x04mime\x12\x19\n\x05magic\x18\x04 \x01(\tH\x01R\x05magic\x88\x01\x01\x12\x18\n\x06\x62inary\x18\x05 \x01(\x0cH\x00R\x06\x62inary\x12\x14\n\x04text\x18\x06 \x01(\tH\x00R\x04text\x12H\n\x06tokens\x18\x07 \x01(\x0b\x32..stabilityai.platformapis.generation.v1.TokensH\x00R\x06tokens\x12^\n\nclassifier\x18\x0b \x01(\x0b\x32<.stabilityai.platformapis.generation.v1.ClassifierParametersH\x00R\nclassifier\x12)\n\x06tensor\x18\x0e \x01(\x0b\x32\x0f.tensors.TensorH\x00R\x06tensor\x12\x14\n\x05index\x18\x08 \x01(\rR\x05index\x12Y\n\rfinish_reason\x18\t \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.FinishReasonR\x0c\x66inishReason\x12\x12\n\x04seed\x18\n \x01(\rR\x04seed\x12\x12\n\x04uuid\x18\x0c \x01(\tR\x04uuid\x12\x12\n\x04size\x18\r \x01(\x04R\x04sizeB\x06\n\x04\x64\x61taB\x08\n\x06_magic\"\\\n\x10PromptParameters\x12\x17\n\x04init\x18\x01 \x01(\x08H\x00R\x04init\x88\x01\x01\x12\x1b\n\x06weight\x18\x02 \x01(\x02H\x01R\x06weight\x88\x01\x01\x42\x07\n\x05_initB\t\n\x07_weight\"\xb0\x02\n\x06Prompt\x12]\n\nparameters\x18\x01 \x01(\x0b\x32\x38.stabilityai.platformapis.generation.v1.PromptParametersH\x01R\nparameters\x88\x01\x01\x12\x14\n\x04text\x18\x02 \x01(\tH\x00R\x04text\x12H\n\x06tokens\x18\x03 \x01(\x0b\x32..stabilityai.platformapis.generation.v1.TokensH\x00R\x06tokens\x12N\n\x08\x61rtifact\x18\x04 \x01(\x0b\x32\x30.stabilityai.platformapis.generation.v1.ArtifactH\x00R\x08\x61rtifactB\x08\n\x06promptB\r\n\x0b_parameters\"\xb9\x03\n\x11SamplerParameters\x12\x15\n\x03\x65ta\x18\x01 \x01(\x02H\x00R\x03\x65ta\x88\x01\x01\x12*\n\x0esampling_steps\x18\x02 \x01(\x04H\x01R\rsamplingSteps\x88\x01\x01\x12,\n\x0flatent_channels\x18\x03 \x01(\x04H\x02R\x0elatentChannels\x88\x01\x01\x12\x34\n\x13\x64ownsampling_factor\x18\x04 \x01(\x04H\x03R\x12\x64ownsamplingFactor\x88\x01\x01\x12 \n\tcfg_scale\x18\x05 \x01(\x02H\x04R\x08\x63\x66gScale\x88\x01\x01\x12-\n\x10init_noise_scale\x18\x06 \x01(\x02H\x05R\x0einitNoiseScale\x88\x01\x01\x12-\n\x10step_noise_scale\x18\x07 \x01(\x02H\x06R\x0estepNoiseScale\x88\x01\x01\x42\x06\n\x04_etaB\x11\n\x0f_sampling_stepsB\x12\n\x10_latent_channelsB\x16\n\x14_downsampling_factorB\x0c\n\n_cfg_scaleB\x13\n\x11_init_noise_scaleB\x13\n\x11_step_noise_scale\"\xca\x01\n\x15\x43onditionerParameters\x12\x33\n\x13vector_adjust_prior\x18\x01 \x01(\tH\x00R\x11vectorAdjustPrior\x88\x01\x01\x12T\n\x0b\x63onditioner\x18\x02 \x01(\x0b\x32-.stabilityai.platformapis.generation.v1.ModelH\x01R\x0b\x63onditioner\x88\x01\x01\x42\x16\n\x14_vector_adjust_priorB\x0e\n\x0c_conditioner\"}\n\x12ScheduleParameters\x12\x19\n\x05start\x18\x01 \x01(\x02H\x00R\x05start\x88\x01\x01\x12\x15\n\x03\x65nd\x18\x02 \x01(\x02H\x01R\x03\x65nd\x88\x01\x01\x12\x19\n\x05value\x18\x03 \x01(\x02H\x02R\x05value\x88\x01\x01\x42\x08\n\x06_startB\x06\n\x04_endB\x08\n\x06_value\"\xea\x02\n\rStepParameter\x12\x1f\n\x0bscaled_step\x18\x01 \x01(\x02R\nscaledStep\x12X\n\x07sampler\x18\x02 \x01(\x0b\x32\x39.stabilityai.platformapis.generation.v1.SamplerParametersH\x00R\x07sampler\x88\x01\x01\x12[\n\x08schedule\x18\x03 \x01(\x0b\x32:.stabilityai.platformapis.generation.v1.ScheduleParametersH\x01R\x08schedule\x88\x01\x01\x12[\n\x08guidance\x18\x04 \x01(\x0b\x32:.stabilityai.platformapis.generation.v1.GuidanceParametersH\x02R\x08guidance\x88\x01\x01\x42\n\n\x08_samplerB\x0b\n\t_scheduleB\x0b\n\t_guidance\"\xf9\x01\n\x05Model\x12]\n\x0c\x61rchitecture\x18\x01 \x01(\x0e\x32\x39.stabilityai.platformapis.generation.v1.ModelArchitectureR\x0c\x61rchitecture\x12\x1c\n\tpublisher\x18\x02 \x01(\tR\tpublisher\x12\x18\n\x07\x64\x61taset\x18\x03 \x01(\tR\x07\x64\x61taset\x12\x18\n\x07version\x18\x04 \x01(\x02R\x07version\x12)\n\x10semantic_version\x18\x05 \x01(\tR\x0fsemanticVersion\x12\x14\n\x05\x61lias\x18\x06 \x01(\tR\x05\x61lias\"\x82\x02\n\x10\x43utoutParameters\x12R\n\x07\x63utouts\x18\x01 \x03(\x0b\x32\x38.stabilityai.platformapis.generation.v1.CutoutParametersR\x07\x63utouts\x12\x19\n\x05\x63ount\x18\x02 \x01(\rH\x00R\x05\x63ount\x88\x01\x01\x12\x17\n\x04gray\x18\x03 \x01(\x02H\x01R\x04gray\x88\x01\x01\x12\x17\n\x04\x62lur\x18\x04 \x01(\x02H\x02R\x04\x62lur\x88\x01\x01\x12\"\n\nsize_power\x18\x05 \x01(\x02H\x03R\tsizePower\x88\x01\x01\x42\x08\n\x06_countB\x07\n\x05_grayB\x07\n\x05_blurB\r\n\x0b_size_power\"N\n\x1aGuidanceScheduleParameters\x12\x1a\n\x08\x64uration\x18\x01 \x01(\x02R\x08\x64uration\x12\x14\n\x05value\x18\x02 \x01(\x02R\x05value\"\xc8\x03\n\x1aGuidanceInstanceParameters\x12\x45\n\x06models\x18\x02 \x03(\x0b\x32-.stabilityai.platformapis.generation.v1.ModelR\x06models\x12\x30\n\x11guidance_strength\x18\x03 \x01(\x02H\x00R\x10guidanceStrength\x88\x01\x01\x12^\n\x08schedule\x18\x04 \x03(\x0b\x32\x42.stabilityai.platformapis.generation.v1.GuidanceScheduleParametersR\x08schedule\x12W\n\x07\x63utouts\x18\x05 \x01(\x0b\x32\x38.stabilityai.platformapis.generation.v1.CutoutParametersH\x01R\x07\x63utouts\x88\x01\x01\x12K\n\x06prompt\x18\x06 \x01(\x0b\x32..stabilityai.platformapis.generation.v1.PromptH\x02R\x06prompt\x88\x01\x01\x42\x14\n\x12_guidance_strengthB\n\n\x08_cutoutsB\t\n\x07_prompt\"\xd7\x01\n\x12GuidanceParameters\x12_\n\x0fguidance_preset\x18\x01 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.GuidancePresetR\x0eguidancePreset\x12`\n\tinstances\x18\x02 \x03(\x0b\x32\x42.stabilityai.platformapis.generation.v1.GuidanceInstanceParametersR\tinstances\"\xc1\x01\n\rTransformType\x12X\n\tdiffusion\x18\x01 \x01(\x0e\x32\x38.stabilityai.platformapis.generation.v1.DiffusionSamplerH\x00R\tdiffusion\x12N\n\x08upscaler\x18\x02 \x01(\x0e\x32\x30.stabilityai.platformapis.generation.v1.UpscalerH\x00R\x08upscalerB\x06\n\x04type\"\x9d\x05\n\x0fImageParameters\x12\x1b\n\x06height\x18\x01 \x01(\x04H\x00R\x06height\x88\x01\x01\x12\x19\n\x05width\x18\x02 \x01(\x04H\x01R\x05width\x88\x01\x01\x12\x12\n\x04seed\x18\x03 \x03(\rR\x04seed\x12\x1d\n\x07samples\x18\x04 \x01(\x04H\x02R\x07samples\x88\x01\x01\x12\x19\n\x05steps\x18\x05 \x01(\x04H\x03R\x05steps\x88\x01\x01\x12X\n\ttransform\x18\x06 \x01(\x0b\x32\x35.stabilityai.platformapis.generation.v1.TransformTypeH\x04R\ttransform\x88\x01\x01\x12U\n\nparameters\x18\x07 \x03(\x0b\x32\x35.stabilityai.platformapis.generation.v1.StepParameterR\nparameters\x12\x65\n\x10masked_area_init\x18\x08 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.MaskedAreaInitH\x05R\x0emaskedAreaInit\x88\x01\x01\x12^\n\rweight_method\x18\t \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.WeightMethodH\x06R\x0cweightMethod\x88\x01\x01\x12\x1f\n\x08quantize\x18\n \x01(\x08H\x07R\x08quantize\x88\x01\x01\x42\t\n\x07_heightB\x08\n\x06_widthB\n\n\x08_samplesB\x08\n\x06_stepsB\x0c\n\n_transformB\x13\n\x11_masked_area_initB\x10\n\x0e_weight_methodB\x0b\n\t_quantize\"^\n\x11\x43lassifierConcept\x12\x18\n\x07\x63oncept\x18\x01 \x01(\tR\x07\x63oncept\x12!\n\tthreshold\x18\x02 \x01(\x02H\x00R\tthreshold\x88\x01\x01\x42\x0c\n\n_threshold\"\x85\x03\n\x12\x43lassifierCategory\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12U\n\x08\x63oncepts\x18\x02 \x03(\x0b\x32\x39.stabilityai.platformapis.generation.v1.ClassifierConceptR\x08\x63oncepts\x12#\n\nadjustment\x18\x03 \x01(\x02H\x00R\nadjustment\x88\x01\x01\x12K\n\x06\x61\x63tion\x18\x04 \x01(\x0e\x32..stabilityai.platformapis.generation.v1.ActionH\x01R\x06\x61\x63tion\x88\x01\x01\x12\x64\n\x0f\x63lassifier_mode\x18\x05 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.ClassifierModeH\x02R\x0e\x63lassifierMode\x88\x01\x01\x42\r\n\x0b_adjustmentB\t\n\x07_actionB\x12\n\x10_classifier_mode\"\xba\x02\n\x14\x43lassifierParameters\x12Z\n\ncategories\x18\x01 \x03(\x0b\x32:.stabilityai.platformapis.generation.v1.ClassifierCategoryR\ncategories\x12T\n\x07\x65xceeds\x18\x02 \x03(\x0b\x32:.stabilityai.platformapis.generation.v1.ClassifierCategoryR\x07\x65xceeds\x12\\\n\x0frealized_action\x18\x03 \x01(\x0e\x32..stabilityai.platformapis.generation.v1.ActionH\x00R\x0erealizedAction\x88\x01\x01\x42\x12\n\x10_realized_action\"\x8a\x01\n\x15InterpolateParameters\x12\x16\n\x06ratios\x18\x01 \x03(\x02R\x06ratios\x12P\n\x04mode\x18\x02 \x01(\x0e\x32\x37.stabilityai.platformapis.generation.v1.InterpolateModeH\x00R\x04mode\x88\x01\x01\x42\x07\n\x05_mode\"\xbb\x04\n\x14TransformColorAdjust\x12#\n\nbrightness\x18\x01 \x01(\x02H\x00R\nbrightness\x88\x01\x01\x12\x1f\n\x08\x63ontrast\x18\x02 \x01(\x02H\x01R\x08\x63ontrast\x88\x01\x01\x12\x15\n\x03hue\x18\x03 \x01(\x02H\x02R\x03hue\x88\x01\x01\x12#\n\nsaturation\x18\x04 \x01(\x02H\x03R\nsaturation\x88\x01\x01\x12!\n\tlightness\x18\x05 \x01(\x02H\x04R\tlightness\x88\x01\x01\x12V\n\x0bmatch_image\x18\x06 \x01(\x0b\x32\x30.stabilityai.platformapis.generation.v1.ArtifactH\x05R\nmatchImage\x88\x01\x01\x12Z\n\nmatch_mode\x18\x07 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.ColorMatchModeH\x06R\tmatchMode\x88\x01\x01\x12&\n\x0cnoise_amount\x18\x08 \x01(\x02H\x07R\x0bnoiseAmount\x88\x01\x01\x12\"\n\nnoise_seed\x18\t \x01(\rH\x08R\tnoiseSeed\x88\x01\x01\x42\r\n\x0b_brightnessB\x0b\n\t_contrastB\x06\n\x04_hueB\r\n\x0b_saturationB\x0c\n\n_lightnessB\x0e\n\x0c_match_imageB\r\n\x0b_match_modeB\x0f\n\r_noise_amountB\r\n\x0b_noise_seed\"\xae\x01\n\x12TransformDepthCalc\x12&\n\x0c\x62lend_weight\x18\x01 \x01(\x02H\x00R\x0b\x62lendWeight\x88\x01\x01\x12$\n\x0b\x62lur_radius\x18\x02 \x01(\rH\x01R\nblurRadius\x88\x01\x01\x12\x1d\n\x07reverse\x18\x03 \x01(\x08H\x02R\x07reverse\x88\x01\x01\x42\x0f\n\r_blend_weightB\x0e\n\x0c_blur_radiusB\n\n\x08_reverse\")\n\x0fTransformMatrix\x12\x16\n\x04\x64\x61ta\x18\x01 \x03(\x02\x42\x02\x10\x01R\x04\x64\x61ta\"\xa0\x03\n\x11TransformResample\x12S\n\x0b\x62order_mode\x18\x01 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.BorderModeR\nborderMode\x12U\n\ttransform\x18\x02 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.TransformMatrixR\ttransform\x12\x63\n\x0eprev_transform\x18\x03 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.TransformMatrixH\x00R\rprevTransform\x88\x01\x01\x12\"\n\ndepth_warp\x18\x04 \x01(\x02H\x01R\tdepthWarp\x88\x01\x01\x12$\n\x0b\x65xport_mask\x18\x05 \x01(\x08H\x02R\nexportMask\x88\x01\x01\x42\x11\n\x0f_prev_transformB\r\n\x0b_depth_warpB\x0e\n\x0c_export_mask\"\xc2\x01\n\x10\x43\x61meraParameters\x12S\n\x0b\x63\x61mera_type\x18\x01 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.CameraTypeR\ncameraType\x12\x1d\n\nnear_plane\x18\x02 \x01(\x02R\tnearPlane\x12\x1b\n\tfar_plane\x18\x03 \x01(\x02R\x08\x66\x61rPlane\x12\x15\n\x03\x66ov\x18\x04 \x01(\x02H\x00R\x03\x66ov\x88\x01\x01\x42\x06\n\x04_fov\"\xf2\x02\n\x13TransformCameraPose\x12h\n\x14world_to_view_matrix\x18\x01 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.TransformMatrixR\x11worldToViewMatrix\x12\x65\n\x11\x63\x61mera_parameters\x18\x02 \x01(\x0b\x32\x38.stabilityai.platformapis.generation.v1.CameraParametersR\x10\x63\x61meraParameters\x12\x1d\n\ndo_prefill\x18\x05 \x01(\x08R\tdoPrefill\x12S\n\x0brender_mode\x18\x08 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.RenderModeR\nrenderModeJ\x04\x08\x03\x10\x04J\x04\x08\x04\x10\x05J\x04\x08\x06\x10\x07J\x04\x08\x07\x10\x08\"\x9b\x03\n\x13TransformParameters\x12\x61\n\x0c\x63olor_adjust\x18\x02 \x01(\x0b\x32<.stabilityai.platformapis.generation.v1.TransformColorAdjustH\x00R\x0b\x63olorAdjust\x12[\n\ndepth_calc\x18\x04 \x01(\x0b\x32:.stabilityai.platformapis.generation.v1.TransformDepthCalcH\x00R\tdepthCalc\x12W\n\x08resample\x18\x05 \x01(\x0b\x32\x39.stabilityai.platformapis.generation.v1.TransformResampleH\x00R\x08resample\x12^\n\x0b\x63\x61mera_pose\x18\x06 \x01(\x0b\x32;.stabilityai.platformapis.generation.v1.TransformCameraPoseH\x00R\ncameraPoseB\x0b\n\ttransform\"\xc1\x01\n\x0f\x41ssetParameters\x12K\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32\x33.stabilityai.platformapis.generation.v1.AssetActionR\x06\x61\x63tion\x12\x1d\n\nproject_id\x18\x02 \x01(\tR\tprojectId\x12\x42\n\x03use\x18\x03 \x01(\x0e\x32\x30.stabilityai.platformapis.generation.v1.AssetUseR\x03use\"\xb4\x01\n\nAnswerMeta\x12\x1a\n\x06gpu_id\x18\x01 \x01(\tH\x00R\x05gpuId\x88\x01\x01\x12\x1a\n\x06\x63pu_id\x18\x02 \x01(\tH\x01R\x05\x63puId\x88\x01\x01\x12\x1c\n\x07node_id\x18\x03 \x01(\tH\x02R\x06nodeId\x88\x01\x01\x12 \n\tengine_id\x18\x04 \x01(\tH\x03R\x08\x65ngineId\x88\x01\x01\x42\t\n\x07_gpu_idB\t\n\x07_cpu_idB\n\n\x08_node_idB\x0c\n\n_engine_id\"\xa0\x02\n\x06\x41nswer\x12\x1b\n\tanswer_id\x18\x01 \x01(\tR\x08\x61nswerId\x12\x1d\n\nrequest_id\x18\x02 \x01(\tR\trequestId\x12\x1a\n\x08received\x18\x03 \x01(\x04R\x08received\x12\x18\n\x07\x63reated\x18\x04 \x01(\x04R\x07\x63reated\x12K\n\x04meta\x18\x06 \x01(\x0b\x32\x32.stabilityai.platformapis.generation.v1.AnswerMetaH\x00R\x04meta\x88\x01\x01\x12N\n\tartifacts\x18\x07 \x03(\x0b\x32\x30.stabilityai.platformapis.generation.v1.ArtifactR\tartifactsB\x07\n\x05_meta\"r\n\x0b\x41nswerBatch\x12\x19\n\x08\x62\x61tch_id\x18\x01 \x01(\tR\x07\x62\x61tchId\x12H\n\x07\x61nswers\x18\x02 \x03(\x0b\x32..stabilityai.platformapis.generation.v1.AnswerR\x07\x61nswers\"\xfa\x06\n\x07Request\x12\x1b\n\tengine_id\x18\x01 \x01(\tR\x08\x65ngineId\x12\x1d\n\nrequest_id\x18\x02 \x01(\tR\trequestId\x12[\n\x0erequested_type\x18\x03 \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.ArtifactTypeR\rrequestedType\x12\x46\n\x06prompt\x18\x04 \x03(\x0b\x32..stabilityai.platformapis.generation.v1.PromptR\x06prompt\x12O\n\x05image\x18\x05 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.ImageParametersH\x00R\x05image\x12^\n\nclassifier\x18\x07 \x01(\x0b\x32<.stabilityai.platformapis.generation.v1.ClassifierParametersH\x00R\nclassifier\x12O\n\x05\x61sset\x18\x08 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.AssetParametersH\x00R\x05\x61sset\x12\x61\n\x0binterpolate\x18\x0b \x01(\x0b\x32=.stabilityai.platformapis.generation.v1.InterpolateParametersH\x00R\x0binterpolate\x12[\n\ttransform\x18\x0c \x01(\x0b\x32;.stabilityai.platformapis.generation.v1.TransformParametersH\x00R\ttransform\x12\x64\n\x0b\x63onditioner\x18\x06 \x01(\x0b\x32=.stabilityai.platformapis.generation.v1.ConditionerParametersH\x01R\x0b\x63onditioner\x88\x01\x01\x12\x35\n\x06\x65xtras\x18\xff\x0f \x01(\x0b\x32\x17.google.protobuf.StructH\x02R\x06\x65xtras\x88\x01\x01\x42\x08\n\x06paramsB\x0e\n\x0c_conditionerB\t\n\x07_extrasJ\x04\x08\t\x10\nJ\x04\x08\n\x10\x0b\"\xcd\x01\n\x08OnStatus\x12L\n\x06reason\x18\x01 \x03(\x0e\x32\x34.stabilityai.platformapis.generation.v1.FinishReasonR\x06reason\x12\x1b\n\x06target\x18\x02 \x01(\tH\x00R\x06target\x88\x01\x01\x12K\n\x06\x61\x63tion\x18\x03 \x03(\x0e\x32\x33.stabilityai.platformapis.generation.v1.StageActionR\x06\x61\x63tionB\t\n\x07_target\"\xb1\x01\n\x05Stage\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12I\n\x07request\x18\x02 \x01(\x0b\x32/.stabilityai.platformapis.generation.v1.RequestR\x07request\x12M\n\ton_status\x18\x03 \x03(\x0b\x32\x30.stabilityai.platformapis.generation.v1.OnStatusR\x08onStatus\"r\n\x0c\x43hainRequest\x12\x1d\n\nrequest_id\x18\x01 \x01(\tR\trequestId\x12\x43\n\x05stage\x18\x02 \x03(\x0b\x32-.stabilityai.platformapis.generation.v1.StageR\x05stage*E\n\x0c\x46inishReason\x12\x08\n\x04NULL\x10\x00\x12\n\n\x06LENGTH\x10\x01\x12\x08\n\x04STOP\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\n\n\x06\x46ILTER\x10\x04*\xf8\x01\n\x0c\x41rtifactType\x12\x11\n\rARTIFACT_NONE\x10\x00\x12\x12\n\x0e\x41RTIFACT_IMAGE\x10\x01\x12\x12\n\x0e\x41RTIFACT_VIDEO\x10\x02\x12\x11\n\rARTIFACT_TEXT\x10\x03\x12\x13\n\x0f\x41RTIFACT_TOKENS\x10\x04\x12\x16\n\x12\x41RTIFACT_EMBEDDING\x10\x05\x12\x1c\n\x18\x41RTIFACT_CLASSIFICATIONS\x10\x06\x12\x11\n\rARTIFACT_MASK\x10\x07\x12\x13\n\x0f\x41RTIFACT_LATENT\x10\x08\x12\x13\n\x0f\x41RTIFACT_TENSOR\x10\t\x12\x12\n\x0e\x41RTIFACT_DEPTH\x10\n*g\n\x0eMaskedAreaInit\x12\x19\n\x15MASKED_AREA_INIT_ZERO\x10\x00\x12\x1b\n\x17MASKED_AREA_INIT_RANDOM\x10\x01\x12\x1d\n\x19MASKED_AREA_INIT_ORIGINAL\x10\x02*5\n\x0cWeightMethod\x12\x10\n\x0cTEXT_ENCODER\x10\x00\x12\x13\n\x0f\x43ROSS_ATTENTION\x10\x01*\x98\x02\n\x10\x44iffusionSampler\x12\x10\n\x0cSAMPLER_DDIM\x10\x00\x12\x10\n\x0cSAMPLER_DDPM\x10\x01\x12\x13\n\x0fSAMPLER_K_EULER\x10\x02\x12\x1d\n\x19SAMPLER_K_EULER_ANCESTRAL\x10\x03\x12\x12\n\x0eSAMPLER_K_HEUN\x10\x04\x12\x13\n\x0fSAMPLER_K_DPM_2\x10\x05\x12\x1d\n\x19SAMPLER_K_DPM_2_ANCESTRAL\x10\x06\x12\x11\n\rSAMPLER_K_LMS\x10\x07\x12 \n\x1cSAMPLER_K_DPMPP_2S_ANCESTRAL\x10\x08\x12\x16\n\x12SAMPLER_K_DPMPP_2M\x10\t\x12\x17\n\x13SAMPLER_K_DPMPP_SDE\x10\n*F\n\x08Upscaler\x12\x10\n\x0cUPSCALER_RGB\x10\x00\x12\x13\n\x0fUPSCALER_GFPGAN\x10\x01\x12\x13\n\x0fUPSCALER_ESRGAN\x10\x02*\xd8\x01\n\x0eGuidancePreset\x12\x18\n\x14GUIDANCE_PRESET_NONE\x10\x00\x12\x1a\n\x16GUIDANCE_PRESET_SIMPLE\x10\x01\x12\x1d\n\x19GUIDANCE_PRESET_FAST_BLUE\x10\x02\x12\x1e\n\x1aGUIDANCE_PRESET_FAST_GREEN\x10\x03\x12\x18\n\x14GUIDANCE_PRESET_SLOW\x10\x04\x12\x1a\n\x16GUIDANCE_PRESET_SLOWER\x10\x05\x12\x1b\n\x17GUIDANCE_PRESET_SLOWEST\x10\x06*\x91\x01\n\x11ModelArchitecture\x12\x1b\n\x17MODEL_ARCHITECTURE_NONE\x10\x00\x12\x1f\n\x1bMODEL_ARCHITECTURE_CLIP_VIT\x10\x01\x12\"\n\x1eMODEL_ARCHITECTURE_CLIP_RESNET\x10\x02\x12\x1a\n\x16MODEL_ARCHITECTURE_LDM\x10\x03*\xa2\x01\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_PASSTHROUGH\x10\x00\x12\x1f\n\x1b\x41\x43TION_REGENERATE_DUPLICATE\x10\x01\x12\x15\n\x11\x41\x43TION_REGENERATE\x10\x02\x12\x1e\n\x1a\x41\x43TION_OBFUSCATE_DUPLICATE\x10\x03\x12\x14\n\x10\x41\x43TION_OBFUSCATE\x10\x04\x12\x12\n\x0e\x41\x43TION_DISCARD\x10\x05*D\n\x0e\x43lassifierMode\x12\x17\n\x13\x43LSFR_MODE_ZEROSHOT\x10\x00\x12\x19\n\x15\x43LSFR_MODE_MULTICLASS\x10\x01*\x8c\x01\n\x0fInterpolateMode\x12\x16\n\x12INTERPOLATE_LINEAR\x10\x00\x12\x14\n\x10INTERPOLATE_RIFE\x10\x01\x12\x1a\n\x16INTERPOLATE_VAE_LINEAR\x10\x02\x12\x19\n\x15INTERPOLATE_VAE_SLERP\x10\x03\x12\x14\n\x10INTERPOLATE_FILM\x10\x04*l\n\nBorderMode\x12\x12\n\x0e\x42ORDER_REFLECT\x10\x00\x12\x14\n\x10\x42ORDER_REPLICATE\x10\x01\x12\x0f\n\x0b\x42ORDER_WRAP\x10\x02\x12\x0f\n\x0b\x42ORDER_ZERO\x10\x03\x12\x12\n\x0e\x42ORDER_PREFILL\x10\x04*O\n\x0e\x43olorMatchMode\x12\x13\n\x0f\x43OLOR_MATCH_HSV\x10\x00\x12\x13\n\x0f\x43OLOR_MATCH_LAB\x10\x01\x12\x13\n\x0f\x43OLOR_MATCH_RGB\x10\x02*=\n\nCameraType\x12\x16\n\x12\x43\x41MERA_PERSPECTIVE\x10\x00\x12\x17\n\x13\x43\x41MERA_ORTHOGRAPHIC\x10\x01*4\n\nRenderMode\x12\x0f\n\x0bRENDER_MESH\x10\x00\x12\x15\n\x11RENDER_POINTCLOUD\x10\x01*=\n\x0b\x41ssetAction\x12\r\n\tASSET_PUT\x10\x00\x12\r\n\tASSET_GET\x10\x01\x12\x10\n\x0c\x41SSET_DELETE\x10\x02*\x81\x01\n\x08\x41ssetUse\x12\x17\n\x13\x41SSET_USE_UNDEFINED\x10\x00\x12\x13\n\x0f\x41SSET_USE_INPUT\x10\x01\x12\x14\n\x10\x41SSET_USE_OUTPUT\x10\x02\x12\x1a\n\x16\x41SSET_USE_INTERMEDIATE\x10\x03\x12\x15\n\x11\x41SSET_USE_PROJECT\x10\x04*W\n\x0bStageAction\x12\x15\n\x11STAGE_ACTION_PASS\x10\x00\x12\x18\n\x14STAGE_ACTION_DISCARD\x10\x01\x12\x17\n\x13STAGE_ACTION_RETURN\x10\x02\x32\xff\x01\n\x11GenerationService\x12o\n\x08Generate\x12/.stabilityai.platformapis.generation.v1.Request\x1a..stabilityai.platformapis.generation.v1.Answer\"\x00\x30\x01\x12y\n\rChainGenerate\x12\x34.stabilityai.platformapis.generation.v1.ChainRequest\x1a..stabilityai.platformapis.generation.v1.Answer\"\x00\x30\x01\x42\xe1\x02\n*com.stabilityai.platformapis.generation.v1B\x0fGenerationProtoP\x01Zggithub.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/generation/v1;generationv1\xa2\x02\x03SPG\xaa\x02&Stabilityai.Platformapis.Generation.V1\xca\x02&Stabilityai\\Platformapis\\Generation\\V1\xe2\x02\x32Stabilityai\\Platformapis\\Generation\\V1\\GPBMetadata\xea\x02)Stabilityai::Platformapis::Generation::V1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'stabilityai.platformapis.generation.v1.generation_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n*com.stabilityai.platformapis.generation.v1B\017GenerationProtoP\001Zggithub.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/generation/v1;generationv1\242\002\003SPG\252\002&Stabilityai.Platformapis.Generation.V1\312\002&Stabilityai\\Platformapis\\Generation\\V1\342\0022Stabilityai\\Platformapis\\Generation\\V1\\GPBMetadata\352\002)Stabilityai::Platformapis::Generation::V1' + _TRANSFORMMATRIX.fields_by_name['data']._options = None + _TRANSFORMMATRIX.fields_by_name['data']._serialized_options = b'\020\001' + _globals['_FINISHREASON']._serialized_start=9968 + _globals['_FINISHREASON']._serialized_end=10037 + _globals['_ARTIFACTTYPE']._serialized_start=10040 + _globals['_ARTIFACTTYPE']._serialized_end=10288 + _globals['_MASKEDAREAINIT']._serialized_start=10290 + _globals['_MASKEDAREAINIT']._serialized_end=10393 + _globals['_WEIGHTMETHOD']._serialized_start=10395 + _globals['_WEIGHTMETHOD']._serialized_end=10448 + _globals['_DIFFUSIONSAMPLER']._serialized_start=10451 + _globals['_DIFFUSIONSAMPLER']._serialized_end=10731 + _globals['_UPSCALER']._serialized_start=10733 + _globals['_UPSCALER']._serialized_end=10803 + _globals['_GUIDANCEPRESET']._serialized_start=10806 + _globals['_GUIDANCEPRESET']._serialized_end=11022 + _globals['_MODELARCHITECTURE']._serialized_start=11025 + _globals['_MODELARCHITECTURE']._serialized_end=11170 + _globals['_ACTION']._serialized_start=11173 + _globals['_ACTION']._serialized_end=11335 + _globals['_CLASSIFIERMODE']._serialized_start=11337 + _globals['_CLASSIFIERMODE']._serialized_end=11405 + _globals['_INTERPOLATEMODE']._serialized_start=11408 + _globals['_INTERPOLATEMODE']._serialized_end=11548 + _globals['_BORDERMODE']._serialized_start=11550 + _globals['_BORDERMODE']._serialized_end=11658 + _globals['_COLORMATCHMODE']._serialized_start=11660 + _globals['_COLORMATCHMODE']._serialized_end=11739 + _globals['_CAMERATYPE']._serialized_start=11741 + _globals['_CAMERATYPE']._serialized_end=11802 + _globals['_RENDERMODE']._serialized_start=11804 + _globals['_RENDERMODE']._serialized_end=11856 + _globals['_ASSETACTION']._serialized_start=11858 + _globals['_ASSETACTION']._serialized_end=11919 + _globals['_ASSETUSE']._serialized_start=11922 + _globals['_ASSETUSE']._serialized_end=12051 + _globals['_STAGEACTION']._serialized_start=12053 + _globals['_STAGEACTION']._serialized_end=12140 + _globals['_TOKEN']._serialized_start=162 + _globals['_TOKEN']._serialized_end=219 + _globals['_TOKENS']._serialized_start=222 + _globals['_TOKENS']._serialized_end=358 + _globals['_ARTIFACT']._serialized_start=361 + _globals['_ARTIFACT']._serialized_end=960 + _globals['_PROMPTPARAMETERS']._serialized_start=962 + _globals['_PROMPTPARAMETERS']._serialized_end=1054 + _globals['_PROMPT']._serialized_start=1057 + _globals['_PROMPT']._serialized_end=1361 + _globals['_SAMPLERPARAMETERS']._serialized_start=1364 + _globals['_SAMPLERPARAMETERS']._serialized_end=1805 + _globals['_CONDITIONERPARAMETERS']._serialized_start=1808 + _globals['_CONDITIONERPARAMETERS']._serialized_end=2010 + _globals['_SCHEDULEPARAMETERS']._serialized_start=2012 + _globals['_SCHEDULEPARAMETERS']._serialized_end=2137 + _globals['_STEPPARAMETER']._serialized_start=2140 + _globals['_STEPPARAMETER']._serialized_end=2502 + _globals['_MODEL']._serialized_start=2505 + _globals['_MODEL']._serialized_end=2754 + _globals['_CUTOUTPARAMETERS']._serialized_start=2757 + _globals['_CUTOUTPARAMETERS']._serialized_end=3015 + _globals['_GUIDANCESCHEDULEPARAMETERS']._serialized_start=3017 + _globals['_GUIDANCESCHEDULEPARAMETERS']._serialized_end=3095 + _globals['_GUIDANCEINSTANCEPARAMETERS']._serialized_start=3098 + _globals['_GUIDANCEINSTANCEPARAMETERS']._serialized_end=3554 + _globals['_GUIDANCEPARAMETERS']._serialized_start=3557 + _globals['_GUIDANCEPARAMETERS']._serialized_end=3772 + _globals['_TRANSFORMTYPE']._serialized_start=3775 + _globals['_TRANSFORMTYPE']._serialized_end=3968 + _globals['_IMAGEPARAMETERS']._serialized_start=3971 + _globals['_IMAGEPARAMETERS']._serialized_end=4640 + _globals['_CLASSIFIERCONCEPT']._serialized_start=4642 + _globals['_CLASSIFIERCONCEPT']._serialized_end=4736 + _globals['_CLASSIFIERCATEGORY']._serialized_start=4739 + _globals['_CLASSIFIERCATEGORY']._serialized_end=5128 + _globals['_CLASSIFIERPARAMETERS']._serialized_start=5131 + _globals['_CLASSIFIERPARAMETERS']._serialized_end=5445 + _globals['_INTERPOLATEPARAMETERS']._serialized_start=5448 + _globals['_INTERPOLATEPARAMETERS']._serialized_end=5586 + _globals['_TRANSFORMCOLORADJUST']._serialized_start=5589 + _globals['_TRANSFORMCOLORADJUST']._serialized_end=6160 + _globals['_TRANSFORMDEPTHCALC']._serialized_start=6163 + _globals['_TRANSFORMDEPTHCALC']._serialized_end=6337 + _globals['_TRANSFORMMATRIX']._serialized_start=6339 + _globals['_TRANSFORMMATRIX']._serialized_end=6380 + _globals['_TRANSFORMRESAMPLE']._serialized_start=6383 + _globals['_TRANSFORMRESAMPLE']._serialized_end=6799 + _globals['_CAMERAPARAMETERS']._serialized_start=6802 + _globals['_CAMERAPARAMETERS']._serialized_end=6996 + _globals['_TRANSFORMCAMERAPOSE']._serialized_start=6999 + _globals['_TRANSFORMCAMERAPOSE']._serialized_end=7369 + _globals['_TRANSFORMPARAMETERS']._serialized_start=7372 + _globals['_TRANSFORMPARAMETERS']._serialized_end=7783 + _globals['_ASSETPARAMETERS']._serialized_start=7786 + _globals['_ASSETPARAMETERS']._serialized_end=7979 + _globals['_ANSWERMETA']._serialized_start=7982 + _globals['_ANSWERMETA']._serialized_end=8162 + _globals['_ANSWER']._serialized_start=8165 + _globals['_ANSWER']._serialized_end=8453 + _globals['_ANSWERBATCH']._serialized_start=8455 + _globals['_ANSWERBATCH']._serialized_end=8569 + _globals['_REQUEST']._serialized_start=8572 + _globals['_REQUEST']._serialized_end=9462 + _globals['_ONSTATUS']._serialized_start=9465 + _globals['_ONSTATUS']._serialized_end=9670 + _globals['_STAGE']._serialized_start=9673 + _globals['_STAGE']._serialized_end=9850 + _globals['_CHAINREQUEST']._serialized_start=9852 + _globals['_CHAINREQUEST']._serialized_end=9966 + _globals['_GENERATIONSERVICE']._serialized_start=12143 + _globals['_GENERATIONSERVICE']._serialized_end=12398 +# @@protoc_insertion_point(module_scope) diff --git a/gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2.pyi b/gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2.pyi new file mode 100644 index 0000000..ba707e1 --- /dev/null +++ b/gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2.pyi @@ -0,0 +1,663 @@ +from google.protobuf import struct_pb2 as _struct_pb2 +from coreweave.tensors import tensors_pb2 as _tensors_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class FinishReason(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + NULL: _ClassVar[FinishReason] + LENGTH: _ClassVar[FinishReason] + STOP: _ClassVar[FinishReason] + ERROR: _ClassVar[FinishReason] + FILTER: _ClassVar[FinishReason] + +class ArtifactType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + ARTIFACT_NONE: _ClassVar[ArtifactType] + ARTIFACT_IMAGE: _ClassVar[ArtifactType] + ARTIFACT_VIDEO: _ClassVar[ArtifactType] + ARTIFACT_TEXT: _ClassVar[ArtifactType] + ARTIFACT_TOKENS: _ClassVar[ArtifactType] + ARTIFACT_EMBEDDING: _ClassVar[ArtifactType] + ARTIFACT_CLASSIFICATIONS: _ClassVar[ArtifactType] + ARTIFACT_MASK: _ClassVar[ArtifactType] + ARTIFACT_LATENT: _ClassVar[ArtifactType] + ARTIFACT_TENSOR: _ClassVar[ArtifactType] + ARTIFACT_DEPTH: _ClassVar[ArtifactType] + +class MaskedAreaInit(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + MASKED_AREA_INIT_ZERO: _ClassVar[MaskedAreaInit] + MASKED_AREA_INIT_RANDOM: _ClassVar[MaskedAreaInit] + MASKED_AREA_INIT_ORIGINAL: _ClassVar[MaskedAreaInit] + +class WeightMethod(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + TEXT_ENCODER: _ClassVar[WeightMethod] + CROSS_ATTENTION: _ClassVar[WeightMethod] + +class DiffusionSampler(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + SAMPLER_DDIM: _ClassVar[DiffusionSampler] + SAMPLER_DDPM: _ClassVar[DiffusionSampler] + SAMPLER_K_EULER: _ClassVar[DiffusionSampler] + SAMPLER_K_EULER_ANCESTRAL: _ClassVar[DiffusionSampler] + SAMPLER_K_HEUN: _ClassVar[DiffusionSampler] + SAMPLER_K_DPM_2: _ClassVar[DiffusionSampler] + SAMPLER_K_DPM_2_ANCESTRAL: _ClassVar[DiffusionSampler] + SAMPLER_K_LMS: _ClassVar[DiffusionSampler] + SAMPLER_K_DPMPP_2S_ANCESTRAL: _ClassVar[DiffusionSampler] + SAMPLER_K_DPMPP_2M: _ClassVar[DiffusionSampler] + SAMPLER_K_DPMPP_SDE: _ClassVar[DiffusionSampler] + +class Upscaler(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + UPSCALER_RGB: _ClassVar[Upscaler] + UPSCALER_GFPGAN: _ClassVar[Upscaler] + UPSCALER_ESRGAN: _ClassVar[Upscaler] + +class GuidancePreset(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + GUIDANCE_PRESET_NONE: _ClassVar[GuidancePreset] + GUIDANCE_PRESET_SIMPLE: _ClassVar[GuidancePreset] + GUIDANCE_PRESET_FAST_BLUE: _ClassVar[GuidancePreset] + GUIDANCE_PRESET_FAST_GREEN: _ClassVar[GuidancePreset] + GUIDANCE_PRESET_SLOW: _ClassVar[GuidancePreset] + GUIDANCE_PRESET_SLOWER: _ClassVar[GuidancePreset] + GUIDANCE_PRESET_SLOWEST: _ClassVar[GuidancePreset] + +class ModelArchitecture(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + MODEL_ARCHITECTURE_NONE: _ClassVar[ModelArchitecture] + MODEL_ARCHITECTURE_CLIP_VIT: _ClassVar[ModelArchitecture] + MODEL_ARCHITECTURE_CLIP_RESNET: _ClassVar[ModelArchitecture] + MODEL_ARCHITECTURE_LDM: _ClassVar[ModelArchitecture] + +class Action(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + ACTION_PASSTHROUGH: _ClassVar[Action] + ACTION_REGENERATE_DUPLICATE: _ClassVar[Action] + ACTION_REGENERATE: _ClassVar[Action] + ACTION_OBFUSCATE_DUPLICATE: _ClassVar[Action] + ACTION_OBFUSCATE: _ClassVar[Action] + ACTION_DISCARD: _ClassVar[Action] + +class ClassifierMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + CLSFR_MODE_ZEROSHOT: _ClassVar[ClassifierMode] + CLSFR_MODE_MULTICLASS: _ClassVar[ClassifierMode] + +class InterpolateMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + INTERPOLATE_LINEAR: _ClassVar[InterpolateMode] + INTERPOLATE_RIFE: _ClassVar[InterpolateMode] + INTERPOLATE_VAE_LINEAR: _ClassVar[InterpolateMode] + INTERPOLATE_VAE_SLERP: _ClassVar[InterpolateMode] + INTERPOLATE_FILM: _ClassVar[InterpolateMode] + +class BorderMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + BORDER_REFLECT: _ClassVar[BorderMode] + BORDER_REPLICATE: _ClassVar[BorderMode] + BORDER_WRAP: _ClassVar[BorderMode] + BORDER_ZERO: _ClassVar[BorderMode] + BORDER_PREFILL: _ClassVar[BorderMode] + +class ColorMatchMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + COLOR_MATCH_HSV: _ClassVar[ColorMatchMode] + COLOR_MATCH_LAB: _ClassVar[ColorMatchMode] + COLOR_MATCH_RGB: _ClassVar[ColorMatchMode] + +class CameraType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + CAMERA_PERSPECTIVE: _ClassVar[CameraType] + CAMERA_ORTHOGRAPHIC: _ClassVar[CameraType] + +class RenderMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + RENDER_MESH: _ClassVar[RenderMode] + RENDER_POINTCLOUD: _ClassVar[RenderMode] + +class AssetAction(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + ASSET_PUT: _ClassVar[AssetAction] + ASSET_GET: _ClassVar[AssetAction] + ASSET_DELETE: _ClassVar[AssetAction] + +class AssetUse(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + ASSET_USE_UNDEFINED: _ClassVar[AssetUse] + ASSET_USE_INPUT: _ClassVar[AssetUse] + ASSET_USE_OUTPUT: _ClassVar[AssetUse] + ASSET_USE_INTERMEDIATE: _ClassVar[AssetUse] + ASSET_USE_PROJECT: _ClassVar[AssetUse] + +class StageAction(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + STAGE_ACTION_PASS: _ClassVar[StageAction] + STAGE_ACTION_DISCARD: _ClassVar[StageAction] + STAGE_ACTION_RETURN: _ClassVar[StageAction] +NULL: FinishReason +LENGTH: FinishReason +STOP: FinishReason +ERROR: FinishReason +FILTER: FinishReason +ARTIFACT_NONE: ArtifactType +ARTIFACT_IMAGE: ArtifactType +ARTIFACT_VIDEO: ArtifactType +ARTIFACT_TEXT: ArtifactType +ARTIFACT_TOKENS: ArtifactType +ARTIFACT_EMBEDDING: ArtifactType +ARTIFACT_CLASSIFICATIONS: ArtifactType +ARTIFACT_MASK: ArtifactType +ARTIFACT_LATENT: ArtifactType +ARTIFACT_TENSOR: ArtifactType +ARTIFACT_DEPTH: ArtifactType +MASKED_AREA_INIT_ZERO: MaskedAreaInit +MASKED_AREA_INIT_RANDOM: MaskedAreaInit +MASKED_AREA_INIT_ORIGINAL: MaskedAreaInit +TEXT_ENCODER: WeightMethod +CROSS_ATTENTION: WeightMethod +SAMPLER_DDIM: DiffusionSampler +SAMPLER_DDPM: DiffusionSampler +SAMPLER_K_EULER: DiffusionSampler +SAMPLER_K_EULER_ANCESTRAL: DiffusionSampler +SAMPLER_K_HEUN: DiffusionSampler +SAMPLER_K_DPM_2: DiffusionSampler +SAMPLER_K_DPM_2_ANCESTRAL: DiffusionSampler +SAMPLER_K_LMS: DiffusionSampler +SAMPLER_K_DPMPP_2S_ANCESTRAL: DiffusionSampler +SAMPLER_K_DPMPP_2M: DiffusionSampler +SAMPLER_K_DPMPP_SDE: DiffusionSampler +UPSCALER_RGB: Upscaler +UPSCALER_GFPGAN: Upscaler +UPSCALER_ESRGAN: Upscaler +GUIDANCE_PRESET_NONE: GuidancePreset +GUIDANCE_PRESET_SIMPLE: GuidancePreset +GUIDANCE_PRESET_FAST_BLUE: GuidancePreset +GUIDANCE_PRESET_FAST_GREEN: GuidancePreset +GUIDANCE_PRESET_SLOW: GuidancePreset +GUIDANCE_PRESET_SLOWER: GuidancePreset +GUIDANCE_PRESET_SLOWEST: GuidancePreset +MODEL_ARCHITECTURE_NONE: ModelArchitecture +MODEL_ARCHITECTURE_CLIP_VIT: ModelArchitecture +MODEL_ARCHITECTURE_CLIP_RESNET: ModelArchitecture +MODEL_ARCHITECTURE_LDM: ModelArchitecture +ACTION_PASSTHROUGH: Action +ACTION_REGENERATE_DUPLICATE: Action +ACTION_REGENERATE: Action +ACTION_OBFUSCATE_DUPLICATE: Action +ACTION_OBFUSCATE: Action +ACTION_DISCARD: Action +CLSFR_MODE_ZEROSHOT: ClassifierMode +CLSFR_MODE_MULTICLASS: ClassifierMode +INTERPOLATE_LINEAR: InterpolateMode +INTERPOLATE_RIFE: InterpolateMode +INTERPOLATE_VAE_LINEAR: InterpolateMode +INTERPOLATE_VAE_SLERP: InterpolateMode +INTERPOLATE_FILM: InterpolateMode +BORDER_REFLECT: BorderMode +BORDER_REPLICATE: BorderMode +BORDER_WRAP: BorderMode +BORDER_ZERO: BorderMode +BORDER_PREFILL: BorderMode +COLOR_MATCH_HSV: ColorMatchMode +COLOR_MATCH_LAB: ColorMatchMode +COLOR_MATCH_RGB: ColorMatchMode +CAMERA_PERSPECTIVE: CameraType +CAMERA_ORTHOGRAPHIC: CameraType +RENDER_MESH: RenderMode +RENDER_POINTCLOUD: RenderMode +ASSET_PUT: AssetAction +ASSET_GET: AssetAction +ASSET_DELETE: AssetAction +ASSET_USE_UNDEFINED: AssetUse +ASSET_USE_INPUT: AssetUse +ASSET_USE_OUTPUT: AssetUse +ASSET_USE_INTERMEDIATE: AssetUse +ASSET_USE_PROJECT: AssetUse +STAGE_ACTION_PASS: StageAction +STAGE_ACTION_DISCARD: StageAction +STAGE_ACTION_RETURN: StageAction + +class Token(_message.Message): + __slots__ = ["text", "id"] + TEXT_FIELD_NUMBER: _ClassVar[int] + ID_FIELD_NUMBER: _ClassVar[int] + text: str + id: int + def __init__(self, text: _Optional[str] = ..., id: _Optional[int] = ...) -> None: ... + +class Tokens(_message.Message): + __slots__ = ["tokens", "tokenizer_id"] + TOKENS_FIELD_NUMBER: _ClassVar[int] + TOKENIZER_ID_FIELD_NUMBER: _ClassVar[int] + tokens: _containers.RepeatedCompositeFieldContainer[Token] + tokenizer_id: str + def __init__(self, tokens: _Optional[_Iterable[_Union[Token, _Mapping]]] = ..., tokenizer_id: _Optional[str] = ...) -> None: ... + +class Artifact(_message.Message): + __slots__ = ["id", "type", "mime", "magic", "binary", "text", "tokens", "classifier", "tensor", "index", "finish_reason", "seed", "uuid", "size"] + ID_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + MIME_FIELD_NUMBER: _ClassVar[int] + MAGIC_FIELD_NUMBER: _ClassVar[int] + BINARY_FIELD_NUMBER: _ClassVar[int] + TEXT_FIELD_NUMBER: _ClassVar[int] + TOKENS_FIELD_NUMBER: _ClassVar[int] + CLASSIFIER_FIELD_NUMBER: _ClassVar[int] + TENSOR_FIELD_NUMBER: _ClassVar[int] + INDEX_FIELD_NUMBER: _ClassVar[int] + FINISH_REASON_FIELD_NUMBER: _ClassVar[int] + SEED_FIELD_NUMBER: _ClassVar[int] + UUID_FIELD_NUMBER: _ClassVar[int] + SIZE_FIELD_NUMBER: _ClassVar[int] + id: int + type: ArtifactType + mime: str + magic: str + binary: bytes + text: str + tokens: Tokens + classifier: ClassifierParameters + tensor: _tensors_pb2.Tensor + index: int + finish_reason: FinishReason + seed: int + uuid: str + size: int + def __init__(self, id: _Optional[int] = ..., type: _Optional[_Union[ArtifactType, str]] = ..., mime: _Optional[str] = ..., magic: _Optional[str] = ..., binary: _Optional[bytes] = ..., text: _Optional[str] = ..., tokens: _Optional[_Union[Tokens, _Mapping]] = ..., classifier: _Optional[_Union[ClassifierParameters, _Mapping]] = ..., tensor: _Optional[_Union[_tensors_pb2.Tensor, _Mapping]] = ..., index: _Optional[int] = ..., finish_reason: _Optional[_Union[FinishReason, str]] = ..., seed: _Optional[int] = ..., uuid: _Optional[str] = ..., size: _Optional[int] = ...) -> None: ... + +class PromptParameters(_message.Message): + __slots__ = ["init", "weight"] + INIT_FIELD_NUMBER: _ClassVar[int] + WEIGHT_FIELD_NUMBER: _ClassVar[int] + init: bool + weight: float + def __init__(self, init: bool = ..., weight: _Optional[float] = ...) -> None: ... + +class Prompt(_message.Message): + __slots__ = ["parameters", "text", "tokens", "artifact"] + PARAMETERS_FIELD_NUMBER: _ClassVar[int] + TEXT_FIELD_NUMBER: _ClassVar[int] + TOKENS_FIELD_NUMBER: _ClassVar[int] + ARTIFACT_FIELD_NUMBER: _ClassVar[int] + parameters: PromptParameters + text: str + tokens: Tokens + artifact: Artifact + def __init__(self, parameters: _Optional[_Union[PromptParameters, _Mapping]] = ..., text: _Optional[str] = ..., tokens: _Optional[_Union[Tokens, _Mapping]] = ..., artifact: _Optional[_Union[Artifact, _Mapping]] = ...) -> None: ... + +class SamplerParameters(_message.Message): + __slots__ = ["eta", "sampling_steps", "latent_channels", "downsampling_factor", "cfg_scale", "init_noise_scale", "step_noise_scale"] + ETA_FIELD_NUMBER: _ClassVar[int] + SAMPLING_STEPS_FIELD_NUMBER: _ClassVar[int] + LATENT_CHANNELS_FIELD_NUMBER: _ClassVar[int] + DOWNSAMPLING_FACTOR_FIELD_NUMBER: _ClassVar[int] + CFG_SCALE_FIELD_NUMBER: _ClassVar[int] + INIT_NOISE_SCALE_FIELD_NUMBER: _ClassVar[int] + STEP_NOISE_SCALE_FIELD_NUMBER: _ClassVar[int] + eta: float + sampling_steps: int + latent_channels: int + downsampling_factor: int + cfg_scale: float + init_noise_scale: float + step_noise_scale: float + def __init__(self, eta: _Optional[float] = ..., sampling_steps: _Optional[int] = ..., latent_channels: _Optional[int] = ..., downsampling_factor: _Optional[int] = ..., cfg_scale: _Optional[float] = ..., init_noise_scale: _Optional[float] = ..., step_noise_scale: _Optional[float] = ...) -> None: ... + +class ConditionerParameters(_message.Message): + __slots__ = ["vector_adjust_prior", "conditioner"] + VECTOR_ADJUST_PRIOR_FIELD_NUMBER: _ClassVar[int] + CONDITIONER_FIELD_NUMBER: _ClassVar[int] + vector_adjust_prior: str + conditioner: Model + def __init__(self, vector_adjust_prior: _Optional[str] = ..., conditioner: _Optional[_Union[Model, _Mapping]] = ...) -> None: ... + +class ScheduleParameters(_message.Message): + __slots__ = ["start", "end", "value"] + START_FIELD_NUMBER: _ClassVar[int] + END_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + start: float + end: float + value: float + def __init__(self, start: _Optional[float] = ..., end: _Optional[float] = ..., value: _Optional[float] = ...) -> None: ... + +class StepParameter(_message.Message): + __slots__ = ["scaled_step", "sampler", "schedule", "guidance"] + SCALED_STEP_FIELD_NUMBER: _ClassVar[int] + SAMPLER_FIELD_NUMBER: _ClassVar[int] + SCHEDULE_FIELD_NUMBER: _ClassVar[int] + GUIDANCE_FIELD_NUMBER: _ClassVar[int] + scaled_step: float + sampler: SamplerParameters + schedule: ScheduleParameters + guidance: GuidanceParameters + def __init__(self, scaled_step: _Optional[float] = ..., sampler: _Optional[_Union[SamplerParameters, _Mapping]] = ..., schedule: _Optional[_Union[ScheduleParameters, _Mapping]] = ..., guidance: _Optional[_Union[GuidanceParameters, _Mapping]] = ...) -> None: ... + +class Model(_message.Message): + __slots__ = ["architecture", "publisher", "dataset", "version", "semantic_version", "alias"] + ARCHITECTURE_FIELD_NUMBER: _ClassVar[int] + PUBLISHER_FIELD_NUMBER: _ClassVar[int] + DATASET_FIELD_NUMBER: _ClassVar[int] + VERSION_FIELD_NUMBER: _ClassVar[int] + SEMANTIC_VERSION_FIELD_NUMBER: _ClassVar[int] + ALIAS_FIELD_NUMBER: _ClassVar[int] + architecture: ModelArchitecture + publisher: str + dataset: str + version: float + semantic_version: str + alias: str + def __init__(self, architecture: _Optional[_Union[ModelArchitecture, str]] = ..., publisher: _Optional[str] = ..., dataset: _Optional[str] = ..., version: _Optional[float] = ..., semantic_version: _Optional[str] = ..., alias: _Optional[str] = ...) -> None: ... + +class CutoutParameters(_message.Message): + __slots__ = ["cutouts", "count", "gray", "blur", "size_power"] + CUTOUTS_FIELD_NUMBER: _ClassVar[int] + COUNT_FIELD_NUMBER: _ClassVar[int] + GRAY_FIELD_NUMBER: _ClassVar[int] + BLUR_FIELD_NUMBER: _ClassVar[int] + SIZE_POWER_FIELD_NUMBER: _ClassVar[int] + cutouts: _containers.RepeatedCompositeFieldContainer[CutoutParameters] + count: int + gray: float + blur: float + size_power: float + def __init__(self, cutouts: _Optional[_Iterable[_Union[CutoutParameters, _Mapping]]] = ..., count: _Optional[int] = ..., gray: _Optional[float] = ..., blur: _Optional[float] = ..., size_power: _Optional[float] = ...) -> None: ... + +class GuidanceScheduleParameters(_message.Message): + __slots__ = ["duration", "value"] + DURATION_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + duration: float + value: float + def __init__(self, duration: _Optional[float] = ..., value: _Optional[float] = ...) -> None: ... + +class GuidanceInstanceParameters(_message.Message): + __slots__ = ["models", "guidance_strength", "schedule", "cutouts", "prompt"] + MODELS_FIELD_NUMBER: _ClassVar[int] + GUIDANCE_STRENGTH_FIELD_NUMBER: _ClassVar[int] + SCHEDULE_FIELD_NUMBER: _ClassVar[int] + CUTOUTS_FIELD_NUMBER: _ClassVar[int] + PROMPT_FIELD_NUMBER: _ClassVar[int] + models: _containers.RepeatedCompositeFieldContainer[Model] + guidance_strength: float + schedule: _containers.RepeatedCompositeFieldContainer[GuidanceScheduleParameters] + cutouts: CutoutParameters + prompt: Prompt + def __init__(self, models: _Optional[_Iterable[_Union[Model, _Mapping]]] = ..., guidance_strength: _Optional[float] = ..., schedule: _Optional[_Iterable[_Union[GuidanceScheduleParameters, _Mapping]]] = ..., cutouts: _Optional[_Union[CutoutParameters, _Mapping]] = ..., prompt: _Optional[_Union[Prompt, _Mapping]] = ...) -> None: ... + +class GuidanceParameters(_message.Message): + __slots__ = ["guidance_preset", "instances"] + GUIDANCE_PRESET_FIELD_NUMBER: _ClassVar[int] + INSTANCES_FIELD_NUMBER: _ClassVar[int] + guidance_preset: GuidancePreset + instances: _containers.RepeatedCompositeFieldContainer[GuidanceInstanceParameters] + def __init__(self, guidance_preset: _Optional[_Union[GuidancePreset, str]] = ..., instances: _Optional[_Iterable[_Union[GuidanceInstanceParameters, _Mapping]]] = ...) -> None: ... + +class TransformType(_message.Message): + __slots__ = ["diffusion", "upscaler"] + DIFFUSION_FIELD_NUMBER: _ClassVar[int] + UPSCALER_FIELD_NUMBER: _ClassVar[int] + diffusion: DiffusionSampler + upscaler: Upscaler + def __init__(self, diffusion: _Optional[_Union[DiffusionSampler, str]] = ..., upscaler: _Optional[_Union[Upscaler, str]] = ...) -> None: ... + +class ImageParameters(_message.Message): + __slots__ = ["height", "width", "seed", "samples", "steps", "transform", "parameters", "masked_area_init", "weight_method", "quantize"] + HEIGHT_FIELD_NUMBER: _ClassVar[int] + WIDTH_FIELD_NUMBER: _ClassVar[int] + SEED_FIELD_NUMBER: _ClassVar[int] + SAMPLES_FIELD_NUMBER: _ClassVar[int] + STEPS_FIELD_NUMBER: _ClassVar[int] + TRANSFORM_FIELD_NUMBER: _ClassVar[int] + PARAMETERS_FIELD_NUMBER: _ClassVar[int] + MASKED_AREA_INIT_FIELD_NUMBER: _ClassVar[int] + WEIGHT_METHOD_FIELD_NUMBER: _ClassVar[int] + QUANTIZE_FIELD_NUMBER: _ClassVar[int] + height: int + width: int + seed: _containers.RepeatedScalarFieldContainer[int] + samples: int + steps: int + transform: TransformType + parameters: _containers.RepeatedCompositeFieldContainer[StepParameter] + masked_area_init: MaskedAreaInit + weight_method: WeightMethod + quantize: bool + def __init__(self, height: _Optional[int] = ..., width: _Optional[int] = ..., seed: _Optional[_Iterable[int]] = ..., samples: _Optional[int] = ..., steps: _Optional[int] = ..., transform: _Optional[_Union[TransformType, _Mapping]] = ..., parameters: _Optional[_Iterable[_Union[StepParameter, _Mapping]]] = ..., masked_area_init: _Optional[_Union[MaskedAreaInit, str]] = ..., weight_method: _Optional[_Union[WeightMethod, str]] = ..., quantize: bool = ...) -> None: ... + +class ClassifierConcept(_message.Message): + __slots__ = ["concept", "threshold"] + CONCEPT_FIELD_NUMBER: _ClassVar[int] + THRESHOLD_FIELD_NUMBER: _ClassVar[int] + concept: str + threshold: float + def __init__(self, concept: _Optional[str] = ..., threshold: _Optional[float] = ...) -> None: ... + +class ClassifierCategory(_message.Message): + __slots__ = ["name", "concepts", "adjustment", "action", "classifier_mode"] + NAME_FIELD_NUMBER: _ClassVar[int] + CONCEPTS_FIELD_NUMBER: _ClassVar[int] + ADJUSTMENT_FIELD_NUMBER: _ClassVar[int] + ACTION_FIELD_NUMBER: _ClassVar[int] + CLASSIFIER_MODE_FIELD_NUMBER: _ClassVar[int] + name: str + concepts: _containers.RepeatedCompositeFieldContainer[ClassifierConcept] + adjustment: float + action: Action + classifier_mode: ClassifierMode + def __init__(self, name: _Optional[str] = ..., concepts: _Optional[_Iterable[_Union[ClassifierConcept, _Mapping]]] = ..., adjustment: _Optional[float] = ..., action: _Optional[_Union[Action, str]] = ..., classifier_mode: _Optional[_Union[ClassifierMode, str]] = ...) -> None: ... + +class ClassifierParameters(_message.Message): + __slots__ = ["categories", "exceeds", "realized_action"] + CATEGORIES_FIELD_NUMBER: _ClassVar[int] + EXCEEDS_FIELD_NUMBER: _ClassVar[int] + REALIZED_ACTION_FIELD_NUMBER: _ClassVar[int] + categories: _containers.RepeatedCompositeFieldContainer[ClassifierCategory] + exceeds: _containers.RepeatedCompositeFieldContainer[ClassifierCategory] + realized_action: Action + def __init__(self, categories: _Optional[_Iterable[_Union[ClassifierCategory, _Mapping]]] = ..., exceeds: _Optional[_Iterable[_Union[ClassifierCategory, _Mapping]]] = ..., realized_action: _Optional[_Union[Action, str]] = ...) -> None: ... + +class InterpolateParameters(_message.Message): + __slots__ = ["ratios", "mode"] + RATIOS_FIELD_NUMBER: _ClassVar[int] + MODE_FIELD_NUMBER: _ClassVar[int] + ratios: _containers.RepeatedScalarFieldContainer[float] + mode: InterpolateMode + def __init__(self, ratios: _Optional[_Iterable[float]] = ..., mode: _Optional[_Union[InterpolateMode, str]] = ...) -> None: ... + +class TransformColorAdjust(_message.Message): + __slots__ = ["brightness", "contrast", "hue", "saturation", "lightness", "match_image", "match_mode", "noise_amount", "noise_seed"] + BRIGHTNESS_FIELD_NUMBER: _ClassVar[int] + CONTRAST_FIELD_NUMBER: _ClassVar[int] + HUE_FIELD_NUMBER: _ClassVar[int] + SATURATION_FIELD_NUMBER: _ClassVar[int] + LIGHTNESS_FIELD_NUMBER: _ClassVar[int] + MATCH_IMAGE_FIELD_NUMBER: _ClassVar[int] + MATCH_MODE_FIELD_NUMBER: _ClassVar[int] + NOISE_AMOUNT_FIELD_NUMBER: _ClassVar[int] + NOISE_SEED_FIELD_NUMBER: _ClassVar[int] + brightness: float + contrast: float + hue: float + saturation: float + lightness: float + match_image: Artifact + match_mode: ColorMatchMode + noise_amount: float + noise_seed: int + def __init__(self, brightness: _Optional[float] = ..., contrast: _Optional[float] = ..., hue: _Optional[float] = ..., saturation: _Optional[float] = ..., lightness: _Optional[float] = ..., match_image: _Optional[_Union[Artifact, _Mapping]] = ..., match_mode: _Optional[_Union[ColorMatchMode, str]] = ..., noise_amount: _Optional[float] = ..., noise_seed: _Optional[int] = ...) -> None: ... + +class TransformDepthCalc(_message.Message): + __slots__ = ["blend_weight", "blur_radius", "reverse"] + BLEND_WEIGHT_FIELD_NUMBER: _ClassVar[int] + BLUR_RADIUS_FIELD_NUMBER: _ClassVar[int] + REVERSE_FIELD_NUMBER: _ClassVar[int] + blend_weight: float + blur_radius: int + reverse: bool + def __init__(self, blend_weight: _Optional[float] = ..., blur_radius: _Optional[int] = ..., reverse: bool = ...) -> None: ... + +class TransformMatrix(_message.Message): + __slots__ = ["data"] + DATA_FIELD_NUMBER: _ClassVar[int] + data: _containers.RepeatedScalarFieldContainer[float] + def __init__(self, data: _Optional[_Iterable[float]] = ...) -> None: ... + +class TransformResample(_message.Message): + __slots__ = ["border_mode", "transform", "prev_transform", "depth_warp", "export_mask"] + BORDER_MODE_FIELD_NUMBER: _ClassVar[int] + TRANSFORM_FIELD_NUMBER: _ClassVar[int] + PREV_TRANSFORM_FIELD_NUMBER: _ClassVar[int] + DEPTH_WARP_FIELD_NUMBER: _ClassVar[int] + EXPORT_MASK_FIELD_NUMBER: _ClassVar[int] + border_mode: BorderMode + transform: TransformMatrix + prev_transform: TransformMatrix + depth_warp: float + export_mask: bool + def __init__(self, border_mode: _Optional[_Union[BorderMode, str]] = ..., transform: _Optional[_Union[TransformMatrix, _Mapping]] = ..., prev_transform: _Optional[_Union[TransformMatrix, _Mapping]] = ..., depth_warp: _Optional[float] = ..., export_mask: bool = ...) -> None: ... + +class CameraParameters(_message.Message): + __slots__ = ["camera_type", "near_plane", "far_plane", "fov"] + CAMERA_TYPE_FIELD_NUMBER: _ClassVar[int] + NEAR_PLANE_FIELD_NUMBER: _ClassVar[int] + FAR_PLANE_FIELD_NUMBER: _ClassVar[int] + FOV_FIELD_NUMBER: _ClassVar[int] + camera_type: CameraType + near_plane: float + far_plane: float + fov: float + def __init__(self, camera_type: _Optional[_Union[CameraType, str]] = ..., near_plane: _Optional[float] = ..., far_plane: _Optional[float] = ..., fov: _Optional[float] = ...) -> None: ... + +class TransformCameraPose(_message.Message): + __slots__ = ["world_to_view_matrix", "camera_parameters", "do_prefill", "render_mode"] + WORLD_TO_VIEW_MATRIX_FIELD_NUMBER: _ClassVar[int] + CAMERA_PARAMETERS_FIELD_NUMBER: _ClassVar[int] + DO_PREFILL_FIELD_NUMBER: _ClassVar[int] + RENDER_MODE_FIELD_NUMBER: _ClassVar[int] + world_to_view_matrix: TransformMatrix + camera_parameters: CameraParameters + do_prefill: bool + render_mode: RenderMode + def __init__(self, world_to_view_matrix: _Optional[_Union[TransformMatrix, _Mapping]] = ..., camera_parameters: _Optional[_Union[CameraParameters, _Mapping]] = ..., do_prefill: bool = ..., render_mode: _Optional[_Union[RenderMode, str]] = ...) -> None: ... + +class TransformParameters(_message.Message): + __slots__ = ["color_adjust", "depth_calc", "resample", "camera_pose"] + COLOR_ADJUST_FIELD_NUMBER: _ClassVar[int] + DEPTH_CALC_FIELD_NUMBER: _ClassVar[int] + RESAMPLE_FIELD_NUMBER: _ClassVar[int] + CAMERA_POSE_FIELD_NUMBER: _ClassVar[int] + color_adjust: TransformColorAdjust + depth_calc: TransformDepthCalc + resample: TransformResample + camera_pose: TransformCameraPose + def __init__(self, color_adjust: _Optional[_Union[TransformColorAdjust, _Mapping]] = ..., depth_calc: _Optional[_Union[TransformDepthCalc, _Mapping]] = ..., resample: _Optional[_Union[TransformResample, _Mapping]] = ..., camera_pose: _Optional[_Union[TransformCameraPose, _Mapping]] = ...) -> None: ... + +class AssetParameters(_message.Message): + __slots__ = ["action", "project_id", "use"] + ACTION_FIELD_NUMBER: _ClassVar[int] + PROJECT_ID_FIELD_NUMBER: _ClassVar[int] + USE_FIELD_NUMBER: _ClassVar[int] + action: AssetAction + project_id: str + use: AssetUse + def __init__(self, action: _Optional[_Union[AssetAction, str]] = ..., project_id: _Optional[str] = ..., use: _Optional[_Union[AssetUse, str]] = ...) -> None: ... + +class AnswerMeta(_message.Message): + __slots__ = ["gpu_id", "cpu_id", "node_id", "engine_id"] + GPU_ID_FIELD_NUMBER: _ClassVar[int] + CPU_ID_FIELD_NUMBER: _ClassVar[int] + NODE_ID_FIELD_NUMBER: _ClassVar[int] + ENGINE_ID_FIELD_NUMBER: _ClassVar[int] + gpu_id: str + cpu_id: str + node_id: str + engine_id: str + def __init__(self, gpu_id: _Optional[str] = ..., cpu_id: _Optional[str] = ..., node_id: _Optional[str] = ..., engine_id: _Optional[str] = ...) -> None: ... + +class Answer(_message.Message): + __slots__ = ["answer_id", "request_id", "received", "created", "meta", "artifacts"] + ANSWER_ID_FIELD_NUMBER: _ClassVar[int] + REQUEST_ID_FIELD_NUMBER: _ClassVar[int] + RECEIVED_FIELD_NUMBER: _ClassVar[int] + CREATED_FIELD_NUMBER: _ClassVar[int] + META_FIELD_NUMBER: _ClassVar[int] + ARTIFACTS_FIELD_NUMBER: _ClassVar[int] + answer_id: str + request_id: str + received: int + created: int + meta: AnswerMeta + artifacts: _containers.RepeatedCompositeFieldContainer[Artifact] + def __init__(self, answer_id: _Optional[str] = ..., request_id: _Optional[str] = ..., received: _Optional[int] = ..., created: _Optional[int] = ..., meta: _Optional[_Union[AnswerMeta, _Mapping]] = ..., artifacts: _Optional[_Iterable[_Union[Artifact, _Mapping]]] = ...) -> None: ... + +class AnswerBatch(_message.Message): + __slots__ = ["batch_id", "answers"] + BATCH_ID_FIELD_NUMBER: _ClassVar[int] + ANSWERS_FIELD_NUMBER: _ClassVar[int] + batch_id: str + answers: _containers.RepeatedCompositeFieldContainer[Answer] + def __init__(self, batch_id: _Optional[str] = ..., answers: _Optional[_Iterable[_Union[Answer, _Mapping]]] = ...) -> None: ... + +class Request(_message.Message): + __slots__ = ["engine_id", "request_id", "requested_type", "prompt", "image", "classifier", "asset", "interpolate", "transform", "conditioner", "extras"] + ENGINE_ID_FIELD_NUMBER: _ClassVar[int] + REQUEST_ID_FIELD_NUMBER: _ClassVar[int] + REQUESTED_TYPE_FIELD_NUMBER: _ClassVar[int] + PROMPT_FIELD_NUMBER: _ClassVar[int] + IMAGE_FIELD_NUMBER: _ClassVar[int] + CLASSIFIER_FIELD_NUMBER: _ClassVar[int] + ASSET_FIELD_NUMBER: _ClassVar[int] + INTERPOLATE_FIELD_NUMBER: _ClassVar[int] + TRANSFORM_FIELD_NUMBER: _ClassVar[int] + CONDITIONER_FIELD_NUMBER: _ClassVar[int] + EXTRAS_FIELD_NUMBER: _ClassVar[int] + engine_id: str + request_id: str + requested_type: ArtifactType + prompt: _containers.RepeatedCompositeFieldContainer[Prompt] + image: ImageParameters + classifier: ClassifierParameters + asset: AssetParameters + interpolate: InterpolateParameters + transform: TransformParameters + conditioner: ConditionerParameters + extras: _struct_pb2.Struct + def __init__(self, engine_id: _Optional[str] = ..., request_id: _Optional[str] = ..., requested_type: _Optional[_Union[ArtifactType, str]] = ..., prompt: _Optional[_Iterable[_Union[Prompt, _Mapping]]] = ..., image: _Optional[_Union[ImageParameters, _Mapping]] = ..., classifier: _Optional[_Union[ClassifierParameters, _Mapping]] = ..., asset: _Optional[_Union[AssetParameters, _Mapping]] = ..., interpolate: _Optional[_Union[InterpolateParameters, _Mapping]] = ..., transform: _Optional[_Union[TransformParameters, _Mapping]] = ..., conditioner: _Optional[_Union[ConditionerParameters, _Mapping]] = ..., extras: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...) -> None: ... + +class OnStatus(_message.Message): + __slots__ = ["reason", "target", "action"] + REASON_FIELD_NUMBER: _ClassVar[int] + TARGET_FIELD_NUMBER: _ClassVar[int] + ACTION_FIELD_NUMBER: _ClassVar[int] + reason: _containers.RepeatedScalarFieldContainer[FinishReason] + target: str + action: _containers.RepeatedScalarFieldContainer[StageAction] + def __init__(self, reason: _Optional[_Iterable[_Union[FinishReason, str]]] = ..., target: _Optional[str] = ..., action: _Optional[_Iterable[_Union[StageAction, str]]] = ...) -> None: ... + +class Stage(_message.Message): + __slots__ = ["id", "request", "on_status"] + ID_FIELD_NUMBER: _ClassVar[int] + REQUEST_FIELD_NUMBER: _ClassVar[int] + ON_STATUS_FIELD_NUMBER: _ClassVar[int] + id: str + request: Request + on_status: _containers.RepeatedCompositeFieldContainer[OnStatus] + def __init__(self, id: _Optional[str] = ..., request: _Optional[_Union[Request, _Mapping]] = ..., on_status: _Optional[_Iterable[_Union[OnStatus, _Mapping]]] = ...) -> None: ... + +class ChainRequest(_message.Message): + __slots__ = ["request_id", "stage"] + REQUEST_ID_FIELD_NUMBER: _ClassVar[int] + STAGE_FIELD_NUMBER: _ClassVar[int] + request_id: str + stage: _containers.RepeatedCompositeFieldContainer[Stage] + def __init__(self, request_id: _Optional[str] = ..., stage: _Optional[_Iterable[_Union[Stage, _Mapping]]] = ...) -> None: ... diff --git a/gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2_grpc.py b/gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2_grpc.py new file mode 100644 index 0000000..787d795 --- /dev/null +++ b/gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2_grpc.py @@ -0,0 +1,108 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from stabilityai.platformapis.generation.v1 import generation_pb2 as stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2 + + +class GenerationServiceStub(object): + """ + gRPC services + + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Generate = channel.unary_stream( + '/stabilityai.platformapis.generation.v1.GenerationService/Generate', + request_serializer=stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2.Request.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2.Answer.FromString, + ) + self.ChainGenerate = channel.unary_stream( + '/stabilityai.platformapis.generation.v1.GenerationService/ChainGenerate', + request_serializer=stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2.ChainRequest.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2.Answer.FromString, + ) + + +class GenerationServiceServicer(object): + """ + gRPC services + + """ + + def Generate(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ChainGenerate(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_GenerationServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Generate': grpc.unary_stream_rpc_method_handler( + servicer.Generate, + request_deserializer=stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2.Request.FromString, + response_serializer=stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2.Answer.SerializeToString, + ), + 'ChainGenerate': grpc.unary_stream_rpc_method_handler( + servicer.ChainGenerate, + request_deserializer=stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2.ChainRequest.FromString, + response_serializer=stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2.Answer.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'stabilityai.platformapis.generation.v1.GenerationService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class GenerationService(object): + """ + gRPC services + + """ + + @staticmethod + def Generate(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/stabilityai.platformapis.generation.v1.GenerationService/Generate', + stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2.Request.SerializeToString, + stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2.Answer.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ChainGenerate(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/stabilityai.platformapis.generation.v1.GenerationService/ChainGenerate', + stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2.ChainRequest.SerializeToString, + stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2.Answer.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/gen/proto/py/stabilityai/platformapis/project/v1/project_pb2.py b/gen/proto/py/stabilityai/platformapis/project/v1/project_pb2.py new file mode 100644 index 0000000..2712896 --- /dev/null +++ b/gen/proto/py/stabilityai/platformapis/project/v1/project_pb2.py @@ -0,0 +1,78 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: stabilityai/platformapis/project/v1/project.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from stabilityai.platformapis.generation.v1 import generation_pb2 as stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n1stabilityai/platformapis/project/v1/project.proto\x12#stabilityai.platformapis.project.v1\x1a\x37stabilityai/platformapis/generation/v1/generation.proto\"\xb3\x03\n\x0cProjectAsset\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x10\n\x03uri\x18\x02 \x01(\tR\x03uri\x12\x46\n\x03use\x18\x03 \x01(\x0e\x32\x34.stabilityai.platformapis.project.v1.ProjectAssetUseR\x03use\x12\x12\n\x04name\x18\x04 \x01(\tR\x04name\x12\x12\n\x04size\x18\x05 \x01(\x04R\x04size\x12\x1d\n\ncreated_at\x18\x06 \x01(\x04R\tcreatedAt\x12\x1d\n\nupdated_at\x18\x07 \x01(\x04R\tupdatedAt\x12I\n\x07request\x18\x08 \x01(\x0b\x32/.stabilityai.platformapis.generation.v1.RequestR\x07request\x12O\n\x04tags\x18\t \x03(\x0b\x32;.stabilityai.platformapis.project.v1.ProjectAsset.TagsEntryR\x04tags\x1a\x37\n\tTagsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xc6\x03\n\x07Project\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05title\x18\x02 \x01(\tR\x05title\x12\x19\n\x08owner_id\x18\x03 \x01(\tR\x07ownerId\x12J\n\x06\x61\x63\x63\x65ss\x18\x04 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectAccessR\x06\x61\x63\x63\x65ss\x12J\n\x06status\x18\x05 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectStatusR\x06status\x12\x12\n\x04size\x18\x06 \x01(\x04R\x04size\x12\x45\n\x04\x66ile\x18\x07 \x01(\x0b\x32\x31.stabilityai.platformapis.project.v1.ProjectAssetR\x04\x66ile\x12\x1d\n\ncreated_at\x18\x08 \x01(\x04R\tcreatedAt\x12\x1d\n\nupdated_at\x18\t \x01(\x04R\tupdatedAt\x12I\n\x06\x61ssets\x18\n \x03(\x0b\x32\x31.stabilityai.platformapis.project.v1.ProjectAssetR\x06\x61ssets\"\xc6\x02\n\x14\x43reateProjectRequest\x12\x14\n\x05title\x18\x01 \x01(\tR\x05title\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12J\n\x06\x61\x63\x63\x65ss\x18\x03 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectAccessR\x06\x61\x63\x63\x65ss\x12J\n\x06status\x18\x04 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectStatusR\x06status\x12J\n\x04\x66ile\x18\x05 \x01(\x0b\x32\x31.stabilityai.platformapis.project.v1.ProjectAssetH\x01R\x04\x66ile\x88\x01\x01\x42\x0b\n\t_owner_idB\x07\n\x05_file\"\x85\x03\n\x14UpdateProjectRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12\x19\n\x05title\x18\x03 \x01(\tH\x01R\x05title\x88\x01\x01\x12O\n\x06\x61\x63\x63\x65ss\x18\x04 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectAccessH\x02R\x06\x61\x63\x63\x65ss\x88\x01\x01\x12O\n\x06status\x18\x05 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectStatusH\x03R\x06status\x88\x01\x01\x12J\n\x04\x66ile\x18\x06 \x01(\x0b\x32\x31.stabilityai.platformapis.project.v1.ProjectAssetH\x04R\x04\x66ile\x88\x01\x01\x42\x0b\n\t_owner_idB\x08\n\x06_titleB\t\n\x07_accessB\t\n\x07_statusB\x07\n\x05_file\"A\n\x12ListProjectRequest\x12\x1e\n\x08owner_id\x18\x01 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x42\x0b\n\t_owner_id\"P\n\x11GetProjectRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x42\x0b\n\t_owner_id\"S\n\x14\x44\x65leteProjectRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x42\x0b\n\t_owner_id\"\x98\x04\n\x12QueryAssetsRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12\x19\n\x05since\x18\x03 \x01(\x04H\x01R\x05since\x88\x01\x01\x12\x19\n\x05until\x18\x04 \x01(\x04H\x02R\x05until\x88\x01\x01\x12\x19\n\x05limit\x18\x05 \x01(\x04H\x03R\x05limit\x88\x01\x01\x12 \n\tstart_key\x18\x06 \x01(\tH\x04R\x08startKey\x88\x01\x01\x12\x46\n\x03use\x18\x07 \x03(\x0e\x32\x34.stabilityai.platformapis.project.v1.ProjectAssetUseR\x03use\x12N\n\x08sort_dir\x18\x08 \x01(\x0e\x32\x33.stabilityai.platformapis.project.v1.ProjectSortDirR\x07sortDir\x12U\n\x04tags\x18\t \x03(\x0b\x32\x41.stabilityai.platformapis.project.v1.QueryAssetsRequest.TagsEntryR\x04tags\x1a\x37\n\tTagsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x0b\n\t_owner_idB\x08\n\x06_sinceB\x08\n\x06_untilB\x08\n\x06_limitB\x0c\n\n_start_key\"\x8d\x01\n\x13QueryAssetsResponse\x12I\n\x06\x61ssets\x18\x01 \x03(\x0b\x32\x31.stabilityai.platformapis.project.v1.ProjectAssetR\x06\x61ssets\x12\x1e\n\x08last_key\x18\x02 \x01(\tH\x00R\x07lastKey\x88\x01\x01\x42\x0b\n\t_last_key\"\xfa\x01\n\x10TagAssetsRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIds\x12S\n\x04tags\x18\x04 \x03(\x0b\x32?.stabilityai.platformapis.project.v1.TagAssetsRequest.TagsEntryR\x04tags\x1a\x37\n\tTagsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x0b\n\t_owner_id\"[\n\x11TagAssetsResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIds\"\x89\x01\n\x12UntagAssetsRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIds\x12\x19\n\x08tag_keys\x18\x04 \x03(\tR\x07tagKeysB\x0b\n\t_owner_id\"]\n\x13UntagAssetsResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIds\"o\n\x13\x44\x65leteAssetsRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIdsB\x0b\n\t_owner_id\"^\n\x14\x44\x65leteAssetsResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIds*F\n\rProjectAccess\x12\x1a\n\x16PROJECT_ACCESS_PRIVATE\x10\x00\x12\x19\n\x15PROJECT_ACCESS_PUBLIC\x10\x01*c\n\rProjectStatus\x12\x1b\n\x17PROJECT_STATUS_INACTIVE\x10\x00\x12\x19\n\x15PROJECT_STATUS_ACTIVE\x10\x01\x12\x1a\n\x16PROJECT_STATUS_DELETED\x10\x02*\xb0\x01\n\x0fProjectAssetUse\x12\x1f\n\x1bPROJECT_ASSET_USE_UNDEFINED\x10\x00\x12\x1b\n\x17PROJECT_ASSET_USE_INPUT\x10\x01\x12\x1c\n\x18PROJECT_ASSET_USE_OUTPUT\x10\x02\x12\"\n\x1ePROJECT_ASSET_USE_INTERMEDIATE\x10\x03\x12\x1d\n\x19PROJECT_ASSET_USE_PROJECT\x10\x04*g\n\x0eProjectSortDir\x12 \n\x1cPROJECT_SORT_DIR_UNSPECIFIED\x10\x00\x12\x18\n\x14PROJECT_SORT_DIR_ASC\x10\x01\x12\x19\n\x15PROJECT_SORT_DIR_DESC\x10\x02\x32\xe1\x08\n\x0eProjectService\x12s\n\x06\x43reate\x12\x39.stabilityai.platformapis.project.v1.CreateProjectRequest\x1a,.stabilityai.platformapis.project.v1.Project\"\x00\x12s\n\x06Update\x12\x39.stabilityai.platformapis.project.v1.UpdateProjectRequest\x1a,.stabilityai.platformapis.project.v1.Project\"\x00\x12q\n\x04List\x12\x37.stabilityai.platformapis.project.v1.ListProjectRequest\x1a,.stabilityai.platformapis.project.v1.Project\"\x00\x30\x01\x12m\n\x03Get\x12\x36.stabilityai.platformapis.project.v1.GetProjectRequest\x1a,.stabilityai.platformapis.project.v1.Project\"\x00\x12s\n\x06\x44\x65lete\x12\x39.stabilityai.platformapis.project.v1.DeleteProjectRequest\x1a,.stabilityai.platformapis.project.v1.Project\"\x00\x12|\n\tTagAssets\x12\x35.stabilityai.platformapis.project.v1.TagAssetsRequest\x1a\x36.stabilityai.platformapis.project.v1.TagAssetsResponse\"\x00\x12\x82\x01\n\x0bUntagAssets\x12\x37.stabilityai.platformapis.project.v1.UntagAssetsRequest\x1a\x38.stabilityai.platformapis.project.v1.UntagAssetsResponse\"\x00\x12\x82\x01\n\x0bQueryAssets\x12\x37.stabilityai.platformapis.project.v1.QueryAssetsRequest\x1a\x38.stabilityai.platformapis.project.v1.QueryAssetsResponse\"\x00\x12\x85\x01\n\x0c\x44\x65leteAssets\x12\x38.stabilityai.platformapis.project.v1.DeleteAssetsRequest\x1a\x39.stabilityai.platformapis.project.v1.DeleteAssetsResponse\"\x00\x42\xc9\x02\n\'com.stabilityai.platformapis.project.v1B\x0cProjectProtoP\x01Zagithub.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/project/v1;projectv1\xa2\x02\x03SPP\xaa\x02#Stabilityai.Platformapis.Project.V1\xca\x02#Stabilityai\\Platformapis\\Project\\V1\xe2\x02/Stabilityai\\Platformapis\\Project\\V1\\GPBMetadata\xea\x02&Stabilityai::Platformapis::Project::V1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'stabilityai.platformapis.project.v1.project_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\'com.stabilityai.platformapis.project.v1B\014ProjectProtoP\001Zagithub.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/project/v1;projectv1\242\002\003SPP\252\002#Stabilityai.Platformapis.Project.V1\312\002#Stabilityai\\Platformapis\\Project\\V1\342\002/Stabilityai\\Platformapis\\Project\\V1\\GPBMetadata\352\002&Stabilityai::Platformapis::Project::V1' + _PROJECTASSET_TAGSENTRY._options = None + _PROJECTASSET_TAGSENTRY._serialized_options = b'8\001' + _QUERYASSETSREQUEST_TAGSENTRY._options = None + _QUERYASSETSREQUEST_TAGSENTRY._serialized_options = b'8\001' + _TAGASSETSREQUEST_TAGSENTRY._options = None + _TAGASSETSREQUEST_TAGSENTRY._serialized_options = b'8\001' + _globals['_PROJECTACCESS']._serialized_start=3470 + _globals['_PROJECTACCESS']._serialized_end=3540 + _globals['_PROJECTSTATUS']._serialized_start=3542 + _globals['_PROJECTSTATUS']._serialized_end=3641 + _globals['_PROJECTASSETUSE']._serialized_start=3644 + _globals['_PROJECTASSETUSE']._serialized_end=3820 + _globals['_PROJECTSORTDIR']._serialized_start=3822 + _globals['_PROJECTSORTDIR']._serialized_end=3925 + _globals['_PROJECTASSET']._serialized_start=148 + _globals['_PROJECTASSET']._serialized_end=583 + _globals['_PROJECTASSET_TAGSENTRY']._serialized_start=528 + _globals['_PROJECTASSET_TAGSENTRY']._serialized_end=583 + _globals['_PROJECT']._serialized_start=586 + _globals['_PROJECT']._serialized_end=1040 + _globals['_CREATEPROJECTREQUEST']._serialized_start=1043 + _globals['_CREATEPROJECTREQUEST']._serialized_end=1369 + _globals['_UPDATEPROJECTREQUEST']._serialized_start=1372 + _globals['_UPDATEPROJECTREQUEST']._serialized_end=1761 + _globals['_LISTPROJECTREQUEST']._serialized_start=1763 + _globals['_LISTPROJECTREQUEST']._serialized_end=1828 + _globals['_GETPROJECTREQUEST']._serialized_start=1830 + _globals['_GETPROJECTREQUEST']._serialized_end=1910 + _globals['_DELETEPROJECTREQUEST']._serialized_start=1912 + _globals['_DELETEPROJECTREQUEST']._serialized_end=1995 + _globals['_QUERYASSETSREQUEST']._serialized_start=1998 + _globals['_QUERYASSETSREQUEST']._serialized_end=2534 + _globals['_QUERYASSETSREQUEST_TAGSENTRY']._serialized_start=528 + _globals['_QUERYASSETSREQUEST_TAGSENTRY']._serialized_end=583 + _globals['_QUERYASSETSRESPONSE']._serialized_start=2537 + _globals['_QUERYASSETSRESPONSE']._serialized_end=2678 + _globals['_TAGASSETSREQUEST']._serialized_start=2681 + _globals['_TAGASSETSREQUEST']._serialized_end=2931 + _globals['_TAGASSETSREQUEST_TAGSENTRY']._serialized_start=528 + _globals['_TAGASSETSREQUEST_TAGSENTRY']._serialized_end=583 + _globals['_TAGASSETSRESPONSE']._serialized_start=2933 + _globals['_TAGASSETSRESPONSE']._serialized_end=3024 + _globals['_UNTAGASSETSREQUEST']._serialized_start=3027 + _globals['_UNTAGASSETSREQUEST']._serialized_end=3164 + _globals['_UNTAGASSETSRESPONSE']._serialized_start=3166 + _globals['_UNTAGASSETSRESPONSE']._serialized_end=3259 + _globals['_DELETEASSETSREQUEST']._serialized_start=3261 + _globals['_DELETEASSETSREQUEST']._serialized_end=3372 + _globals['_DELETEASSETSRESPONSE']._serialized_start=3374 + _globals['_DELETEASSETSRESPONSE']._serialized_end=3468 + _globals['_PROJECTSERVICE']._serialized_start=3928 + _globals['_PROJECTSERVICE']._serialized_end=5049 +# @@protoc_insertion_point(module_scope) diff --git a/gen/proto/py/stabilityai/platformapis/project/v1/project_pb2.pyi b/gen/proto/py/stabilityai/platformapis/project/v1/project_pb2.pyi new file mode 100644 index 0000000..a9bb93a --- /dev/null +++ b/gen/proto/py/stabilityai/platformapis/project/v1/project_pb2.pyi @@ -0,0 +1,259 @@ +from stabilityai.platformapis.generation.v1 import generation_pb2 as _generation_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class ProjectAccess(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + PROJECT_ACCESS_PRIVATE: _ClassVar[ProjectAccess] + PROJECT_ACCESS_PUBLIC: _ClassVar[ProjectAccess] + +class ProjectStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + PROJECT_STATUS_INACTIVE: _ClassVar[ProjectStatus] + PROJECT_STATUS_ACTIVE: _ClassVar[ProjectStatus] + PROJECT_STATUS_DELETED: _ClassVar[ProjectStatus] + +class ProjectAssetUse(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + PROJECT_ASSET_USE_UNDEFINED: _ClassVar[ProjectAssetUse] + PROJECT_ASSET_USE_INPUT: _ClassVar[ProjectAssetUse] + PROJECT_ASSET_USE_OUTPUT: _ClassVar[ProjectAssetUse] + PROJECT_ASSET_USE_INTERMEDIATE: _ClassVar[ProjectAssetUse] + PROJECT_ASSET_USE_PROJECT: _ClassVar[ProjectAssetUse] + +class ProjectSortDir(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + PROJECT_SORT_DIR_UNSPECIFIED: _ClassVar[ProjectSortDir] + PROJECT_SORT_DIR_ASC: _ClassVar[ProjectSortDir] + PROJECT_SORT_DIR_DESC: _ClassVar[ProjectSortDir] +PROJECT_ACCESS_PRIVATE: ProjectAccess +PROJECT_ACCESS_PUBLIC: ProjectAccess +PROJECT_STATUS_INACTIVE: ProjectStatus +PROJECT_STATUS_ACTIVE: ProjectStatus +PROJECT_STATUS_DELETED: ProjectStatus +PROJECT_ASSET_USE_UNDEFINED: ProjectAssetUse +PROJECT_ASSET_USE_INPUT: ProjectAssetUse +PROJECT_ASSET_USE_OUTPUT: ProjectAssetUse +PROJECT_ASSET_USE_INTERMEDIATE: ProjectAssetUse +PROJECT_ASSET_USE_PROJECT: ProjectAssetUse +PROJECT_SORT_DIR_UNSPECIFIED: ProjectSortDir +PROJECT_SORT_DIR_ASC: ProjectSortDir +PROJECT_SORT_DIR_DESC: ProjectSortDir + +class ProjectAsset(_message.Message): + __slots__ = ["id", "uri", "use", "name", "size", "created_at", "updated_at", "request", "tags"] + class TagsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + ID_FIELD_NUMBER: _ClassVar[int] + URI_FIELD_NUMBER: _ClassVar[int] + USE_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + SIZE_FIELD_NUMBER: _ClassVar[int] + CREATED_AT_FIELD_NUMBER: _ClassVar[int] + UPDATED_AT_FIELD_NUMBER: _ClassVar[int] + REQUEST_FIELD_NUMBER: _ClassVar[int] + TAGS_FIELD_NUMBER: _ClassVar[int] + id: str + uri: str + use: ProjectAssetUse + name: str + size: int + created_at: int + updated_at: int + request: _generation_pb2.Request + tags: _containers.ScalarMap[str, str] + def __init__(self, id: _Optional[str] = ..., uri: _Optional[str] = ..., use: _Optional[_Union[ProjectAssetUse, str]] = ..., name: _Optional[str] = ..., size: _Optional[int] = ..., created_at: _Optional[int] = ..., updated_at: _Optional[int] = ..., request: _Optional[_Union[_generation_pb2.Request, _Mapping]] = ..., tags: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class Project(_message.Message): + __slots__ = ["id", "title", "owner_id", "access", "status", "size", "file", "created_at", "updated_at", "assets"] + ID_FIELD_NUMBER: _ClassVar[int] + TITLE_FIELD_NUMBER: _ClassVar[int] + OWNER_ID_FIELD_NUMBER: _ClassVar[int] + ACCESS_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + SIZE_FIELD_NUMBER: _ClassVar[int] + FILE_FIELD_NUMBER: _ClassVar[int] + CREATED_AT_FIELD_NUMBER: _ClassVar[int] + UPDATED_AT_FIELD_NUMBER: _ClassVar[int] + ASSETS_FIELD_NUMBER: _ClassVar[int] + id: str + title: str + owner_id: str + access: ProjectAccess + status: ProjectStatus + size: int + file: ProjectAsset + created_at: int + updated_at: int + assets: _containers.RepeatedCompositeFieldContainer[ProjectAsset] + def __init__(self, id: _Optional[str] = ..., title: _Optional[str] = ..., owner_id: _Optional[str] = ..., access: _Optional[_Union[ProjectAccess, str]] = ..., status: _Optional[_Union[ProjectStatus, str]] = ..., size: _Optional[int] = ..., file: _Optional[_Union[ProjectAsset, _Mapping]] = ..., created_at: _Optional[int] = ..., updated_at: _Optional[int] = ..., assets: _Optional[_Iterable[_Union[ProjectAsset, _Mapping]]] = ...) -> None: ... + +class CreateProjectRequest(_message.Message): + __slots__ = ["title", "owner_id", "access", "status", "file"] + TITLE_FIELD_NUMBER: _ClassVar[int] + OWNER_ID_FIELD_NUMBER: _ClassVar[int] + ACCESS_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + FILE_FIELD_NUMBER: _ClassVar[int] + title: str + owner_id: str + access: ProjectAccess + status: ProjectStatus + file: ProjectAsset + def __init__(self, title: _Optional[str] = ..., owner_id: _Optional[str] = ..., access: _Optional[_Union[ProjectAccess, str]] = ..., status: _Optional[_Union[ProjectStatus, str]] = ..., file: _Optional[_Union[ProjectAsset, _Mapping]] = ...) -> None: ... + +class UpdateProjectRequest(_message.Message): + __slots__ = ["id", "owner_id", "title", "access", "status", "file"] + ID_FIELD_NUMBER: _ClassVar[int] + OWNER_ID_FIELD_NUMBER: _ClassVar[int] + TITLE_FIELD_NUMBER: _ClassVar[int] + ACCESS_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + FILE_FIELD_NUMBER: _ClassVar[int] + id: str + owner_id: str + title: str + access: ProjectAccess + status: ProjectStatus + file: ProjectAsset + def __init__(self, id: _Optional[str] = ..., owner_id: _Optional[str] = ..., title: _Optional[str] = ..., access: _Optional[_Union[ProjectAccess, str]] = ..., status: _Optional[_Union[ProjectStatus, str]] = ..., file: _Optional[_Union[ProjectAsset, _Mapping]] = ...) -> None: ... + +class ListProjectRequest(_message.Message): + __slots__ = ["owner_id"] + OWNER_ID_FIELD_NUMBER: _ClassVar[int] + owner_id: str + def __init__(self, owner_id: _Optional[str] = ...) -> None: ... + +class GetProjectRequest(_message.Message): + __slots__ = ["id", "owner_id"] + ID_FIELD_NUMBER: _ClassVar[int] + OWNER_ID_FIELD_NUMBER: _ClassVar[int] + id: str + owner_id: str + def __init__(self, id: _Optional[str] = ..., owner_id: _Optional[str] = ...) -> None: ... + +class DeleteProjectRequest(_message.Message): + __slots__ = ["id", "owner_id"] + ID_FIELD_NUMBER: _ClassVar[int] + OWNER_ID_FIELD_NUMBER: _ClassVar[int] + id: str + owner_id: str + def __init__(self, id: _Optional[str] = ..., owner_id: _Optional[str] = ...) -> None: ... + +class QueryAssetsRequest(_message.Message): + __slots__ = ["id", "owner_id", "since", "until", "limit", "start_key", "use", "sort_dir", "tags"] + class TagsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + ID_FIELD_NUMBER: _ClassVar[int] + OWNER_ID_FIELD_NUMBER: _ClassVar[int] + SINCE_FIELD_NUMBER: _ClassVar[int] + UNTIL_FIELD_NUMBER: _ClassVar[int] + LIMIT_FIELD_NUMBER: _ClassVar[int] + START_KEY_FIELD_NUMBER: _ClassVar[int] + USE_FIELD_NUMBER: _ClassVar[int] + SORT_DIR_FIELD_NUMBER: _ClassVar[int] + TAGS_FIELD_NUMBER: _ClassVar[int] + id: str + owner_id: str + since: int + until: int + limit: int + start_key: str + use: _containers.RepeatedScalarFieldContainer[ProjectAssetUse] + sort_dir: ProjectSortDir + tags: _containers.ScalarMap[str, str] + def __init__(self, id: _Optional[str] = ..., owner_id: _Optional[str] = ..., since: _Optional[int] = ..., until: _Optional[int] = ..., limit: _Optional[int] = ..., start_key: _Optional[str] = ..., use: _Optional[_Iterable[_Union[ProjectAssetUse, str]]] = ..., sort_dir: _Optional[_Union[ProjectSortDir, str]] = ..., tags: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class QueryAssetsResponse(_message.Message): + __slots__ = ["assets", "last_key"] + ASSETS_FIELD_NUMBER: _ClassVar[int] + LAST_KEY_FIELD_NUMBER: _ClassVar[int] + assets: _containers.RepeatedCompositeFieldContainer[ProjectAsset] + last_key: str + def __init__(self, assets: _Optional[_Iterable[_Union[ProjectAsset, _Mapping]]] = ..., last_key: _Optional[str] = ...) -> None: ... + +class TagAssetsRequest(_message.Message): + __slots__ = ["id", "owner_id", "asset_ids", "tags"] + class TagsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + ID_FIELD_NUMBER: _ClassVar[int] + OWNER_ID_FIELD_NUMBER: _ClassVar[int] + ASSET_IDS_FIELD_NUMBER: _ClassVar[int] + TAGS_FIELD_NUMBER: _ClassVar[int] + id: str + owner_id: str + asset_ids: _containers.RepeatedScalarFieldContainer[str] + tags: _containers.ScalarMap[str, str] + def __init__(self, id: _Optional[str] = ..., owner_id: _Optional[str] = ..., asset_ids: _Optional[_Iterable[str]] = ..., tags: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class TagAssetsResponse(_message.Message): + __slots__ = ["id", "owner_id", "asset_ids"] + ID_FIELD_NUMBER: _ClassVar[int] + OWNER_ID_FIELD_NUMBER: _ClassVar[int] + ASSET_IDS_FIELD_NUMBER: _ClassVar[int] + id: str + owner_id: str + asset_ids: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, id: _Optional[str] = ..., owner_id: _Optional[str] = ..., asset_ids: _Optional[_Iterable[str]] = ...) -> None: ... + +class UntagAssetsRequest(_message.Message): + __slots__ = ["id", "owner_id", "asset_ids", "tag_keys"] + ID_FIELD_NUMBER: _ClassVar[int] + OWNER_ID_FIELD_NUMBER: _ClassVar[int] + ASSET_IDS_FIELD_NUMBER: _ClassVar[int] + TAG_KEYS_FIELD_NUMBER: _ClassVar[int] + id: str + owner_id: str + asset_ids: _containers.RepeatedScalarFieldContainer[str] + tag_keys: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, id: _Optional[str] = ..., owner_id: _Optional[str] = ..., asset_ids: _Optional[_Iterable[str]] = ..., tag_keys: _Optional[_Iterable[str]] = ...) -> None: ... + +class UntagAssetsResponse(_message.Message): + __slots__ = ["id", "owner_id", "asset_ids"] + ID_FIELD_NUMBER: _ClassVar[int] + OWNER_ID_FIELD_NUMBER: _ClassVar[int] + ASSET_IDS_FIELD_NUMBER: _ClassVar[int] + id: str + owner_id: str + asset_ids: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, id: _Optional[str] = ..., owner_id: _Optional[str] = ..., asset_ids: _Optional[_Iterable[str]] = ...) -> None: ... + +class DeleteAssetsRequest(_message.Message): + __slots__ = ["id", "owner_id", "asset_ids"] + ID_FIELD_NUMBER: _ClassVar[int] + OWNER_ID_FIELD_NUMBER: _ClassVar[int] + ASSET_IDS_FIELD_NUMBER: _ClassVar[int] + id: str + owner_id: str + asset_ids: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, id: _Optional[str] = ..., owner_id: _Optional[str] = ..., asset_ids: _Optional[_Iterable[str]] = ...) -> None: ... + +class DeleteAssetsResponse(_message.Message): + __slots__ = ["id", "owner_id", "asset_ids"] + ID_FIELD_NUMBER: _ClassVar[int] + OWNER_ID_FIELD_NUMBER: _ClassVar[int] + ASSET_IDS_FIELD_NUMBER: _ClassVar[int] + id: str + owner_id: str + asset_ids: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, id: _Optional[str] = ..., owner_id: _Optional[str] = ..., asset_ids: _Optional[_Iterable[str]] = ...) -> None: ... diff --git a/gen/proto/py/stabilityai/platformapis/project/v1/project_pb2_grpc.py b/gen/proto/py/stabilityai/platformapis/project/v1/project_pb2_grpc.py new file mode 100644 index 0000000..6046941 --- /dev/null +++ b/gen/proto/py/stabilityai/platformapis/project/v1/project_pb2_grpc.py @@ -0,0 +1,347 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from stabilityai.platformapis.project.v1 import project_pb2 as stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2 + + +class ProjectServiceStub(object): + """ + gRPC services + + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Create = channel.unary_unary( + '/stabilityai.platformapis.project.v1.ProjectService/Create', + request_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.CreateProjectRequest.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.FromString, + ) + self.Update = channel.unary_unary( + '/stabilityai.platformapis.project.v1.ProjectService/Update', + request_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.UpdateProjectRequest.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.FromString, + ) + self.List = channel.unary_stream( + '/stabilityai.platformapis.project.v1.ProjectService/List', + request_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.ListProjectRequest.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.FromString, + ) + self.Get = channel.unary_unary( + '/stabilityai.platformapis.project.v1.ProjectService/Get', + request_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.GetProjectRequest.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.FromString, + ) + self.Delete = channel.unary_unary( + '/stabilityai.platformapis.project.v1.ProjectService/Delete', + request_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.DeleteProjectRequest.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.FromString, + ) + self.TagAssets = channel.unary_unary( + '/stabilityai.platformapis.project.v1.ProjectService/TagAssets', + request_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.TagAssetsRequest.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.TagAssetsResponse.FromString, + ) + self.UntagAssets = channel.unary_unary( + '/stabilityai.platformapis.project.v1.ProjectService/UntagAssets', + request_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.UntagAssetsRequest.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.UntagAssetsResponse.FromString, + ) + self.QueryAssets = channel.unary_unary( + '/stabilityai.platformapis.project.v1.ProjectService/QueryAssets', + request_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.QueryAssetsRequest.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.QueryAssetsResponse.FromString, + ) + self.DeleteAssets = channel.unary_unary( + '/stabilityai.platformapis.project.v1.ProjectService/DeleteAssets', + request_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.DeleteAssetsRequest.SerializeToString, + response_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.DeleteAssetsResponse.FromString, + ) + + +class ProjectServiceServicer(object): + """ + gRPC services + + """ + + def Create(self, request, context): + """Create a new project if it does not exist + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Update(self, request, context): + """Update an existing project + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def List(self, request, context): + """List all the projects for an organization + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Get(self, request, context): + """Get a project + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Delete(self, request, context): + """Delete a project + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def TagAssets(self, request, context): + """Add or remove tags from an asset + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UntagAssets(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def QueryAssets(self, request, context): + """Query the assets of a project, with additional filtering + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteAssets(self, request, context): + """Delete one or more assets of a project + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ProjectServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Create': grpc.unary_unary_rpc_method_handler( + servicer.Create, + request_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.CreateProjectRequest.FromString, + response_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.SerializeToString, + ), + 'Update': grpc.unary_unary_rpc_method_handler( + servicer.Update, + request_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.UpdateProjectRequest.FromString, + response_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.SerializeToString, + ), + 'List': grpc.unary_stream_rpc_method_handler( + servicer.List, + request_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.ListProjectRequest.FromString, + response_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.SerializeToString, + ), + 'Get': grpc.unary_unary_rpc_method_handler( + servicer.Get, + request_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.GetProjectRequest.FromString, + response_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.SerializeToString, + ), + 'Delete': grpc.unary_unary_rpc_method_handler( + servicer.Delete, + request_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.DeleteProjectRequest.FromString, + response_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.SerializeToString, + ), + 'TagAssets': grpc.unary_unary_rpc_method_handler( + servicer.TagAssets, + request_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.TagAssetsRequest.FromString, + response_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.TagAssetsResponse.SerializeToString, + ), + 'UntagAssets': grpc.unary_unary_rpc_method_handler( + servicer.UntagAssets, + request_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.UntagAssetsRequest.FromString, + response_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.UntagAssetsResponse.SerializeToString, + ), + 'QueryAssets': grpc.unary_unary_rpc_method_handler( + servicer.QueryAssets, + request_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.QueryAssetsRequest.FromString, + response_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.QueryAssetsResponse.SerializeToString, + ), + 'DeleteAssets': grpc.unary_unary_rpc_method_handler( + servicer.DeleteAssets, + request_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.DeleteAssetsRequest.FromString, + response_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.DeleteAssetsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'stabilityai.platformapis.project.v1.ProjectService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class ProjectService(object): + """ + gRPC services + + """ + + @staticmethod + def Create(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/stabilityai.platformapis.project.v1.ProjectService/Create', + stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.CreateProjectRequest.SerializeToString, + stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Update(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/stabilityai.platformapis.project.v1.ProjectService/Update', + stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.UpdateProjectRequest.SerializeToString, + stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def List(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/stabilityai.platformapis.project.v1.ProjectService/List', + stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.ListProjectRequest.SerializeToString, + stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Get(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/stabilityai.platformapis.project.v1.ProjectService/Get', + stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.GetProjectRequest.SerializeToString, + stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Delete(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/stabilityai.platformapis.project.v1.ProjectService/Delete', + stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.DeleteProjectRequest.SerializeToString, + stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def TagAssets(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/stabilityai.platformapis.project.v1.ProjectService/TagAssets', + stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.TagAssetsRequest.SerializeToString, + stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.TagAssetsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UntagAssets(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/stabilityai.platformapis.project.v1.ProjectService/UntagAssets', + stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.UntagAssetsRequest.SerializeToString, + stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.UntagAssetsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def QueryAssets(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/stabilityai.platformapis.project.v1.ProjectService/QueryAssets', + stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.QueryAssetsRequest.SerializeToString, + stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.QueryAssetsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteAssets(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/stabilityai.platformapis.project.v1.ProjectService/DeleteAssets', + stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.DeleteAssetsRequest.SerializeToString, + stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.DeleteAssetsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/gen/proto/swift/coreweave/tensors/tensors.pb.swift b/gen/proto/swift/coreweave/tensors/tensors.pb.swift new file mode 100644 index 0000000..6526112 --- /dev/null +++ b/gen/proto/swift/coreweave/tensors/tensors.pb.swift @@ -0,0 +1,583 @@ +// DO NOT EDIT. +// swift-format-ignore-file +// +// Generated by the Swift generator plugin for the protocol buffer compiler. +// Source: coreweave/tensors/tensors.proto +// +// For information on using the generated types, please see the documentation: +// https://github.com/apple/swift-protobuf/ + +import Foundation +import SwiftProtobuf + +// If the compiler emits an error on this type, it is because this file +// was generated by a version of the `protoc` Swift plug-in that is +// incompatible with the version of SwiftProtobuf to which you are linking. +// Please ensure that you are building against the same version of the API +// that was used to generate this file. +fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck { + struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {} + typealias Version = _2 +} + +enum Tensors_Dtype: SwiftProtobuf.Enum { + typealias RawValue = Int + case dtInvalid // = 0 + case dtFloat32 // = 1 + case dtFloat64 // = 2 + case dtFloat16 // = 3 + case dtBfloat16 // = 4 + case dtComplex32 // = 5 + case dtComplex64 // = 6 + case dtComplex128 // = 7 + case dtUint8 // = 8 + case dtInt8 // = 9 + case dtInt16 // = 10 + case dtInt32 // = 11 + case dtInt64 // = 12 + case dtBool // = 13 + case dtQuint8 // = 14 + case dtQint8 // = 15 + case dtQint32 // = 16 + case dtQuint42 // = 17 + case UNRECOGNIZED(Int) + + init() { + self = .dtInvalid + } + + init?(rawValue: Int) { + switch rawValue { + case 0: self = .dtInvalid + case 1: self = .dtFloat32 + case 2: self = .dtFloat64 + case 3: self = .dtFloat16 + case 4: self = .dtBfloat16 + case 5: self = .dtComplex32 + case 6: self = .dtComplex64 + case 7: self = .dtComplex128 + case 8: self = .dtUint8 + case 9: self = .dtInt8 + case 10: self = .dtInt16 + case 11: self = .dtInt32 + case 12: self = .dtInt64 + case 13: self = .dtBool + case 14: self = .dtQuint8 + case 15: self = .dtQint8 + case 16: self = .dtQint32 + case 17: self = .dtQuint42 + default: self = .UNRECOGNIZED(rawValue) + } + } + + var rawValue: Int { + switch self { + case .dtInvalid: return 0 + case .dtFloat32: return 1 + case .dtFloat64: return 2 + case .dtFloat16: return 3 + case .dtBfloat16: return 4 + case .dtComplex32: return 5 + case .dtComplex64: return 6 + case .dtComplex128: return 7 + case .dtUint8: return 8 + case .dtInt8: return 9 + case .dtInt16: return 10 + case .dtInt32: return 11 + case .dtInt64: return 12 + case .dtBool: return 13 + case .dtQuint8: return 14 + case .dtQint8: return 15 + case .dtQint32: return 16 + case .dtQuint42: return 17 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Tensors_Dtype: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + static var allCases: [Tensors_Dtype] = [ + .dtInvalid, + .dtFloat32, + .dtFloat64, + .dtFloat16, + .dtBfloat16, + .dtComplex32, + .dtComplex64, + .dtComplex128, + .dtUint8, + .dtInt8, + .dtInt16, + .dtInt32, + .dtInt64, + .dtBool, + .dtQuint8, + .dtQint8, + .dtQint32, + .dtQuint42, + ] +} + +#endif // swift(>=4.2) + +enum Tensors_AttributeType: SwiftProtobuf.Enum { + typealias RawValue = Int + case atParameter // = 0 + case atBuffer // = 1 + case UNRECOGNIZED(Int) + + init() { + self = .atParameter + } + + init?(rawValue: Int) { + switch rawValue { + case 0: self = .atParameter + case 1: self = .atBuffer + default: self = .UNRECOGNIZED(rawValue) + } + } + + var rawValue: Int { + switch self { + case .atParameter: return 0 + case .atBuffer: return 1 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Tensors_AttributeType: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + static var allCases: [Tensors_AttributeType] = [ + .atParameter, + .atBuffer, + ] +} + +#endif // swift(>=4.2) + +struct Tensors_Tensor { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var dtype: Tensors_Dtype = .dtInvalid + + var shape: [Int64] = [] + + var data: Data = Data() + + var attrType: Tensors_AttributeType { + get {return _attrType ?? .atParameter} + set {_attrType = newValue} + } + /// Returns true if `attrType` has been explicitly set. + var hasAttrType: Bool {return self._attrType != nil} + /// Clears the value of `attrType`. Subsequent reads from it will return its default value. + mutating func clearAttrType() {self._attrType = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _attrType: Tensors_AttributeType? = nil +} + +struct Tensors_Attribute { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var name: String = String() + + var value: Tensors_Attribute.OneOf_Value? = nil + + var module: Tensors_Module { + get { + if case .module(let v)? = value {return v} + return Tensors_Module() + } + set {value = .module(newValue)} + } + + var tensor: Tensors_Tensor { + get { + if case .tensor(let v)? = value {return v} + return Tensors_Tensor() + } + set {value = .tensor(newValue)} + } + + var string: String { + get { + if case .string(let v)? = value {return v} + return String() + } + set {value = .string(newValue)} + } + + var int64: Int64 { + get { + if case .int64(let v)? = value {return v} + return 0 + } + set {value = .int64(newValue)} + } + + var float: Float { + get { + if case .float(let v)? = value {return v} + return 0 + } + set {value = .float(newValue)} + } + + var bool: Bool { + get { + if case .bool(let v)? = value {return v} + return false + } + set {value = .bool(newValue)} + } + + var unknownFields = SwiftProtobuf.UnknownStorage() + + enum OneOf_Value: Equatable { + case module(Tensors_Module) + case tensor(Tensors_Tensor) + case string(String) + case int64(Int64) + case float(Float) + case bool(Bool) + + #if !swift(>=4.1) + static func ==(lhs: Tensors_Attribute.OneOf_Value, rhs: Tensors_Attribute.OneOf_Value) -> Bool { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch (lhs, rhs) { + case (.module, .module): return { + guard case .module(let l) = lhs, case .module(let r) = rhs else { preconditionFailure() } + return l == r + }() + case (.tensor, .tensor): return { + guard case .tensor(let l) = lhs, case .tensor(let r) = rhs else { preconditionFailure() } + return l == r + }() + case (.string, .string): return { + guard case .string(let l) = lhs, case .string(let r) = rhs else { preconditionFailure() } + return l == r + }() + case (.int64, .int64): return { + guard case .int64(let l) = lhs, case .int64(let r) = rhs else { preconditionFailure() } + return l == r + }() + case (.float, .float): return { + guard case .float(let l) = lhs, case .float(let r) = rhs else { preconditionFailure() } + return l == r + }() + case (.bool, .bool): return { + guard case .bool(let l) = lhs, case .bool(let r) = rhs else { preconditionFailure() } + return l == r + }() + default: return false + } + } + #endif + } + + init() {} +} + +struct Tensors_Module { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var name: String = String() + + var names: [String] = [] + + var attributes: [Tensors_Attribute] = [] + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +#if swift(>=5.5) && canImport(_Concurrency) +extension Tensors_Dtype: @unchecked Sendable {} +extension Tensors_AttributeType: @unchecked Sendable {} +extension Tensors_Tensor: @unchecked Sendable {} +extension Tensors_Attribute: @unchecked Sendable {} +extension Tensors_Attribute.OneOf_Value: @unchecked Sendable {} +extension Tensors_Module: @unchecked Sendable {} +#endif // swift(>=5.5) && canImport(_Concurrency) + +// MARK: - Code below here is support for the SwiftProtobuf runtime. + +fileprivate let _protobuf_package = "tensors" + +extension Tensors_Dtype: SwiftProtobuf._ProtoNameProviding { + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "DT_INVALID"), + 1: .same(proto: "DT_FLOAT32"), + 2: .same(proto: "DT_FLOAT64"), + 3: .same(proto: "DT_FLOAT16"), + 4: .same(proto: "DT_BFLOAT16"), + 5: .same(proto: "DT_COMPLEX32"), + 6: .same(proto: "DT_COMPLEX64"), + 7: .same(proto: "DT_COMPLEX128"), + 8: .same(proto: "DT_UINT8"), + 9: .same(proto: "DT_INT8"), + 10: .same(proto: "DT_INT16"), + 11: .same(proto: "DT_INT32"), + 12: .same(proto: "DT_INT64"), + 13: .same(proto: "DT_BOOL"), + 14: .same(proto: "DT_QUINT8"), + 15: .same(proto: "DT_QINT8"), + 16: .same(proto: "DT_QINT32"), + 17: .same(proto: "DT_QUINT4_2"), + ] +} + +extension Tensors_AttributeType: SwiftProtobuf._ProtoNameProviding { + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "AT_PARAMETER"), + 1: .same(proto: "AT_BUFFER"), + ] +} + +extension Tensors_Tensor: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".Tensor" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "dtype"), + 2: .same(proto: "shape"), + 3: .same(proto: "data"), + 4: .standard(proto: "attr_type"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularEnumField(value: &self.dtype) }() + case 2: try { try decoder.decodeRepeatedInt64Field(value: &self.shape) }() + case 3: try { try decoder.decodeSingularBytesField(value: &self.data) }() + case 4: try { try decoder.decodeSingularEnumField(value: &self._attrType) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if self.dtype != .dtInvalid { + try visitor.visitSingularEnumField(value: self.dtype, fieldNumber: 1) + } + if !self.shape.isEmpty { + try visitor.visitPackedInt64Field(value: self.shape, fieldNumber: 2) + } + if !self.data.isEmpty { + try visitor.visitSingularBytesField(value: self.data, fieldNumber: 3) + } + try { if let v = self._attrType { + try visitor.visitSingularEnumField(value: v, fieldNumber: 4) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Tensors_Tensor, rhs: Tensors_Tensor) -> Bool { + if lhs.dtype != rhs.dtype {return false} + if lhs.shape != rhs.shape {return false} + if lhs.data != rhs.data {return false} + if lhs._attrType != rhs._attrType {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Tensors_Attribute: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".Attribute" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "name"), + 3: .same(proto: "module"), + 4: .same(proto: "tensor"), + 5: .same(proto: "string"), + 6: .same(proto: "int64"), + 7: .same(proto: "float"), + 8: .same(proto: "bool"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.name) }() + case 3: try { + var v: Tensors_Module? + var hadOneofValue = false + if let current = self.value { + hadOneofValue = true + if case .module(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.value = .module(v) + } + }() + case 4: try { + var v: Tensors_Tensor? + var hadOneofValue = false + if let current = self.value { + hadOneofValue = true + if case .tensor(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.value = .tensor(v) + } + }() + case 5: try { + var v: String? + try decoder.decodeSingularStringField(value: &v) + if let v = v { + if self.value != nil {try decoder.handleConflictingOneOf()} + self.value = .string(v) + } + }() + case 6: try { + var v: Int64? + try decoder.decodeSingularInt64Field(value: &v) + if let v = v { + if self.value != nil {try decoder.handleConflictingOneOf()} + self.value = .int64(v) + } + }() + case 7: try { + var v: Float? + try decoder.decodeSingularFloatField(value: &v) + if let v = v { + if self.value != nil {try decoder.handleConflictingOneOf()} + self.value = .float(v) + } + }() + case 8: try { + var v: Bool? + try decoder.decodeSingularBoolField(value: &v) + if let v = v { + if self.value != nil {try decoder.handleConflictingOneOf()} + self.value = .bool(v) + } + }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !self.name.isEmpty { + try visitor.visitSingularStringField(value: self.name, fieldNumber: 1) + } + switch self.value { + case .module?: try { + guard case .module(let v)? = self.value else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + }() + case .tensor?: try { + guard case .tensor(let v)? = self.value else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + }() + case .string?: try { + guard case .string(let v)? = self.value else { preconditionFailure() } + try visitor.visitSingularStringField(value: v, fieldNumber: 5) + }() + case .int64?: try { + guard case .int64(let v)? = self.value else { preconditionFailure() } + try visitor.visitSingularInt64Field(value: v, fieldNumber: 6) + }() + case .float?: try { + guard case .float(let v)? = self.value else { preconditionFailure() } + try visitor.visitSingularFloatField(value: v, fieldNumber: 7) + }() + case .bool?: try { + guard case .bool(let v)? = self.value else { preconditionFailure() } + try visitor.visitSingularBoolField(value: v, fieldNumber: 8) + }() + case nil: break + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Tensors_Attribute, rhs: Tensors_Attribute) -> Bool { + if lhs.name != rhs.name {return false} + if lhs.value != rhs.value {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Tensors_Module: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".Module" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "name"), + 2: .same(proto: "names"), + 3: .same(proto: "attributes"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.name) }() + case 2: try { try decoder.decodeRepeatedStringField(value: &self.names) }() + case 3: try { try decoder.decodeRepeatedMessageField(value: &self.attributes) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if !self.name.isEmpty { + try visitor.visitSingularStringField(value: self.name, fieldNumber: 1) + } + if !self.names.isEmpty { + try visitor.visitRepeatedStringField(value: self.names, fieldNumber: 2) + } + if !self.attributes.isEmpty { + try visitor.visitRepeatedMessageField(value: self.attributes, fieldNumber: 3) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Tensors_Module, rhs: Tensors_Module) -> Bool { + if lhs.name != rhs.name {return false} + if lhs.names != rhs.names {return false} + if lhs.attributes != rhs.attributes {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} diff --git a/gen/proto/swift/stabilityai/platformapis/dashboard/v1/dashboard.connect.swift b/gen/proto/swift/stabilityai/platformapis/dashboard/v1/dashboard.connect.swift new file mode 100644 index 0000000..76bdf44 --- /dev/null +++ b/gen/proto/swift/stabilityai/platformapis/dashboard/v1/dashboard.connect.swift @@ -0,0 +1,173 @@ +// Code generated by protoc-gen-connect-swift. DO NOT EDIT. +// +// Source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// + +import Connect +import Foundation +import SwiftProtobuf + +internal protocol Stabilityai_Api_Dashboard_V1_DashboardServiceClientInterface { + + /// Get info + @available(iOS 13, *) + func `getMe`(request: Stabilityai_Api_Dashboard_V1_EmptyRequest, headers: Connect.Headers) async -> ResponseMessage + + @available(iOS 13, *) + func `getOrganization`(request: Stabilityai_Api_Dashboard_V1_GetOrganizationRequest, headers: Connect.Headers) async -> ResponseMessage + + @available(iOS 13, *) + func `getMetrics`(request: Stabilityai_Api_Dashboard_V1_GetMetricsRequest, headers: Connect.Headers) async -> ResponseMessage + + /// API key management + @available(iOS 13, *) + func `createApikey`(request: Stabilityai_Api_Dashboard_V1_APIKeyRequest, headers: Connect.Headers) async -> ResponseMessage + + @available(iOS 13, *) + func `deleteApikey`(request: Stabilityai_Api_Dashboard_V1_APIKeyFindRequest, headers: Connect.Headers) async -> ResponseMessage + + /// User settings + @available(iOS 13, *) + func `updateDefaultOrganization`(request: Stabilityai_Api_Dashboard_V1_UpdateDefaultOrganizationRequest, headers: Connect.Headers) async -> ResponseMessage + + @available(iOS 13, *) + func `getClientSettings`(request: Stabilityai_Api_Dashboard_V1_EmptyRequest, headers: Connect.Headers) async -> ResponseMessage + + @available(iOS 13, *) + func `setClientSettings`(request: Stabilityai_Api_Dashboard_V1_ClientSettings, headers: Connect.Headers) async -> ResponseMessage + + @available(iOS 13, *) + func `updateUserInfo`(request: Stabilityai_Api_Dashboard_V1_UpdateUserInfoRequest, headers: Connect.Headers) async -> ResponseMessage + + @available(iOS 13, *) + func `createPasswordChangeTicket`(request: Stabilityai_Api_Dashboard_V1_EmptyRequest, headers: Connect.Headers) async -> ResponseMessage + + @available(iOS 13, *) + func `deleteAccount`(request: Stabilityai_Api_Dashboard_V1_EmptyRequest, headers: Connect.Headers) async -> ResponseMessage + + /// Payment functions + @available(iOS 13, *) + func `createCharge`(request: Stabilityai_Api_Dashboard_V1_CreateChargeRequest, headers: Connect.Headers) async -> ResponseMessage + + @available(iOS 13, *) + func `getCharges`(request: Stabilityai_Api_Dashboard_V1_GetChargesRequest, headers: Connect.Headers) async -> ResponseMessage + + @available(iOS 13, *) + func `createAutoChargeIntent`(request: Stabilityai_Api_Dashboard_V1_CreateAutoChargeIntentRequest, headers: Connect.Headers) async -> ResponseMessage + + @available(iOS 13, *) + func `updateAutoChargeIntent`(request: Stabilityai_Api_Dashboard_V1_CreateAutoChargeIntentRequest, headers: Connect.Headers) async -> ResponseMessage + + @available(iOS 13, *) + func `getAutoChargeIntent`(request: Stabilityai_Api_Dashboard_V1_GetAutoChargeRequest, headers: Connect.Headers) async -> ResponseMessage +} + +/// Concrete implementation of `Stabilityai_Api_Dashboard_V1_DashboardServiceClientInterface`. +internal final class Stabilityai_Api_Dashboard_V1_DashboardServiceClient: Stabilityai_Api_Dashboard_V1_DashboardServiceClientInterface { + private let client: Connect.ProtocolClientInterface + + internal init(client: Connect.ProtocolClientInterface) { + self.client = client + } + + @available(iOS 13, *) + internal func `getMe`(request: Stabilityai_Api_Dashboard_V1_EmptyRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { + return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/GetMe", request: request, headers: headers) + } + + @available(iOS 13, *) + internal func `getOrganization`(request: Stabilityai_Api_Dashboard_V1_GetOrganizationRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { + return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/GetOrganization", request: request, headers: headers) + } + + @available(iOS 13, *) + internal func `getMetrics`(request: Stabilityai_Api_Dashboard_V1_GetMetricsRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { + return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/GetMetrics", request: request, headers: headers) + } + + @available(iOS 13, *) + internal func `createApikey`(request: Stabilityai_Api_Dashboard_V1_APIKeyRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { + return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/CreateAPIKey", request: request, headers: headers) + } + + @available(iOS 13, *) + internal func `deleteApikey`(request: Stabilityai_Api_Dashboard_V1_APIKeyFindRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { + return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/DeleteAPIKey", request: request, headers: headers) + } + + @available(iOS 13, *) + internal func `updateDefaultOrganization`(request: Stabilityai_Api_Dashboard_V1_UpdateDefaultOrganizationRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { + return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/UpdateDefaultOrganization", request: request, headers: headers) + } + + @available(iOS 13, *) + internal func `getClientSettings`(request: Stabilityai_Api_Dashboard_V1_EmptyRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { + return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/GetClientSettings", request: request, headers: headers) + } + + @available(iOS 13, *) + internal func `setClientSettings`(request: Stabilityai_Api_Dashboard_V1_ClientSettings, headers: Connect.Headers = [:]) async -> ResponseMessage { + return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/SetClientSettings", request: request, headers: headers) + } + + @available(iOS 13, *) + internal func `updateUserInfo`(request: Stabilityai_Api_Dashboard_V1_UpdateUserInfoRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { + return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/UpdateUserInfo", request: request, headers: headers) + } + + @available(iOS 13, *) + internal func `createPasswordChangeTicket`(request: Stabilityai_Api_Dashboard_V1_EmptyRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { + return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/CreatePasswordChangeTicket", request: request, headers: headers) + } + + @available(iOS 13, *) + internal func `deleteAccount`(request: Stabilityai_Api_Dashboard_V1_EmptyRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { + return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/DeleteAccount", request: request, headers: headers) + } + + @available(iOS 13, *) + internal func `createCharge`(request: Stabilityai_Api_Dashboard_V1_CreateChargeRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { + return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/CreateCharge", request: request, headers: headers) + } + + @available(iOS 13, *) + internal func `getCharges`(request: Stabilityai_Api_Dashboard_V1_GetChargesRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { + return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/GetCharges", request: request, headers: headers) + } + + @available(iOS 13, *) + internal func `createAutoChargeIntent`(request: Stabilityai_Api_Dashboard_V1_CreateAutoChargeIntentRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { + return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/CreateAutoChargeIntent", request: request, headers: headers) + } + + @available(iOS 13, *) + internal func `updateAutoChargeIntent`(request: Stabilityai_Api_Dashboard_V1_CreateAutoChargeIntentRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { + return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/UpdateAutoChargeIntent", request: request, headers: headers) + } + + @available(iOS 13, *) + internal func `getAutoChargeIntent`(request: Stabilityai_Api_Dashboard_V1_GetAutoChargeRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { + return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/GetAutoChargeIntent", request: request, headers: headers) + } + + internal enum Metadata { + internal enum Methods { + internal static let getMe = Connect.MethodSpec(name: "GetMe", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) + internal static let getOrganization = Connect.MethodSpec(name: "GetOrganization", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) + internal static let getMetrics = Connect.MethodSpec(name: "GetMetrics", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) + internal static let createApikey = Connect.MethodSpec(name: "CreateAPIKey", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) + internal static let deleteApikey = Connect.MethodSpec(name: "DeleteAPIKey", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) + internal static let updateDefaultOrganization = Connect.MethodSpec(name: "UpdateDefaultOrganization", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) + internal static let getClientSettings = Connect.MethodSpec(name: "GetClientSettings", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) + internal static let setClientSettings = Connect.MethodSpec(name: "SetClientSettings", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) + internal static let updateUserInfo = Connect.MethodSpec(name: "UpdateUserInfo", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) + internal static let createPasswordChangeTicket = Connect.MethodSpec(name: "CreatePasswordChangeTicket", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) + internal static let deleteAccount = Connect.MethodSpec(name: "DeleteAccount", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) + internal static let createCharge = Connect.MethodSpec(name: "CreateCharge", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) + internal static let getCharges = Connect.MethodSpec(name: "GetCharges", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) + internal static let createAutoChargeIntent = Connect.MethodSpec(name: "CreateAutoChargeIntent", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) + internal static let updateAutoChargeIntent = Connect.MethodSpec(name: "UpdateAutoChargeIntent", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) + internal static let getAutoChargeIntent = Connect.MethodSpec(name: "GetAutoChargeIntent", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) + } + } +} diff --git a/gen/proto/swift/stabilityai/platformapis/dashboard/v1/dashboard.pb.swift b/gen/proto/swift/stabilityai/platformapis/dashboard/v1/dashboard.pb.swift new file mode 100644 index 0000000..3847aaa --- /dev/null +++ b/gen/proto/swift/stabilityai/platformapis/dashboard/v1/dashboard.pb.swift @@ -0,0 +1,1953 @@ +// DO NOT EDIT. +// swift-format-ignore-file +// +// Generated by the Swift generator plugin for the protocol buffer compiler. +// Source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// +// For information on using the generated types, please see the documentation: +// https://github.com/apple/swift-protobuf/ + +import Foundation +import SwiftProtobuf + +// If the compiler emits an error on this type, it is because this file +// was generated by a version of the `protoc` Swift plug-in that is +// incompatible with the version of SwiftProtobuf to which you are linking. +// Please ensure that you are building against the same version of the API +// that was used to generate this file. +fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck { + struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {} + typealias Version = _2 +} + +enum Stabilityai_Api_Dashboard_V1_OrganizationRole: SwiftProtobuf.Enum { + typealias RawValue = Int + case member // = 0 + case accountant // = 1 + case owner // = 2 + case UNRECOGNIZED(Int) + + init() { + self = .member + } + + init?(rawValue: Int) { + switch rawValue { + case 0: self = .member + case 1: self = .accountant + case 2: self = .owner + default: self = .UNRECOGNIZED(rawValue) + } + } + + var rawValue: Int { + switch self { + case .member: return 0 + case .accountant: return 1 + case .owner: return 2 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Stabilityai_Api_Dashboard_V1_OrganizationRole: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + static var allCases: [Stabilityai_Api_Dashboard_V1_OrganizationRole] = [ + .member, + .accountant, + .owner, + ] +} + +#endif // swift(>=4.2) + +struct Stabilityai_Api_Dashboard_V1_OrganizationMember { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var organization: Stabilityai_Api_Dashboard_V1_Organization { + get {return _storage._organization ?? Stabilityai_Api_Dashboard_V1_Organization()} + set {_uniqueStorage()._organization = newValue} + } + /// Returns true if `organization` has been explicitly set. + var hasOrganization: Bool {return _storage._organization != nil} + /// Clears the value of `organization`. Subsequent reads from it will return its default value. + mutating func clearOrganization() {_uniqueStorage()._organization = nil} + + var user: Stabilityai_Api_Dashboard_V1_User { + get {return _storage._user ?? Stabilityai_Api_Dashboard_V1_User()} + set {_uniqueStorage()._user = newValue} + } + /// Returns true if `user` has been explicitly set. + var hasUser: Bool {return _storage._user != nil} + /// Clears the value of `user`. Subsequent reads from it will return its default value. + mutating func clearUser() {_uniqueStorage()._user = nil} + + var role: Stabilityai_Api_Dashboard_V1_OrganizationRole { + get {return _storage._role} + set {_uniqueStorage()._role = newValue} + } + + var isDefault: Bool { + get {return _storage._isDefault} + set {_uniqueStorage()._isDefault = newValue} + } + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _storage = _StorageClass.defaultInstance +} + +struct Stabilityai_Api_Dashboard_V1_OrganizationGrant { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var amountGranted: Double = 0 + + var amountUsed: Double = 0 + + var expiresAt: UInt64 = 0 + + var grantedAt: UInt64 = 0 + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +struct Stabilityai_Api_Dashboard_V1_OrganizationPaymentInfo { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var balance: Double = 0 + + var grants: [Stabilityai_Api_Dashboard_V1_OrganizationGrant] = [] + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +struct Stabilityai_Api_Dashboard_V1_OrganizationAutoCharge { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var enabled: Bool = false + + var id: String = String() + + var createdAt: UInt64 = 0 + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +struct Stabilityai_Api_Dashboard_V1_Organization { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var id: String = String() + + var name: String = String() + + var description_p: String = String() + + var members: [Stabilityai_Api_Dashboard_V1_OrganizationMember] = [] + + var paymentInfo: Stabilityai_Api_Dashboard_V1_OrganizationPaymentInfo { + get {return _paymentInfo ?? Stabilityai_Api_Dashboard_V1_OrganizationPaymentInfo()} + set {_paymentInfo = newValue} + } + /// Returns true if `paymentInfo` has been explicitly set. + var hasPaymentInfo: Bool {return self._paymentInfo != nil} + /// Clears the value of `paymentInfo`. Subsequent reads from it will return its default value. + mutating func clearPaymentInfo() {self._paymentInfo = nil} + + var stripeCustomerID: String { + get {return _stripeCustomerID ?? String()} + set {_stripeCustomerID = newValue} + } + /// Returns true if `stripeCustomerID` has been explicitly set. + var hasStripeCustomerID: Bool {return self._stripeCustomerID != nil} + /// Clears the value of `stripeCustomerID`. Subsequent reads from it will return its default value. + mutating func clearStripeCustomerID() {self._stripeCustomerID = nil} + + var autoCharge: Stabilityai_Api_Dashboard_V1_OrganizationAutoCharge { + get {return _autoCharge ?? Stabilityai_Api_Dashboard_V1_OrganizationAutoCharge()} + set {_autoCharge = newValue} + } + /// Returns true if `autoCharge` has been explicitly set. + var hasAutoCharge: Bool {return self._autoCharge != nil} + /// Clears the value of `autoCharge`. Subsequent reads from it will return its default value. + mutating func clearAutoCharge() {self._autoCharge = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _paymentInfo: Stabilityai_Api_Dashboard_V1_OrganizationPaymentInfo? = nil + fileprivate var _stripeCustomerID: String? = nil + fileprivate var _autoCharge: Stabilityai_Api_Dashboard_V1_OrganizationAutoCharge? = nil +} + +struct Stabilityai_Api_Dashboard_V1_APIKey { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var key: String = String() + + var isSecret: Bool = false + + var createdAt: UInt64 = 0 + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +struct Stabilityai_Api_Dashboard_V1_User { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var id: String = String() + + var authID: String { + get {return _authID ?? String()} + set {_authID = newValue} + } + /// Returns true if `authID` has been explicitly set. + var hasAuthID: Bool {return self._authID != nil} + /// Clears the value of `authID`. Subsequent reads from it will return its default value. + mutating func clearAuthID() {self._authID = nil} + + var profilePicture: String = String() + + var email: String = String() + + var organizations: [Stabilityai_Api_Dashboard_V1_OrganizationMember] = [] + + var apiKeys: [Stabilityai_Api_Dashboard_V1_APIKey] = [] + + var createdAt: UInt64 = 0 + + var emailVerified: Bool { + get {return _emailVerified ?? false} + set {_emailVerified = newValue} + } + /// Returns true if `emailVerified` has been explicitly set. + var hasEmailVerified: Bool {return self._emailVerified != nil} + /// Clears the value of `emailVerified`. Subsequent reads from it will return its default value. + mutating func clearEmailVerified() {self._emailVerified = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _authID: String? = nil + fileprivate var _emailVerified: Bool? = nil +} + +struct Stabilityai_Api_Dashboard_V1_CostData { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var amountTokens: UInt32 = 0 + + var amountCredits: Double = 0 + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +struct Stabilityai_Api_Dashboard_V1_UsageMetric { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var operation: String = String() + + var engine: String = String() + + var inputCost: Stabilityai_Api_Dashboard_V1_CostData { + get {return _inputCost ?? Stabilityai_Api_Dashboard_V1_CostData()} + set {_inputCost = newValue} + } + /// Returns true if `inputCost` has been explicitly set. + var hasInputCost: Bool {return self._inputCost != nil} + /// Clears the value of `inputCost`. Subsequent reads from it will return its default value. + mutating func clearInputCost() {self._inputCost = nil} + + var outputCost: Stabilityai_Api_Dashboard_V1_CostData { + get {return _outputCost ?? Stabilityai_Api_Dashboard_V1_CostData()} + set {_outputCost = newValue} + } + /// Returns true if `outputCost` has been explicitly set. + var hasOutputCost: Bool {return self._outputCost != nil} + /// Clears the value of `outputCost`. Subsequent reads from it will return its default value. + mutating func clearOutputCost() {self._outputCost = nil} + + var user: String { + get {return _user ?? String()} + set {_user = newValue} + } + /// Returns true if `user` has been explicitly set. + var hasUser: Bool {return self._user != nil} + /// Clears the value of `user`. Subsequent reads from it will return its default value. + mutating func clearUser() {self._user = nil} + + var aggregationTimestamp: UInt64 = 0 + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _inputCost: Stabilityai_Api_Dashboard_V1_CostData? = nil + fileprivate var _outputCost: Stabilityai_Api_Dashboard_V1_CostData? = nil + fileprivate var _user: String? = nil +} + +struct Stabilityai_Api_Dashboard_V1_CostTotal { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var amountTokens: UInt32 = 0 + + var amountCredits: Double = 0 + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +struct Stabilityai_Api_Dashboard_V1_TotalMetricsData { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var inputTotal: Stabilityai_Api_Dashboard_V1_CostTotal { + get {return _inputTotal ?? Stabilityai_Api_Dashboard_V1_CostTotal()} + set {_inputTotal = newValue} + } + /// Returns true if `inputTotal` has been explicitly set. + var hasInputTotal: Bool {return self._inputTotal != nil} + /// Clears the value of `inputTotal`. Subsequent reads from it will return its default value. + mutating func clearInputTotal() {self._inputTotal = nil} + + var outputTotal: Stabilityai_Api_Dashboard_V1_CostTotal { + get {return _outputTotal ?? Stabilityai_Api_Dashboard_V1_CostTotal()} + set {_outputTotal = newValue} + } + /// Returns true if `outputTotal` has been explicitly set. + var hasOutputTotal: Bool {return self._outputTotal != nil} + /// Clears the value of `outputTotal`. Subsequent reads from it will return its default value. + mutating func clearOutputTotal() {self._outputTotal = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _inputTotal: Stabilityai_Api_Dashboard_V1_CostTotal? = nil + fileprivate var _outputTotal: Stabilityai_Api_Dashboard_V1_CostTotal? = nil +} + +struct Stabilityai_Api_Dashboard_V1_Metrics { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var metrics: [Stabilityai_Api_Dashboard_V1_UsageMetric] = [] + + var total: Stabilityai_Api_Dashboard_V1_TotalMetricsData { + get {return _total ?? Stabilityai_Api_Dashboard_V1_TotalMetricsData()} + set {_total = newValue} + } + /// Returns true if `total` has been explicitly set. + var hasTotal: Bool {return self._total != nil} + /// Clears the value of `total`. Subsequent reads from it will return its default value. + mutating func clearTotal() {self._total = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _total: Stabilityai_Api_Dashboard_V1_TotalMetricsData? = nil +} + +struct Stabilityai_Api_Dashboard_V1_EmptyRequest { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +struct Stabilityai_Api_Dashboard_V1_GetOrganizationRequest { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var id: String = String() + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +struct Stabilityai_Api_Dashboard_V1_GetMetricsRequest { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var organizationID: String = String() + + var userID: String { + get {return _userID ?? String()} + set {_userID = newValue} + } + /// Returns true if `userID` has been explicitly set. + var hasUserID: Bool {return self._userID != nil} + /// Clears the value of `userID`. Subsequent reads from it will return its default value. + mutating func clearUserID() {self._userID = nil} + + var rangeFrom: UInt64 = 0 + + var rangeTo: UInt64 = 0 + + var includePerRequestMetrics: Bool = false + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _userID: String? = nil +} + +struct Stabilityai_Api_Dashboard_V1_APIKeyRequest { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var isSecret: Bool = false + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +struct Stabilityai_Api_Dashboard_V1_APIKeyFindRequest { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var id: String = String() + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +struct Stabilityai_Api_Dashboard_V1_UpdateDefaultOrganizationRequest { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var organizationID: String = String() + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +struct Stabilityai_Api_Dashboard_V1_ClientSettings { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var settings: Data = Data() + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +struct Stabilityai_Api_Dashboard_V1_CreateAutoChargeIntentRequest { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var organizationID: String = String() + + var monthlyMaximum: UInt64 = 0 + + var minimumValue: UInt64 = 0 + + var amountCredits: UInt64 = 0 + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +struct Stabilityai_Api_Dashboard_V1_CreateChargeRequest { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var amount: UInt64 = 0 + + var organizationID: String = String() + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +struct Stabilityai_Api_Dashboard_V1_GetChargesRequest { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var organizationID: String = String() + + var rangeFrom: UInt64 = 0 + + var rangeTo: UInt64 = 0 + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +struct Stabilityai_Api_Dashboard_V1_Charge { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var id: String = String() + + var paid: Bool = false + + var receiptLink: String = String() + + var paymentLink: String = String() + + var createdAt: UInt64 = 0 + + var amountCredits: UInt64 = 0 + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +struct Stabilityai_Api_Dashboard_V1_Charges { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var charges: [Stabilityai_Api_Dashboard_V1_Charge] = [] + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +struct Stabilityai_Api_Dashboard_V1_GetAutoChargeRequest { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var organizationID: String = String() + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +struct Stabilityai_Api_Dashboard_V1_AutoChargeIntent { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var id: String = String() + + var paymentLink: String = String() + + var createdAt: UInt64 = 0 + + var monthlyMaximum: UInt64 = 0 + + var minimumValue: UInt64 = 0 + + var amountCredits: UInt64 = 0 + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +struct Stabilityai_Api_Dashboard_V1_UpdateUserInfoRequest { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var email: String { + get {return _email ?? String()} + set {_email = newValue} + } + /// Returns true if `email` has been explicitly set. + var hasEmail: Bool {return self._email != nil} + /// Clears the value of `email`. Subsequent reads from it will return its default value. + mutating func clearEmail() {self._email = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _email: String? = nil +} + +struct Stabilityai_Api_Dashboard_V1_UserPasswordChangeTicket { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var ticket: String = String() + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +#if swift(>=5.5) && canImport(_Concurrency) +extension Stabilityai_Api_Dashboard_V1_OrganizationRole: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_OrganizationMember: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_OrganizationGrant: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_OrganizationPaymentInfo: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_OrganizationAutoCharge: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_Organization: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_APIKey: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_User: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_CostData: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_UsageMetric: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_CostTotal: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_TotalMetricsData: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_Metrics: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_EmptyRequest: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_GetOrganizationRequest: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_GetMetricsRequest: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_APIKeyRequest: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_APIKeyFindRequest: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_UpdateDefaultOrganizationRequest: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_ClientSettings: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_CreateAutoChargeIntentRequest: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_CreateChargeRequest: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_GetChargesRequest: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_Charge: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_Charges: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_GetAutoChargeRequest: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_AutoChargeIntent: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_UpdateUserInfoRequest: @unchecked Sendable {} +extension Stabilityai_Api_Dashboard_V1_UserPasswordChangeTicket: @unchecked Sendable {} +#endif // swift(>=5.5) && canImport(_Concurrency) + +// MARK: - Code below here is support for the SwiftProtobuf runtime. + +fileprivate let _protobuf_package = "stabilityai.api.dashboard.v1" + +extension Stabilityai_Api_Dashboard_V1_OrganizationRole: SwiftProtobuf._ProtoNameProviding { + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "MEMBER"), + 1: .same(proto: "ACCOUNTANT"), + 2: .same(proto: "OWNER"), + ] +} + +extension Stabilityai_Api_Dashboard_V1_OrganizationMember: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".OrganizationMember" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "organization"), + 2: .same(proto: "user"), + 3: .same(proto: "role"), + 4: .standard(proto: "is_default"), + ] + + fileprivate class _StorageClass { + var _organization: Stabilityai_Api_Dashboard_V1_Organization? = nil + var _user: Stabilityai_Api_Dashboard_V1_User? = nil + var _role: Stabilityai_Api_Dashboard_V1_OrganizationRole = .member + var _isDefault: Bool = false + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _organization = source._organization + _user = source._user + _role = source._role + _isDefault = source._isDefault + } + } + + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage + } + + mutating func decodeMessage(decoder: inout D) throws { + _ = _uniqueStorage() + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularMessageField(value: &_storage._organization) }() + case 2: try { try decoder.decodeSingularMessageField(value: &_storage._user) }() + case 3: try { try decoder.decodeSingularEnumField(value: &_storage._role) }() + case 4: try { try decoder.decodeSingularBoolField(value: &_storage._isDefault) }() + default: break + } + } + } + } + + func traverse(visitor: inout V) throws { + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + try { if let v = _storage._organization { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + try { if let v = _storage._user { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + if _storage._role != .member { + try visitor.visitSingularEnumField(value: _storage._role, fieldNumber: 3) + } + if _storage._isDefault != false { + try visitor.visitSingularBoolField(value: _storage._isDefault, fieldNumber: 4) + } + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_OrganizationMember, rhs: Stabilityai_Api_Dashboard_V1_OrganizationMember) -> Bool { + if lhs._storage !== rhs._storage { + let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in + let _storage = _args.0 + let rhs_storage = _args.1 + if _storage._organization != rhs_storage._organization {return false} + if _storage._user != rhs_storage._user {return false} + if _storage._role != rhs_storage._role {return false} + if _storage._isDefault != rhs_storage._isDefault {return false} + return true + } + if !storagesAreEqual {return false} + } + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Api_Dashboard_V1_OrganizationGrant: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".OrganizationGrant" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "amount_granted"), + 2: .standard(proto: "amount_used"), + 3: .standard(proto: "expires_at"), + 4: .standard(proto: "granted_at"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularDoubleField(value: &self.amountGranted) }() + case 2: try { try decoder.decodeSingularDoubleField(value: &self.amountUsed) }() + case 3: try { try decoder.decodeSingularUInt64Field(value: &self.expiresAt) }() + case 4: try { try decoder.decodeSingularUInt64Field(value: &self.grantedAt) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if self.amountGranted != 0 { + try visitor.visitSingularDoubleField(value: self.amountGranted, fieldNumber: 1) + } + if self.amountUsed != 0 { + try visitor.visitSingularDoubleField(value: self.amountUsed, fieldNumber: 2) + } + if self.expiresAt != 0 { + try visitor.visitSingularUInt64Field(value: self.expiresAt, fieldNumber: 3) + } + if self.grantedAt != 0 { + try visitor.visitSingularUInt64Field(value: self.grantedAt, fieldNumber: 4) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_OrganizationGrant, rhs: Stabilityai_Api_Dashboard_V1_OrganizationGrant) -> Bool { + if lhs.amountGranted != rhs.amountGranted {return false} + if lhs.amountUsed != rhs.amountUsed {return false} + if lhs.expiresAt != rhs.expiresAt {return false} + if lhs.grantedAt != rhs.grantedAt {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Api_Dashboard_V1_OrganizationPaymentInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".OrganizationPaymentInfo" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "balance"), + 2: .same(proto: "grants"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularDoubleField(value: &self.balance) }() + case 2: try { try decoder.decodeRepeatedMessageField(value: &self.grants) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if self.balance != 0 { + try visitor.visitSingularDoubleField(value: self.balance, fieldNumber: 1) + } + if !self.grants.isEmpty { + try visitor.visitRepeatedMessageField(value: self.grants, fieldNumber: 2) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_OrganizationPaymentInfo, rhs: Stabilityai_Api_Dashboard_V1_OrganizationPaymentInfo) -> Bool { + if lhs.balance != rhs.balance {return false} + if lhs.grants != rhs.grants {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Api_Dashboard_V1_OrganizationAutoCharge: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".OrganizationAutoCharge" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "enabled"), + 2: .same(proto: "id"), + 3: .standard(proto: "created_at"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularBoolField(value: &self.enabled) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 3: try { try decoder.decodeSingularUInt64Field(value: &self.createdAt) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if self.enabled != false { + try visitor.visitSingularBoolField(value: self.enabled, fieldNumber: 1) + } + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 2) + } + if self.createdAt != 0 { + try visitor.visitSingularUInt64Field(value: self.createdAt, fieldNumber: 3) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_OrganizationAutoCharge, rhs: Stabilityai_Api_Dashboard_V1_OrganizationAutoCharge) -> Bool { + if lhs.enabled != rhs.enabled {return false} + if lhs.id != rhs.id {return false} + if lhs.createdAt != rhs.createdAt {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Api_Dashboard_V1_Organization: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".Organization" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .same(proto: "name"), + 3: .same(proto: "description"), + 4: .same(proto: "members"), + 5: .standard(proto: "payment_info"), + 6: .standard(proto: "stripe_customer_id"), + 7: .standard(proto: "auto_charge"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.name) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.description_p) }() + case 4: try { try decoder.decodeRepeatedMessageField(value: &self.members) }() + case 5: try { try decoder.decodeSingularMessageField(value: &self._paymentInfo) }() + case 6: try { try decoder.decodeSingularStringField(value: &self._stripeCustomerID) }() + case 7: try { try decoder.decodeSingularMessageField(value: &self._autoCharge) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } + if !self.name.isEmpty { + try visitor.visitSingularStringField(value: self.name, fieldNumber: 2) + } + if !self.description_p.isEmpty { + try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 3) + } + if !self.members.isEmpty { + try visitor.visitRepeatedMessageField(value: self.members, fieldNumber: 4) + } + try { if let v = self._paymentInfo { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = self._stripeCustomerID { + try visitor.visitSingularStringField(value: v, fieldNumber: 6) + } }() + try { if let v = self._autoCharge { + try visitor.visitSingularMessageField(value: v, fieldNumber: 7) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_Organization, rhs: Stabilityai_Api_Dashboard_V1_Organization) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.name != rhs.name {return false} + if lhs.description_p != rhs.description_p {return false} + if lhs.members != rhs.members {return false} + if lhs._paymentInfo != rhs._paymentInfo {return false} + if lhs._stripeCustomerID != rhs._stripeCustomerID {return false} + if lhs._autoCharge != rhs._autoCharge {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Api_Dashboard_V1_APIKey: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".APIKey" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "key"), + 2: .standard(proto: "is_secret"), + 3: .standard(proto: "created_at"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.key) }() + case 2: try { try decoder.decodeSingularBoolField(value: &self.isSecret) }() + case 3: try { try decoder.decodeSingularUInt64Field(value: &self.createdAt) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if !self.key.isEmpty { + try visitor.visitSingularStringField(value: self.key, fieldNumber: 1) + } + if self.isSecret != false { + try visitor.visitSingularBoolField(value: self.isSecret, fieldNumber: 2) + } + if self.createdAt != 0 { + try visitor.visitSingularUInt64Field(value: self.createdAt, fieldNumber: 3) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_APIKey, rhs: Stabilityai_Api_Dashboard_V1_APIKey) -> Bool { + if lhs.key != rhs.key {return false} + if lhs.isSecret != rhs.isSecret {return false} + if lhs.createdAt != rhs.createdAt {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Api_Dashboard_V1_User: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".User" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .standard(proto: "auth_id"), + 3: .standard(proto: "profile_picture"), + 4: .same(proto: "email"), + 5: .same(proto: "organizations"), + 7: .standard(proto: "api_keys"), + 8: .standard(proto: "created_at"), + 9: .standard(proto: "email_verified"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self._authID) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.profilePicture) }() + case 4: try { try decoder.decodeSingularStringField(value: &self.email) }() + case 5: try { try decoder.decodeRepeatedMessageField(value: &self.organizations) }() + case 7: try { try decoder.decodeRepeatedMessageField(value: &self.apiKeys) }() + case 8: try { try decoder.decodeSingularUInt64Field(value: &self.createdAt) }() + case 9: try { try decoder.decodeSingularBoolField(value: &self._emailVerified) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } + try { if let v = self._authID { + try visitor.visitSingularStringField(value: v, fieldNumber: 2) + } }() + if !self.profilePicture.isEmpty { + try visitor.visitSingularStringField(value: self.profilePicture, fieldNumber: 3) + } + if !self.email.isEmpty { + try visitor.visitSingularStringField(value: self.email, fieldNumber: 4) + } + if !self.organizations.isEmpty { + try visitor.visitRepeatedMessageField(value: self.organizations, fieldNumber: 5) + } + if !self.apiKeys.isEmpty { + try visitor.visitRepeatedMessageField(value: self.apiKeys, fieldNumber: 7) + } + if self.createdAt != 0 { + try visitor.visitSingularUInt64Field(value: self.createdAt, fieldNumber: 8) + } + try { if let v = self._emailVerified { + try visitor.visitSingularBoolField(value: v, fieldNumber: 9) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_User, rhs: Stabilityai_Api_Dashboard_V1_User) -> Bool { + if lhs.id != rhs.id {return false} + if lhs._authID != rhs._authID {return false} + if lhs.profilePicture != rhs.profilePicture {return false} + if lhs.email != rhs.email {return false} + if lhs.organizations != rhs.organizations {return false} + if lhs.apiKeys != rhs.apiKeys {return false} + if lhs.createdAt != rhs.createdAt {return false} + if lhs._emailVerified != rhs._emailVerified {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Api_Dashboard_V1_CostData: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".CostData" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "amount_tokens"), + 2: .standard(proto: "amount_credits"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularUInt32Field(value: &self.amountTokens) }() + case 2: try { try decoder.decodeSingularDoubleField(value: &self.amountCredits) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if self.amountTokens != 0 { + try visitor.visitSingularUInt32Field(value: self.amountTokens, fieldNumber: 1) + } + if self.amountCredits != 0 { + try visitor.visitSingularDoubleField(value: self.amountCredits, fieldNumber: 2) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_CostData, rhs: Stabilityai_Api_Dashboard_V1_CostData) -> Bool { + if lhs.amountTokens != rhs.amountTokens {return false} + if lhs.amountCredits != rhs.amountCredits {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Api_Dashboard_V1_UsageMetric: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".UsageMetric" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "operation"), + 2: .same(proto: "engine"), + 3: .standard(proto: "input_cost"), + 4: .standard(proto: "output_cost"), + 5: .same(proto: "user"), + 6: .standard(proto: "aggregation_timestamp"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.operation) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.engine) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._inputCost) }() + case 4: try { try decoder.decodeSingularMessageField(value: &self._outputCost) }() + case 5: try { try decoder.decodeSingularStringField(value: &self._user) }() + case 6: try { try decoder.decodeSingularUInt64Field(value: &self.aggregationTimestamp) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !self.operation.isEmpty { + try visitor.visitSingularStringField(value: self.operation, fieldNumber: 1) + } + if !self.engine.isEmpty { + try visitor.visitSingularStringField(value: self.engine, fieldNumber: 2) + } + try { if let v = self._inputCost { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + try { if let v = self._outputCost { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() + try { if let v = self._user { + try visitor.visitSingularStringField(value: v, fieldNumber: 5) + } }() + if self.aggregationTimestamp != 0 { + try visitor.visitSingularUInt64Field(value: self.aggregationTimestamp, fieldNumber: 6) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_UsageMetric, rhs: Stabilityai_Api_Dashboard_V1_UsageMetric) -> Bool { + if lhs.operation != rhs.operation {return false} + if lhs.engine != rhs.engine {return false} + if lhs._inputCost != rhs._inputCost {return false} + if lhs._outputCost != rhs._outputCost {return false} + if lhs._user != rhs._user {return false} + if lhs.aggregationTimestamp != rhs.aggregationTimestamp {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Api_Dashboard_V1_CostTotal: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".CostTotal" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "amount_tokens"), + 2: .standard(proto: "amount_credits"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularUInt32Field(value: &self.amountTokens) }() + case 2: try { try decoder.decodeSingularDoubleField(value: &self.amountCredits) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if self.amountTokens != 0 { + try visitor.visitSingularUInt32Field(value: self.amountTokens, fieldNumber: 1) + } + if self.amountCredits != 0 { + try visitor.visitSingularDoubleField(value: self.amountCredits, fieldNumber: 2) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_CostTotal, rhs: Stabilityai_Api_Dashboard_V1_CostTotal) -> Bool { + if lhs.amountTokens != rhs.amountTokens {return false} + if lhs.amountCredits != rhs.amountCredits {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Api_Dashboard_V1_TotalMetricsData: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".TotalMetricsData" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "input_total"), + 2: .standard(proto: "output_total"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularMessageField(value: &self._inputTotal) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._outputTotal) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + try { if let v = self._inputTotal { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + try { if let v = self._outputTotal { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_TotalMetricsData, rhs: Stabilityai_Api_Dashboard_V1_TotalMetricsData) -> Bool { + if lhs._inputTotal != rhs._inputTotal {return false} + if lhs._outputTotal != rhs._outputTotal {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Api_Dashboard_V1_Metrics: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".Metrics" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "metrics"), + 2: .same(proto: "total"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.metrics) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._total) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !self.metrics.isEmpty { + try visitor.visitRepeatedMessageField(value: self.metrics, fieldNumber: 1) + } + try { if let v = self._total { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_Metrics, rhs: Stabilityai_Api_Dashboard_V1_Metrics) -> Bool { + if lhs.metrics != rhs.metrics {return false} + if lhs._total != rhs._total {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Api_Dashboard_V1_EmptyRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".EmptyRequest" + static let _protobuf_nameMap = SwiftProtobuf._NameMap() + + mutating func decodeMessage(decoder: inout D) throws { + while let _ = try decoder.nextFieldNumber() { + } + } + + func traverse(visitor: inout V) throws { + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_EmptyRequest, rhs: Stabilityai_Api_Dashboard_V1_EmptyRequest) -> Bool { + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Api_Dashboard_V1_GetOrganizationRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".GetOrganizationRequest" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_GetOrganizationRequest, rhs: Stabilityai_Api_Dashboard_V1_GetOrganizationRequest) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Api_Dashboard_V1_GetMetricsRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".GetMetricsRequest" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "organization_id"), + 2: .standard(proto: "user_id"), + 3: .standard(proto: "range_from"), + 4: .standard(proto: "range_to"), + 5: .standard(proto: "include_per_request_metrics"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.organizationID) }() + case 2: try { try decoder.decodeSingularStringField(value: &self._userID) }() + case 3: try { try decoder.decodeSingularUInt64Field(value: &self.rangeFrom) }() + case 4: try { try decoder.decodeSingularUInt64Field(value: &self.rangeTo) }() + case 5: try { try decoder.decodeSingularBoolField(value: &self.includePerRequestMetrics) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !self.organizationID.isEmpty { + try visitor.visitSingularStringField(value: self.organizationID, fieldNumber: 1) + } + try { if let v = self._userID { + try visitor.visitSingularStringField(value: v, fieldNumber: 2) + } }() + if self.rangeFrom != 0 { + try visitor.visitSingularUInt64Field(value: self.rangeFrom, fieldNumber: 3) + } + if self.rangeTo != 0 { + try visitor.visitSingularUInt64Field(value: self.rangeTo, fieldNumber: 4) + } + if self.includePerRequestMetrics != false { + try visitor.visitSingularBoolField(value: self.includePerRequestMetrics, fieldNumber: 5) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_GetMetricsRequest, rhs: Stabilityai_Api_Dashboard_V1_GetMetricsRequest) -> Bool { + if lhs.organizationID != rhs.organizationID {return false} + if lhs._userID != rhs._userID {return false} + if lhs.rangeFrom != rhs.rangeFrom {return false} + if lhs.rangeTo != rhs.rangeTo {return false} + if lhs.includePerRequestMetrics != rhs.includePerRequestMetrics {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Api_Dashboard_V1_APIKeyRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".APIKeyRequest" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "is_secret"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularBoolField(value: &self.isSecret) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if self.isSecret != false { + try visitor.visitSingularBoolField(value: self.isSecret, fieldNumber: 1) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_APIKeyRequest, rhs: Stabilityai_Api_Dashboard_V1_APIKeyRequest) -> Bool { + if lhs.isSecret != rhs.isSecret {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Api_Dashboard_V1_APIKeyFindRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".APIKeyFindRequest" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_APIKeyFindRequest, rhs: Stabilityai_Api_Dashboard_V1_APIKeyFindRequest) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Api_Dashboard_V1_UpdateDefaultOrganizationRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".UpdateDefaultOrganizationRequest" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "organization_id"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.organizationID) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if !self.organizationID.isEmpty { + try visitor.visitSingularStringField(value: self.organizationID, fieldNumber: 1) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_UpdateDefaultOrganizationRequest, rhs: Stabilityai_Api_Dashboard_V1_UpdateDefaultOrganizationRequest) -> Bool { + if lhs.organizationID != rhs.organizationID {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Api_Dashboard_V1_ClientSettings: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".ClientSettings" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "settings"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularBytesField(value: &self.settings) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if !self.settings.isEmpty { + try visitor.visitSingularBytesField(value: self.settings, fieldNumber: 1) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_ClientSettings, rhs: Stabilityai_Api_Dashboard_V1_ClientSettings) -> Bool { + if lhs.settings != rhs.settings {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Api_Dashboard_V1_CreateAutoChargeIntentRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".CreateAutoChargeIntentRequest" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "organization_id"), + 2: .standard(proto: "monthly_maximum"), + 3: .standard(proto: "minimum_value"), + 4: .standard(proto: "amount_credits"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.organizationID) }() + case 2: try { try decoder.decodeSingularUInt64Field(value: &self.monthlyMaximum) }() + case 3: try { try decoder.decodeSingularUInt64Field(value: &self.minimumValue) }() + case 4: try { try decoder.decodeSingularUInt64Field(value: &self.amountCredits) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if !self.organizationID.isEmpty { + try visitor.visitSingularStringField(value: self.organizationID, fieldNumber: 1) + } + if self.monthlyMaximum != 0 { + try visitor.visitSingularUInt64Field(value: self.monthlyMaximum, fieldNumber: 2) + } + if self.minimumValue != 0 { + try visitor.visitSingularUInt64Field(value: self.minimumValue, fieldNumber: 3) + } + if self.amountCredits != 0 { + try visitor.visitSingularUInt64Field(value: self.amountCredits, fieldNumber: 4) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_CreateAutoChargeIntentRequest, rhs: Stabilityai_Api_Dashboard_V1_CreateAutoChargeIntentRequest) -> Bool { + if lhs.organizationID != rhs.organizationID {return false} + if lhs.monthlyMaximum != rhs.monthlyMaximum {return false} + if lhs.minimumValue != rhs.minimumValue {return false} + if lhs.amountCredits != rhs.amountCredits {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Api_Dashboard_V1_CreateChargeRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".CreateChargeRequest" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "amount"), + 2: .standard(proto: "organization_id"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularUInt64Field(value: &self.amount) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.organizationID) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if self.amount != 0 { + try visitor.visitSingularUInt64Field(value: self.amount, fieldNumber: 1) + } + if !self.organizationID.isEmpty { + try visitor.visitSingularStringField(value: self.organizationID, fieldNumber: 2) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_CreateChargeRequest, rhs: Stabilityai_Api_Dashboard_V1_CreateChargeRequest) -> Bool { + if lhs.amount != rhs.amount {return false} + if lhs.organizationID != rhs.organizationID {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Api_Dashboard_V1_GetChargesRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".GetChargesRequest" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "organization_id"), + 2: .standard(proto: "range_from"), + 3: .standard(proto: "range_to"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.organizationID) }() + case 2: try { try decoder.decodeSingularUInt64Field(value: &self.rangeFrom) }() + case 3: try { try decoder.decodeSingularUInt64Field(value: &self.rangeTo) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if !self.organizationID.isEmpty { + try visitor.visitSingularStringField(value: self.organizationID, fieldNumber: 1) + } + if self.rangeFrom != 0 { + try visitor.visitSingularUInt64Field(value: self.rangeFrom, fieldNumber: 2) + } + if self.rangeTo != 0 { + try visitor.visitSingularUInt64Field(value: self.rangeTo, fieldNumber: 3) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_GetChargesRequest, rhs: Stabilityai_Api_Dashboard_V1_GetChargesRequest) -> Bool { + if lhs.organizationID != rhs.organizationID {return false} + if lhs.rangeFrom != rhs.rangeFrom {return false} + if lhs.rangeTo != rhs.rangeTo {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Api_Dashboard_V1_Charge: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".Charge" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .same(proto: "paid"), + 3: .standard(proto: "receipt_link"), + 4: .standard(proto: "payment_link"), + 5: .standard(proto: "created_at"), + 6: .standard(proto: "amount_credits"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularBoolField(value: &self.paid) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.receiptLink) }() + case 4: try { try decoder.decodeSingularStringField(value: &self.paymentLink) }() + case 5: try { try decoder.decodeSingularUInt64Field(value: &self.createdAt) }() + case 6: try { try decoder.decodeSingularUInt64Field(value: &self.amountCredits) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } + if self.paid != false { + try visitor.visitSingularBoolField(value: self.paid, fieldNumber: 2) + } + if !self.receiptLink.isEmpty { + try visitor.visitSingularStringField(value: self.receiptLink, fieldNumber: 3) + } + if !self.paymentLink.isEmpty { + try visitor.visitSingularStringField(value: self.paymentLink, fieldNumber: 4) + } + if self.createdAt != 0 { + try visitor.visitSingularUInt64Field(value: self.createdAt, fieldNumber: 5) + } + if self.amountCredits != 0 { + try visitor.visitSingularUInt64Field(value: self.amountCredits, fieldNumber: 6) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_Charge, rhs: Stabilityai_Api_Dashboard_V1_Charge) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.paid != rhs.paid {return false} + if lhs.receiptLink != rhs.receiptLink {return false} + if lhs.paymentLink != rhs.paymentLink {return false} + if lhs.createdAt != rhs.createdAt {return false} + if lhs.amountCredits != rhs.amountCredits {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Api_Dashboard_V1_Charges: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".Charges" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "charges"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.charges) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if !self.charges.isEmpty { + try visitor.visitRepeatedMessageField(value: self.charges, fieldNumber: 1) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_Charges, rhs: Stabilityai_Api_Dashboard_V1_Charges) -> Bool { + if lhs.charges != rhs.charges {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Api_Dashboard_V1_GetAutoChargeRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".GetAutoChargeRequest" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "organization_id"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.organizationID) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if !self.organizationID.isEmpty { + try visitor.visitSingularStringField(value: self.organizationID, fieldNumber: 1) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_GetAutoChargeRequest, rhs: Stabilityai_Api_Dashboard_V1_GetAutoChargeRequest) -> Bool { + if lhs.organizationID != rhs.organizationID {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Api_Dashboard_V1_AutoChargeIntent: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".AutoChargeIntent" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .standard(proto: "payment_link"), + 3: .standard(proto: "created_at"), + 4: .standard(proto: "monthly_maximum"), + 5: .standard(proto: "minimum_value"), + 6: .standard(proto: "amount_credits"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.paymentLink) }() + case 3: try { try decoder.decodeSingularUInt64Field(value: &self.createdAt) }() + case 4: try { try decoder.decodeSingularUInt64Field(value: &self.monthlyMaximum) }() + case 5: try { try decoder.decodeSingularUInt64Field(value: &self.minimumValue) }() + case 6: try { try decoder.decodeSingularUInt64Field(value: &self.amountCredits) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } + if !self.paymentLink.isEmpty { + try visitor.visitSingularStringField(value: self.paymentLink, fieldNumber: 2) + } + if self.createdAt != 0 { + try visitor.visitSingularUInt64Field(value: self.createdAt, fieldNumber: 3) + } + if self.monthlyMaximum != 0 { + try visitor.visitSingularUInt64Field(value: self.monthlyMaximum, fieldNumber: 4) + } + if self.minimumValue != 0 { + try visitor.visitSingularUInt64Field(value: self.minimumValue, fieldNumber: 5) + } + if self.amountCredits != 0 { + try visitor.visitSingularUInt64Field(value: self.amountCredits, fieldNumber: 6) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_AutoChargeIntent, rhs: Stabilityai_Api_Dashboard_V1_AutoChargeIntent) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.paymentLink != rhs.paymentLink {return false} + if lhs.createdAt != rhs.createdAt {return false} + if lhs.monthlyMaximum != rhs.monthlyMaximum {return false} + if lhs.minimumValue != rhs.minimumValue {return false} + if lhs.amountCredits != rhs.amountCredits {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Api_Dashboard_V1_UpdateUserInfoRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".UpdateUserInfoRequest" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "email"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self._email) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + try { if let v = self._email { + try visitor.visitSingularStringField(value: v, fieldNumber: 1) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_UpdateUserInfoRequest, rhs: Stabilityai_Api_Dashboard_V1_UpdateUserInfoRequest) -> Bool { + if lhs._email != rhs._email {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Api_Dashboard_V1_UserPasswordChangeTicket: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".UserPasswordChangeTicket" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "ticket"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.ticket) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if !self.ticket.isEmpty { + try visitor.visitSingularStringField(value: self.ticket, fieldNumber: 1) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Api_Dashboard_V1_UserPasswordChangeTicket, rhs: Stabilityai_Api_Dashboard_V1_UserPasswordChangeTicket) -> Bool { + if lhs.ticket != rhs.ticket {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} diff --git a/gen/proto/swift/stabilityai/platformapis/engines/v1/engines.connect.swift b/gen/proto/swift/stabilityai/platformapis/engines/v1/engines.connect.swift new file mode 100644 index 0000000..976bb5e --- /dev/null +++ b/gen/proto/swift/stabilityai/platformapis/engines/v1/engines.connect.swift @@ -0,0 +1,34 @@ +// Code generated by protoc-gen-connect-swift. DO NOT EDIT. +// +// Source: stabilityai/platformapis/engines/v1/engines.proto +// + +import Connect +import Foundation +import SwiftProtobuf + +internal protocol Stabilityai_Platformapis_Engines_V1_EnginesServiceClientInterface { + + @available(iOS 13, *) + func `listEngines`(request: Stabilityai_Platformapis_Engines_V1_ListEnginesRequest, headers: Connect.Headers) async -> ResponseMessage +} + +/// Concrete implementation of `Stabilityai_Platformapis_Engines_V1_EnginesServiceClientInterface`. +internal final class Stabilityai_Platformapis_Engines_V1_EnginesServiceClient: Stabilityai_Platformapis_Engines_V1_EnginesServiceClientInterface { + private let client: Connect.ProtocolClientInterface + + internal init(client: Connect.ProtocolClientInterface) { + self.client = client + } + + @available(iOS 13, *) + internal func `listEngines`(request: Stabilityai_Platformapis_Engines_V1_ListEnginesRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { + return await self.client.unary(path: "stabilityai.platformapis.engines.v1.EnginesService/ListEngines", request: request, headers: headers) + } + + internal enum Metadata { + internal enum Methods { + internal static let listEngines = Connect.MethodSpec(name: "ListEngines", service: "stabilityai.platformapis.engines.v1.EnginesService", type: .unary) + } + } +} diff --git a/gen/proto/swift/stabilityai/platformapis/engines/v1/engines.pb.swift b/gen/proto/swift/stabilityai/platformapis/engines/v1/engines.pb.swift new file mode 100644 index 0000000..9f17a1e --- /dev/null +++ b/gen/proto/swift/stabilityai/platformapis/engines/v1/engines.pb.swift @@ -0,0 +1,316 @@ +// DO NOT EDIT. +// swift-format-ignore-file +// +// Generated by the Swift generator plugin for the protocol buffer compiler. +// Source: stabilityai/platformapis/engines/v1/engines.proto +// +// For information on using the generated types, please see the documentation: +// https://github.com/apple/swift-protobuf/ + +import Foundation +import SwiftProtobuf + +// If the compiler emits an error on this type, it is because this file +// was generated by a version of the `protoc` Swift plug-in that is +// incompatible with the version of SwiftProtobuf to which you are linking. +// Please ensure that you are building against the same version of the API +// that was used to generate this file. +fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck { + struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {} + typealias Version = _2 +} + +/// Possible engine type +enum Stabilityai_Platformapis_Engines_V1_EngineType: SwiftProtobuf.Enum { + typealias RawValue = Int + case text // = 0 + case picture // = 1 + case audio // = 2 + case video // = 3 + case classification // = 4 + case storage // = 5 + case UNRECOGNIZED(Int) + + init() { + self = .text + } + + init?(rawValue: Int) { + switch rawValue { + case 0: self = .text + case 1: self = .picture + case 2: self = .audio + case 3: self = .video + case 4: self = .classification + case 5: self = .storage + default: self = .UNRECOGNIZED(rawValue) + } + } + + var rawValue: Int { + switch self { + case .text: return 0 + case .picture: return 1 + case .audio: return 2 + case .video: return 3 + case .classification: return 4 + case .storage: return 5 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Stabilityai_Platformapis_Engines_V1_EngineType: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + static var allCases: [Stabilityai_Platformapis_Engines_V1_EngineType] = [ + .text, + .picture, + .audio, + .video, + .classification, + .storage, + ] +} + +#endif // swift(>=4.2) + +enum Stabilityai_Platformapis_Engines_V1_EngineTokenizer: SwiftProtobuf.Enum { + typealias RawValue = Int + case gpt2 // = 0 + case pile // = 1 + case UNRECOGNIZED(Int) + + init() { + self = .gpt2 + } + + init?(rawValue: Int) { + switch rawValue { + case 0: self = .gpt2 + case 1: self = .pile + default: self = .UNRECOGNIZED(rawValue) + } + } + + var rawValue: Int { + switch self { + case .gpt2: return 0 + case .pile: return 1 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Stabilityai_Platformapis_Engines_V1_EngineTokenizer: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + static var allCases: [Stabilityai_Platformapis_Engines_V1_EngineTokenizer] = [ + .gpt2, + .pile, + ] +} + +#endif // swift(>=4.2) + +/// Engine info struct +struct Stabilityai_Platformapis_Engines_V1_EngineInfo { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var id: String = String() + + var owner: String = String() + + var ready: Bool = false + + var type: Stabilityai_Platformapis_Engines_V1_EngineType = .text + + var tokenizer: Stabilityai_Platformapis_Engines_V1_EngineTokenizer = .gpt2 + + var name: String = String() + + var description_p: String = String() + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +/// Empty +struct Stabilityai_Platformapis_Engines_V1_ListEnginesRequest { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +/// Engine info list +struct Stabilityai_Platformapis_Engines_V1_Engines { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var engine: [Stabilityai_Platformapis_Engines_V1_EngineInfo] = [] + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +#if swift(>=5.5) && canImport(_Concurrency) +extension Stabilityai_Platformapis_Engines_V1_EngineType: @unchecked Sendable {} +extension Stabilityai_Platformapis_Engines_V1_EngineTokenizer: @unchecked Sendable {} +extension Stabilityai_Platformapis_Engines_V1_EngineInfo: @unchecked Sendable {} +extension Stabilityai_Platformapis_Engines_V1_ListEnginesRequest: @unchecked Sendable {} +extension Stabilityai_Platformapis_Engines_V1_Engines: @unchecked Sendable {} +#endif // swift(>=5.5) && canImport(_Concurrency) + +// MARK: - Code below here is support for the SwiftProtobuf runtime. + +fileprivate let _protobuf_package = "stabilityai.platformapis.engines.v1" + +extension Stabilityai_Platformapis_Engines_V1_EngineType: SwiftProtobuf._ProtoNameProviding { + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "TEXT"), + 1: .same(proto: "PICTURE"), + 2: .same(proto: "AUDIO"), + 3: .same(proto: "VIDEO"), + 4: .same(proto: "CLASSIFICATION"), + 5: .same(proto: "STORAGE"), + ] +} + +extension Stabilityai_Platformapis_Engines_V1_EngineTokenizer: SwiftProtobuf._ProtoNameProviding { + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "GPT2"), + 1: .same(proto: "PILE"), + ] +} + +extension Stabilityai_Platformapis_Engines_V1_EngineInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".EngineInfo" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .same(proto: "owner"), + 3: .same(proto: "ready"), + 4: .same(proto: "type"), + 5: .same(proto: "tokenizer"), + 6: .same(proto: "name"), + 7: .same(proto: "description"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.owner) }() + case 3: try { try decoder.decodeSingularBoolField(value: &self.ready) }() + case 4: try { try decoder.decodeSingularEnumField(value: &self.type) }() + case 5: try { try decoder.decodeSingularEnumField(value: &self.tokenizer) }() + case 6: try { try decoder.decodeSingularStringField(value: &self.name) }() + case 7: try { try decoder.decodeSingularStringField(value: &self.description_p) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } + if !self.owner.isEmpty { + try visitor.visitSingularStringField(value: self.owner, fieldNumber: 2) + } + if self.ready != false { + try visitor.visitSingularBoolField(value: self.ready, fieldNumber: 3) + } + if self.type != .text { + try visitor.visitSingularEnumField(value: self.type, fieldNumber: 4) + } + if self.tokenizer != .gpt2 { + try visitor.visitSingularEnumField(value: self.tokenizer, fieldNumber: 5) + } + if !self.name.isEmpty { + try visitor.visitSingularStringField(value: self.name, fieldNumber: 6) + } + if !self.description_p.isEmpty { + try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 7) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Engines_V1_EngineInfo, rhs: Stabilityai_Platformapis_Engines_V1_EngineInfo) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.owner != rhs.owner {return false} + if lhs.ready != rhs.ready {return false} + if lhs.type != rhs.type {return false} + if lhs.tokenizer != rhs.tokenizer {return false} + if lhs.name != rhs.name {return false} + if lhs.description_p != rhs.description_p {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Engines_V1_ListEnginesRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".ListEnginesRequest" + static let _protobuf_nameMap = SwiftProtobuf._NameMap() + + mutating func decodeMessage(decoder: inout D) throws { + while let _ = try decoder.nextFieldNumber() { + } + } + + func traverse(visitor: inout V) throws { + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Engines_V1_ListEnginesRequest, rhs: Stabilityai_Platformapis_Engines_V1_ListEnginesRequest) -> Bool { + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Engines_V1_Engines: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".Engines" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "engine"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.engine) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if !self.engine.isEmpty { + try visitor.visitRepeatedMessageField(value: self.engine, fieldNumber: 1) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Engines_V1_Engines, rhs: Stabilityai_Platformapis_Engines_V1_Engines) -> Bool { + if lhs.engine != rhs.engine {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} diff --git a/gen/proto/swift/stabilityai/platformapis/generation/v1/generation.connect.swift b/gen/proto/swift/stabilityai/platformapis/generation/v1/generation.connect.swift new file mode 100644 index 0000000..e108a7a --- /dev/null +++ b/gen/proto/swift/stabilityai/platformapis/generation/v1/generation.connect.swift @@ -0,0 +1,45 @@ +// Code generated by protoc-gen-connect-swift. DO NOT EDIT. +// +// Source: stabilityai/platformapis/generation/v1/generation.proto +// + +import Connect +import Foundation +import SwiftProtobuf + +/// +/// gRPC services +internal protocol Stabilityai_Platformapis_Generation_V1_GenerationServiceClientInterface { + + @available(iOS 13, *) + func `generate`(headers: Connect.Headers) -> any Connect.ServerOnlyAsyncStreamInterface + + @available(iOS 13, *) + func `chainGenerate`(headers: Connect.Headers) -> any Connect.ServerOnlyAsyncStreamInterface +} + +/// Concrete implementation of `Stabilityai_Platformapis_Generation_V1_GenerationServiceClientInterface`. +internal final class Stabilityai_Platformapis_Generation_V1_GenerationServiceClient: Stabilityai_Platformapis_Generation_V1_GenerationServiceClientInterface { + private let client: Connect.ProtocolClientInterface + + internal init(client: Connect.ProtocolClientInterface) { + self.client = client + } + + @available(iOS 13, *) + internal func `generate`(headers: Connect.Headers = [:]) -> any Connect.ServerOnlyAsyncStreamInterface { + return self.client.serverOnlyStream(path: "stabilityai.platformapis.generation.v1.GenerationService/Generate", headers: headers) + } + + @available(iOS 13, *) + internal func `chainGenerate`(headers: Connect.Headers = [:]) -> any Connect.ServerOnlyAsyncStreamInterface { + return self.client.serverOnlyStream(path: "stabilityai.platformapis.generation.v1.GenerationService/ChainGenerate", headers: headers) + } + + internal enum Metadata { + internal enum Methods { + internal static let generate = Connect.MethodSpec(name: "Generate", service: "stabilityai.platformapis.generation.v1.GenerationService", type: .serverStream) + internal static let chainGenerate = Connect.MethodSpec(name: "ChainGenerate", service: "stabilityai.platformapis.generation.v1.GenerationService", type: .serverStream) + } + } +} diff --git a/gen/proto/swift/stabilityai/platformapis/generation/v1/generation.pb.swift b/gen/proto/swift/stabilityai/platformapis/generation/v1/generation.pb.swift new file mode 100644 index 0000000..ffc36c0 --- /dev/null +++ b/gen/proto/swift/stabilityai/platformapis/generation/v1/generation.pb.swift @@ -0,0 +1,5094 @@ +// DO NOT EDIT. +// swift-format-ignore-file +// +// Generated by the Swift generator plugin for the protocol buffer compiler. +// Source: stabilityai/platformapis/generation/v1/generation.proto +// +// For information on using the generated types, please see the documentation: +// https://github.com/apple/swift-protobuf/ + +import Foundation +import SwiftProtobuf + +// If the compiler emits an error on this type, it is because this file +// was generated by a version of the `protoc` Swift plug-in that is +// incompatible with the version of SwiftProtobuf to which you are linking. +// Please ensure that you are building against the same version of the API +// that was used to generate this file. +fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck { + struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {} + typealias Version = _2 +} + +enum Stabilityai_Platformapis_Generation_V1_FinishReason: SwiftProtobuf.Enum { + typealias RawValue = Int + case null // = 0 + case length // = 1 + case stop // = 2 + case error // = 3 + case filter // = 4 + case UNRECOGNIZED(Int) + + init() { + self = .null + } + + init?(rawValue: Int) { + switch rawValue { + case 0: self = .null + case 1: self = .length + case 2: self = .stop + case 3: self = .error + case 4: self = .filter + default: self = .UNRECOGNIZED(rawValue) + } + } + + var rawValue: Int { + switch self { + case .null: return 0 + case .length: return 1 + case .stop: return 2 + case .error: return 3 + case .filter: return 4 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Stabilityai_Platformapis_Generation_V1_FinishReason: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + static var allCases: [Stabilityai_Platformapis_Generation_V1_FinishReason] = [ + .null, + .length, + .stop, + .error, + .filter, + ] +} + +#endif // swift(>=4.2) + +enum Stabilityai_Platformapis_Generation_V1_ArtifactType: SwiftProtobuf.Enum { + typealias RawValue = Int + case artifactNone // = 0 + case artifactImage // = 1 + case artifactVideo // = 2 + case artifactText // = 3 + case artifactTokens // = 4 + case artifactEmbedding // = 5 + case artifactClassifications // = 6 + case artifactMask // = 7 + case artifactLatent // = 8 + case artifactTensor // = 9 + case artifactDepth // = 10 + case UNRECOGNIZED(Int) + + init() { + self = .artifactNone + } + + init?(rawValue: Int) { + switch rawValue { + case 0: self = .artifactNone + case 1: self = .artifactImage + case 2: self = .artifactVideo + case 3: self = .artifactText + case 4: self = .artifactTokens + case 5: self = .artifactEmbedding + case 6: self = .artifactClassifications + case 7: self = .artifactMask + case 8: self = .artifactLatent + case 9: self = .artifactTensor + case 10: self = .artifactDepth + default: self = .UNRECOGNIZED(rawValue) + } + } + + var rawValue: Int { + switch self { + case .artifactNone: return 0 + case .artifactImage: return 1 + case .artifactVideo: return 2 + case .artifactText: return 3 + case .artifactTokens: return 4 + case .artifactEmbedding: return 5 + case .artifactClassifications: return 6 + case .artifactMask: return 7 + case .artifactLatent: return 8 + case .artifactTensor: return 9 + case .artifactDepth: return 10 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Stabilityai_Platformapis_Generation_V1_ArtifactType: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + static var allCases: [Stabilityai_Platformapis_Generation_V1_ArtifactType] = [ + .artifactNone, + .artifactImage, + .artifactVideo, + .artifactText, + .artifactTokens, + .artifactEmbedding, + .artifactClassifications, + .artifactMask, + .artifactLatent, + .artifactTensor, + .artifactDepth, + ] +} + +#endif // swift(>=4.2) + +enum Stabilityai_Platformapis_Generation_V1_MaskedAreaInit: SwiftProtobuf.Enum { + typealias RawValue = Int + case zero // = 0 + case random // = 1 + case original // = 2 + case UNRECOGNIZED(Int) + + init() { + self = .zero + } + + init?(rawValue: Int) { + switch rawValue { + case 0: self = .zero + case 1: self = .random + case 2: self = .original + default: self = .UNRECOGNIZED(rawValue) + } + } + + var rawValue: Int { + switch self { + case .zero: return 0 + case .random: return 1 + case .original: return 2 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Stabilityai_Platformapis_Generation_V1_MaskedAreaInit: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + static var allCases: [Stabilityai_Platformapis_Generation_V1_MaskedAreaInit] = [ + .zero, + .random, + .original, + ] +} + +#endif // swift(>=4.2) + +enum Stabilityai_Platformapis_Generation_V1_WeightMethod: SwiftProtobuf.Enum { + typealias RawValue = Int + case textEncoder // = 0 + case crossAttention // = 1 + case UNRECOGNIZED(Int) + + init() { + self = .textEncoder + } + + init?(rawValue: Int) { + switch rawValue { + case 0: self = .textEncoder + case 1: self = .crossAttention + default: self = .UNRECOGNIZED(rawValue) + } + } + + var rawValue: Int { + switch self { + case .textEncoder: return 0 + case .crossAttention: return 1 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Stabilityai_Platformapis_Generation_V1_WeightMethod: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + static var allCases: [Stabilityai_Platformapis_Generation_V1_WeightMethod] = [ + .textEncoder, + .crossAttention, + ] +} + +#endif // swift(>=4.2) + +/// DiffusionSampler identifies which sampler to use for Diffusion, and represents +/// the internal set of supported samplers. +enum Stabilityai_Platformapis_Generation_V1_DiffusionSampler: SwiftProtobuf.Enum { + typealias RawValue = Int + case samplerDdim // = 0 + case samplerDdpm // = 1 + case samplerKEuler // = 2 + case samplerKEulerAncestral // = 3 + case samplerKHeun // = 4 + case samplerKDpm2 // = 5 + case samplerKDpm2Ancestral // = 6 + case samplerKLms // = 7 + case samplerKDpmpp2SAncestral // = 8 + case samplerKDpmpp2M // = 9 + case samplerKDpmppSde // = 10 + case UNRECOGNIZED(Int) + + init() { + self = .samplerDdim + } + + init?(rawValue: Int) { + switch rawValue { + case 0: self = .samplerDdim + case 1: self = .samplerDdpm + case 2: self = .samplerKEuler + case 3: self = .samplerKEulerAncestral + case 4: self = .samplerKHeun + case 5: self = .samplerKDpm2 + case 6: self = .samplerKDpm2Ancestral + case 7: self = .samplerKLms + case 8: self = .samplerKDpmpp2SAncestral + case 9: self = .samplerKDpmpp2M + case 10: self = .samplerKDpmppSde + default: self = .UNRECOGNIZED(rawValue) + } + } + + var rawValue: Int { + switch self { + case .samplerDdim: return 0 + case .samplerDdpm: return 1 + case .samplerKEuler: return 2 + case .samplerKEulerAncestral: return 3 + case .samplerKHeun: return 4 + case .samplerKDpm2: return 5 + case .samplerKDpm2Ancestral: return 6 + case .samplerKLms: return 7 + case .samplerKDpmpp2SAncestral: return 8 + case .samplerKDpmpp2M: return 9 + case .samplerKDpmppSde: return 10 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Stabilityai_Platformapis_Generation_V1_DiffusionSampler: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + static var allCases: [Stabilityai_Platformapis_Generation_V1_DiffusionSampler] = [ + .samplerDdim, + .samplerDdpm, + .samplerKEuler, + .samplerKEulerAncestral, + .samplerKHeun, + .samplerKDpm2, + .samplerKDpm2Ancestral, + .samplerKLms, + .samplerKDpmpp2SAncestral, + .samplerKDpmpp2M, + .samplerKDpmppSde, + ] +} + +#endif // swift(>=4.2) + +/// Future, unimplemented. +enum Stabilityai_Platformapis_Generation_V1_Upscaler: SwiftProtobuf.Enum { + typealias RawValue = Int + case rgb // = 0 + case gfpgan // = 1 + case esrgan // = 2 + case UNRECOGNIZED(Int) + + init() { + self = .rgb + } + + init?(rawValue: Int) { + switch rawValue { + case 0: self = .rgb + case 1: self = .gfpgan + case 2: self = .esrgan + default: self = .UNRECOGNIZED(rawValue) + } + } + + var rawValue: Int { + switch self { + case .rgb: return 0 + case .gfpgan: return 1 + case .esrgan: return 2 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Stabilityai_Platformapis_Generation_V1_Upscaler: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + static var allCases: [Stabilityai_Platformapis_Generation_V1_Upscaler] = [ + .rgb, + .gfpgan, + .esrgan, + ] +} + +#endif // swift(>=4.2) + +/// Presets for CLIP guidance. +enum Stabilityai_Platformapis_Generation_V1_GuidancePreset: SwiftProtobuf.Enum { + typealias RawValue = Int + case none // = 0 + case simple // = 1 + case fastBlue // = 2 + case fastGreen // = 3 + case slow // = 4 + case slower // = 5 + case slowest // = 6 + case UNRECOGNIZED(Int) + + init() { + self = .none + } + + init?(rawValue: Int) { + switch rawValue { + case 0: self = .none + case 1: self = .simple + case 2: self = .fastBlue + case 3: self = .fastGreen + case 4: self = .slow + case 5: self = .slower + case 6: self = .slowest + default: self = .UNRECOGNIZED(rawValue) + } + } + + var rawValue: Int { + switch self { + case .none: return 0 + case .simple: return 1 + case .fastBlue: return 2 + case .fastGreen: return 3 + case .slow: return 4 + case .slower: return 5 + case .slowest: return 6 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Stabilityai_Platformapis_Generation_V1_GuidancePreset: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + static var allCases: [Stabilityai_Platformapis_Generation_V1_GuidancePreset] = [ + .none, + .simple, + .fastBlue, + .fastGreen, + .slow, + .slower, + .slowest, + ] +} + +#endif // swift(>=4.2) + +enum Stabilityai_Platformapis_Generation_V1_ModelArchitecture: SwiftProtobuf.Enum { + typealias RawValue = Int + case none // = 0 + case clipVit // = 1 + case clipResnet // = 2 + case ldm // = 3 + case UNRECOGNIZED(Int) + + init() { + self = .none + } + + init?(rawValue: Int) { + switch rawValue { + case 0: self = .none + case 1: self = .clipVit + case 2: self = .clipResnet + case 3: self = .ldm + default: self = .UNRECOGNIZED(rawValue) + } + } + + var rawValue: Int { + switch self { + case .none: return 0 + case .clipVit: return 1 + case .clipResnet: return 2 + case .ldm: return 3 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Stabilityai_Platformapis_Generation_V1_ModelArchitecture: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + static var allCases: [Stabilityai_Platformapis_Generation_V1_ModelArchitecture] = [ + .none, + .clipVit, + .clipResnet, + .ldm, + ] +} + +#endif // swift(>=4.2) + +enum Stabilityai_Platformapis_Generation_V1_Action: SwiftProtobuf.Enum { + typealias RawValue = Int + case passthrough // = 0 + case regenerateDuplicate // = 1 + case regenerate // = 2 + case obfuscateDuplicate // = 3 + case obfuscate // = 4 + case discard // = 5 + case UNRECOGNIZED(Int) + + init() { + self = .passthrough + } + + init?(rawValue: Int) { + switch rawValue { + case 0: self = .passthrough + case 1: self = .regenerateDuplicate + case 2: self = .regenerate + case 3: self = .obfuscateDuplicate + case 4: self = .obfuscate + case 5: self = .discard + default: self = .UNRECOGNIZED(rawValue) + } + } + + var rawValue: Int { + switch self { + case .passthrough: return 0 + case .regenerateDuplicate: return 1 + case .regenerate: return 2 + case .obfuscateDuplicate: return 3 + case .obfuscate: return 4 + case .discard: return 5 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Stabilityai_Platformapis_Generation_V1_Action: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + static var allCases: [Stabilityai_Platformapis_Generation_V1_Action] = [ + .passthrough, + .regenerateDuplicate, + .regenerate, + .obfuscateDuplicate, + .obfuscate, + .discard, + ] +} + +#endif // swift(>=4.2) + +enum Stabilityai_Platformapis_Generation_V1_ClassifierMode: SwiftProtobuf.Enum { + typealias RawValue = Int + case clsfrModeZeroshot // = 0 + + ///CLSFR_MODE_ODDSRATIO = 2; + case clsfrModeMulticlass // = 1 + case UNRECOGNIZED(Int) + + init() { + self = .clsfrModeZeroshot + } + + init?(rawValue: Int) { + switch rawValue { + case 0: self = .clsfrModeZeroshot + case 1: self = .clsfrModeMulticlass + default: self = .UNRECOGNIZED(rawValue) + } + } + + var rawValue: Int { + switch self { + case .clsfrModeZeroshot: return 0 + case .clsfrModeMulticlass: return 1 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Stabilityai_Platformapis_Generation_V1_ClassifierMode: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + static var allCases: [Stabilityai_Platformapis_Generation_V1_ClassifierMode] = [ + .clsfrModeZeroshot, + .clsfrModeMulticlass, + ] +} + +#endif // swift(>=4.2) + +enum Stabilityai_Platformapis_Generation_V1_InterpolateMode: SwiftProtobuf.Enum { + typealias RawValue = Int + case interpolateLinear // = 0 + case interpolateRife // = 1 + case interpolateVaeLinear // = 2 + case interpolateVaeSlerp // = 3 + case interpolateFilm // = 4 + case UNRECOGNIZED(Int) + + init() { + self = .interpolateLinear + } + + init?(rawValue: Int) { + switch rawValue { + case 0: self = .interpolateLinear + case 1: self = .interpolateRife + case 2: self = .interpolateVaeLinear + case 3: self = .interpolateVaeSlerp + case 4: self = .interpolateFilm + default: self = .UNRECOGNIZED(rawValue) + } + } + + var rawValue: Int { + switch self { + case .interpolateLinear: return 0 + case .interpolateRife: return 1 + case .interpolateVaeLinear: return 2 + case .interpolateVaeSlerp: return 3 + case .interpolateFilm: return 4 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Stabilityai_Platformapis_Generation_V1_InterpolateMode: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + static var allCases: [Stabilityai_Platformapis_Generation_V1_InterpolateMode] = [ + .interpolateLinear, + .interpolateRife, + .interpolateVaeLinear, + .interpolateVaeSlerp, + .interpolateFilm, + ] +} + +#endif // swift(>=4.2) + +enum Stabilityai_Platformapis_Generation_V1_BorderMode: SwiftProtobuf.Enum { + typealias RawValue = Int + + /// reflect image values across the border + case borderReflect // = 0 + + /// replicate border values outside the image + case borderReplicate // = 1 + + /// wrap around / tile the image values + case borderWrap // = 2 + + /// use 0 for locations outside the image + case borderZero // = 3 + + /// prefill border areas with values matching the colors around the area + case borderPrefill // = 4 + case UNRECOGNIZED(Int) + + init() { + self = .borderReflect + } + + init?(rawValue: Int) { + switch rawValue { + case 0: self = .borderReflect + case 1: self = .borderReplicate + case 2: self = .borderWrap + case 3: self = .borderZero + case 4: self = .borderPrefill + default: self = .UNRECOGNIZED(rawValue) + } + } + + var rawValue: Int { + switch self { + case .borderReflect: return 0 + case .borderReplicate: return 1 + case .borderWrap: return 2 + case .borderZero: return 3 + case .borderPrefill: return 4 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Stabilityai_Platformapis_Generation_V1_BorderMode: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + static var allCases: [Stabilityai_Platformapis_Generation_V1_BorderMode] = [ + .borderReflect, + .borderReplicate, + .borderWrap, + .borderZero, + .borderPrefill, + ] +} + +#endif // swift(>=4.2) + +enum Stabilityai_Platformapis_Generation_V1_ColorMatchMode: SwiftProtobuf.Enum { + typealias RawValue = Int + + /// match hue, saturation, and value histograms + case colorMatchHsv // = 0 + + /// match lightness, a, and b histograms + case colorMatchLab // = 1 + + /// match red, green, and blue histograms + case colorMatchRgb // = 2 + case UNRECOGNIZED(Int) + + init() { + self = .colorMatchHsv + } + + init?(rawValue: Int) { + switch rawValue { + case 0: self = .colorMatchHsv + case 1: self = .colorMatchLab + case 2: self = .colorMatchRgb + default: self = .UNRECOGNIZED(rawValue) + } + } + + var rawValue: Int { + switch self { + case .colorMatchHsv: return 0 + case .colorMatchLab: return 1 + case .colorMatchRgb: return 2 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Stabilityai_Platformapis_Generation_V1_ColorMatchMode: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + static var allCases: [Stabilityai_Platformapis_Generation_V1_ColorMatchMode] = [ + .colorMatchHsv, + .colorMatchLab, + .colorMatchRgb, + ] +} + +#endif // swift(>=4.2) + +enum Stabilityai_Platformapis_Generation_V1_CameraType: SwiftProtobuf.Enum { + typealias RawValue = Int + + /// Perspective camera + case cameraPerspective // = 0 + + /// Orthographic camera. Well suited for isometric animations + case cameraOrthographic // = 1 + case UNRECOGNIZED(Int) + + init() { + self = .cameraPerspective + } + + init?(rawValue: Int) { + switch rawValue { + case 0: self = .cameraPerspective + case 1: self = .cameraOrthographic + default: self = .UNRECOGNIZED(rawValue) + } + } + + var rawValue: Int { + switch self { + case .cameraPerspective: return 0 + case .cameraOrthographic: return 1 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Stabilityai_Platformapis_Generation_V1_CameraType: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + static var allCases: [Stabilityai_Platformapis_Generation_V1_CameraType] = [ + .cameraPerspective, + .cameraOrthographic, + ] +} + +#endif // swift(>=4.2) + +enum Stabilityai_Platformapis_Generation_V1_RenderMode: SwiftProtobuf.Enum { + typealias RawValue = Int + case renderMesh // = 0 + case renderPointcloud // = 1 + case UNRECOGNIZED(Int) + + init() { + self = .renderMesh + } + + init?(rawValue: Int) { + switch rawValue { + case 0: self = .renderMesh + case 1: self = .renderPointcloud + default: self = .UNRECOGNIZED(rawValue) + } + } + + var rawValue: Int { + switch self { + case .renderMesh: return 0 + case .renderPointcloud: return 1 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Stabilityai_Platformapis_Generation_V1_RenderMode: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + static var allCases: [Stabilityai_Platformapis_Generation_V1_RenderMode] = [ + .renderMesh, + .renderPointcloud, + ] +} + +#endif // swift(>=4.2) + +enum Stabilityai_Platformapis_Generation_V1_AssetAction: SwiftProtobuf.Enum { + typealias RawValue = Int + case assetPut // = 0 + case assetGet // = 1 + case assetDelete // = 2 + case UNRECOGNIZED(Int) + + init() { + self = .assetPut + } + + init?(rawValue: Int) { + switch rawValue { + case 0: self = .assetPut + case 1: self = .assetGet + case 2: self = .assetDelete + default: self = .UNRECOGNIZED(rawValue) + } + } + + var rawValue: Int { + switch self { + case .assetPut: return 0 + case .assetGet: return 1 + case .assetDelete: return 2 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Stabilityai_Platformapis_Generation_V1_AssetAction: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + static var allCases: [Stabilityai_Platformapis_Generation_V1_AssetAction] = [ + .assetPut, + .assetGet, + .assetDelete, + ] +} + +#endif // swift(>=4.2) + +/// AssetUse defines how the asset is used within a project. This enum matches +/// the values the project proto. +enum Stabilityai_Platformapis_Generation_V1_AssetUse: SwiftProtobuf.Enum { + typealias RawValue = Int + + /// Asset does not have use defined + case undefined // = 0 + + /// Asset is used as an input for the project + case input // = 1 + + /// Asset is an output from the project + case output // = 2 + + /// Asset is an output from an intermediate step of the project + case intermediate // = 3 + + /// Asset is used as the project file for the project + case project // = 4 + case UNRECOGNIZED(Int) + + init() { + self = .undefined + } + + init?(rawValue: Int) { + switch rawValue { + case 0: self = .undefined + case 1: self = .input + case 2: self = .output + case 3: self = .intermediate + case 4: self = .project + default: self = .UNRECOGNIZED(rawValue) + } + } + + var rawValue: Int { + switch self { + case .undefined: return 0 + case .input: return 1 + case .output: return 2 + case .intermediate: return 3 + case .project: return 4 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Stabilityai_Platformapis_Generation_V1_AssetUse: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + static var allCases: [Stabilityai_Platformapis_Generation_V1_AssetUse] = [ + .undefined, + .input, + .output, + .intermediate, + .project, + ] +} + +#endif // swift(>=4.2) + +enum Stabilityai_Platformapis_Generation_V1_StageAction: SwiftProtobuf.Enum { + typealias RawValue = Int + case pass // = 0 + case discard // = 1 + case `return` // = 2 + case UNRECOGNIZED(Int) + + init() { + self = .pass + } + + init?(rawValue: Int) { + switch rawValue { + case 0: self = .pass + case 1: self = .discard + case 2: self = .return + default: self = .UNRECOGNIZED(rawValue) + } + } + + var rawValue: Int { + switch self { + case .pass: return 0 + case .discard: return 1 + case .return: return 2 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Stabilityai_Platformapis_Generation_V1_StageAction: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + static var allCases: [Stabilityai_Platformapis_Generation_V1_StageAction] = [ + .pass, + .discard, + .return, + ] +} + +#endif // swift(>=4.2) + +/// Generally, a GPT BPE 16-bit token, paired with an optional string representation. +struct Stabilityai_Platformapis_Generation_V1_Token { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var text: String { + get {return _text ?? String()} + set {_text = newValue} + } + /// Returns true if `text` has been explicitly set. + var hasText: Bool {return self._text != nil} + /// Clears the value of `text`. Subsequent reads from it will return its default value. + mutating func clearText() {self._text = nil} + + var id: UInt32 = 0 + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _text: String? = nil +} + +/// Sequence of tokens, paired with the id of the tokenizer used to generate them. +struct Stabilityai_Platformapis_Generation_V1_Tokens { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var tokens: [Stabilityai_Platformapis_Generation_V1_Token] = [] + + var tokenizerID: String { + get {return _tokenizerID ?? String()} + set {_tokenizerID = newValue} + } + /// Returns true if `tokenizerID` has been explicitly set. + var hasTokenizerID: Bool {return self._tokenizerID != nil} + /// Clears the value of `tokenizerID`. Subsequent reads from it will return its default value. + mutating func clearTokenizerID() {self._tokenizerID = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _tokenizerID: String? = nil +} + +/// A tangible Artifact, such as an image, video, or text that is used for input +/// or output. +struct Stabilityai_Platformapis_Generation_V1_Artifact { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var id: UInt64 = 0 + + var type: Stabilityai_Platformapis_Generation_V1_ArtifactType = .artifactNone + + /// MIME type identifier, e.g. "image/png" + var mime: String = String() + + /// Magic number, e.g. "PNG" + var magic: String { + get {return _magic ?? String()} + set {_magic = newValue} + } + /// Returns true if `magic` has been explicitly set. + var hasMagic: Bool {return self._magic != nil} + /// Clears the value of `magic`. Subsequent reads from it will return its default value. + mutating func clearMagic() {self._magic = nil} + + var data: Stabilityai_Platformapis_Generation_V1_Artifact.OneOf_Data? = nil + + /// Binary data, e.g. PNG image + var binary: Data { + get { + if case .binary(let v)? = data {return v} + return Data() + } + set {data = .binary(newValue)} + } + + /// Text data, e.g. text prompt + var text: String { + get { + if case .text(let v)? = data {return v} + return String() + } + set {data = .text(newValue)} + } + + /// Tokenized text data, e.g. GPT tokens + var tokens: Stabilityai_Platformapis_Generation_V1_Tokens { + get { + if case .tokens(let v)? = data {return v} + return Stabilityai_Platformapis_Generation_V1_Tokens() + } + set {data = .tokens(newValue)} + } + + var classifier: Stabilityai_Platformapis_Generation_V1_ClassifierParameters { + get { + if case .classifier(let v)? = data {return v} + return Stabilityai_Platformapis_Generation_V1_ClassifierParameters() + } + set {data = .classifier(newValue)} + } + + /// torch.Tensor: + var tensor: Tensors_Tensor { + get { + if case .tensor(let v)? = data {return v} + return Tensors_Tensor() + } + set {data = .tensor(newValue)} + } + + /// Index of this artifact in input/output list + var index: UInt32 = 0 + + /// Reason for finishing, if applicable + var finishReason: Stabilityai_Platformapis_Generation_V1_FinishReason = .null + + /// Seed used to generate this artifact + var seed: UInt32 = 0 + + /// UUIDv4 of the artifact, used for asset lookup + var uuid: String = String() + + /// Size of the artifact in bytes + var size: UInt64 = 0 + + var unknownFields = SwiftProtobuf.UnknownStorage() + + enum OneOf_Data: Equatable { + /// Binary data, e.g. PNG image + case binary(Data) + /// Text data, e.g. text prompt + case text(String) + /// Tokenized text data, e.g. GPT tokens + case tokens(Stabilityai_Platformapis_Generation_V1_Tokens) + case classifier(Stabilityai_Platformapis_Generation_V1_ClassifierParameters) + /// torch.Tensor: + case tensor(Tensors_Tensor) + + #if !swift(>=4.1) + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_Artifact.OneOf_Data, rhs: Stabilityai_Platformapis_Generation_V1_Artifact.OneOf_Data) -> Bool { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch (lhs, rhs) { + case (.binary, .binary): return { + guard case .binary(let l) = lhs, case .binary(let r) = rhs else { preconditionFailure() } + return l == r + }() + case (.text, .text): return { + guard case .text(let l) = lhs, case .text(let r) = rhs else { preconditionFailure() } + return l == r + }() + case (.tokens, .tokens): return { + guard case .tokens(let l) = lhs, case .tokens(let r) = rhs else { preconditionFailure() } + return l == r + }() + case (.classifier, .classifier): return { + guard case .classifier(let l) = lhs, case .classifier(let r) = rhs else { preconditionFailure() } + return l == r + }() + case (.tensor, .tensor): return { + guard case .tensor(let l) = lhs, case .tensor(let r) = rhs else { preconditionFailure() } + return l == r + }() + default: return false + } + } + #endif + } + + init() {} + + fileprivate var _magic: String? = nil +} + +/// A set of parameters for each individual Prompt. +struct Stabilityai_Platformapis_Generation_V1_PromptParameters { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + /// deprecated, no longer used + var init_p: Bool { + get {return _init_p ?? false} + set {_init_p = newValue} + } + /// Returns true if `init_p` has been explicitly set. + var hasInit_p: Bool {return self._init_p != nil} + /// Clears the value of `init_p`. Subsequent reads from it will return its default value. + mutating func clearInit_p() {self._init_p = nil} + + var weight: Float { + get {return _weight ?? 0} + set {_weight = newValue} + } + /// Returns true if `weight` has been explicitly set. + var hasWeight: Bool {return self._weight != nil} + /// Clears the value of `weight`. Subsequent reads from it will return its default value. + mutating func clearWeight() {self._weight = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _init_p: Bool? = nil + fileprivate var _weight: Float? = nil +} + +/// A Prompt is a special type of Artifact that is used to generate an output. +/// There can be multiple Prompts that affect the same output. Currently, the +/// only Prompts supported are: +/// - Text (singular) +/// - Init Image (singular, optional, type ARTIFACT_IMAGE) +/// - Mask (singular, optional, type ARTIFACT_MASK) +/// - Depth (singular, optional, type ARTIFACT_DEPTH) +struct Stabilityai_Platformapis_Generation_V1_Prompt { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var parameters: Stabilityai_Platformapis_Generation_V1_PromptParameters { + get {return _parameters ?? Stabilityai_Platformapis_Generation_V1_PromptParameters()} + set {_parameters = newValue} + } + /// Returns true if `parameters` has been explicitly set. + var hasParameters: Bool {return self._parameters != nil} + /// Clears the value of `parameters`. Subsequent reads from it will return its default value. + mutating func clearParameters() {self._parameters = nil} + + var prompt: Stabilityai_Platformapis_Generation_V1_Prompt.OneOf_Prompt? = nil + + var text: String { + get { + if case .text(let v)? = prompt {return v} + return String() + } + set {prompt = .text(newValue)} + } + + var tokens: Stabilityai_Platformapis_Generation_V1_Tokens { + get { + if case .tokens(let v)? = prompt {return v} + return Stabilityai_Platformapis_Generation_V1_Tokens() + } + set {prompt = .tokens(newValue)} + } + + var artifact: Stabilityai_Platformapis_Generation_V1_Artifact { + get { + if case .artifact(let v)? = prompt {return v} + return Stabilityai_Platformapis_Generation_V1_Artifact() + } + set {prompt = .artifact(newValue)} + } + + var unknownFields = SwiftProtobuf.UnknownStorage() + + enum OneOf_Prompt: Equatable { + case text(String) + case tokens(Stabilityai_Platformapis_Generation_V1_Tokens) + case artifact(Stabilityai_Platformapis_Generation_V1_Artifact) + + #if !swift(>=4.1) + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_Prompt.OneOf_Prompt, rhs: Stabilityai_Platformapis_Generation_V1_Prompt.OneOf_Prompt) -> Bool { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch (lhs, rhs) { + case (.text, .text): return { + guard case .text(let l) = lhs, case .text(let r) = rhs else { preconditionFailure() } + return l == r + }() + case (.tokens, .tokens): return { + guard case .tokens(let l) = lhs, case .tokens(let r) = rhs else { preconditionFailure() } + return l == r + }() + case (.artifact, .artifact): return { + guard case .artifact(let l) = lhs, case .artifact(let r) = rhs else { preconditionFailure() } + return l == r + }() + default: return false + } + } + #endif + } + + init() {} + + fileprivate var _parameters: Stabilityai_Platformapis_Generation_V1_PromptParameters? = nil +} + +/// Parameters that affect the behavior of the sampler, typically used for CFG. +struct Stabilityai_Platformapis_Generation_V1_SamplerParameters { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var eta: Float { + get {return _eta ?? 0} + set {_eta = newValue} + } + /// Returns true if `eta` has been explicitly set. + var hasEta: Bool {return self._eta != nil} + /// Clears the value of `eta`. Subsequent reads from it will return its default value. + mutating func clearEta() {self._eta = nil} + + var samplingSteps: UInt64 { + get {return _samplingSteps ?? 0} + set {_samplingSteps = newValue} + } + /// Returns true if `samplingSteps` has been explicitly set. + var hasSamplingSteps: Bool {return self._samplingSteps != nil} + /// Clears the value of `samplingSteps`. Subsequent reads from it will return its default value. + mutating func clearSamplingSteps() {self._samplingSteps = nil} + + var latentChannels: UInt64 { + get {return _latentChannels ?? 0} + set {_latentChannels = newValue} + } + /// Returns true if `latentChannels` has been explicitly set. + var hasLatentChannels: Bool {return self._latentChannels != nil} + /// Clears the value of `latentChannels`. Subsequent reads from it will return its default value. + mutating func clearLatentChannels() {self._latentChannels = nil} + + var downsamplingFactor: UInt64 { + get {return _downsamplingFactor ?? 0} + set {_downsamplingFactor = newValue} + } + /// Returns true if `downsamplingFactor` has been explicitly set. + var hasDownsamplingFactor: Bool {return self._downsamplingFactor != nil} + /// Clears the value of `downsamplingFactor`. Subsequent reads from it will return its default value. + mutating func clearDownsamplingFactor() {self._downsamplingFactor = nil} + + var cfgScale: Float { + get {return _cfgScale ?? 0} + set {_cfgScale = newValue} + } + /// Returns true if `cfgScale` has been explicitly set. + var hasCfgScale: Bool {return self._cfgScale != nil} + /// Clears the value of `cfgScale`. Subsequent reads from it will return its default value. + mutating func clearCfgScale() {self._cfgScale = nil} + + /// defaults to 0.99 + var initNoiseScale: Float { + get {return _initNoiseScale ?? 0} + set {_initNoiseScale = newValue} + } + /// Returns true if `initNoiseScale` has been explicitly set. + var hasInitNoiseScale: Bool {return self._initNoiseScale != nil} + /// Clears the value of `initNoiseScale`. Subsequent reads from it will return its default value. + mutating func clearInitNoiseScale() {self._initNoiseScale = nil} + + /// defaults to 0.99 + var stepNoiseScale: Float { + get {return _stepNoiseScale ?? 0} + set {_stepNoiseScale = newValue} + } + /// Returns true if `stepNoiseScale` has been explicitly set. + var hasStepNoiseScale: Bool {return self._stepNoiseScale != nil} + /// Clears the value of `stepNoiseScale`. Subsequent reads from it will return its default value. + mutating func clearStepNoiseScale() {self._stepNoiseScale = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _eta: Float? = nil + fileprivate var _samplingSteps: UInt64? = nil + fileprivate var _latentChannels: UInt64? = nil + fileprivate var _downsamplingFactor: UInt64? = nil + fileprivate var _cfgScale: Float? = nil + fileprivate var _initNoiseScale: Float? = nil + fileprivate var _stepNoiseScale: Float? = nil +} + +/// Unused, but reserved for future use. Adjustments to the latents after +/// initialization. +struct Stabilityai_Platformapis_Generation_V1_ConditionerParameters { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var vectorAdjustPrior: String { + get {return _vectorAdjustPrior ?? String()} + set {_vectorAdjustPrior = newValue} + } + /// Returns true if `vectorAdjustPrior` has been explicitly set. + var hasVectorAdjustPrior: Bool {return self._vectorAdjustPrior != nil} + /// Clears the value of `vectorAdjustPrior`. Subsequent reads from it will return its default value. + mutating func clearVectorAdjustPrior() {self._vectorAdjustPrior = nil} + + var conditioner: Stabilityai_Platformapis_Generation_V1_Model { + get {return _conditioner ?? Stabilityai_Platformapis_Generation_V1_Model()} + set {_conditioner = newValue} + } + /// Returns true if `conditioner` has been explicitly set. + var hasConditioner: Bool {return self._conditioner != nil} + /// Clears the value of `conditioner`. Subsequent reads from it will return its default value. + mutating func clearConditioner() {self._conditioner = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _vectorAdjustPrior: String? = nil + fileprivate var _conditioner: Stabilityai_Platformapis_Generation_V1_Model? = nil +} + +/// When does this schedule definition apply? +struct Stabilityai_Platformapis_Generation_V1_ScheduleParameters { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + /// 0.0 to 1.0 + var start: Float { + get {return _start ?? 0} + set {_start = newValue} + } + /// Returns true if `start` has been explicitly set. + var hasStart: Bool {return self._start != nil} + /// Clears the value of `start`. Subsequent reads from it will return its default value. + mutating func clearStart() {self._start = nil} + + /// 0.0 to 1.0 + var end: Float { + get {return _end ?? 0} + set {_end = newValue} + } + /// Returns true if `end` has been explicitly set. + var hasEnd: Bool {return self._end != nil} + /// Clears the value of `end`. Subsequent reads from it will return its default value. + mutating func clearEnd() {self._end = nil} + + /// float value to apply on this schedule + var value: Float { + get {return _value ?? 0} + set {_value = newValue} + } + /// Returns true if `value` has been explicitly set. + var hasValue: Bool {return self._value != nil} + /// Clears the value of `value`. Subsequent reads from it will return its default value. + mutating func clearValue() {self._value = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _start: Float? = nil + fileprivate var _end: Float? = nil + fileprivate var _value: Float? = nil +} + +/// Parameters that apply to this block of the schedule. +struct Stabilityai_Platformapis_Generation_V1_StepParameter { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var scaledStep: Float = 0 + + var sampler: Stabilityai_Platformapis_Generation_V1_SamplerParameters { + get {return _sampler ?? Stabilityai_Platformapis_Generation_V1_SamplerParameters()} + set {_sampler = newValue} + } + /// Returns true if `sampler` has been explicitly set. + var hasSampler: Bool {return self._sampler != nil} + /// Clears the value of `sampler`. Subsequent reads from it will return its default value. + mutating func clearSampler() {self._sampler = nil} + + var schedule: Stabilityai_Platformapis_Generation_V1_ScheduleParameters { + get {return _schedule ?? Stabilityai_Platformapis_Generation_V1_ScheduleParameters()} + set {_schedule = newValue} + } + /// Returns true if `schedule` has been explicitly set. + var hasSchedule: Bool {return self._schedule != nil} + /// Clears the value of `schedule`. Subsequent reads from it will return its default value. + mutating func clearSchedule() {self._schedule = nil} + + var guidance: Stabilityai_Platformapis_Generation_V1_GuidanceParameters { + get {return _guidance ?? Stabilityai_Platformapis_Generation_V1_GuidanceParameters()} + set {_guidance = newValue} + } + /// Returns true if `guidance` has been explicitly set. + var hasGuidance: Bool {return self._guidance != nil} + /// Clears the value of `guidance`. Subsequent reads from it will return its default value. + mutating func clearGuidance() {self._guidance = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _sampler: Stabilityai_Platformapis_Generation_V1_SamplerParameters? = nil + fileprivate var _schedule: Stabilityai_Platformapis_Generation_V1_ScheduleParameters? = nil + fileprivate var _guidance: Stabilityai_Platformapis_Generation_V1_GuidanceParameters? = nil +} + +struct Stabilityai_Platformapis_Generation_V1_Model { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var architecture: Stabilityai_Platformapis_Generation_V1_ModelArchitecture = .none + + var publisher: String = String() + + var dataset: String = String() + + var version: Float = 0 + + var semanticVersion: String = String() + + var alias: String = String() + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +struct Stabilityai_Platformapis_Generation_V1_CutoutParameters { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + /// Nested cutouts, unsupported + var cutouts: [Stabilityai_Platformapis_Generation_V1_CutoutParameters] = [] + + /// 0 to n, usually 8 to 32, 0 inner + var count: UInt32 { + get {return _count ?? 0} + set {_count = newValue} + } + /// Returns true if `count` has been explicitly set. + var hasCount: Bool {return self._count != nil} + /// Clears the value of `count`. Subsequent reads from it will return its default value. + mutating func clearCount() {self._count = nil} + + /// 0.0 to 1.0, defaults to 0.2 + var gray: Float { + get {return _gray ?? 0} + set {_gray = newValue} + } + /// Returns true if `gray` has been explicitly set. + var hasGray: Bool {return self._gray != nil} + /// Clears the value of `gray`. Subsequent reads from it will return its default value. + mutating func clearGray() {self._gray = nil} + + /// percentage of cutouts to blur + var blur: Float { + get {return _blur ?? 0} + set {_blur = newValue} + } + /// Returns true if `blur` has been explicitly set. + var hasBlur: Bool {return self._blur != nil} + /// Clears the value of `blur`. Subsequent reads from it will return its default value. + mutating func clearBlur() {self._blur = nil} + + /// defaults to inner: 0.5, outer: 0.0 + var sizePower: Float { + get {return _sizePower ?? 0} + set {_sizePower = newValue} + } + /// Returns true if `sizePower` has been explicitly set. + var hasSizePower: Bool {return self._sizePower != nil} + /// Clears the value of `sizePower`. Subsequent reads from it will return its default value. + mutating func clearSizePower() {self._sizePower = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _count: UInt32? = nil + fileprivate var _gray: Float? = nil + fileprivate var _blur: Float? = nil + fileprivate var _sizePower: Float? = nil +} + +/// GuidanceScheduleParameters are used to define a schedule for CLIP guidance, and +/// are used to define the behavior of the guidance over time. They are relative +/// to the total number of steps, and are scaled to the number of steps in the +/// current run. +struct Stabilityai_Platformapis_Generation_V1_GuidanceScheduleParameters { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var duration: Float = 0 + + var value: Float = 0 + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +/// Parameters that affect the behavior of the guidance, typically used for CLIP. +/// We can specify more than one model, and the guidance will be a weighted sum +/// of the models. +struct Stabilityai_Platformapis_Generation_V1_GuidanceInstanceParameters { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + /// models to use for this set + var models: [Stabilityai_Platformapis_Generation_V1_Model] { + get {return _storage._models} + set {_uniqueStorage()._models = newValue} + } + + /// 0.0 to 1.0, usually 0.05 to 0.225 + var guidanceStrength: Float { + get {return _storage._guidanceStrength ?? 0} + set {_uniqueStorage()._guidanceStrength = newValue} + } + /// Returns true if `guidanceStrength` has been explicitly set. + var hasGuidanceStrength: Bool {return _storage._guidanceStrength != nil} + /// Clears the value of `guidanceStrength`. Subsequent reads from it will return its default value. + mutating func clearGuidanceStrength() {_uniqueStorage()._guidanceStrength = nil} + + /// when to apply guidance + var schedule: [Stabilityai_Platformapis_Generation_V1_GuidanceScheduleParameters] { + get {return _storage._schedule} + set {_uniqueStorage()._schedule = newValue} + } + + /// cutout parameters + var cutouts: Stabilityai_Platformapis_Generation_V1_CutoutParameters { + get {return _storage._cutouts ?? Stabilityai_Platformapis_Generation_V1_CutoutParameters()} + set {_uniqueStorage()._cutouts = newValue} + } + /// Returns true if `cutouts` has been explicitly set. + var hasCutouts: Bool {return _storage._cutouts != nil} + /// Clears the value of `cutouts`. Subsequent reads from it will return its default value. + mutating func clearCutouts() {_uniqueStorage()._cutouts = nil} + + /// prompt to use for guidance + var prompt: Stabilityai_Platformapis_Generation_V1_Prompt { + get {return _storage._prompt ?? Stabilityai_Platformapis_Generation_V1_Prompt()} + set {_uniqueStorage()._prompt = newValue} + } + /// Returns true if `prompt` has been explicitly set. + var hasPrompt: Bool {return _storage._prompt != nil} + /// Clears the value of `prompt`. Subsequent reads from it will return its default value. + mutating func clearPrompt() {_uniqueStorage()._prompt = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _storage = _StorageClass.defaultInstance +} + +/// Parameters that affect the behavior of the guidance, typically used for CLIP. +/// The omission of this field implies the default guidance of CFG. +struct Stabilityai_Platformapis_Generation_V1_GuidanceParameters { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + /// base preset for guidance + var guidancePreset: Stabilityai_Platformapis_Generation_V1_GuidancePreset = .none + + /// guidance instances + var instances: [Stabilityai_Platformapis_Generation_V1_GuidanceInstanceParameters] = [] + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +struct Stabilityai_Platformapis_Generation_V1_TransformType { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var type: Stabilityai_Platformapis_Generation_V1_TransformType.OneOf_Type? = nil + + var diffusion: Stabilityai_Platformapis_Generation_V1_DiffusionSampler { + get { + if case .diffusion(let v)? = type {return v} + return .samplerDdim + } + set {type = .diffusion(newValue)} + } + + var upscaler: Stabilityai_Platformapis_Generation_V1_Upscaler { + get { + if case .upscaler(let v)? = type {return v} + return .rgb + } + set {type = .upscaler(newValue)} + } + + var unknownFields = SwiftProtobuf.UnknownStorage() + + enum OneOf_Type: Equatable { + case diffusion(Stabilityai_Platformapis_Generation_V1_DiffusionSampler) + case upscaler(Stabilityai_Platformapis_Generation_V1_Upscaler) + + #if !swift(>=4.1) + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_TransformType.OneOf_Type, rhs: Stabilityai_Platformapis_Generation_V1_TransformType.OneOf_Type) -> Bool { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch (lhs, rhs) { + case (.diffusion, .diffusion): return { + guard case .diffusion(let l) = lhs, case .diffusion(let r) = rhs else { preconditionFailure() } + return l == r + }() + case (.upscaler, .upscaler): return { + guard case .upscaler(let l) = lhs, case .upscaler(let r) = rhs else { preconditionFailure() } + return l == r + }() + default: return false + } + } + #endif + } + + init() {} +} + +struct Stabilityai_Platformapis_Generation_V1_ImageParameters { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var height: UInt64 { + get {return _height ?? 0} + set {_height = newValue} + } + /// Returns true if `height` has been explicitly set. + var hasHeight: Bool {return self._height != nil} + /// Clears the value of `height`. Subsequent reads from it will return its default value. + mutating func clearHeight() {self._height = nil} + + var width: UInt64 { + get {return _width ?? 0} + set {_width = newValue} + } + /// Returns true if `width` has been explicitly set. + var hasWidth: Bool {return self._width != nil} + /// Clears the value of `width`. Subsequent reads from it will return its default value. + mutating func clearWidth() {self._width = nil} + + var seed: [UInt32] = [] + + var samples: UInt64 { + get {return _samples ?? 0} + set {_samples = newValue} + } + /// Returns true if `samples` has been explicitly set. + var hasSamples: Bool {return self._samples != nil} + /// Clears the value of `samples`. Subsequent reads from it will return its default value. + mutating func clearSamples() {self._samples = nil} + + var steps: UInt64 { + get {return _steps ?? 0} + set {_steps = newValue} + } + /// Returns true if `steps` has been explicitly set. + var hasSteps: Bool {return self._steps != nil} + /// Clears the value of `steps`. Subsequent reads from it will return its default value. + mutating func clearSteps() {self._steps = nil} + + var transform: Stabilityai_Platformapis_Generation_V1_TransformType { + get {return _transform ?? Stabilityai_Platformapis_Generation_V1_TransformType()} + set {_transform = newValue} + } + /// Returns true if `transform` has been explicitly set. + var hasTransform: Bool {return self._transform != nil} + /// Clears the value of `transform`. Subsequent reads from it will return its default value. + mutating func clearTransform() {self._transform = nil} + + var parameters: [Stabilityai_Platformapis_Generation_V1_StepParameter] = [] + + /// defaults to MASKED_AREA_INIT_ZERO + var maskedAreaInit: Stabilityai_Platformapis_Generation_V1_MaskedAreaInit { + get {return _maskedAreaInit ?? .zero} + set {_maskedAreaInit = newValue} + } + /// Returns true if `maskedAreaInit` has been explicitly set. + var hasMaskedAreaInit: Bool {return self._maskedAreaInit != nil} + /// Clears the value of `maskedAreaInit`. Subsequent reads from it will return its default value. + mutating func clearMaskedAreaInit() {self._maskedAreaInit = nil} + + ///defaults to TEXT_ENCODER + var weightMethod: Stabilityai_Platformapis_Generation_V1_WeightMethod { + get {return _weightMethod ?? .textEncoder} + set {_weightMethod = newValue} + } + /// Returns true if `weightMethod` has been explicitly set. + var hasWeightMethod: Bool {return self._weightMethod != nil} + /// Clears the value of `weightMethod`. Subsequent reads from it will return its default value. + mutating func clearWeightMethod() {self._weightMethod = nil} + + ///defaults to true + var quantize: Bool { + get {return _quantize ?? false} + set {_quantize = newValue} + } + /// Returns true if `quantize` has been explicitly set. + var hasQuantize: Bool {return self._quantize != nil} + /// Clears the value of `quantize`. Subsequent reads from it will return its default value. + mutating func clearQuantize() {self._quantize = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _height: UInt64? = nil + fileprivate var _width: UInt64? = nil + fileprivate var _samples: UInt64? = nil + fileprivate var _steps: UInt64? = nil + fileprivate var _transform: Stabilityai_Platformapis_Generation_V1_TransformType? = nil + fileprivate var _maskedAreaInit: Stabilityai_Platformapis_Generation_V1_MaskedAreaInit? = nil + fileprivate var _weightMethod: Stabilityai_Platformapis_Generation_V1_WeightMethod? = nil + fileprivate var _quantize: Bool? = nil +} + +struct Stabilityai_Platformapis_Generation_V1_ClassifierConcept { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var concept: String = String() + + var threshold: Float { + get {return _threshold ?? 0} + set {_threshold = newValue} + } + /// Returns true if `threshold` has been explicitly set. + var hasThreshold: Bool {return self._threshold != nil} + /// Clears the value of `threshold`. Subsequent reads from it will return its default value. + mutating func clearThreshold() {self._threshold = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _threshold: Float? = nil +} + +struct Stabilityai_Platformapis_Generation_V1_ClassifierCategory { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var name: String = String() + + var concepts: [Stabilityai_Platformapis_Generation_V1_ClassifierConcept] = [] + + var adjustment: Float { + get {return _adjustment ?? 0} + set {_adjustment = newValue} + } + /// Returns true if `adjustment` has been explicitly set. + var hasAdjustment: Bool {return self._adjustment != nil} + /// Clears the value of `adjustment`. Subsequent reads from it will return its default value. + mutating func clearAdjustment() {self._adjustment = nil} + + var action: Stabilityai_Platformapis_Generation_V1_Action { + get {return _action ?? .passthrough} + set {_action = newValue} + } + /// Returns true if `action` has been explicitly set. + var hasAction: Bool {return self._action != nil} + /// Clears the value of `action`. Subsequent reads from it will return its default value. + mutating func clearAction() {self._action = nil} + + var classifierMode: Stabilityai_Platformapis_Generation_V1_ClassifierMode { + get {return _classifierMode ?? .clsfrModeZeroshot} + set {_classifierMode = newValue} + } + /// Returns true if `classifierMode` has been explicitly set. + var hasClassifierMode: Bool {return self._classifierMode != nil} + /// Clears the value of `classifierMode`. Subsequent reads from it will return its default value. + mutating func clearClassifierMode() {self._classifierMode = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _adjustment: Float? = nil + fileprivate var _action: Stabilityai_Platformapis_Generation_V1_Action? = nil + fileprivate var _classifierMode: Stabilityai_Platformapis_Generation_V1_ClassifierMode? = nil +} + +struct Stabilityai_Platformapis_Generation_V1_ClassifierParameters { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var categories: [Stabilityai_Platformapis_Generation_V1_ClassifierCategory] = [] + + var exceeds: [Stabilityai_Platformapis_Generation_V1_ClassifierCategory] = [] + + var realizedAction: Stabilityai_Platformapis_Generation_V1_Action { + get {return _realizedAction ?? .passthrough} + set {_realizedAction = newValue} + } + /// Returns true if `realizedAction` has been explicitly set. + var hasRealizedAction: Bool {return self._realizedAction != nil} + /// Clears the value of `realizedAction`. Subsequent reads from it will return its default value. + mutating func clearRealizedAction() {self._realizedAction = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _realizedAction: Stabilityai_Platformapis_Generation_V1_Action? = nil +} + +/// Interpolation between two images applied at specified blend ratios +struct Stabilityai_Platformapis_Generation_V1_InterpolateParameters { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var ratios: [Float] = [] + + var mode: Stabilityai_Platformapis_Generation_V1_InterpolateMode { + get {return _mode ?? .interpolateLinear} + set {_mode = newValue} + } + /// Returns true if `mode` has been explicitly set. + var hasMode: Bool {return self._mode != nil} + /// Clears the value of `mode`. Subsequent reads from it will return its default value. + mutating func clearMode() {self._mode = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _mode: Stabilityai_Platformapis_Generation_V1_InterpolateMode? = nil +} + +struct Stabilityai_Platformapis_Generation_V1_TransformColorAdjust { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + /// scale pixel intensities, 1.0 is no change + var brightness: Float { + get {return _storage._brightness ?? 0} + set {_uniqueStorage()._brightness = newValue} + } + /// Returns true if `brightness` has been explicitly set. + var hasBrightness: Bool {return _storage._brightness != nil} + /// Clears the value of `brightness`. Subsequent reads from it will return its default value. + mutating func clearBrightness() {_uniqueStorage()._brightness = nil} + + /// contrast adjustment, 1.0 is no change + var contrast: Float { + get {return _storage._contrast ?? 0} + set {_uniqueStorage()._contrast = newValue} + } + /// Returns true if `contrast` has been explicitly set. + var hasContrast: Bool {return _storage._contrast != nil} + /// Clears the value of `contrast`. Subsequent reads from it will return its default value. + mutating func clearContrast() {_uniqueStorage()._contrast = nil} + + /// -180 to 180 hue adjustment, 0.0 is no change + var hue: Float { + get {return _storage._hue ?? 0} + set {_uniqueStorage()._hue = newValue} + } + /// Returns true if `hue` has been explicitly set. + var hasHue: Bool {return _storage._hue != nil} + /// Clears the value of `hue`. Subsequent reads from it will return its default value. + mutating func clearHue() {_uniqueStorage()._hue = nil} + + /// 0.0 to 2.0 saturation scale, 1.0 is no change + var saturation: Float { + get {return _storage._saturation ?? 0} + set {_uniqueStorage()._saturation = newValue} + } + /// Returns true if `saturation` has been explicitly set. + var hasSaturation: Bool {return _storage._saturation != nil} + /// Clears the value of `saturation`. Subsequent reads from it will return its default value. + mutating func clearSaturation() {_uniqueStorage()._saturation = nil} + + /// -1.0 to 1.0 lightness adjustment, 0.0 is no change + var lightness: Float { + get {return _storage._lightness ?? 0} + set {_uniqueStorage()._lightness = newValue} + } + /// Returns true if `lightness` has been explicitly set. + var hasLightness: Bool {return _storage._lightness != nil} + /// Clears the value of `lightness`. Subsequent reads from it will return its default value. + mutating func clearLightness() {_uniqueStorage()._lightness = nil} + + /// image to color match + var matchImage: Stabilityai_Platformapis_Generation_V1_Artifact { + get {return _storage._matchImage ?? Stabilityai_Platformapis_Generation_V1_Artifact()} + set {_uniqueStorage()._matchImage = newValue} + } + /// Returns true if `matchImage` has been explicitly set. + var hasMatchImage: Bool {return _storage._matchImage != nil} + /// Clears the value of `matchImage`. Subsequent reads from it will return its default value. + mutating func clearMatchImage() {_uniqueStorage()._matchImage = nil} + + /// color match mode to use + var matchMode: Stabilityai_Platformapis_Generation_V1_ColorMatchMode { + get {return _storage._matchMode ?? .colorMatchHsv} + set {_uniqueStorage()._matchMode = newValue} + } + /// Returns true if `matchMode` has been explicitly set. + var hasMatchMode: Bool {return _storage._matchMode != nil} + /// Clears the value of `matchMode`. Subsequent reads from it will return its default value. + mutating func clearMatchMode() {_uniqueStorage()._matchMode = nil} + + /// amount of gaussian noise to add + var noiseAmount: Float { + get {return _storage._noiseAmount ?? 0} + set {_uniqueStorage()._noiseAmount = newValue} + } + /// Returns true if `noiseAmount` has been explicitly set. + var hasNoiseAmount: Bool {return _storage._noiseAmount != nil} + /// Clears the value of `noiseAmount`. Subsequent reads from it will return its default value. + mutating func clearNoiseAmount() {_uniqueStorage()._noiseAmount = nil} + + /// random seed for noise + var noiseSeed: UInt32 { + get {return _storage._noiseSeed ?? 0} + set {_uniqueStorage()._noiseSeed = newValue} + } + /// Returns true if `noiseSeed` has been explicitly set. + var hasNoiseSeed: Bool {return _storage._noiseSeed != nil} + /// Clears the value of `noiseSeed`. Subsequent reads from it will return its default value. + mutating func clearNoiseSeed() {_uniqueStorage()._noiseSeed = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _storage = _StorageClass.defaultInstance +} + +struct Stabilityai_Platformapis_Generation_V1_TransformDepthCalc { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + /// blend factor between AdaBins (0.0) and MiDaS (1.0) + var blendWeight: Float { + get {return _blendWeight ?? 0} + set {_blendWeight = newValue} + } + /// Returns true if `blendWeight` has been explicitly set. + var hasBlendWeight: Bool {return self._blendWeight != nil} + /// Clears the value of `blendWeight`. Subsequent reads from it will return its default value. + mutating func clearBlendWeight() {self._blendWeight = nil} + + /// defaults to 0.0 + var blurRadius: UInt32 { + get {return _blurRadius ?? 0} + set {_blurRadius = newValue} + } + /// Returns true if `blurRadius` has been explicitly set. + var hasBlurRadius: Bool {return self._blurRadius != nil} + /// Clears the value of `blurRadius`. Subsequent reads from it will return its default value. + mutating func clearBlurRadius() {self._blurRadius = nil} + + /// make near depths have higher values + var reverse: Bool { + get {return _reverse ?? false} + set {_reverse = newValue} + } + /// Returns true if `reverse` has been explicitly set. + var hasReverse: Bool {return self._reverse != nil} + /// Clears the value of `reverse`. Subsequent reads from it will return its default value. + mutating func clearReverse() {self._reverse = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _blendWeight: Float? = nil + fileprivate var _blurRadius: UInt32? = nil + fileprivate var _reverse: Bool? = nil +} + +struct Stabilityai_Platformapis_Generation_V1_TransformMatrix { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + /// Column-major 3x3 or 4x4 perspective matrix + /// [sx, 10, 20, tx] [x] + /// [01, sy, 21, ty] . [y] + /// [02, 12, sz, tz] [z] + /// [03, 13, 23, 33] [1] + var data: [Float] = [] + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +struct Stabilityai_Platformapis_Generation_V1_TransformResample { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + /// extrapolation of border pixels + var borderMode: Stabilityai_Platformapis_Generation_V1_BorderMode = .borderReflect + + /// 3x3 or 4x4 matrix + var transform: Stabilityai_Platformapis_Generation_V1_TransformMatrix { + get {return _transform ?? Stabilityai_Platformapis_Generation_V1_TransformMatrix()} + set {_transform = newValue} + } + /// Returns true if `transform` has been explicitly set. + var hasTransform: Bool {return self._transform != nil} + /// Clears the value of `transform`. Subsequent reads from it will return its default value. + mutating func clearTransform() {self._transform = nil} + + /// 3x3 or 4x4 matrix, defaults to identity + var prevTransform: Stabilityai_Platformapis_Generation_V1_TransformMatrix { + get {return _prevTransform ?? Stabilityai_Platformapis_Generation_V1_TransformMatrix()} + set {_prevTransform = newValue} + } + /// Returns true if `prevTransform` has been explicitly set. + var hasPrevTransform: Bool {return self._prevTransform != nil} + /// Clears the value of `prevTransform`. Subsequent reads from it will return its default value. + mutating func clearPrevTransform() {self._prevTransform = nil} + + /// depth warp factor, defaults to 1.0 + var depthWarp: Float { + get {return _depthWarp ?? 0} + set {_depthWarp = newValue} + } + /// Returns true if `depthWarp` has been explicitly set. + var hasDepthWarp: Bool {return self._depthWarp != nil} + /// Clears the value of `depthWarp`. Subsequent reads from it will return its default value. + mutating func clearDepthWarp() {self._depthWarp = nil} + + /// return inpaint mask + var exportMask: Bool { + get {return _exportMask ?? false} + set {_exportMask = newValue} + } + /// Returns true if `exportMask` has been explicitly set. + var hasExportMask: Bool {return self._exportMask != nil} + /// Clears the value of `exportMask`. Subsequent reads from it will return its default value. + mutating func clearExportMask() {self._exportMask = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _transform: Stabilityai_Platformapis_Generation_V1_TransformMatrix? = nil + fileprivate var _prevTransform: Stabilityai_Platformapis_Generation_V1_TransformMatrix? = nil + fileprivate var _depthWarp: Float? = nil + fileprivate var _exportMask: Bool? = nil +} + +struct Stabilityai_Platformapis_Generation_V1_CameraParameters { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var cameraType: Stabilityai_Platformapis_Generation_V1_CameraType = .cameraPerspective + + /// Nearest plane depth of a rendered frustum + var nearPlane: Float = 0 + + /// Farthest plane depth of a rendered frustum + var farPlane: Float = 0 + + /// Camera field of view (in degrees). Must be set for CAMERA_PERSPECTIVE type. + var fov: Float { + get {return _fov ?? 0} + set {_fov = newValue} + } + /// Returns true if `fov` has been explicitly set. + var hasFov: Bool {return self._fov != nil} + /// Clears the value of `fov`. Subsequent reads from it will return its default value. + mutating func clearFov() {self._fov = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _fov: Float? = nil +} + +struct Stabilityai_Platformapis_Generation_V1_TransformCameraPose { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + /// 4x4 transform matrix for the next frame + var worldToViewMatrix: Stabilityai_Platformapis_Generation_V1_TransformMatrix { + get {return _worldToViewMatrix ?? Stabilityai_Platformapis_Generation_V1_TransformMatrix()} + set {_worldToViewMatrix = newValue} + } + /// Returns true if `worldToViewMatrix` has been explicitly set. + var hasWorldToViewMatrix: Bool {return self._worldToViewMatrix != nil} + /// Clears the value of `worldToViewMatrix`. Subsequent reads from it will return its default value. + mutating func clearWorldToViewMatrix() {self._worldToViewMatrix = nil} + + var cameraParameters: Stabilityai_Platformapis_Generation_V1_CameraParameters { + get {return _cameraParameters ?? Stabilityai_Platformapis_Generation_V1_CameraParameters()} + set {_cameraParameters = newValue} + } + /// Returns true if `cameraParameters` has been explicitly set. + var hasCameraParameters: Bool {return self._cameraParameters != nil} + /// Clears the value of `cameraParameters`. Subsequent reads from it will return its default value. + mutating func clearCameraParameters() {self._cameraParameters = nil} + + /// Prefill masked areas with values matching the colors around the area + var doPrefill: Bool = false + + /// Both image and mask will be rendered using this method. + var renderMode: Stabilityai_Platformapis_Generation_V1_RenderMode = .renderMesh + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _worldToViewMatrix: Stabilityai_Platformapis_Generation_V1_TransformMatrix? = nil + fileprivate var _cameraParameters: Stabilityai_Platformapis_Generation_V1_CameraParameters? = nil +} + +struct Stabilityai_Platformapis_Generation_V1_TransformParameters { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var transform: Stabilityai_Platformapis_Generation_V1_TransformParameters.OneOf_Transform? = nil + + var colorAdjust: Stabilityai_Platformapis_Generation_V1_TransformColorAdjust { + get { + if case .colorAdjust(let v)? = transform {return v} + return Stabilityai_Platformapis_Generation_V1_TransformColorAdjust() + } + set {transform = .colorAdjust(newValue)} + } + + var depthCalc: Stabilityai_Platformapis_Generation_V1_TransformDepthCalc { + get { + if case .depthCalc(let v)? = transform {return v} + return Stabilityai_Platformapis_Generation_V1_TransformDepthCalc() + } + set {transform = .depthCalc(newValue)} + } + + var resample: Stabilityai_Platformapis_Generation_V1_TransformResample { + get { + if case .resample(let v)? = transform {return v} + return Stabilityai_Platformapis_Generation_V1_TransformResample() + } + set {transform = .resample(newValue)} + } + + var cameraPose: Stabilityai_Platformapis_Generation_V1_TransformCameraPose { + get { + if case .cameraPose(let v)? = transform {return v} + return Stabilityai_Platformapis_Generation_V1_TransformCameraPose() + } + set {transform = .cameraPose(newValue)} + } + + var unknownFields = SwiftProtobuf.UnknownStorage() + + enum OneOf_Transform: Equatable { + case colorAdjust(Stabilityai_Platformapis_Generation_V1_TransformColorAdjust) + case depthCalc(Stabilityai_Platformapis_Generation_V1_TransformDepthCalc) + case resample(Stabilityai_Platformapis_Generation_V1_TransformResample) + case cameraPose(Stabilityai_Platformapis_Generation_V1_TransformCameraPose) + + #if !swift(>=4.1) + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_TransformParameters.OneOf_Transform, rhs: Stabilityai_Platformapis_Generation_V1_TransformParameters.OneOf_Transform) -> Bool { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch (lhs, rhs) { + case (.colorAdjust, .colorAdjust): return { + guard case .colorAdjust(let l) = lhs, case .colorAdjust(let r) = rhs else { preconditionFailure() } + return l == r + }() + case (.depthCalc, .depthCalc): return { + guard case .depthCalc(let l) = lhs, case .depthCalc(let r) = rhs else { preconditionFailure() } + return l == r + }() + case (.resample, .resample): return { + guard case .resample(let l) = lhs, case .resample(let r) = rhs else { preconditionFailure() } + return l == r + }() + case (.cameraPose, .cameraPose): return { + guard case .cameraPose(let l) = lhs, case .cameraPose(let r) = rhs else { preconditionFailure() } + return l == r + }() + default: return false + } + } + #endif + } + + init() {} +} + +struct Stabilityai_Platformapis_Generation_V1_AssetParameters { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var action: Stabilityai_Platformapis_Generation_V1_AssetAction = .assetPut + + var projectID: String = String() + + var use: Stabilityai_Platformapis_Generation_V1_AssetUse = .undefined + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +/// AnswerMeta is a set of metadata about an answer, usually the operating +/// environment. +struct Stabilityai_Platformapis_Generation_V1_AnswerMeta { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var gpuID: String { + get {return _gpuID ?? String()} + set {_gpuID = newValue} + } + /// Returns true if `gpuID` has been explicitly set. + var hasGpuID: Bool {return self._gpuID != nil} + /// Clears the value of `gpuID`. Subsequent reads from it will return its default value. + mutating func clearGpuID() {self._gpuID = nil} + + var cpuID: String { + get {return _cpuID ?? String()} + set {_cpuID = newValue} + } + /// Returns true if `cpuID` has been explicitly set. + var hasCpuID: Bool {return self._cpuID != nil} + /// Clears the value of `cpuID`. Subsequent reads from it will return its default value. + mutating func clearCpuID() {self._cpuID = nil} + + var nodeID: String { + get {return _nodeID ?? String()} + set {_nodeID = newValue} + } + /// Returns true if `nodeID` has been explicitly set. + var hasNodeID: Bool {return self._nodeID != nil} + /// Clears the value of `nodeID`. Subsequent reads from it will return its default value. + mutating func clearNodeID() {self._nodeID = nil} + + var engineID: String { + get {return _engineID ?? String()} + set {_engineID = newValue} + } + /// Returns true if `engineID` has been explicitly set. + var hasEngineID: Bool {return self._engineID != nil} + /// Clears the value of `engineID`. Subsequent reads from it will return its default value. + mutating func clearEngineID() {self._engineID = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _gpuID: String? = nil + fileprivate var _cpuID: String? = nil + fileprivate var _nodeID: String? = nil + fileprivate var _engineID: String? = nil +} + +/// An Answer is a response to a Request. It is a set of Artifacts, which can be +/// of any type and forwarded to the client or the next stage. +struct Stabilityai_Platformapis_Generation_V1_Answer { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var answerID: String = String() + + var requestID: String = String() + + var received: UInt64 = 0 + + var created: UInt64 = 0 + + var meta: Stabilityai_Platformapis_Generation_V1_AnswerMeta { + get {return _meta ?? Stabilityai_Platformapis_Generation_V1_AnswerMeta()} + set {_meta = newValue} + } + /// Returns true if `meta` has been explicitly set. + var hasMeta: Bool {return self._meta != nil} + /// Clears the value of `meta`. Subsequent reads from it will return its default value. + mutating func clearMeta() {self._meta = nil} + + var artifacts: [Stabilityai_Platformapis_Generation_V1_Artifact] = [] + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _meta: Stabilityai_Platformapis_Generation_V1_AnswerMeta? = nil +} + +/// An AnswerBatch is a set of Answers. It can represent one or several completed +/// requests, which may be sent to the client in a single response. +struct Stabilityai_Platformapis_Generation_V1_AnswerBatch { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var batchID: String = String() + + var answers: [Stabilityai_Platformapis_Generation_V1_Answer] = [] + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +/// A Request is a set of Artifacts, which can be of any type with model or +/// transform parameters. It is sent to the server, which will respond with an +/// Answer. +struct Stabilityai_Platformapis_Generation_V1_Request { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var engineID: String { + get {return _storage._engineID} + set {_uniqueStorage()._engineID = newValue} + } + + var requestID: String { + get {return _storage._requestID} + set {_uniqueStorage()._requestID = newValue} + } + + var requestedType: Stabilityai_Platformapis_Generation_V1_ArtifactType { + get {return _storage._requestedType} + set {_uniqueStorage()._requestedType = newValue} + } + + var prompt: [Stabilityai_Platformapis_Generation_V1_Prompt] { + get {return _storage._prompt} + set {_uniqueStorage()._prompt = newValue} + } + + var params: OneOf_Params? { + get {return _storage._params} + set {_uniqueStorage()._params = newValue} + } + + var image: Stabilityai_Platformapis_Generation_V1_ImageParameters { + get { + if case .image(let v)? = _storage._params {return v} + return Stabilityai_Platformapis_Generation_V1_ImageParameters() + } + set {_uniqueStorage()._params = .image(newValue)} + } + + var classifier: Stabilityai_Platformapis_Generation_V1_ClassifierParameters { + get { + if case .classifier(let v)? = _storage._params {return v} + return Stabilityai_Platformapis_Generation_V1_ClassifierParameters() + } + set {_uniqueStorage()._params = .classifier(newValue)} + } + + var asset: Stabilityai_Platformapis_Generation_V1_AssetParameters { + get { + if case .asset(let v)? = _storage._params {return v} + return Stabilityai_Platformapis_Generation_V1_AssetParameters() + } + set {_uniqueStorage()._params = .asset(newValue)} + } + + var interpolate: Stabilityai_Platformapis_Generation_V1_InterpolateParameters { + get { + if case .interpolate(let v)? = _storage._params {return v} + return Stabilityai_Platformapis_Generation_V1_InterpolateParameters() + } + set {_uniqueStorage()._params = .interpolate(newValue)} + } + + var transform: Stabilityai_Platformapis_Generation_V1_TransformParameters { + get { + if case .transform(let v)? = _storage._params {return v} + return Stabilityai_Platformapis_Generation_V1_TransformParameters() + } + set {_uniqueStorage()._params = .transform(newValue)} + } + + var conditioner: Stabilityai_Platformapis_Generation_V1_ConditionerParameters { + get {return _storage._conditioner ?? Stabilityai_Platformapis_Generation_V1_ConditionerParameters()} + set {_uniqueStorage()._conditioner = newValue} + } + /// Returns true if `conditioner` has been explicitly set. + var hasConditioner: Bool {return _storage._conditioner != nil} + /// Clears the value of `conditioner`. Subsequent reads from it will return its default value. + mutating func clearConditioner() {_uniqueStorage()._conditioner = nil} + + /// for development use + var extras: SwiftProtobuf.Google_Protobuf_Struct { + get {return _storage._extras ?? SwiftProtobuf.Google_Protobuf_Struct()} + set {_uniqueStorage()._extras = newValue} + } + /// Returns true if `extras` has been explicitly set. + var hasExtras: Bool {return _storage._extras != nil} + /// Clears the value of `extras`. Subsequent reads from it will return its default value. + mutating func clearExtras() {_uniqueStorage()._extras = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + enum OneOf_Params: Equatable { + case image(Stabilityai_Platformapis_Generation_V1_ImageParameters) + case classifier(Stabilityai_Platformapis_Generation_V1_ClassifierParameters) + case asset(Stabilityai_Platformapis_Generation_V1_AssetParameters) + case interpolate(Stabilityai_Platformapis_Generation_V1_InterpolateParameters) + case transform(Stabilityai_Platformapis_Generation_V1_TransformParameters) + + #if !swift(>=4.1) + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_Request.OneOf_Params, rhs: Stabilityai_Platformapis_Generation_V1_Request.OneOf_Params) -> Bool { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch (lhs, rhs) { + case (.image, .image): return { + guard case .image(let l) = lhs, case .image(let r) = rhs else { preconditionFailure() } + return l == r + }() + case (.classifier, .classifier): return { + guard case .classifier(let l) = lhs, case .classifier(let r) = rhs else { preconditionFailure() } + return l == r + }() + case (.asset, .asset): return { + guard case .asset(let l) = lhs, case .asset(let r) = rhs else { preconditionFailure() } + return l == r + }() + case (.interpolate, .interpolate): return { + guard case .interpolate(let l) = lhs, case .interpolate(let r) = rhs else { preconditionFailure() } + return l == r + }() + case (.transform, .transform): return { + guard case .transform(let l) = lhs, case .transform(let r) = rhs else { preconditionFailure() } + return l == r + }() + default: return false + } + } + #endif + } + + init() {} + + fileprivate var _storage = _StorageClass.defaultInstance +} + +struct Stabilityai_Platformapis_Generation_V1_OnStatus { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var reason: [Stabilityai_Platformapis_Generation_V1_FinishReason] = [] + + var target: String { + get {return _target ?? String()} + set {_target = newValue} + } + /// Returns true if `target` has been explicitly set. + var hasTarget: Bool {return self._target != nil} + /// Clears the value of `target`. Subsequent reads from it will return its default value. + mutating func clearTarget() {self._target = nil} + + var action: [Stabilityai_Platformapis_Generation_V1_StageAction] = [] + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _target: String? = nil +} + +struct Stabilityai_Platformapis_Generation_V1_Stage { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var id: String = String() + + var request: Stabilityai_Platformapis_Generation_V1_Request { + get {return _request ?? Stabilityai_Platformapis_Generation_V1_Request()} + set {_request = newValue} + } + /// Returns true if `request` has been explicitly set. + var hasRequest: Bool {return self._request != nil} + /// Clears the value of `request`. Subsequent reads from it will return its default value. + mutating func clearRequest() {self._request = nil} + + var onStatus: [Stabilityai_Platformapis_Generation_V1_OnStatus] = [] + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _request: Stabilityai_Platformapis_Generation_V1_Request? = nil +} + +struct Stabilityai_Platformapis_Generation_V1_ChainRequest { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + var requestID: String = String() + + var stage: [Stabilityai_Platformapis_Generation_V1_Stage] = [] + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +#if swift(>=5.5) && canImport(_Concurrency) +extension Stabilityai_Platformapis_Generation_V1_FinishReason: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_ArtifactType: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_MaskedAreaInit: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_WeightMethod: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_DiffusionSampler: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_Upscaler: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_GuidancePreset: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_ModelArchitecture: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_Action: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_ClassifierMode: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_InterpolateMode: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_BorderMode: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_ColorMatchMode: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_CameraType: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_RenderMode: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_AssetAction: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_AssetUse: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_StageAction: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_Token: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_Tokens: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_Artifact: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_Artifact.OneOf_Data: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_PromptParameters: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_Prompt: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_Prompt.OneOf_Prompt: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_SamplerParameters: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_ConditionerParameters: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_ScheduleParameters: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_StepParameter: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_Model: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_CutoutParameters: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_GuidanceScheduleParameters: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_GuidanceInstanceParameters: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_GuidanceParameters: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_TransformType: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_TransformType.OneOf_Type: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_ImageParameters: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_ClassifierConcept: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_ClassifierCategory: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_ClassifierParameters: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_InterpolateParameters: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_TransformColorAdjust: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_TransformDepthCalc: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_TransformMatrix: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_TransformResample: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_CameraParameters: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_TransformCameraPose: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_TransformParameters: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_TransformParameters.OneOf_Transform: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_AssetParameters: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_AnswerMeta: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_Answer: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_AnswerBatch: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_Request: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_Request.OneOf_Params: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_OnStatus: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_Stage: @unchecked Sendable {} +extension Stabilityai_Platformapis_Generation_V1_ChainRequest: @unchecked Sendable {} +#endif // swift(>=5.5) && canImport(_Concurrency) + +// MARK: - Code below here is support for the SwiftProtobuf runtime. + +fileprivate let _protobuf_package = "stabilityai.platformapis.generation.v1" + +extension Stabilityai_Platformapis_Generation_V1_FinishReason: SwiftProtobuf._ProtoNameProviding { + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "NULL"), + 1: .same(proto: "LENGTH"), + 2: .same(proto: "STOP"), + 3: .same(proto: "ERROR"), + 4: .same(proto: "FILTER"), + ] +} + +extension Stabilityai_Platformapis_Generation_V1_ArtifactType: SwiftProtobuf._ProtoNameProviding { + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "ARTIFACT_NONE"), + 1: .same(proto: "ARTIFACT_IMAGE"), + 2: .same(proto: "ARTIFACT_VIDEO"), + 3: .same(proto: "ARTIFACT_TEXT"), + 4: .same(proto: "ARTIFACT_TOKENS"), + 5: .same(proto: "ARTIFACT_EMBEDDING"), + 6: .same(proto: "ARTIFACT_CLASSIFICATIONS"), + 7: .same(proto: "ARTIFACT_MASK"), + 8: .same(proto: "ARTIFACT_LATENT"), + 9: .same(proto: "ARTIFACT_TENSOR"), + 10: .same(proto: "ARTIFACT_DEPTH"), + ] +} + +extension Stabilityai_Platformapis_Generation_V1_MaskedAreaInit: SwiftProtobuf._ProtoNameProviding { + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "MASKED_AREA_INIT_ZERO"), + 1: .same(proto: "MASKED_AREA_INIT_RANDOM"), + 2: .same(proto: "MASKED_AREA_INIT_ORIGINAL"), + ] +} + +extension Stabilityai_Platformapis_Generation_V1_WeightMethod: SwiftProtobuf._ProtoNameProviding { + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "TEXT_ENCODER"), + 1: .same(proto: "CROSS_ATTENTION"), + ] +} + +extension Stabilityai_Platformapis_Generation_V1_DiffusionSampler: SwiftProtobuf._ProtoNameProviding { + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "SAMPLER_DDIM"), + 1: .same(proto: "SAMPLER_DDPM"), + 2: .same(proto: "SAMPLER_K_EULER"), + 3: .same(proto: "SAMPLER_K_EULER_ANCESTRAL"), + 4: .same(proto: "SAMPLER_K_HEUN"), + 5: .same(proto: "SAMPLER_K_DPM_2"), + 6: .same(proto: "SAMPLER_K_DPM_2_ANCESTRAL"), + 7: .same(proto: "SAMPLER_K_LMS"), + 8: .same(proto: "SAMPLER_K_DPMPP_2S_ANCESTRAL"), + 9: .same(proto: "SAMPLER_K_DPMPP_2M"), + 10: .same(proto: "SAMPLER_K_DPMPP_SDE"), + ] +} + +extension Stabilityai_Platformapis_Generation_V1_Upscaler: SwiftProtobuf._ProtoNameProviding { + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "UPSCALER_RGB"), + 1: .same(proto: "UPSCALER_GFPGAN"), + 2: .same(proto: "UPSCALER_ESRGAN"), + ] +} + +extension Stabilityai_Platformapis_Generation_V1_GuidancePreset: SwiftProtobuf._ProtoNameProviding { + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "GUIDANCE_PRESET_NONE"), + 1: .same(proto: "GUIDANCE_PRESET_SIMPLE"), + 2: .same(proto: "GUIDANCE_PRESET_FAST_BLUE"), + 3: .same(proto: "GUIDANCE_PRESET_FAST_GREEN"), + 4: .same(proto: "GUIDANCE_PRESET_SLOW"), + 5: .same(proto: "GUIDANCE_PRESET_SLOWER"), + 6: .same(proto: "GUIDANCE_PRESET_SLOWEST"), + ] +} + +extension Stabilityai_Platformapis_Generation_V1_ModelArchitecture: SwiftProtobuf._ProtoNameProviding { + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "MODEL_ARCHITECTURE_NONE"), + 1: .same(proto: "MODEL_ARCHITECTURE_CLIP_VIT"), + 2: .same(proto: "MODEL_ARCHITECTURE_CLIP_RESNET"), + 3: .same(proto: "MODEL_ARCHITECTURE_LDM"), + ] +} + +extension Stabilityai_Platformapis_Generation_V1_Action: SwiftProtobuf._ProtoNameProviding { + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "ACTION_PASSTHROUGH"), + 1: .same(proto: "ACTION_REGENERATE_DUPLICATE"), + 2: .same(proto: "ACTION_REGENERATE"), + 3: .same(proto: "ACTION_OBFUSCATE_DUPLICATE"), + 4: .same(proto: "ACTION_OBFUSCATE"), + 5: .same(proto: "ACTION_DISCARD"), + ] +} + +extension Stabilityai_Platformapis_Generation_V1_ClassifierMode: SwiftProtobuf._ProtoNameProviding { + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "CLSFR_MODE_ZEROSHOT"), + 1: .same(proto: "CLSFR_MODE_MULTICLASS"), + ] +} + +extension Stabilityai_Platformapis_Generation_V1_InterpolateMode: SwiftProtobuf._ProtoNameProviding { + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "INTERPOLATE_LINEAR"), + 1: .same(proto: "INTERPOLATE_RIFE"), + 2: .same(proto: "INTERPOLATE_VAE_LINEAR"), + 3: .same(proto: "INTERPOLATE_VAE_SLERP"), + 4: .same(proto: "INTERPOLATE_FILM"), + ] +} + +extension Stabilityai_Platformapis_Generation_V1_BorderMode: SwiftProtobuf._ProtoNameProviding { + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "BORDER_REFLECT"), + 1: .same(proto: "BORDER_REPLICATE"), + 2: .same(proto: "BORDER_WRAP"), + 3: .same(proto: "BORDER_ZERO"), + 4: .same(proto: "BORDER_PREFILL"), + ] +} + +extension Stabilityai_Platformapis_Generation_V1_ColorMatchMode: SwiftProtobuf._ProtoNameProviding { + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "COLOR_MATCH_HSV"), + 1: .same(proto: "COLOR_MATCH_LAB"), + 2: .same(proto: "COLOR_MATCH_RGB"), + ] +} + +extension Stabilityai_Platformapis_Generation_V1_CameraType: SwiftProtobuf._ProtoNameProviding { + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "CAMERA_PERSPECTIVE"), + 1: .same(proto: "CAMERA_ORTHOGRAPHIC"), + ] +} + +extension Stabilityai_Platformapis_Generation_V1_RenderMode: SwiftProtobuf._ProtoNameProviding { + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "RENDER_MESH"), + 1: .same(proto: "RENDER_POINTCLOUD"), + ] +} + +extension Stabilityai_Platformapis_Generation_V1_AssetAction: SwiftProtobuf._ProtoNameProviding { + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "ASSET_PUT"), + 1: .same(proto: "ASSET_GET"), + 2: .same(proto: "ASSET_DELETE"), + ] +} + +extension Stabilityai_Platformapis_Generation_V1_AssetUse: SwiftProtobuf._ProtoNameProviding { + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "ASSET_USE_UNDEFINED"), + 1: .same(proto: "ASSET_USE_INPUT"), + 2: .same(proto: "ASSET_USE_OUTPUT"), + 3: .same(proto: "ASSET_USE_INTERMEDIATE"), + 4: .same(proto: "ASSET_USE_PROJECT"), + ] +} + +extension Stabilityai_Platformapis_Generation_V1_StageAction: SwiftProtobuf._ProtoNameProviding { + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "STAGE_ACTION_PASS"), + 1: .same(proto: "STAGE_ACTION_DISCARD"), + 2: .same(proto: "STAGE_ACTION_RETURN"), + ] +} + +extension Stabilityai_Platformapis_Generation_V1_Token: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".Token" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "text"), + 2: .same(proto: "id"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self._text) }() + case 2: try { try decoder.decodeSingularUInt32Field(value: &self.id) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + try { if let v = self._text { + try visitor.visitSingularStringField(value: v, fieldNumber: 1) + } }() + if self.id != 0 { + try visitor.visitSingularUInt32Field(value: self.id, fieldNumber: 2) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_Token, rhs: Stabilityai_Platformapis_Generation_V1_Token) -> Bool { + if lhs._text != rhs._text {return false} + if lhs.id != rhs.id {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_Tokens: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".Tokens" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "tokens"), + 2: .standard(proto: "tokenizer_id"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.tokens) }() + case 2: try { try decoder.decodeSingularStringField(value: &self._tokenizerID) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !self.tokens.isEmpty { + try visitor.visitRepeatedMessageField(value: self.tokens, fieldNumber: 1) + } + try { if let v = self._tokenizerID { + try visitor.visitSingularStringField(value: v, fieldNumber: 2) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_Tokens, rhs: Stabilityai_Platformapis_Generation_V1_Tokens) -> Bool { + if lhs.tokens != rhs.tokens {return false} + if lhs._tokenizerID != rhs._tokenizerID {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_Artifact: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".Artifact" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .same(proto: "type"), + 3: .same(proto: "mime"), + 4: .same(proto: "magic"), + 5: .same(proto: "binary"), + 6: .same(proto: "text"), + 7: .same(proto: "tokens"), + 11: .same(proto: "classifier"), + 14: .same(proto: "tensor"), + 8: .same(proto: "index"), + 9: .standard(proto: "finish_reason"), + 10: .same(proto: "seed"), + 12: .same(proto: "uuid"), + 13: .same(proto: "size"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularUInt64Field(value: &self.id) }() + case 2: try { try decoder.decodeSingularEnumField(value: &self.type) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.mime) }() + case 4: try { try decoder.decodeSingularStringField(value: &self._magic) }() + case 5: try { + var v: Data? + try decoder.decodeSingularBytesField(value: &v) + if let v = v { + if self.data != nil {try decoder.handleConflictingOneOf()} + self.data = .binary(v) + } + }() + case 6: try { + var v: String? + try decoder.decodeSingularStringField(value: &v) + if let v = v { + if self.data != nil {try decoder.handleConflictingOneOf()} + self.data = .text(v) + } + }() + case 7: try { + var v: Stabilityai_Platformapis_Generation_V1_Tokens? + var hadOneofValue = false + if let current = self.data { + hadOneofValue = true + if case .tokens(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.data = .tokens(v) + } + }() + case 8: try { try decoder.decodeSingularUInt32Field(value: &self.index) }() + case 9: try { try decoder.decodeSingularEnumField(value: &self.finishReason) }() + case 10: try { try decoder.decodeSingularUInt32Field(value: &self.seed) }() + case 11: try { + var v: Stabilityai_Platformapis_Generation_V1_ClassifierParameters? + var hadOneofValue = false + if let current = self.data { + hadOneofValue = true + if case .classifier(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.data = .classifier(v) + } + }() + case 12: try { try decoder.decodeSingularStringField(value: &self.uuid) }() + case 13: try { try decoder.decodeSingularUInt64Field(value: &self.size) }() + case 14: try { + var v: Tensors_Tensor? + var hadOneofValue = false + if let current = self.data { + hadOneofValue = true + if case .tensor(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.data = .tensor(v) + } + }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if self.id != 0 { + try visitor.visitSingularUInt64Field(value: self.id, fieldNumber: 1) + } + if self.type != .artifactNone { + try visitor.visitSingularEnumField(value: self.type, fieldNumber: 2) + } + if !self.mime.isEmpty { + try visitor.visitSingularStringField(value: self.mime, fieldNumber: 3) + } + try { if let v = self._magic { + try visitor.visitSingularStringField(value: v, fieldNumber: 4) + } }() + switch self.data { + case .binary?: try { + guard case .binary(let v)? = self.data else { preconditionFailure() } + try visitor.visitSingularBytesField(value: v, fieldNumber: 5) + }() + case .text?: try { + guard case .text(let v)? = self.data else { preconditionFailure() } + try visitor.visitSingularStringField(value: v, fieldNumber: 6) + }() + case .tokens?: try { + guard case .tokens(let v)? = self.data else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 7) + }() + default: break + } + if self.index != 0 { + try visitor.visitSingularUInt32Field(value: self.index, fieldNumber: 8) + } + if self.finishReason != .null { + try visitor.visitSingularEnumField(value: self.finishReason, fieldNumber: 9) + } + if self.seed != 0 { + try visitor.visitSingularUInt32Field(value: self.seed, fieldNumber: 10) + } + try { if case .classifier(let v)? = self.data { + try visitor.visitSingularMessageField(value: v, fieldNumber: 11) + } }() + if !self.uuid.isEmpty { + try visitor.visitSingularStringField(value: self.uuid, fieldNumber: 12) + } + if self.size != 0 { + try visitor.visitSingularUInt64Field(value: self.size, fieldNumber: 13) + } + try { if case .tensor(let v)? = self.data { + try visitor.visitSingularMessageField(value: v, fieldNumber: 14) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_Artifact, rhs: Stabilityai_Platformapis_Generation_V1_Artifact) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.type != rhs.type {return false} + if lhs.mime != rhs.mime {return false} + if lhs._magic != rhs._magic {return false} + if lhs.data != rhs.data {return false} + if lhs.index != rhs.index {return false} + if lhs.finishReason != rhs.finishReason {return false} + if lhs.seed != rhs.seed {return false} + if lhs.uuid != rhs.uuid {return false} + if lhs.size != rhs.size {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_PromptParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".PromptParameters" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "init"), + 2: .same(proto: "weight"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularBoolField(value: &self._init_p) }() + case 2: try { try decoder.decodeSingularFloatField(value: &self._weight) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + try { if let v = self._init_p { + try visitor.visitSingularBoolField(value: v, fieldNumber: 1) + } }() + try { if let v = self._weight { + try visitor.visitSingularFloatField(value: v, fieldNumber: 2) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_PromptParameters, rhs: Stabilityai_Platformapis_Generation_V1_PromptParameters) -> Bool { + if lhs._init_p != rhs._init_p {return false} + if lhs._weight != rhs._weight {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_Prompt: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".Prompt" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "parameters"), + 2: .same(proto: "text"), + 3: .same(proto: "tokens"), + 4: .same(proto: "artifact"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularMessageField(value: &self._parameters) }() + case 2: try { + var v: String? + try decoder.decodeSingularStringField(value: &v) + if let v = v { + if self.prompt != nil {try decoder.handleConflictingOneOf()} + self.prompt = .text(v) + } + }() + case 3: try { + var v: Stabilityai_Platformapis_Generation_V1_Tokens? + var hadOneofValue = false + if let current = self.prompt { + hadOneofValue = true + if case .tokens(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.prompt = .tokens(v) + } + }() + case 4: try { + var v: Stabilityai_Platformapis_Generation_V1_Artifact? + var hadOneofValue = false + if let current = self.prompt { + hadOneofValue = true + if case .artifact(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.prompt = .artifact(v) + } + }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + try { if let v = self._parameters { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + switch self.prompt { + case .text?: try { + guard case .text(let v)? = self.prompt else { preconditionFailure() } + try visitor.visitSingularStringField(value: v, fieldNumber: 2) + }() + case .tokens?: try { + guard case .tokens(let v)? = self.prompt else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + }() + case .artifact?: try { + guard case .artifact(let v)? = self.prompt else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + }() + case nil: break + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_Prompt, rhs: Stabilityai_Platformapis_Generation_V1_Prompt) -> Bool { + if lhs._parameters != rhs._parameters {return false} + if lhs.prompt != rhs.prompt {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_SamplerParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".SamplerParameters" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "eta"), + 2: .standard(proto: "sampling_steps"), + 3: .standard(proto: "latent_channels"), + 4: .standard(proto: "downsampling_factor"), + 5: .standard(proto: "cfg_scale"), + 6: .standard(proto: "init_noise_scale"), + 7: .standard(proto: "step_noise_scale"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularFloatField(value: &self._eta) }() + case 2: try { try decoder.decodeSingularUInt64Field(value: &self._samplingSteps) }() + case 3: try { try decoder.decodeSingularUInt64Field(value: &self._latentChannels) }() + case 4: try { try decoder.decodeSingularUInt64Field(value: &self._downsamplingFactor) }() + case 5: try { try decoder.decodeSingularFloatField(value: &self._cfgScale) }() + case 6: try { try decoder.decodeSingularFloatField(value: &self._initNoiseScale) }() + case 7: try { try decoder.decodeSingularFloatField(value: &self._stepNoiseScale) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + try { if let v = self._eta { + try visitor.visitSingularFloatField(value: v, fieldNumber: 1) + } }() + try { if let v = self._samplingSteps { + try visitor.visitSingularUInt64Field(value: v, fieldNumber: 2) + } }() + try { if let v = self._latentChannels { + try visitor.visitSingularUInt64Field(value: v, fieldNumber: 3) + } }() + try { if let v = self._downsamplingFactor { + try visitor.visitSingularUInt64Field(value: v, fieldNumber: 4) + } }() + try { if let v = self._cfgScale { + try visitor.visitSingularFloatField(value: v, fieldNumber: 5) + } }() + try { if let v = self._initNoiseScale { + try visitor.visitSingularFloatField(value: v, fieldNumber: 6) + } }() + try { if let v = self._stepNoiseScale { + try visitor.visitSingularFloatField(value: v, fieldNumber: 7) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_SamplerParameters, rhs: Stabilityai_Platformapis_Generation_V1_SamplerParameters) -> Bool { + if lhs._eta != rhs._eta {return false} + if lhs._samplingSteps != rhs._samplingSteps {return false} + if lhs._latentChannels != rhs._latentChannels {return false} + if lhs._downsamplingFactor != rhs._downsamplingFactor {return false} + if lhs._cfgScale != rhs._cfgScale {return false} + if lhs._initNoiseScale != rhs._initNoiseScale {return false} + if lhs._stepNoiseScale != rhs._stepNoiseScale {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_ConditionerParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".ConditionerParameters" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "vector_adjust_prior"), + 2: .same(proto: "conditioner"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self._vectorAdjustPrior) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._conditioner) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + try { if let v = self._vectorAdjustPrior { + try visitor.visitSingularStringField(value: v, fieldNumber: 1) + } }() + try { if let v = self._conditioner { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_ConditionerParameters, rhs: Stabilityai_Platformapis_Generation_V1_ConditionerParameters) -> Bool { + if lhs._vectorAdjustPrior != rhs._vectorAdjustPrior {return false} + if lhs._conditioner != rhs._conditioner {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_ScheduleParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".ScheduleParameters" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "start"), + 2: .same(proto: "end"), + 3: .same(proto: "value"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularFloatField(value: &self._start) }() + case 2: try { try decoder.decodeSingularFloatField(value: &self._end) }() + case 3: try { try decoder.decodeSingularFloatField(value: &self._value) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + try { if let v = self._start { + try visitor.visitSingularFloatField(value: v, fieldNumber: 1) + } }() + try { if let v = self._end { + try visitor.visitSingularFloatField(value: v, fieldNumber: 2) + } }() + try { if let v = self._value { + try visitor.visitSingularFloatField(value: v, fieldNumber: 3) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_ScheduleParameters, rhs: Stabilityai_Platformapis_Generation_V1_ScheduleParameters) -> Bool { + if lhs._start != rhs._start {return false} + if lhs._end != rhs._end {return false} + if lhs._value != rhs._value {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_StepParameter: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".StepParameter" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "scaled_step"), + 2: .same(proto: "sampler"), + 3: .same(proto: "schedule"), + 4: .same(proto: "guidance"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularFloatField(value: &self.scaledStep) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._sampler) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._schedule) }() + case 4: try { try decoder.decodeSingularMessageField(value: &self._guidance) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if self.scaledStep != 0 { + try visitor.visitSingularFloatField(value: self.scaledStep, fieldNumber: 1) + } + try { if let v = self._sampler { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + try { if let v = self._schedule { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + try { if let v = self._guidance { + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_StepParameter, rhs: Stabilityai_Platformapis_Generation_V1_StepParameter) -> Bool { + if lhs.scaledStep != rhs.scaledStep {return false} + if lhs._sampler != rhs._sampler {return false} + if lhs._schedule != rhs._schedule {return false} + if lhs._guidance != rhs._guidance {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_Model: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".Model" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "architecture"), + 2: .same(proto: "publisher"), + 3: .same(proto: "dataset"), + 4: .same(proto: "version"), + 5: .standard(proto: "semantic_version"), + 6: .same(proto: "alias"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularEnumField(value: &self.architecture) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.publisher) }() + case 3: try { try decoder.decodeSingularStringField(value: &self.dataset) }() + case 4: try { try decoder.decodeSingularFloatField(value: &self.version) }() + case 5: try { try decoder.decodeSingularStringField(value: &self.semanticVersion) }() + case 6: try { try decoder.decodeSingularStringField(value: &self.alias) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if self.architecture != .none { + try visitor.visitSingularEnumField(value: self.architecture, fieldNumber: 1) + } + if !self.publisher.isEmpty { + try visitor.visitSingularStringField(value: self.publisher, fieldNumber: 2) + } + if !self.dataset.isEmpty { + try visitor.visitSingularStringField(value: self.dataset, fieldNumber: 3) + } + if self.version != 0 { + try visitor.visitSingularFloatField(value: self.version, fieldNumber: 4) + } + if !self.semanticVersion.isEmpty { + try visitor.visitSingularStringField(value: self.semanticVersion, fieldNumber: 5) + } + if !self.alias.isEmpty { + try visitor.visitSingularStringField(value: self.alias, fieldNumber: 6) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_Model, rhs: Stabilityai_Platformapis_Generation_V1_Model) -> Bool { + if lhs.architecture != rhs.architecture {return false} + if lhs.publisher != rhs.publisher {return false} + if lhs.dataset != rhs.dataset {return false} + if lhs.version != rhs.version {return false} + if lhs.semanticVersion != rhs.semanticVersion {return false} + if lhs.alias != rhs.alias {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_CutoutParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".CutoutParameters" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "cutouts"), + 2: .same(proto: "count"), + 3: .same(proto: "gray"), + 4: .same(proto: "blur"), + 5: .standard(proto: "size_power"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.cutouts) }() + case 2: try { try decoder.decodeSingularUInt32Field(value: &self._count) }() + case 3: try { try decoder.decodeSingularFloatField(value: &self._gray) }() + case 4: try { try decoder.decodeSingularFloatField(value: &self._blur) }() + case 5: try { try decoder.decodeSingularFloatField(value: &self._sizePower) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !self.cutouts.isEmpty { + try visitor.visitRepeatedMessageField(value: self.cutouts, fieldNumber: 1) + } + try { if let v = self._count { + try visitor.visitSingularUInt32Field(value: v, fieldNumber: 2) + } }() + try { if let v = self._gray { + try visitor.visitSingularFloatField(value: v, fieldNumber: 3) + } }() + try { if let v = self._blur { + try visitor.visitSingularFloatField(value: v, fieldNumber: 4) + } }() + try { if let v = self._sizePower { + try visitor.visitSingularFloatField(value: v, fieldNumber: 5) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_CutoutParameters, rhs: Stabilityai_Platformapis_Generation_V1_CutoutParameters) -> Bool { + if lhs.cutouts != rhs.cutouts {return false} + if lhs._count != rhs._count {return false} + if lhs._gray != rhs._gray {return false} + if lhs._blur != rhs._blur {return false} + if lhs._sizePower != rhs._sizePower {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_GuidanceScheduleParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".GuidanceScheduleParameters" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "duration"), + 2: .same(proto: "value"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularFloatField(value: &self.duration) }() + case 2: try { try decoder.decodeSingularFloatField(value: &self.value) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if self.duration != 0 { + try visitor.visitSingularFloatField(value: self.duration, fieldNumber: 1) + } + if self.value != 0 { + try visitor.visitSingularFloatField(value: self.value, fieldNumber: 2) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_GuidanceScheduleParameters, rhs: Stabilityai_Platformapis_Generation_V1_GuidanceScheduleParameters) -> Bool { + if lhs.duration != rhs.duration {return false} + if lhs.value != rhs.value {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_GuidanceInstanceParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".GuidanceInstanceParameters" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 2: .same(proto: "models"), + 3: .standard(proto: "guidance_strength"), + 4: .same(proto: "schedule"), + 5: .same(proto: "cutouts"), + 6: .same(proto: "prompt"), + ] + + fileprivate class _StorageClass { + var _models: [Stabilityai_Platformapis_Generation_V1_Model] = [] + var _guidanceStrength: Float? = nil + var _schedule: [Stabilityai_Platformapis_Generation_V1_GuidanceScheduleParameters] = [] + var _cutouts: Stabilityai_Platformapis_Generation_V1_CutoutParameters? = nil + var _prompt: Stabilityai_Platformapis_Generation_V1_Prompt? = nil + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _models = source._models + _guidanceStrength = source._guidanceStrength + _schedule = source._schedule + _cutouts = source._cutouts + _prompt = source._prompt + } + } + + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage + } + + mutating func decodeMessage(decoder: inout D) throws { + _ = _uniqueStorage() + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 2: try { try decoder.decodeRepeatedMessageField(value: &_storage._models) }() + case 3: try { try decoder.decodeSingularFloatField(value: &_storage._guidanceStrength) }() + case 4: try { try decoder.decodeRepeatedMessageField(value: &_storage._schedule) }() + case 5: try { try decoder.decodeSingularMessageField(value: &_storage._cutouts) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._prompt) }() + default: break + } + } + } + } + + func traverse(visitor: inout V) throws { + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !_storage._models.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._models, fieldNumber: 2) + } + try { if let v = _storage._guidanceStrength { + try visitor.visitSingularFloatField(value: v, fieldNumber: 3) + } }() + if !_storage._schedule.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._schedule, fieldNumber: 4) + } + try { if let v = _storage._cutouts { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = _storage._prompt { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_GuidanceInstanceParameters, rhs: Stabilityai_Platformapis_Generation_V1_GuidanceInstanceParameters) -> Bool { + if lhs._storage !== rhs._storage { + let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in + let _storage = _args.0 + let rhs_storage = _args.1 + if _storage._models != rhs_storage._models {return false} + if _storage._guidanceStrength != rhs_storage._guidanceStrength {return false} + if _storage._schedule != rhs_storage._schedule {return false} + if _storage._cutouts != rhs_storage._cutouts {return false} + if _storage._prompt != rhs_storage._prompt {return false} + return true + } + if !storagesAreEqual {return false} + } + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_GuidanceParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".GuidanceParameters" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "guidance_preset"), + 2: .same(proto: "instances"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularEnumField(value: &self.guidancePreset) }() + case 2: try { try decoder.decodeRepeatedMessageField(value: &self.instances) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if self.guidancePreset != .none { + try visitor.visitSingularEnumField(value: self.guidancePreset, fieldNumber: 1) + } + if !self.instances.isEmpty { + try visitor.visitRepeatedMessageField(value: self.instances, fieldNumber: 2) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_GuidanceParameters, rhs: Stabilityai_Platformapis_Generation_V1_GuidanceParameters) -> Bool { + if lhs.guidancePreset != rhs.guidancePreset {return false} + if lhs.instances != rhs.instances {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_TransformType: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".TransformType" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "diffusion"), + 2: .same(proto: "upscaler"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { + var v: Stabilityai_Platformapis_Generation_V1_DiffusionSampler? + try decoder.decodeSingularEnumField(value: &v) + if let v = v { + if self.type != nil {try decoder.handleConflictingOneOf()} + self.type = .diffusion(v) + } + }() + case 2: try { + var v: Stabilityai_Platformapis_Generation_V1_Upscaler? + try decoder.decodeSingularEnumField(value: &v) + if let v = v { + if self.type != nil {try decoder.handleConflictingOneOf()} + self.type = .upscaler(v) + } + }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + switch self.type { + case .diffusion?: try { + guard case .diffusion(let v)? = self.type else { preconditionFailure() } + try visitor.visitSingularEnumField(value: v, fieldNumber: 1) + }() + case .upscaler?: try { + guard case .upscaler(let v)? = self.type else { preconditionFailure() } + try visitor.visitSingularEnumField(value: v, fieldNumber: 2) + }() + case nil: break + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_TransformType, rhs: Stabilityai_Platformapis_Generation_V1_TransformType) -> Bool { + if lhs.type != rhs.type {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_ImageParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".ImageParameters" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "height"), + 2: .same(proto: "width"), + 3: .same(proto: "seed"), + 4: .same(proto: "samples"), + 5: .same(proto: "steps"), + 6: .same(proto: "transform"), + 7: .same(proto: "parameters"), + 8: .standard(proto: "masked_area_init"), + 9: .standard(proto: "weight_method"), + 10: .same(proto: "quantize"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularUInt64Field(value: &self._height) }() + case 2: try { try decoder.decodeSingularUInt64Field(value: &self._width) }() + case 3: try { try decoder.decodeRepeatedUInt32Field(value: &self.seed) }() + case 4: try { try decoder.decodeSingularUInt64Field(value: &self._samples) }() + case 5: try { try decoder.decodeSingularUInt64Field(value: &self._steps) }() + case 6: try { try decoder.decodeSingularMessageField(value: &self._transform) }() + case 7: try { try decoder.decodeRepeatedMessageField(value: &self.parameters) }() + case 8: try { try decoder.decodeSingularEnumField(value: &self._maskedAreaInit) }() + case 9: try { try decoder.decodeSingularEnumField(value: &self._weightMethod) }() + case 10: try { try decoder.decodeSingularBoolField(value: &self._quantize) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + try { if let v = self._height { + try visitor.visitSingularUInt64Field(value: v, fieldNumber: 1) + } }() + try { if let v = self._width { + try visitor.visitSingularUInt64Field(value: v, fieldNumber: 2) + } }() + if !self.seed.isEmpty { + try visitor.visitPackedUInt32Field(value: self.seed, fieldNumber: 3) + } + try { if let v = self._samples { + try visitor.visitSingularUInt64Field(value: v, fieldNumber: 4) + } }() + try { if let v = self._steps { + try visitor.visitSingularUInt64Field(value: v, fieldNumber: 5) + } }() + try { if let v = self._transform { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + if !self.parameters.isEmpty { + try visitor.visitRepeatedMessageField(value: self.parameters, fieldNumber: 7) + } + try { if let v = self._maskedAreaInit { + try visitor.visitSingularEnumField(value: v, fieldNumber: 8) + } }() + try { if let v = self._weightMethod { + try visitor.visitSingularEnumField(value: v, fieldNumber: 9) + } }() + try { if let v = self._quantize { + try visitor.visitSingularBoolField(value: v, fieldNumber: 10) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_ImageParameters, rhs: Stabilityai_Platformapis_Generation_V1_ImageParameters) -> Bool { + if lhs._height != rhs._height {return false} + if lhs._width != rhs._width {return false} + if lhs.seed != rhs.seed {return false} + if lhs._samples != rhs._samples {return false} + if lhs._steps != rhs._steps {return false} + if lhs._transform != rhs._transform {return false} + if lhs.parameters != rhs.parameters {return false} + if lhs._maskedAreaInit != rhs._maskedAreaInit {return false} + if lhs._weightMethod != rhs._weightMethod {return false} + if lhs._quantize != rhs._quantize {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_ClassifierConcept: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".ClassifierConcept" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "concept"), + 2: .same(proto: "threshold"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.concept) }() + case 2: try { try decoder.decodeSingularFloatField(value: &self._threshold) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !self.concept.isEmpty { + try visitor.visitSingularStringField(value: self.concept, fieldNumber: 1) + } + try { if let v = self._threshold { + try visitor.visitSingularFloatField(value: v, fieldNumber: 2) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_ClassifierConcept, rhs: Stabilityai_Platformapis_Generation_V1_ClassifierConcept) -> Bool { + if lhs.concept != rhs.concept {return false} + if lhs._threshold != rhs._threshold {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_ClassifierCategory: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".ClassifierCategory" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "name"), + 2: .same(proto: "concepts"), + 3: .same(proto: "adjustment"), + 4: .same(proto: "action"), + 5: .standard(proto: "classifier_mode"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.name) }() + case 2: try { try decoder.decodeRepeatedMessageField(value: &self.concepts) }() + case 3: try { try decoder.decodeSingularFloatField(value: &self._adjustment) }() + case 4: try { try decoder.decodeSingularEnumField(value: &self._action) }() + case 5: try { try decoder.decodeSingularEnumField(value: &self._classifierMode) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !self.name.isEmpty { + try visitor.visitSingularStringField(value: self.name, fieldNumber: 1) + } + if !self.concepts.isEmpty { + try visitor.visitRepeatedMessageField(value: self.concepts, fieldNumber: 2) + } + try { if let v = self._adjustment { + try visitor.visitSingularFloatField(value: v, fieldNumber: 3) + } }() + try { if let v = self._action { + try visitor.visitSingularEnumField(value: v, fieldNumber: 4) + } }() + try { if let v = self._classifierMode { + try visitor.visitSingularEnumField(value: v, fieldNumber: 5) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_ClassifierCategory, rhs: Stabilityai_Platformapis_Generation_V1_ClassifierCategory) -> Bool { + if lhs.name != rhs.name {return false} + if lhs.concepts != rhs.concepts {return false} + if lhs._adjustment != rhs._adjustment {return false} + if lhs._action != rhs._action {return false} + if lhs._classifierMode != rhs._classifierMode {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_ClassifierParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".ClassifierParameters" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "categories"), + 2: .same(proto: "exceeds"), + 3: .standard(proto: "realized_action"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.categories) }() + case 2: try { try decoder.decodeRepeatedMessageField(value: &self.exceeds) }() + case 3: try { try decoder.decodeSingularEnumField(value: &self._realizedAction) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !self.categories.isEmpty { + try visitor.visitRepeatedMessageField(value: self.categories, fieldNumber: 1) + } + if !self.exceeds.isEmpty { + try visitor.visitRepeatedMessageField(value: self.exceeds, fieldNumber: 2) + } + try { if let v = self._realizedAction { + try visitor.visitSingularEnumField(value: v, fieldNumber: 3) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_ClassifierParameters, rhs: Stabilityai_Platformapis_Generation_V1_ClassifierParameters) -> Bool { + if lhs.categories != rhs.categories {return false} + if lhs.exceeds != rhs.exceeds {return false} + if lhs._realizedAction != rhs._realizedAction {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_InterpolateParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".InterpolateParameters" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "ratios"), + 2: .same(proto: "mode"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeRepeatedFloatField(value: &self.ratios) }() + case 2: try { try decoder.decodeSingularEnumField(value: &self._mode) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !self.ratios.isEmpty { + try visitor.visitPackedFloatField(value: self.ratios, fieldNumber: 1) + } + try { if let v = self._mode { + try visitor.visitSingularEnumField(value: v, fieldNumber: 2) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_InterpolateParameters, rhs: Stabilityai_Platformapis_Generation_V1_InterpolateParameters) -> Bool { + if lhs.ratios != rhs.ratios {return false} + if lhs._mode != rhs._mode {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_TransformColorAdjust: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".TransformColorAdjust" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "brightness"), + 2: .same(proto: "contrast"), + 3: .same(proto: "hue"), + 4: .same(proto: "saturation"), + 5: .same(proto: "lightness"), + 6: .standard(proto: "match_image"), + 7: .standard(proto: "match_mode"), + 8: .standard(proto: "noise_amount"), + 9: .standard(proto: "noise_seed"), + ] + + fileprivate class _StorageClass { + var _brightness: Float? = nil + var _contrast: Float? = nil + var _hue: Float? = nil + var _saturation: Float? = nil + var _lightness: Float? = nil + var _matchImage: Stabilityai_Platformapis_Generation_V1_Artifact? = nil + var _matchMode: Stabilityai_Platformapis_Generation_V1_ColorMatchMode? = nil + var _noiseAmount: Float? = nil + var _noiseSeed: UInt32? = nil + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _brightness = source._brightness + _contrast = source._contrast + _hue = source._hue + _saturation = source._saturation + _lightness = source._lightness + _matchImage = source._matchImage + _matchMode = source._matchMode + _noiseAmount = source._noiseAmount + _noiseSeed = source._noiseSeed + } + } + + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage + } + + mutating func decodeMessage(decoder: inout D) throws { + _ = _uniqueStorage() + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularFloatField(value: &_storage._brightness) }() + case 2: try { try decoder.decodeSingularFloatField(value: &_storage._contrast) }() + case 3: try { try decoder.decodeSingularFloatField(value: &_storage._hue) }() + case 4: try { try decoder.decodeSingularFloatField(value: &_storage._saturation) }() + case 5: try { try decoder.decodeSingularFloatField(value: &_storage._lightness) }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._matchImage) }() + case 7: try { try decoder.decodeSingularEnumField(value: &_storage._matchMode) }() + case 8: try { try decoder.decodeSingularFloatField(value: &_storage._noiseAmount) }() + case 9: try { try decoder.decodeSingularUInt32Field(value: &_storage._noiseSeed) }() + default: break + } + } + } + } + + func traverse(visitor: inout V) throws { + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + try { if let v = _storage._brightness { + try visitor.visitSingularFloatField(value: v, fieldNumber: 1) + } }() + try { if let v = _storage._contrast { + try visitor.visitSingularFloatField(value: v, fieldNumber: 2) + } }() + try { if let v = _storage._hue { + try visitor.visitSingularFloatField(value: v, fieldNumber: 3) + } }() + try { if let v = _storage._saturation { + try visitor.visitSingularFloatField(value: v, fieldNumber: 4) + } }() + try { if let v = _storage._lightness { + try visitor.visitSingularFloatField(value: v, fieldNumber: 5) + } }() + try { if let v = _storage._matchImage { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + try { if let v = _storage._matchMode { + try visitor.visitSingularEnumField(value: v, fieldNumber: 7) + } }() + try { if let v = _storage._noiseAmount { + try visitor.visitSingularFloatField(value: v, fieldNumber: 8) + } }() + try { if let v = _storage._noiseSeed { + try visitor.visitSingularUInt32Field(value: v, fieldNumber: 9) + } }() + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_TransformColorAdjust, rhs: Stabilityai_Platformapis_Generation_V1_TransformColorAdjust) -> Bool { + if lhs._storage !== rhs._storage { + let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in + let _storage = _args.0 + let rhs_storage = _args.1 + if _storage._brightness != rhs_storage._brightness {return false} + if _storage._contrast != rhs_storage._contrast {return false} + if _storage._hue != rhs_storage._hue {return false} + if _storage._saturation != rhs_storage._saturation {return false} + if _storage._lightness != rhs_storage._lightness {return false} + if _storage._matchImage != rhs_storage._matchImage {return false} + if _storage._matchMode != rhs_storage._matchMode {return false} + if _storage._noiseAmount != rhs_storage._noiseAmount {return false} + if _storage._noiseSeed != rhs_storage._noiseSeed {return false} + return true + } + if !storagesAreEqual {return false} + } + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_TransformDepthCalc: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".TransformDepthCalc" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "blend_weight"), + 2: .standard(proto: "blur_radius"), + 3: .same(proto: "reverse"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularFloatField(value: &self._blendWeight) }() + case 2: try { try decoder.decodeSingularUInt32Field(value: &self._blurRadius) }() + case 3: try { try decoder.decodeSingularBoolField(value: &self._reverse) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + try { if let v = self._blendWeight { + try visitor.visitSingularFloatField(value: v, fieldNumber: 1) + } }() + try { if let v = self._blurRadius { + try visitor.visitSingularUInt32Field(value: v, fieldNumber: 2) + } }() + try { if let v = self._reverse { + try visitor.visitSingularBoolField(value: v, fieldNumber: 3) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_TransformDepthCalc, rhs: Stabilityai_Platformapis_Generation_V1_TransformDepthCalc) -> Bool { + if lhs._blendWeight != rhs._blendWeight {return false} + if lhs._blurRadius != rhs._blurRadius {return false} + if lhs._reverse != rhs._reverse {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_TransformMatrix: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".TransformMatrix" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "data"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeRepeatedFloatField(value: &self.data) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if !self.data.isEmpty { + try visitor.visitPackedFloatField(value: self.data, fieldNumber: 1) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_TransformMatrix, rhs: Stabilityai_Platformapis_Generation_V1_TransformMatrix) -> Bool { + if lhs.data != rhs.data {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_TransformResample: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".TransformResample" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "border_mode"), + 2: .same(proto: "transform"), + 3: .standard(proto: "prev_transform"), + 4: .standard(proto: "depth_warp"), + 5: .standard(proto: "export_mask"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularEnumField(value: &self.borderMode) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._transform) }() + case 3: try { try decoder.decodeSingularMessageField(value: &self._prevTransform) }() + case 4: try { try decoder.decodeSingularFloatField(value: &self._depthWarp) }() + case 5: try { try decoder.decodeSingularBoolField(value: &self._exportMask) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if self.borderMode != .borderReflect { + try visitor.visitSingularEnumField(value: self.borderMode, fieldNumber: 1) + } + try { if let v = self._transform { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + try { if let v = self._prevTransform { + try visitor.visitSingularMessageField(value: v, fieldNumber: 3) + } }() + try { if let v = self._depthWarp { + try visitor.visitSingularFloatField(value: v, fieldNumber: 4) + } }() + try { if let v = self._exportMask { + try visitor.visitSingularBoolField(value: v, fieldNumber: 5) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_TransformResample, rhs: Stabilityai_Platformapis_Generation_V1_TransformResample) -> Bool { + if lhs.borderMode != rhs.borderMode {return false} + if lhs._transform != rhs._transform {return false} + if lhs._prevTransform != rhs._prevTransform {return false} + if lhs._depthWarp != rhs._depthWarp {return false} + if lhs._exportMask != rhs._exportMask {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_CameraParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".CameraParameters" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "camera_type"), + 2: .standard(proto: "near_plane"), + 3: .standard(proto: "far_plane"), + 4: .same(proto: "fov"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularEnumField(value: &self.cameraType) }() + case 2: try { try decoder.decodeSingularFloatField(value: &self.nearPlane) }() + case 3: try { try decoder.decodeSingularFloatField(value: &self.farPlane) }() + case 4: try { try decoder.decodeSingularFloatField(value: &self._fov) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if self.cameraType != .cameraPerspective { + try visitor.visitSingularEnumField(value: self.cameraType, fieldNumber: 1) + } + if self.nearPlane != 0 { + try visitor.visitSingularFloatField(value: self.nearPlane, fieldNumber: 2) + } + if self.farPlane != 0 { + try visitor.visitSingularFloatField(value: self.farPlane, fieldNumber: 3) + } + try { if let v = self._fov { + try visitor.visitSingularFloatField(value: v, fieldNumber: 4) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_CameraParameters, rhs: Stabilityai_Platformapis_Generation_V1_CameraParameters) -> Bool { + if lhs.cameraType != rhs.cameraType {return false} + if lhs.nearPlane != rhs.nearPlane {return false} + if lhs.farPlane != rhs.farPlane {return false} + if lhs._fov != rhs._fov {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_TransformCameraPose: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".TransformCameraPose" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "world_to_view_matrix"), + 2: .standard(proto: "camera_parameters"), + 5: .standard(proto: "do_prefill"), + 8: .standard(proto: "render_mode"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularMessageField(value: &self._worldToViewMatrix) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._cameraParameters) }() + case 5: try { try decoder.decodeSingularBoolField(value: &self.doPrefill) }() + case 8: try { try decoder.decodeSingularEnumField(value: &self.renderMode) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + try { if let v = self._worldToViewMatrix { + try visitor.visitSingularMessageField(value: v, fieldNumber: 1) + } }() + try { if let v = self._cameraParameters { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + if self.doPrefill != false { + try visitor.visitSingularBoolField(value: self.doPrefill, fieldNumber: 5) + } + if self.renderMode != .renderMesh { + try visitor.visitSingularEnumField(value: self.renderMode, fieldNumber: 8) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_TransformCameraPose, rhs: Stabilityai_Platformapis_Generation_V1_TransformCameraPose) -> Bool { + if lhs._worldToViewMatrix != rhs._worldToViewMatrix {return false} + if lhs._cameraParameters != rhs._cameraParameters {return false} + if lhs.doPrefill != rhs.doPrefill {return false} + if lhs.renderMode != rhs.renderMode {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_TransformParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".TransformParameters" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 2: .standard(proto: "color_adjust"), + 4: .standard(proto: "depth_calc"), + 5: .same(proto: "resample"), + 6: .standard(proto: "camera_pose"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 2: try { + var v: Stabilityai_Platformapis_Generation_V1_TransformColorAdjust? + var hadOneofValue = false + if let current = self.transform { + hadOneofValue = true + if case .colorAdjust(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.transform = .colorAdjust(v) + } + }() + case 4: try { + var v: Stabilityai_Platformapis_Generation_V1_TransformDepthCalc? + var hadOneofValue = false + if let current = self.transform { + hadOneofValue = true + if case .depthCalc(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.transform = .depthCalc(v) + } + }() + case 5: try { + var v: Stabilityai_Platformapis_Generation_V1_TransformResample? + var hadOneofValue = false + if let current = self.transform { + hadOneofValue = true + if case .resample(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.transform = .resample(v) + } + }() + case 6: try { + var v: Stabilityai_Platformapis_Generation_V1_TransformCameraPose? + var hadOneofValue = false + if let current = self.transform { + hadOneofValue = true + if case .cameraPose(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + self.transform = .cameraPose(v) + } + }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + switch self.transform { + case .colorAdjust?: try { + guard case .colorAdjust(let v)? = self.transform else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + }() + case .depthCalc?: try { + guard case .depthCalc(let v)? = self.transform else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 4) + }() + case .resample?: try { + guard case .resample(let v)? = self.transform else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + }() + case .cameraPose?: try { + guard case .cameraPose(let v)? = self.transform else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + }() + case nil: break + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_TransformParameters, rhs: Stabilityai_Platformapis_Generation_V1_TransformParameters) -> Bool { + if lhs.transform != rhs.transform {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_AssetParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".AssetParameters" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "action"), + 2: .standard(proto: "project_id"), + 3: .same(proto: "use"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularEnumField(value: &self.action) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.projectID) }() + case 3: try { try decoder.decodeSingularEnumField(value: &self.use) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if self.action != .assetPut { + try visitor.visitSingularEnumField(value: self.action, fieldNumber: 1) + } + if !self.projectID.isEmpty { + try visitor.visitSingularStringField(value: self.projectID, fieldNumber: 2) + } + if self.use != .undefined { + try visitor.visitSingularEnumField(value: self.use, fieldNumber: 3) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_AssetParameters, rhs: Stabilityai_Platformapis_Generation_V1_AssetParameters) -> Bool { + if lhs.action != rhs.action {return false} + if lhs.projectID != rhs.projectID {return false} + if lhs.use != rhs.use {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_AnswerMeta: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".AnswerMeta" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "gpu_id"), + 2: .standard(proto: "cpu_id"), + 3: .standard(proto: "node_id"), + 4: .standard(proto: "engine_id"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self._gpuID) }() + case 2: try { try decoder.decodeSingularStringField(value: &self._cpuID) }() + case 3: try { try decoder.decodeSingularStringField(value: &self._nodeID) }() + case 4: try { try decoder.decodeSingularStringField(value: &self._engineID) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + try { if let v = self._gpuID { + try visitor.visitSingularStringField(value: v, fieldNumber: 1) + } }() + try { if let v = self._cpuID { + try visitor.visitSingularStringField(value: v, fieldNumber: 2) + } }() + try { if let v = self._nodeID { + try visitor.visitSingularStringField(value: v, fieldNumber: 3) + } }() + try { if let v = self._engineID { + try visitor.visitSingularStringField(value: v, fieldNumber: 4) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_AnswerMeta, rhs: Stabilityai_Platformapis_Generation_V1_AnswerMeta) -> Bool { + if lhs._gpuID != rhs._gpuID {return false} + if lhs._cpuID != rhs._cpuID {return false} + if lhs._nodeID != rhs._nodeID {return false} + if lhs._engineID != rhs._engineID {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_Answer: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".Answer" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "answer_id"), + 2: .standard(proto: "request_id"), + 3: .same(proto: "received"), + 4: .same(proto: "created"), + 6: .same(proto: "meta"), + 7: .same(proto: "artifacts"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.answerID) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.requestID) }() + case 3: try { try decoder.decodeSingularUInt64Field(value: &self.received) }() + case 4: try { try decoder.decodeSingularUInt64Field(value: &self.created) }() + case 6: try { try decoder.decodeSingularMessageField(value: &self._meta) }() + case 7: try { try decoder.decodeRepeatedMessageField(value: &self.artifacts) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !self.answerID.isEmpty { + try visitor.visitSingularStringField(value: self.answerID, fieldNumber: 1) + } + if !self.requestID.isEmpty { + try visitor.visitSingularStringField(value: self.requestID, fieldNumber: 2) + } + if self.received != 0 { + try visitor.visitSingularUInt64Field(value: self.received, fieldNumber: 3) + } + if self.created != 0 { + try visitor.visitSingularUInt64Field(value: self.created, fieldNumber: 4) + } + try { if let v = self._meta { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + if !self.artifacts.isEmpty { + try visitor.visitRepeatedMessageField(value: self.artifacts, fieldNumber: 7) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_Answer, rhs: Stabilityai_Platformapis_Generation_V1_Answer) -> Bool { + if lhs.answerID != rhs.answerID {return false} + if lhs.requestID != rhs.requestID {return false} + if lhs.received != rhs.received {return false} + if lhs.created != rhs.created {return false} + if lhs._meta != rhs._meta {return false} + if lhs.artifacts != rhs.artifacts {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_AnswerBatch: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".AnswerBatch" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "batch_id"), + 2: .same(proto: "answers"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.batchID) }() + case 2: try { try decoder.decodeRepeatedMessageField(value: &self.answers) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if !self.batchID.isEmpty { + try visitor.visitSingularStringField(value: self.batchID, fieldNumber: 1) + } + if !self.answers.isEmpty { + try visitor.visitRepeatedMessageField(value: self.answers, fieldNumber: 2) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_AnswerBatch, rhs: Stabilityai_Platformapis_Generation_V1_AnswerBatch) -> Bool { + if lhs.batchID != rhs.batchID {return false} + if lhs.answers != rhs.answers {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_Request: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".Request" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "engine_id"), + 2: .standard(proto: "request_id"), + 3: .standard(proto: "requested_type"), + 4: .same(proto: "prompt"), + 5: .same(proto: "image"), + 7: .same(proto: "classifier"), + 8: .same(proto: "asset"), + 11: .same(proto: "interpolate"), + 12: .same(proto: "transform"), + 6: .same(proto: "conditioner"), + 2047: .same(proto: "extras"), + ] + + fileprivate class _StorageClass { + var _engineID: String = String() + var _requestID: String = String() + var _requestedType: Stabilityai_Platformapis_Generation_V1_ArtifactType = .artifactNone + var _prompt: [Stabilityai_Platformapis_Generation_V1_Prompt] = [] + var _params: Stabilityai_Platformapis_Generation_V1_Request.OneOf_Params? + var _conditioner: Stabilityai_Platformapis_Generation_V1_ConditionerParameters? = nil + var _extras: SwiftProtobuf.Google_Protobuf_Struct? = nil + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _engineID = source._engineID + _requestID = source._requestID + _requestedType = source._requestedType + _prompt = source._prompt + _params = source._params + _conditioner = source._conditioner + _extras = source._extras + } + } + + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage + } + + mutating func decodeMessage(decoder: inout D) throws { + _ = _uniqueStorage() + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &_storage._engineID) }() + case 2: try { try decoder.decodeSingularStringField(value: &_storage._requestID) }() + case 3: try { try decoder.decodeSingularEnumField(value: &_storage._requestedType) }() + case 4: try { try decoder.decodeRepeatedMessageField(value: &_storage._prompt) }() + case 5: try { + var v: Stabilityai_Platformapis_Generation_V1_ImageParameters? + var hadOneofValue = false + if let current = _storage._params { + hadOneofValue = true + if case .image(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + _storage._params = .image(v) + } + }() + case 6: try { try decoder.decodeSingularMessageField(value: &_storage._conditioner) }() + case 7: try { + var v: Stabilityai_Platformapis_Generation_V1_ClassifierParameters? + var hadOneofValue = false + if let current = _storage._params { + hadOneofValue = true + if case .classifier(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + _storage._params = .classifier(v) + } + }() + case 8: try { + var v: Stabilityai_Platformapis_Generation_V1_AssetParameters? + var hadOneofValue = false + if let current = _storage._params { + hadOneofValue = true + if case .asset(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + _storage._params = .asset(v) + } + }() + case 11: try { + var v: Stabilityai_Platformapis_Generation_V1_InterpolateParameters? + var hadOneofValue = false + if let current = _storage._params { + hadOneofValue = true + if case .interpolate(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + _storage._params = .interpolate(v) + } + }() + case 12: try { + var v: Stabilityai_Platformapis_Generation_V1_TransformParameters? + var hadOneofValue = false + if let current = _storage._params { + hadOneofValue = true + if case .transform(let m) = current {v = m} + } + try decoder.decodeSingularMessageField(value: &v) + if let v = v { + if hadOneofValue {try decoder.handleConflictingOneOf()} + _storage._params = .transform(v) + } + }() + case 2047: try { try decoder.decodeSingularMessageField(value: &_storage._extras) }() + default: break + } + } + } + } + + func traverse(visitor: inout V) throws { + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !_storage._engineID.isEmpty { + try visitor.visitSingularStringField(value: _storage._engineID, fieldNumber: 1) + } + if !_storage._requestID.isEmpty { + try visitor.visitSingularStringField(value: _storage._requestID, fieldNumber: 2) + } + if _storage._requestedType != .artifactNone { + try visitor.visitSingularEnumField(value: _storage._requestedType, fieldNumber: 3) + } + if !_storage._prompt.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._prompt, fieldNumber: 4) + } + try { if case .image(let v)? = _storage._params { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try { if let v = _storage._conditioner { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + switch _storage._params { + case .classifier?: try { + guard case .classifier(let v)? = _storage._params else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 7) + }() + case .asset?: try { + guard case .asset(let v)? = _storage._params else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + }() + case .interpolate?: try { + guard case .interpolate(let v)? = _storage._params else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 11) + }() + case .transform?: try { + guard case .transform(let v)? = _storage._params else { preconditionFailure() } + try visitor.visitSingularMessageField(value: v, fieldNumber: 12) + }() + default: break + } + try { if let v = _storage._extras { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2047) + } }() + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_Request, rhs: Stabilityai_Platformapis_Generation_V1_Request) -> Bool { + if lhs._storage !== rhs._storage { + let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in + let _storage = _args.0 + let rhs_storage = _args.1 + if _storage._engineID != rhs_storage._engineID {return false} + if _storage._requestID != rhs_storage._requestID {return false} + if _storage._requestedType != rhs_storage._requestedType {return false} + if _storage._prompt != rhs_storage._prompt {return false} + if _storage._params != rhs_storage._params {return false} + if _storage._conditioner != rhs_storage._conditioner {return false} + if _storage._extras != rhs_storage._extras {return false} + return true + } + if !storagesAreEqual {return false} + } + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_OnStatus: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".OnStatus" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "reason"), + 2: .same(proto: "target"), + 3: .same(proto: "action"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeRepeatedEnumField(value: &self.reason) }() + case 2: try { try decoder.decodeSingularStringField(value: &self._target) }() + case 3: try { try decoder.decodeRepeatedEnumField(value: &self.action) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !self.reason.isEmpty { + try visitor.visitPackedEnumField(value: self.reason, fieldNumber: 1) + } + try { if let v = self._target { + try visitor.visitSingularStringField(value: v, fieldNumber: 2) + } }() + if !self.action.isEmpty { + try visitor.visitPackedEnumField(value: self.action, fieldNumber: 3) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_OnStatus, rhs: Stabilityai_Platformapis_Generation_V1_OnStatus) -> Bool { + if lhs.reason != rhs.reason {return false} + if lhs._target != rhs._target {return false} + if lhs.action != rhs.action {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_Stage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".Stage" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .same(proto: "request"), + 3: .standard(proto: "on_status"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularMessageField(value: &self._request) }() + case 3: try { try decoder.decodeRepeatedMessageField(value: &self.onStatus) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } + try { if let v = self._request { + try visitor.visitSingularMessageField(value: v, fieldNumber: 2) + } }() + if !self.onStatus.isEmpty { + try visitor.visitRepeatedMessageField(value: self.onStatus, fieldNumber: 3) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_Stage, rhs: Stabilityai_Platformapis_Generation_V1_Stage) -> Bool { + if lhs.id != rhs.id {return false} + if lhs._request != rhs._request {return false} + if lhs.onStatus != rhs.onStatus {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Generation_V1_ChainRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".ChainRequest" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "request_id"), + 2: .same(proto: "stage"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.requestID) }() + case 2: try { try decoder.decodeRepeatedMessageField(value: &self.stage) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if !self.requestID.isEmpty { + try visitor.visitSingularStringField(value: self.requestID, fieldNumber: 1) + } + if !self.stage.isEmpty { + try visitor.visitRepeatedMessageField(value: self.stage, fieldNumber: 2) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Generation_V1_ChainRequest, rhs: Stabilityai_Platformapis_Generation_V1_ChainRequest) -> Bool { + if lhs.requestID != rhs.requestID {return false} + if lhs.stage != rhs.stage {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} diff --git a/gen/proto/swift/stabilityai/platformapis/project/v1/project.connect.swift b/gen/proto/swift/stabilityai/platformapis/project/v1/project.connect.swift new file mode 100644 index 0000000..fe0ea88 --- /dev/null +++ b/gen/proto/swift/stabilityai/platformapis/project/v1/project.connect.swift @@ -0,0 +1,116 @@ +// Code generated by protoc-gen-connect-swift. DO NOT EDIT. +// +// Source: stabilityai/platformapis/project/v1/project.proto +// + +import Connect +import Foundation +import SwiftProtobuf + +/// +/// gRPC services +internal protocol Stabilityai_Platformapis_Project_V1_ProjectServiceClientInterface { + + /// Create a new project if it does not exist + @available(iOS 13, *) + func `create`(request: Stabilityai_Platformapis_Project_V1_CreateProjectRequest, headers: Connect.Headers) async -> ResponseMessage + + /// Update an existing project + @available(iOS 13, *) + func `update`(request: Stabilityai_Platformapis_Project_V1_UpdateProjectRequest, headers: Connect.Headers) async -> ResponseMessage + + /// List all the projects for an organization + @available(iOS 13, *) + func `list`(headers: Connect.Headers) -> any Connect.ServerOnlyAsyncStreamInterface + + /// Get a project + @available(iOS 13, *) + func `get`(request: Stabilityai_Platformapis_Project_V1_GetProjectRequest, headers: Connect.Headers) async -> ResponseMessage + + /// Delete a project + @available(iOS 13, *) + func `delete`(request: Stabilityai_Platformapis_Project_V1_DeleteProjectRequest, headers: Connect.Headers) async -> ResponseMessage + + /// Add or remove tags from an asset + @available(iOS 13, *) + func `tagAssets`(request: Stabilityai_Platformapis_Project_V1_TagAssetsRequest, headers: Connect.Headers) async -> ResponseMessage + + @available(iOS 13, *) + func `untagAssets`(request: Stabilityai_Platformapis_Project_V1_UntagAssetsRequest, headers: Connect.Headers) async -> ResponseMessage + + /// Query the assets of a project, with additional filtering + @available(iOS 13, *) + func `queryAssets`(request: Stabilityai_Platformapis_Project_V1_QueryAssetsRequest, headers: Connect.Headers) async -> ResponseMessage + + /// Delete one or more assets of a project + @available(iOS 13, *) + func `deleteAssets`(request: Stabilityai_Platformapis_Project_V1_DeleteAssetsRequest, headers: Connect.Headers) async -> ResponseMessage +} + +/// Concrete implementation of `Stabilityai_Platformapis_Project_V1_ProjectServiceClientInterface`. +internal final class Stabilityai_Platformapis_Project_V1_ProjectServiceClient: Stabilityai_Platformapis_Project_V1_ProjectServiceClientInterface { + private let client: Connect.ProtocolClientInterface + + internal init(client: Connect.ProtocolClientInterface) { + self.client = client + } + + @available(iOS 13, *) + internal func `create`(request: Stabilityai_Platformapis_Project_V1_CreateProjectRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { + return await self.client.unary(path: "stabilityai.platformapis.project.v1.ProjectService/Create", request: request, headers: headers) + } + + @available(iOS 13, *) + internal func `update`(request: Stabilityai_Platformapis_Project_V1_UpdateProjectRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { + return await self.client.unary(path: "stabilityai.platformapis.project.v1.ProjectService/Update", request: request, headers: headers) + } + + @available(iOS 13, *) + internal func `list`(headers: Connect.Headers = [:]) -> any Connect.ServerOnlyAsyncStreamInterface { + return self.client.serverOnlyStream(path: "stabilityai.platformapis.project.v1.ProjectService/List", headers: headers) + } + + @available(iOS 13, *) + internal func `get`(request: Stabilityai_Platformapis_Project_V1_GetProjectRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { + return await self.client.unary(path: "stabilityai.platformapis.project.v1.ProjectService/Get", request: request, headers: headers) + } + + @available(iOS 13, *) + internal func `delete`(request: Stabilityai_Platformapis_Project_V1_DeleteProjectRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { + return await self.client.unary(path: "stabilityai.platformapis.project.v1.ProjectService/Delete", request: request, headers: headers) + } + + @available(iOS 13, *) + internal func `tagAssets`(request: Stabilityai_Platformapis_Project_V1_TagAssetsRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { + return await self.client.unary(path: "stabilityai.platformapis.project.v1.ProjectService/TagAssets", request: request, headers: headers) + } + + @available(iOS 13, *) + internal func `untagAssets`(request: Stabilityai_Platformapis_Project_V1_UntagAssetsRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { + return await self.client.unary(path: "stabilityai.platformapis.project.v1.ProjectService/UntagAssets", request: request, headers: headers) + } + + @available(iOS 13, *) + internal func `queryAssets`(request: Stabilityai_Platformapis_Project_V1_QueryAssetsRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { + return await self.client.unary(path: "stabilityai.platformapis.project.v1.ProjectService/QueryAssets", request: request, headers: headers) + } + + @available(iOS 13, *) + internal func `deleteAssets`(request: Stabilityai_Platformapis_Project_V1_DeleteAssetsRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { + return await self.client.unary(path: "stabilityai.platformapis.project.v1.ProjectService/DeleteAssets", request: request, headers: headers) + } + + internal enum Metadata { + internal enum Methods { + internal static let create = Connect.MethodSpec(name: "Create", service: "stabilityai.platformapis.project.v1.ProjectService", type: .unary) + internal static let update = Connect.MethodSpec(name: "Update", service: "stabilityai.platformapis.project.v1.ProjectService", type: .unary) + internal static let list = Connect.MethodSpec(name: "List", service: "stabilityai.platformapis.project.v1.ProjectService", type: .serverStream) + internal static let get = Connect.MethodSpec(name: "Get", service: "stabilityai.platformapis.project.v1.ProjectService", type: .unary) + internal static let delete = Connect.MethodSpec(name: "Delete", service: "stabilityai.platformapis.project.v1.ProjectService", type: .unary) + internal static let tagAssets = Connect.MethodSpec(name: "TagAssets", service: "stabilityai.platformapis.project.v1.ProjectService", type: .unary) + internal static let untagAssets = Connect.MethodSpec(name: "UntagAssets", service: "stabilityai.platformapis.project.v1.ProjectService", type: .unary) + internal static let queryAssets = Connect.MethodSpec(name: "QueryAssets", service: "stabilityai.platformapis.project.v1.ProjectService", type: .unary) + internal static let deleteAssets = Connect.MethodSpec(name: "DeleteAssets", service: "stabilityai.platformapis.project.v1.ProjectService", type: .unary) + } + } +} diff --git a/gen/proto/swift/stabilityai/platformapis/project/v1/project.pb.swift b/gen/proto/swift/stabilityai/platformapis/project/v1/project.pb.swift new file mode 100644 index 0000000..7fd007c --- /dev/null +++ b/gen/proto/swift/stabilityai/platformapis/project/v1/project.pb.swift @@ -0,0 +1,1725 @@ +// DO NOT EDIT. +// swift-format-ignore-file +// +// Generated by the Swift generator plugin for the protocol buffer compiler. +// Source: stabilityai/platformapis/project/v1/project.proto +// +// For information on using the generated types, please see the documentation: +// https://github.com/apple/swift-protobuf/ + +import Foundation +import SwiftProtobuf + +// If the compiler emits an error on this type, it is because this file +// was generated by a version of the `protoc` Swift plug-in that is +// incompatible with the version of SwiftProtobuf to which you are linking. +// Please ensure that you are building against the same version of the API +// that was used to generate this file. +fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck { + struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {} + typealias Version = _2 +} + +enum Stabilityai_Platformapis_Project_V1_ProjectAccess: SwiftProtobuf.Enum { + typealias RawValue = Int + + /// Private access, only owner organization can access + case `private` // = 0 + + /// Public access, anyone can access + case `public` // = 1 + case UNRECOGNIZED(Int) + + init() { + self = .private + } + + init?(rawValue: Int) { + switch rawValue { + case 0: self = .private + case 1: self = .public + default: self = .UNRECOGNIZED(rawValue) + } + } + + var rawValue: Int { + switch self { + case .private: return 0 + case .public: return 1 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Stabilityai_Platformapis_Project_V1_ProjectAccess: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + static var allCases: [Stabilityai_Platformapis_Project_V1_ProjectAccess] = [ + .private, + .public, + ] +} + +#endif // swift(>=4.2) + +enum Stabilityai_Platformapis_Project_V1_ProjectStatus: SwiftProtobuf.Enum { + typealias RawValue = Int + + /// Inactive project + case inactive // = 0 + + /// Active project + case active // = 1 + + /// Deleted project, only set by delete endpoint + case deleted // = 2 + case UNRECOGNIZED(Int) + + init() { + self = .inactive + } + + init?(rawValue: Int) { + switch rawValue { + case 0: self = .inactive + case 1: self = .active + case 2: self = .deleted + default: self = .UNRECOGNIZED(rawValue) + } + } + + var rawValue: Int { + switch self { + case .inactive: return 0 + case .active: return 1 + case .deleted: return 2 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Stabilityai_Platformapis_Project_V1_ProjectStatus: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + static var allCases: [Stabilityai_Platformapis_Project_V1_ProjectStatus] = [ + .inactive, + .active, + .deleted, + ] +} + +#endif // swift(>=4.2) + +enum Stabilityai_Platformapis_Project_V1_ProjectAssetUse: SwiftProtobuf.Enum { + typealias RawValue = Int + + /// Asset does not have use defined + case undefined // = 0 + + /// Asset is used as an input for the project + case input // = 1 + + /// Asset is an output from the project + case output // = 2 + + /// Asset is an output from an intermediate step of the project + case intermediate // = 3 + + /// Asset is used as the project file for the project + case project // = 4 + case UNRECOGNIZED(Int) + + init() { + self = .undefined + } + + init?(rawValue: Int) { + switch rawValue { + case 0: self = .undefined + case 1: self = .input + case 2: self = .output + case 3: self = .intermediate + case 4: self = .project + default: self = .UNRECOGNIZED(rawValue) + } + } + + var rawValue: Int { + switch self { + case .undefined: return 0 + case .input: return 1 + case .output: return 2 + case .intermediate: return 3 + case .project: return 4 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Stabilityai_Platformapis_Project_V1_ProjectAssetUse: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + static var allCases: [Stabilityai_Platformapis_Project_V1_ProjectAssetUse] = [ + .undefined, + .input, + .output, + .intermediate, + .project, + ] +} + +#endif // swift(>=4.2) + +enum Stabilityai_Platformapis_Project_V1_ProjectSortDir: SwiftProtobuf.Enum { + typealias RawValue = Int + + /// Sort direction is not specified, uses default + case unspecified // = 0 + + /// Sort in ascending order + case asc // = 1 + + /// Sort in descending order + case desc // = 2 + case UNRECOGNIZED(Int) + + init() { + self = .unspecified + } + + init?(rawValue: Int) { + switch rawValue { + case 0: self = .unspecified + case 1: self = .asc + case 2: self = .desc + default: self = .UNRECOGNIZED(rawValue) + } + } + + var rawValue: Int { + switch self { + case .unspecified: return 0 + case .asc: return 1 + case .desc: return 2 + case .UNRECOGNIZED(let i): return i + } + } + +} + +#if swift(>=4.2) + +extension Stabilityai_Platformapis_Project_V1_ProjectSortDir: CaseIterable { + // The compiler won't synthesize support with the UNRECOGNIZED case. + static var allCases: [Stabilityai_Platformapis_Project_V1_ProjectSortDir] = [ + .unspecified, + .asc, + .desc, + ] +} + +#endif // swift(>=4.2) + +struct Stabilityai_Platformapis_Project_V1_ProjectAsset { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + /// ID of the asset, UUIDv4 + var id: String = String() + + /// The URI to the asset + var uri: String = String() + + /// The use of the asset with respect to the project + var use: Stabilityai_Platformapis_Project_V1_ProjectAssetUse = .undefined + + /// The name of the asset + var name: String = String() + + /// The asset size in bytes + var size: UInt64 = 0 + + /// Time of asset creation (UTC seconds epoch) + var createdAt: UInt64 = 0 + + /// Time of last asset update (UTC seconds epoch) + var updatedAt: UInt64 = 0 + + /// The request object that is associated with the artifact + var request: Stabilityai_Platformapis_Generation_V1_Request { + get {return _request ?? Stabilityai_Platformapis_Generation_V1_Request()} + set {_request = newValue} + } + /// Returns true if `request` has been explicitly set. + var hasRequest: Bool {return self._request != nil} + /// Clears the value of `request`. Subsequent reads from it will return its default value. + mutating func clearRequest() {self._request = nil} + + /// The tags associated with the asset + var tags: Dictionary = [:] + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _request: Stabilityai_Platformapis_Generation_V1_Request? = nil +} + +struct Stabilityai_Platformapis_Project_V1_Project { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + /// ID of the project, UUIDv4 + var id: String { + get {return _storage._id} + set {_uniqueStorage()._id = newValue} + } + + /// Title of the project + var title: String { + get {return _storage._title} + set {_uniqueStorage()._title = newValue} + } + + /// The ID of the organization owning the project + var ownerID: String { + get {return _storage._ownerID} + set {_uniqueStorage()._ownerID = newValue} + } + + /// The access of the project (such as public vs private) + var access: Stabilityai_Platformapis_Project_V1_ProjectAccess { + get {return _storage._access} + set {_uniqueStorage()._access = newValue} + } + + /// The status of the project (such as active vs inactive) + var status: Stabilityai_Platformapis_Project_V1_ProjectStatus { + get {return _storage._status} + set {_uniqueStorage()._status = newValue} + } + + /// The size of the project in bytes + var size: UInt64 { + get {return _storage._size} + set {_uniqueStorage()._size = newValue} + } + + /// Project file for the project + var file: Stabilityai_Platformapis_Project_V1_ProjectAsset { + get {return _storage._file ?? Stabilityai_Platformapis_Project_V1_ProjectAsset()} + set {_uniqueStorage()._file = newValue} + } + /// Returns true if `file` has been explicitly set. + var hasFile: Bool {return _storage._file != nil} + /// Clears the value of `file`. Subsequent reads from it will return its default value. + mutating func clearFile() {_uniqueStorage()._file = nil} + + /// Time of project creation (UTC seconds epoch) + var createdAt: UInt64 { + get {return _storage._createdAt} + set {_uniqueStorage()._createdAt = newValue} + } + + /// Time of last project update (UTC seconds epoch) + var updatedAt: UInt64 { + get {return _storage._updatedAt} + set {_uniqueStorage()._updatedAt = newValue} + } + + /// The listing of all assets associated with the project + var assets: [Stabilityai_Platformapis_Project_V1_ProjectAsset] { + get {return _storage._assets} + set {_uniqueStorage()._assets = newValue} + } + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _storage = _StorageClass.defaultInstance +} + +struct Stabilityai_Platformapis_Project_V1_CreateProjectRequest { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + /// title of the project + var title: String = String() + + /// The ID of the organization owning the project, empty for default org for user + var ownerID: String { + get {return _ownerID ?? String()} + set {_ownerID = newValue} + } + /// Returns true if `ownerID` has been explicitly set. + var hasOwnerID: Bool {return self._ownerID != nil} + /// Clears the value of `ownerID`. Subsequent reads from it will return its default value. + mutating func clearOwnerID() {self._ownerID = nil} + + /// The access of the project (such as public vs private) + var access: Stabilityai_Platformapis_Project_V1_ProjectAccess = .private + + /// The status of the project (such as active vs inactive) + var status: Stabilityai_Platformapis_Project_V1_ProjectStatus = .inactive + + /// Project file for the project (if existing, else will create) + var file: Stabilityai_Platformapis_Project_V1_ProjectAsset { + get {return _file ?? Stabilityai_Platformapis_Project_V1_ProjectAsset()} + set {_file = newValue} + } + /// Returns true if `file` has been explicitly set. + var hasFile: Bool {return self._file != nil} + /// Clears the value of `file`. Subsequent reads from it will return its default value. + mutating func clearFile() {self._file = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _ownerID: String? = nil + fileprivate var _file: Stabilityai_Platformapis_Project_V1_ProjectAsset? = nil +} + +struct Stabilityai_Platformapis_Project_V1_UpdateProjectRequest { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + /// ID of the project, UUIDv4 + var id: String = String() + + /// The ID of the organization owning the project, empty for default org for user + var ownerID: String { + get {return _ownerID ?? String()} + set {_ownerID = newValue} + } + /// Returns true if `ownerID` has been explicitly set. + var hasOwnerID: Bool {return self._ownerID != nil} + /// Clears the value of `ownerID`. Subsequent reads from it will return its default value. + mutating func clearOwnerID() {self._ownerID = nil} + + /// Title of the project + var title: String { + get {return _title ?? String()} + set {_title = newValue} + } + /// Returns true if `title` has been explicitly set. + var hasTitle: Bool {return self._title != nil} + /// Clears the value of `title`. Subsequent reads from it will return its default value. + mutating func clearTitle() {self._title = nil} + + /// The access of the project (such as public vs private) + var access: Stabilityai_Platformapis_Project_V1_ProjectAccess { + get {return _access ?? .private} + set {_access = newValue} + } + /// Returns true if `access` has been explicitly set. + var hasAccess: Bool {return self._access != nil} + /// Clears the value of `access`. Subsequent reads from it will return its default value. + mutating func clearAccess() {self._access = nil} + + /// The status of the project (such as active vs inactive) + var status: Stabilityai_Platformapis_Project_V1_ProjectStatus { + get {return _status ?? .inactive} + set {_status = newValue} + } + /// Returns true if `status` has been explicitly set. + var hasStatus: Bool {return self._status != nil} + /// Clears the value of `status`. Subsequent reads from it will return its default value. + mutating func clearStatus() {self._status = nil} + + /// Project file for the project + var file: Stabilityai_Platformapis_Project_V1_ProjectAsset { + get {return _file ?? Stabilityai_Platformapis_Project_V1_ProjectAsset()} + set {_file = newValue} + } + /// Returns true if `file` has been explicitly set. + var hasFile: Bool {return self._file != nil} + /// Clears the value of `file`. Subsequent reads from it will return its default value. + mutating func clearFile() {self._file = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _ownerID: String? = nil + fileprivate var _title: String? = nil + fileprivate var _access: Stabilityai_Platformapis_Project_V1_ProjectAccess? = nil + fileprivate var _status: Stabilityai_Platformapis_Project_V1_ProjectStatus? = nil + fileprivate var _file: Stabilityai_Platformapis_Project_V1_ProjectAsset? = nil +} + +struct Stabilityai_Platformapis_Project_V1_ListProjectRequest { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + /// The ID of the organization owning the project, empty for default org for user + var ownerID: String { + get {return _ownerID ?? String()} + set {_ownerID = newValue} + } + /// Returns true if `ownerID` has been explicitly set. + var hasOwnerID: Bool {return self._ownerID != nil} + /// Clears the value of `ownerID`. Subsequent reads from it will return its default value. + mutating func clearOwnerID() {self._ownerID = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _ownerID: String? = nil +} + +struct Stabilityai_Platformapis_Project_V1_GetProjectRequest { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + /// ID of the project to request, UUIDv4, empty string uses default project + var id: String = String() + + /// The ID of the organization owning the project, empty for default org for user + var ownerID: String { + get {return _ownerID ?? String()} + set {_ownerID = newValue} + } + /// Returns true if `ownerID` has been explicitly set. + var hasOwnerID: Bool {return self._ownerID != nil} + /// Clears the value of `ownerID`. Subsequent reads from it will return its default value. + mutating func clearOwnerID() {self._ownerID = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _ownerID: String? = nil +} + +struct Stabilityai_Platformapis_Project_V1_DeleteProjectRequest { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + /// ID of the project to request, UUIDv4 + var id: String = String() + + /// The ID of the organization owning the project, empty for default org for user + var ownerID: String { + get {return _ownerID ?? String()} + set {_ownerID = newValue} + } + /// Returns true if `ownerID` has been explicitly set. + var hasOwnerID: Bool {return self._ownerID != nil} + /// Clears the value of `ownerID`. Subsequent reads from it will return its default value. + mutating func clearOwnerID() {self._ownerID = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _ownerID: String? = nil +} + +struct Stabilityai_Platformapis_Project_V1_QueryAssetsRequest { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + /// ID of the project to request, UUIDv4, empty string uses default project + var id: String = String() + + /// The ID of the organization owning the assets, unset for default org for user + var ownerID: String { + get {return _ownerID ?? String()} + set {_ownerID = newValue} + } + /// Returns true if `ownerID` has been explicitly set. + var hasOwnerID: Bool {return self._ownerID != nil} + /// Clears the value of `ownerID`. Subsequent reads from it will return its default value. + mutating func clearOwnerID() {self._ownerID = nil} + + /// The time (UTC seconds epoch) to start listing assets from, unset for no restriction + var since: UInt64 { + get {return _since ?? 0} + set {_since = newValue} + } + /// Returns true if `since` has been explicitly set. + var hasSince: Bool {return self._since != nil} + /// Clears the value of `since`. Subsequent reads from it will return its default value. + mutating func clearSince() {self._since = nil} + + /// The time (UTC seconds epoch) to stop listing assets at, unset for no restriction + var until: UInt64 { + get {return _until ?? 0} + set {_until = newValue} + } + /// Returns true if `until` has been explicitly set. + var hasUntil: Bool {return self._until != nil} + /// Clears the value of `until`. Subsequent reads from it will return its default value. + mutating func clearUntil() {self._until = nil} + + /// The maximum number of assets to return, unset for no limit + var limit: UInt64 { + get {return _limit ?? 0} + set {_limit = newValue} + } + /// Returns true if `limit` has been explicitly set. + var hasLimit: Bool {return self._limit != nil} + /// Clears the value of `limit`. Subsequent reads from it will return its default value. + mutating func clearLimit() {self._limit = nil} + + /// The key to start from, used to paginate results, unset for no offset + var startKey: String { + get {return _startKey ?? String()} + set {_startKey = newValue} + } + /// Returns true if `startKey` has been explicitly set. + var hasStartKey: Bool {return self._startKey != nil} + /// Clears the value of `startKey`. Subsequent reads from it will return its default value. + mutating func clearStartKey() {self._startKey = nil} + + /// The asset usage to filter the assets returned, empty for no filter + var use: [Stabilityai_Platformapis_Project_V1_ProjectAssetUse] = [] + + /// The sort direction based on asset creation time, default is descending + var sortDir: Stabilityai_Platformapis_Project_V1_ProjectSortDir = .unspecified + + /// The tag values used to filter the assets returned, empty for no filter + var tags: Dictionary = [:] + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _ownerID: String? = nil + fileprivate var _since: UInt64? = nil + fileprivate var _until: UInt64? = nil + fileprivate var _limit: UInt64? = nil + fileprivate var _startKey: String? = nil +} + +struct Stabilityai_Platformapis_Project_V1_QueryAssetsResponse { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + /// The assets returned by the query + var assets: [Stabilityai_Platformapis_Project_V1_ProjectAsset] = [] + + /// The last asset key returned when the results were limited, unset when not limited + var lastKey: String { + get {return _lastKey ?? String()} + set {_lastKey = newValue} + } + /// Returns true if `lastKey` has been explicitly set. + var hasLastKey: Bool {return self._lastKey != nil} + /// Clears the value of `lastKey`. Subsequent reads from it will return its default value. + mutating func clearLastKey() {self._lastKey = nil} + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _lastKey: String? = nil +} + +struct Stabilityai_Platformapis_Project_V1_TagAssetsRequest { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + /// ID of the project to request, UUIDv4, empty string uses default project + var id: String = String() + + /// The ID of the organization owning the assets, unset for default org for user + var ownerID: String { + get {return _ownerID ?? String()} + set {_ownerID = newValue} + } + /// Returns true if `ownerID` has been explicitly set. + var hasOwnerID: Bool {return self._ownerID != nil} + /// Clears the value of `ownerID`. Subsequent reads from it will return its default value. + mutating func clearOwnerID() {self._ownerID = nil} + + /// The IDs of the assets to tag in the project, UUIDv4, limit 1000 + var assetIds: [String] = [] + + /// The tags to add to the assets + var tags: Dictionary = [:] + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _ownerID: String? = nil +} + +struct Stabilityai_Platformapis_Project_V1_TagAssetsResponse { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + /// ID of the project, UUIDv4 + var id: String = String() + + /// The ID of the organization owning the project + var ownerID: String = String() + + /// The IDs of the assets updated in the project, UUIDv4, limit 1000 + var assetIds: [String] = [] + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +struct Stabilityai_Platformapis_Project_V1_UntagAssetsRequest { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + /// ID of the project to request, UUIDv4, empty string uses default project + var id: String = String() + + /// The ID of the organization owning the assets, unset for default org for user + var ownerID: String { + get {return _ownerID ?? String()} + set {_ownerID = newValue} + } + /// Returns true if `ownerID` has been explicitly set. + var hasOwnerID: Bool {return self._ownerID != nil} + /// Clears the value of `ownerID`. Subsequent reads from it will return its default value. + mutating func clearOwnerID() {self._ownerID = nil} + + /// The IDs of the assets to tag in the project, UUIDv4, limit 1000 + var assetIds: [String] = [] + + /// The keys of the tags to remove from the assets + var tagKeys: [String] = [] + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _ownerID: String? = nil +} + +struct Stabilityai_Platformapis_Project_V1_UntagAssetsResponse { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + /// ID of the project, UUIDv4 + var id: String = String() + + /// The ID of the organization owning the project + var ownerID: String = String() + + /// The IDs of the assets updated in the project, UUIDv4, limit 1000 + var assetIds: [String] = [] + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +struct Stabilityai_Platformapis_Project_V1_DeleteAssetsRequest { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + /// ID of the project to request, UUIDv4, empty string uses default project + var id: String = String() + + /// The ID of the organization owning the project, unset for default org for user + var ownerID: String { + get {return _ownerID ?? String()} + set {_ownerID = newValue} + } + /// Returns true if `ownerID` has been explicitly set. + var hasOwnerID: Bool {return self._ownerID != nil} + /// Clears the value of `ownerID`. Subsequent reads from it will return its default value. + mutating func clearOwnerID() {self._ownerID = nil} + + /// The IDs of the assets to delete from the project, UUIDv4, limit 1000 + var assetIds: [String] = [] + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} + + fileprivate var _ownerID: String? = nil +} + +struct Stabilityai_Platformapis_Project_V1_DeleteAssetsResponse { + // SwiftProtobuf.Message conformance is added in an extension below. See the + // `Message` and `Message+*Additions` files in the SwiftProtobuf library for + // methods supported on all messages. + + /// ID of the project, UUIDv4 + var id: String = String() + + /// The ID of the organization owning the project + var ownerID: String = String() + + /// The IDs of the assets deleted from the project, UUIDv4, limit 1000 + var assetIds: [String] = [] + + var unknownFields = SwiftProtobuf.UnknownStorage() + + init() {} +} + +#if swift(>=5.5) && canImport(_Concurrency) +extension Stabilityai_Platformapis_Project_V1_ProjectAccess: @unchecked Sendable {} +extension Stabilityai_Platformapis_Project_V1_ProjectStatus: @unchecked Sendable {} +extension Stabilityai_Platformapis_Project_V1_ProjectAssetUse: @unchecked Sendable {} +extension Stabilityai_Platformapis_Project_V1_ProjectSortDir: @unchecked Sendable {} +extension Stabilityai_Platformapis_Project_V1_ProjectAsset: @unchecked Sendable {} +extension Stabilityai_Platformapis_Project_V1_Project: @unchecked Sendable {} +extension Stabilityai_Platformapis_Project_V1_CreateProjectRequest: @unchecked Sendable {} +extension Stabilityai_Platformapis_Project_V1_UpdateProjectRequest: @unchecked Sendable {} +extension Stabilityai_Platformapis_Project_V1_ListProjectRequest: @unchecked Sendable {} +extension Stabilityai_Platformapis_Project_V1_GetProjectRequest: @unchecked Sendable {} +extension Stabilityai_Platformapis_Project_V1_DeleteProjectRequest: @unchecked Sendable {} +extension Stabilityai_Platformapis_Project_V1_QueryAssetsRequest: @unchecked Sendable {} +extension Stabilityai_Platformapis_Project_V1_QueryAssetsResponse: @unchecked Sendable {} +extension Stabilityai_Platformapis_Project_V1_TagAssetsRequest: @unchecked Sendable {} +extension Stabilityai_Platformapis_Project_V1_TagAssetsResponse: @unchecked Sendable {} +extension Stabilityai_Platformapis_Project_V1_UntagAssetsRequest: @unchecked Sendable {} +extension Stabilityai_Platformapis_Project_V1_UntagAssetsResponse: @unchecked Sendable {} +extension Stabilityai_Platformapis_Project_V1_DeleteAssetsRequest: @unchecked Sendable {} +extension Stabilityai_Platformapis_Project_V1_DeleteAssetsResponse: @unchecked Sendable {} +#endif // swift(>=5.5) && canImport(_Concurrency) + +// MARK: - Code below here is support for the SwiftProtobuf runtime. + +fileprivate let _protobuf_package = "stabilityai.platformapis.project.v1" + +extension Stabilityai_Platformapis_Project_V1_ProjectAccess: SwiftProtobuf._ProtoNameProviding { + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "PROJECT_ACCESS_PRIVATE"), + 1: .same(proto: "PROJECT_ACCESS_PUBLIC"), + ] +} + +extension Stabilityai_Platformapis_Project_V1_ProjectStatus: SwiftProtobuf._ProtoNameProviding { + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "PROJECT_STATUS_INACTIVE"), + 1: .same(proto: "PROJECT_STATUS_ACTIVE"), + 2: .same(proto: "PROJECT_STATUS_DELETED"), + ] +} + +extension Stabilityai_Platformapis_Project_V1_ProjectAssetUse: SwiftProtobuf._ProtoNameProviding { + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "PROJECT_ASSET_USE_UNDEFINED"), + 1: .same(proto: "PROJECT_ASSET_USE_INPUT"), + 2: .same(proto: "PROJECT_ASSET_USE_OUTPUT"), + 3: .same(proto: "PROJECT_ASSET_USE_INTERMEDIATE"), + 4: .same(proto: "PROJECT_ASSET_USE_PROJECT"), + ] +} + +extension Stabilityai_Platformapis_Project_V1_ProjectSortDir: SwiftProtobuf._ProtoNameProviding { + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 0: .same(proto: "PROJECT_SORT_DIR_UNSPECIFIED"), + 1: .same(proto: "PROJECT_SORT_DIR_ASC"), + 2: .same(proto: "PROJECT_SORT_DIR_DESC"), + ] +} + +extension Stabilityai_Platformapis_Project_V1_ProjectAsset: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".ProjectAsset" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .same(proto: "uri"), + 3: .same(proto: "use"), + 4: .same(proto: "name"), + 5: .same(proto: "size"), + 6: .standard(proto: "created_at"), + 7: .standard(proto: "updated_at"), + 8: .same(proto: "request"), + 9: .same(proto: "tags"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.uri) }() + case 3: try { try decoder.decodeSingularEnumField(value: &self.use) }() + case 4: try { try decoder.decodeSingularStringField(value: &self.name) }() + case 5: try { try decoder.decodeSingularUInt64Field(value: &self.size) }() + case 6: try { try decoder.decodeSingularUInt64Field(value: &self.createdAt) }() + case 7: try { try decoder.decodeSingularUInt64Field(value: &self.updatedAt) }() + case 8: try { try decoder.decodeSingularMessageField(value: &self._request) }() + case 9: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap.self, value: &self.tags) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } + if !self.uri.isEmpty { + try visitor.visitSingularStringField(value: self.uri, fieldNumber: 2) + } + if self.use != .undefined { + try visitor.visitSingularEnumField(value: self.use, fieldNumber: 3) + } + if !self.name.isEmpty { + try visitor.visitSingularStringField(value: self.name, fieldNumber: 4) + } + if self.size != 0 { + try visitor.visitSingularUInt64Field(value: self.size, fieldNumber: 5) + } + if self.createdAt != 0 { + try visitor.visitSingularUInt64Field(value: self.createdAt, fieldNumber: 6) + } + if self.updatedAt != 0 { + try visitor.visitSingularUInt64Field(value: self.updatedAt, fieldNumber: 7) + } + try { if let v = self._request { + try visitor.visitSingularMessageField(value: v, fieldNumber: 8) + } }() + if !self.tags.isEmpty { + try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap.self, value: self.tags, fieldNumber: 9) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Project_V1_ProjectAsset, rhs: Stabilityai_Platformapis_Project_V1_ProjectAsset) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.uri != rhs.uri {return false} + if lhs.use != rhs.use {return false} + if lhs.name != rhs.name {return false} + if lhs.size != rhs.size {return false} + if lhs.createdAt != rhs.createdAt {return false} + if lhs.updatedAt != rhs.updatedAt {return false} + if lhs._request != rhs._request {return false} + if lhs.tags != rhs.tags {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Project_V1_Project: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".Project" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .same(proto: "title"), + 3: .standard(proto: "owner_id"), + 4: .same(proto: "access"), + 5: .same(proto: "status"), + 6: .same(proto: "size"), + 7: .same(proto: "file"), + 8: .standard(proto: "created_at"), + 9: .standard(proto: "updated_at"), + 10: .same(proto: "assets"), + ] + + fileprivate class _StorageClass { + var _id: String = String() + var _title: String = String() + var _ownerID: String = String() + var _access: Stabilityai_Platformapis_Project_V1_ProjectAccess = .private + var _status: Stabilityai_Platformapis_Project_V1_ProjectStatus = .inactive + var _size: UInt64 = 0 + var _file: Stabilityai_Platformapis_Project_V1_ProjectAsset? = nil + var _createdAt: UInt64 = 0 + var _updatedAt: UInt64 = 0 + var _assets: [Stabilityai_Platformapis_Project_V1_ProjectAsset] = [] + + static let defaultInstance = _StorageClass() + + private init() {} + + init(copying source: _StorageClass) { + _id = source._id + _title = source._title + _ownerID = source._ownerID + _access = source._access + _status = source._status + _size = source._size + _file = source._file + _createdAt = source._createdAt + _updatedAt = source._updatedAt + _assets = source._assets + } + } + + fileprivate mutating func _uniqueStorage() -> _StorageClass { + if !isKnownUniquelyReferenced(&_storage) { + _storage = _StorageClass(copying: _storage) + } + return _storage + } + + mutating func decodeMessage(decoder: inout D) throws { + _ = _uniqueStorage() + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &_storage._id) }() + case 2: try { try decoder.decodeSingularStringField(value: &_storage._title) }() + case 3: try { try decoder.decodeSingularStringField(value: &_storage._ownerID) }() + case 4: try { try decoder.decodeSingularEnumField(value: &_storage._access) }() + case 5: try { try decoder.decodeSingularEnumField(value: &_storage._status) }() + case 6: try { try decoder.decodeSingularUInt64Field(value: &_storage._size) }() + case 7: try { try decoder.decodeSingularMessageField(value: &_storage._file) }() + case 8: try { try decoder.decodeSingularUInt64Field(value: &_storage._createdAt) }() + case 9: try { try decoder.decodeSingularUInt64Field(value: &_storage._updatedAt) }() + case 10: try { try decoder.decodeRepeatedMessageField(value: &_storage._assets) }() + default: break + } + } + } + } + + func traverse(visitor: inout V) throws { + try withExtendedLifetime(_storage) { (_storage: _StorageClass) in + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !_storage._id.isEmpty { + try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) + } + if !_storage._title.isEmpty { + try visitor.visitSingularStringField(value: _storage._title, fieldNumber: 2) + } + if !_storage._ownerID.isEmpty { + try visitor.visitSingularStringField(value: _storage._ownerID, fieldNumber: 3) + } + if _storage._access != .private { + try visitor.visitSingularEnumField(value: _storage._access, fieldNumber: 4) + } + if _storage._status != .inactive { + try visitor.visitSingularEnumField(value: _storage._status, fieldNumber: 5) + } + if _storage._size != 0 { + try visitor.visitSingularUInt64Field(value: _storage._size, fieldNumber: 6) + } + try { if let v = _storage._file { + try visitor.visitSingularMessageField(value: v, fieldNumber: 7) + } }() + if _storage._createdAt != 0 { + try visitor.visitSingularUInt64Field(value: _storage._createdAt, fieldNumber: 8) + } + if _storage._updatedAt != 0 { + try visitor.visitSingularUInt64Field(value: _storage._updatedAt, fieldNumber: 9) + } + if !_storage._assets.isEmpty { + try visitor.visitRepeatedMessageField(value: _storage._assets, fieldNumber: 10) + } + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Project_V1_Project, rhs: Stabilityai_Platformapis_Project_V1_Project) -> Bool { + if lhs._storage !== rhs._storage { + let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in + let _storage = _args.0 + let rhs_storage = _args.1 + if _storage._id != rhs_storage._id {return false} + if _storage._title != rhs_storage._title {return false} + if _storage._ownerID != rhs_storage._ownerID {return false} + if _storage._access != rhs_storage._access {return false} + if _storage._status != rhs_storage._status {return false} + if _storage._size != rhs_storage._size {return false} + if _storage._file != rhs_storage._file {return false} + if _storage._createdAt != rhs_storage._createdAt {return false} + if _storage._updatedAt != rhs_storage._updatedAt {return false} + if _storage._assets != rhs_storage._assets {return false} + return true + } + if !storagesAreEqual {return false} + } + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Project_V1_CreateProjectRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".CreateProjectRequest" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "title"), + 2: .standard(proto: "owner_id"), + 3: .same(proto: "access"), + 4: .same(proto: "status"), + 5: .same(proto: "file"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.title) }() + case 2: try { try decoder.decodeSingularStringField(value: &self._ownerID) }() + case 3: try { try decoder.decodeSingularEnumField(value: &self.access) }() + case 4: try { try decoder.decodeSingularEnumField(value: &self.status) }() + case 5: try { try decoder.decodeSingularMessageField(value: &self._file) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !self.title.isEmpty { + try visitor.visitSingularStringField(value: self.title, fieldNumber: 1) + } + try { if let v = self._ownerID { + try visitor.visitSingularStringField(value: v, fieldNumber: 2) + } }() + if self.access != .private { + try visitor.visitSingularEnumField(value: self.access, fieldNumber: 3) + } + if self.status != .inactive { + try visitor.visitSingularEnumField(value: self.status, fieldNumber: 4) + } + try { if let v = self._file { + try visitor.visitSingularMessageField(value: v, fieldNumber: 5) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Project_V1_CreateProjectRequest, rhs: Stabilityai_Platformapis_Project_V1_CreateProjectRequest) -> Bool { + if lhs.title != rhs.title {return false} + if lhs._ownerID != rhs._ownerID {return false} + if lhs.access != rhs.access {return false} + if lhs.status != rhs.status {return false} + if lhs._file != rhs._file {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Project_V1_UpdateProjectRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".UpdateProjectRequest" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .standard(proto: "owner_id"), + 3: .same(proto: "title"), + 4: .same(proto: "access"), + 5: .same(proto: "status"), + 6: .same(proto: "file"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self._ownerID) }() + case 3: try { try decoder.decodeSingularStringField(value: &self._title) }() + case 4: try { try decoder.decodeSingularEnumField(value: &self._access) }() + case 5: try { try decoder.decodeSingularEnumField(value: &self._status) }() + case 6: try { try decoder.decodeSingularMessageField(value: &self._file) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } + try { if let v = self._ownerID { + try visitor.visitSingularStringField(value: v, fieldNumber: 2) + } }() + try { if let v = self._title { + try visitor.visitSingularStringField(value: v, fieldNumber: 3) + } }() + try { if let v = self._access { + try visitor.visitSingularEnumField(value: v, fieldNumber: 4) + } }() + try { if let v = self._status { + try visitor.visitSingularEnumField(value: v, fieldNumber: 5) + } }() + try { if let v = self._file { + try visitor.visitSingularMessageField(value: v, fieldNumber: 6) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Project_V1_UpdateProjectRequest, rhs: Stabilityai_Platformapis_Project_V1_UpdateProjectRequest) -> Bool { + if lhs.id != rhs.id {return false} + if lhs._ownerID != rhs._ownerID {return false} + if lhs._title != rhs._title {return false} + if lhs._access != rhs._access {return false} + if lhs._status != rhs._status {return false} + if lhs._file != rhs._file {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Project_V1_ListProjectRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".ListProjectRequest" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .standard(proto: "owner_id"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self._ownerID) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + try { if let v = self._ownerID { + try visitor.visitSingularStringField(value: v, fieldNumber: 1) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Project_V1_ListProjectRequest, rhs: Stabilityai_Platformapis_Project_V1_ListProjectRequest) -> Bool { + if lhs._ownerID != rhs._ownerID {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Project_V1_GetProjectRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".GetProjectRequest" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .standard(proto: "owner_id"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self._ownerID) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } + try { if let v = self._ownerID { + try visitor.visitSingularStringField(value: v, fieldNumber: 2) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Project_V1_GetProjectRequest, rhs: Stabilityai_Platformapis_Project_V1_GetProjectRequest) -> Bool { + if lhs.id != rhs.id {return false} + if lhs._ownerID != rhs._ownerID {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Project_V1_DeleteProjectRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".DeleteProjectRequest" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .standard(proto: "owner_id"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self._ownerID) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } + try { if let v = self._ownerID { + try visitor.visitSingularStringField(value: v, fieldNumber: 2) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Project_V1_DeleteProjectRequest, rhs: Stabilityai_Platformapis_Project_V1_DeleteProjectRequest) -> Bool { + if lhs.id != rhs.id {return false} + if lhs._ownerID != rhs._ownerID {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Project_V1_QueryAssetsRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".QueryAssetsRequest" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .standard(proto: "owner_id"), + 3: .same(proto: "since"), + 4: .same(proto: "until"), + 5: .same(proto: "limit"), + 6: .standard(proto: "start_key"), + 7: .same(proto: "use"), + 8: .standard(proto: "sort_dir"), + 9: .same(proto: "tags"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self._ownerID) }() + case 3: try { try decoder.decodeSingularUInt64Field(value: &self._since) }() + case 4: try { try decoder.decodeSingularUInt64Field(value: &self._until) }() + case 5: try { try decoder.decodeSingularUInt64Field(value: &self._limit) }() + case 6: try { try decoder.decodeSingularStringField(value: &self._startKey) }() + case 7: try { try decoder.decodeRepeatedEnumField(value: &self.use) }() + case 8: try { try decoder.decodeSingularEnumField(value: &self.sortDir) }() + case 9: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap.self, value: &self.tags) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } + try { if let v = self._ownerID { + try visitor.visitSingularStringField(value: v, fieldNumber: 2) + } }() + try { if let v = self._since { + try visitor.visitSingularUInt64Field(value: v, fieldNumber: 3) + } }() + try { if let v = self._until { + try visitor.visitSingularUInt64Field(value: v, fieldNumber: 4) + } }() + try { if let v = self._limit { + try visitor.visitSingularUInt64Field(value: v, fieldNumber: 5) + } }() + try { if let v = self._startKey { + try visitor.visitSingularStringField(value: v, fieldNumber: 6) + } }() + if !self.use.isEmpty { + try visitor.visitPackedEnumField(value: self.use, fieldNumber: 7) + } + if self.sortDir != .unspecified { + try visitor.visitSingularEnumField(value: self.sortDir, fieldNumber: 8) + } + if !self.tags.isEmpty { + try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap.self, value: self.tags, fieldNumber: 9) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Project_V1_QueryAssetsRequest, rhs: Stabilityai_Platformapis_Project_V1_QueryAssetsRequest) -> Bool { + if lhs.id != rhs.id {return false} + if lhs._ownerID != rhs._ownerID {return false} + if lhs._since != rhs._since {return false} + if lhs._until != rhs._until {return false} + if lhs._limit != rhs._limit {return false} + if lhs._startKey != rhs._startKey {return false} + if lhs.use != rhs.use {return false} + if lhs.sortDir != rhs.sortDir {return false} + if lhs.tags != rhs.tags {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Project_V1_QueryAssetsResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".QueryAssetsResponse" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "assets"), + 2: .standard(proto: "last_key"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeRepeatedMessageField(value: &self.assets) }() + case 2: try { try decoder.decodeSingularStringField(value: &self._lastKey) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !self.assets.isEmpty { + try visitor.visitRepeatedMessageField(value: self.assets, fieldNumber: 1) + } + try { if let v = self._lastKey { + try visitor.visitSingularStringField(value: v, fieldNumber: 2) + } }() + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Project_V1_QueryAssetsResponse, rhs: Stabilityai_Platformapis_Project_V1_QueryAssetsResponse) -> Bool { + if lhs.assets != rhs.assets {return false} + if lhs._lastKey != rhs._lastKey {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Project_V1_TagAssetsRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".TagAssetsRequest" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .standard(proto: "owner_id"), + 3: .standard(proto: "asset_ids"), + 4: .same(proto: "tags"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self._ownerID) }() + case 3: try { try decoder.decodeRepeatedStringField(value: &self.assetIds) }() + case 4: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap.self, value: &self.tags) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } + try { if let v = self._ownerID { + try visitor.visitSingularStringField(value: v, fieldNumber: 2) + } }() + if !self.assetIds.isEmpty { + try visitor.visitRepeatedStringField(value: self.assetIds, fieldNumber: 3) + } + if !self.tags.isEmpty { + try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap.self, value: self.tags, fieldNumber: 4) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Project_V1_TagAssetsRequest, rhs: Stabilityai_Platformapis_Project_V1_TagAssetsRequest) -> Bool { + if lhs.id != rhs.id {return false} + if lhs._ownerID != rhs._ownerID {return false} + if lhs.assetIds != rhs.assetIds {return false} + if lhs.tags != rhs.tags {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Project_V1_TagAssetsResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".TagAssetsResponse" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .standard(proto: "owner_id"), + 3: .standard(proto: "asset_ids"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.ownerID) }() + case 3: try { try decoder.decodeRepeatedStringField(value: &self.assetIds) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } + if !self.ownerID.isEmpty { + try visitor.visitSingularStringField(value: self.ownerID, fieldNumber: 2) + } + if !self.assetIds.isEmpty { + try visitor.visitRepeatedStringField(value: self.assetIds, fieldNumber: 3) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Project_V1_TagAssetsResponse, rhs: Stabilityai_Platformapis_Project_V1_TagAssetsResponse) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.ownerID != rhs.ownerID {return false} + if lhs.assetIds != rhs.assetIds {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Project_V1_UntagAssetsRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".UntagAssetsRequest" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .standard(proto: "owner_id"), + 3: .standard(proto: "asset_ids"), + 4: .standard(proto: "tag_keys"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self._ownerID) }() + case 3: try { try decoder.decodeRepeatedStringField(value: &self.assetIds) }() + case 4: try { try decoder.decodeRepeatedStringField(value: &self.tagKeys) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } + try { if let v = self._ownerID { + try visitor.visitSingularStringField(value: v, fieldNumber: 2) + } }() + if !self.assetIds.isEmpty { + try visitor.visitRepeatedStringField(value: self.assetIds, fieldNumber: 3) + } + if !self.tagKeys.isEmpty { + try visitor.visitRepeatedStringField(value: self.tagKeys, fieldNumber: 4) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Project_V1_UntagAssetsRequest, rhs: Stabilityai_Platformapis_Project_V1_UntagAssetsRequest) -> Bool { + if lhs.id != rhs.id {return false} + if lhs._ownerID != rhs._ownerID {return false} + if lhs.assetIds != rhs.assetIds {return false} + if lhs.tagKeys != rhs.tagKeys {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Project_V1_UntagAssetsResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".UntagAssetsResponse" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .standard(proto: "owner_id"), + 3: .standard(proto: "asset_ids"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.ownerID) }() + case 3: try { try decoder.decodeRepeatedStringField(value: &self.assetIds) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } + if !self.ownerID.isEmpty { + try visitor.visitSingularStringField(value: self.ownerID, fieldNumber: 2) + } + if !self.assetIds.isEmpty { + try visitor.visitRepeatedStringField(value: self.assetIds, fieldNumber: 3) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Project_V1_UntagAssetsResponse, rhs: Stabilityai_Platformapis_Project_V1_UntagAssetsResponse) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.ownerID != rhs.ownerID {return false} + if lhs.assetIds != rhs.assetIds {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Project_V1_DeleteAssetsRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".DeleteAssetsRequest" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .standard(proto: "owner_id"), + 3: .standard(proto: "asset_ids"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self._ownerID) }() + case 3: try { try decoder.decodeRepeatedStringField(value: &self.assetIds) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every if/case branch local when no optimizations + // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and + // https://github.com/apple/swift-protobuf/issues/1182 + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } + try { if let v = self._ownerID { + try visitor.visitSingularStringField(value: v, fieldNumber: 2) + } }() + if !self.assetIds.isEmpty { + try visitor.visitRepeatedStringField(value: self.assetIds, fieldNumber: 3) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Project_V1_DeleteAssetsRequest, rhs: Stabilityai_Platformapis_Project_V1_DeleteAssetsRequest) -> Bool { + if lhs.id != rhs.id {return false} + if lhs._ownerID != rhs._ownerID {return false} + if lhs.assetIds != rhs.assetIds {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} + +extension Stabilityai_Platformapis_Project_V1_DeleteAssetsResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { + static let protoMessageName: String = _protobuf_package + ".DeleteAssetsResponse" + static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ + 1: .same(proto: "id"), + 2: .standard(proto: "owner_id"), + 3: .standard(proto: "asset_ids"), + ] + + mutating func decodeMessage(decoder: inout D) throws { + while let fieldNumber = try decoder.nextFieldNumber() { + // The use of inline closures is to circumvent an issue where the compiler + // allocates stack space for every case branch when no optimizations are + // enabled. https://github.com/apple/swift-protobuf/issues/1034 + switch fieldNumber { + case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() + case 2: try { try decoder.decodeSingularStringField(value: &self.ownerID) }() + case 3: try { try decoder.decodeRepeatedStringField(value: &self.assetIds) }() + default: break + } + } + } + + func traverse(visitor: inout V) throws { + if !self.id.isEmpty { + try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) + } + if !self.ownerID.isEmpty { + try visitor.visitSingularStringField(value: self.ownerID, fieldNumber: 2) + } + if !self.assetIds.isEmpty { + try visitor.visitRepeatedStringField(value: self.assetIds, fieldNumber: 3) + } + try unknownFields.traverse(visitor: &visitor) + } + + static func ==(lhs: Stabilityai_Platformapis_Project_V1_DeleteAssetsResponse, rhs: Stabilityai_Platformapis_Project_V1_DeleteAssetsResponse) -> Bool { + if lhs.id != rhs.id {return false} + if lhs.ownerID != rhs.ownerID {return false} + if lhs.assetIds != rhs.assetIds {return false} + if lhs.unknownFields != rhs.unknownFields {return false} + return true + } +} diff --git a/gooseai/README.md b/gooseai/README.md new file mode 100644 index 0000000..9254e49 --- /dev/null +++ b/gooseai/README.md @@ -0,0 +1,3 @@ +# Legacy "gooseai" inferfaces + +These are the original interfaces used by the Stability API. While the underlying contracts remain compatible, the `gen/proto` path contains new, improved codegen built with `buf`. \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 5c0aaed..16a0a1a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,1005 +7,186 @@ "": { "name": "api-interfaces", "version": "0.1.0", - "dependencies": { - "grpc-tools": "^1.11.2", - "ts-protoc-gen": "^0.15.0" + "devDependencies": { + "@bufbuild/buf": "^1.18.0-1" } }, - "node_modules/@mapbox/node-pre-gyp": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.9.tgz", - "integrity": "sha512-aDF3S3rK9Q2gey/WAttUlISduDItz5BU3306M9Eyv6/oS40aMprnopshtlKTykxRNIBEZuRMaZAnbrQ4QtKGyw==", - "dependencies": { - "detect-libc": "^2.0.0", - "https-proxy-agent": "^5.0.0", - "make-dir": "^3.1.0", - "node-fetch": "^2.6.7", - "nopt": "^5.0.0", - "npmlog": "^5.0.1", - "rimraf": "^3.0.2", - "semver": "^7.3.5", - "tar": "^6.1.11" - }, - "bin": { - "node-pre-gyp": "bin/node-pre-gyp" - } - }, - "node_modules/abbrev": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", - "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" - }, - "node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/aproba": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz", - "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==" - }, - "node_modules/are-we-there-yet": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz", - "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==", - "dependencies": { - "delegates": "^1.0.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/chownr": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", - "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", - "engines": { - "node": ">=10" - } - }, - "node_modules/color-support": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", - "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", - "bin": { - "color-support": "bin.js" - } - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" - }, - "node_modules/console-control-strings": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", - "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==" - }, - "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/delegates": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", - "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==" - }, - "node_modules/detect-libc": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.1.tgz", - "integrity": "sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w==", - "engines": { - "node": ">=8" - } - }, - "node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/fs-minipass": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", - "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" - }, - "node_modules/gauge": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz", - "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==", - "dependencies": { - "aproba": "^1.0.3 || ^2.0.0", - "color-support": "^1.1.2", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.1", - "object-assign": "^4.1.1", - "signal-exit": "^3.0.0", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1", - "wide-align": "^1.1.2" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/google-protobuf": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.21.0.tgz", - "integrity": "sha512-byR7MBTK4tZ5PZEb+u5ZTzpt4SfrTxv5682MjPlHN16XeqgZE2/8HOIWeiXe8JKnT9OVbtBGhbq8mtvkK8cd5g==" - }, - "node_modules/grpc-tools": { - "version": "1.11.2", - "resolved": "https://registry.npmjs.org/grpc-tools/-/grpc-tools-1.11.2.tgz", - "integrity": "sha512-4+EgpnnkJraamY++oyBCw5Hp9huRYfgakjNVKbiE3PgO9Tv5ydVlRo7ZyGJ0C0SEiA7HhbVc1sNNtIyK7FiEtg==", + "node_modules/@bufbuild/buf": { + "version": "1.18.0-1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf/-/buf-1.18.0-1.tgz", + "integrity": "sha512-Js6BEbjsfM+aFo2bUxfTs0B4htDbjWCKZ8+FHV6YYqiVsin6NGGQsXblJxwt4+16HLfSnrf41RRnwUaBwHqBzQ==", + "dev": true, "hasInstallScript": true, - "dependencies": { - "@mapbox/node-pre-gyp": "^1.0.5" - }, - "bin": { - "grpc_tools_node_protoc": "bin/protoc.js", - "grpc_tools_node_protoc_plugin": "bin/protoc_plugin.js" - } - }, - "node_modules/has-unicode": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", - "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==" - }, - "node_modules/https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dependencies": { - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dependencies": { - "semver": "^6.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/make-dir/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minipass": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.4.tgz", - "integrity": "sha512-I9WPbWHCGu8W+6k1ZiGpPu0GkoKBeorkfKNuAFBNS1HNFJvke82sxvI5bzcCNpWPorkOO5QQ+zomzzwRxejXiw==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/minizlib": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", - "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", - "dependencies": { - "minipass": "^3.0.0", - "yallist": "^4.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - }, - "node_modules/node-fetch": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/nopt": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", - "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", - "dependencies": { - "abbrev": "1" - }, - "bin": { - "nopt": "bin/nopt.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/npmlog": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz", - "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==", - "dependencies": { - "are-we-there-yet": "^2.0.0", - "console-control-strings": "^1.1.0", - "gauge": "^3.0.0", - "set-blocking": "^2.0.0" - } - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/semver": { - "version": "7.3.7", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", - "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" - }, - "node_modules/signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, - "node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/tar": { - "version": "6.1.11", - "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz", - "integrity": "sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==", - "dependencies": { - "chownr": "^2.0.0", - "fs-minipass": "^2.0.0", - "minipass": "^3.0.0", - "minizlib": "^2.1.1", - "mkdirp": "^1.0.3", - "yallist": "^4.0.0" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" - }, - "node_modules/ts-protoc-gen": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/ts-protoc-gen/-/ts-protoc-gen-0.15.0.tgz", - "integrity": "sha512-TycnzEyrdVDlATJ3bWFTtra3SCiEP0W0vySXReAuEygXCUr1j2uaVyL0DhzjwuUdQoW5oXPwk6oZWeA0955V+g==", - "dependencies": { - "google-protobuf": "^3.15.5" - }, "bin": { - "protoc-gen-ts": "bin/protoc-gen-ts" - } - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" - }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" - }, - "node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" + "buf": "bin/buf", + "protoc-gen-buf-breaking": "bin/protoc-gen-buf-breaking", + "protoc-gen-buf-lint": "bin/protoc-gen-buf-lint" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@bufbuild/buf-darwin-arm64": "1.18.0-1", + "@bufbuild/buf-darwin-x64": "1.18.0-1", + "@bufbuild/buf-linux-aarch64": "1.18.0-1", + "@bufbuild/buf-linux-x64": "1.18.0-1", + "@bufbuild/buf-win32-arm64": "1.18.0-1", + "@bufbuild/buf-win32-x64": "1.18.0-1" + } + }, + "node_modules/@bufbuild/buf-darwin-arm64": { + "version": "1.18.0-1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-arm64/-/buf-darwin-arm64-1.18.0-1.tgz", + "integrity": "sha512-4iFChDoXAiuMZQoXpJoCSvCkcT7p1fmsY2N/+wTdODQbXAwqR8vQz19FPR2Jv5ukhd44LUi43nFsyQ2dWmeZeA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@bufbuild/buf-darwin-x64": { + "version": "1.18.0-1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-x64/-/buf-darwin-x64-1.18.0-1.tgz", + "integrity": "sha512-tuOnoCqFaUOj9dBuubEve5XGNkjL+zeCW7ETNgmArUlQobEkL2Fza5mi5Fqt90Ommfj1xpc4vaeNz1oSuU3dTw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@bufbuild/buf-linux-aarch64": { + "version": "1.18.0-1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-aarch64/-/buf-linux-aarch64-1.18.0-1.tgz", + "integrity": "sha512-QdYp89hlLVPPZYlaeVhE0swk5Ygncij1avVmvLQw99+lvaFlDu9zRQ0Jo7n1VjpZWdDhUd/thYWxSqSMJYLajA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@bufbuild/buf-linux-x64": { + "version": "1.18.0-1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-x64/-/buf-linux-x64-1.18.0-1.tgz", + "integrity": "sha512-9a6xv+OsYjhg5f1WHDtoXJVxG2j6awFi5cx9dkCPMODvFsll7skkwfkDngxKkibNU0aY6TxLoQXdf77eQwIWtQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@bufbuild/buf-win32-arm64": { + "version": "1.18.0-1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-arm64/-/buf-win32-arm64-1.18.0-1.tgz", + "integrity": "sha512-UP6KevD0cdxa4IJcDy31KC9sIIgxCWBP/K9uW+gBDLg2cNQBtVqlN8o65PJhsl9HB+p0/Y4pDi4i/jU8dXGH8g==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@bufbuild/buf-win32-x64": { + "version": "1.18.0-1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-x64/-/buf-win32-x64-1.18.0-1.tgz", + "integrity": "sha512-4OVbTwbQ1ZHGtITJw7hXYP2HinCWn3PN1ewCU+SCvynJTQ8vXQuVNlKZ2EmGl6aTUWdF3mSL/WPsRiG3fXhxfg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" } - }, - "node_modules/wide-align": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", - "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", - "dependencies": { - "string-width": "^1.0.2 || 2 || 3 || 4" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" - }, - "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" } }, "dependencies": { - "@mapbox/node-pre-gyp": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.9.tgz", - "integrity": "sha512-aDF3S3rK9Q2gey/WAttUlISduDItz5BU3306M9Eyv6/oS40aMprnopshtlKTykxRNIBEZuRMaZAnbrQ4QtKGyw==", - "requires": { - "detect-libc": "^2.0.0", - "https-proxy-agent": "^5.0.0", - "make-dir": "^3.1.0", - "node-fetch": "^2.6.7", - "nopt": "^5.0.0", - "npmlog": "^5.0.1", - "rimraf": "^3.0.2", - "semver": "^7.3.5", - "tar": "^6.1.11" - } - }, - "abbrev": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", - "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" - }, - "agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "requires": { - "debug": "4" - } - }, - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" - }, - "aproba": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz", - "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==" - }, - "are-we-there-yet": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz", - "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==", - "requires": { - "delegates": "^1.0.0", - "readable-stream": "^3.6.0" - } - }, - "balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "chownr": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", - "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==" - }, - "color-support": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", - "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==" - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" - }, - "console-control-strings": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", - "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==" - }, - "debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "requires": { - "ms": "2.1.2" - } - }, - "delegates": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", - "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==" - }, - "detect-libc": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.1.tgz", - "integrity": "sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w==" - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "fs-minipass": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", - "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", - "requires": { - "minipass": "^3.0.0" - } - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" - }, - "gauge": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz", - "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==", - "requires": { - "aproba": "^1.0.3 || ^2.0.0", - "color-support": "^1.1.2", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.1", - "object-assign": "^4.1.1", - "signal-exit": "^3.0.0", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1", - "wide-align": "^1.1.2" - } - }, - "glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "google-protobuf": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.21.0.tgz", - "integrity": "sha512-byR7MBTK4tZ5PZEb+u5ZTzpt4SfrTxv5682MjPlHN16XeqgZE2/8HOIWeiXe8JKnT9OVbtBGhbq8mtvkK8cd5g==" - }, - "grpc-tools": { - "version": "1.11.2", - "resolved": "https://registry.npmjs.org/grpc-tools/-/grpc-tools-1.11.2.tgz", - "integrity": "sha512-4+EgpnnkJraamY++oyBCw5Hp9huRYfgakjNVKbiE3PgO9Tv5ydVlRo7ZyGJ0C0SEiA7HhbVc1sNNtIyK7FiEtg==", - "requires": { - "@mapbox/node-pre-gyp": "^1.0.5" - } - }, - "has-unicode": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", - "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==" - }, - "https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "requires": { - "agent-base": "6", - "debug": "4" - } - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" - }, - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "requires": { - "yallist": "^4.0.0" - } - }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "requires": { - "semver": "^6.0.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - } - } - }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minipass": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.4.tgz", - "integrity": "sha512-I9WPbWHCGu8W+6k1ZiGpPu0GkoKBeorkfKNuAFBNS1HNFJvke82sxvI5bzcCNpWPorkOO5QQ+zomzzwRxejXiw==", - "requires": { - "yallist": "^4.0.0" - } - }, - "minizlib": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", - "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", - "requires": { - "minipass": "^3.0.0", - "yallist": "^4.0.0" - } - }, - "mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==" - }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - }, - "node-fetch": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", - "requires": { - "whatwg-url": "^5.0.0" - } - }, - "nopt": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", - "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", - "requires": { - "abbrev": "1" - } - }, - "npmlog": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz", - "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==", - "requires": { - "are-we-there-yet": "^2.0.0", - "console-control-strings": "^1.1.0", - "gauge": "^3.0.0", - "set-blocking": "^2.0.0" - } - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==" - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "requires": { - "wrappy": "1" - } - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==" - }, - "readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - }, - "rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "requires": { - "glob": "^7.1.3" - } - }, - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" - }, - "semver": { - "version": "7.3.7", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", - "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", - "requires": { - "lru-cache": "^6.0.0" - } - }, - "set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" - }, - "signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" - }, - "string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "requires": { - "safe-buffer": "~5.2.0" - } - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "requires": { - "ansi-regex": "^5.0.1" - } - }, - "tar": { - "version": "6.1.11", - "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz", - "integrity": "sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==", - "requires": { - "chownr": "^2.0.0", - "fs-minipass": "^2.0.0", - "minipass": "^3.0.0", - "minizlib": "^2.1.1", - "mkdirp": "^1.0.3", - "yallist": "^4.0.0" - } - }, - "tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" - }, - "ts-protoc-gen": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/ts-protoc-gen/-/ts-protoc-gen-0.15.0.tgz", - "integrity": "sha512-TycnzEyrdVDlATJ3bWFTtra3SCiEP0W0vySXReAuEygXCUr1j2uaVyL0DhzjwuUdQoW5oXPwk6oZWeA0955V+g==", - "requires": { - "google-protobuf": "^3.15.5" - } - }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" - }, - "webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" - }, - "whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "requires": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "wide-align": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", - "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", - "requires": { - "string-width": "^1.0.2 || 2 || 3 || 4" - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + "@bufbuild/buf": { + "version": "1.18.0-1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf/-/buf-1.18.0-1.tgz", + "integrity": "sha512-Js6BEbjsfM+aFo2bUxfTs0B4htDbjWCKZ8+FHV6YYqiVsin6NGGQsXblJxwt4+16HLfSnrf41RRnwUaBwHqBzQ==", + "dev": true, + "requires": { + "@bufbuild/buf-darwin-arm64": "1.18.0-1", + "@bufbuild/buf-darwin-x64": "1.18.0-1", + "@bufbuild/buf-linux-aarch64": "1.18.0-1", + "@bufbuild/buf-linux-x64": "1.18.0-1", + "@bufbuild/buf-win32-arm64": "1.18.0-1", + "@bufbuild/buf-win32-x64": "1.18.0-1" + } + }, + "@bufbuild/buf-darwin-arm64": { + "version": "1.18.0-1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-arm64/-/buf-darwin-arm64-1.18.0-1.tgz", + "integrity": "sha512-4iFChDoXAiuMZQoXpJoCSvCkcT7p1fmsY2N/+wTdODQbXAwqR8vQz19FPR2Jv5ukhd44LUi43nFsyQ2dWmeZeA==", + "dev": true, + "optional": true + }, + "@bufbuild/buf-darwin-x64": { + "version": "1.18.0-1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-x64/-/buf-darwin-x64-1.18.0-1.tgz", + "integrity": "sha512-tuOnoCqFaUOj9dBuubEve5XGNkjL+zeCW7ETNgmArUlQobEkL2Fza5mi5Fqt90Ommfj1xpc4vaeNz1oSuU3dTw==", + "dev": true, + "optional": true + }, + "@bufbuild/buf-linux-aarch64": { + "version": "1.18.0-1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-aarch64/-/buf-linux-aarch64-1.18.0-1.tgz", + "integrity": "sha512-QdYp89hlLVPPZYlaeVhE0swk5Ygncij1avVmvLQw99+lvaFlDu9zRQ0Jo7n1VjpZWdDhUd/thYWxSqSMJYLajA==", + "dev": true, + "optional": true + }, + "@bufbuild/buf-linux-x64": { + "version": "1.18.0-1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-x64/-/buf-linux-x64-1.18.0-1.tgz", + "integrity": "sha512-9a6xv+OsYjhg5f1WHDtoXJVxG2j6awFi5cx9dkCPMODvFsll7skkwfkDngxKkibNU0aY6TxLoQXdf77eQwIWtQ==", + "dev": true, + "optional": true + }, + "@bufbuild/buf-win32-arm64": { + "version": "1.18.0-1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-arm64/-/buf-win32-arm64-1.18.0-1.tgz", + "integrity": "sha512-UP6KevD0cdxa4IJcDy31KC9sIIgxCWBP/K9uW+gBDLg2cNQBtVqlN8o65PJhsl9HB+p0/Y4pDi4i/jU8dXGH8g==", + "dev": true, + "optional": true + }, + "@bufbuild/buf-win32-x64": { + "version": "1.18.0-1", + "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-x64/-/buf-win32-x64-1.18.0-1.tgz", + "integrity": "sha512-4OVbTwbQ1ZHGtITJw7hXYP2HinCWn3PN1ewCU+SCvynJTQ8vXQuVNlKZ2EmGl6aTUWdF3mSL/WPsRiG3fXhxfg==", + "dev": true, + "optional": true } } } diff --git a/package.json b/package.json index ddfa9e2..a8b7fe5 100644 --- a/package.json +++ b/package.json @@ -3,12 +3,20 @@ "version": "0.1.0", "description": "", "main": "index.js", - "scripts": {}, + "scripts": { + "generate-go": "buf generate --template buf.gen.go.yaml", + "generate-js": "buf generate --template buf.gen.js.yaml", + "generate-kt": "buf generate --template buf.gen.kt.yaml", + "generate-py": "buf generate --template buf.gen.py.yaml", + "generate-swift": "buf generate --template buf.gen.swift.yaml", + "generate": "npm run generate-go && npm run generate-js && npm run generate-kt && npm run generate-py && npm run generate-swift" + }, "keywords": [], "author": "", "license": "", - "dependencies": { - "grpc-tools": "^1.11.2", - "ts-protoc-gen": "^0.15.0" + "dependencies": { + }, + "devDependencies": { + "@bufbuild/buf": "^1.18.0-1" } -} \ No newline at end of file +} diff --git a/src/proto/coreweave/tensors/tensors.proto b/src/proto/coreweave/tensors/tensors.proto new file mode 100644 index 0000000..26c5e05 --- /dev/null +++ b/src/proto/coreweave/tensors/tensors.proto @@ -0,0 +1,54 @@ +syntax = 'proto3'; +package tensors; +option go_package = "github.com/coreweave/tensorizer/tensors"; + +enum Dtype { + DT_INVALID = 0; + DT_FLOAT32 = 1; + DT_FLOAT64 = 2; + DT_FLOAT16 = 3; + DT_BFLOAT16 = 4; + DT_COMPLEX32 = 5; + DT_COMPLEX64 = 6; + DT_COMPLEX128 = 7; + DT_UINT8 = 8; + DT_INT8 = 9; + DT_INT16 = 10; + DT_INT32 = 11; + DT_INT64 = 12; + DT_BOOL = 13; + DT_QUINT8 = 14; + DT_QINT8 = 15; + DT_QINT32 = 16; + DT_QUINT4_2 = 17; +} + +enum AttributeType { + AT_PARAMETER = 0; + AT_BUFFER = 1; +} + +message Tensor { + Dtype dtype = 1; + repeated int64 shape = 2; + bytes data = 3; + optional AttributeType attr_type = 4; +} + +message Attribute { + string name = 1; + oneof value { + Module module = 3; + Tensor tensor = 4; + string string = 5; + int64 int64 = 6; + float float = 7; + bool bool = 8; + } +} + +message Module { + string name = 1; + repeated string names = 2; + repeated Attribute attributes = 3; +} diff --git a/src/proto/dashboard.proto b/src/proto/stabilityai/platformapis/dashboard/v1/dashboard.proto similarity index 96% rename from src/proto/dashboard.proto rename to src/proto/stabilityai/platformapis/dashboard/v1/dashboard.proto index a22af5e..b9e7220 100644 --- a/src/proto/dashboard.proto +++ b/src/proto/stabilityai/platformapis/dashboard/v1/dashboard.proto @@ -1,6 +1,6 @@ syntax = 'proto3'; -package gooseai; -option go_package = "github.com/stability-ai/api-interfaces/gooseai/dashboard"; +package stabilityai.api.dashboard.v1; +option go_package = "github.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/dashboard/v1;dashboardv1"; enum OrganizationRole { MEMBER = 0; diff --git a/src/proto/engines.proto b/src/proto/stabilityai/platformapis/engines/v1/engines.proto similarity index 78% rename from src/proto/engines.proto rename to src/proto/stabilityai/platformapis/engines/v1/engines.proto index e4e2c55..224d11f 100644 --- a/src/proto/engines.proto +++ b/src/proto/stabilityai/platformapis/engines/v1/engines.proto @@ -1,6 +1,6 @@ syntax = 'proto3'; -package gooseai; -option go_package = "github.com/stability-ai/api-interfaces/gooseai/engines"; +package stabilityai.platformapis.engines.v1; +option go_package = "github.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/engines/v1;enginesv1"; // Possible engine type enum EngineType { diff --git a/src/proto/generation.proto b/src/proto/stabilityai/platformapis/generation/v1/generation.proto similarity index 98% rename from src/proto/generation.proto rename to src/proto/stabilityai/platformapis/generation/v1/generation.proto index 9519312..c3eb6e4 100644 --- a/src/proto/generation.proto +++ b/src/proto/stabilityai/platformapis/generation/v1/generation.proto @@ -1,8 +1,8 @@ syntax = 'proto3'; -package gooseai; -option go_package = "github.com/stability-ai/api-interfaces/gooseai/generation"; +package stabilityai.platformapis.generation.v1; +option go_package = "github.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/generation/v1;generationv1"; import "google/protobuf/struct.proto"; -import "tensors.proto"; +import "coreweave/tensors/tensors.proto"; enum FinishReason { NULL = 0; diff --git a/src/proto/project.proto b/src/proto/stabilityai/platformapis/project/v1/project.proto similarity index 95% rename from src/proto/project.proto rename to src/proto/stabilityai/platformapis/project/v1/project.proto index 9ec18e6..379f3bb 100644 --- a/src/proto/project.proto +++ b/src/proto/stabilityai/platformapis/project/v1/project.proto @@ -1,7 +1,7 @@ syntax = 'proto3'; -package gooseai; -option go_package = "github.com/stability-ai/api-interfaces/gooseai/project"; -import "generation.proto"; +package stabilityai.platformapis.project.v1; +option go_package = "github.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/project/v1;projectv1"; +import "stabilityai/platformapis/generation/v1/generation.proto"; enum ProjectAccess { PROJECT_ACCESS_PRIVATE = 0; // Private access, only owner organization can access @@ -36,7 +36,7 @@ message ProjectAsset { uint64 size = 5; // The asset size in bytes uint64 created_at = 6; // Time of asset creation (UTC seconds epoch) uint64 updated_at = 7; // Time of last asset update (UTC seconds epoch) - Request request = 8; // The request object that is associated with the artifact + stabilityai.platformapis.generation.v1.Request request = 8; // The request object that is associated with the artifact map tags = 9; // The tags associated with the asset } diff --git a/src/tensorizer b/src/tensorizer deleted file mode 160000 index 35381e3..0000000 --- a/src/tensorizer +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 35381e3812ba342991d30b71ce257503622ae828 diff --git a/update.sh b/update.sh index c6633b6..3a4ab8c 100755 --- a/update.sh +++ b/update.sh @@ -1,3 +1,6 @@ +# This script updates legacy gooseai contracts. +# It currently does not work due to a dependency on `tensorizer`. + # Update the API interfaces generated code files docker build -t api_interfaces . From 9f04e3a37ea857c3e0499957ad74f9d00aba597d Mon Sep 17 00:00:00 2001 From: Stephan Auerhahn Date: Thu, 11 May 2023 06:46:51 +0000 Subject: [PATCH 02/20] add python project --- .devcontainer/Dockerfile | 2 +- pyproject.toml | 163 +++++++++++++++++++++++++++++++++ src/stability_api/__about__.py | 1 + 3 files changed, 165 insertions(+), 1 deletion(-) create mode 100644 pyproject.toml create mode 100644 src/stability_api/__about__.py diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 083ff97..f95ac7f 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -6,7 +6,7 @@ ARG PROTOC_GEN_GO_VERSION=v1.28.1 ARG PROTOC_GEN_GO_GRPC_VERSION=v1.1.0 # Install python and build tools from apt -RUN apt-get update && apt-get install -y cmake git build-essential python3-venv wget && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y cmake git build-essential python3-venv python3-pip python-is-python3 wget && rm -rf /var/lib/apt/lists/* # Install golang from binary package RUN rm -rf /go && wget ${GOLANG_PACKAGE} -qO- | tar -C / -xz diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..34acff3 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,163 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "stability-api" +dynamic = ["version"] +description = 'Interfaces for interacting with low level Stability AI APIs' +readme = "README.md" +requires-python = ">=3.7" +license = "MIT" +keywords = [] +authors = [ + { name = "Stephan Auerhahn", email = "stephan@stability.ai" }, +] +classifiers = [ + "Development Status :: 4 - Beta", + "Programming Language :: Python", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: Implementation :: CPython", + "Programming Language :: Python :: Implementation :: PyPy", +] +dependencies = [] + +[project.urls] +Documentation = "https://github.com/Stability-AI/api-interfaces#readme" +Issues = "https://github.com/Stability-AI/api-interfaces/issues" +Source = "https://github.com/Stability-AI/api-interfaces" + +[tool.hatch.version] +path = "src/stability_api/__about__.py" + +[tool.hatch.build.targets.wheel.force-include] +"src/stability_api" = "stability_api" +"gen/proto/py/stabilityai/platformapis" = "stability_api/interfaces/platform" +"gen/proto/py/coreweave/tensors" = "stability_api/interfaces/tensors" + +[tool.hatch.envs.default] +dependencies = [ + "coverage[toml]>=6.5", + "pytest", +] +[tool.hatch.envs.default.scripts] +generate = "npm run generate-py" +test = "pytest {args:tests}" +test-cov = "coverage run -m pytest {args:tests}" +cov-report = [ + "- coverage combine", + "coverage report", +] +cov = [ + "test-cov", + "cov-report", +] + +[[tool.hatch.envs.all.matrix]] +python = ["3.7", "3.8", "3.9", "3.10", "3.11"] + +[tool.hatch.envs.lint] +detached = true +dependencies = [ + "black>=23.1.0", + "mypy>=1.0.0", + "ruff>=0.0.243", +] +[tool.hatch.envs.lint.scripts] +typing = "mypy --install-types --non-interactive {args:src/stability_api tests}" +style = [ + "ruff {args:.}", + "black --check --diff {args:.}", +] +fmt = [ + "black {args:.}", + "ruff --fix {args:.}", + "style", +] +all = [ + "style", + "typing", +] + +[tool.black] +target-version = ["py37"] +line-length = 120 +skip-string-normalization = true + +[tool.ruff] +target-version = "py37" +line-length = 120 +select = [ + "A", + "ARG", + "B", + "C", + "DTZ", + "E", + "EM", + "F", + "FBT", + "I", + "ICN", + "ISC", + "N", + "PLC", + "PLE", + "PLR", + "PLW", + "Q", + "RUF", + "S", + "T", + "TID", + "UP", + "W", + "YTT", +] +ignore = [ + # Allow non-abstract empty methods in abstract base classes + "B027", + # Allow boolean positional values in function calls, like `dict.get(... True)` + "FBT003", + # Ignore checks for possible passwords + "S105", "S106", "S107", + # Ignore complexity + "C901", "PLR0911", "PLR0912", "PLR0913", "PLR0915", +] +unfixable = [ + # Don't touch unused imports + "F401", +] + +[tool.ruff.isort] +known-first-party = ["stability_api"] + +[tool.ruff.flake8-tidy-imports] +ban-relative-imports = "all" + +[tool.ruff.per-file-ignores] +# Tests can use magic values, assertions, and relative imports +"tests/**/*" = ["PLR2004", "S101", "TID252"] + +[tool.coverage.run] +source_pkgs = ["stability_api", "tests"] +branch = true +parallel = true +omit = [ + "src/stability_api/__about__.py", +] + +[tool.coverage.paths] +stability_api = ["src/stability_api", "*/stability-api/src/stability_api"] +tests = ["tests", "*/stability-api/tests"] + +[tool.coverage.report] +exclude_lines = [ + "no cov", + "if __name__ == .__main__.:", + "if TYPE_CHECKING:", +] diff --git a/src/stability_api/__about__.py b/src/stability_api/__about__.py new file mode 100644 index 0000000..a049c7f --- /dev/null +++ b/src/stability_api/__about__.py @@ -0,0 +1 @@ +__version__ = "0.1.0-dev" \ No newline at end of file From 9f96bcfdabeb4ca3b466ca2f531a28309b9c1068 Mon Sep 17 00:00:00 2001 From: Stephan Auerhahn Date: Thu, 11 May 2023 08:49:32 +0000 Subject: [PATCH 03/20] change location of tensors to match --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 34acff3..b8eb9c2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ path = "src/stability_api/__about__.py" [tool.hatch.build.targets.wheel.force-include] "src/stability_api" = "stability_api" "gen/proto/py/stabilityai/platformapis" = "stability_api/interfaces/platform" -"gen/proto/py/coreweave/tensors" = "stability_api/interfaces/tensors" +"gen/proto/py/coreweave" = "stability_api/interfaces/coreweave" [tool.hatch.envs.default] dependencies = [ From a5157ef6aa67f60b14028560839b8558e5fe0feb Mon Sep 17 00:00:00 2001 From: Stephan Auerhahn Date: Thu, 11 May 2023 08:52:31 +0000 Subject: [PATCH 04/20] update path, tested --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b8eb9c2..9824f31 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ path = "src/stability_api/__about__.py" [tool.hatch.build.targets.wheel.force-include] "src/stability_api" = "stability_api" "gen/proto/py/stabilityai/platformapis" = "stability_api/interfaces/platform" -"gen/proto/py/coreweave" = "stability_api/interfaces/coreweave" +"gen/proto/py/coreweave/tensors" = "coreweave/tensors" [tool.hatch.envs.default] dependencies = [ From 41e80f6fc24c373f83b0a93eb09b6b32a17c5fa7 Mon Sep 17 00:00:00 2001 From: Stephan Auerhahn Date: Thu, 11 May 2023 08:59:43 +0000 Subject: [PATCH 05/20] relocate tensors --- .../generation/v1/generation.pb.go | 1504 ++++++++--------- .../generation/v1/generation_pb.d.ts | 2 +- .../generation/v1/generation_pb.js | 2 +- gen/proto/kt/com/tensors/AttributeKt.kt | 2 +- gen/proto/kt/com/tensors/ModuleKt.kt | 2 +- gen/proto/kt/com/tensors/TensorKt.kt | 2 +- gen/proto/kt/com/tensors/TensorsProtoKt.kt | 2 +- .../generation/v1/generation_pb2.py | 220 +-- .../generation/v1/generation_pb2.pyi | 2 +- pyproject.toml | 2 +- src/proto/coreweave/tensors/tensors.proto | 54 - .../generation/v1/generation.proto | 2 +- 12 files changed, 871 insertions(+), 925 deletions(-) delete mode 100644 src/proto/coreweave/tensors/tensors.proto diff --git a/gen/proto/go/stabilityai/platformapis/generation/v1/generation.pb.go b/gen/proto/go/stabilityai/platformapis/generation/v1/generation.pb.go index 6d0e6ab..1d9fb01 100644 --- a/gen/proto/go/stabilityai/platformapis/generation/v1/generation.pb.go +++ b/gen/proto/go/stabilityai/platformapis/generation/v1/generation.pb.go @@ -7,7 +7,7 @@ package generationv1 import ( - tensors "github.com/stability-ai/api-interfaces/gen/proto/go/coreweave/tensors" + tensors "github.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/tensors" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" structpb "google.golang.org/protobuf/types/known/structpb" @@ -3779,796 +3779,796 @@ var file_stabilityai_platformapis_generation_v1_generation_proto_rawDesc = []byt 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x1f, 0x63, 0x6f, 0x72, 0x65, 0x77, 0x65, 0x61, 0x76, 0x65, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x73, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0x39, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x17, 0x0a, 0x04, 0x74, 0x65, 0x78, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x88, - 0x01, 0x01, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, - 0x69, 0x64, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x22, 0x88, 0x01, 0x0a, 0x06, - 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x45, 0x0a, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x26, 0x0a, - 0x0c, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, 0x72, - 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x69, - 0x7a, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0xd7, 0x04, 0x0a, 0x08, 0x41, 0x72, 0x74, 0x69, 0x66, - 0x61, 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x48, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, - 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, - 0x04, 0x6d, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x69, 0x6d, - 0x65, 0x12, 0x19, 0x0a, 0x05, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x48, 0x01, 0x52, 0x05, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x88, 0x01, 0x01, 0x12, 0x18, 0x0a, 0x06, - 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x06, - 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x48, 0x0a, 0x06, - 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x73, - 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x06, - 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x5e, 0x0a, 0x0a, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, - 0x66, 0x69, 0x65, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x73, 0x74, 0x61, - 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, 0x0a, 0x63, 0x6c, 0x61, 0x73, - 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x06, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, - 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x06, 0x74, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x59, 0x0a, 0x0d, 0x66, 0x69, 0x6e, 0x69, 0x73, - 0x68, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, - 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, - 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x0c, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x61, 0x73, - 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x0c, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, - 0x7a, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x42, 0x06, - 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6d, 0x61, 0x67, 0x69, 0x63, - 0x22, 0x5c, 0x0a, 0x10, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, - 0x74, 0x65, 0x72, 0x73, 0x12, 0x17, 0x0a, 0x04, 0x69, 0x6e, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x08, 0x48, 0x00, 0x52, 0x04, 0x69, 0x6e, 0x69, 0x74, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, - 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x48, 0x01, 0x52, - 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x69, - 0x6e, 0x69, 0x74, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0xb0, - 0x02, 0x0a, 0x06, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x12, 0x5d, 0x0a, 0x0a, 0x70, 0x61, 0x72, - 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, - 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x01, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, - 0x65, 0x74, 0x65, 0x72, 0x73, 0x88, 0x01, 0x01, 0x12, 0x14, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x48, - 0x0a, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, + 0x21, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2f, 0x74, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x73, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0x39, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x17, 0x0a, 0x04, 0x74, + 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x74, 0x65, 0x78, + 0x74, 0x88, 0x01, 0x01, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x02, 0x69, 0x64, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x22, 0x88, 0x01, + 0x0a, 0x06, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x45, 0x0a, 0x06, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, + 0x26, 0x0a, 0x0c, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, + 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0xd7, 0x04, 0x0a, 0x08, 0x41, 0x72, 0x74, + 0x69, 0x66, 0x61, 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x48, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, + 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, + 0x12, 0x0a, 0x04, 0x6d, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, + 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x48, 0x01, 0x52, 0x05, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x88, 0x01, 0x01, 0x12, 0x18, + 0x0a, 0x06, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, + 0x52, 0x06, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x48, + 0x0a, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x48, 0x00, - 0x52, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x4e, 0x0a, 0x08, 0x61, 0x72, 0x74, 0x69, - 0x66, 0x61, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, + 0x52, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x5e, 0x0a, 0x0a, 0x63, 0x6c, 0x61, 0x73, + 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x73, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, 0x0a, 0x63, 0x6c, + 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x06, 0x74, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x73, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x06, 0x74, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x59, 0x0a, 0x0d, 0x66, 0x69, 0x6e, + 0x69, 0x73, 0x68, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, + 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x0c, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, + 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, + 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, + 0x73, 0x69, 0x7a, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, + 0x42, 0x06, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6d, 0x61, 0x67, + 0x69, 0x63, 0x22, 0x5c, 0x0a, 0x10, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x17, 0x0a, 0x04, 0x69, 0x6e, 0x69, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x04, 0x69, 0x6e, 0x69, 0x74, 0x88, 0x01, 0x01, 0x12, + 0x1b, 0x0a, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x48, + 0x01, 0x52, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, 0x05, + 0x5f, 0x69, 0x6e, 0x69, 0x74, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x22, 0xb0, 0x02, 0x0a, 0x06, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x12, 0x5d, 0x0a, 0x0a, 0x70, + 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x01, 0x52, 0x0a, 0x70, 0x61, 0x72, + 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x88, 0x01, 0x01, 0x12, 0x14, 0x0a, 0x04, 0x74, 0x65, + 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, + 0x12, 0x48, 0x0a, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, + 0x48, 0x00, 0x52, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x4e, 0x0a, 0x08, 0x61, 0x72, + 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x48, 0x00, + 0x52, 0x08, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x42, 0x08, 0x0a, 0x06, 0x70, 0x72, + 0x6f, 0x6d, 0x70, 0x74, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, + 0x65, 0x72, 0x73, 0x22, 0xb9, 0x03, 0x0a, 0x11, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x15, 0x0a, 0x03, 0x65, 0x74, 0x61, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x03, 0x65, 0x74, 0x61, 0x88, 0x01, 0x01, + 0x12, 0x2a, 0x0a, 0x0e, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x65, + 0x70, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x48, 0x01, 0x52, 0x0d, 0x73, 0x61, 0x6d, 0x70, + 0x6c, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x65, 0x70, 0x73, 0x88, 0x01, 0x01, 0x12, 0x2c, 0x0a, 0x0f, + 0x6c, 0x61, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x04, 0x48, 0x02, 0x52, 0x0e, 0x6c, 0x61, 0x74, 0x65, 0x6e, 0x74, 0x43, + 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x88, 0x01, 0x01, 0x12, 0x34, 0x0a, 0x13, 0x64, 0x6f, + 0x77, 0x6e, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, + 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x48, 0x03, 0x52, 0x12, 0x64, 0x6f, 0x77, 0x6e, 0x73, + 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x88, 0x01, 0x01, + 0x12, 0x20, 0x0a, 0x09, 0x63, 0x66, 0x67, 0x5f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x02, 0x48, 0x04, 0x52, 0x08, 0x63, 0x66, 0x67, 0x53, 0x63, 0x61, 0x6c, 0x65, 0x88, + 0x01, 0x01, 0x12, 0x2d, 0x0a, 0x10, 0x69, 0x6e, 0x69, 0x74, 0x5f, 0x6e, 0x6f, 0x69, 0x73, 0x65, + 0x5f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x02, 0x48, 0x05, 0x52, 0x0e, + 0x69, 0x6e, 0x69, 0x74, 0x4e, 0x6f, 0x69, 0x73, 0x65, 0x53, 0x63, 0x61, 0x6c, 0x65, 0x88, 0x01, + 0x01, 0x12, 0x2d, 0x0a, 0x10, 0x73, 0x74, 0x65, 0x70, 0x5f, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, + 0x73, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x02, 0x48, 0x06, 0x52, 0x0e, 0x73, + 0x74, 0x65, 0x70, 0x4e, 0x6f, 0x69, 0x73, 0x65, 0x53, 0x63, 0x61, 0x6c, 0x65, 0x88, 0x01, 0x01, + 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x65, 0x74, 0x61, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x73, 0x61, 0x6d, + 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x73, 0x42, 0x12, 0x0a, 0x10, 0x5f, + 0x6c, 0x61, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x42, + 0x16, 0x0a, 0x14, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, + 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x63, 0x66, 0x67, 0x5f, + 0x73, 0x63, 0x61, 0x6c, 0x65, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x69, 0x6e, 0x69, 0x74, 0x5f, 0x6e, + 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x73, + 0x74, 0x65, 0x70, 0x5f, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x22, + 0xca, 0x01, 0x0a, 0x15, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x33, 0x0a, 0x13, 0x76, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x69, 0x6f, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x11, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, + 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x88, 0x01, 0x01, 0x12, 0x54, + 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, + 0x65, 0x6c, 0x48, 0x01, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, + 0x72, 0x88, 0x01, 0x01, 0x42, 0x16, 0x0a, 0x14, 0x5f, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, + 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x42, 0x0e, 0x0a, 0x0c, + 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x22, 0x7d, 0x0a, 0x12, + 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, + 0x72, 0x73, 0x12, 0x19, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x02, 0x48, 0x00, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x88, 0x01, 0x01, 0x12, 0x15, 0x0a, + 0x03, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x48, 0x01, 0x52, 0x03, 0x65, 0x6e, + 0x64, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x02, 0x48, 0x02, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x88, 0x01, 0x01, 0x42, + 0x08, 0x0a, 0x06, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x65, 0x6e, + 0x64, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xea, 0x02, 0x0a, 0x0d, + 0x53, 0x74, 0x65, 0x70, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x1f, 0x0a, + 0x0b, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x02, 0x52, 0x0a, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x64, 0x53, 0x74, 0x65, 0x70, 0x12, 0x58, + 0x0a, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, 0x07, 0x73, 0x61, + 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x5b, 0x0a, 0x08, 0x73, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x48, 0x00, 0x52, 0x08, - 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x42, 0x08, 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x6d, - 0x70, 0x74, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, - 0x73, 0x22, 0xb9, 0x03, 0x0a, 0x11, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x15, 0x0a, 0x03, 0x65, 0x74, 0x61, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x03, 0x65, 0x74, 0x61, 0x88, 0x01, 0x01, 0x12, 0x2a, - 0x0a, 0x0e, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x48, 0x01, 0x52, 0x0d, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, - 0x6e, 0x67, 0x53, 0x74, 0x65, 0x70, 0x73, 0x88, 0x01, 0x01, 0x12, 0x2c, 0x0a, 0x0f, 0x6c, 0x61, - 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x04, 0x48, 0x02, 0x52, 0x0e, 0x6c, 0x61, 0x74, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, - 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x88, 0x01, 0x01, 0x12, 0x34, 0x0a, 0x13, 0x64, 0x6f, 0x77, 0x6e, - 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x04, 0x48, 0x03, 0x52, 0x12, 0x64, 0x6f, 0x77, 0x6e, 0x73, 0x61, 0x6d, - 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x88, 0x01, 0x01, 0x12, 0x20, - 0x0a, 0x09, 0x63, 0x66, 0x67, 0x5f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x02, 0x48, 0x04, 0x52, 0x08, 0x63, 0x66, 0x67, 0x53, 0x63, 0x61, 0x6c, 0x65, 0x88, 0x01, 0x01, - 0x12, 0x2d, 0x0a, 0x10, 0x69, 0x6e, 0x69, 0x74, 0x5f, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x73, - 0x63, 0x61, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x02, 0x48, 0x05, 0x52, 0x0e, 0x69, 0x6e, - 0x69, 0x74, 0x4e, 0x6f, 0x69, 0x73, 0x65, 0x53, 0x63, 0x61, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x12, - 0x2d, 0x0a, 0x10, 0x73, 0x74, 0x65, 0x70, 0x5f, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x73, 0x63, - 0x61, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x02, 0x48, 0x06, 0x52, 0x0e, 0x73, 0x74, 0x65, - 0x70, 0x4e, 0x6f, 0x69, 0x73, 0x65, 0x53, 0x63, 0x61, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x42, 0x06, - 0x0a, 0x04, 0x5f, 0x65, 0x74, 0x61, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x73, 0x61, 0x6d, 0x70, 0x6c, - 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x73, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x6c, 0x61, - 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x42, 0x16, 0x0a, - 0x14, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x66, - 0x61, 0x63, 0x74, 0x6f, 0x72, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x63, 0x66, 0x67, 0x5f, 0x73, 0x63, - 0x61, 0x6c, 0x65, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x69, 0x6e, 0x69, 0x74, 0x5f, 0x6e, 0x6f, 0x69, - 0x73, 0x65, 0x5f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x73, 0x74, 0x65, - 0x70, 0x5f, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x22, 0xca, 0x01, - 0x0a, 0x15, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x33, 0x0a, 0x13, 0x76, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x5f, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x11, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x41, 0x64, - 0x6a, 0x75, 0x73, 0x74, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x88, 0x01, 0x01, 0x12, 0x54, 0x0a, 0x0b, - 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, - 0x48, 0x01, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x88, - 0x01, 0x01, 0x42, 0x16, 0x0a, 0x14, 0x5f, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, - 0x6a, 0x75, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, - 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x22, 0x7d, 0x0a, 0x12, 0x53, 0x63, - 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, - 0x12, 0x19, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x48, - 0x00, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x88, 0x01, 0x01, 0x12, 0x15, 0x0a, 0x03, 0x65, - 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x48, 0x01, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x88, - 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x02, 0x48, 0x02, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, - 0x06, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x65, 0x6e, 0x64, 0x42, - 0x08, 0x0a, 0x06, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xea, 0x02, 0x0a, 0x0d, 0x53, 0x74, - 0x65, 0x70, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x73, - 0x63, 0x61, 0x6c, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, - 0x52, 0x0a, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x64, 0x53, 0x74, 0x65, 0x70, 0x12, 0x58, 0x0a, 0x07, - 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, - 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, 0x07, 0x73, 0x61, 0x6d, 0x70, - 0x6c, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x5b, 0x0a, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, - 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, - 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, - 0x74, 0x65, 0x72, 0x73, 0x48, 0x01, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, - 0x88, 0x01, 0x01, 0x12, 0x5b, 0x0a, 0x08, 0x67, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, - 0x73, 0x48, 0x02, 0x52, 0x08, 0x67, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x88, 0x01, 0x01, - 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x42, 0x0b, 0x0a, 0x09, - 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x67, 0x75, - 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x22, 0xf9, 0x01, 0x0a, 0x05, 0x4d, 0x6f, 0x64, 0x65, 0x6c, - 0x12, 0x5d, 0x0a, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, - 0x65, 0x52, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, - 0x1c, 0x0a, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x12, 0x18, 0x0a, - 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x65, 0x6d, - 0x61, 0x6e, 0x74, 0x69, 0x63, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, - 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, - 0x61, 0x73, 0x22, 0x82, 0x02, 0x0a, 0x10, 0x43, 0x75, 0x74, 0x6f, 0x75, 0x74, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x52, 0x0a, 0x07, 0x63, 0x75, 0x74, 0x6f, 0x75, - 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x01, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x65, 0x88, 0x01, 0x01, 0x12, 0x5b, 0x0a, 0x08, 0x67, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, + 0x65, 0x72, 0x73, 0x48, 0x02, 0x52, 0x08, 0x67, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x88, + 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x42, 0x0b, + 0x0a, 0x09, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x42, 0x0b, 0x0a, 0x09, 0x5f, + 0x67, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x22, 0xf9, 0x01, 0x0a, 0x05, 0x4d, 0x6f, 0x64, + 0x65, 0x6c, 0x12, 0x5d, 0x0a, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, + 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x43, 0x75, 0x74, 0x6f, 0x75, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, - 0x72, 0x73, 0x52, 0x07, 0x63, 0x75, 0x74, 0x6f, 0x75, 0x74, 0x73, 0x12, 0x19, 0x0a, 0x05, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x05, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x17, 0x0a, 0x04, 0x67, 0x72, 0x61, 0x79, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x02, 0x48, 0x01, 0x52, 0x04, 0x67, 0x72, 0x61, 0x79, 0x88, 0x01, 0x01, 0x12, - 0x17, 0x0a, 0x04, 0x62, 0x6c, 0x75, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x48, 0x02, 0x52, - 0x04, 0x62, 0x6c, 0x75, 0x72, 0x88, 0x01, 0x01, 0x12, 0x22, 0x0a, 0x0a, 0x73, 0x69, 0x7a, 0x65, - 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x48, 0x03, 0x52, 0x09, - 0x73, 0x69, 0x7a, 0x65, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, - 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x67, 0x72, 0x61, 0x79, 0x42, - 0x07, 0x0a, 0x05, 0x5f, 0x62, 0x6c, 0x75, 0x72, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x73, 0x69, 0x7a, - 0x65, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x22, 0x4e, 0x0a, 0x1a, 0x47, 0x75, 0x69, 0x64, 0x61, - 0x6e, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xc8, 0x03, 0x0a, 0x1a, 0x47, 0x75, 0x69, 0x64, - 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x45, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x12, 0x30, 0x0a, - 0x11, 0x67, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x6e, 0x67, - 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x10, 0x67, 0x75, 0x69, 0x64, - 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x72, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, - 0x5e, 0x0a, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x42, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x75, 0x69, 0x64, 0x61, - 0x6e, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, - 0x57, 0x0a, 0x07, 0x63, 0x75, 0x74, 0x6f, 0x75, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x74, 0x6f, 0x75, 0x74, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x01, 0x52, 0x07, 0x63, 0x75, - 0x74, 0x6f, 0x75, 0x74, 0x73, 0x88, 0x01, 0x01, 0x12, 0x4b, 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x6d, - 0x70, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, + 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, + 0x75, 0x72, 0x65, 0x52, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, + 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x12, + 0x18, 0x0a, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, + 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, + 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, + 0x6c, 0x69, 0x61, 0x73, 0x22, 0x82, 0x02, 0x0a, 0x10, 0x43, 0x75, 0x74, 0x6f, 0x75, 0x74, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x52, 0x0a, 0x07, 0x63, 0x75, 0x74, + 0x6f, 0x75, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x73, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x74, 0x6f, 0x75, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, + 0x74, 0x65, 0x72, 0x73, 0x52, 0x07, 0x63, 0x75, 0x74, 0x6f, 0x75, 0x74, 0x73, 0x12, 0x19, 0x0a, + 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x05, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x17, 0x0a, 0x04, 0x67, 0x72, 0x61, 0x79, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x48, 0x01, 0x52, 0x04, 0x67, 0x72, 0x61, 0x79, 0x88, 0x01, + 0x01, 0x12, 0x17, 0x0a, 0x04, 0x62, 0x6c, 0x75, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x48, + 0x02, 0x52, 0x04, 0x62, 0x6c, 0x75, 0x72, 0x88, 0x01, 0x01, 0x12, 0x22, 0x0a, 0x0a, 0x73, 0x69, + 0x7a, 0x65, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x48, 0x03, + 0x52, 0x09, 0x73, 0x69, 0x7a, 0x65, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x88, 0x01, 0x01, 0x42, 0x08, + 0x0a, 0x06, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x67, 0x72, 0x61, + 0x79, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x62, 0x6c, 0x75, 0x72, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x73, + 0x69, 0x7a, 0x65, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x22, 0x4e, 0x0a, 0x1a, 0x47, 0x75, 0x69, + 0x64, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x02, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xc8, 0x03, 0x0a, 0x1a, 0x47, 0x75, + 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x45, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x65, + 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x48, 0x02, 0x52, 0x06, 0x70, 0x72, 0x6f, 0x6d, - 0x70, 0x74, 0x88, 0x01, 0x01, 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x67, 0x75, 0x69, 0x64, 0x61, 0x6e, - 0x63, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x42, 0x0a, 0x0a, 0x08, 0x5f, - 0x63, 0x75, 0x74, 0x6f, 0x75, 0x74, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x70, 0x72, 0x6f, 0x6d, - 0x70, 0x74, 0x22, 0xd7, 0x01, 0x0a, 0x12, 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x5f, 0x0a, 0x0f, 0x67, 0x75, 0x69, - 0x64, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x12, + 0x30, 0x0a, 0x11, 0x67, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x65, + 0x6e, 0x67, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x10, 0x67, 0x75, + 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x72, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x88, 0x01, + 0x01, 0x12, 0x5e, 0x0a, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x75, 0x69, + 0x64, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x12, 0x57, 0x0a, 0x07, 0x63, 0x75, 0x74, 0x6f, 0x75, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x75, 0x69, 0x64, - 0x61, 0x6e, 0x63, 0x65, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x0e, 0x67, 0x75, 0x69, 0x64, - 0x61, 0x6e, 0x63, 0x65, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x12, 0x60, 0x0a, 0x09, 0x69, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x42, 0x2e, - 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, - 0x73, 0x52, 0x09, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x22, 0xc1, 0x01, 0x0a, - 0x0d, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x58, - 0x0a, 0x09, 0x64, 0x69, 0x66, 0x66, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x75, - 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x48, 0x00, 0x52, 0x09, 0x64, - 0x69, 0x66, 0x66, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4e, 0x0a, 0x08, 0x75, 0x70, 0x73, 0x63, - 0x61, 0x6c, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, + 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x74, 0x6f, + 0x75, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x01, 0x52, 0x07, + 0x63, 0x75, 0x74, 0x6f, 0x75, 0x74, 0x73, 0x88, 0x01, 0x01, 0x12, 0x4b, 0x0a, 0x06, 0x70, 0x72, + 0x6f, 0x6d, 0x70, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x48, 0x00, 0x52, 0x08, - 0x75, 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x22, 0x9d, 0x05, 0x0a, 0x0f, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, - 0x74, 0x65, 0x72, 0x73, 0x12, 0x1b, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x88, 0x01, - 0x01, 0x12, 0x19, 0x0a, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, - 0x48, 0x01, 0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x12, 0x0a, 0x04, - 0x73, 0x65, 0x65, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, - 0x12, 0x1d, 0x0a, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x04, 0x48, 0x02, 0x52, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, - 0x19, 0x0a, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x48, 0x03, - 0x52, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x88, 0x01, 0x01, 0x12, 0x58, 0x0a, 0x09, 0x74, 0x72, - 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, - 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, - 0x54, 0x79, 0x70, 0x65, 0x48, 0x04, 0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, - 0x6d, 0x88, 0x01, 0x01, 0x12, 0x55, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, - 0x72, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, - 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x53, 0x74, 0x65, 0x70, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, - 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x65, 0x0a, 0x10, 0x6d, - 0x61, 0x73, 0x6b, 0x65, 0x64, 0x5f, 0x61, 0x72, 0x65, 0x61, 0x5f, 0x69, 0x6e, 0x69, 0x74, 0x18, - 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, - 0x61, 0x73, 0x6b, 0x65, 0x64, 0x41, 0x72, 0x65, 0x61, 0x49, 0x6e, 0x69, 0x74, 0x48, 0x05, 0x52, - 0x0e, 0x6d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x41, 0x72, 0x65, 0x61, 0x49, 0x6e, 0x69, 0x74, 0x88, - 0x01, 0x01, 0x12, 0x5e, 0x0a, 0x0d, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x6d, 0x65, 0x74, - 0x68, 0x6f, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x48, 0x02, 0x52, 0x06, 0x70, 0x72, + 0x6f, 0x6d, 0x70, 0x74, 0x88, 0x01, 0x01, 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x67, 0x75, 0x69, 0x64, + 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x42, 0x0a, 0x0a, + 0x08, 0x5f, 0x63, 0x75, 0x74, 0x6f, 0x75, 0x74, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x70, 0x72, + 0x6f, 0x6d, 0x70, 0x74, 0x22, 0xd7, 0x01, 0x0a, 0x12, 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, + 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x5f, 0x0a, 0x0f, 0x67, + 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, + 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x75, + 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x0e, 0x67, 0x75, + 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x12, 0x60, 0x0a, 0x09, + 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x42, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, + 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, + 0x65, 0x72, 0x73, 0x52, 0x09, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x22, 0xc1, + 0x01, 0x0a, 0x0d, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x58, 0x0a, 0x09, 0x64, 0x69, 0x66, 0x66, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, + 0x66, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x48, 0x00, 0x52, + 0x09, 0x64, 0x69, 0x66, 0x66, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4e, 0x0a, 0x08, 0x75, 0x70, + 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x73, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x48, 0x00, + 0x52, 0x08, 0x75, 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x22, 0x9d, 0x05, 0x0a, 0x0f, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1b, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x04, 0x48, 0x01, 0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x12, + 0x0a, 0x04, 0x73, 0x65, 0x65, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x65, + 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x04, 0x48, 0x02, 0x52, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x88, 0x01, + 0x01, 0x12, 0x19, 0x0a, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, + 0x48, 0x03, 0x52, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x88, 0x01, 0x01, 0x12, 0x58, 0x0a, 0x09, + 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x35, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, + 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x48, 0x04, 0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, + 0x6f, 0x72, 0x6d, 0x88, 0x01, 0x01, 0x12, 0x55, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, + 0x74, 0x65, 0x72, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x65, 0x70, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, + 0x72, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x65, 0x0a, + 0x10, 0x6d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x5f, 0x61, 0x72, 0x65, 0x61, 0x5f, 0x69, 0x6e, 0x69, + 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x41, 0x72, 0x65, 0x61, 0x49, 0x6e, 0x69, 0x74, 0x48, + 0x05, 0x52, 0x0e, 0x6d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x41, 0x72, 0x65, 0x61, 0x49, 0x6e, 0x69, + 0x74, 0x88, 0x01, 0x01, 0x12, 0x5e, 0x0a, 0x0d, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x6d, + 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, + 0x64, 0x48, 0x06, 0x52, 0x0c, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, + 0x64, 0x88, 0x01, 0x01, 0x12, 0x1f, 0x0a, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x7a, 0x65, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x48, 0x07, 0x52, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, + 0x7a, 0x65, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x77, 0x69, 0x64, 0x74, 0x68, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x73, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x73, + 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x13, + 0x0a, 0x11, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x5f, 0x61, 0x72, 0x65, 0x61, 0x5f, 0x69, + 0x6e, 0x69, 0x74, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x6d, + 0x65, 0x74, 0x68, 0x6f, 0x64, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, + 0x7a, 0x65, 0x22, 0x5e, 0x0a, 0x11, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, + 0x43, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x63, 0x65, + 0x70, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x63, 0x65, 0x70, + 0x74, 0x12, 0x21, 0x0a, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, + 0x64, 0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, + 0x6c, 0x64, 0x22, 0x85, 0x03, 0x0a, 0x12, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x55, 0x0a, + 0x08, 0x63, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, + 0x69, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x63, + 0x65, 0x70, 0x74, 0x73, 0x12, 0x23, 0x0a, 0x0a, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x6d, 0x65, + 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x64, 0x6a, 0x75, + 0x73, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x4b, 0x0a, 0x06, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x48, - 0x06, 0x52, 0x0c, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x88, - 0x01, 0x01, 0x12, 0x1f, 0x0a, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x7a, 0x65, 0x18, 0x0a, - 0x20, 0x01, 0x28, 0x08, 0x48, 0x07, 0x52, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x7a, 0x65, - 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x42, 0x08, - 0x0a, 0x06, 0x5f, 0x77, 0x69, 0x64, 0x74, 0x68, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x73, 0x61, 0x6d, - 0x70, 0x6c, 0x65, 0x73, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x73, 0x42, 0x0c, - 0x0a, 0x0a, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x13, 0x0a, 0x11, - 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x5f, 0x61, 0x72, 0x65, 0x61, 0x5f, 0x69, 0x6e, 0x69, - 0x74, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x6d, 0x65, 0x74, - 0x68, 0x6f, 0x64, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x7a, 0x65, - 0x22, 0x5e, 0x0a, 0x11, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x43, 0x6f, - 0x6e, 0x63, 0x65, 0x70, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x12, - 0x21, 0x0a, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x02, 0x48, 0x00, 0x52, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x88, - 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, - 0x22, 0x85, 0x03, 0x0a, 0x12, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x43, - 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x55, 0x0a, 0x08, 0x63, - 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, - 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, - 0x72, 0x43, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x63, 0x65, 0x70, - 0x74, 0x73, 0x12, 0x23, 0x0a, 0x0a, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x6d, 0x65, 0x6e, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, - 0x6d, 0x65, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x4b, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x01, 0x52, 0x06, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x64, 0x0a, 0x0f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, + 0x66, 0x69, 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x36, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, + 0x69, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x48, 0x02, 0x52, 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73, + 0x69, 0x66, 0x69, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0d, 0x0a, 0x0b, + 0x5f, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x09, 0x0a, 0x07, 0x5f, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, + 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0xba, 0x02, 0x0a, 0x14, 0x43, + 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, + 0x65, 0x72, 0x73, 0x12, 0x5a, 0x0a, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x01, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x88, 0x01, 0x01, 0x12, 0x64, 0x0a, 0x0f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, - 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, - 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, - 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x48, 0x02, 0x52, 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, - 0x69, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x61, - 0x64, 0x6a, 0x75, 0x73, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x61, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, - 0x69, 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0xba, 0x02, 0x0a, 0x14, 0x43, 0x6c, 0x61, - 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, - 0x73, 0x12, 0x5a, 0x0a, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, - 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, - 0x79, 0x52, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0x54, 0x0a, - 0x07, 0x65, 0x78, 0x63, 0x65, 0x65, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, + 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x43, 0x61, 0x74, 0x65, 0x67, + 0x6f, 0x72, 0x79, 0x52, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, + 0x54, 0x0a, 0x07, 0x65, 0x78, 0x63, 0x65, 0x65, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x3a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, + 0x66, 0x69, 0x65, 0x72, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x07, 0x65, 0x78, + 0x63, 0x65, 0x65, 0x64, 0x73, 0x12, 0x5c, 0x0a, 0x0f, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x7a, 0x65, + 0x64, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, - 0x65, 0x72, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x07, 0x65, 0x78, 0x63, 0x65, - 0x65, 0x64, 0x73, 0x12, 0x5c, 0x0a, 0x0f, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, - 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x73, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, + 0x52, 0x0e, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x88, 0x01, 0x01, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, + 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x8a, 0x01, 0x0a, 0x15, 0x49, 0x6e, 0x74, 0x65, + 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, + 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x02, 0x52, 0x06, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x73, 0x12, 0x50, 0x0a, 0x04, 0x6d, 0x6f, 0x64, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, + 0x48, 0x00, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, + 0x6d, 0x6f, 0x64, 0x65, 0x22, 0xbb, 0x04, 0x0a, 0x14, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, + 0x72, 0x6d, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x12, 0x23, 0x0a, + 0x0a, 0x62, 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x02, 0x48, 0x00, 0x52, 0x0a, 0x62, 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x88, + 0x01, 0x01, 0x12, 0x1f, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x73, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x02, 0x48, 0x01, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x73, 0x74, + 0x88, 0x01, 0x01, 0x12, 0x15, 0x0a, 0x03, 0x68, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, + 0x48, 0x02, 0x52, 0x03, 0x68, 0x75, 0x65, 0x88, 0x01, 0x01, 0x12, 0x23, 0x0a, 0x0a, 0x73, 0x61, + 0x74, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x48, 0x03, + 0x52, 0x0a, 0x73, 0x61, 0x74, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, + 0x21, 0x0a, 0x09, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x02, 0x48, 0x04, 0x52, 0x09, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x88, + 0x01, 0x01, 0x12, 0x56, 0x0a, 0x0b, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x69, 0x6d, 0x61, 0x67, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x48, 0x05, 0x52, 0x0a, 0x6d, 0x61, 0x74, + 0x63, 0x68, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x88, 0x01, 0x01, 0x12, 0x5a, 0x0a, 0x0a, 0x6d, 0x61, + 0x74, 0x63, 0x68, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, + 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x4d, 0x61, 0x74, + 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x65, 0x48, 0x06, 0x52, 0x09, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x4d, + 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x12, 0x26, 0x0a, 0x0c, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, + 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x02, 0x48, 0x07, 0x52, 0x0b, + 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x22, + 0x0a, 0x0a, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, + 0x28, 0x0d, 0x48, 0x08, 0x52, 0x09, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x53, 0x65, 0x65, 0x64, 0x88, + 0x01, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x62, 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, + 0x73, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x73, 0x74, 0x42, 0x06, + 0x0a, 0x04, 0x5f, 0x68, 0x75, 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x73, 0x61, 0x74, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, + 0x65, 0x73, 0x73, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x69, 0x6d, + 0x61, 0x67, 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x6d, 0x6f, + 0x64, 0x65, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x61, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x73, 0x65, + 0x65, 0x64, 0x22, 0xae, 0x01, 0x0a, 0x12, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, + 0x44, 0x65, 0x70, 0x74, 0x68, 0x43, 0x61, 0x6c, 0x63, 0x12, 0x26, 0x0a, 0x0c, 0x62, 0x6c, 0x65, + 0x6e, 0x64, 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x48, + 0x00, 0x52, 0x0b, 0x62, 0x6c, 0x65, 0x6e, 0x64, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x88, 0x01, + 0x01, 0x12, 0x24, 0x0a, 0x0b, 0x62, 0x6c, 0x75, 0x72, 0x5f, 0x72, 0x61, 0x64, 0x69, 0x75, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x01, 0x52, 0x0a, 0x62, 0x6c, 0x75, 0x72, 0x52, 0x61, + 0x64, 0x69, 0x75, 0x73, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, + 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x48, 0x02, 0x52, 0x07, 0x72, 0x65, 0x76, 0x65, + 0x72, 0x73, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x62, 0x6c, 0x65, 0x6e, 0x64, + 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x62, 0x6c, 0x75, 0x72, + 0x5f, 0x72, 0x61, 0x64, 0x69, 0x75, 0x73, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x72, 0x65, 0x76, 0x65, + 0x72, 0x73, 0x65, 0x22, 0x29, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, + 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x12, 0x16, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x02, 0x42, 0x02, 0x10, 0x01, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xa0, + 0x03, 0x0a, 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x65, 0x73, 0x61, + 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x53, 0x0a, 0x0b, 0x62, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x6d, + 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x62, + 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x55, 0x0a, 0x09, 0x74, 0x72, 0x61, + 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0e, - 0x72, 0x65, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, - 0x01, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x8a, 0x01, 0x0a, 0x15, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x70, - 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, - 0x16, 0x0a, 0x06, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x02, 0x52, - 0x06, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x73, 0x12, 0x50, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x49, - 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x48, 0x00, - 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6d, 0x6f, - 0x64, 0x65, 0x22, 0xbb, 0x04, 0x0a, 0x14, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, - 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0a, 0x62, - 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x48, - 0x00, 0x52, 0x0a, 0x62, 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x88, 0x01, 0x01, - 0x12, 0x1f, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x02, 0x48, 0x01, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x73, 0x74, 0x88, 0x01, - 0x01, 0x12, 0x15, 0x0a, 0x03, 0x68, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x48, 0x02, - 0x52, 0x03, 0x68, 0x75, 0x65, 0x88, 0x01, 0x01, 0x12, 0x23, 0x0a, 0x0a, 0x73, 0x61, 0x74, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x48, 0x03, 0x52, 0x0a, - 0x73, 0x61, 0x74, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x21, 0x0a, - 0x09, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, - 0x48, 0x04, 0x52, 0x09, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x88, 0x01, 0x01, - 0x12, 0x56, 0x0a, 0x0b, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, - 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x48, 0x05, 0x52, 0x0a, 0x6d, 0x61, 0x74, 0x63, 0x68, - 0x49, 0x6d, 0x61, 0x67, 0x65, 0x88, 0x01, 0x01, 0x12, 0x5a, 0x0a, 0x0a, 0x6d, 0x61, 0x74, 0x63, - 0x68, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x73, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x4d, + 0x61, 0x74, 0x72, 0x69, 0x78, 0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, + 0x12, 0x63, 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, + 0x72, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x74, 0x72, 0x69, + 0x78, 0x48, 0x00, 0x52, 0x0d, 0x70, 0x72, 0x65, 0x76, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, + 0x72, 0x6d, 0x88, 0x01, 0x01, 0x12, 0x22, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x74, 0x68, 0x5f, 0x77, + 0x61, 0x72, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x48, 0x01, 0x52, 0x09, 0x64, 0x65, 0x70, + 0x74, 0x68, 0x57, 0x61, 0x72, 0x70, 0x88, 0x01, 0x01, 0x12, 0x24, 0x0a, 0x0b, 0x65, 0x78, 0x70, + 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x48, 0x02, + 0x52, 0x0a, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x61, 0x73, 0x6b, 0x88, 0x01, 0x01, 0x42, + 0x11, 0x0a, 0x0f, 0x5f, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, + 0x72, 0x6d, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x64, 0x65, 0x70, 0x74, 0x68, 0x5f, 0x77, 0x61, 0x72, + 0x70, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x61, 0x73, + 0x6b, 0x22, 0xc2, 0x01, 0x0a, 0x10, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x53, 0x0a, 0x0b, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x0a, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, + 0x65, 0x61, 0x72, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, + 0x09, 0x6e, 0x65, 0x61, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x61, + 0x72, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x08, 0x66, + 0x61, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x66, 0x6f, 0x76, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x03, 0x66, 0x6f, 0x76, 0x88, 0x01, 0x01, 0x42, 0x06, + 0x0a, 0x04, 0x5f, 0x66, 0x6f, 0x76, 0x22, 0xf2, 0x02, 0x0a, 0x13, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x66, 0x6f, 0x72, 0x6d, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x6f, 0x73, 0x65, 0x12, 0x68, + 0x0a, 0x14, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x5f, 0x74, 0x6f, 0x5f, 0x76, 0x69, 0x65, 0x77, 0x5f, + 0x6d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x4d, 0x61, 0x74, 0x63, 0x68, - 0x4d, 0x6f, 0x64, 0x65, 0x48, 0x06, 0x52, 0x09, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x4d, 0x6f, 0x64, - 0x65, 0x88, 0x01, 0x01, 0x12, 0x26, 0x0a, 0x0c, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x61, 0x6d, - 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x02, 0x48, 0x07, 0x52, 0x0b, 0x6e, 0x6f, - 0x69, 0x73, 0x65, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x22, 0x0a, 0x0a, - 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, - 0x48, 0x08, 0x52, 0x09, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x53, 0x65, 0x65, 0x64, 0x88, 0x01, 0x01, - 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x62, 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x42, - 0x0b, 0x0a, 0x09, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x73, 0x74, 0x42, 0x06, 0x0a, 0x04, - 0x5f, 0x68, 0x75, 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x73, 0x61, 0x74, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, - 0x73, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x69, 0x6d, 0x61, 0x67, - 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x6d, 0x6f, 0x64, 0x65, - 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, - 0x74, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x65, 0x64, - 0x22, 0xae, 0x01, 0x0a, 0x12, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x44, 0x65, - 0x70, 0x74, 0x68, 0x43, 0x61, 0x6c, 0x63, 0x12, 0x26, 0x0a, 0x0c, 0x62, 0x6c, 0x65, 0x6e, 0x64, - 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, - 0x0b, 0x62, 0x6c, 0x65, 0x6e, 0x64, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x88, 0x01, 0x01, 0x12, - 0x24, 0x0a, 0x0b, 0x62, 0x6c, 0x75, 0x72, 0x5f, 0x72, 0x61, 0x64, 0x69, 0x75, 0x73, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0d, 0x48, 0x01, 0x52, 0x0a, 0x62, 0x6c, 0x75, 0x72, 0x52, 0x61, 0x64, 0x69, - 0x75, 0x73, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x48, 0x02, 0x52, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, - 0x65, 0x88, 0x01, 0x01, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x62, 0x6c, 0x65, 0x6e, 0x64, 0x5f, 0x77, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x62, 0x6c, 0x75, 0x72, 0x5f, 0x72, - 0x61, 0x64, 0x69, 0x75, 0x73, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, - 0x65, 0x22, 0x29, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, - 0x74, 0x72, 0x69, 0x78, 0x12, 0x16, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x02, 0x42, 0x02, 0x10, 0x01, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xa0, 0x03, 0x0a, - 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x65, 0x73, 0x61, 0x6d, 0x70, - 0x6c, 0x65, 0x12, 0x53, 0x0a, 0x0b, 0x62, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, - 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, - 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x42, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x62, 0x6f, 0x72, - 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x55, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, - 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, - 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x74, - 0x72, 0x69, 0x78, 0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x63, - 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x48, - 0x00, 0x52, 0x0d, 0x70, 0x72, 0x65, 0x76, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, - 0x88, 0x01, 0x01, 0x12, 0x22, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x74, 0x68, 0x5f, 0x77, 0x61, 0x72, - 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x48, 0x01, 0x52, 0x09, 0x64, 0x65, 0x70, 0x74, 0x68, - 0x57, 0x61, 0x72, 0x70, 0x88, 0x01, 0x01, 0x12, 0x24, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x6f, 0x72, - 0x74, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x48, 0x02, 0x52, 0x0a, - 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x61, 0x73, 0x6b, 0x88, 0x01, 0x01, 0x42, 0x11, 0x0a, - 0x0f, 0x5f, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, - 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x64, 0x65, 0x70, 0x74, 0x68, 0x5f, 0x77, 0x61, 0x72, 0x70, 0x42, - 0x0e, 0x0a, 0x0c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x22, - 0xc2, 0x01, 0x0a, 0x10, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, - 0x74, 0x65, 0x72, 0x73, 0x12, 0x53, 0x0a, 0x0b, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x4d, + 0x61, 0x74, 0x72, 0x69, 0x78, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x54, 0x6f, 0x56, 0x69, + 0x65, 0x77, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x12, 0x65, 0x0a, 0x11, 0x63, 0x61, 0x6d, 0x65, + 0x72, 0x61, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6d, + 0x65, 0x72, 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x10, 0x63, + 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, + 0x1d, 0x0a, 0x0a, 0x64, 0x6f, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x6c, 0x6c, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x09, 0x64, 0x6f, 0x50, 0x72, 0x65, 0x66, 0x69, 0x6c, 0x6c, 0x12, 0x53, + 0x0a, 0x0b, 0x72, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x72, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x4d, + 0x6f, 0x64, 0x65, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x4a, + 0x04, 0x08, 0x06, 0x10, 0x07, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x22, 0x9b, 0x03, 0x0a, 0x13, + 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, + 0x65, 0x72, 0x73, 0x12, 0x61, 0x0a, 0x0c, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x6a, + 0x75, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x63, - 0x61, 0x6d, 0x65, 0x72, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x61, - 0x72, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x09, 0x6e, - 0x65, 0x61, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x61, 0x72, 0x5f, - 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x08, 0x66, 0x61, 0x72, - 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x66, 0x6f, 0x76, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x02, 0x48, 0x00, 0x52, 0x03, 0x66, 0x6f, 0x76, 0x88, 0x01, 0x01, 0x42, 0x06, 0x0a, 0x04, - 0x5f, 0x66, 0x6f, 0x76, 0x22, 0xf2, 0x02, 0x0a, 0x13, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, - 0x72, 0x6d, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x6f, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x14, - 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x5f, 0x74, 0x6f, 0x5f, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x6d, 0x61, - 0x74, 0x72, 0x69, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, + 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x43, 0x6f, 0x6c, 0x6f, + 0x72, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x63, 0x6f, 0x6c, 0x6f, 0x72, + 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x12, 0x5b, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x74, 0x68, 0x5f, + 0x63, 0x61, 0x6c, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x74, - 0x72, 0x69, 0x78, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x54, 0x6f, 0x56, 0x69, 0x65, 0x77, - 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x12, 0x65, 0x0a, 0x11, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, - 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6d, 0x65, 0x72, - 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x10, 0x63, 0x61, 0x6d, - 0x65, 0x72, 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1d, 0x0a, - 0x0a, 0x64, 0x6f, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x6c, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x09, 0x64, 0x6f, 0x50, 0x72, 0x65, 0x66, 0x69, 0x6c, 0x6c, 0x12, 0x53, 0x0a, 0x0b, - 0x72, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x44, 0x65, 0x70, + 0x74, 0x68, 0x43, 0x61, 0x6c, 0x63, 0x48, 0x00, 0x52, 0x09, 0x64, 0x65, 0x70, 0x74, 0x68, 0x43, + 0x61, 0x6c, 0x63, 0x12, 0x57, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, + 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x65, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, + 0x48, 0x00, 0x52, 0x08, 0x72, 0x65, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x5e, 0x0a, 0x0b, + 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x5f, 0x70, 0x6f, 0x73, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x3b, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6e, 0x64, 0x65, - 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x72, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, - 0x65, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x4a, 0x04, 0x08, - 0x06, 0x10, 0x07, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x22, 0x9b, 0x03, 0x0a, 0x13, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, - 0x73, 0x12, 0x61, 0x0a, 0x0c, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x6a, 0x75, 0x73, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, - 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, - 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x41, - 0x64, 0x6a, 0x75, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x41, 0x64, - 0x6a, 0x75, 0x73, 0x74, 0x12, 0x5b, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x74, 0x68, 0x5f, 0x63, 0x61, - 0x6c, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, - 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x44, 0x65, 0x70, 0x74, 0x68, - 0x43, 0x61, 0x6c, 0x63, 0x48, 0x00, 0x52, 0x09, 0x64, 0x65, 0x70, 0x74, 0x68, 0x43, 0x61, 0x6c, - 0x63, 0x12, 0x57, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, - 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x65, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x48, 0x00, - 0x52, 0x08, 0x72, 0x65, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x5e, 0x0a, 0x0b, 0x63, 0x61, - 0x6d, 0x65, 0x72, 0x61, 0x5f, 0x70, 0x6f, 0x73, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x3b, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, - 0x72, 0x6d, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x6f, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0a, - 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x6f, 0x73, 0x65, 0x42, 0x0b, 0x0a, 0x09, 0x74, 0x72, - 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x22, 0xc1, 0x01, 0x0a, 0x0f, 0x41, 0x73, 0x73, 0x65, - 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x4b, 0x0a, 0x06, 0x61, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x73, 0x74, - 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x03, 0x75, 0x73, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, - 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, - 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x52, 0x03, 0x75, 0x73, 0x65, 0x22, 0xb4, 0x01, 0x0a, 0x0a, - 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x06, 0x67, 0x70, - 0x75, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x67, 0x70, - 0x75, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1a, 0x0a, 0x06, 0x63, 0x70, 0x75, 0x5f, 0x69, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x05, 0x63, 0x70, 0x75, 0x49, 0x64, 0x88, - 0x01, 0x01, 0x12, 0x1c, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x88, 0x01, 0x01, - 0x12, 0x20, 0x0a, 0x09, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x08, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x88, - 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x67, 0x70, 0x75, 0x5f, 0x69, 0x64, 0x42, 0x09, 0x0a, - 0x07, 0x5f, 0x63, 0x70, 0x75, 0x5f, 0x69, 0x64, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x6e, 0x6f, 0x64, - 0x65, 0x5f, 0x69, 0x64, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, - 0x69, 0x64, 0x22, 0xa0, 0x02, 0x0a, 0x06, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, 0x1b, 0x0a, - 0x09, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x63, - 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x63, - 0x65, 0x69, 0x76, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, - 0x4b, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x66, 0x6f, 0x72, 0x6d, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x6f, 0x73, 0x65, 0x48, 0x00, + 0x52, 0x0a, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x6f, 0x73, 0x65, 0x42, 0x0b, 0x0a, 0x09, + 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x22, 0xc1, 0x01, 0x0a, 0x0f, 0x41, 0x73, + 0x73, 0x65, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x4b, 0x0a, + 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x4d, 0x65, 0x74, - 0x61, 0x48, 0x00, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x88, 0x01, 0x01, 0x12, 0x4e, 0x0a, 0x09, - 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x03, 0x75, 0x73, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x41, 0x73, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x52, 0x03, 0x75, 0x73, 0x65, 0x22, 0xb4, 0x01, + 0x0a, 0x0a, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x06, + 0x67, 0x70, 0x75, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, + 0x67, 0x70, 0x75, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1a, 0x0a, 0x06, 0x63, 0x70, 0x75, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x05, 0x63, 0x70, 0x75, 0x49, + 0x64, 0x88, 0x01, 0x01, 0x12, 0x1c, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x88, + 0x01, 0x01, 0x12, 0x20, 0x0a, 0x09, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x08, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x49, + 0x64, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x67, 0x70, 0x75, 0x5f, 0x69, 0x64, 0x42, + 0x09, 0x0a, 0x07, 0x5f, 0x63, 0x70, 0x75, 0x5f, 0x69, 0x64, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x6e, + 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, + 0x65, 0x5f, 0x69, 0x64, 0x22, 0xa0, 0x02, 0x0a, 0x06, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, + 0x1b, 0x0a, 0x09, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x72, + 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, + 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x12, 0x4b, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, - 0x74, 0x52, 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x42, 0x07, 0x0a, 0x05, - 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x22, 0x72, 0x0a, 0x0b, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x42, - 0x61, 0x74, 0x63, 0x68, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x61, 0x74, 0x63, 0x68, 0x49, 0x64, 0x12, - 0x48, 0x0a, 0x07, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, - 0x52, 0x07, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x22, 0xfa, 0x06, 0x0a, 0x07, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, - 0x64, 0x12, 0x5b, 0x0a, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, - 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, - 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x46, - 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, - 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x52, 0x06, - 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x12, 0x4f, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x49, - 0x6d, 0x61, 0x67, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, - 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x5e, 0x0a, 0x0a, 0x63, 0x6c, 0x61, 0x73, 0x73, - 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x73, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x4d, + 0x65, 0x74, 0x61, 0x48, 0x00, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x88, 0x01, 0x01, 0x12, 0x4e, + 0x0a, 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, + 0x61, 0x63, 0x74, 0x52, 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x42, 0x07, + 0x0a, 0x05, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x22, 0x72, 0x0a, 0x0b, 0x41, 0x6e, 0x73, 0x77, 0x65, + 0x72, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x61, 0x74, 0x63, 0x68, 0x49, + 0x64, 0x12, 0x48, 0x0a, 0x07, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x73, 0x77, + 0x65, 0x72, 0x52, 0x07, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x22, 0xfa, 0x06, 0x0a, 0x07, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x67, 0x69, 0x6e, + 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x67, 0x69, + 0x6e, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x49, 0x64, 0x12, 0x5b, 0x0a, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, 0x0a, 0x63, 0x6c, 0x61, - 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x4f, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x41, 0x73, 0x73, 0x65, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, - 0x00, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x61, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x65, - 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, - 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, - 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, 0x0b, - 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x5b, 0x0a, 0x09, 0x74, - 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, - 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, - 0x6d, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, 0x09, 0x74, - 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x64, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x64, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x46, 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, + 0x52, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x12, 0x4f, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, + 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, + 0x48, 0x00, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x5e, 0x0a, 0x0a, 0x63, 0x6c, 0x61, + 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x01, 0x52, 0x0b, - 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x35, - 0x0a, 0x06, 0x65, 0x78, 0x74, 0x72, 0x61, 0x73, 0x18, 0xff, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x48, 0x02, 0x52, 0x06, 0x65, 0x78, 0x74, 0x72, - 0x61, 0x73, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, - 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x42, - 0x09, 0x0a, 0x07, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x73, 0x4a, 0x04, 0x08, 0x09, 0x10, 0x0a, - 0x4a, 0x04, 0x08, 0x0a, 0x10, 0x0b, 0x22, 0xcd, 0x01, 0x0a, 0x08, 0x4f, 0x6e, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x12, 0x4c, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, - 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6e, - 0x69, 0x73, 0x68, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, - 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x48, 0x00, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x88, 0x01, 0x01, 0x12, 0x4b, - 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x33, - 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x67, 0x65, 0x41, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x09, 0x0a, 0x07, 0x5f, - 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, 0xb1, 0x01, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x67, 0x65, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x49, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4d, 0x0a, 0x09, 0x6f, - 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, - 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x08, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x72, 0x0a, 0x0c, 0x43, 0x68, - 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x43, 0x0a, 0x05, 0x73, 0x74, 0x61, - 0x67, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, 0x0a, 0x63, + 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x4f, 0x0a, 0x05, 0x61, 0x73, 0x73, + 0x65, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x53, 0x74, 0x61, 0x67, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x67, 0x65, 0x2a, 0x45, - 0x0a, 0x0c, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x08, - 0x0a, 0x04, 0x4e, 0x55, 0x4c, 0x4c, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x45, 0x4e, 0x47, - 0x54, 0x48, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x53, 0x54, 0x4f, 0x50, 0x10, 0x02, 0x12, 0x09, - 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x49, 0x4c, - 0x54, 0x45, 0x52, 0x10, 0x04, 0x2a, 0xf8, 0x01, 0x0a, 0x0c, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, - 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, - 0x43, 0x54, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x52, 0x54, - 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x10, 0x01, 0x12, 0x12, 0x0a, - 0x0e, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x56, 0x49, 0x44, 0x45, 0x4f, 0x10, - 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x54, 0x45, - 0x58, 0x54, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, - 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x53, 0x10, 0x04, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x52, 0x54, - 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x45, 0x4d, 0x42, 0x45, 0x44, 0x44, 0x49, 0x4e, 0x47, 0x10, - 0x05, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x43, 0x4c, - 0x41, 0x53, 0x53, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x10, 0x06, 0x12, - 0x11, 0x0a, 0x0d, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x4d, 0x41, 0x53, 0x4b, - 0x10, 0x07, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x4c, - 0x41, 0x54, 0x45, 0x4e, 0x54, 0x10, 0x08, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x52, 0x54, 0x49, 0x46, - 0x41, 0x43, 0x54, 0x5f, 0x54, 0x45, 0x4e, 0x53, 0x4f, 0x52, 0x10, 0x09, 0x12, 0x12, 0x0a, 0x0e, - 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x44, 0x45, 0x50, 0x54, 0x48, 0x10, 0x0a, - 0x2a, 0x67, 0x0a, 0x0e, 0x4d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x41, 0x72, 0x65, 0x61, 0x49, 0x6e, - 0x69, 0x74, 0x12, 0x19, 0x0a, 0x15, 0x4d, 0x41, 0x53, 0x4b, 0x45, 0x44, 0x5f, 0x41, 0x52, 0x45, - 0x41, 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x1b, 0x0a, - 0x17, 0x4d, 0x41, 0x53, 0x4b, 0x45, 0x44, 0x5f, 0x41, 0x52, 0x45, 0x41, 0x5f, 0x49, 0x4e, 0x49, - 0x54, 0x5f, 0x52, 0x41, 0x4e, 0x44, 0x4f, 0x4d, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x4d, 0x41, - 0x53, 0x4b, 0x45, 0x44, 0x5f, 0x41, 0x52, 0x45, 0x41, 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x5f, 0x4f, - 0x52, 0x49, 0x47, 0x49, 0x4e, 0x41, 0x4c, 0x10, 0x02, 0x2a, 0x35, 0x0a, 0x0c, 0x57, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x45, 0x58, - 0x54, 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x45, 0x52, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x43, - 0x52, 0x4f, 0x53, 0x53, 0x5f, 0x41, 0x54, 0x54, 0x45, 0x4e, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x01, - 0x2a, 0x98, 0x02, 0x0a, 0x10, 0x44, 0x69, 0x66, 0x66, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x61, - 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, - 0x5f, 0x44, 0x44, 0x49, 0x4d, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x41, 0x4d, 0x50, 0x4c, - 0x45, 0x52, 0x5f, 0x44, 0x44, 0x50, 0x4d, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x41, 0x4d, - 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x45, 0x55, 0x4c, 0x45, 0x52, 0x10, 0x02, 0x12, 0x1d, - 0x0a, 0x19, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x45, 0x55, 0x4c, 0x45, - 0x52, 0x5f, 0x41, 0x4e, 0x43, 0x45, 0x53, 0x54, 0x52, 0x41, 0x4c, 0x10, 0x03, 0x12, 0x12, 0x0a, - 0x0e, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x48, 0x45, 0x55, 0x4e, 0x10, - 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x44, - 0x50, 0x4d, 0x5f, 0x32, 0x10, 0x05, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, - 0x52, 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x5f, 0x32, 0x5f, 0x41, 0x4e, 0x43, 0x45, 0x53, 0x54, - 0x52, 0x41, 0x4c, 0x10, 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, - 0x5f, 0x4b, 0x5f, 0x4c, 0x4d, 0x53, 0x10, 0x07, 0x12, 0x20, 0x0a, 0x1c, 0x53, 0x41, 0x4d, 0x50, - 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x50, 0x50, 0x5f, 0x32, 0x53, 0x5f, 0x41, - 0x4e, 0x43, 0x45, 0x53, 0x54, 0x52, 0x41, 0x4c, 0x10, 0x08, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x41, - 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x50, 0x50, 0x5f, 0x32, 0x4d, - 0x10, 0x09, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, - 0x44, 0x50, 0x4d, 0x50, 0x50, 0x5f, 0x53, 0x44, 0x45, 0x10, 0x0a, 0x2a, 0x46, 0x0a, 0x08, 0x55, - 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x0c, 0x55, 0x50, 0x53, 0x43, 0x41, - 0x4c, 0x45, 0x52, 0x5f, 0x52, 0x47, 0x42, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x50, 0x53, - 0x43, 0x41, 0x4c, 0x45, 0x52, 0x5f, 0x47, 0x46, 0x50, 0x47, 0x41, 0x4e, 0x10, 0x01, 0x12, 0x13, - 0x0a, 0x0f, 0x55, 0x50, 0x53, 0x43, 0x41, 0x4c, 0x45, 0x52, 0x5f, 0x45, 0x53, 0x52, 0x47, 0x41, - 0x4e, 0x10, 0x02, 0x2a, 0xd8, 0x01, 0x0a, 0x0e, 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, - 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x14, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, - 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, - 0x12, 0x1a, 0x0a, 0x16, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, - 0x53, 0x45, 0x54, 0x5f, 0x53, 0x49, 0x4d, 0x50, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, - 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, - 0x46, 0x41, 0x53, 0x54, 0x5f, 0x42, 0x4c, 0x55, 0x45, 0x10, 0x02, 0x12, 0x1e, 0x0a, 0x1a, 0x47, - 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x46, - 0x41, 0x53, 0x54, 0x5f, 0x47, 0x52, 0x45, 0x45, 0x4e, 0x10, 0x03, 0x12, 0x18, 0x0a, 0x14, 0x47, - 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x53, - 0x4c, 0x4f, 0x57, 0x10, 0x04, 0x12, 0x1a, 0x0a, 0x16, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, - 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x45, 0x52, 0x10, - 0x05, 0x12, 0x1b, 0x0a, 0x17, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, - 0x45, 0x53, 0x45, 0x54, 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x45, 0x53, 0x54, 0x10, 0x06, 0x2a, 0x91, - 0x01, 0x0a, 0x11, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, - 0x74, 0x75, 0x72, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x41, 0x52, - 0x43, 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, - 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x41, 0x52, 0x43, 0x48, 0x49, - 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x43, 0x4c, 0x49, 0x50, 0x5f, 0x56, 0x49, 0x54, - 0x10, 0x01, 0x12, 0x22, 0x0a, 0x1e, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x41, 0x52, 0x43, 0x48, - 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x43, 0x4c, 0x49, 0x50, 0x5f, 0x52, 0x45, - 0x53, 0x4e, 0x45, 0x54, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, - 0x41, 0x52, 0x43, 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x4c, 0x44, 0x4d, - 0x10, 0x03, 0x2a, 0xa2, 0x01, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, - 0x12, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x41, 0x53, 0x53, 0x54, 0x48, 0x52, 0x4f, - 0x55, 0x47, 0x48, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, - 0x52, 0x45, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x44, 0x55, 0x50, 0x4c, 0x49, - 0x43, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, - 0x5f, 0x52, 0x45, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x1e, 0x0a, - 0x1a, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4f, 0x42, 0x46, 0x55, 0x53, 0x43, 0x41, 0x54, - 0x45, 0x5f, 0x44, 0x55, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x45, 0x10, 0x03, 0x12, 0x14, 0x0a, - 0x10, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4f, 0x42, 0x46, 0x55, 0x53, 0x43, 0x41, 0x54, - 0x45, 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x49, - 0x53, 0x43, 0x41, 0x52, 0x44, 0x10, 0x05, 0x2a, 0x44, 0x0a, 0x0e, 0x43, 0x6c, 0x61, 0x73, 0x73, - 0x69, 0x66, 0x69, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x4c, 0x53, - 0x46, 0x52, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x53, 0x48, 0x4f, 0x54, - 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x4c, 0x53, 0x46, 0x52, 0x5f, 0x4d, 0x4f, 0x44, 0x45, - 0x5f, 0x4d, 0x55, 0x4c, 0x54, 0x49, 0x43, 0x4c, 0x41, 0x53, 0x53, 0x10, 0x01, 0x2a, 0x8c, 0x01, - 0x0a, 0x0f, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, - 0x65, 0x12, 0x16, 0x0a, 0x12, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x50, 0x4f, 0x4c, 0x41, 0x54, 0x45, - 0x5f, 0x4c, 0x49, 0x4e, 0x45, 0x41, 0x52, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x49, 0x4e, 0x54, - 0x45, 0x52, 0x50, 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x52, 0x49, 0x46, 0x45, 0x10, 0x01, 0x12, - 0x1a, 0x0a, 0x16, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x50, 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x56, - 0x41, 0x45, 0x5f, 0x4c, 0x49, 0x4e, 0x45, 0x41, 0x52, 0x10, 0x02, 0x12, 0x19, 0x0a, 0x15, 0x49, - 0x4e, 0x54, 0x45, 0x52, 0x50, 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x56, 0x41, 0x45, 0x5f, 0x53, - 0x4c, 0x45, 0x52, 0x50, 0x10, 0x03, 0x12, 0x14, 0x0a, 0x10, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x50, - 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x46, 0x49, 0x4c, 0x4d, 0x10, 0x04, 0x2a, 0x6c, 0x0a, 0x0a, - 0x42, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x42, 0x4f, - 0x52, 0x44, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x46, 0x4c, 0x45, 0x43, 0x54, 0x10, 0x00, 0x12, 0x14, - 0x0a, 0x10, 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x50, 0x4c, 0x49, 0x43, 0x41, - 0x54, 0x45, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x57, - 0x52, 0x41, 0x50, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, - 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, - 0x5f, 0x50, 0x52, 0x45, 0x46, 0x49, 0x4c, 0x4c, 0x10, 0x04, 0x2a, 0x4f, 0x0a, 0x0e, 0x43, 0x6f, - 0x6c, 0x6f, 0x72, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x13, 0x0a, 0x0f, - 0x43, 0x4f, 0x4c, 0x4f, 0x52, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x5f, 0x48, 0x53, 0x56, 0x10, - 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x4f, 0x4c, 0x4f, 0x52, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, - 0x5f, 0x4c, 0x41, 0x42, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x4f, 0x4c, 0x4f, 0x52, 0x5f, - 0x4d, 0x41, 0x54, 0x43, 0x48, 0x5f, 0x52, 0x47, 0x42, 0x10, 0x02, 0x2a, 0x3d, 0x0a, 0x0a, 0x43, - 0x61, 0x6d, 0x65, 0x72, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x41, 0x4d, - 0x45, 0x52, 0x41, 0x5f, 0x50, 0x45, 0x52, 0x53, 0x50, 0x45, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, - 0x00, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x41, 0x4d, 0x45, 0x52, 0x41, 0x5f, 0x4f, 0x52, 0x54, 0x48, - 0x4f, 0x47, 0x52, 0x41, 0x50, 0x48, 0x49, 0x43, 0x10, 0x01, 0x2a, 0x34, 0x0a, 0x0a, 0x52, 0x65, - 0x6e, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x45, 0x4e, 0x44, - 0x45, 0x52, 0x5f, 0x4d, 0x45, 0x53, 0x48, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, 0x4e, - 0x44, 0x45, 0x52, 0x5f, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x43, 0x4c, 0x4f, 0x55, 0x44, 0x10, 0x01, - 0x2a, 0x3d, 0x0a, 0x0b, 0x41, 0x73, 0x73, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x0d, 0x0a, 0x09, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x50, 0x55, 0x54, 0x10, 0x00, 0x12, 0x0d, - 0x0a, 0x09, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x47, 0x45, 0x54, 0x10, 0x01, 0x12, 0x10, 0x0a, - 0x0c, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x02, 0x2a, - 0x81, 0x01, 0x0a, 0x08, 0x41, 0x73, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x12, 0x17, 0x0a, 0x13, - 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, - 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, - 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x50, 0x55, 0x54, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x41, 0x53, - 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x10, 0x02, - 0x12, 0x1a, 0x0a, 0x16, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x4e, - 0x54, 0x45, 0x52, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x54, 0x45, 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, - 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, - 0x54, 0x10, 0x04, 0x2a, 0x57, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x67, 0x65, 0x41, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, - 0x4f, 0x4e, 0x5f, 0x50, 0x41, 0x53, 0x53, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x54, 0x41, - 0x47, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x49, 0x53, 0x43, 0x41, 0x52, - 0x44, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x41, 0x43, 0x54, - 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x54, 0x55, 0x52, 0x4e, 0x10, 0x02, 0x32, 0xff, 0x01, 0x0a, - 0x11, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x12, 0x6f, 0x0a, 0x08, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x12, 0x2f, - 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, + 0x31, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, + 0x73, 0x48, 0x00, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x61, 0x0a, 0x0b, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x3d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x22, - 0x00, 0x30, 0x01, 0x12, 0x79, 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x47, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x74, 0x65, 0x12, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, - 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, - 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x74, 0x61, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, + 0x6c, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, + 0x52, 0x0b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x5b, 0x0a, + 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x3b, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, + 0x6f, 0x72, 0x6d, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, + 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x64, 0x0a, 0x0b, 0x63, 0x6f, + 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x3d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x01, + 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x88, 0x01, 0x01, + 0x12, 0x35, 0x0a, 0x06, 0x65, 0x78, 0x74, 0x72, 0x61, 0x73, 0x18, 0xff, 0x0f, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x48, 0x02, 0x52, 0x06, 0x65, 0x78, + 0x74, 0x72, 0x61, 0x73, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, + 0x72, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x73, 0x4a, 0x04, 0x08, 0x09, + 0x10, 0x0a, 0x4a, 0x04, 0x08, 0x0a, 0x10, 0x0b, 0x22, 0xcd, 0x01, 0x0a, 0x08, 0x4f, 0x6e, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x4c, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x46, + 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x06, 0x72, 0x65, 0x61, + 0x73, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x88, 0x01, 0x01, + 0x12, 0x4b, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0e, + 0x32, 0x33, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x67, 0x65, 0x41, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x09, 0x0a, + 0x07, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, 0xb1, 0x01, 0x0a, 0x05, 0x53, 0x74, 0x61, + 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x49, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4d, 0x0a, + 0x09, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x6e, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x08, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x72, 0x0a, 0x0c, + 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x43, 0x0a, 0x05, 0x73, + 0x74, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x22, 0x00, 0x30, 0x01, 0x42, 0xe1, - 0x02, 0x0a, 0x2a, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, - 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x47, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x67, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, - 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x69, 0x6e, - 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, - 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, 0x47, 0xaa, - 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x50, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, 0x69, - 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, - 0x70, 0x69, 0x73, 0x5c, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, - 0x31, 0xe2, 0x02, 0x32, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, - 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x47, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x29, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x61, 0x69, 0x3a, 0x3a, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, - 0x69, 0x73, 0x3a, 0x3a, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, - 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x67, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x67, 0x65, + 0x2a, 0x45, 0x0a, 0x0c, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, + 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x55, 0x4c, 0x4c, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x45, + 0x4e, 0x47, 0x54, 0x48, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x53, 0x54, 0x4f, 0x50, 0x10, 0x02, + 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x46, + 0x49, 0x4c, 0x54, 0x45, 0x52, 0x10, 0x04, 0x2a, 0xf8, 0x01, 0x0a, 0x0c, 0x41, 0x72, 0x74, 0x69, + 0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x52, 0x54, 0x49, + 0x46, 0x41, 0x43, 0x54, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x41, + 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x10, 0x01, 0x12, + 0x12, 0x0a, 0x0e, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x56, 0x49, 0x44, 0x45, + 0x4f, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, + 0x54, 0x45, 0x58, 0x54, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, + 0x43, 0x54, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x53, 0x10, 0x04, 0x12, 0x16, 0x0a, 0x12, 0x41, + 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x45, 0x4d, 0x42, 0x45, 0x44, 0x44, 0x49, 0x4e, + 0x47, 0x10, 0x05, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, + 0x43, 0x4c, 0x41, 0x53, 0x53, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x10, + 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x4d, 0x41, + 0x53, 0x4b, 0x10, 0x07, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, + 0x5f, 0x4c, 0x41, 0x54, 0x45, 0x4e, 0x54, 0x10, 0x08, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x52, 0x54, + 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x54, 0x45, 0x4e, 0x53, 0x4f, 0x52, 0x10, 0x09, 0x12, 0x12, + 0x0a, 0x0e, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x44, 0x45, 0x50, 0x54, 0x48, + 0x10, 0x0a, 0x2a, 0x67, 0x0a, 0x0e, 0x4d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x41, 0x72, 0x65, 0x61, + 0x49, 0x6e, 0x69, 0x74, 0x12, 0x19, 0x0a, 0x15, 0x4d, 0x41, 0x53, 0x4b, 0x45, 0x44, 0x5f, 0x41, + 0x52, 0x45, 0x41, 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, + 0x1b, 0x0a, 0x17, 0x4d, 0x41, 0x53, 0x4b, 0x45, 0x44, 0x5f, 0x41, 0x52, 0x45, 0x41, 0x5f, 0x49, + 0x4e, 0x49, 0x54, 0x5f, 0x52, 0x41, 0x4e, 0x44, 0x4f, 0x4d, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, + 0x4d, 0x41, 0x53, 0x4b, 0x45, 0x44, 0x5f, 0x41, 0x52, 0x45, 0x41, 0x5f, 0x49, 0x4e, 0x49, 0x54, + 0x5f, 0x4f, 0x52, 0x49, 0x47, 0x49, 0x4e, 0x41, 0x4c, 0x10, 0x02, 0x2a, 0x35, 0x0a, 0x0c, 0x57, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x10, 0x0a, 0x0c, 0x54, + 0x45, 0x58, 0x54, 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x45, 0x52, 0x10, 0x00, 0x12, 0x13, 0x0a, + 0x0f, 0x43, 0x52, 0x4f, 0x53, 0x53, 0x5f, 0x41, 0x54, 0x54, 0x45, 0x4e, 0x54, 0x49, 0x4f, 0x4e, + 0x10, 0x01, 0x2a, 0x98, 0x02, 0x0a, 0x10, 0x44, 0x69, 0x66, 0x66, 0x75, 0x73, 0x69, 0x6f, 0x6e, + 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x41, 0x4d, 0x50, 0x4c, + 0x45, 0x52, 0x5f, 0x44, 0x44, 0x49, 0x4d, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x41, 0x4d, + 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x44, 0x44, 0x50, 0x4d, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x53, + 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x45, 0x55, 0x4c, 0x45, 0x52, 0x10, 0x02, + 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x45, 0x55, + 0x4c, 0x45, 0x52, 0x5f, 0x41, 0x4e, 0x43, 0x45, 0x53, 0x54, 0x52, 0x41, 0x4c, 0x10, 0x03, 0x12, + 0x12, 0x0a, 0x0e, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x48, 0x45, 0x55, + 0x4e, 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, + 0x5f, 0x44, 0x50, 0x4d, 0x5f, 0x32, 0x10, 0x05, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x41, 0x4d, 0x50, + 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x5f, 0x32, 0x5f, 0x41, 0x4e, 0x43, 0x45, + 0x53, 0x54, 0x52, 0x41, 0x4c, 0x10, 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x41, 0x4d, 0x50, 0x4c, + 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x4c, 0x4d, 0x53, 0x10, 0x07, 0x12, 0x20, 0x0a, 0x1c, 0x53, 0x41, + 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x50, 0x50, 0x5f, 0x32, 0x53, + 0x5f, 0x41, 0x4e, 0x43, 0x45, 0x53, 0x54, 0x52, 0x41, 0x4c, 0x10, 0x08, 0x12, 0x16, 0x0a, 0x12, + 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x50, 0x50, 0x5f, + 0x32, 0x4d, 0x10, 0x09, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, + 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x50, 0x50, 0x5f, 0x53, 0x44, 0x45, 0x10, 0x0a, 0x2a, 0x46, 0x0a, + 0x08, 0x55, 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x0c, 0x55, 0x50, 0x53, + 0x43, 0x41, 0x4c, 0x45, 0x52, 0x5f, 0x52, 0x47, 0x42, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x55, + 0x50, 0x53, 0x43, 0x41, 0x4c, 0x45, 0x52, 0x5f, 0x47, 0x46, 0x50, 0x47, 0x41, 0x4e, 0x10, 0x01, + 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x50, 0x53, 0x43, 0x41, 0x4c, 0x45, 0x52, 0x5f, 0x45, 0x53, 0x52, + 0x47, 0x41, 0x4e, 0x10, 0x02, 0x2a, 0xd8, 0x01, 0x0a, 0x0e, 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, + 0x63, 0x65, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x14, 0x47, 0x55, 0x49, 0x44, + 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, + 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, + 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x53, 0x49, 0x4d, 0x50, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x1d, + 0x0a, 0x19, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, + 0x54, 0x5f, 0x46, 0x41, 0x53, 0x54, 0x5f, 0x42, 0x4c, 0x55, 0x45, 0x10, 0x02, 0x12, 0x1e, 0x0a, + 0x1a, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, + 0x5f, 0x46, 0x41, 0x53, 0x54, 0x5f, 0x47, 0x52, 0x45, 0x45, 0x4e, 0x10, 0x03, 0x12, 0x18, 0x0a, + 0x14, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, + 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x10, 0x04, 0x12, 0x1a, 0x0a, 0x16, 0x47, 0x55, 0x49, 0x44, 0x41, + 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x45, + 0x52, 0x10, 0x05, 0x12, 0x1b, 0x0a, 0x17, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, + 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x45, 0x53, 0x54, 0x10, 0x06, + 0x2a, 0x91, 0x01, 0x0a, 0x11, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x63, 0x68, 0x69, 0x74, + 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, + 0x41, 0x52, 0x43, 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x4e, 0x4f, 0x4e, + 0x45, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x41, 0x52, 0x43, + 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x43, 0x4c, 0x49, 0x50, 0x5f, 0x56, + 0x49, 0x54, 0x10, 0x01, 0x12, 0x22, 0x0a, 0x1e, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x41, 0x52, + 0x43, 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x43, 0x4c, 0x49, 0x50, 0x5f, + 0x52, 0x45, 0x53, 0x4e, 0x45, 0x54, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x4d, 0x4f, 0x44, 0x45, + 0x4c, 0x5f, 0x41, 0x52, 0x43, 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x4c, + 0x44, 0x4d, 0x10, 0x03, 0x2a, 0xa2, 0x01, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x16, 0x0a, 0x12, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x41, 0x53, 0x53, 0x54, 0x48, + 0x52, 0x4f, 0x55, 0x47, 0x48, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x41, 0x43, 0x54, 0x49, 0x4f, + 0x4e, 0x5f, 0x52, 0x45, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x44, 0x55, 0x50, + 0x4c, 0x49, 0x43, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x43, 0x54, 0x49, + 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, + 0x1e, 0x0a, 0x1a, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4f, 0x42, 0x46, 0x55, 0x53, 0x43, + 0x41, 0x54, 0x45, 0x5f, 0x44, 0x55, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x45, 0x10, 0x03, 0x12, + 0x14, 0x0a, 0x10, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4f, 0x42, 0x46, 0x55, 0x53, 0x43, + 0x41, 0x54, 0x45, 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, + 0x44, 0x49, 0x53, 0x43, 0x41, 0x52, 0x44, 0x10, 0x05, 0x2a, 0x44, 0x0a, 0x0e, 0x43, 0x6c, 0x61, + 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x43, + 0x4c, 0x53, 0x46, 0x52, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x53, 0x48, + 0x4f, 0x54, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x4c, 0x53, 0x46, 0x52, 0x5f, 0x4d, 0x4f, + 0x44, 0x45, 0x5f, 0x4d, 0x55, 0x4c, 0x54, 0x49, 0x43, 0x4c, 0x41, 0x53, 0x53, 0x10, 0x01, 0x2a, + 0x8c, 0x01, 0x0a, 0x0f, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x4d, + 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x50, 0x4f, 0x4c, 0x41, + 0x54, 0x45, 0x5f, 0x4c, 0x49, 0x4e, 0x45, 0x41, 0x52, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x49, + 0x4e, 0x54, 0x45, 0x52, 0x50, 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x52, 0x49, 0x46, 0x45, 0x10, + 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x50, 0x4f, 0x4c, 0x41, 0x54, 0x45, + 0x5f, 0x56, 0x41, 0x45, 0x5f, 0x4c, 0x49, 0x4e, 0x45, 0x41, 0x52, 0x10, 0x02, 0x12, 0x19, 0x0a, + 0x15, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x50, 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x56, 0x41, 0x45, + 0x5f, 0x53, 0x4c, 0x45, 0x52, 0x50, 0x10, 0x03, 0x12, 0x14, 0x0a, 0x10, 0x49, 0x4e, 0x54, 0x45, + 0x52, 0x50, 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x46, 0x49, 0x4c, 0x4d, 0x10, 0x04, 0x2a, 0x6c, + 0x0a, 0x0a, 0x42, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x0e, + 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x46, 0x4c, 0x45, 0x43, 0x54, 0x10, 0x00, + 0x12, 0x14, 0x0a, 0x10, 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x50, 0x4c, 0x49, + 0x43, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, + 0x5f, 0x57, 0x52, 0x41, 0x50, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x42, 0x4f, 0x52, 0x44, 0x45, + 0x52, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x42, 0x4f, 0x52, 0x44, + 0x45, 0x52, 0x5f, 0x50, 0x52, 0x45, 0x46, 0x49, 0x4c, 0x4c, 0x10, 0x04, 0x2a, 0x4f, 0x0a, 0x0e, + 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x13, + 0x0a, 0x0f, 0x43, 0x4f, 0x4c, 0x4f, 0x52, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x5f, 0x48, 0x53, + 0x56, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x4f, 0x4c, 0x4f, 0x52, 0x5f, 0x4d, 0x41, 0x54, + 0x43, 0x48, 0x5f, 0x4c, 0x41, 0x42, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x4f, 0x4c, 0x4f, + 0x52, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x5f, 0x52, 0x47, 0x42, 0x10, 0x02, 0x2a, 0x3d, 0x0a, + 0x0a, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x43, + 0x41, 0x4d, 0x45, 0x52, 0x41, 0x5f, 0x50, 0x45, 0x52, 0x53, 0x50, 0x45, 0x43, 0x54, 0x49, 0x56, + 0x45, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x41, 0x4d, 0x45, 0x52, 0x41, 0x5f, 0x4f, 0x52, + 0x54, 0x48, 0x4f, 0x47, 0x52, 0x41, 0x50, 0x48, 0x49, 0x43, 0x10, 0x01, 0x2a, 0x34, 0x0a, 0x0a, + 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x45, + 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x4d, 0x45, 0x53, 0x48, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x52, + 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x43, 0x4c, 0x4f, 0x55, 0x44, + 0x10, 0x01, 0x2a, 0x3d, 0x0a, 0x0b, 0x41, 0x73, 0x73, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x50, 0x55, 0x54, 0x10, 0x00, + 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x47, 0x45, 0x54, 0x10, 0x01, 0x12, + 0x10, 0x0a, 0x0c, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, + 0x02, 0x2a, 0x81, 0x01, 0x0a, 0x08, 0x41, 0x73, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x12, 0x17, + 0x0a, 0x13, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x55, 0x4e, 0x44, 0x45, + 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x53, 0x53, 0x45, 0x54, + 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x50, 0x55, 0x54, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, + 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, + 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, + 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x54, 0x45, 0x10, 0x03, 0x12, 0x15, + 0x0a, 0x11, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, + 0x45, 0x43, 0x54, 0x10, 0x04, 0x2a, 0x57, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x67, 0x65, 0x41, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x41, 0x43, + 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x41, 0x53, 0x53, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x53, + 0x54, 0x41, 0x47, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x49, 0x53, 0x43, + 0x41, 0x52, 0x44, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x41, + 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x54, 0x55, 0x52, 0x4e, 0x10, 0x02, 0x32, 0xff, + 0x01, 0x0a, 0x11, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x12, 0x6f, 0x0a, 0x08, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, + 0x12, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, + 0x72, 0x22, 0x00, 0x30, 0x01, 0x12, 0x79, 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x47, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x12, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x22, 0x00, 0x30, 0x01, + 0x42, 0xe1, 0x02, 0x0a, 0x2a, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, + 0x0f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x67, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, + 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, + 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, + 0x47, 0xaa, 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x47, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x26, 0x53, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x32, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x47, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x29, 0x53, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x3a, 0x3a, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x61, 0x70, 0x69, 0x73, 0x3a, 0x3a, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/gen/proto/js/stabilityai/platformapis/generation/v1/generation_pb.d.ts b/gen/proto/js/stabilityai/platformapis/generation/v1/generation_pb.d.ts index 48f2384..7f2ff60 100644 --- a/gen/proto/js/stabilityai/platformapis/generation/v1/generation_pb.d.ts +++ b/gen/proto/js/stabilityai/platformapis/generation/v1/generation_pb.d.ts @@ -5,7 +5,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Struct } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; -import type { Tensor } from "../../../../coreweave/tensors/tensors_pb.js"; +import type { Tensor } from "../../../tensors/tensors_pb.js"; /** * @generated from enum stabilityai.platformapis.generation.v1.FinishReason diff --git a/gen/proto/js/stabilityai/platformapis/generation/v1/generation_pb.js b/gen/proto/js/stabilityai/platformapis/generation/v1/generation_pb.js index 5cdc7e0..8d95e9a 100644 --- a/gen/proto/js/stabilityai/platformapis/generation/v1/generation_pb.js +++ b/gen/proto/js/stabilityai/platformapis/generation/v1/generation_pb.js @@ -4,7 +4,7 @@ // @ts-nocheck import { proto3, Struct } from "@bufbuild/protobuf"; -import { Tensor } from "../../../../coreweave/tensors/tensors_pb.js"; +import { Tensor } from "../../../tensors/tensors_pb.js"; /** * @generated from enum stabilityai.platformapis.generation.v1.FinishReason diff --git a/gen/proto/kt/com/tensors/AttributeKt.kt b/gen/proto/kt/com/tensors/AttributeKt.kt index 8c329a1..843f339 100644 --- a/gen/proto/kt/com/tensors/AttributeKt.kt +++ b/gen/proto/kt/com/tensors/AttributeKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: coreweave/tensors/tensors.proto +// source: stabilityai/tensors/tensors.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/tensors/ModuleKt.kt b/gen/proto/kt/com/tensors/ModuleKt.kt index 70d4e80..48c91b7 100644 --- a/gen/proto/kt/com/tensors/ModuleKt.kt +++ b/gen/proto/kt/com/tensors/ModuleKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: coreweave/tensors/tensors.proto +// source: stabilityai/tensors/tensors.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/tensors/TensorKt.kt b/gen/proto/kt/com/tensors/TensorKt.kt index 434616b..9852f1d 100644 --- a/gen/proto/kt/com/tensors/TensorKt.kt +++ b/gen/proto/kt/com/tensors/TensorKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: coreweave/tensors/tensors.proto +// source: stabilityai/tensors/tensors.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/tensors/TensorsProtoKt.kt b/gen/proto/kt/com/tensors/TensorsProtoKt.kt index d7a7d29..735db21 100644 --- a/gen/proto/kt/com/tensors/TensorsProtoKt.kt +++ b/gen/proto/kt/com/tensors/TensorsProtoKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: coreweave/tensors/tensors.proto +// source: stabilityai/tensors/tensors.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2.py b/gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2.py index 5333e7d..e987e75 100644 --- a/gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2.py +++ b/gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2.py @@ -12,10 +12,10 @@ from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 -from coreweave.tensors import tensors_pb2 as coreweave_dot_tensors_dot_tensors__pb2 +from stabilityai.tensors import tensors_pb2 as stabilityai_dot_tensors_dot_tensors__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n7stabilityai/platformapis/generation/v1/generation.proto\x12&stabilityai.platformapis.generation.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1f\x63oreweave/tensors/tensors.proto\"9\n\x05Token\x12\x17\n\x04text\x18\x01 \x01(\tH\x00R\x04text\x88\x01\x01\x12\x0e\n\x02id\x18\x02 \x01(\rR\x02idB\x07\n\x05_text\"\x88\x01\n\x06Tokens\x12\x45\n\x06tokens\x18\x01 \x03(\x0b\x32-.stabilityai.platformapis.generation.v1.TokenR\x06tokens\x12&\n\x0ctokenizer_id\x18\x02 \x01(\tH\x00R\x0btokenizerId\x88\x01\x01\x42\x0f\n\r_tokenizer_id\"\xd7\x04\n\x08\x41rtifact\x12\x0e\n\x02id\x18\x01 \x01(\x04R\x02id\x12H\n\x04type\x18\x02 \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.ArtifactTypeR\x04type\x12\x12\n\x04mime\x18\x03 \x01(\tR\x04mime\x12\x19\n\x05magic\x18\x04 \x01(\tH\x01R\x05magic\x88\x01\x01\x12\x18\n\x06\x62inary\x18\x05 \x01(\x0cH\x00R\x06\x62inary\x12\x14\n\x04text\x18\x06 \x01(\tH\x00R\x04text\x12H\n\x06tokens\x18\x07 \x01(\x0b\x32..stabilityai.platformapis.generation.v1.TokensH\x00R\x06tokens\x12^\n\nclassifier\x18\x0b \x01(\x0b\x32<.stabilityai.platformapis.generation.v1.ClassifierParametersH\x00R\nclassifier\x12)\n\x06tensor\x18\x0e \x01(\x0b\x32\x0f.tensors.TensorH\x00R\x06tensor\x12\x14\n\x05index\x18\x08 \x01(\rR\x05index\x12Y\n\rfinish_reason\x18\t \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.FinishReasonR\x0c\x66inishReason\x12\x12\n\x04seed\x18\n \x01(\rR\x04seed\x12\x12\n\x04uuid\x18\x0c \x01(\tR\x04uuid\x12\x12\n\x04size\x18\r \x01(\x04R\x04sizeB\x06\n\x04\x64\x61taB\x08\n\x06_magic\"\\\n\x10PromptParameters\x12\x17\n\x04init\x18\x01 \x01(\x08H\x00R\x04init\x88\x01\x01\x12\x1b\n\x06weight\x18\x02 \x01(\x02H\x01R\x06weight\x88\x01\x01\x42\x07\n\x05_initB\t\n\x07_weight\"\xb0\x02\n\x06Prompt\x12]\n\nparameters\x18\x01 \x01(\x0b\x32\x38.stabilityai.platformapis.generation.v1.PromptParametersH\x01R\nparameters\x88\x01\x01\x12\x14\n\x04text\x18\x02 \x01(\tH\x00R\x04text\x12H\n\x06tokens\x18\x03 \x01(\x0b\x32..stabilityai.platformapis.generation.v1.TokensH\x00R\x06tokens\x12N\n\x08\x61rtifact\x18\x04 \x01(\x0b\x32\x30.stabilityai.platformapis.generation.v1.ArtifactH\x00R\x08\x61rtifactB\x08\n\x06promptB\r\n\x0b_parameters\"\xb9\x03\n\x11SamplerParameters\x12\x15\n\x03\x65ta\x18\x01 \x01(\x02H\x00R\x03\x65ta\x88\x01\x01\x12*\n\x0esampling_steps\x18\x02 \x01(\x04H\x01R\rsamplingSteps\x88\x01\x01\x12,\n\x0flatent_channels\x18\x03 \x01(\x04H\x02R\x0elatentChannels\x88\x01\x01\x12\x34\n\x13\x64ownsampling_factor\x18\x04 \x01(\x04H\x03R\x12\x64ownsamplingFactor\x88\x01\x01\x12 \n\tcfg_scale\x18\x05 \x01(\x02H\x04R\x08\x63\x66gScale\x88\x01\x01\x12-\n\x10init_noise_scale\x18\x06 \x01(\x02H\x05R\x0einitNoiseScale\x88\x01\x01\x12-\n\x10step_noise_scale\x18\x07 \x01(\x02H\x06R\x0estepNoiseScale\x88\x01\x01\x42\x06\n\x04_etaB\x11\n\x0f_sampling_stepsB\x12\n\x10_latent_channelsB\x16\n\x14_downsampling_factorB\x0c\n\n_cfg_scaleB\x13\n\x11_init_noise_scaleB\x13\n\x11_step_noise_scale\"\xca\x01\n\x15\x43onditionerParameters\x12\x33\n\x13vector_adjust_prior\x18\x01 \x01(\tH\x00R\x11vectorAdjustPrior\x88\x01\x01\x12T\n\x0b\x63onditioner\x18\x02 \x01(\x0b\x32-.stabilityai.platformapis.generation.v1.ModelH\x01R\x0b\x63onditioner\x88\x01\x01\x42\x16\n\x14_vector_adjust_priorB\x0e\n\x0c_conditioner\"}\n\x12ScheduleParameters\x12\x19\n\x05start\x18\x01 \x01(\x02H\x00R\x05start\x88\x01\x01\x12\x15\n\x03\x65nd\x18\x02 \x01(\x02H\x01R\x03\x65nd\x88\x01\x01\x12\x19\n\x05value\x18\x03 \x01(\x02H\x02R\x05value\x88\x01\x01\x42\x08\n\x06_startB\x06\n\x04_endB\x08\n\x06_value\"\xea\x02\n\rStepParameter\x12\x1f\n\x0bscaled_step\x18\x01 \x01(\x02R\nscaledStep\x12X\n\x07sampler\x18\x02 \x01(\x0b\x32\x39.stabilityai.platformapis.generation.v1.SamplerParametersH\x00R\x07sampler\x88\x01\x01\x12[\n\x08schedule\x18\x03 \x01(\x0b\x32:.stabilityai.platformapis.generation.v1.ScheduleParametersH\x01R\x08schedule\x88\x01\x01\x12[\n\x08guidance\x18\x04 \x01(\x0b\x32:.stabilityai.platformapis.generation.v1.GuidanceParametersH\x02R\x08guidance\x88\x01\x01\x42\n\n\x08_samplerB\x0b\n\t_scheduleB\x0b\n\t_guidance\"\xf9\x01\n\x05Model\x12]\n\x0c\x61rchitecture\x18\x01 \x01(\x0e\x32\x39.stabilityai.platformapis.generation.v1.ModelArchitectureR\x0c\x61rchitecture\x12\x1c\n\tpublisher\x18\x02 \x01(\tR\tpublisher\x12\x18\n\x07\x64\x61taset\x18\x03 \x01(\tR\x07\x64\x61taset\x12\x18\n\x07version\x18\x04 \x01(\x02R\x07version\x12)\n\x10semantic_version\x18\x05 \x01(\tR\x0fsemanticVersion\x12\x14\n\x05\x61lias\x18\x06 \x01(\tR\x05\x61lias\"\x82\x02\n\x10\x43utoutParameters\x12R\n\x07\x63utouts\x18\x01 \x03(\x0b\x32\x38.stabilityai.platformapis.generation.v1.CutoutParametersR\x07\x63utouts\x12\x19\n\x05\x63ount\x18\x02 \x01(\rH\x00R\x05\x63ount\x88\x01\x01\x12\x17\n\x04gray\x18\x03 \x01(\x02H\x01R\x04gray\x88\x01\x01\x12\x17\n\x04\x62lur\x18\x04 \x01(\x02H\x02R\x04\x62lur\x88\x01\x01\x12\"\n\nsize_power\x18\x05 \x01(\x02H\x03R\tsizePower\x88\x01\x01\x42\x08\n\x06_countB\x07\n\x05_grayB\x07\n\x05_blurB\r\n\x0b_size_power\"N\n\x1aGuidanceScheduleParameters\x12\x1a\n\x08\x64uration\x18\x01 \x01(\x02R\x08\x64uration\x12\x14\n\x05value\x18\x02 \x01(\x02R\x05value\"\xc8\x03\n\x1aGuidanceInstanceParameters\x12\x45\n\x06models\x18\x02 \x03(\x0b\x32-.stabilityai.platformapis.generation.v1.ModelR\x06models\x12\x30\n\x11guidance_strength\x18\x03 \x01(\x02H\x00R\x10guidanceStrength\x88\x01\x01\x12^\n\x08schedule\x18\x04 \x03(\x0b\x32\x42.stabilityai.platformapis.generation.v1.GuidanceScheduleParametersR\x08schedule\x12W\n\x07\x63utouts\x18\x05 \x01(\x0b\x32\x38.stabilityai.platformapis.generation.v1.CutoutParametersH\x01R\x07\x63utouts\x88\x01\x01\x12K\n\x06prompt\x18\x06 \x01(\x0b\x32..stabilityai.platformapis.generation.v1.PromptH\x02R\x06prompt\x88\x01\x01\x42\x14\n\x12_guidance_strengthB\n\n\x08_cutoutsB\t\n\x07_prompt\"\xd7\x01\n\x12GuidanceParameters\x12_\n\x0fguidance_preset\x18\x01 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.GuidancePresetR\x0eguidancePreset\x12`\n\tinstances\x18\x02 \x03(\x0b\x32\x42.stabilityai.platformapis.generation.v1.GuidanceInstanceParametersR\tinstances\"\xc1\x01\n\rTransformType\x12X\n\tdiffusion\x18\x01 \x01(\x0e\x32\x38.stabilityai.platformapis.generation.v1.DiffusionSamplerH\x00R\tdiffusion\x12N\n\x08upscaler\x18\x02 \x01(\x0e\x32\x30.stabilityai.platformapis.generation.v1.UpscalerH\x00R\x08upscalerB\x06\n\x04type\"\x9d\x05\n\x0fImageParameters\x12\x1b\n\x06height\x18\x01 \x01(\x04H\x00R\x06height\x88\x01\x01\x12\x19\n\x05width\x18\x02 \x01(\x04H\x01R\x05width\x88\x01\x01\x12\x12\n\x04seed\x18\x03 \x03(\rR\x04seed\x12\x1d\n\x07samples\x18\x04 \x01(\x04H\x02R\x07samples\x88\x01\x01\x12\x19\n\x05steps\x18\x05 \x01(\x04H\x03R\x05steps\x88\x01\x01\x12X\n\ttransform\x18\x06 \x01(\x0b\x32\x35.stabilityai.platformapis.generation.v1.TransformTypeH\x04R\ttransform\x88\x01\x01\x12U\n\nparameters\x18\x07 \x03(\x0b\x32\x35.stabilityai.platformapis.generation.v1.StepParameterR\nparameters\x12\x65\n\x10masked_area_init\x18\x08 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.MaskedAreaInitH\x05R\x0emaskedAreaInit\x88\x01\x01\x12^\n\rweight_method\x18\t \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.WeightMethodH\x06R\x0cweightMethod\x88\x01\x01\x12\x1f\n\x08quantize\x18\n \x01(\x08H\x07R\x08quantize\x88\x01\x01\x42\t\n\x07_heightB\x08\n\x06_widthB\n\n\x08_samplesB\x08\n\x06_stepsB\x0c\n\n_transformB\x13\n\x11_masked_area_initB\x10\n\x0e_weight_methodB\x0b\n\t_quantize\"^\n\x11\x43lassifierConcept\x12\x18\n\x07\x63oncept\x18\x01 \x01(\tR\x07\x63oncept\x12!\n\tthreshold\x18\x02 \x01(\x02H\x00R\tthreshold\x88\x01\x01\x42\x0c\n\n_threshold\"\x85\x03\n\x12\x43lassifierCategory\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12U\n\x08\x63oncepts\x18\x02 \x03(\x0b\x32\x39.stabilityai.platformapis.generation.v1.ClassifierConceptR\x08\x63oncepts\x12#\n\nadjustment\x18\x03 \x01(\x02H\x00R\nadjustment\x88\x01\x01\x12K\n\x06\x61\x63tion\x18\x04 \x01(\x0e\x32..stabilityai.platformapis.generation.v1.ActionH\x01R\x06\x61\x63tion\x88\x01\x01\x12\x64\n\x0f\x63lassifier_mode\x18\x05 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.ClassifierModeH\x02R\x0e\x63lassifierMode\x88\x01\x01\x42\r\n\x0b_adjustmentB\t\n\x07_actionB\x12\n\x10_classifier_mode\"\xba\x02\n\x14\x43lassifierParameters\x12Z\n\ncategories\x18\x01 \x03(\x0b\x32:.stabilityai.platformapis.generation.v1.ClassifierCategoryR\ncategories\x12T\n\x07\x65xceeds\x18\x02 \x03(\x0b\x32:.stabilityai.platformapis.generation.v1.ClassifierCategoryR\x07\x65xceeds\x12\\\n\x0frealized_action\x18\x03 \x01(\x0e\x32..stabilityai.platformapis.generation.v1.ActionH\x00R\x0erealizedAction\x88\x01\x01\x42\x12\n\x10_realized_action\"\x8a\x01\n\x15InterpolateParameters\x12\x16\n\x06ratios\x18\x01 \x03(\x02R\x06ratios\x12P\n\x04mode\x18\x02 \x01(\x0e\x32\x37.stabilityai.platformapis.generation.v1.InterpolateModeH\x00R\x04mode\x88\x01\x01\x42\x07\n\x05_mode\"\xbb\x04\n\x14TransformColorAdjust\x12#\n\nbrightness\x18\x01 \x01(\x02H\x00R\nbrightness\x88\x01\x01\x12\x1f\n\x08\x63ontrast\x18\x02 \x01(\x02H\x01R\x08\x63ontrast\x88\x01\x01\x12\x15\n\x03hue\x18\x03 \x01(\x02H\x02R\x03hue\x88\x01\x01\x12#\n\nsaturation\x18\x04 \x01(\x02H\x03R\nsaturation\x88\x01\x01\x12!\n\tlightness\x18\x05 \x01(\x02H\x04R\tlightness\x88\x01\x01\x12V\n\x0bmatch_image\x18\x06 \x01(\x0b\x32\x30.stabilityai.platformapis.generation.v1.ArtifactH\x05R\nmatchImage\x88\x01\x01\x12Z\n\nmatch_mode\x18\x07 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.ColorMatchModeH\x06R\tmatchMode\x88\x01\x01\x12&\n\x0cnoise_amount\x18\x08 \x01(\x02H\x07R\x0bnoiseAmount\x88\x01\x01\x12\"\n\nnoise_seed\x18\t \x01(\rH\x08R\tnoiseSeed\x88\x01\x01\x42\r\n\x0b_brightnessB\x0b\n\t_contrastB\x06\n\x04_hueB\r\n\x0b_saturationB\x0c\n\n_lightnessB\x0e\n\x0c_match_imageB\r\n\x0b_match_modeB\x0f\n\r_noise_amountB\r\n\x0b_noise_seed\"\xae\x01\n\x12TransformDepthCalc\x12&\n\x0c\x62lend_weight\x18\x01 \x01(\x02H\x00R\x0b\x62lendWeight\x88\x01\x01\x12$\n\x0b\x62lur_radius\x18\x02 \x01(\rH\x01R\nblurRadius\x88\x01\x01\x12\x1d\n\x07reverse\x18\x03 \x01(\x08H\x02R\x07reverse\x88\x01\x01\x42\x0f\n\r_blend_weightB\x0e\n\x0c_blur_radiusB\n\n\x08_reverse\")\n\x0fTransformMatrix\x12\x16\n\x04\x64\x61ta\x18\x01 \x03(\x02\x42\x02\x10\x01R\x04\x64\x61ta\"\xa0\x03\n\x11TransformResample\x12S\n\x0b\x62order_mode\x18\x01 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.BorderModeR\nborderMode\x12U\n\ttransform\x18\x02 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.TransformMatrixR\ttransform\x12\x63\n\x0eprev_transform\x18\x03 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.TransformMatrixH\x00R\rprevTransform\x88\x01\x01\x12\"\n\ndepth_warp\x18\x04 \x01(\x02H\x01R\tdepthWarp\x88\x01\x01\x12$\n\x0b\x65xport_mask\x18\x05 \x01(\x08H\x02R\nexportMask\x88\x01\x01\x42\x11\n\x0f_prev_transformB\r\n\x0b_depth_warpB\x0e\n\x0c_export_mask\"\xc2\x01\n\x10\x43\x61meraParameters\x12S\n\x0b\x63\x61mera_type\x18\x01 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.CameraTypeR\ncameraType\x12\x1d\n\nnear_plane\x18\x02 \x01(\x02R\tnearPlane\x12\x1b\n\tfar_plane\x18\x03 \x01(\x02R\x08\x66\x61rPlane\x12\x15\n\x03\x66ov\x18\x04 \x01(\x02H\x00R\x03\x66ov\x88\x01\x01\x42\x06\n\x04_fov\"\xf2\x02\n\x13TransformCameraPose\x12h\n\x14world_to_view_matrix\x18\x01 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.TransformMatrixR\x11worldToViewMatrix\x12\x65\n\x11\x63\x61mera_parameters\x18\x02 \x01(\x0b\x32\x38.stabilityai.platformapis.generation.v1.CameraParametersR\x10\x63\x61meraParameters\x12\x1d\n\ndo_prefill\x18\x05 \x01(\x08R\tdoPrefill\x12S\n\x0brender_mode\x18\x08 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.RenderModeR\nrenderModeJ\x04\x08\x03\x10\x04J\x04\x08\x04\x10\x05J\x04\x08\x06\x10\x07J\x04\x08\x07\x10\x08\"\x9b\x03\n\x13TransformParameters\x12\x61\n\x0c\x63olor_adjust\x18\x02 \x01(\x0b\x32<.stabilityai.platformapis.generation.v1.TransformColorAdjustH\x00R\x0b\x63olorAdjust\x12[\n\ndepth_calc\x18\x04 \x01(\x0b\x32:.stabilityai.platformapis.generation.v1.TransformDepthCalcH\x00R\tdepthCalc\x12W\n\x08resample\x18\x05 \x01(\x0b\x32\x39.stabilityai.platformapis.generation.v1.TransformResampleH\x00R\x08resample\x12^\n\x0b\x63\x61mera_pose\x18\x06 \x01(\x0b\x32;.stabilityai.platformapis.generation.v1.TransformCameraPoseH\x00R\ncameraPoseB\x0b\n\ttransform\"\xc1\x01\n\x0f\x41ssetParameters\x12K\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32\x33.stabilityai.platformapis.generation.v1.AssetActionR\x06\x61\x63tion\x12\x1d\n\nproject_id\x18\x02 \x01(\tR\tprojectId\x12\x42\n\x03use\x18\x03 \x01(\x0e\x32\x30.stabilityai.platformapis.generation.v1.AssetUseR\x03use\"\xb4\x01\n\nAnswerMeta\x12\x1a\n\x06gpu_id\x18\x01 \x01(\tH\x00R\x05gpuId\x88\x01\x01\x12\x1a\n\x06\x63pu_id\x18\x02 \x01(\tH\x01R\x05\x63puId\x88\x01\x01\x12\x1c\n\x07node_id\x18\x03 \x01(\tH\x02R\x06nodeId\x88\x01\x01\x12 \n\tengine_id\x18\x04 \x01(\tH\x03R\x08\x65ngineId\x88\x01\x01\x42\t\n\x07_gpu_idB\t\n\x07_cpu_idB\n\n\x08_node_idB\x0c\n\n_engine_id\"\xa0\x02\n\x06\x41nswer\x12\x1b\n\tanswer_id\x18\x01 \x01(\tR\x08\x61nswerId\x12\x1d\n\nrequest_id\x18\x02 \x01(\tR\trequestId\x12\x1a\n\x08received\x18\x03 \x01(\x04R\x08received\x12\x18\n\x07\x63reated\x18\x04 \x01(\x04R\x07\x63reated\x12K\n\x04meta\x18\x06 \x01(\x0b\x32\x32.stabilityai.platformapis.generation.v1.AnswerMetaH\x00R\x04meta\x88\x01\x01\x12N\n\tartifacts\x18\x07 \x03(\x0b\x32\x30.stabilityai.platformapis.generation.v1.ArtifactR\tartifactsB\x07\n\x05_meta\"r\n\x0b\x41nswerBatch\x12\x19\n\x08\x62\x61tch_id\x18\x01 \x01(\tR\x07\x62\x61tchId\x12H\n\x07\x61nswers\x18\x02 \x03(\x0b\x32..stabilityai.platformapis.generation.v1.AnswerR\x07\x61nswers\"\xfa\x06\n\x07Request\x12\x1b\n\tengine_id\x18\x01 \x01(\tR\x08\x65ngineId\x12\x1d\n\nrequest_id\x18\x02 \x01(\tR\trequestId\x12[\n\x0erequested_type\x18\x03 \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.ArtifactTypeR\rrequestedType\x12\x46\n\x06prompt\x18\x04 \x03(\x0b\x32..stabilityai.platformapis.generation.v1.PromptR\x06prompt\x12O\n\x05image\x18\x05 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.ImageParametersH\x00R\x05image\x12^\n\nclassifier\x18\x07 \x01(\x0b\x32<.stabilityai.platformapis.generation.v1.ClassifierParametersH\x00R\nclassifier\x12O\n\x05\x61sset\x18\x08 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.AssetParametersH\x00R\x05\x61sset\x12\x61\n\x0binterpolate\x18\x0b \x01(\x0b\x32=.stabilityai.platformapis.generation.v1.InterpolateParametersH\x00R\x0binterpolate\x12[\n\ttransform\x18\x0c \x01(\x0b\x32;.stabilityai.platformapis.generation.v1.TransformParametersH\x00R\ttransform\x12\x64\n\x0b\x63onditioner\x18\x06 \x01(\x0b\x32=.stabilityai.platformapis.generation.v1.ConditionerParametersH\x01R\x0b\x63onditioner\x88\x01\x01\x12\x35\n\x06\x65xtras\x18\xff\x0f \x01(\x0b\x32\x17.google.protobuf.StructH\x02R\x06\x65xtras\x88\x01\x01\x42\x08\n\x06paramsB\x0e\n\x0c_conditionerB\t\n\x07_extrasJ\x04\x08\t\x10\nJ\x04\x08\n\x10\x0b\"\xcd\x01\n\x08OnStatus\x12L\n\x06reason\x18\x01 \x03(\x0e\x32\x34.stabilityai.platformapis.generation.v1.FinishReasonR\x06reason\x12\x1b\n\x06target\x18\x02 \x01(\tH\x00R\x06target\x88\x01\x01\x12K\n\x06\x61\x63tion\x18\x03 \x03(\x0e\x32\x33.stabilityai.platformapis.generation.v1.StageActionR\x06\x61\x63tionB\t\n\x07_target\"\xb1\x01\n\x05Stage\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12I\n\x07request\x18\x02 \x01(\x0b\x32/.stabilityai.platformapis.generation.v1.RequestR\x07request\x12M\n\ton_status\x18\x03 \x03(\x0b\x32\x30.stabilityai.platformapis.generation.v1.OnStatusR\x08onStatus\"r\n\x0c\x43hainRequest\x12\x1d\n\nrequest_id\x18\x01 \x01(\tR\trequestId\x12\x43\n\x05stage\x18\x02 \x03(\x0b\x32-.stabilityai.platformapis.generation.v1.StageR\x05stage*E\n\x0c\x46inishReason\x12\x08\n\x04NULL\x10\x00\x12\n\n\x06LENGTH\x10\x01\x12\x08\n\x04STOP\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\n\n\x06\x46ILTER\x10\x04*\xf8\x01\n\x0c\x41rtifactType\x12\x11\n\rARTIFACT_NONE\x10\x00\x12\x12\n\x0e\x41RTIFACT_IMAGE\x10\x01\x12\x12\n\x0e\x41RTIFACT_VIDEO\x10\x02\x12\x11\n\rARTIFACT_TEXT\x10\x03\x12\x13\n\x0f\x41RTIFACT_TOKENS\x10\x04\x12\x16\n\x12\x41RTIFACT_EMBEDDING\x10\x05\x12\x1c\n\x18\x41RTIFACT_CLASSIFICATIONS\x10\x06\x12\x11\n\rARTIFACT_MASK\x10\x07\x12\x13\n\x0f\x41RTIFACT_LATENT\x10\x08\x12\x13\n\x0f\x41RTIFACT_TENSOR\x10\t\x12\x12\n\x0e\x41RTIFACT_DEPTH\x10\n*g\n\x0eMaskedAreaInit\x12\x19\n\x15MASKED_AREA_INIT_ZERO\x10\x00\x12\x1b\n\x17MASKED_AREA_INIT_RANDOM\x10\x01\x12\x1d\n\x19MASKED_AREA_INIT_ORIGINAL\x10\x02*5\n\x0cWeightMethod\x12\x10\n\x0cTEXT_ENCODER\x10\x00\x12\x13\n\x0f\x43ROSS_ATTENTION\x10\x01*\x98\x02\n\x10\x44iffusionSampler\x12\x10\n\x0cSAMPLER_DDIM\x10\x00\x12\x10\n\x0cSAMPLER_DDPM\x10\x01\x12\x13\n\x0fSAMPLER_K_EULER\x10\x02\x12\x1d\n\x19SAMPLER_K_EULER_ANCESTRAL\x10\x03\x12\x12\n\x0eSAMPLER_K_HEUN\x10\x04\x12\x13\n\x0fSAMPLER_K_DPM_2\x10\x05\x12\x1d\n\x19SAMPLER_K_DPM_2_ANCESTRAL\x10\x06\x12\x11\n\rSAMPLER_K_LMS\x10\x07\x12 \n\x1cSAMPLER_K_DPMPP_2S_ANCESTRAL\x10\x08\x12\x16\n\x12SAMPLER_K_DPMPP_2M\x10\t\x12\x17\n\x13SAMPLER_K_DPMPP_SDE\x10\n*F\n\x08Upscaler\x12\x10\n\x0cUPSCALER_RGB\x10\x00\x12\x13\n\x0fUPSCALER_GFPGAN\x10\x01\x12\x13\n\x0fUPSCALER_ESRGAN\x10\x02*\xd8\x01\n\x0eGuidancePreset\x12\x18\n\x14GUIDANCE_PRESET_NONE\x10\x00\x12\x1a\n\x16GUIDANCE_PRESET_SIMPLE\x10\x01\x12\x1d\n\x19GUIDANCE_PRESET_FAST_BLUE\x10\x02\x12\x1e\n\x1aGUIDANCE_PRESET_FAST_GREEN\x10\x03\x12\x18\n\x14GUIDANCE_PRESET_SLOW\x10\x04\x12\x1a\n\x16GUIDANCE_PRESET_SLOWER\x10\x05\x12\x1b\n\x17GUIDANCE_PRESET_SLOWEST\x10\x06*\x91\x01\n\x11ModelArchitecture\x12\x1b\n\x17MODEL_ARCHITECTURE_NONE\x10\x00\x12\x1f\n\x1bMODEL_ARCHITECTURE_CLIP_VIT\x10\x01\x12\"\n\x1eMODEL_ARCHITECTURE_CLIP_RESNET\x10\x02\x12\x1a\n\x16MODEL_ARCHITECTURE_LDM\x10\x03*\xa2\x01\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_PASSTHROUGH\x10\x00\x12\x1f\n\x1b\x41\x43TION_REGENERATE_DUPLICATE\x10\x01\x12\x15\n\x11\x41\x43TION_REGENERATE\x10\x02\x12\x1e\n\x1a\x41\x43TION_OBFUSCATE_DUPLICATE\x10\x03\x12\x14\n\x10\x41\x43TION_OBFUSCATE\x10\x04\x12\x12\n\x0e\x41\x43TION_DISCARD\x10\x05*D\n\x0e\x43lassifierMode\x12\x17\n\x13\x43LSFR_MODE_ZEROSHOT\x10\x00\x12\x19\n\x15\x43LSFR_MODE_MULTICLASS\x10\x01*\x8c\x01\n\x0fInterpolateMode\x12\x16\n\x12INTERPOLATE_LINEAR\x10\x00\x12\x14\n\x10INTERPOLATE_RIFE\x10\x01\x12\x1a\n\x16INTERPOLATE_VAE_LINEAR\x10\x02\x12\x19\n\x15INTERPOLATE_VAE_SLERP\x10\x03\x12\x14\n\x10INTERPOLATE_FILM\x10\x04*l\n\nBorderMode\x12\x12\n\x0e\x42ORDER_REFLECT\x10\x00\x12\x14\n\x10\x42ORDER_REPLICATE\x10\x01\x12\x0f\n\x0b\x42ORDER_WRAP\x10\x02\x12\x0f\n\x0b\x42ORDER_ZERO\x10\x03\x12\x12\n\x0e\x42ORDER_PREFILL\x10\x04*O\n\x0e\x43olorMatchMode\x12\x13\n\x0f\x43OLOR_MATCH_HSV\x10\x00\x12\x13\n\x0f\x43OLOR_MATCH_LAB\x10\x01\x12\x13\n\x0f\x43OLOR_MATCH_RGB\x10\x02*=\n\nCameraType\x12\x16\n\x12\x43\x41MERA_PERSPECTIVE\x10\x00\x12\x17\n\x13\x43\x41MERA_ORTHOGRAPHIC\x10\x01*4\n\nRenderMode\x12\x0f\n\x0bRENDER_MESH\x10\x00\x12\x15\n\x11RENDER_POINTCLOUD\x10\x01*=\n\x0b\x41ssetAction\x12\r\n\tASSET_PUT\x10\x00\x12\r\n\tASSET_GET\x10\x01\x12\x10\n\x0c\x41SSET_DELETE\x10\x02*\x81\x01\n\x08\x41ssetUse\x12\x17\n\x13\x41SSET_USE_UNDEFINED\x10\x00\x12\x13\n\x0f\x41SSET_USE_INPUT\x10\x01\x12\x14\n\x10\x41SSET_USE_OUTPUT\x10\x02\x12\x1a\n\x16\x41SSET_USE_INTERMEDIATE\x10\x03\x12\x15\n\x11\x41SSET_USE_PROJECT\x10\x04*W\n\x0bStageAction\x12\x15\n\x11STAGE_ACTION_PASS\x10\x00\x12\x18\n\x14STAGE_ACTION_DISCARD\x10\x01\x12\x17\n\x13STAGE_ACTION_RETURN\x10\x02\x32\xff\x01\n\x11GenerationService\x12o\n\x08Generate\x12/.stabilityai.platformapis.generation.v1.Request\x1a..stabilityai.platformapis.generation.v1.Answer\"\x00\x30\x01\x12y\n\rChainGenerate\x12\x34.stabilityai.platformapis.generation.v1.ChainRequest\x1a..stabilityai.platformapis.generation.v1.Answer\"\x00\x30\x01\x42\xe1\x02\n*com.stabilityai.platformapis.generation.v1B\x0fGenerationProtoP\x01Zggithub.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/generation/v1;generationv1\xa2\x02\x03SPG\xaa\x02&Stabilityai.Platformapis.Generation.V1\xca\x02&Stabilityai\\Platformapis\\Generation\\V1\xe2\x02\x32Stabilityai\\Platformapis\\Generation\\V1\\GPBMetadata\xea\x02)Stabilityai::Platformapis::Generation::V1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n7stabilityai/platformapis/generation/v1/generation.proto\x12&stabilityai.platformapis.generation.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a!stabilityai/tensors/tensors.proto\"9\n\x05Token\x12\x17\n\x04text\x18\x01 \x01(\tH\x00R\x04text\x88\x01\x01\x12\x0e\n\x02id\x18\x02 \x01(\rR\x02idB\x07\n\x05_text\"\x88\x01\n\x06Tokens\x12\x45\n\x06tokens\x18\x01 \x03(\x0b\x32-.stabilityai.platformapis.generation.v1.TokenR\x06tokens\x12&\n\x0ctokenizer_id\x18\x02 \x01(\tH\x00R\x0btokenizerId\x88\x01\x01\x42\x0f\n\r_tokenizer_id\"\xd7\x04\n\x08\x41rtifact\x12\x0e\n\x02id\x18\x01 \x01(\x04R\x02id\x12H\n\x04type\x18\x02 \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.ArtifactTypeR\x04type\x12\x12\n\x04mime\x18\x03 \x01(\tR\x04mime\x12\x19\n\x05magic\x18\x04 \x01(\tH\x01R\x05magic\x88\x01\x01\x12\x18\n\x06\x62inary\x18\x05 \x01(\x0cH\x00R\x06\x62inary\x12\x14\n\x04text\x18\x06 \x01(\tH\x00R\x04text\x12H\n\x06tokens\x18\x07 \x01(\x0b\x32..stabilityai.platformapis.generation.v1.TokensH\x00R\x06tokens\x12^\n\nclassifier\x18\x0b \x01(\x0b\x32<.stabilityai.platformapis.generation.v1.ClassifierParametersH\x00R\nclassifier\x12)\n\x06tensor\x18\x0e \x01(\x0b\x32\x0f.tensors.TensorH\x00R\x06tensor\x12\x14\n\x05index\x18\x08 \x01(\rR\x05index\x12Y\n\rfinish_reason\x18\t \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.FinishReasonR\x0c\x66inishReason\x12\x12\n\x04seed\x18\n \x01(\rR\x04seed\x12\x12\n\x04uuid\x18\x0c \x01(\tR\x04uuid\x12\x12\n\x04size\x18\r \x01(\x04R\x04sizeB\x06\n\x04\x64\x61taB\x08\n\x06_magic\"\\\n\x10PromptParameters\x12\x17\n\x04init\x18\x01 \x01(\x08H\x00R\x04init\x88\x01\x01\x12\x1b\n\x06weight\x18\x02 \x01(\x02H\x01R\x06weight\x88\x01\x01\x42\x07\n\x05_initB\t\n\x07_weight\"\xb0\x02\n\x06Prompt\x12]\n\nparameters\x18\x01 \x01(\x0b\x32\x38.stabilityai.platformapis.generation.v1.PromptParametersH\x01R\nparameters\x88\x01\x01\x12\x14\n\x04text\x18\x02 \x01(\tH\x00R\x04text\x12H\n\x06tokens\x18\x03 \x01(\x0b\x32..stabilityai.platformapis.generation.v1.TokensH\x00R\x06tokens\x12N\n\x08\x61rtifact\x18\x04 \x01(\x0b\x32\x30.stabilityai.platformapis.generation.v1.ArtifactH\x00R\x08\x61rtifactB\x08\n\x06promptB\r\n\x0b_parameters\"\xb9\x03\n\x11SamplerParameters\x12\x15\n\x03\x65ta\x18\x01 \x01(\x02H\x00R\x03\x65ta\x88\x01\x01\x12*\n\x0esampling_steps\x18\x02 \x01(\x04H\x01R\rsamplingSteps\x88\x01\x01\x12,\n\x0flatent_channels\x18\x03 \x01(\x04H\x02R\x0elatentChannels\x88\x01\x01\x12\x34\n\x13\x64ownsampling_factor\x18\x04 \x01(\x04H\x03R\x12\x64ownsamplingFactor\x88\x01\x01\x12 \n\tcfg_scale\x18\x05 \x01(\x02H\x04R\x08\x63\x66gScale\x88\x01\x01\x12-\n\x10init_noise_scale\x18\x06 \x01(\x02H\x05R\x0einitNoiseScale\x88\x01\x01\x12-\n\x10step_noise_scale\x18\x07 \x01(\x02H\x06R\x0estepNoiseScale\x88\x01\x01\x42\x06\n\x04_etaB\x11\n\x0f_sampling_stepsB\x12\n\x10_latent_channelsB\x16\n\x14_downsampling_factorB\x0c\n\n_cfg_scaleB\x13\n\x11_init_noise_scaleB\x13\n\x11_step_noise_scale\"\xca\x01\n\x15\x43onditionerParameters\x12\x33\n\x13vector_adjust_prior\x18\x01 \x01(\tH\x00R\x11vectorAdjustPrior\x88\x01\x01\x12T\n\x0b\x63onditioner\x18\x02 \x01(\x0b\x32-.stabilityai.platformapis.generation.v1.ModelH\x01R\x0b\x63onditioner\x88\x01\x01\x42\x16\n\x14_vector_adjust_priorB\x0e\n\x0c_conditioner\"}\n\x12ScheduleParameters\x12\x19\n\x05start\x18\x01 \x01(\x02H\x00R\x05start\x88\x01\x01\x12\x15\n\x03\x65nd\x18\x02 \x01(\x02H\x01R\x03\x65nd\x88\x01\x01\x12\x19\n\x05value\x18\x03 \x01(\x02H\x02R\x05value\x88\x01\x01\x42\x08\n\x06_startB\x06\n\x04_endB\x08\n\x06_value\"\xea\x02\n\rStepParameter\x12\x1f\n\x0bscaled_step\x18\x01 \x01(\x02R\nscaledStep\x12X\n\x07sampler\x18\x02 \x01(\x0b\x32\x39.stabilityai.platformapis.generation.v1.SamplerParametersH\x00R\x07sampler\x88\x01\x01\x12[\n\x08schedule\x18\x03 \x01(\x0b\x32:.stabilityai.platformapis.generation.v1.ScheduleParametersH\x01R\x08schedule\x88\x01\x01\x12[\n\x08guidance\x18\x04 \x01(\x0b\x32:.stabilityai.platformapis.generation.v1.GuidanceParametersH\x02R\x08guidance\x88\x01\x01\x42\n\n\x08_samplerB\x0b\n\t_scheduleB\x0b\n\t_guidance\"\xf9\x01\n\x05Model\x12]\n\x0c\x61rchitecture\x18\x01 \x01(\x0e\x32\x39.stabilityai.platformapis.generation.v1.ModelArchitectureR\x0c\x61rchitecture\x12\x1c\n\tpublisher\x18\x02 \x01(\tR\tpublisher\x12\x18\n\x07\x64\x61taset\x18\x03 \x01(\tR\x07\x64\x61taset\x12\x18\n\x07version\x18\x04 \x01(\x02R\x07version\x12)\n\x10semantic_version\x18\x05 \x01(\tR\x0fsemanticVersion\x12\x14\n\x05\x61lias\x18\x06 \x01(\tR\x05\x61lias\"\x82\x02\n\x10\x43utoutParameters\x12R\n\x07\x63utouts\x18\x01 \x03(\x0b\x32\x38.stabilityai.platformapis.generation.v1.CutoutParametersR\x07\x63utouts\x12\x19\n\x05\x63ount\x18\x02 \x01(\rH\x00R\x05\x63ount\x88\x01\x01\x12\x17\n\x04gray\x18\x03 \x01(\x02H\x01R\x04gray\x88\x01\x01\x12\x17\n\x04\x62lur\x18\x04 \x01(\x02H\x02R\x04\x62lur\x88\x01\x01\x12\"\n\nsize_power\x18\x05 \x01(\x02H\x03R\tsizePower\x88\x01\x01\x42\x08\n\x06_countB\x07\n\x05_grayB\x07\n\x05_blurB\r\n\x0b_size_power\"N\n\x1aGuidanceScheduleParameters\x12\x1a\n\x08\x64uration\x18\x01 \x01(\x02R\x08\x64uration\x12\x14\n\x05value\x18\x02 \x01(\x02R\x05value\"\xc8\x03\n\x1aGuidanceInstanceParameters\x12\x45\n\x06models\x18\x02 \x03(\x0b\x32-.stabilityai.platformapis.generation.v1.ModelR\x06models\x12\x30\n\x11guidance_strength\x18\x03 \x01(\x02H\x00R\x10guidanceStrength\x88\x01\x01\x12^\n\x08schedule\x18\x04 \x03(\x0b\x32\x42.stabilityai.platformapis.generation.v1.GuidanceScheduleParametersR\x08schedule\x12W\n\x07\x63utouts\x18\x05 \x01(\x0b\x32\x38.stabilityai.platformapis.generation.v1.CutoutParametersH\x01R\x07\x63utouts\x88\x01\x01\x12K\n\x06prompt\x18\x06 \x01(\x0b\x32..stabilityai.platformapis.generation.v1.PromptH\x02R\x06prompt\x88\x01\x01\x42\x14\n\x12_guidance_strengthB\n\n\x08_cutoutsB\t\n\x07_prompt\"\xd7\x01\n\x12GuidanceParameters\x12_\n\x0fguidance_preset\x18\x01 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.GuidancePresetR\x0eguidancePreset\x12`\n\tinstances\x18\x02 \x03(\x0b\x32\x42.stabilityai.platformapis.generation.v1.GuidanceInstanceParametersR\tinstances\"\xc1\x01\n\rTransformType\x12X\n\tdiffusion\x18\x01 \x01(\x0e\x32\x38.stabilityai.platformapis.generation.v1.DiffusionSamplerH\x00R\tdiffusion\x12N\n\x08upscaler\x18\x02 \x01(\x0e\x32\x30.stabilityai.platformapis.generation.v1.UpscalerH\x00R\x08upscalerB\x06\n\x04type\"\x9d\x05\n\x0fImageParameters\x12\x1b\n\x06height\x18\x01 \x01(\x04H\x00R\x06height\x88\x01\x01\x12\x19\n\x05width\x18\x02 \x01(\x04H\x01R\x05width\x88\x01\x01\x12\x12\n\x04seed\x18\x03 \x03(\rR\x04seed\x12\x1d\n\x07samples\x18\x04 \x01(\x04H\x02R\x07samples\x88\x01\x01\x12\x19\n\x05steps\x18\x05 \x01(\x04H\x03R\x05steps\x88\x01\x01\x12X\n\ttransform\x18\x06 \x01(\x0b\x32\x35.stabilityai.platformapis.generation.v1.TransformTypeH\x04R\ttransform\x88\x01\x01\x12U\n\nparameters\x18\x07 \x03(\x0b\x32\x35.stabilityai.platformapis.generation.v1.StepParameterR\nparameters\x12\x65\n\x10masked_area_init\x18\x08 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.MaskedAreaInitH\x05R\x0emaskedAreaInit\x88\x01\x01\x12^\n\rweight_method\x18\t \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.WeightMethodH\x06R\x0cweightMethod\x88\x01\x01\x12\x1f\n\x08quantize\x18\n \x01(\x08H\x07R\x08quantize\x88\x01\x01\x42\t\n\x07_heightB\x08\n\x06_widthB\n\n\x08_samplesB\x08\n\x06_stepsB\x0c\n\n_transformB\x13\n\x11_masked_area_initB\x10\n\x0e_weight_methodB\x0b\n\t_quantize\"^\n\x11\x43lassifierConcept\x12\x18\n\x07\x63oncept\x18\x01 \x01(\tR\x07\x63oncept\x12!\n\tthreshold\x18\x02 \x01(\x02H\x00R\tthreshold\x88\x01\x01\x42\x0c\n\n_threshold\"\x85\x03\n\x12\x43lassifierCategory\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12U\n\x08\x63oncepts\x18\x02 \x03(\x0b\x32\x39.stabilityai.platformapis.generation.v1.ClassifierConceptR\x08\x63oncepts\x12#\n\nadjustment\x18\x03 \x01(\x02H\x00R\nadjustment\x88\x01\x01\x12K\n\x06\x61\x63tion\x18\x04 \x01(\x0e\x32..stabilityai.platformapis.generation.v1.ActionH\x01R\x06\x61\x63tion\x88\x01\x01\x12\x64\n\x0f\x63lassifier_mode\x18\x05 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.ClassifierModeH\x02R\x0e\x63lassifierMode\x88\x01\x01\x42\r\n\x0b_adjustmentB\t\n\x07_actionB\x12\n\x10_classifier_mode\"\xba\x02\n\x14\x43lassifierParameters\x12Z\n\ncategories\x18\x01 \x03(\x0b\x32:.stabilityai.platformapis.generation.v1.ClassifierCategoryR\ncategories\x12T\n\x07\x65xceeds\x18\x02 \x03(\x0b\x32:.stabilityai.platformapis.generation.v1.ClassifierCategoryR\x07\x65xceeds\x12\\\n\x0frealized_action\x18\x03 \x01(\x0e\x32..stabilityai.platformapis.generation.v1.ActionH\x00R\x0erealizedAction\x88\x01\x01\x42\x12\n\x10_realized_action\"\x8a\x01\n\x15InterpolateParameters\x12\x16\n\x06ratios\x18\x01 \x03(\x02R\x06ratios\x12P\n\x04mode\x18\x02 \x01(\x0e\x32\x37.stabilityai.platformapis.generation.v1.InterpolateModeH\x00R\x04mode\x88\x01\x01\x42\x07\n\x05_mode\"\xbb\x04\n\x14TransformColorAdjust\x12#\n\nbrightness\x18\x01 \x01(\x02H\x00R\nbrightness\x88\x01\x01\x12\x1f\n\x08\x63ontrast\x18\x02 \x01(\x02H\x01R\x08\x63ontrast\x88\x01\x01\x12\x15\n\x03hue\x18\x03 \x01(\x02H\x02R\x03hue\x88\x01\x01\x12#\n\nsaturation\x18\x04 \x01(\x02H\x03R\nsaturation\x88\x01\x01\x12!\n\tlightness\x18\x05 \x01(\x02H\x04R\tlightness\x88\x01\x01\x12V\n\x0bmatch_image\x18\x06 \x01(\x0b\x32\x30.stabilityai.platformapis.generation.v1.ArtifactH\x05R\nmatchImage\x88\x01\x01\x12Z\n\nmatch_mode\x18\x07 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.ColorMatchModeH\x06R\tmatchMode\x88\x01\x01\x12&\n\x0cnoise_amount\x18\x08 \x01(\x02H\x07R\x0bnoiseAmount\x88\x01\x01\x12\"\n\nnoise_seed\x18\t \x01(\rH\x08R\tnoiseSeed\x88\x01\x01\x42\r\n\x0b_brightnessB\x0b\n\t_contrastB\x06\n\x04_hueB\r\n\x0b_saturationB\x0c\n\n_lightnessB\x0e\n\x0c_match_imageB\r\n\x0b_match_modeB\x0f\n\r_noise_amountB\r\n\x0b_noise_seed\"\xae\x01\n\x12TransformDepthCalc\x12&\n\x0c\x62lend_weight\x18\x01 \x01(\x02H\x00R\x0b\x62lendWeight\x88\x01\x01\x12$\n\x0b\x62lur_radius\x18\x02 \x01(\rH\x01R\nblurRadius\x88\x01\x01\x12\x1d\n\x07reverse\x18\x03 \x01(\x08H\x02R\x07reverse\x88\x01\x01\x42\x0f\n\r_blend_weightB\x0e\n\x0c_blur_radiusB\n\n\x08_reverse\")\n\x0fTransformMatrix\x12\x16\n\x04\x64\x61ta\x18\x01 \x03(\x02\x42\x02\x10\x01R\x04\x64\x61ta\"\xa0\x03\n\x11TransformResample\x12S\n\x0b\x62order_mode\x18\x01 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.BorderModeR\nborderMode\x12U\n\ttransform\x18\x02 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.TransformMatrixR\ttransform\x12\x63\n\x0eprev_transform\x18\x03 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.TransformMatrixH\x00R\rprevTransform\x88\x01\x01\x12\"\n\ndepth_warp\x18\x04 \x01(\x02H\x01R\tdepthWarp\x88\x01\x01\x12$\n\x0b\x65xport_mask\x18\x05 \x01(\x08H\x02R\nexportMask\x88\x01\x01\x42\x11\n\x0f_prev_transformB\r\n\x0b_depth_warpB\x0e\n\x0c_export_mask\"\xc2\x01\n\x10\x43\x61meraParameters\x12S\n\x0b\x63\x61mera_type\x18\x01 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.CameraTypeR\ncameraType\x12\x1d\n\nnear_plane\x18\x02 \x01(\x02R\tnearPlane\x12\x1b\n\tfar_plane\x18\x03 \x01(\x02R\x08\x66\x61rPlane\x12\x15\n\x03\x66ov\x18\x04 \x01(\x02H\x00R\x03\x66ov\x88\x01\x01\x42\x06\n\x04_fov\"\xf2\x02\n\x13TransformCameraPose\x12h\n\x14world_to_view_matrix\x18\x01 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.TransformMatrixR\x11worldToViewMatrix\x12\x65\n\x11\x63\x61mera_parameters\x18\x02 \x01(\x0b\x32\x38.stabilityai.platformapis.generation.v1.CameraParametersR\x10\x63\x61meraParameters\x12\x1d\n\ndo_prefill\x18\x05 \x01(\x08R\tdoPrefill\x12S\n\x0brender_mode\x18\x08 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.RenderModeR\nrenderModeJ\x04\x08\x03\x10\x04J\x04\x08\x04\x10\x05J\x04\x08\x06\x10\x07J\x04\x08\x07\x10\x08\"\x9b\x03\n\x13TransformParameters\x12\x61\n\x0c\x63olor_adjust\x18\x02 \x01(\x0b\x32<.stabilityai.platformapis.generation.v1.TransformColorAdjustH\x00R\x0b\x63olorAdjust\x12[\n\ndepth_calc\x18\x04 \x01(\x0b\x32:.stabilityai.platformapis.generation.v1.TransformDepthCalcH\x00R\tdepthCalc\x12W\n\x08resample\x18\x05 \x01(\x0b\x32\x39.stabilityai.platformapis.generation.v1.TransformResampleH\x00R\x08resample\x12^\n\x0b\x63\x61mera_pose\x18\x06 \x01(\x0b\x32;.stabilityai.platformapis.generation.v1.TransformCameraPoseH\x00R\ncameraPoseB\x0b\n\ttransform\"\xc1\x01\n\x0f\x41ssetParameters\x12K\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32\x33.stabilityai.platformapis.generation.v1.AssetActionR\x06\x61\x63tion\x12\x1d\n\nproject_id\x18\x02 \x01(\tR\tprojectId\x12\x42\n\x03use\x18\x03 \x01(\x0e\x32\x30.stabilityai.platformapis.generation.v1.AssetUseR\x03use\"\xb4\x01\n\nAnswerMeta\x12\x1a\n\x06gpu_id\x18\x01 \x01(\tH\x00R\x05gpuId\x88\x01\x01\x12\x1a\n\x06\x63pu_id\x18\x02 \x01(\tH\x01R\x05\x63puId\x88\x01\x01\x12\x1c\n\x07node_id\x18\x03 \x01(\tH\x02R\x06nodeId\x88\x01\x01\x12 \n\tengine_id\x18\x04 \x01(\tH\x03R\x08\x65ngineId\x88\x01\x01\x42\t\n\x07_gpu_idB\t\n\x07_cpu_idB\n\n\x08_node_idB\x0c\n\n_engine_id\"\xa0\x02\n\x06\x41nswer\x12\x1b\n\tanswer_id\x18\x01 \x01(\tR\x08\x61nswerId\x12\x1d\n\nrequest_id\x18\x02 \x01(\tR\trequestId\x12\x1a\n\x08received\x18\x03 \x01(\x04R\x08received\x12\x18\n\x07\x63reated\x18\x04 \x01(\x04R\x07\x63reated\x12K\n\x04meta\x18\x06 \x01(\x0b\x32\x32.stabilityai.platformapis.generation.v1.AnswerMetaH\x00R\x04meta\x88\x01\x01\x12N\n\tartifacts\x18\x07 \x03(\x0b\x32\x30.stabilityai.platformapis.generation.v1.ArtifactR\tartifactsB\x07\n\x05_meta\"r\n\x0b\x41nswerBatch\x12\x19\n\x08\x62\x61tch_id\x18\x01 \x01(\tR\x07\x62\x61tchId\x12H\n\x07\x61nswers\x18\x02 \x03(\x0b\x32..stabilityai.platformapis.generation.v1.AnswerR\x07\x61nswers\"\xfa\x06\n\x07Request\x12\x1b\n\tengine_id\x18\x01 \x01(\tR\x08\x65ngineId\x12\x1d\n\nrequest_id\x18\x02 \x01(\tR\trequestId\x12[\n\x0erequested_type\x18\x03 \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.ArtifactTypeR\rrequestedType\x12\x46\n\x06prompt\x18\x04 \x03(\x0b\x32..stabilityai.platformapis.generation.v1.PromptR\x06prompt\x12O\n\x05image\x18\x05 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.ImageParametersH\x00R\x05image\x12^\n\nclassifier\x18\x07 \x01(\x0b\x32<.stabilityai.platformapis.generation.v1.ClassifierParametersH\x00R\nclassifier\x12O\n\x05\x61sset\x18\x08 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.AssetParametersH\x00R\x05\x61sset\x12\x61\n\x0binterpolate\x18\x0b \x01(\x0b\x32=.stabilityai.platformapis.generation.v1.InterpolateParametersH\x00R\x0binterpolate\x12[\n\ttransform\x18\x0c \x01(\x0b\x32;.stabilityai.platformapis.generation.v1.TransformParametersH\x00R\ttransform\x12\x64\n\x0b\x63onditioner\x18\x06 \x01(\x0b\x32=.stabilityai.platformapis.generation.v1.ConditionerParametersH\x01R\x0b\x63onditioner\x88\x01\x01\x12\x35\n\x06\x65xtras\x18\xff\x0f \x01(\x0b\x32\x17.google.protobuf.StructH\x02R\x06\x65xtras\x88\x01\x01\x42\x08\n\x06paramsB\x0e\n\x0c_conditionerB\t\n\x07_extrasJ\x04\x08\t\x10\nJ\x04\x08\n\x10\x0b\"\xcd\x01\n\x08OnStatus\x12L\n\x06reason\x18\x01 \x03(\x0e\x32\x34.stabilityai.platformapis.generation.v1.FinishReasonR\x06reason\x12\x1b\n\x06target\x18\x02 \x01(\tH\x00R\x06target\x88\x01\x01\x12K\n\x06\x61\x63tion\x18\x03 \x03(\x0e\x32\x33.stabilityai.platformapis.generation.v1.StageActionR\x06\x61\x63tionB\t\n\x07_target\"\xb1\x01\n\x05Stage\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12I\n\x07request\x18\x02 \x01(\x0b\x32/.stabilityai.platformapis.generation.v1.RequestR\x07request\x12M\n\ton_status\x18\x03 \x03(\x0b\x32\x30.stabilityai.platformapis.generation.v1.OnStatusR\x08onStatus\"r\n\x0c\x43hainRequest\x12\x1d\n\nrequest_id\x18\x01 \x01(\tR\trequestId\x12\x43\n\x05stage\x18\x02 \x03(\x0b\x32-.stabilityai.platformapis.generation.v1.StageR\x05stage*E\n\x0c\x46inishReason\x12\x08\n\x04NULL\x10\x00\x12\n\n\x06LENGTH\x10\x01\x12\x08\n\x04STOP\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\n\n\x06\x46ILTER\x10\x04*\xf8\x01\n\x0c\x41rtifactType\x12\x11\n\rARTIFACT_NONE\x10\x00\x12\x12\n\x0e\x41RTIFACT_IMAGE\x10\x01\x12\x12\n\x0e\x41RTIFACT_VIDEO\x10\x02\x12\x11\n\rARTIFACT_TEXT\x10\x03\x12\x13\n\x0f\x41RTIFACT_TOKENS\x10\x04\x12\x16\n\x12\x41RTIFACT_EMBEDDING\x10\x05\x12\x1c\n\x18\x41RTIFACT_CLASSIFICATIONS\x10\x06\x12\x11\n\rARTIFACT_MASK\x10\x07\x12\x13\n\x0f\x41RTIFACT_LATENT\x10\x08\x12\x13\n\x0f\x41RTIFACT_TENSOR\x10\t\x12\x12\n\x0e\x41RTIFACT_DEPTH\x10\n*g\n\x0eMaskedAreaInit\x12\x19\n\x15MASKED_AREA_INIT_ZERO\x10\x00\x12\x1b\n\x17MASKED_AREA_INIT_RANDOM\x10\x01\x12\x1d\n\x19MASKED_AREA_INIT_ORIGINAL\x10\x02*5\n\x0cWeightMethod\x12\x10\n\x0cTEXT_ENCODER\x10\x00\x12\x13\n\x0f\x43ROSS_ATTENTION\x10\x01*\x98\x02\n\x10\x44iffusionSampler\x12\x10\n\x0cSAMPLER_DDIM\x10\x00\x12\x10\n\x0cSAMPLER_DDPM\x10\x01\x12\x13\n\x0fSAMPLER_K_EULER\x10\x02\x12\x1d\n\x19SAMPLER_K_EULER_ANCESTRAL\x10\x03\x12\x12\n\x0eSAMPLER_K_HEUN\x10\x04\x12\x13\n\x0fSAMPLER_K_DPM_2\x10\x05\x12\x1d\n\x19SAMPLER_K_DPM_2_ANCESTRAL\x10\x06\x12\x11\n\rSAMPLER_K_LMS\x10\x07\x12 \n\x1cSAMPLER_K_DPMPP_2S_ANCESTRAL\x10\x08\x12\x16\n\x12SAMPLER_K_DPMPP_2M\x10\t\x12\x17\n\x13SAMPLER_K_DPMPP_SDE\x10\n*F\n\x08Upscaler\x12\x10\n\x0cUPSCALER_RGB\x10\x00\x12\x13\n\x0fUPSCALER_GFPGAN\x10\x01\x12\x13\n\x0fUPSCALER_ESRGAN\x10\x02*\xd8\x01\n\x0eGuidancePreset\x12\x18\n\x14GUIDANCE_PRESET_NONE\x10\x00\x12\x1a\n\x16GUIDANCE_PRESET_SIMPLE\x10\x01\x12\x1d\n\x19GUIDANCE_PRESET_FAST_BLUE\x10\x02\x12\x1e\n\x1aGUIDANCE_PRESET_FAST_GREEN\x10\x03\x12\x18\n\x14GUIDANCE_PRESET_SLOW\x10\x04\x12\x1a\n\x16GUIDANCE_PRESET_SLOWER\x10\x05\x12\x1b\n\x17GUIDANCE_PRESET_SLOWEST\x10\x06*\x91\x01\n\x11ModelArchitecture\x12\x1b\n\x17MODEL_ARCHITECTURE_NONE\x10\x00\x12\x1f\n\x1bMODEL_ARCHITECTURE_CLIP_VIT\x10\x01\x12\"\n\x1eMODEL_ARCHITECTURE_CLIP_RESNET\x10\x02\x12\x1a\n\x16MODEL_ARCHITECTURE_LDM\x10\x03*\xa2\x01\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_PASSTHROUGH\x10\x00\x12\x1f\n\x1b\x41\x43TION_REGENERATE_DUPLICATE\x10\x01\x12\x15\n\x11\x41\x43TION_REGENERATE\x10\x02\x12\x1e\n\x1a\x41\x43TION_OBFUSCATE_DUPLICATE\x10\x03\x12\x14\n\x10\x41\x43TION_OBFUSCATE\x10\x04\x12\x12\n\x0e\x41\x43TION_DISCARD\x10\x05*D\n\x0e\x43lassifierMode\x12\x17\n\x13\x43LSFR_MODE_ZEROSHOT\x10\x00\x12\x19\n\x15\x43LSFR_MODE_MULTICLASS\x10\x01*\x8c\x01\n\x0fInterpolateMode\x12\x16\n\x12INTERPOLATE_LINEAR\x10\x00\x12\x14\n\x10INTERPOLATE_RIFE\x10\x01\x12\x1a\n\x16INTERPOLATE_VAE_LINEAR\x10\x02\x12\x19\n\x15INTERPOLATE_VAE_SLERP\x10\x03\x12\x14\n\x10INTERPOLATE_FILM\x10\x04*l\n\nBorderMode\x12\x12\n\x0e\x42ORDER_REFLECT\x10\x00\x12\x14\n\x10\x42ORDER_REPLICATE\x10\x01\x12\x0f\n\x0b\x42ORDER_WRAP\x10\x02\x12\x0f\n\x0b\x42ORDER_ZERO\x10\x03\x12\x12\n\x0e\x42ORDER_PREFILL\x10\x04*O\n\x0e\x43olorMatchMode\x12\x13\n\x0f\x43OLOR_MATCH_HSV\x10\x00\x12\x13\n\x0f\x43OLOR_MATCH_LAB\x10\x01\x12\x13\n\x0f\x43OLOR_MATCH_RGB\x10\x02*=\n\nCameraType\x12\x16\n\x12\x43\x41MERA_PERSPECTIVE\x10\x00\x12\x17\n\x13\x43\x41MERA_ORTHOGRAPHIC\x10\x01*4\n\nRenderMode\x12\x0f\n\x0bRENDER_MESH\x10\x00\x12\x15\n\x11RENDER_POINTCLOUD\x10\x01*=\n\x0b\x41ssetAction\x12\r\n\tASSET_PUT\x10\x00\x12\r\n\tASSET_GET\x10\x01\x12\x10\n\x0c\x41SSET_DELETE\x10\x02*\x81\x01\n\x08\x41ssetUse\x12\x17\n\x13\x41SSET_USE_UNDEFINED\x10\x00\x12\x13\n\x0f\x41SSET_USE_INPUT\x10\x01\x12\x14\n\x10\x41SSET_USE_OUTPUT\x10\x02\x12\x1a\n\x16\x41SSET_USE_INTERMEDIATE\x10\x03\x12\x15\n\x11\x41SSET_USE_PROJECT\x10\x04*W\n\x0bStageAction\x12\x15\n\x11STAGE_ACTION_PASS\x10\x00\x12\x18\n\x14STAGE_ACTION_DISCARD\x10\x01\x12\x17\n\x13STAGE_ACTION_RETURN\x10\x02\x32\xff\x01\n\x11GenerationService\x12o\n\x08Generate\x12/.stabilityai.platformapis.generation.v1.Request\x1a..stabilityai.platformapis.generation.v1.Answer\"\x00\x30\x01\x12y\n\rChainGenerate\x12\x34.stabilityai.platformapis.generation.v1.ChainRequest\x1a..stabilityai.platformapis.generation.v1.Answer\"\x00\x30\x01\x42\xe1\x02\n*com.stabilityai.platformapis.generation.v1B\x0fGenerationProtoP\x01Zggithub.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/generation/v1;generationv1\xa2\x02\x03SPG\xaa\x02&Stabilityai.Platformapis.Generation.V1\xca\x02&Stabilityai\\Platformapis\\Generation\\V1\xe2\x02\x32Stabilityai\\Platformapis\\Generation\\V1\\GPBMetadata\xea\x02)Stabilityai::Platformapis::Generation::V1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -26,112 +26,112 @@ DESCRIPTOR._serialized_options = b'\n*com.stabilityai.platformapis.generation.v1B\017GenerationProtoP\001Zggithub.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/generation/v1;generationv1\242\002\003SPG\252\002&Stabilityai.Platformapis.Generation.V1\312\002&Stabilityai\\Platformapis\\Generation\\V1\342\0022Stabilityai\\Platformapis\\Generation\\V1\\GPBMetadata\352\002)Stabilityai::Platformapis::Generation::V1' _TRANSFORMMATRIX.fields_by_name['data']._options = None _TRANSFORMMATRIX.fields_by_name['data']._serialized_options = b'\020\001' - _globals['_FINISHREASON']._serialized_start=9968 - _globals['_FINISHREASON']._serialized_end=10037 - _globals['_ARTIFACTTYPE']._serialized_start=10040 - _globals['_ARTIFACTTYPE']._serialized_end=10288 - _globals['_MASKEDAREAINIT']._serialized_start=10290 - _globals['_MASKEDAREAINIT']._serialized_end=10393 - _globals['_WEIGHTMETHOD']._serialized_start=10395 - _globals['_WEIGHTMETHOD']._serialized_end=10448 - _globals['_DIFFUSIONSAMPLER']._serialized_start=10451 - _globals['_DIFFUSIONSAMPLER']._serialized_end=10731 - _globals['_UPSCALER']._serialized_start=10733 - _globals['_UPSCALER']._serialized_end=10803 - _globals['_GUIDANCEPRESET']._serialized_start=10806 - _globals['_GUIDANCEPRESET']._serialized_end=11022 - _globals['_MODELARCHITECTURE']._serialized_start=11025 - _globals['_MODELARCHITECTURE']._serialized_end=11170 - _globals['_ACTION']._serialized_start=11173 - _globals['_ACTION']._serialized_end=11335 - _globals['_CLASSIFIERMODE']._serialized_start=11337 - _globals['_CLASSIFIERMODE']._serialized_end=11405 - _globals['_INTERPOLATEMODE']._serialized_start=11408 - _globals['_INTERPOLATEMODE']._serialized_end=11548 - _globals['_BORDERMODE']._serialized_start=11550 - _globals['_BORDERMODE']._serialized_end=11658 - _globals['_COLORMATCHMODE']._serialized_start=11660 - _globals['_COLORMATCHMODE']._serialized_end=11739 - _globals['_CAMERATYPE']._serialized_start=11741 - _globals['_CAMERATYPE']._serialized_end=11802 - _globals['_RENDERMODE']._serialized_start=11804 - _globals['_RENDERMODE']._serialized_end=11856 - _globals['_ASSETACTION']._serialized_start=11858 - _globals['_ASSETACTION']._serialized_end=11919 - _globals['_ASSETUSE']._serialized_start=11922 - _globals['_ASSETUSE']._serialized_end=12051 - _globals['_STAGEACTION']._serialized_start=12053 - _globals['_STAGEACTION']._serialized_end=12140 - _globals['_TOKEN']._serialized_start=162 - _globals['_TOKEN']._serialized_end=219 - _globals['_TOKENS']._serialized_start=222 - _globals['_TOKENS']._serialized_end=358 - _globals['_ARTIFACT']._serialized_start=361 - _globals['_ARTIFACT']._serialized_end=960 - _globals['_PROMPTPARAMETERS']._serialized_start=962 - _globals['_PROMPTPARAMETERS']._serialized_end=1054 - _globals['_PROMPT']._serialized_start=1057 - _globals['_PROMPT']._serialized_end=1361 - _globals['_SAMPLERPARAMETERS']._serialized_start=1364 - _globals['_SAMPLERPARAMETERS']._serialized_end=1805 - _globals['_CONDITIONERPARAMETERS']._serialized_start=1808 - _globals['_CONDITIONERPARAMETERS']._serialized_end=2010 - _globals['_SCHEDULEPARAMETERS']._serialized_start=2012 - _globals['_SCHEDULEPARAMETERS']._serialized_end=2137 - _globals['_STEPPARAMETER']._serialized_start=2140 - _globals['_STEPPARAMETER']._serialized_end=2502 - _globals['_MODEL']._serialized_start=2505 - _globals['_MODEL']._serialized_end=2754 - _globals['_CUTOUTPARAMETERS']._serialized_start=2757 - _globals['_CUTOUTPARAMETERS']._serialized_end=3015 - _globals['_GUIDANCESCHEDULEPARAMETERS']._serialized_start=3017 - _globals['_GUIDANCESCHEDULEPARAMETERS']._serialized_end=3095 - _globals['_GUIDANCEINSTANCEPARAMETERS']._serialized_start=3098 - _globals['_GUIDANCEINSTANCEPARAMETERS']._serialized_end=3554 - _globals['_GUIDANCEPARAMETERS']._serialized_start=3557 - _globals['_GUIDANCEPARAMETERS']._serialized_end=3772 - _globals['_TRANSFORMTYPE']._serialized_start=3775 - _globals['_TRANSFORMTYPE']._serialized_end=3968 - _globals['_IMAGEPARAMETERS']._serialized_start=3971 - _globals['_IMAGEPARAMETERS']._serialized_end=4640 - _globals['_CLASSIFIERCONCEPT']._serialized_start=4642 - _globals['_CLASSIFIERCONCEPT']._serialized_end=4736 - _globals['_CLASSIFIERCATEGORY']._serialized_start=4739 - _globals['_CLASSIFIERCATEGORY']._serialized_end=5128 - _globals['_CLASSIFIERPARAMETERS']._serialized_start=5131 - _globals['_CLASSIFIERPARAMETERS']._serialized_end=5445 - _globals['_INTERPOLATEPARAMETERS']._serialized_start=5448 - _globals['_INTERPOLATEPARAMETERS']._serialized_end=5586 - _globals['_TRANSFORMCOLORADJUST']._serialized_start=5589 - _globals['_TRANSFORMCOLORADJUST']._serialized_end=6160 - _globals['_TRANSFORMDEPTHCALC']._serialized_start=6163 - _globals['_TRANSFORMDEPTHCALC']._serialized_end=6337 - _globals['_TRANSFORMMATRIX']._serialized_start=6339 - _globals['_TRANSFORMMATRIX']._serialized_end=6380 - _globals['_TRANSFORMRESAMPLE']._serialized_start=6383 - _globals['_TRANSFORMRESAMPLE']._serialized_end=6799 - _globals['_CAMERAPARAMETERS']._serialized_start=6802 - _globals['_CAMERAPARAMETERS']._serialized_end=6996 - _globals['_TRANSFORMCAMERAPOSE']._serialized_start=6999 - _globals['_TRANSFORMCAMERAPOSE']._serialized_end=7369 - _globals['_TRANSFORMPARAMETERS']._serialized_start=7372 - _globals['_TRANSFORMPARAMETERS']._serialized_end=7783 - _globals['_ASSETPARAMETERS']._serialized_start=7786 - _globals['_ASSETPARAMETERS']._serialized_end=7979 - _globals['_ANSWERMETA']._serialized_start=7982 - _globals['_ANSWERMETA']._serialized_end=8162 - _globals['_ANSWER']._serialized_start=8165 - _globals['_ANSWER']._serialized_end=8453 - _globals['_ANSWERBATCH']._serialized_start=8455 - _globals['_ANSWERBATCH']._serialized_end=8569 - _globals['_REQUEST']._serialized_start=8572 - _globals['_REQUEST']._serialized_end=9462 - _globals['_ONSTATUS']._serialized_start=9465 - _globals['_ONSTATUS']._serialized_end=9670 - _globals['_STAGE']._serialized_start=9673 - _globals['_STAGE']._serialized_end=9850 - _globals['_CHAINREQUEST']._serialized_start=9852 - _globals['_CHAINREQUEST']._serialized_end=9966 - _globals['_GENERATIONSERVICE']._serialized_start=12143 - _globals['_GENERATIONSERVICE']._serialized_end=12398 + _globals['_FINISHREASON']._serialized_start=9970 + _globals['_FINISHREASON']._serialized_end=10039 + _globals['_ARTIFACTTYPE']._serialized_start=10042 + _globals['_ARTIFACTTYPE']._serialized_end=10290 + _globals['_MASKEDAREAINIT']._serialized_start=10292 + _globals['_MASKEDAREAINIT']._serialized_end=10395 + _globals['_WEIGHTMETHOD']._serialized_start=10397 + _globals['_WEIGHTMETHOD']._serialized_end=10450 + _globals['_DIFFUSIONSAMPLER']._serialized_start=10453 + _globals['_DIFFUSIONSAMPLER']._serialized_end=10733 + _globals['_UPSCALER']._serialized_start=10735 + _globals['_UPSCALER']._serialized_end=10805 + _globals['_GUIDANCEPRESET']._serialized_start=10808 + _globals['_GUIDANCEPRESET']._serialized_end=11024 + _globals['_MODELARCHITECTURE']._serialized_start=11027 + _globals['_MODELARCHITECTURE']._serialized_end=11172 + _globals['_ACTION']._serialized_start=11175 + _globals['_ACTION']._serialized_end=11337 + _globals['_CLASSIFIERMODE']._serialized_start=11339 + _globals['_CLASSIFIERMODE']._serialized_end=11407 + _globals['_INTERPOLATEMODE']._serialized_start=11410 + _globals['_INTERPOLATEMODE']._serialized_end=11550 + _globals['_BORDERMODE']._serialized_start=11552 + _globals['_BORDERMODE']._serialized_end=11660 + _globals['_COLORMATCHMODE']._serialized_start=11662 + _globals['_COLORMATCHMODE']._serialized_end=11741 + _globals['_CAMERATYPE']._serialized_start=11743 + _globals['_CAMERATYPE']._serialized_end=11804 + _globals['_RENDERMODE']._serialized_start=11806 + _globals['_RENDERMODE']._serialized_end=11858 + _globals['_ASSETACTION']._serialized_start=11860 + _globals['_ASSETACTION']._serialized_end=11921 + _globals['_ASSETUSE']._serialized_start=11924 + _globals['_ASSETUSE']._serialized_end=12053 + _globals['_STAGEACTION']._serialized_start=12055 + _globals['_STAGEACTION']._serialized_end=12142 + _globals['_TOKEN']._serialized_start=164 + _globals['_TOKEN']._serialized_end=221 + _globals['_TOKENS']._serialized_start=224 + _globals['_TOKENS']._serialized_end=360 + _globals['_ARTIFACT']._serialized_start=363 + _globals['_ARTIFACT']._serialized_end=962 + _globals['_PROMPTPARAMETERS']._serialized_start=964 + _globals['_PROMPTPARAMETERS']._serialized_end=1056 + _globals['_PROMPT']._serialized_start=1059 + _globals['_PROMPT']._serialized_end=1363 + _globals['_SAMPLERPARAMETERS']._serialized_start=1366 + _globals['_SAMPLERPARAMETERS']._serialized_end=1807 + _globals['_CONDITIONERPARAMETERS']._serialized_start=1810 + _globals['_CONDITIONERPARAMETERS']._serialized_end=2012 + _globals['_SCHEDULEPARAMETERS']._serialized_start=2014 + _globals['_SCHEDULEPARAMETERS']._serialized_end=2139 + _globals['_STEPPARAMETER']._serialized_start=2142 + _globals['_STEPPARAMETER']._serialized_end=2504 + _globals['_MODEL']._serialized_start=2507 + _globals['_MODEL']._serialized_end=2756 + _globals['_CUTOUTPARAMETERS']._serialized_start=2759 + _globals['_CUTOUTPARAMETERS']._serialized_end=3017 + _globals['_GUIDANCESCHEDULEPARAMETERS']._serialized_start=3019 + _globals['_GUIDANCESCHEDULEPARAMETERS']._serialized_end=3097 + _globals['_GUIDANCEINSTANCEPARAMETERS']._serialized_start=3100 + _globals['_GUIDANCEINSTANCEPARAMETERS']._serialized_end=3556 + _globals['_GUIDANCEPARAMETERS']._serialized_start=3559 + _globals['_GUIDANCEPARAMETERS']._serialized_end=3774 + _globals['_TRANSFORMTYPE']._serialized_start=3777 + _globals['_TRANSFORMTYPE']._serialized_end=3970 + _globals['_IMAGEPARAMETERS']._serialized_start=3973 + _globals['_IMAGEPARAMETERS']._serialized_end=4642 + _globals['_CLASSIFIERCONCEPT']._serialized_start=4644 + _globals['_CLASSIFIERCONCEPT']._serialized_end=4738 + _globals['_CLASSIFIERCATEGORY']._serialized_start=4741 + _globals['_CLASSIFIERCATEGORY']._serialized_end=5130 + _globals['_CLASSIFIERPARAMETERS']._serialized_start=5133 + _globals['_CLASSIFIERPARAMETERS']._serialized_end=5447 + _globals['_INTERPOLATEPARAMETERS']._serialized_start=5450 + _globals['_INTERPOLATEPARAMETERS']._serialized_end=5588 + _globals['_TRANSFORMCOLORADJUST']._serialized_start=5591 + _globals['_TRANSFORMCOLORADJUST']._serialized_end=6162 + _globals['_TRANSFORMDEPTHCALC']._serialized_start=6165 + _globals['_TRANSFORMDEPTHCALC']._serialized_end=6339 + _globals['_TRANSFORMMATRIX']._serialized_start=6341 + _globals['_TRANSFORMMATRIX']._serialized_end=6382 + _globals['_TRANSFORMRESAMPLE']._serialized_start=6385 + _globals['_TRANSFORMRESAMPLE']._serialized_end=6801 + _globals['_CAMERAPARAMETERS']._serialized_start=6804 + _globals['_CAMERAPARAMETERS']._serialized_end=6998 + _globals['_TRANSFORMCAMERAPOSE']._serialized_start=7001 + _globals['_TRANSFORMCAMERAPOSE']._serialized_end=7371 + _globals['_TRANSFORMPARAMETERS']._serialized_start=7374 + _globals['_TRANSFORMPARAMETERS']._serialized_end=7785 + _globals['_ASSETPARAMETERS']._serialized_start=7788 + _globals['_ASSETPARAMETERS']._serialized_end=7981 + _globals['_ANSWERMETA']._serialized_start=7984 + _globals['_ANSWERMETA']._serialized_end=8164 + _globals['_ANSWER']._serialized_start=8167 + _globals['_ANSWER']._serialized_end=8455 + _globals['_ANSWERBATCH']._serialized_start=8457 + _globals['_ANSWERBATCH']._serialized_end=8571 + _globals['_REQUEST']._serialized_start=8574 + _globals['_REQUEST']._serialized_end=9464 + _globals['_ONSTATUS']._serialized_start=9467 + _globals['_ONSTATUS']._serialized_end=9672 + _globals['_STAGE']._serialized_start=9675 + _globals['_STAGE']._serialized_end=9852 + _globals['_CHAINREQUEST']._serialized_start=9854 + _globals['_CHAINREQUEST']._serialized_end=9968 + _globals['_GENERATIONSERVICE']._serialized_start=12145 + _globals['_GENERATIONSERVICE']._serialized_end=12400 # @@protoc_insertion_point(module_scope) diff --git a/gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2.pyi b/gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2.pyi index ba707e1..809d91a 100644 --- a/gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2.pyi +++ b/gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2.pyi @@ -1,5 +1,5 @@ from google.protobuf import struct_pb2 as _struct_pb2 -from coreweave.tensors import tensors_pb2 as _tensors_pb2 +from stabilityai.tensors import tensors_pb2 as _tensors_pb2 from google.protobuf.internal import containers as _containers from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper from google.protobuf import descriptor as _descriptor diff --git a/pyproject.toml b/pyproject.toml index 9824f31..d8c3128 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ path = "src/stability_api/__about__.py" [tool.hatch.build.targets.wheel.force-include] "src/stability_api" = "stability_api" "gen/proto/py/stabilityai/platformapis" = "stability_api/interfaces/platform" -"gen/proto/py/coreweave/tensors" = "coreweave/tensors" +"gen/proto/py/stabilityai/tensors" = "stability_api/interfaces/tensors" [tool.hatch.envs.default] dependencies = [ diff --git a/src/proto/coreweave/tensors/tensors.proto b/src/proto/coreweave/tensors/tensors.proto deleted file mode 100644 index 26c5e05..0000000 --- a/src/proto/coreweave/tensors/tensors.proto +++ /dev/null @@ -1,54 +0,0 @@ -syntax = 'proto3'; -package tensors; -option go_package = "github.com/coreweave/tensorizer/tensors"; - -enum Dtype { - DT_INVALID = 0; - DT_FLOAT32 = 1; - DT_FLOAT64 = 2; - DT_FLOAT16 = 3; - DT_BFLOAT16 = 4; - DT_COMPLEX32 = 5; - DT_COMPLEX64 = 6; - DT_COMPLEX128 = 7; - DT_UINT8 = 8; - DT_INT8 = 9; - DT_INT16 = 10; - DT_INT32 = 11; - DT_INT64 = 12; - DT_BOOL = 13; - DT_QUINT8 = 14; - DT_QINT8 = 15; - DT_QINT32 = 16; - DT_QUINT4_2 = 17; -} - -enum AttributeType { - AT_PARAMETER = 0; - AT_BUFFER = 1; -} - -message Tensor { - Dtype dtype = 1; - repeated int64 shape = 2; - bytes data = 3; - optional AttributeType attr_type = 4; -} - -message Attribute { - string name = 1; - oneof value { - Module module = 3; - Tensor tensor = 4; - string string = 5; - int64 int64 = 6; - float float = 7; - bool bool = 8; - } -} - -message Module { - string name = 1; - repeated string names = 2; - repeated Attribute attributes = 3; -} diff --git a/src/proto/stabilityai/platformapis/generation/v1/generation.proto b/src/proto/stabilityai/platformapis/generation/v1/generation.proto index c3eb6e4..607e71b 100644 --- a/src/proto/stabilityai/platformapis/generation/v1/generation.proto +++ b/src/proto/stabilityai/platformapis/generation/v1/generation.proto @@ -2,7 +2,7 @@ syntax = 'proto3'; package stabilityai.platformapis.generation.v1; option go_package = "github.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/generation/v1;generationv1"; import "google/protobuf/struct.proto"; -import "coreweave/tensors/tensors.proto"; +import "stabilityai/tensors/tensors.proto"; enum FinishReason { NULL = 0; From d259c5f48903688a58e64d3e3180a0a7361bd495 Mon Sep 17 00:00:00 2001 From: Stephan Auerhahn Date: Thu, 11 May 2023 09:01:36 +0000 Subject: [PATCH 06/20] regen --- .gitignore | 1 + .../tensors/tensors.pb.go | 224 +++++++++--------- .../tensors/tensors_pb.d.ts | 2 +- .../tensors/tensors_pb.js | 2 +- gen/proto/py/coreweave/tensors/tensors_pb2.py | 35 --- .../py/stabilityai/tensors/tensors_pb2.py | 35 +++ .../tensors/tensors_pb2.pyi | 0 .../tensors/tensors_pb2_grpc.py | 0 .../tensors/tensors.pb.swift | 2 +- src/proto/stabilityai/tensors/tensors.proto | 54 +++++ 10 files changed, 205 insertions(+), 150 deletions(-) rename gen/proto/go/{coreweave => stabilityai}/tensors/tensors.pb.go (54%) rename gen/proto/js/{coreweave => stabilityai}/tensors/tensors_pb.d.ts (98%) rename gen/proto/js/{coreweave => stabilityai}/tensors/tensors_pb.js (96%) delete mode 100644 gen/proto/py/coreweave/tensors/tensors_pb2.py create mode 100644 gen/proto/py/stabilityai/tensors/tensors_pb2.py rename gen/proto/py/{coreweave => stabilityai}/tensors/tensors_pb2.pyi (100%) rename gen/proto/py/{coreweave => stabilityai}/tensors/tensors_pb2_grpc.py (100%) rename gen/proto/swift/{coreweave => stabilityai}/tensors/tensors.pb.swift (99%) create mode 100644 src/proto/stabilityai/tensors/tensors.proto diff --git a/.gitignore b/.gitignore index 8d2beec..fc5ff68 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ node_modules .idea pybuild/ +dist \ No newline at end of file diff --git a/gen/proto/go/coreweave/tensors/tensors.pb.go b/gen/proto/go/stabilityai/tensors/tensors.pb.go similarity index 54% rename from gen/proto/go/coreweave/tensors/tensors.pb.go rename to gen/proto/go/stabilityai/tensors/tensors.pb.go index d3acc9f..c11fea5 100644 --- a/gen/proto/go/coreweave/tensors/tensors.pb.go +++ b/gen/proto/go/stabilityai/tensors/tensors.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.30.0 // protoc (unknown) -// source: coreweave/tensors/tensors.proto +// source: stabilityai/tensors/tensors.proto package tensors @@ -98,11 +98,11 @@ func (x Dtype) String() string { } func (Dtype) Descriptor() protoreflect.EnumDescriptor { - return file_coreweave_tensors_tensors_proto_enumTypes[0].Descriptor() + return file_stabilityai_tensors_tensors_proto_enumTypes[0].Descriptor() } func (Dtype) Type() protoreflect.EnumType { - return &file_coreweave_tensors_tensors_proto_enumTypes[0] + return &file_stabilityai_tensors_tensors_proto_enumTypes[0] } func (x Dtype) Number() protoreflect.EnumNumber { @@ -111,7 +111,7 @@ func (x Dtype) Number() protoreflect.EnumNumber { // Deprecated: Use Dtype.Descriptor instead. func (Dtype) EnumDescriptor() ([]byte, []int) { - return file_coreweave_tensors_tensors_proto_rawDescGZIP(), []int{0} + return file_stabilityai_tensors_tensors_proto_rawDescGZIP(), []int{0} } type AttributeType int32 @@ -144,11 +144,11 @@ func (x AttributeType) String() string { } func (AttributeType) Descriptor() protoreflect.EnumDescriptor { - return file_coreweave_tensors_tensors_proto_enumTypes[1].Descriptor() + return file_stabilityai_tensors_tensors_proto_enumTypes[1].Descriptor() } func (AttributeType) Type() protoreflect.EnumType { - return &file_coreweave_tensors_tensors_proto_enumTypes[1] + return &file_stabilityai_tensors_tensors_proto_enumTypes[1] } func (x AttributeType) Number() protoreflect.EnumNumber { @@ -157,7 +157,7 @@ func (x AttributeType) Number() protoreflect.EnumNumber { // Deprecated: Use AttributeType.Descriptor instead. func (AttributeType) EnumDescriptor() ([]byte, []int) { - return file_coreweave_tensors_tensors_proto_rawDescGZIP(), []int{1} + return file_stabilityai_tensors_tensors_proto_rawDescGZIP(), []int{1} } type Tensor struct { @@ -174,7 +174,7 @@ type Tensor struct { func (x *Tensor) Reset() { *x = Tensor{} if protoimpl.UnsafeEnabled { - mi := &file_coreweave_tensors_tensors_proto_msgTypes[0] + mi := &file_stabilityai_tensors_tensors_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -187,7 +187,7 @@ func (x *Tensor) String() string { func (*Tensor) ProtoMessage() {} func (x *Tensor) ProtoReflect() protoreflect.Message { - mi := &file_coreweave_tensors_tensors_proto_msgTypes[0] + mi := &file_stabilityai_tensors_tensors_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -200,7 +200,7 @@ func (x *Tensor) ProtoReflect() protoreflect.Message { // Deprecated: Use Tensor.ProtoReflect.Descriptor instead. func (*Tensor) Descriptor() ([]byte, []int) { - return file_coreweave_tensors_tensors_proto_rawDescGZIP(), []int{0} + return file_stabilityai_tensors_tensors_proto_rawDescGZIP(), []int{0} } func (x *Tensor) GetDtype() Dtype { @@ -251,7 +251,7 @@ type Attribute struct { func (x *Attribute) Reset() { *x = Attribute{} if protoimpl.UnsafeEnabled { - mi := &file_coreweave_tensors_tensors_proto_msgTypes[1] + mi := &file_stabilityai_tensors_tensors_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -264,7 +264,7 @@ func (x *Attribute) String() string { func (*Attribute) ProtoMessage() {} func (x *Attribute) ProtoReflect() protoreflect.Message { - mi := &file_coreweave_tensors_tensors_proto_msgTypes[1] + mi := &file_stabilityai_tensors_tensors_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -277,7 +277,7 @@ func (x *Attribute) ProtoReflect() protoreflect.Message { // Deprecated: Use Attribute.ProtoReflect.Descriptor instead. func (*Attribute) Descriptor() ([]byte, []int) { - return file_coreweave_tensors_tensors_proto_rawDescGZIP(), []int{1} + return file_stabilityai_tensors_tensors_proto_rawDescGZIP(), []int{1} } func (x *Attribute) GetName() string { @@ -389,7 +389,7 @@ type Module struct { func (x *Module) Reset() { *x = Module{} if protoimpl.UnsafeEnabled { - mi := &file_coreweave_tensors_tensors_proto_msgTypes[2] + mi := &file_stabilityai_tensors_tensors_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -402,7 +402,7 @@ func (x *Module) String() string { func (*Module) ProtoMessage() {} func (x *Module) ProtoReflect() protoreflect.Message { - mi := &file_coreweave_tensors_tensors_proto_msgTypes[2] + mi := &file_stabilityai_tensors_tensors_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -415,7 +415,7 @@ func (x *Module) ProtoReflect() protoreflect.Message { // Deprecated: Use Module.ProtoReflect.Descriptor instead. func (*Module) Descriptor() ([]byte, []int) { - return file_coreweave_tensors_tensors_proto_rawDescGZIP(), []int{2} + return file_stabilityai_tensors_tensors_proto_rawDescGZIP(), []int{2} } func (x *Module) GetName() string { @@ -439,99 +439,99 @@ func (x *Module) GetAttributes() []*Attribute { return nil } -var File_coreweave_tensors_tensors_proto protoreflect.FileDescriptor - -var file_coreweave_tensors_tensors_proto_rawDesc = []byte{ - 0x0a, 0x1f, 0x63, 0x6f, 0x72, 0x65, 0x77, 0x65, 0x61, 0x76, 0x65, 0x2f, 0x74, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x73, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x07, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x22, 0xa0, 0x01, 0x0a, 0x06, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x12, 0x24, 0x0a, 0x05, 0x64, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x2e, 0x44, - 0x74, 0x79, 0x70, 0x65, 0x52, 0x05, 0x64, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, - 0x68, 0x61, 0x70, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x03, 0x52, 0x05, 0x73, 0x68, 0x61, 0x70, - 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x38, 0x0a, 0x09, 0x61, 0x74, 0x74, 0x72, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x73, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, - 0x48, 0x00, 0x52, 0x08, 0x61, 0x74, 0x74, 0x72, 0x54, 0x79, 0x70, 0x65, 0x88, 0x01, 0x01, 0x42, - 0x0c, 0x0a, 0x0a, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0xde, 0x01, - 0x0a, 0x09, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x29, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x0f, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, - 0x48, 0x00, 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x29, 0x0a, 0x06, 0x74, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x73, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x06, 0x74, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, - 0x16, 0x0a, 0x05, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, - 0x52, 0x05, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x16, 0x0a, 0x05, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x05, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x12, - 0x14, 0x0a, 0x04, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, - 0x04, 0x62, 0x6f, 0x6f, 0x6c, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x66, - 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, - 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x61, 0x6d, - 0x65, 0x73, 0x12, 0x32, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, - 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, - 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2a, 0x9e, 0x02, 0x0a, 0x05, 0x44, 0x74, 0x79, 0x70, 0x65, - 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x54, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, - 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x54, 0x5f, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x33, 0x32, 0x10, 0x01, - 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x54, 0x5f, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x36, 0x34, 0x10, 0x02, - 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x54, 0x5f, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x31, 0x36, 0x10, 0x03, - 0x12, 0x0f, 0x0a, 0x0b, 0x44, 0x54, 0x5f, 0x42, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x31, 0x36, 0x10, - 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x54, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x58, 0x33, - 0x32, 0x10, 0x05, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x54, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, - 0x58, 0x36, 0x34, 0x10, 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x44, 0x54, 0x5f, 0x43, 0x4f, 0x4d, 0x50, - 0x4c, 0x45, 0x58, 0x31, 0x32, 0x38, 0x10, 0x07, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x54, 0x5f, 0x55, - 0x49, 0x4e, 0x54, 0x38, 0x10, 0x08, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x54, 0x5f, 0x49, 0x4e, 0x54, - 0x38, 0x10, 0x09, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x54, 0x5f, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10, - 0x0a, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x54, 0x5f, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x0b, 0x12, - 0x0c, 0x0a, 0x08, 0x44, 0x54, 0x5f, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x0c, 0x12, 0x0b, 0x0a, - 0x07, 0x44, 0x54, 0x5f, 0x42, 0x4f, 0x4f, 0x4c, 0x10, 0x0d, 0x12, 0x0d, 0x0a, 0x09, 0x44, 0x54, - 0x5f, 0x51, 0x55, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x0e, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x54, 0x5f, - 0x51, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x0f, 0x12, 0x0d, 0x0a, 0x09, 0x44, 0x54, 0x5f, 0x51, 0x49, - 0x4e, 0x54, 0x33, 0x32, 0x10, 0x10, 0x12, 0x0f, 0x0a, 0x0b, 0x44, 0x54, 0x5f, 0x51, 0x55, 0x49, - 0x4e, 0x54, 0x34, 0x5f, 0x32, 0x10, 0x11, 0x2a, 0x30, 0x0a, 0x0d, 0x41, 0x74, 0x74, 0x72, 0x69, - 0x62, 0x75, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x54, 0x5f, 0x50, - 0x41, 0x52, 0x41, 0x4d, 0x45, 0x54, 0x45, 0x52, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x54, - 0x5f, 0x42, 0x55, 0x46, 0x46, 0x45, 0x52, 0x10, 0x01, 0x42, 0x9e, 0x01, 0x0a, 0x0b, 0x63, 0x6f, - 0x6d, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x42, 0x0c, 0x54, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x45, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, - 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, - 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x63, - 0x6f, 0x72, 0x65, 0x77, 0x65, 0x61, 0x76, 0x65, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, - 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, 0x07, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, - 0xca, 0x02, 0x07, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0xe2, 0x02, 0x13, 0x54, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x07, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, +var File_stabilityai_tensors_tensors_proto protoreflect.FileDescriptor + +var file_stabilityai_tensors_tensors_proto_rawDesc = []byte{ + 0x0a, 0x21, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2f, 0x74, 0x65, + 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x22, 0xa0, 0x01, 0x0a, + 0x06, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x12, 0x24, 0x0a, 0x05, 0x64, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, + 0x2e, 0x44, 0x74, 0x79, 0x70, 0x65, 0x52, 0x05, 0x64, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, + 0x05, 0x73, 0x68, 0x61, 0x70, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x03, 0x52, 0x05, 0x73, 0x68, + 0x61, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x38, 0x0a, 0x09, 0x61, 0x74, 0x74, 0x72, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x73, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x54, 0x79, + 0x70, 0x65, 0x48, 0x00, 0x52, 0x08, 0x61, 0x74, 0x74, 0x72, 0x54, 0x79, 0x70, 0x65, 0x88, 0x01, + 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, + 0xde, 0x01, 0x0a, 0x09, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x29, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x2e, 0x4d, 0x6f, 0x64, 0x75, + 0x6c, 0x65, 0x48, 0x00, 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x29, 0x0a, 0x06, + 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x48, 0x00, 0x52, + 0x06, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x12, 0x16, 0x0a, 0x05, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, + 0x48, 0x00, 0x52, 0x05, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x16, 0x0a, 0x05, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x05, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x12, 0x14, 0x0a, 0x04, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x48, + 0x00, 0x52, 0x04, 0x62, 0x6f, 0x6f, 0x6c, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x22, 0x66, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, + 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e, + 0x61, 0x6d, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x73, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x0a, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2a, 0x9e, 0x02, 0x0a, 0x05, 0x44, 0x74, 0x79, + 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x54, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, + 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x54, 0x5f, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x33, 0x32, + 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x54, 0x5f, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x36, 0x34, + 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x54, 0x5f, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x31, 0x36, + 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x44, 0x54, 0x5f, 0x42, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x31, + 0x36, 0x10, 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x54, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, + 0x58, 0x33, 0x32, 0x10, 0x05, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x54, 0x5f, 0x43, 0x4f, 0x4d, 0x50, + 0x4c, 0x45, 0x58, 0x36, 0x34, 0x10, 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x44, 0x54, 0x5f, 0x43, 0x4f, + 0x4d, 0x50, 0x4c, 0x45, 0x58, 0x31, 0x32, 0x38, 0x10, 0x07, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x54, + 0x5f, 0x55, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x08, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x54, 0x5f, 0x49, + 0x4e, 0x54, 0x38, 0x10, 0x09, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x54, 0x5f, 0x49, 0x4e, 0x54, 0x31, + 0x36, 0x10, 0x0a, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x54, 0x5f, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, + 0x0b, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x54, 0x5f, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x0c, 0x12, + 0x0b, 0x0a, 0x07, 0x44, 0x54, 0x5f, 0x42, 0x4f, 0x4f, 0x4c, 0x10, 0x0d, 0x12, 0x0d, 0x0a, 0x09, + 0x44, 0x54, 0x5f, 0x51, 0x55, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x0e, 0x12, 0x0c, 0x0a, 0x08, 0x44, + 0x54, 0x5f, 0x51, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x0f, 0x12, 0x0d, 0x0a, 0x09, 0x44, 0x54, 0x5f, + 0x51, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x10, 0x12, 0x0f, 0x0a, 0x0b, 0x44, 0x54, 0x5f, 0x51, + 0x55, 0x49, 0x4e, 0x54, 0x34, 0x5f, 0x32, 0x10, 0x11, 0x2a, 0x30, 0x0a, 0x0d, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x54, + 0x5f, 0x50, 0x41, 0x52, 0x41, 0x4d, 0x45, 0x54, 0x45, 0x52, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, + 0x41, 0x54, 0x5f, 0x42, 0x55, 0x46, 0x46, 0x45, 0x52, 0x10, 0x01, 0x42, 0xa0, 0x01, 0x0a, 0x0b, + 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x42, 0x0c, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x47, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x2d, 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, + 0x63, 0x65, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, + 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2f, 0x74, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x73, 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, 0x07, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x73, 0xca, 0x02, 0x07, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0xe2, 0x02, + 0x13, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x07, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_coreweave_tensors_tensors_proto_rawDescOnce sync.Once - file_coreweave_tensors_tensors_proto_rawDescData = file_coreweave_tensors_tensors_proto_rawDesc + file_stabilityai_tensors_tensors_proto_rawDescOnce sync.Once + file_stabilityai_tensors_tensors_proto_rawDescData = file_stabilityai_tensors_tensors_proto_rawDesc ) -func file_coreweave_tensors_tensors_proto_rawDescGZIP() []byte { - file_coreweave_tensors_tensors_proto_rawDescOnce.Do(func() { - file_coreweave_tensors_tensors_proto_rawDescData = protoimpl.X.CompressGZIP(file_coreweave_tensors_tensors_proto_rawDescData) +func file_stabilityai_tensors_tensors_proto_rawDescGZIP() []byte { + file_stabilityai_tensors_tensors_proto_rawDescOnce.Do(func() { + file_stabilityai_tensors_tensors_proto_rawDescData = protoimpl.X.CompressGZIP(file_stabilityai_tensors_tensors_proto_rawDescData) }) - return file_coreweave_tensors_tensors_proto_rawDescData + return file_stabilityai_tensors_tensors_proto_rawDescData } -var file_coreweave_tensors_tensors_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_coreweave_tensors_tensors_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_coreweave_tensors_tensors_proto_goTypes = []interface{}{ +var file_stabilityai_tensors_tensors_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_stabilityai_tensors_tensors_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_stabilityai_tensors_tensors_proto_goTypes = []interface{}{ (Dtype)(0), // 0: tensors.Dtype (AttributeType)(0), // 1: tensors.AttributeType (*Tensor)(nil), // 2: tensors.Tensor (*Attribute)(nil), // 3: tensors.Attribute (*Module)(nil), // 4: tensors.Module } -var file_coreweave_tensors_tensors_proto_depIdxs = []int32{ +var file_stabilityai_tensors_tensors_proto_depIdxs = []int32{ 0, // 0: tensors.Tensor.dtype:type_name -> tensors.Dtype 1, // 1: tensors.Tensor.attr_type:type_name -> tensors.AttributeType 4, // 2: tensors.Attribute.module:type_name -> tensors.Module @@ -544,13 +544,13 @@ var file_coreweave_tensors_tensors_proto_depIdxs = []int32{ 0, // [0:5] is the sub-list for field type_name } -func init() { file_coreweave_tensors_tensors_proto_init() } -func file_coreweave_tensors_tensors_proto_init() { - if File_coreweave_tensors_tensors_proto != nil { +func init() { file_stabilityai_tensors_tensors_proto_init() } +func file_stabilityai_tensors_tensors_proto_init() { + if File_stabilityai_tensors_tensors_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_coreweave_tensors_tensors_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_stabilityai_tensors_tensors_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Tensor); i { case 0: return &v.state @@ -562,7 +562,7 @@ func file_coreweave_tensors_tensors_proto_init() { return nil } } - file_coreweave_tensors_tensors_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_stabilityai_tensors_tensors_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Attribute); i { case 0: return &v.state @@ -574,7 +574,7 @@ func file_coreweave_tensors_tensors_proto_init() { return nil } } - file_coreweave_tensors_tensors_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_stabilityai_tensors_tensors_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Module); i { case 0: return &v.state @@ -587,8 +587,8 @@ func file_coreweave_tensors_tensors_proto_init() { } } } - file_coreweave_tensors_tensors_proto_msgTypes[0].OneofWrappers = []interface{}{} - file_coreweave_tensors_tensors_proto_msgTypes[1].OneofWrappers = []interface{}{ + file_stabilityai_tensors_tensors_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_stabilityai_tensors_tensors_proto_msgTypes[1].OneofWrappers = []interface{}{ (*Attribute_Module)(nil), (*Attribute_Tensor)(nil), (*Attribute_String_)(nil), @@ -600,19 +600,19 @@ func file_coreweave_tensors_tensors_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_coreweave_tensors_tensors_proto_rawDesc, + RawDescriptor: file_stabilityai_tensors_tensors_proto_rawDesc, NumEnums: 2, NumMessages: 3, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_coreweave_tensors_tensors_proto_goTypes, - DependencyIndexes: file_coreweave_tensors_tensors_proto_depIdxs, - EnumInfos: file_coreweave_tensors_tensors_proto_enumTypes, - MessageInfos: file_coreweave_tensors_tensors_proto_msgTypes, + GoTypes: file_stabilityai_tensors_tensors_proto_goTypes, + DependencyIndexes: file_stabilityai_tensors_tensors_proto_depIdxs, + EnumInfos: file_stabilityai_tensors_tensors_proto_enumTypes, + MessageInfos: file_stabilityai_tensors_tensors_proto_msgTypes, }.Build() - File_coreweave_tensors_tensors_proto = out.File - file_coreweave_tensors_tensors_proto_rawDesc = nil - file_coreweave_tensors_tensors_proto_goTypes = nil - file_coreweave_tensors_tensors_proto_depIdxs = nil + File_stabilityai_tensors_tensors_proto = out.File + file_stabilityai_tensors_tensors_proto_rawDesc = nil + file_stabilityai_tensors_tensors_proto_goTypes = nil + file_stabilityai_tensors_tensors_proto_depIdxs = nil } diff --git a/gen/proto/js/coreweave/tensors/tensors_pb.d.ts b/gen/proto/js/stabilityai/tensors/tensors_pb.d.ts similarity index 98% rename from gen/proto/js/coreweave/tensors/tensors_pb.d.ts rename to gen/proto/js/stabilityai/tensors/tensors_pb.d.ts index 3e7b5a8..c8af746 100644 --- a/gen/proto/js/coreweave/tensors/tensors_pb.d.ts +++ b/gen/proto/js/stabilityai/tensors/tensors_pb.d.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 -// @generated from file coreweave/tensors/tensors.proto (package tensors, syntax proto3) +// @generated from file stabilityai/tensors/tensors.proto (package tensors, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/gen/proto/js/coreweave/tensors/tensors_pb.js b/gen/proto/js/stabilityai/tensors/tensors_pb.js similarity index 96% rename from gen/proto/js/coreweave/tensors/tensors_pb.js rename to gen/proto/js/stabilityai/tensors/tensors_pb.js index 6a5796c..5090516 100644 --- a/gen/proto/js/coreweave/tensors/tensors_pb.js +++ b/gen/proto/js/stabilityai/tensors/tensors_pb.js @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 -// @generated from file coreweave/tensors/tensors.proto (package tensors, syntax proto3) +// @generated from file stabilityai/tensors/tensors.proto (package tensors, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/gen/proto/py/coreweave/tensors/tensors_pb2.py b/gen/proto/py/coreweave/tensors/tensors_pb2.py deleted file mode 100644 index fd1d41a..0000000 --- a/gen/proto/py/coreweave/tensors/tensors_pb2.py +++ /dev/null @@ -1,35 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: coreweave/tensors/tensors.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x63oreweave/tensors/tensors.proto\x12\x07tensors\"\xa0\x01\n\x06Tensor\x12$\n\x05\x64type\x18\x01 \x01(\x0e\x32\x0e.tensors.DtypeR\x05\x64type\x12\x14\n\x05shape\x18\x02 \x03(\x03R\x05shape\x12\x12\n\x04\x64\x61ta\x18\x03 \x01(\x0cR\x04\x64\x61ta\x12\x38\n\tattr_type\x18\x04 \x01(\x0e\x32\x16.tensors.AttributeTypeH\x00R\x08\x61ttrType\x88\x01\x01\x42\x0c\n\n_attr_type\"\xde\x01\n\tAttribute\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12)\n\x06module\x18\x03 \x01(\x0b\x32\x0f.tensors.ModuleH\x00R\x06module\x12)\n\x06tensor\x18\x04 \x01(\x0b\x32\x0f.tensors.TensorH\x00R\x06tensor\x12\x18\n\x06string\x18\x05 \x01(\tH\x00R\x06string\x12\x16\n\x05int64\x18\x06 \x01(\x03H\x00R\x05int64\x12\x16\n\x05\x66loat\x18\x07 \x01(\x02H\x00R\x05\x66loat\x12\x14\n\x04\x62ool\x18\x08 \x01(\x08H\x00R\x04\x62oolB\x07\n\x05value\"f\n\x06Module\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n\x05names\x18\x02 \x03(\tR\x05names\x12\x32\n\nattributes\x18\x03 \x03(\x0b\x32\x12.tensors.AttributeR\nattributes*\x9e\x02\n\x05\x44type\x12\x0e\n\nDT_INVALID\x10\x00\x12\x0e\n\nDT_FLOAT32\x10\x01\x12\x0e\n\nDT_FLOAT64\x10\x02\x12\x0e\n\nDT_FLOAT16\x10\x03\x12\x0f\n\x0b\x44T_BFLOAT16\x10\x04\x12\x10\n\x0c\x44T_COMPLEX32\x10\x05\x12\x10\n\x0c\x44T_COMPLEX64\x10\x06\x12\x11\n\rDT_COMPLEX128\x10\x07\x12\x0c\n\x08\x44T_UINT8\x10\x08\x12\x0b\n\x07\x44T_INT8\x10\t\x12\x0c\n\x08\x44T_INT16\x10\n\x12\x0c\n\x08\x44T_INT32\x10\x0b\x12\x0c\n\x08\x44T_INT64\x10\x0c\x12\x0b\n\x07\x44T_BOOL\x10\r\x12\r\n\tDT_QUINT8\x10\x0e\x12\x0c\n\x08\x44T_QINT8\x10\x0f\x12\r\n\tDT_QINT32\x10\x10\x12\x0f\n\x0b\x44T_QUINT4_2\x10\x11*0\n\rAttributeType\x12\x10\n\x0c\x41T_PARAMETER\x10\x00\x12\r\n\tAT_BUFFER\x10\x01\x42\x80\x01\n\x0b\x63om.tensorsB\x0cTensorsProtoP\x01Z\'github.com/coreweave/tensorizer/tensors\xa2\x02\x03TXX\xaa\x02\x07Tensors\xca\x02\x07Tensors\xe2\x02\x13Tensors\\GPBMetadata\xea\x02\x07Tensorsb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'coreweave.tensors.tensors_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\013com.tensorsB\014TensorsProtoP\001Z\'github.com/coreweave/tensorizer/tensors\242\002\003TXX\252\002\007Tensors\312\002\007Tensors\342\002\023Tensors\\GPBMetadata\352\002\007Tensors' - _globals['_DTYPE']._serialized_start=537 - _globals['_DTYPE']._serialized_end=823 - _globals['_ATTRIBUTETYPE']._serialized_start=825 - _globals['_ATTRIBUTETYPE']._serialized_end=873 - _globals['_TENSOR']._serialized_start=45 - _globals['_TENSOR']._serialized_end=205 - _globals['_ATTRIBUTE']._serialized_start=208 - _globals['_ATTRIBUTE']._serialized_end=430 - _globals['_MODULE']._serialized_start=432 - _globals['_MODULE']._serialized_end=534 -# @@protoc_insertion_point(module_scope) diff --git a/gen/proto/py/stabilityai/tensors/tensors_pb2.py b/gen/proto/py/stabilityai/tensors/tensors_pb2.py new file mode 100644 index 0000000..5412a9e --- /dev/null +++ b/gen/proto/py/stabilityai/tensors/tensors_pb2.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: stabilityai/tensors/tensors.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!stabilityai/tensors/tensors.proto\x12\x07tensors\"\xa0\x01\n\x06Tensor\x12$\n\x05\x64type\x18\x01 \x01(\x0e\x32\x0e.tensors.DtypeR\x05\x64type\x12\x14\n\x05shape\x18\x02 \x03(\x03R\x05shape\x12\x12\n\x04\x64\x61ta\x18\x03 \x01(\x0cR\x04\x64\x61ta\x12\x38\n\tattr_type\x18\x04 \x01(\x0e\x32\x16.tensors.AttributeTypeH\x00R\x08\x61ttrType\x88\x01\x01\x42\x0c\n\n_attr_type\"\xde\x01\n\tAttribute\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12)\n\x06module\x18\x03 \x01(\x0b\x32\x0f.tensors.ModuleH\x00R\x06module\x12)\n\x06tensor\x18\x04 \x01(\x0b\x32\x0f.tensors.TensorH\x00R\x06tensor\x12\x18\n\x06string\x18\x05 \x01(\tH\x00R\x06string\x12\x16\n\x05int64\x18\x06 \x01(\x03H\x00R\x05int64\x12\x16\n\x05\x66loat\x18\x07 \x01(\x02H\x00R\x05\x66loat\x12\x14\n\x04\x62ool\x18\x08 \x01(\x08H\x00R\x04\x62oolB\x07\n\x05value\"f\n\x06Module\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n\x05names\x18\x02 \x03(\tR\x05names\x12\x32\n\nattributes\x18\x03 \x03(\x0b\x32\x12.tensors.AttributeR\nattributes*\x9e\x02\n\x05\x44type\x12\x0e\n\nDT_INVALID\x10\x00\x12\x0e\n\nDT_FLOAT32\x10\x01\x12\x0e\n\nDT_FLOAT64\x10\x02\x12\x0e\n\nDT_FLOAT16\x10\x03\x12\x0f\n\x0b\x44T_BFLOAT16\x10\x04\x12\x10\n\x0c\x44T_COMPLEX32\x10\x05\x12\x10\n\x0c\x44T_COMPLEX64\x10\x06\x12\x11\n\rDT_COMPLEX128\x10\x07\x12\x0c\n\x08\x44T_UINT8\x10\x08\x12\x0b\n\x07\x44T_INT8\x10\t\x12\x0c\n\x08\x44T_INT16\x10\n\x12\x0c\n\x08\x44T_INT32\x10\x0b\x12\x0c\n\x08\x44T_INT64\x10\x0c\x12\x0b\n\x07\x44T_BOOL\x10\r\x12\r\n\tDT_QUINT8\x10\x0e\x12\x0c\n\x08\x44T_QINT8\x10\x0f\x12\r\n\tDT_QINT32\x10\x10\x12\x0f\n\x0b\x44T_QUINT4_2\x10\x11*0\n\rAttributeType\x12\x10\n\x0c\x41T_PARAMETER\x10\x00\x12\r\n\tAT_BUFFER\x10\x01\x42\x80\x01\n\x0b\x63om.tensorsB\x0cTensorsProtoP\x01Z\'github.com/coreweave/tensorizer/tensors\xa2\x02\x03TXX\xaa\x02\x07Tensors\xca\x02\x07Tensors\xe2\x02\x13Tensors\\GPBMetadata\xea\x02\x07Tensorsb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'stabilityai.tensors.tensors_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\013com.tensorsB\014TensorsProtoP\001Z\'github.com/coreweave/tensorizer/tensors\242\002\003TXX\252\002\007Tensors\312\002\007Tensors\342\002\023Tensors\\GPBMetadata\352\002\007Tensors' + _globals['_DTYPE']._serialized_start=539 + _globals['_DTYPE']._serialized_end=825 + _globals['_ATTRIBUTETYPE']._serialized_start=827 + _globals['_ATTRIBUTETYPE']._serialized_end=875 + _globals['_TENSOR']._serialized_start=47 + _globals['_TENSOR']._serialized_end=207 + _globals['_ATTRIBUTE']._serialized_start=210 + _globals['_ATTRIBUTE']._serialized_end=432 + _globals['_MODULE']._serialized_start=434 + _globals['_MODULE']._serialized_end=536 +# @@protoc_insertion_point(module_scope) diff --git a/gen/proto/py/coreweave/tensors/tensors_pb2.pyi b/gen/proto/py/stabilityai/tensors/tensors_pb2.pyi similarity index 100% rename from gen/proto/py/coreweave/tensors/tensors_pb2.pyi rename to gen/proto/py/stabilityai/tensors/tensors_pb2.pyi diff --git a/gen/proto/py/coreweave/tensors/tensors_pb2_grpc.py b/gen/proto/py/stabilityai/tensors/tensors_pb2_grpc.py similarity index 100% rename from gen/proto/py/coreweave/tensors/tensors_pb2_grpc.py rename to gen/proto/py/stabilityai/tensors/tensors_pb2_grpc.py diff --git a/gen/proto/swift/coreweave/tensors/tensors.pb.swift b/gen/proto/swift/stabilityai/tensors/tensors.pb.swift similarity index 99% rename from gen/proto/swift/coreweave/tensors/tensors.pb.swift rename to gen/proto/swift/stabilityai/tensors/tensors.pb.swift index 6526112..d42a8a2 100644 --- a/gen/proto/swift/coreweave/tensors/tensors.pb.swift +++ b/gen/proto/swift/stabilityai/tensors/tensors.pb.swift @@ -2,7 +2,7 @@ // swift-format-ignore-file // // Generated by the Swift generator plugin for the protocol buffer compiler. -// Source: coreweave/tensors/tensors.proto +// Source: stabilityai/tensors/tensors.proto // // For information on using the generated types, please see the documentation: // https://github.com/apple/swift-protobuf/ diff --git a/src/proto/stabilityai/tensors/tensors.proto b/src/proto/stabilityai/tensors/tensors.proto new file mode 100644 index 0000000..26c5e05 --- /dev/null +++ b/src/proto/stabilityai/tensors/tensors.proto @@ -0,0 +1,54 @@ +syntax = 'proto3'; +package tensors; +option go_package = "github.com/coreweave/tensorizer/tensors"; + +enum Dtype { + DT_INVALID = 0; + DT_FLOAT32 = 1; + DT_FLOAT64 = 2; + DT_FLOAT16 = 3; + DT_BFLOAT16 = 4; + DT_COMPLEX32 = 5; + DT_COMPLEX64 = 6; + DT_COMPLEX128 = 7; + DT_UINT8 = 8; + DT_INT8 = 9; + DT_INT16 = 10; + DT_INT32 = 11; + DT_INT64 = 12; + DT_BOOL = 13; + DT_QUINT8 = 14; + DT_QINT8 = 15; + DT_QINT32 = 16; + DT_QUINT4_2 = 17; +} + +enum AttributeType { + AT_PARAMETER = 0; + AT_BUFFER = 1; +} + +message Tensor { + Dtype dtype = 1; + repeated int64 shape = 2; + bytes data = 3; + optional AttributeType attr_type = 4; +} + +message Attribute { + string name = 1; + oneof value { + Module module = 3; + Tensor tensor = 4; + string string = 5; + int64 int64 = 6; + float float = 7; + bool bool = 8; + } +} + +message Module { + string name = 1; + repeated string names = 2; + repeated Attribute attributes = 3; +} From 8a6a87011f94aa1d723fdf7525e751b235e021c7 Mon Sep 17 00:00:00 2001 From: Stephan Auerhahn Date: Thu, 11 May 2023 09:19:06 +0000 Subject: [PATCH 07/20] change root --- .../platform}/dashboard/v1/dashboard.pb.go | 1032 ++++++++--------- .../dashboard/v1/dashboard_grpc.pb.go | 4 +- .../dashboardv1connect/dashboard.connect.go | 4 +- .../platform}/engines/v1/engines.pb.go | 222 ++-- .../platform}/engines/v1/engines_grpc.pb.go | 4 +- .../v1/enginesv1connect/engines.connect.go | 4 +- .../platform}/generation/v1/generation.pb.go | 544 ++++----- .../generation/v1/generation_grpc.pb.go | 4 +- .../generationv1connect/generation.connect.go | 4 +- .../platform}/project/v1/project.pb.go | 828 ++++++------- .../platform}/project/v1/project_grpc.pb.go | 4 +- .../v1/projectv1connect/project.connect.go | 4 +- .../tensors/tensors.pb.go | 224 ++-- .../dashboard/v1/dashboard_connect.d.ts | 2 +- .../dashboard/v1/dashboard_connect.js | 2 +- .../platform}/dashboard/v1/dashboard_pb.d.ts | 2 +- .../platform}/dashboard/v1/dashboard_pb.js | 2 +- .../platform}/engines/v1/engines_connect.d.ts | 2 +- .../platform}/engines/v1/engines_connect.js | 2 +- .../platform}/engines/v1/engines_pb.d.ts | 2 +- .../platform}/engines/v1/engines_pb.js | 2 +- .../generation/v1/generation_connect.d.ts | 2 +- .../generation/v1/generation_connect.js | 2 +- .../generation/v1/generation_pb.d.ts | 2 +- .../platform}/generation/v1/generation_pb.js | 2 +- .../platform}/project/v1/project_connect.d.ts | 2 +- .../platform}/project/v1/project_connect.js | 2 +- .../platform}/project/v1/project_pb.d.ts | 2 +- .../platform}/project/v1/project_pb.js | 2 +- .../tensors/tensors_pb.d.ts | 2 +- .../tensors/tensors_pb.js | 2 +- .../api/dashboard/v1/APIKeyFindRequestKt.kt | 2 +- .../stabilityai/api/dashboard/v1/APIKeyKt.kt | 2 +- .../api/dashboard/v1/APIKeyRequestKt.kt | 2 +- .../api/dashboard/v1/AutoChargeIntentKt.kt | 2 +- .../stabilityai/api/dashboard/v1/ChargeKt.kt | 2 +- .../stabilityai/api/dashboard/v1/ChargesKt.kt | 2 +- .../api/dashboard/v1/ClientSettingsKt.kt | 2 +- .../api/dashboard/v1/CostDataKt.kt | 2 +- .../api/dashboard/v1/CostTotalKt.kt | 2 +- .../v1/CreateAutoChargeIntentRequestKt.kt | 2 +- .../api/dashboard/v1/CreateChargeRequestKt.kt | 2 +- .../api/dashboard/v1/DashboardProtoKt.kt | 2 +- .../dashboard/v1/DashboardServiceClient.kt | 2 +- .../v1/DashboardServiceClientInterface.kt | 2 +- .../api/dashboard/v1/EmptyRequestKt.kt | 2 +- .../dashboard/v1/GetAutoChargeRequestKt.kt | 2 +- .../api/dashboard/v1/GetChargesRequestKt.kt | 2 +- .../api/dashboard/v1/GetMetricsRequestKt.kt | 2 +- .../dashboard/v1/GetOrganizationRequestKt.kt | 2 +- .../stabilityai/api/dashboard/v1/MetricsKt.kt | 2 +- .../dashboard/v1/OrganizationAutoChargeKt.kt | 2 +- .../api/dashboard/v1/OrganizationGrantKt.kt | 2 +- .../api/dashboard/v1/OrganizationKt.kt | 2 +- .../api/dashboard/v1/OrganizationMemberKt.kt | 2 +- .../dashboard/v1/OrganizationPaymentInfoKt.kt | 2 +- .../api/dashboard/v1/TotalMetricsDataKt.kt | 2 +- .../v1/UpdateDefaultOrganizationRequestKt.kt | 2 +- .../dashboard/v1/UpdateUserInfoRequestKt.kt | 2 +- .../api/dashboard/v1/UsageMetricKt.kt | 2 +- .../stabilityai/api/dashboard/v1/UserKt.kt | 2 +- .../v1/UserPasswordChangeTicketKt.kt | 2 +- .../platformapis/engines/v1/EngineInfoKt.kt | 2 +- .../platformapis/engines/v1/EnginesKt.kt | 2 +- .../platformapis/engines/v1/EnginesProtoKt.kt | 2 +- .../engines/v1/EnginesServiceClient.kt | 2 +- .../v1/EnginesServiceClientInterface.kt | 2 +- .../engines/v1/ListEnginesRequestKt.kt | 2 +- .../generation/v1/AnswerBatchKt.kt | 2 +- .../platformapis/generation/v1/AnswerKt.kt | 2 +- .../generation/v1/AnswerMetaKt.kt | 2 +- .../platformapis/generation/v1/ArtifactKt.kt | 2 +- .../generation/v1/AssetParametersKt.kt | 2 +- .../generation/v1/CameraParametersKt.kt | 2 +- .../generation/v1/ChainRequestKt.kt | 2 +- .../generation/v1/ClassifierCategoryKt.kt | 2 +- .../generation/v1/ClassifierConceptKt.kt | 2 +- .../generation/v1/ClassifierParametersKt.kt | 2 +- .../generation/v1/ConditionerParametersKt.kt | 2 +- .../generation/v1/CutoutParametersKt.kt | 2 +- .../generation/v1/GenerationProtoKt.kt | 2 +- .../generation/v1/GenerationServiceClient.kt | 2 +- .../v1/GenerationServiceClientInterface.kt | 2 +- .../v1/GuidanceInstanceParametersKt.kt | 2 +- .../generation/v1/GuidanceParametersKt.kt | 2 +- .../v1/GuidanceScheduleParametersKt.kt | 2 +- .../generation/v1/ImageParametersKt.kt | 2 +- .../generation/v1/InterpolateParametersKt.kt | 2 +- .../platformapis/generation/v1/ModelKt.kt | 2 +- .../platformapis/generation/v1/OnStatusKt.kt | 2 +- .../platformapis/generation/v1/PromptKt.kt | 2 +- .../generation/v1/PromptParametersKt.kt | 2 +- .../platformapis/generation/v1/RequestKt.kt | 2 +- .../generation/v1/SamplerParametersKt.kt | 2 +- .../generation/v1/ScheduleParametersKt.kt | 2 +- .../platformapis/generation/v1/StageKt.kt | 2 +- .../generation/v1/StepParameterKt.kt | 2 +- .../platformapis/generation/v1/TokenKt.kt | 2 +- .../platformapis/generation/v1/TokensKt.kt | 2 +- .../generation/v1/TransformCameraPoseKt.kt | 2 +- .../generation/v1/TransformColorAdjustKt.kt | 2 +- .../generation/v1/TransformDepthCalcKt.kt | 2 +- .../generation/v1/TransformMatrixKt.kt | 2 +- .../generation/v1/TransformParametersKt.kt | 2 +- .../generation/v1/TransformResampleKt.kt | 2 +- .../generation/v1/TransformTypeKt.kt | 2 +- .../project/v1/CreateProjectRequestKt.kt | 2 +- .../project/v1/DeleteAssetsRequestKt.kt | 2 +- .../project/v1/DeleteAssetsResponseKt.kt | 2 +- .../project/v1/DeleteProjectRequestKt.kt | 2 +- .../project/v1/GetProjectRequestKt.kt | 2 +- .../project/v1/ListProjectRequestKt.kt | 2 +- .../platformapis/project/v1/ProjectAssetKt.kt | 2 +- .../platformapis/project/v1/ProjectKt.kt | 2 +- .../platformapis/project/v1/ProjectProtoKt.kt | 2 +- .../project/v1/ProjectServiceClient.kt | 2 +- .../v1/ProjectServiceClientInterface.kt | 2 +- .../project/v1/QueryAssetsRequestKt.kt | 2 +- .../project/v1/QueryAssetsResponseKt.kt | 2 +- .../project/v1/TagAssetsRequestKt.kt | 2 +- .../project/v1/TagAssetsResponseKt.kt | 2 +- .../project/v1/UntagAssetsRequestKt.kt | 2 +- .../project/v1/UntagAssetsResponseKt.kt | 2 +- .../project/v1/UpdateProjectRequestKt.kt | 2 +- gen/proto/kt/com/tensors/AttributeKt.kt | 2 +- gen/proto/kt/com/tensors/ModuleKt.kt | 2 +- gen/proto/kt/com/tensors/TensorKt.kt | 2 +- gen/proto/kt/com/tensors/TensorsProtoKt.kt | 2 +- .../platform/dashboard/v1/dashboard_pb2.py | 85 ++ .../platform}/dashboard/v1/dashboard_pb2.pyi | 0 .../dashboard/v1/dashboard_pb2_grpc.py | 194 ++-- .../platform/engines/v1/engines_pb2.py | 37 + .../platform}/engines/v1/engines_pb2.pyi | 0 .../platform}/engines/v1/engines_pb2_grpc.py | 14 +- .../platform}/generation/v1/generation_pb2.py | 10 +- .../generation/v1/generation_pb2.pyi | 2 +- .../generation/v1/generation_pb2_grpc.py | 26 +- .../platform/project/v1/project_pb2.py | 78 ++ .../platform}/project/v1/project_pb2.pyi | 2 +- .../platform}/project/v1/project_pb2_grpc.py | 110 +- .../py/stability_api/tensors/tensors_pb2.py | 35 + .../tensors/tensors_pb2.pyi | 0 .../tensors/tensors_pb2_grpc.py | 0 .../dashboard/v1/dashboard_pb2.py | 85 -- .../platformapis/engines/v1/engines_pb2.py | 37 - .../platformapis/project/v1/project_pb2.py | 78 -- .../py/stabilityai/tensors/tensors_pb2.py | 35 - .../dashboard/v1/dashboard.connect.swift | 2 +- .../platform}/dashboard/v1/dashboard.pb.swift | 2 +- .../engines/v1/engines.connect.swift | 2 +- .../platform}/engines/v1/engines.pb.swift | 2 +- .../generation/v1/generation.connect.swift | 2 +- .../generation/v1/generation.pb.swift | 2 +- .../project/v1/project.connect.swift | 2 +- .../platform}/project/v1/project.pb.swift | 2 +- .../tensors/tensors.pb.swift | 2 +- pyproject.toml | 3 +- .../platform}/dashboard/v1/dashboard.proto | 2 +- .../platform}/engines/v1/engines.proto | 2 +- .../platform}/generation/v1/generation.proto | 4 +- .../platform}/project/v1/project.proto | 4 +- .../tensors/tensors.proto | 0 162 files changed, 1986 insertions(+), 1987 deletions(-) rename gen/proto/go/{stabilityai/platformapis => stability_api/platform}/dashboard/v1/dashboard.pb.go (60%) rename gen/proto/go/{stabilityai/platformapis => stability_api/platform}/dashboard/v1/dashboard_grpc.pb.go (99%) rename gen/proto/go/{stabilityai/platformapis => stability_api/platform}/dashboard/v1/dashboardv1connect/dashboard.connect.go (99%) rename gen/proto/go/{stabilityai/platformapis => stability_api/platform}/engines/v1/engines.pb.go (50%) rename gen/proto/go/{stabilityai/platformapis => stability_api/platform}/engines/v1/engines_grpc.pb.go (96%) rename gen/proto/go/{stabilityai/platformapis => stability_api/platform}/engines/v1/enginesv1connect/engines.connect.go (98%) rename gen/proto/go/{stabilityai/platformapis => stability_api/platform}/generation/v1/generation.pb.go (88%) rename gen/proto/go/{stabilityai/platformapis => stability_api/platform}/generation/v1/generation_grpc.pb.go (97%) rename gen/proto/go/{stabilityai/platformapis => stability_api/platform}/generation/v1/generationv1connect/generation.connect.go (98%) rename gen/proto/go/{stabilityai/platformapis => stability_api/platform}/project/v1/project.pb.go (63%) rename gen/proto/go/{stabilityai/platformapis => stability_api/platform}/project/v1/project_grpc.pb.go (99%) rename gen/proto/go/{stabilityai/platformapis => stability_api/platform}/project/v1/projectv1connect/project.connect.go (99%) rename gen/proto/go/{stabilityai => stability_api}/tensors/tensors.pb.go (54%) rename gen/proto/js/{stabilityai/platformapis => stability_api/platform}/dashboard/v1/dashboard_connect.d.ts (97%) rename gen/proto/js/{stabilityai/platformapis => stability_api/platform}/dashboard/v1/dashboard_connect.js (97%) rename gen/proto/js/{stabilityai/platformapis => stability_api/platform}/dashboard/v1/dashboard_pb.d.ts (99%) rename gen/proto/js/{stabilityai/platformapis => stability_api/platform}/dashboard/v1/dashboard_pb.js (98%) rename gen/proto/js/{stabilityai/platformapis => stability_api/platform}/engines/v1/engines_connect.d.ts (84%) rename gen/proto/js/{stabilityai/platformapis => stability_api/platform}/engines/v1/engines_connect.js (82%) rename gen/proto/js/{stabilityai/platformapis => stability_api/platform}/engines/v1/engines_pb.d.ts (96%) rename gen/proto/js/{stabilityai/platformapis => stability_api/platform}/engines/v1/engines_pb.js (93%) rename gen/proto/js/{stabilityai/platformapis => stability_api/platform}/generation/v1/generation_connect.d.ts (88%) rename gen/proto/js/{stabilityai/platformapis => stability_api/platform}/generation/v1/generation_connect.js (86%) rename gen/proto/js/{stabilityai/platformapis => stability_api/platform}/generation/v1/generation_pb.d.ts (99%) rename gen/proto/js/{stabilityai/platformapis => stability_api/platform}/generation/v1/generation_pb.js (99%) rename gen/proto/js/{stabilityai/platformapis => stability_api/platform}/project/v1/project_connect.d.ts (96%) rename gen/proto/js/{stabilityai/platformapis => stability_api/platform}/project/v1/project_connect.js (95%) rename gen/proto/js/{stabilityai/platformapis => stability_api/platform}/project/v1/project_pb.d.ts (99%) rename gen/proto/js/{stabilityai/platformapis => stability_api/platform}/project/v1/project_pb.js (98%) rename gen/proto/js/{stabilityai => stability_api}/tensors/tensors_pb.d.ts (98%) rename gen/proto/js/{stabilityai => stability_api}/tensors/tensors_pb.js (96%) create mode 100644 gen/proto/py/stability_api/platform/dashboard/v1/dashboard_pb2.py rename gen/proto/py/{stabilityai/platformapis => stability_api/platform}/dashboard/v1/dashboard_pb2.pyi (100%) rename gen/proto/py/{stabilityai/platformapis => stability_api/platform}/dashboard/v1/dashboard_pb2_grpc.py (61%) create mode 100644 gen/proto/py/stability_api/platform/engines/v1/engines_pb2.py rename gen/proto/py/{stabilityai/platformapis => stability_api/platform}/engines/v1/engines_pb2.pyi (100%) rename gen/proto/py/{stabilityai/platformapis => stability_api/platform}/engines/v1/engines_pb2_grpc.py (70%) rename gen/proto/py/{stabilityai/platformapis => stability_api/platform}/generation/v1/generation_pb2.py (94%) rename gen/proto/py/{stabilityai/platformapis => stability_api/platform}/generation/v1/generation_pb2.pyi (99%) rename gen/proto/py/{stabilityai/platformapis => stability_api/platform}/generation/v1/generation_pb2_grpc.py (65%) create mode 100644 gen/proto/py/stability_api/platform/project/v1/project_pb2.py rename gen/proto/py/{stabilityai/platformapis => stability_api/platform}/project/v1/project_pb2.pyi (99%) rename gen/proto/py/{stabilityai/platformapis => stability_api/platform}/project/v1/project_pb2_grpc.py (61%) create mode 100644 gen/proto/py/stability_api/tensors/tensors_pb2.py rename gen/proto/py/{stabilityai => stability_api}/tensors/tensors_pb2.pyi (100%) rename gen/proto/py/{stabilityai => stability_api}/tensors/tensors_pb2_grpc.py (100%) delete mode 100644 gen/proto/py/stabilityai/platformapis/dashboard/v1/dashboard_pb2.py delete mode 100644 gen/proto/py/stabilityai/platformapis/engines/v1/engines_pb2.py delete mode 100644 gen/proto/py/stabilityai/platformapis/project/v1/project_pb2.py delete mode 100644 gen/proto/py/stabilityai/tensors/tensors_pb2.py rename gen/proto/swift/{stabilityai/platformapis => stability_api/platform}/dashboard/v1/dashboard.connect.swift (99%) rename gen/proto/swift/{stabilityai/platformapis => stability_api/platform}/dashboard/v1/dashboard.pb.swift (99%) rename gen/proto/swift/{stabilityai/platformapis => stability_api/platform}/engines/v1/engines.connect.swift (95%) rename gen/proto/swift/{stabilityai/platformapis => stability_api/platform}/engines/v1/engines.pb.swift (99%) rename gen/proto/swift/{stabilityai/platformapis => stability_api/platform}/generation/v1/generation.connect.swift (97%) rename gen/proto/swift/{stabilityai/platformapis => stability_api/platform}/generation/v1/generation.pb.swift (99%) rename gen/proto/swift/{stabilityai/platformapis => stability_api/platform}/project/v1/project.connect.swift (99%) rename gen/proto/swift/{stabilityai/platformapis => stability_api/platform}/project/v1/project.pb.swift (99%) rename gen/proto/swift/{stabilityai => stability_api}/tensors/tensors.pb.swift (99%) rename src/proto/{stabilityai/platformapis => stability_api/platform}/dashboard/v1/dashboard.proto (98%) rename src/proto/{stabilityai/platformapis => stability_api/platform}/engines/v1/engines.proto (92%) rename src/proto/{stabilityai/platformapis => stability_api/platform}/generation/v1/generation.proto (99%) rename src/proto/{stabilityai/platformapis => stability_api/platform}/project/v1/project.proto (98%) rename src/proto/{stabilityai => stability_api}/tensors/tensors.proto (100%) diff --git a/gen/proto/go/stabilityai/platformapis/dashboard/v1/dashboard.pb.go b/gen/proto/go/stability_api/platform/dashboard/v1/dashboard.pb.go similarity index 60% rename from gen/proto/go/stabilityai/platformapis/dashboard/v1/dashboard.pb.go rename to gen/proto/go/stability_api/platform/dashboard/v1/dashboard.pb.go index 9aec74a..5d9b49a 100644 --- a/gen/proto/go/stabilityai/platformapis/dashboard/v1/dashboard.pb.go +++ b/gen/proto/go/stability_api/platform/dashboard/v1/dashboard.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.30.0 // protoc (unknown) -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto package dashboardv1 @@ -53,11 +53,11 @@ func (x OrganizationRole) String() string { } func (OrganizationRole) Descriptor() protoreflect.EnumDescriptor { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_enumTypes[0].Descriptor() + return file_stability_api_platform_dashboard_v1_dashboard_proto_enumTypes[0].Descriptor() } func (OrganizationRole) Type() protoreflect.EnumType { - return &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_enumTypes[0] + return &file_stability_api_platform_dashboard_v1_dashboard_proto_enumTypes[0] } func (x OrganizationRole) Number() protoreflect.EnumNumber { @@ -66,7 +66,7 @@ func (x OrganizationRole) Number() protoreflect.EnumNumber { // Deprecated: Use OrganizationRole.Descriptor instead. func (OrganizationRole) EnumDescriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{0} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{0} } type OrganizationMember struct { @@ -83,7 +83,7 @@ type OrganizationMember struct { func (x *OrganizationMember) Reset() { *x = OrganizationMember{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[0] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -96,7 +96,7 @@ func (x *OrganizationMember) String() string { func (*OrganizationMember) ProtoMessage() {} func (x *OrganizationMember) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[0] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -109,7 +109,7 @@ func (x *OrganizationMember) ProtoReflect() protoreflect.Message { // Deprecated: Use OrganizationMember.ProtoReflect.Descriptor instead. func (*OrganizationMember) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{0} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{0} } func (x *OrganizationMember) GetOrganization() *Organization { @@ -154,7 +154,7 @@ type OrganizationGrant struct { func (x *OrganizationGrant) Reset() { *x = OrganizationGrant{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[1] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -167,7 +167,7 @@ func (x *OrganizationGrant) String() string { func (*OrganizationGrant) ProtoMessage() {} func (x *OrganizationGrant) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[1] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -180,7 +180,7 @@ func (x *OrganizationGrant) ProtoReflect() protoreflect.Message { // Deprecated: Use OrganizationGrant.ProtoReflect.Descriptor instead. func (*OrganizationGrant) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{1} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{1} } func (x *OrganizationGrant) GetAmountGranted() float64 { @@ -223,7 +223,7 @@ type OrganizationPaymentInfo struct { func (x *OrganizationPaymentInfo) Reset() { *x = OrganizationPaymentInfo{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[2] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -236,7 +236,7 @@ func (x *OrganizationPaymentInfo) String() string { func (*OrganizationPaymentInfo) ProtoMessage() {} func (x *OrganizationPaymentInfo) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[2] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -249,7 +249,7 @@ func (x *OrganizationPaymentInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use OrganizationPaymentInfo.ProtoReflect.Descriptor instead. func (*OrganizationPaymentInfo) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{2} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{2} } func (x *OrganizationPaymentInfo) GetBalance() float64 { @@ -279,7 +279,7 @@ type OrganizationAutoCharge struct { func (x *OrganizationAutoCharge) Reset() { *x = OrganizationAutoCharge{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[3] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -292,7 +292,7 @@ func (x *OrganizationAutoCharge) String() string { func (*OrganizationAutoCharge) ProtoMessage() {} func (x *OrganizationAutoCharge) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[3] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -305,7 +305,7 @@ func (x *OrganizationAutoCharge) ProtoReflect() protoreflect.Message { // Deprecated: Use OrganizationAutoCharge.ProtoReflect.Descriptor instead. func (*OrganizationAutoCharge) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{3} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{3} } func (x *OrganizationAutoCharge) GetEnabled() bool { @@ -346,7 +346,7 @@ type Organization struct { func (x *Organization) Reset() { *x = Organization{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[4] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -359,7 +359,7 @@ func (x *Organization) String() string { func (*Organization) ProtoMessage() {} func (x *Organization) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[4] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -372,7 +372,7 @@ func (x *Organization) ProtoReflect() protoreflect.Message { // Deprecated: Use Organization.ProtoReflect.Descriptor instead. func (*Organization) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{4} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{4} } func (x *Organization) GetId() string { @@ -437,7 +437,7 @@ type APIKey struct { func (x *APIKey) Reset() { *x = APIKey{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[5] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -450,7 +450,7 @@ func (x *APIKey) String() string { func (*APIKey) ProtoMessage() {} func (x *APIKey) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[5] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -463,7 +463,7 @@ func (x *APIKey) ProtoReflect() protoreflect.Message { // Deprecated: Use APIKey.ProtoReflect.Descriptor instead. func (*APIKey) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{5} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{5} } func (x *APIKey) GetKey() string { @@ -505,7 +505,7 @@ type User struct { func (x *User) Reset() { *x = User{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[6] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -518,7 +518,7 @@ func (x *User) String() string { func (*User) ProtoMessage() {} func (x *User) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[6] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -531,7 +531,7 @@ func (x *User) ProtoReflect() protoreflect.Message { // Deprecated: Use User.ProtoReflect.Descriptor instead. func (*User) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{6} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{6} } func (x *User) GetId() string { @@ -602,7 +602,7 @@ type CostData struct { func (x *CostData) Reset() { *x = CostData{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[7] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -615,7 +615,7 @@ func (x *CostData) String() string { func (*CostData) ProtoMessage() {} func (x *CostData) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[7] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -628,7 +628,7 @@ func (x *CostData) ProtoReflect() protoreflect.Message { // Deprecated: Use CostData.ProtoReflect.Descriptor instead. func (*CostData) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{7} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{7} } func (x *CostData) GetAmountTokens() uint32 { @@ -661,7 +661,7 @@ type UsageMetric struct { func (x *UsageMetric) Reset() { *x = UsageMetric{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[8] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -674,7 +674,7 @@ func (x *UsageMetric) String() string { func (*UsageMetric) ProtoMessage() {} func (x *UsageMetric) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[8] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -687,7 +687,7 @@ func (x *UsageMetric) ProtoReflect() protoreflect.Message { // Deprecated: Use UsageMetric.ProtoReflect.Descriptor instead. func (*UsageMetric) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{8} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{8} } func (x *UsageMetric) GetOperation() string { @@ -744,7 +744,7 @@ type CostTotal struct { func (x *CostTotal) Reset() { *x = CostTotal{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[9] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -757,7 +757,7 @@ func (x *CostTotal) String() string { func (*CostTotal) ProtoMessage() {} func (x *CostTotal) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[9] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -770,7 +770,7 @@ func (x *CostTotal) ProtoReflect() protoreflect.Message { // Deprecated: Use CostTotal.ProtoReflect.Descriptor instead. func (*CostTotal) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{9} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{9} } func (x *CostTotal) GetAmountTokens() uint32 { @@ -799,7 +799,7 @@ type TotalMetricsData struct { func (x *TotalMetricsData) Reset() { *x = TotalMetricsData{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[10] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -812,7 +812,7 @@ func (x *TotalMetricsData) String() string { func (*TotalMetricsData) ProtoMessage() {} func (x *TotalMetricsData) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[10] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -825,7 +825,7 @@ func (x *TotalMetricsData) ProtoReflect() protoreflect.Message { // Deprecated: Use TotalMetricsData.ProtoReflect.Descriptor instead. func (*TotalMetricsData) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{10} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{10} } func (x *TotalMetricsData) GetInputTotal() *CostTotal { @@ -854,7 +854,7 @@ type Metrics struct { func (x *Metrics) Reset() { *x = Metrics{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[11] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -867,7 +867,7 @@ func (x *Metrics) String() string { func (*Metrics) ProtoMessage() {} func (x *Metrics) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[11] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -880,7 +880,7 @@ func (x *Metrics) ProtoReflect() protoreflect.Message { // Deprecated: Use Metrics.ProtoReflect.Descriptor instead. func (*Metrics) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{11} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{11} } func (x *Metrics) GetMetrics() []*UsageMetric { @@ -906,7 +906,7 @@ type EmptyRequest struct { func (x *EmptyRequest) Reset() { *x = EmptyRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[12] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -919,7 +919,7 @@ func (x *EmptyRequest) String() string { func (*EmptyRequest) ProtoMessage() {} func (x *EmptyRequest) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[12] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -932,7 +932,7 @@ func (x *EmptyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use EmptyRequest.ProtoReflect.Descriptor instead. func (*EmptyRequest) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{12} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{12} } type GetOrganizationRequest struct { @@ -946,7 +946,7 @@ type GetOrganizationRequest struct { func (x *GetOrganizationRequest) Reset() { *x = GetOrganizationRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[13] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -959,7 +959,7 @@ func (x *GetOrganizationRequest) String() string { func (*GetOrganizationRequest) ProtoMessage() {} func (x *GetOrganizationRequest) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[13] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -972,7 +972,7 @@ func (x *GetOrganizationRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetOrganizationRequest.ProtoReflect.Descriptor instead. func (*GetOrganizationRequest) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{13} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{13} } func (x *GetOrganizationRequest) GetId() string { @@ -997,7 +997,7 @@ type GetMetricsRequest struct { func (x *GetMetricsRequest) Reset() { *x = GetMetricsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[14] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1010,7 +1010,7 @@ func (x *GetMetricsRequest) String() string { func (*GetMetricsRequest) ProtoMessage() {} func (x *GetMetricsRequest) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[14] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1023,7 +1023,7 @@ func (x *GetMetricsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetMetricsRequest.ProtoReflect.Descriptor instead. func (*GetMetricsRequest) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{14} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{14} } func (x *GetMetricsRequest) GetOrganizationId() string { @@ -1072,7 +1072,7 @@ type APIKeyRequest struct { func (x *APIKeyRequest) Reset() { *x = APIKeyRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[15] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1085,7 +1085,7 @@ func (x *APIKeyRequest) String() string { func (*APIKeyRequest) ProtoMessage() {} func (x *APIKeyRequest) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[15] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1098,7 +1098,7 @@ func (x *APIKeyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use APIKeyRequest.ProtoReflect.Descriptor instead. func (*APIKeyRequest) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{15} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{15} } func (x *APIKeyRequest) GetIsSecret() bool { @@ -1119,7 +1119,7 @@ type APIKeyFindRequest struct { func (x *APIKeyFindRequest) Reset() { *x = APIKeyFindRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[16] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1132,7 +1132,7 @@ func (x *APIKeyFindRequest) String() string { func (*APIKeyFindRequest) ProtoMessage() {} func (x *APIKeyFindRequest) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[16] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1145,7 +1145,7 @@ func (x *APIKeyFindRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use APIKeyFindRequest.ProtoReflect.Descriptor instead. func (*APIKeyFindRequest) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{16} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{16} } func (x *APIKeyFindRequest) GetId() string { @@ -1166,7 +1166,7 @@ type UpdateDefaultOrganizationRequest struct { func (x *UpdateDefaultOrganizationRequest) Reset() { *x = UpdateDefaultOrganizationRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[17] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1179,7 +1179,7 @@ func (x *UpdateDefaultOrganizationRequest) String() string { func (*UpdateDefaultOrganizationRequest) ProtoMessage() {} func (x *UpdateDefaultOrganizationRequest) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[17] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1192,7 +1192,7 @@ func (x *UpdateDefaultOrganizationRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateDefaultOrganizationRequest.ProtoReflect.Descriptor instead. func (*UpdateDefaultOrganizationRequest) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{17} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{17} } func (x *UpdateDefaultOrganizationRequest) GetOrganizationId() string { @@ -1213,7 +1213,7 @@ type ClientSettings struct { func (x *ClientSettings) Reset() { *x = ClientSettings{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[18] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1226,7 +1226,7 @@ func (x *ClientSettings) String() string { func (*ClientSettings) ProtoMessage() {} func (x *ClientSettings) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[18] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1239,7 +1239,7 @@ func (x *ClientSettings) ProtoReflect() protoreflect.Message { // Deprecated: Use ClientSettings.ProtoReflect.Descriptor instead. func (*ClientSettings) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{18} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{18} } func (x *ClientSettings) GetSettings() []byte { @@ -1263,7 +1263,7 @@ type CreateAutoChargeIntentRequest struct { func (x *CreateAutoChargeIntentRequest) Reset() { *x = CreateAutoChargeIntentRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[19] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1276,7 +1276,7 @@ func (x *CreateAutoChargeIntentRequest) String() string { func (*CreateAutoChargeIntentRequest) ProtoMessage() {} func (x *CreateAutoChargeIntentRequest) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[19] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1289,7 +1289,7 @@ func (x *CreateAutoChargeIntentRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateAutoChargeIntentRequest.ProtoReflect.Descriptor instead. func (*CreateAutoChargeIntentRequest) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{19} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{19} } func (x *CreateAutoChargeIntentRequest) GetOrganizationId() string { @@ -1332,7 +1332,7 @@ type CreateChargeRequest struct { func (x *CreateChargeRequest) Reset() { *x = CreateChargeRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[20] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1345,7 +1345,7 @@ func (x *CreateChargeRequest) String() string { func (*CreateChargeRequest) ProtoMessage() {} func (x *CreateChargeRequest) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[20] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1358,7 +1358,7 @@ func (x *CreateChargeRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateChargeRequest.ProtoReflect.Descriptor instead. func (*CreateChargeRequest) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{20} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{20} } func (x *CreateChargeRequest) GetAmount() uint64 { @@ -1388,7 +1388,7 @@ type GetChargesRequest struct { func (x *GetChargesRequest) Reset() { *x = GetChargesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[21] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1401,7 +1401,7 @@ func (x *GetChargesRequest) String() string { func (*GetChargesRequest) ProtoMessage() {} func (x *GetChargesRequest) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[21] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1414,7 +1414,7 @@ func (x *GetChargesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetChargesRequest.ProtoReflect.Descriptor instead. func (*GetChargesRequest) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{21} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{21} } func (x *GetChargesRequest) GetOrganizationId() string { @@ -1454,7 +1454,7 @@ type Charge struct { func (x *Charge) Reset() { *x = Charge{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[22] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1467,7 +1467,7 @@ func (x *Charge) String() string { func (*Charge) ProtoMessage() {} func (x *Charge) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[22] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1480,7 +1480,7 @@ func (x *Charge) ProtoReflect() protoreflect.Message { // Deprecated: Use Charge.ProtoReflect.Descriptor instead. func (*Charge) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{22} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{22} } func (x *Charge) GetId() string { @@ -1536,7 +1536,7 @@ type Charges struct { func (x *Charges) Reset() { *x = Charges{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[23] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1549,7 +1549,7 @@ func (x *Charges) String() string { func (*Charges) ProtoMessage() {} func (x *Charges) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[23] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1562,7 +1562,7 @@ func (x *Charges) ProtoReflect() protoreflect.Message { // Deprecated: Use Charges.ProtoReflect.Descriptor instead. func (*Charges) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{23} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{23} } func (x *Charges) GetCharges() []*Charge { @@ -1583,7 +1583,7 @@ type GetAutoChargeRequest struct { func (x *GetAutoChargeRequest) Reset() { *x = GetAutoChargeRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[24] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1596,7 +1596,7 @@ func (x *GetAutoChargeRequest) String() string { func (*GetAutoChargeRequest) ProtoMessage() {} func (x *GetAutoChargeRequest) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[24] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1609,7 +1609,7 @@ func (x *GetAutoChargeRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetAutoChargeRequest.ProtoReflect.Descriptor instead. func (*GetAutoChargeRequest) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{24} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{24} } func (x *GetAutoChargeRequest) GetOrganizationId() string { @@ -1635,7 +1635,7 @@ type AutoChargeIntent struct { func (x *AutoChargeIntent) Reset() { *x = AutoChargeIntent{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[25] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1648,7 +1648,7 @@ func (x *AutoChargeIntent) String() string { func (*AutoChargeIntent) ProtoMessage() {} func (x *AutoChargeIntent) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[25] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1661,7 +1661,7 @@ func (x *AutoChargeIntent) ProtoReflect() protoreflect.Message { // Deprecated: Use AutoChargeIntent.ProtoReflect.Descriptor instead. func (*AutoChargeIntent) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{25} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{25} } func (x *AutoChargeIntent) GetId() string { @@ -1717,7 +1717,7 @@ type UpdateUserInfoRequest struct { func (x *UpdateUserInfoRequest) Reset() { *x = UpdateUserInfoRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[26] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1730,7 +1730,7 @@ func (x *UpdateUserInfoRequest) String() string { func (*UpdateUserInfoRequest) ProtoMessage() {} func (x *UpdateUserInfoRequest) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[26] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1743,7 +1743,7 @@ func (x *UpdateUserInfoRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateUserInfoRequest.ProtoReflect.Descriptor instead. func (*UpdateUserInfoRequest) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{26} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{26} } func (x *UpdateUserInfoRequest) GetEmail() string { @@ -1764,7 +1764,7 @@ type UserPasswordChangeTicket struct { func (x *UserPasswordChangeTicket) Reset() { *x = UserPasswordChangeTicket{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[27] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1777,7 +1777,7 @@ func (x *UserPasswordChangeTicket) String() string { func (*UserPasswordChangeTicket) ProtoMessage() {} func (x *UserPasswordChangeTicket) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[27] + mi := &file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1790,7 +1790,7 @@ func (x *UserPasswordChangeTicket) ProtoReflect() protoreflect.Message { // Deprecated: Use UserPasswordChangeTicket.ProtoReflect.Descriptor instead. func (*UserPasswordChangeTicket) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{27} + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP(), []int{27} } func (x *UserPasswordChangeTicket) GetTicket() string { @@ -1800,414 +1800,414 @@ func (x *UserPasswordChangeTicket) GetTicket() string { return "" } -var File_stabilityai_platformapis_dashboard_v1_dashboard_proto protoreflect.FileDescriptor +var File_stability_api_platform_dashboard_v1_dashboard_proto protoreflect.FileDescriptor -var file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDesc = []byte{ - 0x0a, 0x35, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2f, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x64, 0x61, 0x73, 0x68, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x2e, 0x76, 0x31, 0x22, 0x8d, 0x02, 0x0a, 0x12, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, - 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x4e, 0x0a, 0x0c, - 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, - 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, - 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x04, - 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x74, 0x61, - 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, - 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x48, 0x00, - 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x42, 0x0a, 0x04, 0x72, 0x6f, 0x6c, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, - 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x1d, 0x0a, - 0x0a, 0x69, 0x73, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x09, 0x69, 0x73, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x42, 0x07, 0x0a, 0x05, - 0x5f, 0x75, 0x73, 0x65, 0x72, 0x22, 0x99, 0x01, 0x0a, 0x11, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, - 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x61, - 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x01, 0x52, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, - 0x65, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x75, 0x73, 0x65, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0a, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x55, - 0x73, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, - 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, - 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x41, - 0x74, 0x22, 0x7c, 0x0a, 0x17, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, 0x07, - 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x62, - 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x22, - 0x61, 0x0a, 0x16, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, - 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, - 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, - 0x6c, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, - 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, - 0x41, 0x74, 0x22, 0xc6, 0x03, 0x0a, 0x0c, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4a, 0x0a, 0x07, 0x6d, 0x65, 0x6d, - 0x62, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, +var file_stability_api_platform_dashboard_v1_dashboard_proto_rawDesc = []byte{ + 0x0a, 0x33, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2f, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x2e, 0x76, 0x31, 0x22, 0x8d, 0x02, 0x0a, 0x12, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x4e, 0x0a, 0x0c, 0x6f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x2a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, + 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x6f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x04, 0x75, 0x73, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x48, 0x00, 0x52, 0x04, + 0x75, 0x73, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x42, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x69, + 0x73, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x09, 0x69, 0x73, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x75, + 0x73, 0x65, 0x72, 0x22, 0x99, 0x01, 0x0a, 0x11, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x01, 0x52, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, + 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0a, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x55, 0x73, 0x65, + 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x41, 0x74, + 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, + 0x7c, 0x0a, 0x17, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, + 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x61, + 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x62, 0x61, 0x6c, + 0x61, 0x6e, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x22, 0x61, 0x0a, + 0x16, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x75, 0x74, + 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, + 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, + 0x22, 0xc6, 0x03, 0x0a, 0x0c, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4a, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, + 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, + 0x65, 0x72, 0x73, 0x12, 0x5d, 0x0a, 0x0c, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, + 0x6e, 0x66, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x74, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, + 0x48, 0x00, 0x52, 0x0b, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x88, + 0x01, 0x01, 0x12, 0x31, 0x0a, 0x12, 0x73, 0x74, 0x72, 0x69, 0x70, 0x65, 0x5f, 0x63, 0x75, 0x73, + 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, + 0x52, 0x10, 0x73, 0x74, 0x72, 0x69, 0x70, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, + 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x5a, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x63, 0x68, + 0x61, 0x72, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, - 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x07, 0x6d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x5d, 0x0a, 0x0c, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, - 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x74, - 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, - 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, - 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x6e, - 0x66, 0x6f, 0x48, 0x00, 0x52, 0x0b, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, - 0x6f, 0x88, 0x01, 0x01, 0x12, 0x31, 0x0a, 0x12, 0x73, 0x74, 0x72, 0x69, 0x70, 0x65, 0x5f, 0x63, - 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, - 0x48, 0x01, 0x52, 0x10, 0x73, 0x74, 0x72, 0x69, 0x70, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, - 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x5a, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x6f, 0x5f, - 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x73, - 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, - 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, - 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, - 0x67, 0x65, 0x48, 0x02, 0x52, 0x0a, 0x61, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, - 0x88, 0x01, 0x01, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, - 0x69, 0x6e, 0x66, 0x6f, 0x42, 0x15, 0x0a, 0x13, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x70, 0x65, 0x5f, - 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, - 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x22, 0x56, 0x0a, 0x06, 0x41, - 0x50, 0x49, 0x4b, 0x65, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x73, 0x65, - 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x53, 0x65, - 0x63, 0x72, 0x65, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, - 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x64, 0x41, 0x74, 0x22, 0xf6, 0x02, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x07, - 0x61, 0x75, 0x74, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, - 0x06, 0x61, 0x75, 0x74, 0x68, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x72, - 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x69, 0x63, 0x74, - 0x75, 0x72, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x56, 0x0a, 0x0d, 0x6f, 0x72, 0x67, - 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, - 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, - 0x65, 0x72, 0x52, 0x0d, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x12, 0x3f, 0x0a, 0x08, 0x61, 0x70, 0x69, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x07, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, - 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, - 0x76, 0x31, 0x2e, 0x41, 0x50, 0x49, 0x4b, 0x65, 0x79, 0x52, 0x07, 0x61, 0x70, 0x69, 0x4b, 0x65, - 0x79, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, - 0x74, 0x12, 0x2a, 0x0a, 0x0e, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, - 0x69, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x48, 0x01, 0x52, 0x0d, 0x65, 0x6d, 0x61, - 0x69, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, - 0x08, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x69, 0x64, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x65, 0x6d, - 0x61, 0x69, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x22, 0x56, 0x0a, 0x08, - 0x43, 0x6f, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x6d, 0x6f, 0x75, - 0x6e, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x0c, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x25, 0x0a, - 0x0e, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x73, 0x22, 0xaa, 0x02, 0x0a, 0x0b, 0x55, 0x73, 0x61, 0x67, 0x65, 0x4d, 0x65, - 0x74, 0x72, 0x69, 0x63, 0x12, 0x1c, 0x0a, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x45, 0x0a, 0x0a, 0x69, 0x6e, - 0x70, 0x75, 0x74, 0x5f, 0x63, 0x6f, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, + 0x48, 0x02, 0x52, 0x0a, 0x61, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x88, 0x01, + 0x01, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, + 0x66, 0x6f, 0x42, 0x15, 0x0a, 0x13, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x70, 0x65, 0x5f, 0x63, 0x75, + 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x61, 0x75, + 0x74, 0x6f, 0x5f, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x22, 0x56, 0x0a, 0x06, 0x41, 0x50, 0x49, + 0x4b, 0x65, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x73, 0x65, 0x63, 0x72, + 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x53, 0x65, 0x63, 0x72, + 0x65, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, + 0x74, 0x22, 0xf6, 0x02, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x07, 0x61, 0x75, + 0x74, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x61, + 0x75, 0x74, 0x68, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x72, 0x6f, 0x66, + 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0e, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x69, 0x63, 0x74, 0x75, 0x72, + 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x56, 0x0a, 0x0d, 0x6f, 0x72, 0x67, 0x61, 0x6e, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, - 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x73, - 0x74, 0x12, 0x47, 0x0a, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x63, 0x6f, 0x73, 0x74, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x0a, - 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x75, 0x73, - 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, - 0x88, 0x01, 0x01, 0x12, 0x33, 0x0a, 0x15, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x14, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x75, 0x73, 0x65, - 0x72, 0x22, 0x57, 0x0a, 0x09, 0x43, 0x6f, 0x73, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x23, - 0x0a, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x6f, 0x6b, - 0x65, 0x6e, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x63, 0x72, - 0x65, 0x64, 0x69, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0d, 0x61, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x22, 0xa8, 0x01, 0x0a, 0x10, 0x54, - 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x44, 0x61, 0x74, 0x61, 0x12, - 0x48, 0x0a, 0x0b, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, + 0x52, 0x0d, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x3f, 0x0a, 0x08, 0x61, 0x70, 0x69, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x24, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, + 0x2e, 0x41, 0x50, 0x49, 0x4b, 0x65, 0x79, 0x52, 0x07, 0x61, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x73, + 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, + 0x2a, 0x0a, 0x0e, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, + 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x48, 0x01, 0x52, 0x0d, 0x65, 0x6d, 0x61, 0x69, 0x6c, + 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, + 0x61, 0x75, 0x74, 0x68, 0x5f, 0x69, 0x64, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x65, 0x6d, 0x61, 0x69, + 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x22, 0x56, 0x0a, 0x08, 0x43, 0x6f, + 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, + 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x61, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x61, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x01, 0x52, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x73, 0x22, 0xaa, 0x02, 0x0a, 0x0b, 0x55, 0x73, 0x61, 0x67, 0x65, 0x4d, 0x65, 0x74, 0x72, + 0x69, 0x63, 0x12, 0x1c, 0x0a, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x45, 0x0a, 0x0a, 0x69, 0x6e, 0x70, 0x75, + 0x74, 0x5f, 0x63, 0x6f, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x73, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, + 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x73, 0x74, + 0x44, 0x61, 0x74, 0x61, 0x52, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x73, 0x74, 0x12, + 0x47, 0x0a, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x63, 0x6f, 0x73, 0x74, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x73, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x0a, 0x69, - 0x6e, 0x70, 0x75, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x4a, 0x0a, 0x0c, 0x6f, 0x75, 0x74, - 0x70, 0x75, 0x74, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x27, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, - 0x6f, 0x73, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, - 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0x94, 0x01, 0x0a, 0x07, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, - 0x73, 0x12, 0x43, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x0a, 0x6f, 0x75, + 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x88, 0x01, + 0x01, 0x12, 0x33, 0x0a, 0x15, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x14, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x22, + 0x57, 0x0a, 0x09, 0x43, 0x6f, 0x73, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x23, 0x0a, 0x0d, + 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x22, 0xa8, 0x01, 0x0a, 0x10, 0x54, 0x6f, 0x74, + 0x61, 0x6c, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x44, 0x61, 0x74, 0x61, 0x12, 0x48, 0x0a, + 0x0b, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, - 0x31, 0x2e, 0x55, 0x73, 0x61, 0x67, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x07, 0x6d, - 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x44, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, - 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0x0e, 0x0a, 0x0c, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x28, 0x0a, 0x16, - 0x47, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xdf, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x4d, 0x65, - 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, - 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, - 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x66, 0x72, 0x6f, - 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x46, 0x72, - 0x6f, 0x6d, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x6f, 0x12, 0x3d, 0x0a, - 0x1b, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x18, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x50, 0x65, 0x72, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x42, 0x0a, 0x0a, 0x08, - 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0x0a, 0x0d, 0x41, 0x50, 0x49, 0x4b, - 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, - 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, - 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 0x23, 0x0a, 0x11, 0x41, 0x50, 0x49, 0x4b, 0x65, 0x79, - 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x4b, 0x0a, 0x20, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4f, 0x72, 0x67, 0x61, - 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, - 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x2c, 0x0a, 0x0e, 0x43, 0x6c, 0x69, 0x65, - 0x6e, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, - 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x73, 0x65, - 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0xbd, 0x01, 0x0a, 0x1d, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, - 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, - 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, 0x5f, 0x6d, 0x61, 0x78, - 0x69, 0x6d, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x6d, 0x6f, 0x6e, 0x74, - 0x68, 0x6c, 0x79, 0x4d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x69, - 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x0c, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, - 0x25, 0x0a, 0x0e, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x43, - 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x22, 0x56, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, - 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, - 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, - 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x76, - 0x0a, 0x11, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, - 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, - 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x09, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x19, 0x0a, 0x08, 0x72, - 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x72, - 0x61, 0x6e, 0x67, 0x65, 0x54, 0x6f, 0x22, 0xb8, 0x01, 0x0a, 0x06, 0x43, 0x68, 0x61, 0x72, 0x67, - 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x04, 0x70, 0x61, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, - 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, - 0x65, 0x69, 0x70, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x79, 0x6d, - 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6d, - 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x73, 0x22, 0x49, 0x0a, 0x07, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x07, - 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, + 0x31, 0x2e, 0x43, 0x6f, 0x73, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x0a, 0x69, 0x6e, 0x70, + 0x75, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x4a, 0x0a, 0x0c, 0x6f, 0x75, 0x74, 0x70, 0x75, + 0x74, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, - 0x72, 0x67, 0x65, 0x52, 0x07, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x73, 0x22, 0x3f, 0x0a, 0x14, - 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, - 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0xd9, 0x01, - 0x0a, 0x10, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, - 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x69, - 0x6e, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, - 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, - 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x64, 0x41, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, 0x5f, - 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x6d, - 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, 0x4d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x12, 0x23, 0x0a, - 0x0d, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x61, 0x6d, 0x6f, 0x75, - 0x6e, 0x74, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x22, 0x3c, 0x0a, 0x15, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x19, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x48, 0x00, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, - 0x06, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x32, 0x0a, 0x18, 0x55, 0x73, 0x65, 0x72, 0x50, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x69, 0x63, - 0x6b, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2a, 0x39, 0x0a, 0x10, 0x4f, - 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x12, - 0x0a, 0x0a, 0x06, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x41, - 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x41, 0x4e, 0x54, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x4f, - 0x57, 0x4e, 0x45, 0x52, 0x10, 0x02, 0x32, 0x9a, 0x0e, 0x0a, 0x10, 0x44, 0x61, 0x73, 0x68, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x57, 0x0a, 0x05, 0x47, - 0x65, 0x74, 0x4d, 0x65, 0x12, 0x2a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, - 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, - 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x22, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, + 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x73, + 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x54, 0x6f, + 0x74, 0x61, 0x6c, 0x22, 0x94, 0x01, 0x0a, 0x07, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, + 0x43, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x29, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, - 0x55, 0x73, 0x65, 0x72, 0x12, 0x73, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, - 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, - 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, - 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, - 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, - 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x64, 0x0a, 0x0a, 0x47, 0x65, 0x74, - 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, - 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, - 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, - 0x61, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x50, 0x49, 0x4b, 0x65, 0x79, 0x12, - 0x2b, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x41, - 0x50, 0x49, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x73, - 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, - 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x50, 0x49, 0x4b, - 0x65, 0x79, 0x12, 0x65, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x50, 0x49, 0x4b, - 0x65, 0x79, 0x12, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, - 0x31, 0x2e, 0x41, 0x50, 0x49, 0x4b, 0x65, 0x79, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x55, 0x73, 0x61, 0x67, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x07, 0x6d, 0x65, 0x74, + 0x72, 0x69, 0x63, 0x73, 0x12, 0x44, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, - 0x76, 0x31, 0x2e, 0x41, 0x50, 0x49, 0x4b, 0x65, 0x79, 0x12, 0x7f, 0x0a, 0x19, 0x55, 0x70, 0x64, + 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x44, + 0x61, 0x74, 0x61, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0x0e, 0x0a, 0x0c, 0x45, 0x6d, + 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x28, 0x0a, 0x16, 0x47, 0x65, + 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x22, 0xdf, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x72, + 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, + 0x01, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x46, 0x72, 0x6f, 0x6d, + 0x12, 0x19, 0x0a, 0x08, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x07, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x6f, 0x12, 0x3d, 0x0a, 0x1b, 0x69, + 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x18, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x50, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0x0a, 0x0d, 0x41, 0x50, 0x49, 0x4b, 0x65, 0x79, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x73, 0x65, + 0x63, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x53, 0x65, + 0x63, 0x72, 0x65, 0x74, 0x22, 0x23, 0x0a, 0x11, 0x41, 0x50, 0x49, 0x4b, 0x65, 0x79, 0x46, 0x69, + 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x4b, 0x0a, 0x20, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, - 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x66, 0x61, - 0x75, 0x6c, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x6d, 0x0a, 0x11, 0x47, 0x65, - 0x74, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, - 0x2a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x45, - 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x74, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, + 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x2c, 0x0a, 0x0e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, + 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x73, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x73, 0x22, 0xbd, 0x01, 0x0a, 0x1d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, + 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, + 0x27, 0x0a, 0x0f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, 0x5f, 0x6d, 0x61, 0x78, 0x69, 0x6d, + 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, + 0x79, 0x4d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x69, 0x6e, 0x69, + 0x6d, 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x0c, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x25, 0x0a, + 0x0e, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x73, 0x22, 0x56, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x68, + 0x61, 0x72, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x76, 0x0a, 0x11, + 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, + 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x61, + 0x6e, 0x67, 0x65, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, + 0x72, 0x61, 0x6e, 0x67, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x61, 0x6e, + 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x72, 0x61, 0x6e, + 0x67, 0x65, 0x54, 0x6f, 0x22, 0xb8, 0x01, 0x0a, 0x06, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x12, 0x0a, 0x04, 0x70, 0x61, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x70, + 0x61, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x5f, 0x6c, + 0x69, 0x6e, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, + 0x70, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, + 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x61, + 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x22, + 0x49, 0x0a, 0x07, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x07, 0x63, 0x68, + 0x61, 0x72, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, - 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, - 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x6f, 0x0a, 0x11, 0x53, 0x65, 0x74, - 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x2c, + 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x72, 0x67, + 0x65, 0x52, 0x07, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x73, 0x22, 0x3f, 0x0a, 0x14, 0x47, 0x65, + 0x74, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x72, 0x67, + 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0xd9, 0x01, 0x0a, 0x10, + 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4c, + 0x69, 0x6e, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x41, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, 0x5f, 0x6d, 0x61, + 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x6d, 0x6f, 0x6e, + 0x74, 0x68, 0x6c, 0x79, 0x4d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x12, 0x23, 0x0a, 0x0d, 0x6d, + 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x0c, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, + 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x73, 0x22, 0x3c, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x19, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x00, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, + 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x32, 0x0a, 0x18, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x73, + 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x69, 0x63, 0x6b, 0x65, + 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2a, 0x39, 0x0a, 0x10, 0x4f, 0x72, 0x67, + 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0a, 0x0a, + 0x06, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x41, 0x43, 0x43, + 0x4f, 0x55, 0x4e, 0x54, 0x41, 0x4e, 0x54, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x4f, 0x57, 0x4e, + 0x45, 0x52, 0x10, 0x02, 0x32, 0x9a, 0x0e, 0x0a, 0x10, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x57, 0x0a, 0x05, 0x47, 0x65, 0x74, + 0x4d, 0x65, 0x12, 0x2a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, + 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, - 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x1a, 0x2c, 0x2e, 0x73, - 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, - 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x69, 0x65, - 0x6e, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x69, 0x0a, 0x0e, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x33, 0x2e, 0x73, - 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, - 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x22, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, - 0x2e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x80, 0x01, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x69, - 0x63, 0x6b, 0x65, 0x74, 0x12, 0x2a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, - 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, - 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x36, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, - 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x5f, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2a, 0x2e, 0x73, 0x74, 0x61, 0x62, - 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, + 0x65, 0x72, 0x12, 0x73, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x67, 0x0a, 0x0c, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x12, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x62, - 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, - 0x68, 0x61, 0x72, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x73, - 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, - 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x72, - 0x67, 0x65, 0x12, 0x64, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x73, + 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x73, 0x74, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, + 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x64, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x4d, 0x65, + 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x61, 0x0a, + 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x50, 0x49, 0x4b, 0x65, 0x79, 0x12, 0x2b, 0x2e, + 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x50, 0x49, + 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x73, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, + 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x50, 0x49, 0x4b, 0x65, 0x79, + 0x12, 0x65, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x50, 0x49, 0x4b, 0x65, 0x79, 0x12, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x25, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x41, 0x50, 0x49, 0x4b, 0x65, 0x79, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x24, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x73, 0x12, 0x85, 0x01, 0x0a, 0x16, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, - 0x65, 0x6e, 0x74, 0x12, 0x3b, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x2e, 0x41, 0x50, 0x49, 0x4b, 0x65, 0x79, 0x12, 0x7f, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, + 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x6d, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x43, + 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x2a, 0x2e, + 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, + 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x6f, 0x0a, 0x11, 0x53, 0x65, 0x74, 0x43, 0x6c, + 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x2c, 0x2e, 0x73, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, + 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x69, 0x65, + 0x6e, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, + 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, + 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x69, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x33, 0x2e, 0x73, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, + 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x22, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55, + 0x73, 0x65, 0x72, 0x12, 0x80, 0x01, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x69, 0x63, 0x6b, + 0x65, 0x74, 0x12, 0x2a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, + 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, + 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, + 0x65, 0x72, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x5f, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, - 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, - 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, - 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, - 0x12, 0x85, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x43, - 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x3b, 0x2e, 0x73, 0x74, - 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, - 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x67, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x12, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, + 0x72, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x73, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, + 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, + 0x12, 0x64, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x73, 0x12, 0x2f, + 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x25, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x68, 0x61, 0x72, 0x67, 0x65, 0x73, 0x12, 0x85, 0x01, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, - 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, - 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x79, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, - 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, - 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, - 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, - 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, - 0x65, 0x6e, 0x74, 0x42, 0xac, 0x02, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x61, 0x62, + 0x74, 0x12, 0x3b, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, + 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, + 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, + 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x85, + 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, + 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x3b, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x42, 0x0e, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x65, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, - 0x2d, 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, - 0x65, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, - 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x2f, 0x76, 0x31, 0x3b, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x76, - 0x31, 0xa2, 0x02, 0x03, 0x53, 0x41, 0x44, 0xaa, 0x02, 0x1c, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, - 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x41, 0x70, 0x69, 0x2e, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1c, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x61, 0x69, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x28, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x79, 0x61, 0x69, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x1f, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x3a, 0x3a, - 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x3a, 0x3a, - 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, + 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, + 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x79, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, + 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x2e, + 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, + 0x2e, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, + 0x74, 0x42, 0xaa, 0x02, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x42, 0x0e, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x63, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, 0x61, + 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, + 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x74, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x76, + 0x31, 0x3b, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x76, 0x31, 0xa2, 0x02, 0x03, + 0x53, 0x41, 0x44, 0xaa, 0x02, 0x1c, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x2e, 0x41, 0x70, 0x69, 0x2e, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, + 0x56, 0x31, 0xca, 0x02, 0x1c, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5c, 0x56, + 0x31, 0xe2, 0x02, 0x28, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, + 0x41, 0x70, 0x69, 0x5c, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5c, 0x56, 0x31, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1f, 0x53, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, + 0x3a, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescOnce sync.Once - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescData = file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDesc + file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescOnce sync.Once + file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescData = file_stability_api_platform_dashboard_v1_dashboard_proto_rawDesc ) -func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescGZIP() []byte { - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescOnce.Do(func() { - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescData = protoimpl.X.CompressGZIP(file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescData) +func file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescGZIP() []byte { + file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescOnce.Do(func() { + file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescData = protoimpl.X.CompressGZIP(file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescData) }) - return file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDescData + return file_stability_api_platform_dashboard_v1_dashboard_proto_rawDescData } -var file_stabilityai_platformapis_dashboard_v1_dashboard_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes = make([]protoimpl.MessageInfo, 28) -var file_stabilityai_platformapis_dashboard_v1_dashboard_proto_goTypes = []interface{}{ +var file_stability_api_platform_dashboard_v1_dashboard_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes = make([]protoimpl.MessageInfo, 28) +var file_stability_api_platform_dashboard_v1_dashboard_proto_goTypes = []interface{}{ (OrganizationRole)(0), // 0: stabilityai.api.dashboard.v1.OrganizationRole (*OrganizationMember)(nil), // 1: stabilityai.api.dashboard.v1.OrganizationMember (*OrganizationGrant)(nil), // 2: stabilityai.api.dashboard.v1.OrganizationGrant @@ -2238,7 +2238,7 @@ var file_stabilityai_platformapis_dashboard_v1_dashboard_proto_goTypes = []inter (*UpdateUserInfoRequest)(nil), // 27: stabilityai.api.dashboard.v1.UpdateUserInfoRequest (*UserPasswordChangeTicket)(nil), // 28: stabilityai.api.dashboard.v1.UserPasswordChangeTicket } -var file_stabilityai_platformapis_dashboard_v1_dashboard_proto_depIdxs = []int32{ +var file_stability_api_platform_dashboard_v1_dashboard_proto_depIdxs = []int32{ 5, // 0: stabilityai.api.dashboard.v1.OrganizationMember.organization:type_name -> stabilityai.api.dashboard.v1.Organization 7, // 1: stabilityai.api.dashboard.v1.OrganizationMember.user:type_name -> stabilityai.api.dashboard.v1.User 0, // 2: stabilityai.api.dashboard.v1.OrganizationMember.role:type_name -> stabilityai.api.dashboard.v1.OrganizationRole @@ -2294,13 +2294,13 @@ var file_stabilityai_platformapis_dashboard_v1_dashboard_proto_depIdxs = []int32 0, // [0:16] is the sub-list for field type_name } -func init() { file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() } -func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { - if File_stabilityai_platformapis_dashboard_v1_dashboard_proto != nil { +func init() { file_stability_api_platform_dashboard_v1_dashboard_proto_init() } +func file_stability_api_platform_dashboard_v1_dashboard_proto_init() { + if File_stability_api_platform_dashboard_v1_dashboard_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*OrganizationMember); i { case 0: return &v.state @@ -2312,7 +2312,7 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { return nil } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*OrganizationGrant); i { case 0: return &v.state @@ -2324,7 +2324,7 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { return nil } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*OrganizationPaymentInfo); i { case 0: return &v.state @@ -2336,7 +2336,7 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { return nil } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*OrganizationAutoCharge); i { case 0: return &v.state @@ -2348,7 +2348,7 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { return nil } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Organization); i { case 0: return &v.state @@ -2360,7 +2360,7 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { return nil } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*APIKey); i { case 0: return &v.state @@ -2372,7 +2372,7 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { return nil } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*User); i { case 0: return &v.state @@ -2384,7 +2384,7 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { return nil } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CostData); i { case 0: return &v.state @@ -2396,7 +2396,7 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { return nil } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UsageMetric); i { case 0: return &v.state @@ -2408,7 +2408,7 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { return nil } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CostTotal); i { case 0: return &v.state @@ -2420,7 +2420,7 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { return nil } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TotalMetricsData); i { case 0: return &v.state @@ -2432,7 +2432,7 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { return nil } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Metrics); i { case 0: return &v.state @@ -2444,7 +2444,7 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { return nil } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EmptyRequest); i { case 0: return &v.state @@ -2456,7 +2456,7 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { return nil } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetOrganizationRequest); i { case 0: return &v.state @@ -2468,7 +2468,7 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { return nil } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetMetricsRequest); i { case 0: return &v.state @@ -2480,7 +2480,7 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { return nil } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*APIKeyRequest); i { case 0: return &v.state @@ -2492,7 +2492,7 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { return nil } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*APIKeyFindRequest); i { case 0: return &v.state @@ -2504,7 +2504,7 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { return nil } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateDefaultOrganizationRequest); i { case 0: return &v.state @@ -2516,7 +2516,7 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { return nil } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ClientSettings); i { case 0: return &v.state @@ -2528,7 +2528,7 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { return nil } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateAutoChargeIntentRequest); i { case 0: return &v.state @@ -2540,7 +2540,7 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { return nil } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateChargeRequest); i { case 0: return &v.state @@ -2552,7 +2552,7 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { return nil } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetChargesRequest); i { case 0: return &v.state @@ -2564,7 +2564,7 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { return nil } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Charge); i { case 0: return &v.state @@ -2576,7 +2576,7 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { return nil } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Charges); i { case 0: return &v.state @@ -2588,7 +2588,7 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { return nil } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetAutoChargeRequest); i { case 0: return &v.state @@ -2600,7 +2600,7 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { return nil } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AutoChargeIntent); i { case 0: return &v.state @@ -2612,7 +2612,7 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { return nil } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateUserInfoRequest); i { case 0: return &v.state @@ -2624,7 +2624,7 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { return nil } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UserPasswordChangeTicket); i { case 0: return &v.state @@ -2637,29 +2637,29 @@ func file_stabilityai_platformapis_dashboard_v1_dashboard_proto_init() { } } } - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[0].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[4].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[6].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[8].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[14].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes[26].OneofWrappers = []interface{}{} + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[4].OneofWrappers = []interface{}{} + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[6].OneofWrappers = []interface{}{} + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[8].OneofWrappers = []interface{}{} + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[14].OneofWrappers = []interface{}{} + file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes[26].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDesc, + RawDescriptor: file_stability_api_platform_dashboard_v1_dashboard_proto_rawDesc, NumEnums: 1, NumMessages: 28, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_stabilityai_platformapis_dashboard_v1_dashboard_proto_goTypes, - DependencyIndexes: file_stabilityai_platformapis_dashboard_v1_dashboard_proto_depIdxs, - EnumInfos: file_stabilityai_platformapis_dashboard_v1_dashboard_proto_enumTypes, - MessageInfos: file_stabilityai_platformapis_dashboard_v1_dashboard_proto_msgTypes, + GoTypes: file_stability_api_platform_dashboard_v1_dashboard_proto_goTypes, + DependencyIndexes: file_stability_api_platform_dashboard_v1_dashboard_proto_depIdxs, + EnumInfos: file_stability_api_platform_dashboard_v1_dashboard_proto_enumTypes, + MessageInfos: file_stability_api_platform_dashboard_v1_dashboard_proto_msgTypes, }.Build() - File_stabilityai_platformapis_dashboard_v1_dashboard_proto = out.File - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_rawDesc = nil - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_goTypes = nil - file_stabilityai_platformapis_dashboard_v1_dashboard_proto_depIdxs = nil + File_stability_api_platform_dashboard_v1_dashboard_proto = out.File + file_stability_api_platform_dashboard_v1_dashboard_proto_rawDesc = nil + file_stability_api_platform_dashboard_v1_dashboard_proto_goTypes = nil + file_stability_api_platform_dashboard_v1_dashboard_proto_depIdxs = nil } diff --git a/gen/proto/go/stabilityai/platformapis/dashboard/v1/dashboard_grpc.pb.go b/gen/proto/go/stability_api/platform/dashboard/v1/dashboard_grpc.pb.go similarity index 99% rename from gen/proto/go/stabilityai/platformapis/dashboard/v1/dashboard_grpc.pb.go rename to gen/proto/go/stability_api/platform/dashboard/v1/dashboard_grpc.pb.go index 9cd15dc..c9485ea 100644 --- a/gen/proto/go/stabilityai/platformapis/dashboard/v1/dashboard_grpc.pb.go +++ b/gen/proto/go/stability_api/platform/dashboard/v1/dashboard_grpc.pb.go @@ -2,7 +2,7 @@ // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto package dashboardv1 @@ -668,5 +668,5 @@ var DashboardService_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "stabilityai/platformapis/dashboard/v1/dashboard.proto", + Metadata: "stability_api/platform/dashboard/v1/dashboard.proto", } diff --git a/gen/proto/go/stabilityai/platformapis/dashboard/v1/dashboardv1connect/dashboard.connect.go b/gen/proto/go/stability_api/platform/dashboard/v1/dashboardv1connect/dashboard.connect.go similarity index 99% rename from gen/proto/go/stabilityai/platformapis/dashboard/v1/dashboardv1connect/dashboard.connect.go rename to gen/proto/go/stability_api/platform/dashboard/v1/dashboardv1connect/dashboard.connect.go index a671489..d22f824 100644 --- a/gen/proto/go/stabilityai/platformapis/dashboard/v1/dashboardv1connect/dashboard.connect.go +++ b/gen/proto/go/stability_api/platform/dashboard/v1/dashboardv1connect/dashboard.connect.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-connect-go. DO NOT EDIT. // -// Source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// Source: stability_api/platform/dashboard/v1/dashboard.proto package dashboardv1connect @@ -8,7 +8,7 @@ import ( context "context" errors "errors" connect_go "github.com/bufbuild/connect-go" - v1 "github.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/dashboard/v1" + v1 "github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/dashboard/v1" http "net/http" strings "strings" ) diff --git a/gen/proto/go/stabilityai/platformapis/engines/v1/engines.pb.go b/gen/proto/go/stability_api/platform/engines/v1/engines.pb.go similarity index 50% rename from gen/proto/go/stabilityai/platformapis/engines/v1/engines.pb.go rename to gen/proto/go/stability_api/platform/engines/v1/engines.pb.go index 6b8eae7..bb4309d 100644 --- a/gen/proto/go/stabilityai/platformapis/engines/v1/engines.pb.go +++ b/gen/proto/go/stability_api/platform/engines/v1/engines.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.30.0 // protoc (unknown) -// source: stabilityai/platformapis/engines/v1/engines.proto +// source: stability_api/platform/engines/v1/engines.proto package enginesv1 @@ -63,11 +63,11 @@ func (x EngineType) String() string { } func (EngineType) Descriptor() protoreflect.EnumDescriptor { - return file_stabilityai_platformapis_engines_v1_engines_proto_enumTypes[0].Descriptor() + return file_stability_api_platform_engines_v1_engines_proto_enumTypes[0].Descriptor() } func (EngineType) Type() protoreflect.EnumType { - return &file_stabilityai_platformapis_engines_v1_engines_proto_enumTypes[0] + return &file_stability_api_platform_engines_v1_engines_proto_enumTypes[0] } func (x EngineType) Number() protoreflect.EnumNumber { @@ -76,7 +76,7 @@ func (x EngineType) Number() protoreflect.EnumNumber { // Deprecated: Use EngineType.Descriptor instead. func (EngineType) EnumDescriptor() ([]byte, []int) { - return file_stabilityai_platformapis_engines_v1_engines_proto_rawDescGZIP(), []int{0} + return file_stability_api_platform_engines_v1_engines_proto_rawDescGZIP(), []int{0} } type EngineTokenizer int32 @@ -109,11 +109,11 @@ func (x EngineTokenizer) String() string { } func (EngineTokenizer) Descriptor() protoreflect.EnumDescriptor { - return file_stabilityai_platformapis_engines_v1_engines_proto_enumTypes[1].Descriptor() + return file_stability_api_platform_engines_v1_engines_proto_enumTypes[1].Descriptor() } func (EngineTokenizer) Type() protoreflect.EnumType { - return &file_stabilityai_platformapis_engines_v1_engines_proto_enumTypes[1] + return &file_stability_api_platform_engines_v1_engines_proto_enumTypes[1] } func (x EngineTokenizer) Number() protoreflect.EnumNumber { @@ -122,7 +122,7 @@ func (x EngineTokenizer) Number() protoreflect.EnumNumber { // Deprecated: Use EngineTokenizer.Descriptor instead. func (EngineTokenizer) EnumDescriptor() ([]byte, []int) { - return file_stabilityai_platformapis_engines_v1_engines_proto_rawDescGZIP(), []int{1} + return file_stability_api_platform_engines_v1_engines_proto_rawDescGZIP(), []int{1} } // Engine info struct @@ -143,7 +143,7 @@ type EngineInfo struct { func (x *EngineInfo) Reset() { *x = EngineInfo{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_engines_v1_engines_proto_msgTypes[0] + mi := &file_stability_api_platform_engines_v1_engines_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -156,7 +156,7 @@ func (x *EngineInfo) String() string { func (*EngineInfo) ProtoMessage() {} func (x *EngineInfo) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_engines_v1_engines_proto_msgTypes[0] + mi := &file_stability_api_platform_engines_v1_engines_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -169,7 +169,7 @@ func (x *EngineInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use EngineInfo.ProtoReflect.Descriptor instead. func (*EngineInfo) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_engines_v1_engines_proto_rawDescGZIP(), []int{0} + return file_stability_api_platform_engines_v1_engines_proto_rawDescGZIP(), []int{0} } func (x *EngineInfo) GetId() string { @@ -230,7 +230,7 @@ type ListEnginesRequest struct { func (x *ListEnginesRequest) Reset() { *x = ListEnginesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_engines_v1_engines_proto_msgTypes[1] + mi := &file_stability_api_platform_engines_v1_engines_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -243,7 +243,7 @@ func (x *ListEnginesRequest) String() string { func (*ListEnginesRequest) ProtoMessage() {} func (x *ListEnginesRequest) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_engines_v1_engines_proto_msgTypes[1] + mi := &file_stability_api_platform_engines_v1_engines_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -256,7 +256,7 @@ func (x *ListEnginesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListEnginesRequest.ProtoReflect.Descriptor instead. func (*ListEnginesRequest) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_engines_v1_engines_proto_rawDescGZIP(), []int{1} + return file_stability_api_platform_engines_v1_engines_proto_rawDescGZIP(), []int{1} } // Engine info list @@ -271,7 +271,7 @@ type Engines struct { func (x *Engines) Reset() { *x = Engines{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_engines_v1_engines_proto_msgTypes[2] + mi := &file_stability_api_platform_engines_v1_engines_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -284,7 +284,7 @@ func (x *Engines) String() string { func (*Engines) ProtoMessage() {} func (x *Engines) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_engines_v1_engines_proto_msgTypes[2] + mi := &file_stability_api_platform_engines_v1_engines_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -297,7 +297,7 @@ func (x *Engines) ProtoReflect() protoreflect.Message { // Deprecated: Use Engines.ProtoReflect.Descriptor instead. func (*Engines) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_engines_v1_engines_proto_rawDescGZIP(), []int{2} + return file_stability_api_platform_engines_v1_engines_proto_rawDescGZIP(), []int{2} } func (x *Engines) GetEngine() []*EngineInfo { @@ -307,101 +307,101 @@ func (x *Engines) GetEngine() []*EngineInfo { return nil } -var File_stabilityai_platformapis_engines_v1_engines_proto protoreflect.FileDescriptor - -var file_stabilityai_platformapis_engines_v1_engines_proto_rawDesc = []byte{ - 0x0a, 0x31, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2f, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x65, 0x6e, 0x67, 0x69, 0x6e, - 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x23, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, - 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, - 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x22, 0x97, 0x02, 0x0a, 0x0a, 0x45, 0x6e, 0x67, - 0x69, 0x6e, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x14, 0x0a, - 0x05, 0x72, 0x65, 0x61, 0x64, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x72, 0x65, - 0x61, 0x64, 0x79, 0x12, 0x43, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, - 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x79, - 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x52, 0x0a, 0x09, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, - 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, - 0x72, 0x52, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x22, 0x14, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x52, 0x0a, 0x07, 0x45, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, - 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, - 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2a, 0x5a, 0x0a, 0x0a, - 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x45, - 0x58, 0x54, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x49, 0x43, 0x54, 0x55, 0x52, 0x45, 0x10, - 0x01, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x55, 0x44, 0x49, 0x4f, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, - 0x56, 0x49, 0x44, 0x45, 0x4f, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4c, 0x41, 0x53, 0x53, - 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x53, - 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x10, 0x05, 0x2a, 0x25, 0x0a, 0x0f, 0x45, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x08, 0x0a, 0x04, 0x47, - 0x50, 0x54, 0x32, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x50, 0x49, 0x4c, 0x45, 0x10, 0x01, 0x32, - 0x88, 0x01, 0x0a, 0x0e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x12, 0x76, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x73, 0x12, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, - 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x61, - 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, - 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x22, 0x00, 0x42, 0xc9, 0x02, 0x0a, 0x27, 0x63, - 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, +var File_stability_api_platform_engines_v1_engines_proto protoreflect.FileDescriptor + +var file_stability_api_platform_engines_v1_engines_proto_rawDesc = []byte{ + 0x0a, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2f, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, + 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x23, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x61, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, 0x61, 0x69, 0x2f, - 0x61, 0x70, 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x67, - 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x62, - 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x61, 0x70, 0x69, 0x73, 0x2f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, - 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, 0x45, 0xaa, - 0x02, 0x23, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x50, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, - 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x23, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, - 0x5c, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x2f, 0x53, 0x74, - 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x5c, 0x56, - 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x26, - 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x3a, 0x3a, 0x50, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x3a, 0x3a, 0x45, 0x6e, 0x67, 0x69, 0x6e, - 0x65, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x22, 0x97, 0x02, 0x0a, 0x0a, 0x45, 0x6e, 0x67, 0x69, 0x6e, + 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x72, + 0x65, 0x61, 0x64, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x72, 0x65, 0x61, 0x64, + 0x79, 0x12, 0x43, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, 0x69, 0x6e, + 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x52, 0x0a, 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x69, + 0x7a, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x52, + 0x09, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, + 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x14, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x52, 0x0a, 0x07, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, + 0x73, 0x12, 0x47, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, + 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x49, 0x6e, + 0x66, 0x6f, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2a, 0x5a, 0x0a, 0x0a, 0x45, 0x6e, + 0x67, 0x69, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x45, 0x58, 0x54, + 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x49, 0x43, 0x54, 0x55, 0x52, 0x45, 0x10, 0x01, 0x12, + 0x09, 0x0a, 0x05, 0x41, 0x55, 0x44, 0x49, 0x4f, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x56, 0x49, + 0x44, 0x45, 0x4f, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4c, 0x41, 0x53, 0x53, 0x49, 0x46, + 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x54, 0x4f, + 0x52, 0x41, 0x47, 0x45, 0x10, 0x05, 0x2a, 0x25, 0x0a, 0x0f, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x08, 0x0a, 0x04, 0x47, 0x50, 0x54, + 0x32, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x50, 0x49, 0x4c, 0x45, 0x10, 0x01, 0x32, 0x88, 0x01, + 0x0a, 0x0e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x12, 0x76, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x12, + 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, 0x69, 0x6e, + 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, + 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x22, 0x00, 0x42, 0xc7, 0x02, 0x0a, 0x27, 0x63, 0x6f, 0x6d, + 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, + 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x5f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, 0x61, 0x69, 0x2f, 0x61, 0x70, + 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x67, 0x65, 0x6e, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x2f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x6e, 0x67, 0x69, + 0x6e, 0x65, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, 0x45, 0xaa, 0x02, 0x23, 0x53, 0x74, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x56, + 0x31, 0xca, 0x02, 0x23, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, + 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x45, 0x6e, 0x67, + 0x69, 0x6e, 0x65, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x2f, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, + 0x69, 0x73, 0x5c, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x3a, 0x3a, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x70, 0x69, 0x73, 0x3a, 0x3a, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x3a, 0x3a, + 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_stabilityai_platformapis_engines_v1_engines_proto_rawDescOnce sync.Once - file_stabilityai_platformapis_engines_v1_engines_proto_rawDescData = file_stabilityai_platformapis_engines_v1_engines_proto_rawDesc + file_stability_api_platform_engines_v1_engines_proto_rawDescOnce sync.Once + file_stability_api_platform_engines_v1_engines_proto_rawDescData = file_stability_api_platform_engines_v1_engines_proto_rawDesc ) -func file_stabilityai_platformapis_engines_v1_engines_proto_rawDescGZIP() []byte { - file_stabilityai_platformapis_engines_v1_engines_proto_rawDescOnce.Do(func() { - file_stabilityai_platformapis_engines_v1_engines_proto_rawDescData = protoimpl.X.CompressGZIP(file_stabilityai_platformapis_engines_v1_engines_proto_rawDescData) +func file_stability_api_platform_engines_v1_engines_proto_rawDescGZIP() []byte { + file_stability_api_platform_engines_v1_engines_proto_rawDescOnce.Do(func() { + file_stability_api_platform_engines_v1_engines_proto_rawDescData = protoimpl.X.CompressGZIP(file_stability_api_platform_engines_v1_engines_proto_rawDescData) }) - return file_stabilityai_platformapis_engines_v1_engines_proto_rawDescData + return file_stability_api_platform_engines_v1_engines_proto_rawDescData } -var file_stabilityai_platformapis_engines_v1_engines_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_stabilityai_platformapis_engines_v1_engines_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_stabilityai_platformapis_engines_v1_engines_proto_goTypes = []interface{}{ +var file_stability_api_platform_engines_v1_engines_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_stability_api_platform_engines_v1_engines_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_stability_api_platform_engines_v1_engines_proto_goTypes = []interface{}{ (EngineType)(0), // 0: stabilityai.platformapis.engines.v1.EngineType (EngineTokenizer)(0), // 1: stabilityai.platformapis.engines.v1.EngineTokenizer (*EngineInfo)(nil), // 2: stabilityai.platformapis.engines.v1.EngineInfo (*ListEnginesRequest)(nil), // 3: stabilityai.platformapis.engines.v1.ListEnginesRequest (*Engines)(nil), // 4: stabilityai.platformapis.engines.v1.Engines } -var file_stabilityai_platformapis_engines_v1_engines_proto_depIdxs = []int32{ +var file_stability_api_platform_engines_v1_engines_proto_depIdxs = []int32{ 0, // 0: stabilityai.platformapis.engines.v1.EngineInfo.type:type_name -> stabilityai.platformapis.engines.v1.EngineType 1, // 1: stabilityai.platformapis.engines.v1.EngineInfo.tokenizer:type_name -> stabilityai.platformapis.engines.v1.EngineTokenizer 2, // 2: stabilityai.platformapis.engines.v1.Engines.engine:type_name -> stabilityai.platformapis.engines.v1.EngineInfo @@ -414,13 +414,13 @@ var file_stabilityai_platformapis_engines_v1_engines_proto_depIdxs = []int32{ 0, // [0:3] is the sub-list for field type_name } -func init() { file_stabilityai_platformapis_engines_v1_engines_proto_init() } -func file_stabilityai_platformapis_engines_v1_engines_proto_init() { - if File_stabilityai_platformapis_engines_v1_engines_proto != nil { +func init() { file_stability_api_platform_engines_v1_engines_proto_init() } +func file_stability_api_platform_engines_v1_engines_proto_init() { + if File_stability_api_platform_engines_v1_engines_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_stabilityai_platformapis_engines_v1_engines_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_engines_v1_engines_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EngineInfo); i { case 0: return &v.state @@ -432,7 +432,7 @@ func file_stabilityai_platformapis_engines_v1_engines_proto_init() { return nil } } - file_stabilityai_platformapis_engines_v1_engines_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_engines_v1_engines_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListEnginesRequest); i { case 0: return &v.state @@ -444,7 +444,7 @@ func file_stabilityai_platformapis_engines_v1_engines_proto_init() { return nil } } - file_stabilityai_platformapis_engines_v1_engines_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_engines_v1_engines_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Engines); i { case 0: return &v.state @@ -461,19 +461,19 @@ func file_stabilityai_platformapis_engines_v1_engines_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_stabilityai_platformapis_engines_v1_engines_proto_rawDesc, + RawDescriptor: file_stability_api_platform_engines_v1_engines_proto_rawDesc, NumEnums: 2, NumMessages: 3, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_stabilityai_platformapis_engines_v1_engines_proto_goTypes, - DependencyIndexes: file_stabilityai_platformapis_engines_v1_engines_proto_depIdxs, - EnumInfos: file_stabilityai_platformapis_engines_v1_engines_proto_enumTypes, - MessageInfos: file_stabilityai_platformapis_engines_v1_engines_proto_msgTypes, + GoTypes: file_stability_api_platform_engines_v1_engines_proto_goTypes, + DependencyIndexes: file_stability_api_platform_engines_v1_engines_proto_depIdxs, + EnumInfos: file_stability_api_platform_engines_v1_engines_proto_enumTypes, + MessageInfos: file_stability_api_platform_engines_v1_engines_proto_msgTypes, }.Build() - File_stabilityai_platformapis_engines_v1_engines_proto = out.File - file_stabilityai_platformapis_engines_v1_engines_proto_rawDesc = nil - file_stabilityai_platformapis_engines_v1_engines_proto_goTypes = nil - file_stabilityai_platformapis_engines_v1_engines_proto_depIdxs = nil + File_stability_api_platform_engines_v1_engines_proto = out.File + file_stability_api_platform_engines_v1_engines_proto_rawDesc = nil + file_stability_api_platform_engines_v1_engines_proto_goTypes = nil + file_stability_api_platform_engines_v1_engines_proto_depIdxs = nil } diff --git a/gen/proto/go/stabilityai/platformapis/engines/v1/engines_grpc.pb.go b/gen/proto/go/stability_api/platform/engines/v1/engines_grpc.pb.go similarity index 96% rename from gen/proto/go/stabilityai/platformapis/engines/v1/engines_grpc.pb.go rename to gen/proto/go/stability_api/platform/engines/v1/engines_grpc.pb.go index 8d11a50..ff6f615 100644 --- a/gen/proto/go/stabilityai/platformapis/engines/v1/engines_grpc.pb.go +++ b/gen/proto/go/stability_api/platform/engines/v1/engines_grpc.pb.go @@ -2,7 +2,7 @@ // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) -// source: stabilityai/platformapis/engines/v1/engines.proto +// source: stability_api/platform/engines/v1/engines.proto package enginesv1 @@ -105,5 +105,5 @@ var EnginesService_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "stabilityai/platformapis/engines/v1/engines.proto", + Metadata: "stability_api/platform/engines/v1/engines.proto", } diff --git a/gen/proto/go/stabilityai/platformapis/engines/v1/enginesv1connect/engines.connect.go b/gen/proto/go/stability_api/platform/engines/v1/enginesv1connect/engines.connect.go similarity index 98% rename from gen/proto/go/stabilityai/platformapis/engines/v1/enginesv1connect/engines.connect.go rename to gen/proto/go/stability_api/platform/engines/v1/enginesv1connect/engines.connect.go index 3e54513..550f421 100644 --- a/gen/proto/go/stabilityai/platformapis/engines/v1/enginesv1connect/engines.connect.go +++ b/gen/proto/go/stability_api/platform/engines/v1/enginesv1connect/engines.connect.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-connect-go. DO NOT EDIT. // -// Source: stabilityai/platformapis/engines/v1/engines.proto +// Source: stability_api/platform/engines/v1/engines.proto package enginesv1connect @@ -8,7 +8,7 @@ import ( context "context" errors "errors" connect_go "github.com/bufbuild/connect-go" - v1 "github.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/engines/v1" + v1 "github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/engines/v1" http "net/http" strings "strings" ) diff --git a/gen/proto/go/stabilityai/platformapis/generation/v1/generation.pb.go b/gen/proto/go/stability_api/platform/generation/v1/generation.pb.go similarity index 88% rename from gen/proto/go/stabilityai/platformapis/generation/v1/generation.pb.go rename to gen/proto/go/stability_api/platform/generation/v1/generation.pb.go index 1d9fb01..55c2f6a 100644 --- a/gen/proto/go/stabilityai/platformapis/generation/v1/generation.pb.go +++ b/gen/proto/go/stability_api/platform/generation/v1/generation.pb.go @@ -2,12 +2,12 @@ // versions: // protoc-gen-go v1.30.0 // protoc (unknown) -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto package generationv1 import ( - tensors "github.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/tensors" + tensors "github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/tensors" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" structpb "google.golang.org/protobuf/types/known/structpb" @@ -61,11 +61,11 @@ func (x FinishReason) String() string { } func (FinishReason) Descriptor() protoreflect.EnumDescriptor { - return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[0].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[0].Descriptor() } func (FinishReason) Type() protoreflect.EnumType { - return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[0] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[0] } func (x FinishReason) Number() protoreflect.EnumNumber { @@ -74,7 +74,7 @@ func (x FinishReason) Number() protoreflect.EnumNumber { // Deprecated: Use FinishReason.Descriptor instead. func (FinishReason) EnumDescriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{0} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{0} } type ArtifactType int32 @@ -134,11 +134,11 @@ func (x ArtifactType) String() string { } func (ArtifactType) Descriptor() protoreflect.EnumDescriptor { - return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[1].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[1].Descriptor() } func (ArtifactType) Type() protoreflect.EnumType { - return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[1] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[1] } func (x ArtifactType) Number() protoreflect.EnumNumber { @@ -147,7 +147,7 @@ func (x ArtifactType) Number() protoreflect.EnumNumber { // Deprecated: Use ArtifactType.Descriptor instead. func (ArtifactType) EnumDescriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{1} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{1} } type MaskedAreaInit int32 @@ -183,11 +183,11 @@ func (x MaskedAreaInit) String() string { } func (MaskedAreaInit) Descriptor() protoreflect.EnumDescriptor { - return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[2].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[2].Descriptor() } func (MaskedAreaInit) Type() protoreflect.EnumType { - return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[2] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[2] } func (x MaskedAreaInit) Number() protoreflect.EnumNumber { @@ -196,7 +196,7 @@ func (x MaskedAreaInit) Number() protoreflect.EnumNumber { // Deprecated: Use MaskedAreaInit.Descriptor instead. func (MaskedAreaInit) EnumDescriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{2} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{2} } type WeightMethod int32 @@ -229,11 +229,11 @@ func (x WeightMethod) String() string { } func (WeightMethod) Descriptor() protoreflect.EnumDescriptor { - return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[3].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[3].Descriptor() } func (WeightMethod) Type() protoreflect.EnumType { - return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[3] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[3] } func (x WeightMethod) Number() protoreflect.EnumNumber { @@ -242,7 +242,7 @@ func (x WeightMethod) Number() protoreflect.EnumNumber { // Deprecated: Use WeightMethod.Descriptor instead. func (WeightMethod) EnumDescriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{3} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{3} } // DiffusionSampler identifies which sampler to use for Diffusion, and represents @@ -304,11 +304,11 @@ func (x DiffusionSampler) String() string { } func (DiffusionSampler) Descriptor() protoreflect.EnumDescriptor { - return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[4].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[4].Descriptor() } func (DiffusionSampler) Type() protoreflect.EnumType { - return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[4] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[4] } func (x DiffusionSampler) Number() protoreflect.EnumNumber { @@ -317,7 +317,7 @@ func (x DiffusionSampler) Number() protoreflect.EnumNumber { // Deprecated: Use DiffusionSampler.Descriptor instead. func (DiffusionSampler) EnumDescriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{4} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{4} } // Future, unimplemented. @@ -354,11 +354,11 @@ func (x Upscaler) String() string { } func (Upscaler) Descriptor() protoreflect.EnumDescriptor { - return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[5].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[5].Descriptor() } func (Upscaler) Type() protoreflect.EnumType { - return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[5] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[5] } func (x Upscaler) Number() protoreflect.EnumNumber { @@ -367,7 +367,7 @@ func (x Upscaler) Number() protoreflect.EnumNumber { // Deprecated: Use Upscaler.Descriptor instead. func (Upscaler) EnumDescriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{5} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{5} } // Presets for CLIP guidance. @@ -416,11 +416,11 @@ func (x GuidancePreset) String() string { } func (GuidancePreset) Descriptor() protoreflect.EnumDescriptor { - return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[6].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[6].Descriptor() } func (GuidancePreset) Type() protoreflect.EnumType { - return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[6] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[6] } func (x GuidancePreset) Number() protoreflect.EnumNumber { @@ -429,7 +429,7 @@ func (x GuidancePreset) Number() protoreflect.EnumNumber { // Deprecated: Use GuidancePreset.Descriptor instead. func (GuidancePreset) EnumDescriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{6} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{6} } type ModelArchitecture int32 @@ -468,11 +468,11 @@ func (x ModelArchitecture) String() string { } func (ModelArchitecture) Descriptor() protoreflect.EnumDescriptor { - return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[7].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[7].Descriptor() } func (ModelArchitecture) Type() protoreflect.EnumType { - return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[7] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[7] } func (x ModelArchitecture) Number() protoreflect.EnumNumber { @@ -481,7 +481,7 @@ func (x ModelArchitecture) Number() protoreflect.EnumNumber { // Deprecated: Use ModelArchitecture.Descriptor instead. func (ModelArchitecture) EnumDescriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{7} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{7} } type Action int32 @@ -526,11 +526,11 @@ func (x Action) String() string { } func (Action) Descriptor() protoreflect.EnumDescriptor { - return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[8].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[8].Descriptor() } func (Action) Type() protoreflect.EnumType { - return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[8] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[8] } func (x Action) Number() protoreflect.EnumNumber { @@ -539,7 +539,7 @@ func (x Action) Number() protoreflect.EnumNumber { // Deprecated: Use Action.Descriptor instead. func (Action) EnumDescriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{8} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{8} } type ClassifierMode int32 @@ -572,11 +572,11 @@ func (x ClassifierMode) String() string { } func (ClassifierMode) Descriptor() protoreflect.EnumDescriptor { - return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[9].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[9].Descriptor() } func (ClassifierMode) Type() protoreflect.EnumType { - return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[9] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[9] } func (x ClassifierMode) Number() protoreflect.EnumNumber { @@ -585,7 +585,7 @@ func (x ClassifierMode) Number() protoreflect.EnumNumber { // Deprecated: Use ClassifierMode.Descriptor instead. func (ClassifierMode) EnumDescriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{9} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{9} } type InterpolateMode int32 @@ -627,11 +627,11 @@ func (x InterpolateMode) String() string { } func (InterpolateMode) Descriptor() protoreflect.EnumDescriptor { - return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[10].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[10].Descriptor() } func (InterpolateMode) Type() protoreflect.EnumType { - return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[10] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[10] } func (x InterpolateMode) Number() protoreflect.EnumNumber { @@ -640,7 +640,7 @@ func (x InterpolateMode) Number() protoreflect.EnumNumber { // Deprecated: Use InterpolateMode.Descriptor instead. func (InterpolateMode) EnumDescriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{10} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{10} } type BorderMode int32 @@ -682,11 +682,11 @@ func (x BorderMode) String() string { } func (BorderMode) Descriptor() protoreflect.EnumDescriptor { - return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[11].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[11].Descriptor() } func (BorderMode) Type() protoreflect.EnumType { - return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[11] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[11] } func (x BorderMode) Number() protoreflect.EnumNumber { @@ -695,7 +695,7 @@ func (x BorderMode) Number() protoreflect.EnumNumber { // Deprecated: Use BorderMode.Descriptor instead. func (BorderMode) EnumDescriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{11} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{11} } type ColorMatchMode int32 @@ -731,11 +731,11 @@ func (x ColorMatchMode) String() string { } func (ColorMatchMode) Descriptor() protoreflect.EnumDescriptor { - return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[12].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[12].Descriptor() } func (ColorMatchMode) Type() protoreflect.EnumType { - return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[12] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[12] } func (x ColorMatchMode) Number() protoreflect.EnumNumber { @@ -744,7 +744,7 @@ func (x ColorMatchMode) Number() protoreflect.EnumNumber { // Deprecated: Use ColorMatchMode.Descriptor instead. func (ColorMatchMode) EnumDescriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{12} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{12} } type CameraType int32 @@ -777,11 +777,11 @@ func (x CameraType) String() string { } func (CameraType) Descriptor() protoreflect.EnumDescriptor { - return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[13].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[13].Descriptor() } func (CameraType) Type() protoreflect.EnumType { - return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[13] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[13] } func (x CameraType) Number() protoreflect.EnumNumber { @@ -790,7 +790,7 @@ func (x CameraType) Number() protoreflect.EnumNumber { // Deprecated: Use CameraType.Descriptor instead. func (CameraType) EnumDescriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{13} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{13} } type RenderMode int32 @@ -823,11 +823,11 @@ func (x RenderMode) String() string { } func (RenderMode) Descriptor() protoreflect.EnumDescriptor { - return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[14].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[14].Descriptor() } func (RenderMode) Type() protoreflect.EnumType { - return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[14] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[14] } func (x RenderMode) Number() protoreflect.EnumNumber { @@ -836,7 +836,7 @@ func (x RenderMode) Number() protoreflect.EnumNumber { // Deprecated: Use RenderMode.Descriptor instead. func (RenderMode) EnumDescriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{14} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{14} } type AssetAction int32 @@ -872,11 +872,11 @@ func (x AssetAction) String() string { } func (AssetAction) Descriptor() protoreflect.EnumDescriptor { - return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[15].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[15].Descriptor() } func (AssetAction) Type() protoreflect.EnumType { - return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[15] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[15] } func (x AssetAction) Number() protoreflect.EnumNumber { @@ -885,7 +885,7 @@ func (x AssetAction) Number() protoreflect.EnumNumber { // Deprecated: Use AssetAction.Descriptor instead. func (AssetAction) EnumDescriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{15} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{15} } // AssetUse defines how the asset is used within a project. This enum matches @@ -929,11 +929,11 @@ func (x AssetUse) String() string { } func (AssetUse) Descriptor() protoreflect.EnumDescriptor { - return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[16].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[16].Descriptor() } func (AssetUse) Type() protoreflect.EnumType { - return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[16] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[16] } func (x AssetUse) Number() protoreflect.EnumNumber { @@ -942,7 +942,7 @@ func (x AssetUse) Number() protoreflect.EnumNumber { // Deprecated: Use AssetUse.Descriptor instead. func (AssetUse) EnumDescriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{16} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{16} } type StageAction int32 @@ -978,11 +978,11 @@ func (x StageAction) String() string { } func (StageAction) Descriptor() protoreflect.EnumDescriptor { - return file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[17].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[17].Descriptor() } func (StageAction) Type() protoreflect.EnumType { - return &file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes[17] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[17] } func (x StageAction) Number() protoreflect.EnumNumber { @@ -991,7 +991,7 @@ func (x StageAction) Number() protoreflect.EnumNumber { // Deprecated: Use StageAction.Descriptor instead. func (StageAction) EnumDescriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{17} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{17} } // Generally, a GPT BPE 16-bit token, paired with an optional string representation. @@ -1007,7 +1007,7 @@ type Token struct { func (x *Token) Reset() { *x = Token{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[0] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1020,7 +1020,7 @@ func (x *Token) String() string { func (*Token) ProtoMessage() {} func (x *Token) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[0] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1033,7 +1033,7 @@ func (x *Token) ProtoReflect() protoreflect.Message { // Deprecated: Use Token.ProtoReflect.Descriptor instead. func (*Token) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{0} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{0} } func (x *Token) GetText() string { @@ -1063,7 +1063,7 @@ type Tokens struct { func (x *Tokens) Reset() { *x = Tokens{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[1] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1076,7 +1076,7 @@ func (x *Tokens) String() string { func (*Tokens) ProtoMessage() {} func (x *Tokens) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[1] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1089,7 +1089,7 @@ func (x *Tokens) ProtoReflect() protoreflect.Message { // Deprecated: Use Tokens.ProtoReflect.Descriptor instead. func (*Tokens) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{1} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{1} } func (x *Tokens) GetTokens() []*Token { @@ -1135,7 +1135,7 @@ type Artifact struct { func (x *Artifact) Reset() { *x = Artifact{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[2] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1148,7 +1148,7 @@ func (x *Artifact) String() string { func (*Artifact) ProtoMessage() {} func (x *Artifact) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[2] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1161,7 +1161,7 @@ func (x *Artifact) ProtoReflect() protoreflect.Message { // Deprecated: Use Artifact.ProtoReflect.Descriptor instead. func (*Artifact) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{2} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{2} } func (x *Artifact) GetId() uint64 { @@ -1316,7 +1316,7 @@ type PromptParameters struct { func (x *PromptParameters) Reset() { *x = PromptParameters{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[3] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1329,7 +1329,7 @@ func (x *PromptParameters) String() string { func (*PromptParameters) ProtoMessage() {} func (x *PromptParameters) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[3] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1342,7 +1342,7 @@ func (x *PromptParameters) ProtoReflect() protoreflect.Message { // Deprecated: Use PromptParameters.ProtoReflect.Descriptor instead. func (*PromptParameters) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{3} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{3} } func (x *PromptParameters) GetInit() bool { @@ -1383,7 +1383,7 @@ type Prompt struct { func (x *Prompt) Reset() { *x = Prompt{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[4] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1396,7 +1396,7 @@ func (x *Prompt) String() string { func (*Prompt) ProtoMessage() {} func (x *Prompt) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[4] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1409,7 +1409,7 @@ func (x *Prompt) ProtoReflect() protoreflect.Message { // Deprecated: Use Prompt.ProtoReflect.Descriptor instead. func (*Prompt) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{4} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{4} } func (x *Prompt) GetParameters() *PromptParameters { @@ -1487,7 +1487,7 @@ type SamplerParameters struct { func (x *SamplerParameters) Reset() { *x = SamplerParameters{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[5] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1500,7 +1500,7 @@ func (x *SamplerParameters) String() string { func (*SamplerParameters) ProtoMessage() {} func (x *SamplerParameters) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[5] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1513,7 +1513,7 @@ func (x *SamplerParameters) ProtoReflect() protoreflect.Message { // Deprecated: Use SamplerParameters.ProtoReflect.Descriptor instead. func (*SamplerParameters) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{5} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{5} } func (x *SamplerParameters) GetEta() float32 { @@ -1579,7 +1579,7 @@ type ConditionerParameters struct { func (x *ConditionerParameters) Reset() { *x = ConditionerParameters{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[6] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1592,7 +1592,7 @@ func (x *ConditionerParameters) String() string { func (*ConditionerParameters) ProtoMessage() {} func (x *ConditionerParameters) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[6] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1605,7 +1605,7 @@ func (x *ConditionerParameters) ProtoReflect() protoreflect.Message { // Deprecated: Use ConditionerParameters.ProtoReflect.Descriptor instead. func (*ConditionerParameters) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{6} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{6} } func (x *ConditionerParameters) GetVectorAdjustPrior() string { @@ -1636,7 +1636,7 @@ type ScheduleParameters struct { func (x *ScheduleParameters) Reset() { *x = ScheduleParameters{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[7] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1649,7 +1649,7 @@ func (x *ScheduleParameters) String() string { func (*ScheduleParameters) ProtoMessage() {} func (x *ScheduleParameters) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[7] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1662,7 +1662,7 @@ func (x *ScheduleParameters) ProtoReflect() protoreflect.Message { // Deprecated: Use ScheduleParameters.ProtoReflect.Descriptor instead. func (*ScheduleParameters) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{7} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{7} } func (x *ScheduleParameters) GetStart() float32 { @@ -1701,7 +1701,7 @@ type StepParameter struct { func (x *StepParameter) Reset() { *x = StepParameter{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[8] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1714,7 +1714,7 @@ func (x *StepParameter) String() string { func (*StepParameter) ProtoMessage() {} func (x *StepParameter) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[8] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1727,7 +1727,7 @@ func (x *StepParameter) ProtoReflect() protoreflect.Message { // Deprecated: Use StepParameter.ProtoReflect.Descriptor instead. func (*StepParameter) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{8} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{8} } func (x *StepParameter) GetScaledStep() float32 { @@ -1774,7 +1774,7 @@ type Model struct { func (x *Model) Reset() { *x = Model{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[9] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1787,7 +1787,7 @@ func (x *Model) String() string { func (*Model) ProtoMessage() {} func (x *Model) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[9] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1800,7 +1800,7 @@ func (x *Model) ProtoReflect() protoreflect.Message { // Deprecated: Use Model.ProtoReflect.Descriptor instead. func (*Model) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{9} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{9} } func (x *Model) GetArchitecture() ModelArchitecture { @@ -1860,7 +1860,7 @@ type CutoutParameters struct { func (x *CutoutParameters) Reset() { *x = CutoutParameters{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[10] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1873,7 +1873,7 @@ func (x *CutoutParameters) String() string { func (*CutoutParameters) ProtoMessage() {} func (x *CutoutParameters) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[10] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1886,7 +1886,7 @@ func (x *CutoutParameters) ProtoReflect() protoreflect.Message { // Deprecated: Use CutoutParameters.ProtoReflect.Descriptor instead. func (*CutoutParameters) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{10} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{10} } func (x *CutoutParameters) GetCutouts() []*CutoutParameters { @@ -1940,7 +1940,7 @@ type GuidanceScheduleParameters struct { func (x *GuidanceScheduleParameters) Reset() { *x = GuidanceScheduleParameters{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[11] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1953,7 +1953,7 @@ func (x *GuidanceScheduleParameters) String() string { func (*GuidanceScheduleParameters) ProtoMessage() {} func (x *GuidanceScheduleParameters) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[11] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1966,7 +1966,7 @@ func (x *GuidanceScheduleParameters) ProtoReflect() protoreflect.Message { // Deprecated: Use GuidanceScheduleParameters.ProtoReflect.Descriptor instead. func (*GuidanceScheduleParameters) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{11} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{11} } func (x *GuidanceScheduleParameters) GetDuration() float32 { @@ -2001,7 +2001,7 @@ type GuidanceInstanceParameters struct { func (x *GuidanceInstanceParameters) Reset() { *x = GuidanceInstanceParameters{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[12] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2014,7 +2014,7 @@ func (x *GuidanceInstanceParameters) String() string { func (*GuidanceInstanceParameters) ProtoMessage() {} func (x *GuidanceInstanceParameters) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[12] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2027,7 +2027,7 @@ func (x *GuidanceInstanceParameters) ProtoReflect() protoreflect.Message { // Deprecated: Use GuidanceInstanceParameters.ProtoReflect.Descriptor instead. func (*GuidanceInstanceParameters) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{12} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{12} } func (x *GuidanceInstanceParameters) GetModels() []*Model { @@ -2079,7 +2079,7 @@ type GuidanceParameters struct { func (x *GuidanceParameters) Reset() { *x = GuidanceParameters{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[13] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2092,7 +2092,7 @@ func (x *GuidanceParameters) String() string { func (*GuidanceParameters) ProtoMessage() {} func (x *GuidanceParameters) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[13] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2105,7 +2105,7 @@ func (x *GuidanceParameters) ProtoReflect() protoreflect.Message { // Deprecated: Use GuidanceParameters.ProtoReflect.Descriptor instead. func (*GuidanceParameters) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{13} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{13} } func (x *GuidanceParameters) GetGuidancePreset() GuidancePreset { @@ -2137,7 +2137,7 @@ type TransformType struct { func (x *TransformType) Reset() { *x = TransformType{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[14] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2150,7 +2150,7 @@ func (x *TransformType) String() string { func (*TransformType) ProtoMessage() {} func (x *TransformType) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[14] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2163,7 +2163,7 @@ func (x *TransformType) ProtoReflect() protoreflect.Message { // Deprecated: Use TransformType.ProtoReflect.Descriptor instead. func (*TransformType) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{14} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{14} } func (m *TransformType) GetType() isTransformType_Type { @@ -2223,7 +2223,7 @@ type ImageParameters struct { func (x *ImageParameters) Reset() { *x = ImageParameters{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[15] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2236,7 +2236,7 @@ func (x *ImageParameters) String() string { func (*ImageParameters) ProtoMessage() {} func (x *ImageParameters) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[15] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2249,7 +2249,7 @@ func (x *ImageParameters) ProtoReflect() protoreflect.Message { // Deprecated: Use ImageParameters.ProtoReflect.Descriptor instead. func (*ImageParameters) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{15} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{15} } func (x *ImageParameters) GetHeight() uint64 { @@ -2334,7 +2334,7 @@ type ClassifierConcept struct { func (x *ClassifierConcept) Reset() { *x = ClassifierConcept{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[16] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2347,7 +2347,7 @@ func (x *ClassifierConcept) String() string { func (*ClassifierConcept) ProtoMessage() {} func (x *ClassifierConcept) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[16] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2360,7 +2360,7 @@ func (x *ClassifierConcept) ProtoReflect() protoreflect.Message { // Deprecated: Use ClassifierConcept.ProtoReflect.Descriptor instead. func (*ClassifierConcept) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{16} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{16} } func (x *ClassifierConcept) GetConcept() string { @@ -2392,7 +2392,7 @@ type ClassifierCategory struct { func (x *ClassifierCategory) Reset() { *x = ClassifierCategory{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[17] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2405,7 +2405,7 @@ func (x *ClassifierCategory) String() string { func (*ClassifierCategory) ProtoMessage() {} func (x *ClassifierCategory) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[17] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2418,7 +2418,7 @@ func (x *ClassifierCategory) ProtoReflect() protoreflect.Message { // Deprecated: Use ClassifierCategory.ProtoReflect.Descriptor instead. func (*ClassifierCategory) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{17} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{17} } func (x *ClassifierCategory) GetName() string { @@ -2469,7 +2469,7 @@ type ClassifierParameters struct { func (x *ClassifierParameters) Reset() { *x = ClassifierParameters{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[18] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2482,7 +2482,7 @@ func (x *ClassifierParameters) String() string { func (*ClassifierParameters) ProtoMessage() {} func (x *ClassifierParameters) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[18] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2495,7 +2495,7 @@ func (x *ClassifierParameters) ProtoReflect() protoreflect.Message { // Deprecated: Use ClassifierParameters.ProtoReflect.Descriptor instead. func (*ClassifierParameters) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{18} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{18} } func (x *ClassifierParameters) GetCategories() []*ClassifierCategory { @@ -2532,7 +2532,7 @@ type InterpolateParameters struct { func (x *InterpolateParameters) Reset() { *x = InterpolateParameters{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[19] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2545,7 +2545,7 @@ func (x *InterpolateParameters) String() string { func (*InterpolateParameters) ProtoMessage() {} func (x *InterpolateParameters) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[19] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2558,7 +2558,7 @@ func (x *InterpolateParameters) ProtoReflect() protoreflect.Message { // Deprecated: Use InterpolateParameters.ProtoReflect.Descriptor instead. func (*InterpolateParameters) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{19} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{19} } func (x *InterpolateParameters) GetRatios() []float32 { @@ -2594,7 +2594,7 @@ type TransformColorAdjust struct { func (x *TransformColorAdjust) Reset() { *x = TransformColorAdjust{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[20] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2607,7 +2607,7 @@ func (x *TransformColorAdjust) String() string { func (*TransformColorAdjust) ProtoMessage() {} func (x *TransformColorAdjust) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[20] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2620,7 +2620,7 @@ func (x *TransformColorAdjust) ProtoReflect() protoreflect.Message { // Deprecated: Use TransformColorAdjust.ProtoReflect.Descriptor instead. func (*TransformColorAdjust) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{20} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{20} } func (x *TransformColorAdjust) GetBrightness() float32 { @@ -2699,7 +2699,7 @@ type TransformDepthCalc struct { func (x *TransformDepthCalc) Reset() { *x = TransformDepthCalc{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[21] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2712,7 +2712,7 @@ func (x *TransformDepthCalc) String() string { func (*TransformDepthCalc) ProtoMessage() {} func (x *TransformDepthCalc) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[21] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2725,7 +2725,7 @@ func (x *TransformDepthCalc) ProtoReflect() protoreflect.Message { // Deprecated: Use TransformDepthCalc.ProtoReflect.Descriptor instead. func (*TransformDepthCalc) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{21} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{21} } func (x *TransformDepthCalc) GetBlendWeight() float32 { @@ -2765,7 +2765,7 @@ type TransformMatrix struct { func (x *TransformMatrix) Reset() { *x = TransformMatrix{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[22] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2778,7 +2778,7 @@ func (x *TransformMatrix) String() string { func (*TransformMatrix) ProtoMessage() {} func (x *TransformMatrix) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[22] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2791,7 +2791,7 @@ func (x *TransformMatrix) ProtoReflect() protoreflect.Message { // Deprecated: Use TransformMatrix.ProtoReflect.Descriptor instead. func (*TransformMatrix) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{22} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{22} } func (x *TransformMatrix) GetData() []float32 { @@ -2816,7 +2816,7 @@ type TransformResample struct { func (x *TransformResample) Reset() { *x = TransformResample{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[23] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2829,7 +2829,7 @@ func (x *TransformResample) String() string { func (*TransformResample) ProtoMessage() {} func (x *TransformResample) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[23] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2842,7 +2842,7 @@ func (x *TransformResample) ProtoReflect() protoreflect.Message { // Deprecated: Use TransformResample.ProtoReflect.Descriptor instead. func (*TransformResample) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{23} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{23} } func (x *TransformResample) GetBorderMode() BorderMode { @@ -2894,7 +2894,7 @@ type CameraParameters struct { func (x *CameraParameters) Reset() { *x = CameraParameters{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[24] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2907,7 +2907,7 @@ func (x *CameraParameters) String() string { func (*CameraParameters) ProtoMessage() {} func (x *CameraParameters) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[24] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2920,7 +2920,7 @@ func (x *CameraParameters) ProtoReflect() protoreflect.Message { // Deprecated: Use CameraParameters.ProtoReflect.Descriptor instead. func (*CameraParameters) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{24} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{24} } func (x *CameraParameters) GetCameraType() CameraType { @@ -2965,7 +2965,7 @@ type TransformCameraPose struct { func (x *TransformCameraPose) Reset() { *x = TransformCameraPose{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[25] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2978,7 +2978,7 @@ func (x *TransformCameraPose) String() string { func (*TransformCameraPose) ProtoMessage() {} func (x *TransformCameraPose) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[25] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2991,7 +2991,7 @@ func (x *TransformCameraPose) ProtoReflect() protoreflect.Message { // Deprecated: Use TransformCameraPose.ProtoReflect.Descriptor instead. func (*TransformCameraPose) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{25} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{25} } func (x *TransformCameraPose) GetWorldToViewMatrix() *TransformMatrix { @@ -3039,7 +3039,7 @@ type TransformParameters struct { func (x *TransformParameters) Reset() { *x = TransformParameters{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[26] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3052,7 +3052,7 @@ func (x *TransformParameters) String() string { func (*TransformParameters) ProtoMessage() {} func (x *TransformParameters) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[26] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3065,7 +3065,7 @@ func (x *TransformParameters) ProtoReflect() protoreflect.Message { // Deprecated: Use TransformParameters.ProtoReflect.Descriptor instead. func (*TransformParameters) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{26} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{26} } func (m *TransformParameters) GetTransform() isTransformParameters_Transform { @@ -3144,7 +3144,7 @@ type AssetParameters struct { func (x *AssetParameters) Reset() { *x = AssetParameters{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[27] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3157,7 +3157,7 @@ func (x *AssetParameters) String() string { func (*AssetParameters) ProtoMessage() {} func (x *AssetParameters) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[27] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3170,7 +3170,7 @@ func (x *AssetParameters) ProtoReflect() protoreflect.Message { // Deprecated: Use AssetParameters.ProtoReflect.Descriptor instead. func (*AssetParameters) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{27} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{27} } func (x *AssetParameters) GetAction() AssetAction { @@ -3210,7 +3210,7 @@ type AnswerMeta struct { func (x *AnswerMeta) Reset() { *x = AnswerMeta{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[28] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3223,7 +3223,7 @@ func (x *AnswerMeta) String() string { func (*AnswerMeta) ProtoMessage() {} func (x *AnswerMeta) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[28] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3236,7 +3236,7 @@ func (x *AnswerMeta) ProtoReflect() protoreflect.Message { // Deprecated: Use AnswerMeta.ProtoReflect.Descriptor instead. func (*AnswerMeta) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{28} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{28} } func (x *AnswerMeta) GetGpuId() string { @@ -3285,7 +3285,7 @@ type Answer struct { func (x *Answer) Reset() { *x = Answer{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[29] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3298,7 +3298,7 @@ func (x *Answer) String() string { func (*Answer) ProtoMessage() {} func (x *Answer) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[29] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3311,7 +3311,7 @@ func (x *Answer) ProtoReflect() protoreflect.Message { // Deprecated: Use Answer.ProtoReflect.Descriptor instead. func (*Answer) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{29} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{29} } func (x *Answer) GetAnswerId() string { @@ -3370,7 +3370,7 @@ type AnswerBatch struct { func (x *AnswerBatch) Reset() { *x = AnswerBatch{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[30] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3383,7 +3383,7 @@ func (x *AnswerBatch) String() string { func (*AnswerBatch) ProtoMessage() {} func (x *AnswerBatch) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[30] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3396,7 +3396,7 @@ func (x *AnswerBatch) ProtoReflect() protoreflect.Message { // Deprecated: Use AnswerBatch.ProtoReflect.Descriptor instead. func (*AnswerBatch) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{30} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{30} } func (x *AnswerBatch) GetBatchId() string { @@ -3440,7 +3440,7 @@ type Request struct { func (x *Request) Reset() { *x = Request{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[31] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3453,7 +3453,7 @@ func (x *Request) String() string { func (*Request) ProtoMessage() {} func (x *Request) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[31] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3466,7 +3466,7 @@ func (x *Request) ProtoReflect() protoreflect.Message { // Deprecated: Use Request.ProtoReflect.Descriptor instead. func (*Request) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{31} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{31} } func (x *Request) GetEngineId() string { @@ -3600,7 +3600,7 @@ type OnStatus struct { func (x *OnStatus) Reset() { *x = OnStatus{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[32] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3613,7 +3613,7 @@ func (x *OnStatus) String() string { func (*OnStatus) ProtoMessage() {} func (x *OnStatus) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[32] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3626,7 +3626,7 @@ func (x *OnStatus) ProtoReflect() protoreflect.Message { // Deprecated: Use OnStatus.ProtoReflect.Descriptor instead. func (*OnStatus) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{32} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{32} } func (x *OnStatus) GetReason() []FinishReason { @@ -3663,7 +3663,7 @@ type Stage struct { func (x *Stage) Reset() { *x = Stage{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[33] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3676,7 +3676,7 @@ func (x *Stage) String() string { func (*Stage) ProtoMessage() {} func (x *Stage) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[33] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3689,7 +3689,7 @@ func (x *Stage) ProtoReflect() protoreflect.Message { // Deprecated: Use Stage.ProtoReflect.Descriptor instead. func (*Stage) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{33} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{33} } func (x *Stage) GetId() string { @@ -3725,7 +3725,7 @@ type ChainRequest struct { func (x *ChainRequest) Reset() { *x = ChainRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[34] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3738,7 +3738,7 @@ func (x *ChainRequest) String() string { func (*ChainRequest) ProtoMessage() {} func (x *ChainRequest) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[34] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3751,7 +3751,7 @@ func (x *ChainRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ChainRequest.ProtoReflect.Descriptor instead. func (*ChainRequest) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP(), []int{34} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{34} } func (x *ChainRequest) GetRequestId() string { @@ -3768,18 +3768,18 @@ func (x *ChainRequest) GetStage() []*Stage { return nil } -var File_stabilityai_platformapis_generation_v1_generation_proto protoreflect.FileDescriptor +var File_stability_api_platform_generation_v1_generation_proto protoreflect.FileDescriptor -var file_stabilityai_platformapis_generation_v1_generation_proto_rawDesc = []byte{ - 0x0a, 0x37, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2f, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x26, 0x73, 0x74, 0x61, 0x62, 0x69, - 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x21, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2f, 0x74, 0x65, 0x6e, +var file_stability_api_platform_generation_v1_generation_proto_rawDesc = []byte{ + 0x0a, 0x35, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2f, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x26, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x1a, + 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x73, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x39, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x17, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x74, 0x65, 0x78, @@ -4546,46 +4546,46 @@ var file_stabilityai_platformapis_generation_v1_generation_proto_rawDesc = []byt 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x22, 0x00, 0x30, 0x01, - 0x42, 0xe1, 0x02, 0x0a, 0x2a, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x42, 0xdf, 0x02, 0x0a, 0x2a, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x67, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, + 0x50, 0x01, 0x5a, 0x65, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x79, 0x61, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, - 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x67, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, - 0x47, 0xaa, 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, - 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x47, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x26, 0x53, 0x74, 0x61, - 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x32, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, - 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x47, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x29, 0x53, 0x74, 0x61, 0x62, 0x69, - 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x3a, 0x3a, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x61, 0x70, 0x69, 0x73, 0x3a, 0x3a, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, 0x47, 0xaa, + 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x50, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x70, 0x69, 0x73, 0x5c, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, + 0x31, 0xe2, 0x02, 0x32, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, + 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x47, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x29, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x3a, 0x3a, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, + 0x69, 0x73, 0x3a, 0x3a, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, + 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_stabilityai_platformapis_generation_v1_generation_proto_rawDescOnce sync.Once - file_stabilityai_platformapis_generation_v1_generation_proto_rawDescData = file_stabilityai_platformapis_generation_v1_generation_proto_rawDesc + file_stability_api_platform_generation_v1_generation_proto_rawDescOnce sync.Once + file_stability_api_platform_generation_v1_generation_proto_rawDescData = file_stability_api_platform_generation_v1_generation_proto_rawDesc ) -func file_stabilityai_platformapis_generation_v1_generation_proto_rawDescGZIP() []byte { - file_stabilityai_platformapis_generation_v1_generation_proto_rawDescOnce.Do(func() { - file_stabilityai_platformapis_generation_v1_generation_proto_rawDescData = protoimpl.X.CompressGZIP(file_stabilityai_platformapis_generation_v1_generation_proto_rawDescData) +func file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP() []byte { + file_stability_api_platform_generation_v1_generation_proto_rawDescOnce.Do(func() { + file_stability_api_platform_generation_v1_generation_proto_rawDescData = protoimpl.X.CompressGZIP(file_stability_api_platform_generation_v1_generation_proto_rawDescData) }) - return file_stabilityai_platformapis_generation_v1_generation_proto_rawDescData + return file_stability_api_platform_generation_v1_generation_proto_rawDescData } -var file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes = make([]protoimpl.EnumInfo, 18) -var file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes = make([]protoimpl.MessageInfo, 35) -var file_stabilityai_platformapis_generation_v1_generation_proto_goTypes = []interface{}{ +var file_stability_api_platform_generation_v1_generation_proto_enumTypes = make([]protoimpl.EnumInfo, 18) +var file_stability_api_platform_generation_v1_generation_proto_msgTypes = make([]protoimpl.MessageInfo, 35) +var file_stability_api_platform_generation_v1_generation_proto_goTypes = []interface{}{ (FinishReason)(0), // 0: stabilityai.platformapis.generation.v1.FinishReason (ArtifactType)(0), // 1: stabilityai.platformapis.generation.v1.ArtifactType (MaskedAreaInit)(0), // 2: stabilityai.platformapis.generation.v1.MaskedAreaInit @@ -4642,7 +4642,7 @@ var file_stabilityai_platformapis_generation_v1_generation_proto_goTypes = []int (*tensors.Tensor)(nil), // 53: tensors.Tensor (*structpb.Struct)(nil), // 54: google.protobuf.Struct } -var file_stabilityai_platformapis_generation_v1_generation_proto_depIdxs = []int32{ +var file_stability_api_platform_generation_v1_generation_proto_depIdxs = []int32{ 18, // 0: stabilityai.platformapis.generation.v1.Tokens.tokens:type_name -> stabilityai.platformapis.generation.v1.Token 1, // 1: stabilityai.platformapis.generation.v1.Artifact.type:type_name -> stabilityai.platformapis.generation.v1.ArtifactType 19, // 2: stabilityai.platformapis.generation.v1.Artifact.tokens:type_name -> stabilityai.platformapis.generation.v1.Tokens @@ -4720,13 +4720,13 @@ var file_stabilityai_platformapis_generation_v1_generation_proto_depIdxs = []int 0, // [0:66] is the sub-list for field type_name } -func init() { file_stabilityai_platformapis_generation_v1_generation_proto_init() } -func file_stabilityai_platformapis_generation_v1_generation_proto_init() { - if File_stabilityai_platformapis_generation_v1_generation_proto != nil { +func init() { file_stability_api_platform_generation_v1_generation_proto_init() } +func file_stability_api_platform_generation_v1_generation_proto_init() { + if File_stability_api_platform_generation_v1_generation_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Token); i { case 0: return &v.state @@ -4738,7 +4738,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Tokens); i { case 0: return &v.state @@ -4750,7 +4750,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Artifact); i { case 0: return &v.state @@ -4762,7 +4762,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PromptParameters); i { case 0: return &v.state @@ -4774,7 +4774,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Prompt); i { case 0: return &v.state @@ -4786,7 +4786,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SamplerParameters); i { case 0: return &v.state @@ -4798,7 +4798,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ConditionerParameters); i { case 0: return &v.state @@ -4810,7 +4810,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ScheduleParameters); i { case 0: return &v.state @@ -4822,7 +4822,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StepParameter); i { case 0: return &v.state @@ -4834,7 +4834,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Model); i { case 0: return &v.state @@ -4846,7 +4846,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CutoutParameters); i { case 0: return &v.state @@ -4858,7 +4858,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GuidanceScheduleParameters); i { case 0: return &v.state @@ -4870,7 +4870,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GuidanceInstanceParameters); i { case 0: return &v.state @@ -4882,7 +4882,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GuidanceParameters); i { case 0: return &v.state @@ -4894,7 +4894,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TransformType); i { case 0: return &v.state @@ -4906,7 +4906,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ImageParameters); i { case 0: return &v.state @@ -4918,7 +4918,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ClassifierConcept); i { case 0: return &v.state @@ -4930,7 +4930,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ClassifierCategory); i { case 0: return &v.state @@ -4942,7 +4942,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ClassifierParameters); i { case 0: return &v.state @@ -4954,7 +4954,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*InterpolateParameters); i { case 0: return &v.state @@ -4966,7 +4966,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TransformColorAdjust); i { case 0: return &v.state @@ -4978,7 +4978,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TransformDepthCalc); i { case 0: return &v.state @@ -4990,7 +4990,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TransformMatrix); i { case 0: return &v.state @@ -5002,7 +5002,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TransformResample); i { case 0: return &v.state @@ -5014,7 +5014,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CameraParameters); i { case 0: return &v.state @@ -5026,7 +5026,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TransformCameraPose); i { case 0: return &v.state @@ -5038,7 +5038,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TransformParameters); i { case 0: return &v.state @@ -5050,7 +5050,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AssetParameters); i { case 0: return &v.state @@ -5062,7 +5062,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AnswerMeta); i { case 0: return &v.state @@ -5074,7 +5074,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Answer); i { case 0: return &v.state @@ -5086,7 +5086,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AnswerBatch); i { case 0: return &v.state @@ -5098,7 +5098,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Request); i { case 0: return &v.state @@ -5110,7 +5110,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*OnStatus); i { case 0: return &v.state @@ -5122,7 +5122,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Stage); i { case 0: return &v.state @@ -5134,7 +5134,7 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { return nil } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_generation_v1_generation_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ChainRequest); i { case 0: return &v.state @@ -5147,73 +5147,73 @@ func file_stabilityai_platformapis_generation_v1_generation_proto_init() { } } } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[0].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[1].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[2].OneofWrappers = []interface{}{ + file_stability_api_platform_generation_v1_generation_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[1].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[2].OneofWrappers = []interface{}{ (*Artifact_Binary)(nil), (*Artifact_Text)(nil), (*Artifact_Tokens)(nil), (*Artifact_Classifier)(nil), (*Artifact_Tensor)(nil), } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[3].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[4].OneofWrappers = []interface{}{ + file_stability_api_platform_generation_v1_generation_proto_msgTypes[3].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[4].OneofWrappers = []interface{}{ (*Prompt_Text)(nil), (*Prompt_Tokens)(nil), (*Prompt_Artifact)(nil), } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[5].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[6].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[7].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[8].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[10].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[12].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[14].OneofWrappers = []interface{}{ + file_stability_api_platform_generation_v1_generation_proto_msgTypes[5].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[6].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[7].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[8].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[10].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[12].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[14].OneofWrappers = []interface{}{ (*TransformType_Diffusion)(nil), (*TransformType_Upscaler)(nil), } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[15].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[16].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[17].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[18].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[19].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[20].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[21].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[23].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[24].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[26].OneofWrappers = []interface{}{ + file_stability_api_platform_generation_v1_generation_proto_msgTypes[15].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[16].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[17].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[18].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[19].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[20].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[21].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[23].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[24].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[26].OneofWrappers = []interface{}{ (*TransformParameters_ColorAdjust)(nil), (*TransformParameters_DepthCalc)(nil), (*TransformParameters_Resample)(nil), (*TransformParameters_CameraPose)(nil), } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[28].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[29].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[31].OneofWrappers = []interface{}{ + file_stability_api_platform_generation_v1_generation_proto_msgTypes[28].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[29].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[31].OneofWrappers = []interface{}{ (*Request_Image)(nil), (*Request_Classifier)(nil), (*Request_Asset)(nil), (*Request_Interpolate)(nil), (*Request_Transform)(nil), } - file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes[32].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[32].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_stabilityai_platformapis_generation_v1_generation_proto_rawDesc, + RawDescriptor: file_stability_api_platform_generation_v1_generation_proto_rawDesc, NumEnums: 18, NumMessages: 35, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_stabilityai_platformapis_generation_v1_generation_proto_goTypes, - DependencyIndexes: file_stabilityai_platformapis_generation_v1_generation_proto_depIdxs, - EnumInfos: file_stabilityai_platformapis_generation_v1_generation_proto_enumTypes, - MessageInfos: file_stabilityai_platformapis_generation_v1_generation_proto_msgTypes, + GoTypes: file_stability_api_platform_generation_v1_generation_proto_goTypes, + DependencyIndexes: file_stability_api_platform_generation_v1_generation_proto_depIdxs, + EnumInfos: file_stability_api_platform_generation_v1_generation_proto_enumTypes, + MessageInfos: file_stability_api_platform_generation_v1_generation_proto_msgTypes, }.Build() - File_stabilityai_platformapis_generation_v1_generation_proto = out.File - file_stabilityai_platformapis_generation_v1_generation_proto_rawDesc = nil - file_stabilityai_platformapis_generation_v1_generation_proto_goTypes = nil - file_stabilityai_platformapis_generation_v1_generation_proto_depIdxs = nil + File_stability_api_platform_generation_v1_generation_proto = out.File + file_stability_api_platform_generation_v1_generation_proto_rawDesc = nil + file_stability_api_platform_generation_v1_generation_proto_goTypes = nil + file_stability_api_platform_generation_v1_generation_proto_depIdxs = nil } diff --git a/gen/proto/go/stabilityai/platformapis/generation/v1/generation_grpc.pb.go b/gen/proto/go/stability_api/platform/generation/v1/generation_grpc.pb.go similarity index 97% rename from gen/proto/go/stabilityai/platformapis/generation/v1/generation_grpc.pb.go rename to gen/proto/go/stability_api/platform/generation/v1/generation_grpc.pb.go index 8fd24e9..1537188 100644 --- a/gen/proto/go/stabilityai/platformapis/generation/v1/generation_grpc.pb.go +++ b/gen/proto/go/stability_api/platform/generation/v1/generation_grpc.pb.go @@ -2,7 +2,7 @@ // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto package generationv1 @@ -196,5 +196,5 @@ var GenerationService_ServiceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, - Metadata: "stabilityai/platformapis/generation/v1/generation.proto", + Metadata: "stability_api/platform/generation/v1/generation.proto", } diff --git a/gen/proto/go/stabilityai/platformapis/generation/v1/generationv1connect/generation.connect.go b/gen/proto/go/stability_api/platform/generation/v1/generationv1connect/generation.connect.go similarity index 98% rename from gen/proto/go/stabilityai/platformapis/generation/v1/generationv1connect/generation.connect.go rename to gen/proto/go/stability_api/platform/generation/v1/generationv1connect/generation.connect.go index 000e64f..f1815c1 100644 --- a/gen/proto/go/stabilityai/platformapis/generation/v1/generationv1connect/generation.connect.go +++ b/gen/proto/go/stability_api/platform/generation/v1/generationv1connect/generation.connect.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-connect-go. DO NOT EDIT. // -// Source: stabilityai/platformapis/generation/v1/generation.proto +// Source: stability_api/platform/generation/v1/generation.proto package generationv1connect @@ -8,7 +8,7 @@ import ( context "context" errors "errors" connect_go "github.com/bufbuild/connect-go" - v1 "github.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/generation/v1" + v1 "github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/generation/v1" http "net/http" strings "strings" ) diff --git a/gen/proto/go/stabilityai/platformapis/project/v1/project.pb.go b/gen/proto/go/stability_api/platform/project/v1/project.pb.go similarity index 63% rename from gen/proto/go/stabilityai/platformapis/project/v1/project.pb.go rename to gen/proto/go/stability_api/platform/project/v1/project.pb.go index 759d33e..29f3d0e 100644 --- a/gen/proto/go/stabilityai/platformapis/project/v1/project.pb.go +++ b/gen/proto/go/stability_api/platform/project/v1/project.pb.go @@ -2,12 +2,12 @@ // versions: // protoc-gen-go v1.30.0 // protoc (unknown) -// source: stabilityai/platformapis/project/v1/project.proto +// source: stability_api/platform/project/v1/project.proto package projectv1 import ( - v1 "github.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/generation/v1" + v1 "github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/generation/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -51,11 +51,11 @@ func (x ProjectAccess) String() string { } func (ProjectAccess) Descriptor() protoreflect.EnumDescriptor { - return file_stabilityai_platformapis_project_v1_project_proto_enumTypes[0].Descriptor() + return file_stability_api_platform_project_v1_project_proto_enumTypes[0].Descriptor() } func (ProjectAccess) Type() protoreflect.EnumType { - return &file_stabilityai_platformapis_project_v1_project_proto_enumTypes[0] + return &file_stability_api_platform_project_v1_project_proto_enumTypes[0] } func (x ProjectAccess) Number() protoreflect.EnumNumber { @@ -64,7 +64,7 @@ func (x ProjectAccess) Number() protoreflect.EnumNumber { // Deprecated: Use ProjectAccess.Descriptor instead. func (ProjectAccess) EnumDescriptor() ([]byte, []int) { - return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{0} + return file_stability_api_platform_project_v1_project_proto_rawDescGZIP(), []int{0} } type ProjectStatus int32 @@ -100,11 +100,11 @@ func (x ProjectStatus) String() string { } func (ProjectStatus) Descriptor() protoreflect.EnumDescriptor { - return file_stabilityai_platformapis_project_v1_project_proto_enumTypes[1].Descriptor() + return file_stability_api_platform_project_v1_project_proto_enumTypes[1].Descriptor() } func (ProjectStatus) Type() protoreflect.EnumType { - return &file_stabilityai_platformapis_project_v1_project_proto_enumTypes[1] + return &file_stability_api_platform_project_v1_project_proto_enumTypes[1] } func (x ProjectStatus) Number() protoreflect.EnumNumber { @@ -113,7 +113,7 @@ func (x ProjectStatus) Number() protoreflect.EnumNumber { // Deprecated: Use ProjectStatus.Descriptor instead. func (ProjectStatus) EnumDescriptor() ([]byte, []int) { - return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{1} + return file_stability_api_platform_project_v1_project_proto_rawDescGZIP(), []int{1} } type ProjectAssetUse int32 @@ -155,11 +155,11 @@ func (x ProjectAssetUse) String() string { } func (ProjectAssetUse) Descriptor() protoreflect.EnumDescriptor { - return file_stabilityai_platformapis_project_v1_project_proto_enumTypes[2].Descriptor() + return file_stability_api_platform_project_v1_project_proto_enumTypes[2].Descriptor() } func (ProjectAssetUse) Type() protoreflect.EnumType { - return &file_stabilityai_platformapis_project_v1_project_proto_enumTypes[2] + return &file_stability_api_platform_project_v1_project_proto_enumTypes[2] } func (x ProjectAssetUse) Number() protoreflect.EnumNumber { @@ -168,7 +168,7 @@ func (x ProjectAssetUse) Number() protoreflect.EnumNumber { // Deprecated: Use ProjectAssetUse.Descriptor instead. func (ProjectAssetUse) EnumDescriptor() ([]byte, []int) { - return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{2} + return file_stability_api_platform_project_v1_project_proto_rawDescGZIP(), []int{2} } type ProjectSortDir int32 @@ -204,11 +204,11 @@ func (x ProjectSortDir) String() string { } func (ProjectSortDir) Descriptor() protoreflect.EnumDescriptor { - return file_stabilityai_platformapis_project_v1_project_proto_enumTypes[3].Descriptor() + return file_stability_api_platform_project_v1_project_proto_enumTypes[3].Descriptor() } func (ProjectSortDir) Type() protoreflect.EnumType { - return &file_stabilityai_platformapis_project_v1_project_proto_enumTypes[3] + return &file_stability_api_platform_project_v1_project_proto_enumTypes[3] } func (x ProjectSortDir) Number() protoreflect.EnumNumber { @@ -217,7 +217,7 @@ func (x ProjectSortDir) Number() protoreflect.EnumNumber { // Deprecated: Use ProjectSortDir.Descriptor instead. func (ProjectSortDir) EnumDescriptor() ([]byte, []int) { - return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{3} + return file_stability_api_platform_project_v1_project_proto_rawDescGZIP(), []int{3} } type ProjectAsset struct { @@ -239,7 +239,7 @@ type ProjectAsset struct { func (x *ProjectAsset) Reset() { *x = ProjectAsset{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[0] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -252,7 +252,7 @@ func (x *ProjectAsset) String() string { func (*ProjectAsset) ProtoMessage() {} func (x *ProjectAsset) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[0] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -265,7 +265,7 @@ func (x *ProjectAsset) ProtoReflect() protoreflect.Message { // Deprecated: Use ProjectAsset.ProtoReflect.Descriptor instead. func (*ProjectAsset) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{0} + return file_stability_api_platform_project_v1_project_proto_rawDescGZIP(), []int{0} } func (x *ProjectAsset) GetId() string { @@ -351,7 +351,7 @@ type Project struct { func (x *Project) Reset() { *x = Project{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[1] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -364,7 +364,7 @@ func (x *Project) String() string { func (*Project) ProtoMessage() {} func (x *Project) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[1] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -377,7 +377,7 @@ func (x *Project) ProtoReflect() protoreflect.Message { // Deprecated: Use Project.ProtoReflect.Descriptor instead. func (*Project) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{1} + return file_stability_api_platform_project_v1_project_proto_rawDescGZIP(), []int{1} } func (x *Project) GetId() string { @@ -465,7 +465,7 @@ type CreateProjectRequest struct { func (x *CreateProjectRequest) Reset() { *x = CreateProjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[2] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -478,7 +478,7 @@ func (x *CreateProjectRequest) String() string { func (*CreateProjectRequest) ProtoMessage() {} func (x *CreateProjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[2] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -491,7 +491,7 @@ func (x *CreateProjectRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateProjectRequest.ProtoReflect.Descriptor instead. func (*CreateProjectRequest) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{2} + return file_stability_api_platform_project_v1_project_proto_rawDescGZIP(), []int{2} } func (x *CreateProjectRequest) GetTitle() string { @@ -545,7 +545,7 @@ type UpdateProjectRequest struct { func (x *UpdateProjectRequest) Reset() { *x = UpdateProjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[3] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -558,7 +558,7 @@ func (x *UpdateProjectRequest) String() string { func (*UpdateProjectRequest) ProtoMessage() {} func (x *UpdateProjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[3] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -571,7 +571,7 @@ func (x *UpdateProjectRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateProjectRequest.ProtoReflect.Descriptor instead. func (*UpdateProjectRequest) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{3} + return file_stability_api_platform_project_v1_project_proto_rawDescGZIP(), []int{3} } func (x *UpdateProjectRequest) GetId() string { @@ -627,7 +627,7 @@ type ListProjectRequest struct { func (x *ListProjectRequest) Reset() { *x = ListProjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[4] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -640,7 +640,7 @@ func (x *ListProjectRequest) String() string { func (*ListProjectRequest) ProtoMessage() {} func (x *ListProjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[4] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -653,7 +653,7 @@ func (x *ListProjectRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListProjectRequest.ProtoReflect.Descriptor instead. func (*ListProjectRequest) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{4} + return file_stability_api_platform_project_v1_project_proto_rawDescGZIP(), []int{4} } func (x *ListProjectRequest) GetOwnerId() string { @@ -675,7 +675,7 @@ type GetProjectRequest struct { func (x *GetProjectRequest) Reset() { *x = GetProjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[5] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -688,7 +688,7 @@ func (x *GetProjectRequest) String() string { func (*GetProjectRequest) ProtoMessage() {} func (x *GetProjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[5] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -701,7 +701,7 @@ func (x *GetProjectRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetProjectRequest.ProtoReflect.Descriptor instead. func (*GetProjectRequest) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{5} + return file_stability_api_platform_project_v1_project_proto_rawDescGZIP(), []int{5} } func (x *GetProjectRequest) GetId() string { @@ -730,7 +730,7 @@ type DeleteProjectRequest struct { func (x *DeleteProjectRequest) Reset() { *x = DeleteProjectRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[6] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -743,7 +743,7 @@ func (x *DeleteProjectRequest) String() string { func (*DeleteProjectRequest) ProtoMessage() {} func (x *DeleteProjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[6] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -756,7 +756,7 @@ func (x *DeleteProjectRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteProjectRequest.ProtoReflect.Descriptor instead. func (*DeleteProjectRequest) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{6} + return file_stability_api_platform_project_v1_project_proto_rawDescGZIP(), []int{6} } func (x *DeleteProjectRequest) GetId() string { @@ -792,7 +792,7 @@ type QueryAssetsRequest struct { func (x *QueryAssetsRequest) Reset() { *x = QueryAssetsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[7] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -805,7 +805,7 @@ func (x *QueryAssetsRequest) String() string { func (*QueryAssetsRequest) ProtoMessage() {} func (x *QueryAssetsRequest) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[7] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -818,7 +818,7 @@ func (x *QueryAssetsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use QueryAssetsRequest.ProtoReflect.Descriptor instead. func (*QueryAssetsRequest) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{7} + return file_stability_api_platform_project_v1_project_proto_rawDescGZIP(), []int{7} } func (x *QueryAssetsRequest) GetId() string { @@ -896,7 +896,7 @@ type QueryAssetsResponse struct { func (x *QueryAssetsResponse) Reset() { *x = QueryAssetsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[8] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -909,7 +909,7 @@ func (x *QueryAssetsResponse) String() string { func (*QueryAssetsResponse) ProtoMessage() {} func (x *QueryAssetsResponse) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[8] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -922,7 +922,7 @@ func (x *QueryAssetsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use QueryAssetsResponse.ProtoReflect.Descriptor instead. func (*QueryAssetsResponse) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{8} + return file_stability_api_platform_project_v1_project_proto_rawDescGZIP(), []int{8} } func (x *QueryAssetsResponse) GetAssets() []*ProjectAsset { @@ -953,7 +953,7 @@ type TagAssetsRequest struct { func (x *TagAssetsRequest) Reset() { *x = TagAssetsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[9] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -966,7 +966,7 @@ func (x *TagAssetsRequest) String() string { func (*TagAssetsRequest) ProtoMessage() {} func (x *TagAssetsRequest) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[9] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -979,7 +979,7 @@ func (x *TagAssetsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use TagAssetsRequest.ProtoReflect.Descriptor instead. func (*TagAssetsRequest) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{9} + return file_stability_api_platform_project_v1_project_proto_rawDescGZIP(), []int{9} } func (x *TagAssetsRequest) GetId() string { @@ -1023,7 +1023,7 @@ type TagAssetsResponse struct { func (x *TagAssetsResponse) Reset() { *x = TagAssetsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[10] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1036,7 +1036,7 @@ func (x *TagAssetsResponse) String() string { func (*TagAssetsResponse) ProtoMessage() {} func (x *TagAssetsResponse) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[10] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1049,7 +1049,7 @@ func (x *TagAssetsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use TagAssetsResponse.ProtoReflect.Descriptor instead. func (*TagAssetsResponse) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{10} + return file_stability_api_platform_project_v1_project_proto_rawDescGZIP(), []int{10} } func (x *TagAssetsResponse) GetId() string { @@ -1087,7 +1087,7 @@ type UntagAssetsRequest struct { func (x *UntagAssetsRequest) Reset() { *x = UntagAssetsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[11] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1100,7 +1100,7 @@ func (x *UntagAssetsRequest) String() string { func (*UntagAssetsRequest) ProtoMessage() {} func (x *UntagAssetsRequest) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[11] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1113,7 +1113,7 @@ func (x *UntagAssetsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UntagAssetsRequest.ProtoReflect.Descriptor instead. func (*UntagAssetsRequest) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{11} + return file_stability_api_platform_project_v1_project_proto_rawDescGZIP(), []int{11} } func (x *UntagAssetsRequest) GetId() string { @@ -1157,7 +1157,7 @@ type UntagAssetsResponse struct { func (x *UntagAssetsResponse) Reset() { *x = UntagAssetsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[12] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1170,7 +1170,7 @@ func (x *UntagAssetsResponse) String() string { func (*UntagAssetsResponse) ProtoMessage() {} func (x *UntagAssetsResponse) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[12] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1183,7 +1183,7 @@ func (x *UntagAssetsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UntagAssetsResponse.ProtoReflect.Descriptor instead. func (*UntagAssetsResponse) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{12} + return file_stability_api_platform_project_v1_project_proto_rawDescGZIP(), []int{12} } func (x *UntagAssetsResponse) GetId() string { @@ -1220,7 +1220,7 @@ type DeleteAssetsRequest struct { func (x *DeleteAssetsRequest) Reset() { *x = DeleteAssetsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[13] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1233,7 +1233,7 @@ func (x *DeleteAssetsRequest) String() string { func (*DeleteAssetsRequest) ProtoMessage() {} func (x *DeleteAssetsRequest) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[13] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1246,7 +1246,7 @@ func (x *DeleteAssetsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteAssetsRequest.ProtoReflect.Descriptor instead. func (*DeleteAssetsRequest) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{13} + return file_stability_api_platform_project_v1_project_proto_rawDescGZIP(), []int{13} } func (x *DeleteAssetsRequest) GetId() string { @@ -1283,7 +1283,7 @@ type DeleteAssetsResponse struct { func (x *DeleteAssetsResponse) Reset() { *x = DeleteAssetsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[14] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1296,7 +1296,7 @@ func (x *DeleteAssetsResponse) String() string { func (*DeleteAssetsResponse) ProtoMessage() {} func (x *DeleteAssetsResponse) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_platformapis_project_v1_project_proto_msgTypes[14] + mi := &file_stability_api_platform_project_v1_project_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1309,7 +1309,7 @@ func (x *DeleteAssetsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteAssetsResponse.ProtoReflect.Descriptor instead. func (*DeleteAssetsResponse) Descriptor() ([]byte, []int) { - return file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP(), []int{14} + return file_stability_api_platform_project_v1_project_proto_rawDescGZIP(), []int{14} } func (x *DeleteAssetsResponse) GetId() string { @@ -1333,363 +1333,363 @@ func (x *DeleteAssetsResponse) GetAssetIds() []string { return nil } -var File_stabilityai_platformapis_project_v1_project_proto protoreflect.FileDescriptor +var File_stability_api_platform_project_v1_project_proto protoreflect.FileDescriptor -var file_stabilityai_platformapis_project_v1_project_proto_rawDesc = []byte{ - 0x0a, 0x31, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2f, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x23, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, - 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x1a, 0x37, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, - 0x69, 0x74, 0x79, 0x61, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, - 0x69, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, - 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0xb3, 0x03, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, - 0x65, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x75, 0x72, 0x69, 0x12, 0x46, 0x0a, 0x03, 0x75, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, - 0x73, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x52, 0x03, 0x75, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, - 0x73, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, - 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, - 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, - 0x41, 0x74, 0x12, 0x49, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x08, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, - 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, - 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x73, 0x74, - 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x54, - 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x1a, 0x37, - 0x0a, 0x09, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xc6, 0x03, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, - 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, - 0x65, 0x72, 0x49, 0x64, 0x12, 0x4a, 0x0a, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, - 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, - 0x12, 0x4a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, +var file_stability_api_platform_project_v1_project_proto_rawDesc = []byte{ + 0x0a, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2f, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x23, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, - 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, - 0x12, 0x45, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, - 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, - 0x74, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x64, 0x5f, 0x61, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x49, 0x0a, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x18, - 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, - 0x22, 0xc6, 0x02, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, - 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, - 0x1e, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, - 0x4a, 0x0a, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, - 0x65, 0x73, 0x73, 0x52, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x4a, 0x0a, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, - 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, - 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x4a, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x48, 0x01, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, - 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, - 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0x85, 0x03, 0x0a, 0x14, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, - 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x48, 0x01, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x12, 0x4f, 0x0a, - 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, - 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x48, 0x02, 0x52, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x88, 0x01, 0x01, 0x12, 0x4f, - 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, - 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x48, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x88, 0x01, 0x01, 0x12, - 0x4a, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, + 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x1a, 0x35, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb3, 0x03, + 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, + 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, + 0x12, 0x46, 0x0a, 0x03, 0x75, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, - 0x48, 0x04, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, - 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x74, 0x69, 0x74, - 0x6c, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x09, 0x0a, - 0x07, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x66, 0x69, 0x6c, - 0x65, 0x22, 0x41, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, - 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, - 0x72, 0x5f, 0x69, 0x64, 0x22, 0x50, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x77, 0x6e, - 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6f, - 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x77, - 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x53, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x55, 0x73, 0x65, 0x52, 0x03, 0x75, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, + 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, + 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x49, + 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, 0x04, 0x74, 0x61, 0x67, + 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x54, 0x61, + 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x22, 0xc6, 0x03, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, + 0x12, 0x4a, 0x0a, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x52, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x4a, 0x0a, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x45, 0x0a, 0x04, + 0x66, 0x69, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x04, 0x66, + 0x69, 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, + 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, + 0x74, 0x12, 0x49, 0x0a, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, + 0x73, 0x73, 0x65, 0x74, 0x52, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x22, 0xc6, 0x02, 0x0a, + 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x08, 0x6f, + 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, + 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x4a, 0x0a, 0x06, 0x61, + 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, + 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x4a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x4a, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, + 0x73, 0x73, 0x65, 0x74, 0x48, 0x01, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x42, + 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x42, 0x07, 0x0a, 0x05, + 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0x85, 0x03, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0b, - 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x98, 0x04, 0x0a, 0x12, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, - 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x04, 0x48, 0x01, 0x52, 0x05, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, - 0x05, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x48, 0x02, 0x52, 0x05, - 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, - 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x48, 0x03, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, - 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6b, 0x65, 0x79, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x04, 0x52, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4b, - 0x65, 0x79, 0x88, 0x01, 0x01, 0x12, 0x46, 0x0a, 0x03, 0x75, 0x73, 0x65, 0x18, 0x07, 0x20, 0x03, - 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, - 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x41, 0x73, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x52, 0x03, 0x75, 0x73, 0x65, 0x12, 0x4e, 0x0a, - 0x08, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x33, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x6f, 0x72, - 0x74, 0x44, 0x69, 0x72, 0x52, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x44, 0x69, 0x72, 0x12, 0x55, 0x0a, - 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x41, 0x2e, 0x73, 0x74, - 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, - 0x74, 0x61, 0x67, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x0b, 0x0a, - 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x73, - 0x69, 0x6e, 0x63, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x42, 0x08, - 0x0a, 0x06, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x73, 0x74, 0x61, - 0x72, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x22, 0x8d, 0x01, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, - 0x0a, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, + 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x19, + 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, + 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x12, 0x4f, 0x0a, 0x06, 0x61, 0x63, 0x63, + 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x48, 0x02, 0x52, + 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x88, 0x01, 0x01, 0x12, 0x4f, 0x0a, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x03, + 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x88, 0x01, 0x01, 0x12, 0x4a, 0x0a, 0x04, 0x66, + 0x69, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x48, 0x04, 0x52, 0x04, + 0x66, 0x69, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x42, 0x09, + 0x0a, 0x07, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0x41, 0x0a, + 0x12, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, + 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x22, 0x50, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, + 0x69, 0x64, 0x22, 0x53, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, + 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, + 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x98, 0x04, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, + 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x19, + 0x0a, 0x05, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x48, 0x01, 0x52, + 0x05, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x75, 0x6e, 0x74, + 0x69, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x48, 0x02, 0x52, 0x05, 0x75, 0x6e, 0x74, 0x69, + 0x6c, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x04, 0x48, 0x03, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x88, 0x01, 0x01, 0x12, + 0x20, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x09, 0x48, 0x04, 0x52, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4b, 0x65, 0x79, 0x88, 0x01, + 0x01, 0x12, 0x46, 0x0a, 0x03, 0x75, 0x73, 0x65, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, - 0x74, 0x52, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x1e, 0x0a, 0x08, 0x6c, 0x61, 0x73, - 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6c, - 0x61, 0x73, 0x74, 0x4b, 0x65, 0x79, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6c, 0x61, - 0x73, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x22, 0xfa, 0x01, 0x0a, 0x10, 0x54, 0x61, 0x67, 0x41, 0x73, - 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x08, 0x6f, - 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, - 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x09, 0x61, - 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, - 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x73, 0x12, 0x53, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, - 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x67, - 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x61, - 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x1a, 0x37, 0x0a, - 0x09, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, - 0x5f, 0x69, 0x64, 0x22, 0x5b, 0x0a, 0x11, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, - 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, - 0x72, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x73, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x73, - 0x22, 0x89, 0x01, 0x0a, 0x12, 0x55, 0x6e, 0x74, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, + 0x74, 0x55, 0x73, 0x65, 0x52, 0x03, 0x75, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x08, 0x73, 0x6f, 0x72, + 0x74, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x73, 0x74, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x6f, 0x72, 0x74, 0x44, 0x69, 0x72, + 0x52, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x44, 0x69, 0x72, 0x12, 0x55, 0x0a, 0x04, 0x74, 0x61, 0x67, + 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x41, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, + 0x1a, 0x37, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x73, 0x69, 0x6e, 0x63, 0x65, + 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6c, + 0x69, 0x6d, 0x69, 0x74, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6b, + 0x65, 0x79, 0x22, 0x8d, 0x01, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x73, 0x73, 0x65, + 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x06, 0x61, 0x73, + 0x73, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x06, 0x61, + 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x1e, 0x0a, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6b, 0x65, + 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6c, 0x61, 0x73, 0x74, 0x4b, + 0x65, 0x79, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6b, + 0x65, 0x79, 0x22, 0xfa, 0x01, 0x0a, 0x10, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x61, 0x73, 0x73, 0x65, - 0x74, 0x49, 0x64, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x61, 0x67, 0x5f, 0x6b, 0x65, 0x79, 0x73, - 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x74, 0x61, 0x67, 0x4b, 0x65, 0x79, 0x73, 0x42, - 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x5d, 0x0a, 0x13, - 0x55, 0x6e, 0x74, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1b, - 0x0a, 0x09, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x73, 0x22, 0x6f, 0x0a, 0x13, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, - 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, - 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x73, 0x42, - 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x5e, 0x0a, 0x14, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x74, 0x49, 0x64, 0x73, 0x12, 0x53, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, + 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x54, 0x61, 0x67, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, + 0x5b, 0x0a, 0x11, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x73, 0x2a, 0x46, 0x0a, 0x0d, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a, - 0x16, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x53, 0x53, 0x5f, - 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x52, 0x4f, - 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x53, 0x53, 0x5f, 0x50, 0x55, 0x42, 0x4c, - 0x49, 0x43, 0x10, 0x01, 0x2a, 0x63, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, - 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x49, 0x4e, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, - 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x53, 0x54, - 0x41, 0x54, 0x55, 0x53, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x1a, 0x0a, - 0x16, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, - 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x02, 0x2a, 0xb0, 0x01, 0x0a, 0x0f, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x12, 0x1f, 0x0a, - 0x1b, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, - 0x53, 0x45, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1b, - 0x0a, 0x17, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, - 0x55, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x50, 0x55, 0x54, 0x10, 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x50, - 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, - 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x10, 0x02, 0x12, 0x22, 0x0a, 0x1e, 0x50, 0x52, 0x4f, - 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x49, - 0x4e, 0x54, 0x45, 0x52, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x54, 0x45, 0x10, 0x03, 0x12, 0x1d, 0x0a, - 0x19, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, - 0x53, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x04, 0x2a, 0x67, 0x0a, 0x0e, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x6f, 0x72, 0x74, 0x44, 0x69, 0x72, 0x12, 0x20, - 0x0a, 0x1c, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x53, 0x4f, 0x52, 0x54, 0x5f, 0x44, - 0x49, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x18, 0x0a, 0x14, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x53, 0x4f, 0x52, 0x54, - 0x5f, 0x44, 0x49, 0x52, 0x5f, 0x41, 0x53, 0x43, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x52, - 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x53, 0x4f, 0x52, 0x54, 0x5f, 0x44, 0x49, 0x52, 0x5f, 0x44, - 0x45, 0x53, 0x43, 0x10, 0x02, 0x32, 0xe1, 0x08, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x73, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x12, 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, - 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, - 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x00, 0x12, 0x73, 0x0a, - 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, - 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, - 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, - 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x22, 0x00, 0x12, 0x71, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x37, 0x2e, 0x73, 0x74, 0x61, - 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, - 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x22, 0x00, 0x30, 0x01, 0x12, 0x6d, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x36, 0x2e, 0x73, - 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, - 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, - 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x22, 0x00, 0x12, 0x73, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x39, + 0x28, 0x09, 0x52, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x73, 0x22, 0x89, 0x01, 0x0a, + 0x12, 0x55, 0x6e, 0x74, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, + 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x73, + 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x73, + 0x12, 0x19, 0x0a, 0x08, 0x74, 0x61, 0x67, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x04, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x07, 0x74, 0x61, 0x67, 0x4b, 0x65, 0x79, 0x73, 0x42, 0x0b, 0x0a, 0x09, 0x5f, + 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x5d, 0x0a, 0x13, 0x55, 0x6e, 0x74, 0x61, + 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x73, + 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x61, + 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x73, 0x22, 0x6f, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, + 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1b, + 0x0a, 0x09, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x73, 0x42, 0x0b, 0x0a, 0x09, 0x5f, + 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x5e, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x61, + 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, + 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x73, 0x2a, 0x46, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x52, 0x4f, + 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x53, 0x53, 0x5f, 0x50, 0x52, 0x49, 0x56, + 0x41, 0x54, 0x45, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, + 0x5f, 0x41, 0x43, 0x43, 0x45, 0x53, 0x53, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x10, 0x01, + 0x2a, 0x63, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x53, 0x54, 0x41, + 0x54, 0x55, 0x53, 0x5f, 0x49, 0x4e, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x00, 0x12, 0x19, + 0x0a, 0x15, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, + 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x52, 0x4f, + 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x45, 0x4c, 0x45, + 0x54, 0x45, 0x44, 0x10, 0x02, 0x2a, 0xb0, 0x01, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x1b, 0x50, 0x52, 0x4f, + 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x55, + 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x52, + 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, + 0x49, 0x4e, 0x50, 0x55, 0x54, 0x10, 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x50, 0x52, 0x4f, 0x4a, 0x45, + 0x43, 0x54, 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x4f, 0x55, 0x54, + 0x50, 0x55, 0x54, 0x10, 0x02, 0x12, 0x22, 0x0a, 0x1e, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, + 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, + 0x4d, 0x45, 0x44, 0x49, 0x41, 0x54, 0x45, 0x10, 0x03, 0x12, 0x1d, 0x0a, 0x19, 0x50, 0x52, 0x4f, + 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x50, + 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x04, 0x2a, 0x67, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x53, 0x6f, 0x72, 0x74, 0x44, 0x69, 0x72, 0x12, 0x20, 0x0a, 0x1c, 0x50, 0x52, + 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x53, 0x4f, 0x52, 0x54, 0x5f, 0x44, 0x49, 0x52, 0x5f, 0x55, + 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, + 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x53, 0x4f, 0x52, 0x54, 0x5f, 0x44, 0x49, 0x52, + 0x5f, 0x41, 0x53, 0x43, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, + 0x54, 0x5f, 0x53, 0x4f, 0x52, 0x54, 0x5f, 0x44, 0x49, 0x52, 0x5f, 0x44, 0x45, 0x53, 0x43, 0x10, + 0x02, 0x32, 0xe1, 0x08, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x12, 0x73, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x00, 0x12, 0x7c, 0x0a, 0x09, 0x54, 0x61, 0x67, - 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x35, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x00, 0x12, 0x73, 0x0a, 0x06, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x12, 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, + 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x00, 0x12, 0x71, + 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x67, - 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, - 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x82, 0x01, 0x0a, 0x0b, 0x55, 0x6e, 0x74, 0x61, - 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, - 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, - 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, - 0x74, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x00, 0x30, + 0x01, 0x12, 0x6d, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x36, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x74, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, - 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x82, 0x01, 0x0a, - 0x0b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x37, 0x2e, 0x73, - 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x00, + 0x12, 0x73, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x39, 0x2e, 0x73, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x85, 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, - 0x74, 0x73, 0x12, 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x22, 0x00, 0x12, 0x7c, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, + 0x74, 0x73, 0x12, 0x35, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, - 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x73, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, + 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x73, 0x74, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x82, 0x01, 0x0a, 0x0b, 0x55, 0x6e, 0x74, 0x61, 0x67, 0x41, 0x73, 0x73, + 0x65, 0x74, 0x73, 0x12, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x74, 0x61, 0x67, 0x41, + 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, - 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xc9, 0x02, 0x0a, 0x27, 0x63, 0x6f, - 0x6d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x61, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, 0x61, 0x69, 0x2f, 0x61, - 0x70, 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x67, 0x65, - 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, - 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, - 0x70, 0x69, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, 0x50, 0xaa, 0x02, - 0x23, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x50, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x23, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x74, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x82, 0x01, 0x0a, 0x0b, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x73, 0x73, + 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x85, 0x01, + 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x38, + 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xc7, 0x02, 0x0a, 0x27, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, + 0x31, 0x42, 0x0c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x5f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x5f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, 0x50, 0xaa, 0x02, 0x23, 0x53, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, + 0x23, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x2f, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x2f, 0x53, 0x74, 0x61, - 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5c, 0x56, 0x31, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x26, 0x53, - 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x3a, 0x3a, 0x50, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x3a, 0x3a, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, + 0x69, 0x73, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_stabilityai_platformapis_project_v1_project_proto_rawDescOnce sync.Once - file_stabilityai_platformapis_project_v1_project_proto_rawDescData = file_stabilityai_platformapis_project_v1_project_proto_rawDesc + file_stability_api_platform_project_v1_project_proto_rawDescOnce sync.Once + file_stability_api_platform_project_v1_project_proto_rawDescData = file_stability_api_platform_project_v1_project_proto_rawDesc ) -func file_stabilityai_platformapis_project_v1_project_proto_rawDescGZIP() []byte { - file_stabilityai_platformapis_project_v1_project_proto_rawDescOnce.Do(func() { - file_stabilityai_platformapis_project_v1_project_proto_rawDescData = protoimpl.X.CompressGZIP(file_stabilityai_platformapis_project_v1_project_proto_rawDescData) +func file_stability_api_platform_project_v1_project_proto_rawDescGZIP() []byte { + file_stability_api_platform_project_v1_project_proto_rawDescOnce.Do(func() { + file_stability_api_platform_project_v1_project_proto_rawDescData = protoimpl.X.CompressGZIP(file_stability_api_platform_project_v1_project_proto_rawDescData) }) - return file_stabilityai_platformapis_project_v1_project_proto_rawDescData + return file_stability_api_platform_project_v1_project_proto_rawDescData } -var file_stabilityai_platformapis_project_v1_project_proto_enumTypes = make([]protoimpl.EnumInfo, 4) -var file_stabilityai_platformapis_project_v1_project_proto_msgTypes = make([]protoimpl.MessageInfo, 18) -var file_stabilityai_platformapis_project_v1_project_proto_goTypes = []interface{}{ +var file_stability_api_platform_project_v1_project_proto_enumTypes = make([]protoimpl.EnumInfo, 4) +var file_stability_api_platform_project_v1_project_proto_msgTypes = make([]protoimpl.MessageInfo, 18) +var file_stability_api_platform_project_v1_project_proto_goTypes = []interface{}{ (ProjectAccess)(0), // 0: stabilityai.platformapis.project.v1.ProjectAccess (ProjectStatus)(0), // 1: stabilityai.platformapis.project.v1.ProjectStatus (ProjectAssetUse)(0), // 2: stabilityai.platformapis.project.v1.ProjectAssetUse @@ -1714,7 +1714,7 @@ var file_stabilityai_platformapis_project_v1_project_proto_goTypes = []interface nil, // 21: stabilityai.platformapis.project.v1.TagAssetsRequest.TagsEntry (*v1.Request)(nil), // 22: stabilityai.platformapis.generation.v1.Request } -var file_stabilityai_platformapis_project_v1_project_proto_depIdxs = []int32{ +var file_stability_api_platform_project_v1_project_proto_depIdxs = []int32{ 2, // 0: stabilityai.platformapis.project.v1.ProjectAsset.use:type_name -> stabilityai.platformapis.project.v1.ProjectAssetUse 22, // 1: stabilityai.platformapis.project.v1.ProjectAsset.request:type_name -> stabilityai.platformapis.generation.v1.Request 19, // 2: stabilityai.platformapis.project.v1.ProjectAsset.tags:type_name -> stabilityai.platformapis.project.v1.ProjectAsset.TagsEntry @@ -1758,13 +1758,13 @@ var file_stabilityai_platformapis_project_v1_project_proto_depIdxs = []int32{ 0, // [0:18] is the sub-list for field type_name } -func init() { file_stabilityai_platformapis_project_v1_project_proto_init() } -func file_stabilityai_platformapis_project_v1_project_proto_init() { - if File_stabilityai_platformapis_project_v1_project_proto != nil { +func init() { file_stability_api_platform_project_v1_project_proto_init() } +func file_stability_api_platform_project_v1_project_proto_init() { + if File_stability_api_platform_project_v1_project_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_stabilityai_platformapis_project_v1_project_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_project_v1_project_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ProjectAsset); i { case 0: return &v.state @@ -1776,7 +1776,7 @@ func file_stabilityai_platformapis_project_v1_project_proto_init() { return nil } } - file_stabilityai_platformapis_project_v1_project_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_project_v1_project_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Project); i { case 0: return &v.state @@ -1788,7 +1788,7 @@ func file_stabilityai_platformapis_project_v1_project_proto_init() { return nil } } - file_stabilityai_platformapis_project_v1_project_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_project_v1_project_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateProjectRequest); i { case 0: return &v.state @@ -1800,7 +1800,7 @@ func file_stabilityai_platformapis_project_v1_project_proto_init() { return nil } } - file_stabilityai_platformapis_project_v1_project_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_project_v1_project_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateProjectRequest); i { case 0: return &v.state @@ -1812,7 +1812,7 @@ func file_stabilityai_platformapis_project_v1_project_proto_init() { return nil } } - file_stabilityai_platformapis_project_v1_project_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_project_v1_project_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListProjectRequest); i { case 0: return &v.state @@ -1824,7 +1824,7 @@ func file_stabilityai_platformapis_project_v1_project_proto_init() { return nil } } - file_stabilityai_platformapis_project_v1_project_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_project_v1_project_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetProjectRequest); i { case 0: return &v.state @@ -1836,7 +1836,7 @@ func file_stabilityai_platformapis_project_v1_project_proto_init() { return nil } } - file_stabilityai_platformapis_project_v1_project_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_project_v1_project_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteProjectRequest); i { case 0: return &v.state @@ -1848,7 +1848,7 @@ func file_stabilityai_platformapis_project_v1_project_proto_init() { return nil } } - file_stabilityai_platformapis_project_v1_project_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_project_v1_project_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryAssetsRequest); i { case 0: return &v.state @@ -1860,7 +1860,7 @@ func file_stabilityai_platformapis_project_v1_project_proto_init() { return nil } } - file_stabilityai_platformapis_project_v1_project_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_project_v1_project_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryAssetsResponse); i { case 0: return &v.state @@ -1872,7 +1872,7 @@ func file_stabilityai_platformapis_project_v1_project_proto_init() { return nil } } - file_stabilityai_platformapis_project_v1_project_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_project_v1_project_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TagAssetsRequest); i { case 0: return &v.state @@ -1884,7 +1884,7 @@ func file_stabilityai_platformapis_project_v1_project_proto_init() { return nil } } - file_stabilityai_platformapis_project_v1_project_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_project_v1_project_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TagAssetsResponse); i { case 0: return &v.state @@ -1896,7 +1896,7 @@ func file_stabilityai_platformapis_project_v1_project_proto_init() { return nil } } - file_stabilityai_platformapis_project_v1_project_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_project_v1_project_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UntagAssetsRequest); i { case 0: return &v.state @@ -1908,7 +1908,7 @@ func file_stabilityai_platformapis_project_v1_project_proto_init() { return nil } } - file_stabilityai_platformapis_project_v1_project_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_project_v1_project_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UntagAssetsResponse); i { case 0: return &v.state @@ -1920,7 +1920,7 @@ func file_stabilityai_platformapis_project_v1_project_proto_init() { return nil } } - file_stabilityai_platformapis_project_v1_project_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_project_v1_project_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteAssetsRequest); i { case 0: return &v.state @@ -1932,7 +1932,7 @@ func file_stabilityai_platformapis_project_v1_project_proto_init() { return nil } } - file_stabilityai_platformapis_project_v1_project_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_platform_project_v1_project_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteAssetsResponse); i { case 0: return &v.state @@ -1945,33 +1945,33 @@ func file_stabilityai_platformapis_project_v1_project_proto_init() { } } } - file_stabilityai_platformapis_project_v1_project_proto_msgTypes[2].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_project_v1_project_proto_msgTypes[3].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_project_v1_project_proto_msgTypes[4].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_project_v1_project_proto_msgTypes[5].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_project_v1_project_proto_msgTypes[6].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_project_v1_project_proto_msgTypes[7].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_project_v1_project_proto_msgTypes[8].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_project_v1_project_proto_msgTypes[9].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_project_v1_project_proto_msgTypes[11].OneofWrappers = []interface{}{} - file_stabilityai_platformapis_project_v1_project_proto_msgTypes[13].OneofWrappers = []interface{}{} + file_stability_api_platform_project_v1_project_proto_msgTypes[2].OneofWrappers = []interface{}{} + file_stability_api_platform_project_v1_project_proto_msgTypes[3].OneofWrappers = []interface{}{} + file_stability_api_platform_project_v1_project_proto_msgTypes[4].OneofWrappers = []interface{}{} + file_stability_api_platform_project_v1_project_proto_msgTypes[5].OneofWrappers = []interface{}{} + file_stability_api_platform_project_v1_project_proto_msgTypes[6].OneofWrappers = []interface{}{} + file_stability_api_platform_project_v1_project_proto_msgTypes[7].OneofWrappers = []interface{}{} + file_stability_api_platform_project_v1_project_proto_msgTypes[8].OneofWrappers = []interface{}{} + file_stability_api_platform_project_v1_project_proto_msgTypes[9].OneofWrappers = []interface{}{} + file_stability_api_platform_project_v1_project_proto_msgTypes[11].OneofWrappers = []interface{}{} + file_stability_api_platform_project_v1_project_proto_msgTypes[13].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_stabilityai_platformapis_project_v1_project_proto_rawDesc, + RawDescriptor: file_stability_api_platform_project_v1_project_proto_rawDesc, NumEnums: 4, NumMessages: 18, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_stabilityai_platformapis_project_v1_project_proto_goTypes, - DependencyIndexes: file_stabilityai_platformapis_project_v1_project_proto_depIdxs, - EnumInfos: file_stabilityai_platformapis_project_v1_project_proto_enumTypes, - MessageInfos: file_stabilityai_platformapis_project_v1_project_proto_msgTypes, + GoTypes: file_stability_api_platform_project_v1_project_proto_goTypes, + DependencyIndexes: file_stability_api_platform_project_v1_project_proto_depIdxs, + EnumInfos: file_stability_api_platform_project_v1_project_proto_enumTypes, + MessageInfos: file_stability_api_platform_project_v1_project_proto_msgTypes, }.Build() - File_stabilityai_platformapis_project_v1_project_proto = out.File - file_stabilityai_platformapis_project_v1_project_proto_rawDesc = nil - file_stabilityai_platformapis_project_v1_project_proto_goTypes = nil - file_stabilityai_platformapis_project_v1_project_proto_depIdxs = nil + File_stability_api_platform_project_v1_project_proto = out.File + file_stability_api_platform_project_v1_project_proto_rawDesc = nil + file_stability_api_platform_project_v1_project_proto_goTypes = nil + file_stability_api_platform_project_v1_project_proto_depIdxs = nil } diff --git a/gen/proto/go/stabilityai/platformapis/project/v1/project_grpc.pb.go b/gen/proto/go/stability_api/platform/project/v1/project_grpc.pb.go similarity index 99% rename from gen/proto/go/stabilityai/platformapis/project/v1/project_grpc.pb.go rename to gen/proto/go/stability_api/platform/project/v1/project_grpc.pb.go index 015db73..43d4f10 100644 --- a/gen/proto/go/stabilityai/platformapis/project/v1/project_grpc.pb.go +++ b/gen/proto/go/stability_api/platform/project/v1/project_grpc.pb.go @@ -2,7 +2,7 @@ // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) -// source: stabilityai/platformapis/project/v1/project.proto +// source: stability_api/platform/project/v1/project.proto package projectv1 @@ -445,5 +445,5 @@ var ProjectService_ServiceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, - Metadata: "stabilityai/platformapis/project/v1/project.proto", + Metadata: "stability_api/platform/project/v1/project.proto", } diff --git a/gen/proto/go/stabilityai/platformapis/project/v1/projectv1connect/project.connect.go b/gen/proto/go/stability_api/platform/project/v1/projectv1connect/project.connect.go similarity index 99% rename from gen/proto/go/stabilityai/platformapis/project/v1/projectv1connect/project.connect.go rename to gen/proto/go/stability_api/platform/project/v1/projectv1connect/project.connect.go index 9054c88..7bb8f81 100644 --- a/gen/proto/go/stabilityai/platformapis/project/v1/projectv1connect/project.connect.go +++ b/gen/proto/go/stability_api/platform/project/v1/projectv1connect/project.connect.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-connect-go. DO NOT EDIT. // -// Source: stabilityai/platformapis/project/v1/project.proto +// Source: stability_api/platform/project/v1/project.proto package projectv1connect @@ -8,7 +8,7 @@ import ( context "context" errors "errors" connect_go "github.com/bufbuild/connect-go" - v1 "github.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/project/v1" + v1 "github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/project/v1" http "net/http" strings "strings" ) diff --git a/gen/proto/go/stabilityai/tensors/tensors.pb.go b/gen/proto/go/stability_api/tensors/tensors.pb.go similarity index 54% rename from gen/proto/go/stabilityai/tensors/tensors.pb.go rename to gen/proto/go/stability_api/tensors/tensors.pb.go index c11fea5..9fbe6c1 100644 --- a/gen/proto/go/stabilityai/tensors/tensors.pb.go +++ b/gen/proto/go/stability_api/tensors/tensors.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.30.0 // protoc (unknown) -// source: stabilityai/tensors/tensors.proto +// source: stability_api/tensors/tensors.proto package tensors @@ -98,11 +98,11 @@ func (x Dtype) String() string { } func (Dtype) Descriptor() protoreflect.EnumDescriptor { - return file_stabilityai_tensors_tensors_proto_enumTypes[0].Descriptor() + return file_stability_api_tensors_tensors_proto_enumTypes[0].Descriptor() } func (Dtype) Type() protoreflect.EnumType { - return &file_stabilityai_tensors_tensors_proto_enumTypes[0] + return &file_stability_api_tensors_tensors_proto_enumTypes[0] } func (x Dtype) Number() protoreflect.EnumNumber { @@ -111,7 +111,7 @@ func (x Dtype) Number() protoreflect.EnumNumber { // Deprecated: Use Dtype.Descriptor instead. func (Dtype) EnumDescriptor() ([]byte, []int) { - return file_stabilityai_tensors_tensors_proto_rawDescGZIP(), []int{0} + return file_stability_api_tensors_tensors_proto_rawDescGZIP(), []int{0} } type AttributeType int32 @@ -144,11 +144,11 @@ func (x AttributeType) String() string { } func (AttributeType) Descriptor() protoreflect.EnumDescriptor { - return file_stabilityai_tensors_tensors_proto_enumTypes[1].Descriptor() + return file_stability_api_tensors_tensors_proto_enumTypes[1].Descriptor() } func (AttributeType) Type() protoreflect.EnumType { - return &file_stabilityai_tensors_tensors_proto_enumTypes[1] + return &file_stability_api_tensors_tensors_proto_enumTypes[1] } func (x AttributeType) Number() protoreflect.EnumNumber { @@ -157,7 +157,7 @@ func (x AttributeType) Number() protoreflect.EnumNumber { // Deprecated: Use AttributeType.Descriptor instead. func (AttributeType) EnumDescriptor() ([]byte, []int) { - return file_stabilityai_tensors_tensors_proto_rawDescGZIP(), []int{1} + return file_stability_api_tensors_tensors_proto_rawDescGZIP(), []int{1} } type Tensor struct { @@ -174,7 +174,7 @@ type Tensor struct { func (x *Tensor) Reset() { *x = Tensor{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_tensors_tensors_proto_msgTypes[0] + mi := &file_stability_api_tensors_tensors_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -187,7 +187,7 @@ func (x *Tensor) String() string { func (*Tensor) ProtoMessage() {} func (x *Tensor) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_tensors_tensors_proto_msgTypes[0] + mi := &file_stability_api_tensors_tensors_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -200,7 +200,7 @@ func (x *Tensor) ProtoReflect() protoreflect.Message { // Deprecated: Use Tensor.ProtoReflect.Descriptor instead. func (*Tensor) Descriptor() ([]byte, []int) { - return file_stabilityai_tensors_tensors_proto_rawDescGZIP(), []int{0} + return file_stability_api_tensors_tensors_proto_rawDescGZIP(), []int{0} } func (x *Tensor) GetDtype() Dtype { @@ -251,7 +251,7 @@ type Attribute struct { func (x *Attribute) Reset() { *x = Attribute{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_tensors_tensors_proto_msgTypes[1] + mi := &file_stability_api_tensors_tensors_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -264,7 +264,7 @@ func (x *Attribute) String() string { func (*Attribute) ProtoMessage() {} func (x *Attribute) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_tensors_tensors_proto_msgTypes[1] + mi := &file_stability_api_tensors_tensors_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -277,7 +277,7 @@ func (x *Attribute) ProtoReflect() protoreflect.Message { // Deprecated: Use Attribute.ProtoReflect.Descriptor instead. func (*Attribute) Descriptor() ([]byte, []int) { - return file_stabilityai_tensors_tensors_proto_rawDescGZIP(), []int{1} + return file_stability_api_tensors_tensors_proto_rawDescGZIP(), []int{1} } func (x *Attribute) GetName() string { @@ -389,7 +389,7 @@ type Module struct { func (x *Module) Reset() { *x = Module{} if protoimpl.UnsafeEnabled { - mi := &file_stabilityai_tensors_tensors_proto_msgTypes[2] + mi := &file_stability_api_tensors_tensors_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -402,7 +402,7 @@ func (x *Module) String() string { func (*Module) ProtoMessage() {} func (x *Module) ProtoReflect() protoreflect.Message { - mi := &file_stabilityai_tensors_tensors_proto_msgTypes[2] + mi := &file_stability_api_tensors_tensors_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -415,7 +415,7 @@ func (x *Module) ProtoReflect() protoreflect.Message { // Deprecated: Use Module.ProtoReflect.Descriptor instead. func (*Module) Descriptor() ([]byte, []int) { - return file_stabilityai_tensors_tensors_proto_rawDescGZIP(), []int{2} + return file_stability_api_tensors_tensors_proto_rawDescGZIP(), []int{2} } func (x *Module) GetName() string { @@ -439,99 +439,99 @@ func (x *Module) GetAttributes() []*Attribute { return nil } -var File_stabilityai_tensors_tensors_proto protoreflect.FileDescriptor - -var file_stabilityai_tensors_tensors_proto_rawDesc = []byte{ - 0x0a, 0x21, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2f, 0x74, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x22, 0xa0, 0x01, 0x0a, - 0x06, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x12, 0x24, 0x0a, 0x05, 0x64, 0x74, 0x79, 0x70, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, - 0x2e, 0x44, 0x74, 0x79, 0x70, 0x65, 0x52, 0x05, 0x64, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, - 0x05, 0x73, 0x68, 0x61, 0x70, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x03, 0x52, 0x05, 0x73, 0x68, - 0x61, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x38, 0x0a, 0x09, 0x61, 0x74, 0x74, 0x72, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x73, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x54, 0x79, - 0x70, 0x65, 0x48, 0x00, 0x52, 0x08, 0x61, 0x74, 0x74, 0x72, 0x54, 0x79, 0x70, 0x65, 0x88, 0x01, - 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, - 0xde, 0x01, 0x0a, 0x09, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x29, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x2e, 0x4d, 0x6f, 0x64, 0x75, - 0x6c, 0x65, 0x48, 0x00, 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x29, 0x0a, 0x06, - 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x48, 0x00, 0x52, - 0x06, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x12, 0x16, 0x0a, 0x05, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, - 0x48, 0x00, 0x52, 0x05, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x16, 0x0a, 0x05, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x05, 0x66, 0x6c, 0x6f, 0x61, - 0x74, 0x12, 0x14, 0x0a, 0x04, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x48, - 0x00, 0x52, 0x04, 0x62, 0x6f, 0x6f, 0x6c, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x22, 0x66, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, - 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e, - 0x61, 0x6d, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, - 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x73, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x0a, 0x61, 0x74, - 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2a, 0x9e, 0x02, 0x0a, 0x05, 0x44, 0x74, 0x79, - 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x54, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, - 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x54, 0x5f, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x33, 0x32, - 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x54, 0x5f, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x36, 0x34, - 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x54, 0x5f, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x31, 0x36, - 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x44, 0x54, 0x5f, 0x42, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x31, - 0x36, 0x10, 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x54, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, - 0x58, 0x33, 0x32, 0x10, 0x05, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x54, 0x5f, 0x43, 0x4f, 0x4d, 0x50, - 0x4c, 0x45, 0x58, 0x36, 0x34, 0x10, 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x44, 0x54, 0x5f, 0x43, 0x4f, - 0x4d, 0x50, 0x4c, 0x45, 0x58, 0x31, 0x32, 0x38, 0x10, 0x07, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x54, - 0x5f, 0x55, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x08, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x54, 0x5f, 0x49, - 0x4e, 0x54, 0x38, 0x10, 0x09, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x54, 0x5f, 0x49, 0x4e, 0x54, 0x31, - 0x36, 0x10, 0x0a, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x54, 0x5f, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, - 0x0b, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x54, 0x5f, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x0c, 0x12, - 0x0b, 0x0a, 0x07, 0x44, 0x54, 0x5f, 0x42, 0x4f, 0x4f, 0x4c, 0x10, 0x0d, 0x12, 0x0d, 0x0a, 0x09, - 0x44, 0x54, 0x5f, 0x51, 0x55, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x0e, 0x12, 0x0c, 0x0a, 0x08, 0x44, - 0x54, 0x5f, 0x51, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x0f, 0x12, 0x0d, 0x0a, 0x09, 0x44, 0x54, 0x5f, - 0x51, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x10, 0x12, 0x0f, 0x0a, 0x0b, 0x44, 0x54, 0x5f, 0x51, - 0x55, 0x49, 0x4e, 0x54, 0x34, 0x5f, 0x32, 0x10, 0x11, 0x2a, 0x30, 0x0a, 0x0d, 0x41, 0x74, 0x74, - 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x54, - 0x5f, 0x50, 0x41, 0x52, 0x41, 0x4d, 0x45, 0x54, 0x45, 0x52, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, - 0x41, 0x54, 0x5f, 0x42, 0x55, 0x46, 0x46, 0x45, 0x52, 0x10, 0x01, 0x42, 0xa0, 0x01, 0x0a, 0x0b, - 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x42, 0x0c, 0x54, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x47, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x79, 0x2d, 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, - 0x63, 0x65, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, - 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2f, 0x74, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x73, 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, 0x07, 0x54, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x73, 0xca, 0x02, 0x07, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0xe2, 0x02, - 0x13, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x07, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var File_stability_api_tensors_tensors_proto protoreflect.FileDescriptor + +var file_stability_api_tensors_tensors_proto_rawDesc = []byte{ + 0x0a, 0x23, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2f, + 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x22, 0xa0, + 0x01, 0x0a, 0x06, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x12, 0x24, 0x0a, 0x05, 0x64, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x73, 0x2e, 0x44, 0x74, 0x79, 0x70, 0x65, 0x52, 0x05, 0x64, 0x74, 0x79, 0x70, 0x65, 0x12, + 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x70, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x03, 0x52, 0x05, + 0x73, 0x68, 0x61, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x38, 0x0a, 0x09, 0x61, 0x74, 0x74, + 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x74, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x08, 0x61, 0x74, 0x74, 0x72, 0x54, 0x79, 0x70, 0x65, + 0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x22, 0xde, 0x01, 0x0a, 0x09, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x2e, 0x4d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x29, + 0x0a, 0x06, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, + 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x48, + 0x00, 0x52, 0x06, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x06, 0x73, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x73, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x12, 0x16, 0x0a, 0x05, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x03, 0x48, 0x00, 0x52, 0x05, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x16, 0x0a, 0x05, 0x66, + 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x05, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x12, 0x14, 0x0a, 0x04, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x08, 0x48, 0x00, 0x52, 0x04, 0x62, 0x6f, 0x6f, 0x6c, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x22, 0x66, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x73, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x0a, + 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2a, 0x9e, 0x02, 0x0a, 0x05, 0x44, + 0x74, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x54, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, + 0x49, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x54, 0x5f, 0x46, 0x4c, 0x4f, 0x41, 0x54, + 0x33, 0x32, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x54, 0x5f, 0x46, 0x4c, 0x4f, 0x41, 0x54, + 0x36, 0x34, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x54, 0x5f, 0x46, 0x4c, 0x4f, 0x41, 0x54, + 0x31, 0x36, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x44, 0x54, 0x5f, 0x42, 0x46, 0x4c, 0x4f, 0x41, + 0x54, 0x31, 0x36, 0x10, 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x54, 0x5f, 0x43, 0x4f, 0x4d, 0x50, + 0x4c, 0x45, 0x58, 0x33, 0x32, 0x10, 0x05, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x54, 0x5f, 0x43, 0x4f, + 0x4d, 0x50, 0x4c, 0x45, 0x58, 0x36, 0x34, 0x10, 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x44, 0x54, 0x5f, + 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x58, 0x31, 0x32, 0x38, 0x10, 0x07, 0x12, 0x0c, 0x0a, 0x08, + 0x44, 0x54, 0x5f, 0x55, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x08, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x54, + 0x5f, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x09, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x54, 0x5f, 0x49, 0x4e, + 0x54, 0x31, 0x36, 0x10, 0x0a, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x54, 0x5f, 0x49, 0x4e, 0x54, 0x33, + 0x32, 0x10, 0x0b, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x54, 0x5f, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, + 0x0c, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x54, 0x5f, 0x42, 0x4f, 0x4f, 0x4c, 0x10, 0x0d, 0x12, 0x0d, + 0x0a, 0x09, 0x44, 0x54, 0x5f, 0x51, 0x55, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x0e, 0x12, 0x0c, 0x0a, + 0x08, 0x44, 0x54, 0x5f, 0x51, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x0f, 0x12, 0x0d, 0x0a, 0x09, 0x44, + 0x54, 0x5f, 0x51, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x10, 0x12, 0x0f, 0x0a, 0x0b, 0x44, 0x54, + 0x5f, 0x51, 0x55, 0x49, 0x4e, 0x54, 0x34, 0x5f, 0x32, 0x10, 0x11, 0x2a, 0x30, 0x0a, 0x0d, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, + 0x41, 0x54, 0x5f, 0x50, 0x41, 0x52, 0x41, 0x4d, 0x45, 0x54, 0x45, 0x52, 0x10, 0x00, 0x12, 0x0d, + 0x0a, 0x09, 0x41, 0x54, 0x5f, 0x42, 0x55, 0x46, 0x46, 0x45, 0x52, 0x10, 0x01, 0x42, 0xa2, 0x01, + 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x42, 0x0c, 0x54, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x49, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x2d, 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x70, 0x69, + 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, + 0x07, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0xca, 0x02, 0x07, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x73, 0xe2, 0x02, 0x13, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x07, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_stabilityai_tensors_tensors_proto_rawDescOnce sync.Once - file_stabilityai_tensors_tensors_proto_rawDescData = file_stabilityai_tensors_tensors_proto_rawDesc + file_stability_api_tensors_tensors_proto_rawDescOnce sync.Once + file_stability_api_tensors_tensors_proto_rawDescData = file_stability_api_tensors_tensors_proto_rawDesc ) -func file_stabilityai_tensors_tensors_proto_rawDescGZIP() []byte { - file_stabilityai_tensors_tensors_proto_rawDescOnce.Do(func() { - file_stabilityai_tensors_tensors_proto_rawDescData = protoimpl.X.CompressGZIP(file_stabilityai_tensors_tensors_proto_rawDescData) +func file_stability_api_tensors_tensors_proto_rawDescGZIP() []byte { + file_stability_api_tensors_tensors_proto_rawDescOnce.Do(func() { + file_stability_api_tensors_tensors_proto_rawDescData = protoimpl.X.CompressGZIP(file_stability_api_tensors_tensors_proto_rawDescData) }) - return file_stabilityai_tensors_tensors_proto_rawDescData + return file_stability_api_tensors_tensors_proto_rawDescData } -var file_stabilityai_tensors_tensors_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_stabilityai_tensors_tensors_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_stabilityai_tensors_tensors_proto_goTypes = []interface{}{ +var file_stability_api_tensors_tensors_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_stability_api_tensors_tensors_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_stability_api_tensors_tensors_proto_goTypes = []interface{}{ (Dtype)(0), // 0: tensors.Dtype (AttributeType)(0), // 1: tensors.AttributeType (*Tensor)(nil), // 2: tensors.Tensor (*Attribute)(nil), // 3: tensors.Attribute (*Module)(nil), // 4: tensors.Module } -var file_stabilityai_tensors_tensors_proto_depIdxs = []int32{ +var file_stability_api_tensors_tensors_proto_depIdxs = []int32{ 0, // 0: tensors.Tensor.dtype:type_name -> tensors.Dtype 1, // 1: tensors.Tensor.attr_type:type_name -> tensors.AttributeType 4, // 2: tensors.Attribute.module:type_name -> tensors.Module @@ -544,13 +544,13 @@ var file_stabilityai_tensors_tensors_proto_depIdxs = []int32{ 0, // [0:5] is the sub-list for field type_name } -func init() { file_stabilityai_tensors_tensors_proto_init() } -func file_stabilityai_tensors_tensors_proto_init() { - if File_stabilityai_tensors_tensors_proto != nil { +func init() { file_stability_api_tensors_tensors_proto_init() } +func file_stability_api_tensors_tensors_proto_init() { + if File_stability_api_tensors_tensors_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_stabilityai_tensors_tensors_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_tensors_tensors_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Tensor); i { case 0: return &v.state @@ -562,7 +562,7 @@ func file_stabilityai_tensors_tensors_proto_init() { return nil } } - file_stabilityai_tensors_tensors_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_tensors_tensors_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Attribute); i { case 0: return &v.state @@ -574,7 +574,7 @@ func file_stabilityai_tensors_tensors_proto_init() { return nil } } - file_stabilityai_tensors_tensors_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_stability_api_tensors_tensors_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Module); i { case 0: return &v.state @@ -587,8 +587,8 @@ func file_stabilityai_tensors_tensors_proto_init() { } } } - file_stabilityai_tensors_tensors_proto_msgTypes[0].OneofWrappers = []interface{}{} - file_stabilityai_tensors_tensors_proto_msgTypes[1].OneofWrappers = []interface{}{ + file_stability_api_tensors_tensors_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_stability_api_tensors_tensors_proto_msgTypes[1].OneofWrappers = []interface{}{ (*Attribute_Module)(nil), (*Attribute_Tensor)(nil), (*Attribute_String_)(nil), @@ -600,19 +600,19 @@ func file_stabilityai_tensors_tensors_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_stabilityai_tensors_tensors_proto_rawDesc, + RawDescriptor: file_stability_api_tensors_tensors_proto_rawDesc, NumEnums: 2, NumMessages: 3, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_stabilityai_tensors_tensors_proto_goTypes, - DependencyIndexes: file_stabilityai_tensors_tensors_proto_depIdxs, - EnumInfos: file_stabilityai_tensors_tensors_proto_enumTypes, - MessageInfos: file_stabilityai_tensors_tensors_proto_msgTypes, + GoTypes: file_stability_api_tensors_tensors_proto_goTypes, + DependencyIndexes: file_stability_api_tensors_tensors_proto_depIdxs, + EnumInfos: file_stability_api_tensors_tensors_proto_enumTypes, + MessageInfos: file_stability_api_tensors_tensors_proto_msgTypes, }.Build() - File_stabilityai_tensors_tensors_proto = out.File - file_stabilityai_tensors_tensors_proto_rawDesc = nil - file_stabilityai_tensors_tensors_proto_goTypes = nil - file_stabilityai_tensors_tensors_proto_depIdxs = nil + File_stability_api_tensors_tensors_proto = out.File + file_stability_api_tensors_tensors_proto_rawDesc = nil + file_stability_api_tensors_tensors_proto_goTypes = nil + file_stability_api_tensors_tensors_proto_depIdxs = nil } diff --git a/gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_connect.d.ts b/gen/proto/js/stability_api/platform/dashboard/v1/dashboard_connect.d.ts similarity index 97% rename from gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_connect.d.ts rename to gen/proto/js/stability_api/platform/dashboard/v1/dashboard_connect.d.ts index 3017a63..275b228 100644 --- a/gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_connect.d.ts +++ b/gen/proto/js/stability_api/platform/dashboard/v1/dashboard_connect.d.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-connect-es v0.8.6 -// @generated from file stabilityai/platformapis/dashboard/v1/dashboard.proto (package stabilityai.api.dashboard.v1, syntax proto3) +// @generated from file stability_api/platform/dashboard/v1/dashboard.proto (package stabilityai.api.dashboard.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_connect.js b/gen/proto/js/stability_api/platform/dashboard/v1/dashboard_connect.js similarity index 97% rename from gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_connect.js rename to gen/proto/js/stability_api/platform/dashboard/v1/dashboard_connect.js index 6380442..f1dc051 100644 --- a/gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_connect.js +++ b/gen/proto/js/stability_api/platform/dashboard/v1/dashboard_connect.js @@ -1,5 +1,5 @@ // @generated by protoc-gen-connect-es v0.8.6 -// @generated from file stabilityai/platformapis/dashboard/v1/dashboard.proto (package stabilityai.api.dashboard.v1, syntax proto3) +// @generated from file stability_api/platform/dashboard/v1/dashboard.proto (package stabilityai.api.dashboard.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_pb.d.ts b/gen/proto/js/stability_api/platform/dashboard/v1/dashboard_pb.d.ts similarity index 99% rename from gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_pb.d.ts rename to gen/proto/js/stability_api/platform/dashboard/v1/dashboard_pb.d.ts index c86ab43..97d1257 100644 --- a/gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_pb.d.ts +++ b/gen/proto/js/stability_api/platform/dashboard/v1/dashboard_pb.d.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 -// @generated from file stabilityai/platformapis/dashboard/v1/dashboard.proto (package stabilityai.api.dashboard.v1, syntax proto3) +// @generated from file stability_api/platform/dashboard/v1/dashboard.proto (package stabilityai.api.dashboard.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_pb.js b/gen/proto/js/stability_api/platform/dashboard/v1/dashboard_pb.js similarity index 98% rename from gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_pb.js rename to gen/proto/js/stability_api/platform/dashboard/v1/dashboard_pb.js index 95ef15d..822113b 100644 --- a/gen/proto/js/stabilityai/platformapis/dashboard/v1/dashboard_pb.js +++ b/gen/proto/js/stability_api/platform/dashboard/v1/dashboard_pb.js @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 -// @generated from file stabilityai/platformapis/dashboard/v1/dashboard.proto (package stabilityai.api.dashboard.v1, syntax proto3) +// @generated from file stability_api/platform/dashboard/v1/dashboard.proto (package stabilityai.api.dashboard.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/gen/proto/js/stabilityai/platformapis/engines/v1/engines_connect.d.ts b/gen/proto/js/stability_api/platform/engines/v1/engines_connect.d.ts similarity index 84% rename from gen/proto/js/stabilityai/platformapis/engines/v1/engines_connect.d.ts rename to gen/proto/js/stability_api/platform/engines/v1/engines_connect.d.ts index b4802c6..798389d 100644 --- a/gen/proto/js/stabilityai/platformapis/engines/v1/engines_connect.d.ts +++ b/gen/proto/js/stability_api/platform/engines/v1/engines_connect.d.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-connect-es v0.8.6 -// @generated from file stabilityai/platformapis/engines/v1/engines.proto (package stabilityai.platformapis.engines.v1, syntax proto3) +// @generated from file stability_api/platform/engines/v1/engines.proto (package stabilityai.platformapis.engines.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/gen/proto/js/stabilityai/platformapis/engines/v1/engines_connect.js b/gen/proto/js/stability_api/platform/engines/v1/engines_connect.js similarity index 82% rename from gen/proto/js/stabilityai/platformapis/engines/v1/engines_connect.js rename to gen/proto/js/stability_api/platform/engines/v1/engines_connect.js index 02d9892..6045412 100644 --- a/gen/proto/js/stabilityai/platformapis/engines/v1/engines_connect.js +++ b/gen/proto/js/stability_api/platform/engines/v1/engines_connect.js @@ -1,5 +1,5 @@ // @generated by protoc-gen-connect-es v0.8.6 -// @generated from file stabilityai/platformapis/engines/v1/engines.proto (package stabilityai.platformapis.engines.v1, syntax proto3) +// @generated from file stability_api/platform/engines/v1/engines.proto (package stabilityai.platformapis.engines.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/gen/proto/js/stabilityai/platformapis/engines/v1/engines_pb.d.ts b/gen/proto/js/stability_api/platform/engines/v1/engines_pb.d.ts similarity index 96% rename from gen/proto/js/stabilityai/platformapis/engines/v1/engines_pb.d.ts rename to gen/proto/js/stability_api/platform/engines/v1/engines_pb.d.ts index bcbda9b..3ca1073 100644 --- a/gen/proto/js/stabilityai/platformapis/engines/v1/engines_pb.d.ts +++ b/gen/proto/js/stability_api/platform/engines/v1/engines_pb.d.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 -// @generated from file stabilityai/platformapis/engines/v1/engines.proto (package stabilityai.platformapis.engines.v1, syntax proto3) +// @generated from file stability_api/platform/engines/v1/engines.proto (package stabilityai.platformapis.engines.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/gen/proto/js/stabilityai/platformapis/engines/v1/engines_pb.js b/gen/proto/js/stability_api/platform/engines/v1/engines_pb.js similarity index 93% rename from gen/proto/js/stabilityai/platformapis/engines/v1/engines_pb.js rename to gen/proto/js/stability_api/platform/engines/v1/engines_pb.js index 8eeb76a..877ebb9 100644 --- a/gen/proto/js/stabilityai/platformapis/engines/v1/engines_pb.js +++ b/gen/proto/js/stability_api/platform/engines/v1/engines_pb.js @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 -// @generated from file stabilityai/platformapis/engines/v1/engines.proto (package stabilityai.platformapis.engines.v1, syntax proto3) +// @generated from file stability_api/platform/engines/v1/engines.proto (package stabilityai.platformapis.engines.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/gen/proto/js/stabilityai/platformapis/generation/v1/generation_connect.d.ts b/gen/proto/js/stability_api/platform/generation/v1/generation_connect.d.ts similarity index 88% rename from gen/proto/js/stabilityai/platformapis/generation/v1/generation_connect.d.ts rename to gen/proto/js/stability_api/platform/generation/v1/generation_connect.d.ts index 32fdd16..57c1880 100644 --- a/gen/proto/js/stabilityai/platformapis/generation/v1/generation_connect.d.ts +++ b/gen/proto/js/stability_api/platform/generation/v1/generation_connect.d.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-connect-es v0.8.6 -// @generated from file stabilityai/platformapis/generation/v1/generation.proto (package stabilityai.platformapis.generation.v1, syntax proto3) +// @generated from file stability_api/platform/generation/v1/generation.proto (package stabilityai.platformapis.generation.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/gen/proto/js/stabilityai/platformapis/generation/v1/generation_connect.js b/gen/proto/js/stability_api/platform/generation/v1/generation_connect.js similarity index 86% rename from gen/proto/js/stabilityai/platformapis/generation/v1/generation_connect.js rename to gen/proto/js/stability_api/platform/generation/v1/generation_connect.js index f846300..c0528c1 100644 --- a/gen/proto/js/stabilityai/platformapis/generation/v1/generation_connect.js +++ b/gen/proto/js/stability_api/platform/generation/v1/generation_connect.js @@ -1,5 +1,5 @@ // @generated by protoc-gen-connect-es v0.8.6 -// @generated from file stabilityai/platformapis/generation/v1/generation.proto (package stabilityai.platformapis.generation.v1, syntax proto3) +// @generated from file stability_api/platform/generation/v1/generation.proto (package stabilityai.platformapis.generation.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/gen/proto/js/stabilityai/platformapis/generation/v1/generation_pb.d.ts b/gen/proto/js/stability_api/platform/generation/v1/generation_pb.d.ts similarity index 99% rename from gen/proto/js/stabilityai/platformapis/generation/v1/generation_pb.d.ts rename to gen/proto/js/stability_api/platform/generation/v1/generation_pb.d.ts index 7f2ff60..3dfd700 100644 --- a/gen/proto/js/stabilityai/platformapis/generation/v1/generation_pb.d.ts +++ b/gen/proto/js/stability_api/platform/generation/v1/generation_pb.d.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 -// @generated from file stabilityai/platformapis/generation/v1/generation.proto (package stabilityai.platformapis.generation.v1, syntax proto3) +// @generated from file stability_api/platform/generation/v1/generation.proto (package stabilityai.platformapis.generation.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/gen/proto/js/stabilityai/platformapis/generation/v1/generation_pb.js b/gen/proto/js/stability_api/platform/generation/v1/generation_pb.js similarity index 99% rename from gen/proto/js/stabilityai/platformapis/generation/v1/generation_pb.js rename to gen/proto/js/stability_api/platform/generation/v1/generation_pb.js index 8d95e9a..e760545 100644 --- a/gen/proto/js/stabilityai/platformapis/generation/v1/generation_pb.js +++ b/gen/proto/js/stability_api/platform/generation/v1/generation_pb.js @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 -// @generated from file stabilityai/platformapis/generation/v1/generation.proto (package stabilityai.platformapis.generation.v1, syntax proto3) +// @generated from file stability_api/platform/generation/v1/generation.proto (package stabilityai.platformapis.generation.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/gen/proto/js/stabilityai/platformapis/project/v1/project_connect.d.ts b/gen/proto/js/stability_api/platform/project/v1/project_connect.d.ts similarity index 96% rename from gen/proto/js/stabilityai/platformapis/project/v1/project_connect.d.ts rename to gen/proto/js/stability_api/platform/project/v1/project_connect.d.ts index 38c6a01..711a7aa 100644 --- a/gen/proto/js/stabilityai/platformapis/project/v1/project_connect.d.ts +++ b/gen/proto/js/stability_api/platform/project/v1/project_connect.d.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-connect-es v0.8.6 -// @generated from file stabilityai/platformapis/project/v1/project.proto (package stabilityai.platformapis.project.v1, syntax proto3) +// @generated from file stability_api/platform/project/v1/project.proto (package stabilityai.platformapis.project.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/gen/proto/js/stabilityai/platformapis/project/v1/project_connect.js b/gen/proto/js/stability_api/platform/project/v1/project_connect.js similarity index 95% rename from gen/proto/js/stabilityai/platformapis/project/v1/project_connect.js rename to gen/proto/js/stability_api/platform/project/v1/project_connect.js index b878357..3873155 100644 --- a/gen/proto/js/stabilityai/platformapis/project/v1/project_connect.js +++ b/gen/proto/js/stability_api/platform/project/v1/project_connect.js @@ -1,5 +1,5 @@ // @generated by protoc-gen-connect-es v0.8.6 -// @generated from file stabilityai/platformapis/project/v1/project.proto (package stabilityai.platformapis.project.v1, syntax proto3) +// @generated from file stability_api/platform/project/v1/project.proto (package stabilityai.platformapis.project.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/gen/proto/js/stabilityai/platformapis/project/v1/project_pb.d.ts b/gen/proto/js/stability_api/platform/project/v1/project_pb.d.ts similarity index 99% rename from gen/proto/js/stabilityai/platformapis/project/v1/project_pb.d.ts rename to gen/proto/js/stability_api/platform/project/v1/project_pb.d.ts index f119443..87be729 100644 --- a/gen/proto/js/stabilityai/platformapis/project/v1/project_pb.d.ts +++ b/gen/proto/js/stability_api/platform/project/v1/project_pb.d.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 -// @generated from file stabilityai/platformapis/project/v1/project.proto (package stabilityai.platformapis.project.v1, syntax proto3) +// @generated from file stability_api/platform/project/v1/project.proto (package stabilityai.platformapis.project.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/gen/proto/js/stabilityai/platformapis/project/v1/project_pb.js b/gen/proto/js/stability_api/platform/project/v1/project_pb.js similarity index 98% rename from gen/proto/js/stabilityai/platformapis/project/v1/project_pb.js rename to gen/proto/js/stability_api/platform/project/v1/project_pb.js index d6f9929..ffe14b4 100644 --- a/gen/proto/js/stabilityai/platformapis/project/v1/project_pb.js +++ b/gen/proto/js/stability_api/platform/project/v1/project_pb.js @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 -// @generated from file stabilityai/platformapis/project/v1/project.proto (package stabilityai.platformapis.project.v1, syntax proto3) +// @generated from file stability_api/platform/project/v1/project.proto (package stabilityai.platformapis.project.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/gen/proto/js/stabilityai/tensors/tensors_pb.d.ts b/gen/proto/js/stability_api/tensors/tensors_pb.d.ts similarity index 98% rename from gen/proto/js/stabilityai/tensors/tensors_pb.d.ts rename to gen/proto/js/stability_api/tensors/tensors_pb.d.ts index c8af746..8242f49 100644 --- a/gen/proto/js/stabilityai/tensors/tensors_pb.d.ts +++ b/gen/proto/js/stability_api/tensors/tensors_pb.d.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 -// @generated from file stabilityai/tensors/tensors.proto (package tensors, syntax proto3) +// @generated from file stability_api/tensors/tensors.proto (package tensors, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/gen/proto/js/stabilityai/tensors/tensors_pb.js b/gen/proto/js/stability_api/tensors/tensors_pb.js similarity index 96% rename from gen/proto/js/stabilityai/tensors/tensors_pb.js rename to gen/proto/js/stability_api/tensors/tensors_pb.js index 5090516..6ee16e9 100644 --- a/gen/proto/js/stabilityai/tensors/tensors_pb.js +++ b/gen/proto/js/stability_api/tensors/tensors_pb.js @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.2.0 -// @generated from file stabilityai/tensors/tensors.proto (package tensors, syntax proto3) +// @generated from file stability_api/tensors/tensors.proto (package tensors, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyFindRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyFindRequestKt.kt index 7bf929e..00266dc 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyFindRequestKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyFindRequestKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyKt.kt index c9b9074..fc9c158 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyRequestKt.kt index 5c7b751..1c154b8 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyRequestKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyRequestKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/AutoChargeIntentKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/AutoChargeIntentKt.kt index 02ec0de..4250f5e 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/AutoChargeIntentKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/AutoChargeIntentKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/ChargeKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/ChargeKt.kt index 8591021..1f64776 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/ChargeKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/ChargeKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/ChargesKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/ChargesKt.kt index 3b091e5..f7a5064 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/ChargesKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/ChargesKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/ClientSettingsKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/ClientSettingsKt.kt index 453f194..037e679 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/ClientSettingsKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/ClientSettingsKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/CostDataKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/CostDataKt.kt index e46216a..ab1600e 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/CostDataKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/CostDataKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/CostTotalKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/CostTotalKt.kt index 17a294e..c8511fd 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/CostTotalKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/CostTotalKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/CreateAutoChargeIntentRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/CreateAutoChargeIntentRequestKt.kt index 8517164..a912442 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/CreateAutoChargeIntentRequestKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/CreateAutoChargeIntentRequestKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/CreateChargeRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/CreateChargeRequestKt.kt index d7f7e02..e6f7461 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/CreateChargeRequestKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/CreateChargeRequestKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardProtoKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardProtoKt.kt index 15a727e..cadf3bb 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardProtoKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardProtoKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardServiceClient.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardServiceClient.kt index 38135da..d869908 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardServiceClient.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardServiceClient.kt @@ -1,6 +1,6 @@ // Code generated by connect-kotlin. DO NOT EDIT. // -// Source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// Source: stability_api/platform/dashboard/v1/dashboard.proto // package com.stabilityai.api.dashboard.v1 diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardServiceClientInterface.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardServiceClientInterface.kt index fa56847..ec57e4c 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardServiceClientInterface.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardServiceClientInterface.kt @@ -1,6 +1,6 @@ // Code generated by connect-kotlin. DO NOT EDIT. // -// Source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// Source: stability_api/platform/dashboard/v1/dashboard.proto // package com.stabilityai.api.dashboard.v1 diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/EmptyRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/EmptyRequestKt.kt index 6ad70d0..4f2efdd 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/EmptyRequestKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/EmptyRequestKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetAutoChargeRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetAutoChargeRequestKt.kt index 1beb034..0cb3b6b 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetAutoChargeRequestKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetAutoChargeRequestKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetChargesRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetChargesRequestKt.kt index 2f0a938..abfa648 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetChargesRequestKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetChargesRequestKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetMetricsRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetMetricsRequestKt.kt index 7528ed3..ce45fd3 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetMetricsRequestKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetMetricsRequestKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetOrganizationRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetOrganizationRequestKt.kt index 108ec7b..3f1b5ab 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetOrganizationRequestKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetOrganizationRequestKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/MetricsKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/MetricsKt.kt index a733e69..b2458db 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/MetricsKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/MetricsKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationAutoChargeKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationAutoChargeKt.kt index 7c94820..88edafc 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationAutoChargeKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationAutoChargeKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationGrantKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationGrantKt.kt index e2eaf16..90a0d55 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationGrantKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationGrantKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationKt.kt index 83220d0..c96a6c6 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationMemberKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationMemberKt.kt index 3cf6385..059def4 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationMemberKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationMemberKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationPaymentInfoKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationPaymentInfoKt.kt index da8cda5..3187161 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationPaymentInfoKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationPaymentInfoKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/TotalMetricsDataKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/TotalMetricsDataKt.kt index bf40828..187180c 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/TotalMetricsDataKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/TotalMetricsDataKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/UpdateDefaultOrganizationRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/UpdateDefaultOrganizationRequestKt.kt index e8098e0..2147473 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/UpdateDefaultOrganizationRequestKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/UpdateDefaultOrganizationRequestKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/UpdateUserInfoRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/UpdateUserInfoRequestKt.kt index b2217b5..cb994a5 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/UpdateUserInfoRequestKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/UpdateUserInfoRequestKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/UsageMetricKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/UsageMetricKt.kt index 8ec0b72..0fec899 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/UsageMetricKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/UsageMetricKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/UserKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/UserKt.kt index d77bfe8..6a5fddb 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/UserKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/UserKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/UserPasswordChangeTicketKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/UserPasswordChangeTicketKt.kt index 0362078..6d6a47c 100644 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/UserPasswordChangeTicketKt.kt +++ b/gen/proto/kt/com/stabilityai/api/dashboard/v1/UserPasswordChangeTicketKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// source: stability_api/platform/dashboard/v1/dashboard.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EngineInfoKt.kt b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EngineInfoKt.kt index 9dbdf2a..33ac6b7 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EngineInfoKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EngineInfoKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/engines/v1/engines.proto +// source: stability_api/platform/engines/v1/engines.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesKt.kt b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesKt.kt index 4690811..89528a1 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/engines/v1/engines.proto +// source: stability_api/platform/engines/v1/engines.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesProtoKt.kt b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesProtoKt.kt index dfe6576..d3fe6a0 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesProtoKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesProtoKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/engines/v1/engines.proto +// source: stability_api/platform/engines/v1/engines.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesServiceClient.kt b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesServiceClient.kt index 5028797..3d63555 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesServiceClient.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesServiceClient.kt @@ -1,6 +1,6 @@ // Code generated by connect-kotlin. DO NOT EDIT. // -// Source: stabilityai/platformapis/engines/v1/engines.proto +// Source: stability_api/platform/engines/v1/engines.proto // package com.stabilityai.platformapis.engines.v1 diff --git a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesServiceClientInterface.kt b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesServiceClientInterface.kt index bf73aef..f4bbfe1 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesServiceClientInterface.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesServiceClientInterface.kt @@ -1,6 +1,6 @@ // Code generated by connect-kotlin. DO NOT EDIT. // -// Source: stabilityai/platformapis/engines/v1/engines.proto +// Source: stability_api/platform/engines/v1/engines.proto // package com.stabilityai.platformapis.engines.v1 diff --git a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/ListEnginesRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/ListEnginesRequestKt.kt index 8a69578..9c9d32f 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/ListEnginesRequestKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/ListEnginesRequestKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/engines/v1/engines.proto +// source: stability_api/platform/engines/v1/engines.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerBatchKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerBatchKt.kt index 75e1234..1cf8bbe 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerBatchKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerBatchKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerKt.kt index 09be80b..a628d79 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerMetaKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerMetaKt.kt index d245dde..74d912b 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerMetaKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerMetaKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ArtifactKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ArtifactKt.kt index 898cde5..efe83a0 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ArtifactKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ArtifactKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AssetParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AssetParametersKt.kt index ab56fbc..a4c7a9a 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AssetParametersKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AssetParametersKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/CameraParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/CameraParametersKt.kt index ec1c695..a58f4cc 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/CameraParametersKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/CameraParametersKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ChainRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ChainRequestKt.kt index 74e73d9..e7379db 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ChainRequestKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ChainRequestKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierCategoryKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierCategoryKt.kt index 941e3ea..c1db3c9 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierCategoryKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierCategoryKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierConceptKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierConceptKt.kt index e76c218..da51f29 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierConceptKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierConceptKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierParametersKt.kt index 5a90a14..3f6bc10 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierParametersKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierParametersKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ConditionerParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ConditionerParametersKt.kt index 7a3c96c..4904892 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ConditionerParametersKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ConditionerParametersKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/CutoutParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/CutoutParametersKt.kt index d833867..c195a4f 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/CutoutParametersKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/CutoutParametersKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationProtoKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationProtoKt.kt index e375700..619ad61 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationProtoKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationProtoKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationServiceClient.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationServiceClient.kt index ba2a78f..13d5fe3 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationServiceClient.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationServiceClient.kt @@ -1,6 +1,6 @@ // Code generated by connect-kotlin. DO NOT EDIT. // -// Source: stabilityai/platformapis/generation/v1/generation.proto +// Source: stability_api/platform/generation/v1/generation.proto // package com.stabilityai.platformapis.generation.v1 diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationServiceClientInterface.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationServiceClientInterface.kt index 45baed7..21f3163 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationServiceClientInterface.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationServiceClientInterface.kt @@ -1,6 +1,6 @@ // Code generated by connect-kotlin. DO NOT EDIT. // -// Source: stabilityai/platformapis/generation/v1/generation.proto +// Source: stability_api/platform/generation/v1/generation.proto // package com.stabilityai.platformapis.generation.v1 diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceInstanceParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceInstanceParametersKt.kt index 30e1164..b934dce 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceInstanceParametersKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceInstanceParametersKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceParametersKt.kt index 15758d8..acdd9c5 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceParametersKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceParametersKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceScheduleParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceScheduleParametersKt.kt index 509a9bd..5e64771 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceScheduleParametersKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceScheduleParametersKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ImageParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ImageParametersKt.kt index 905b49c..7ed5d9d 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ImageParametersKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ImageParametersKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/InterpolateParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/InterpolateParametersKt.kt index 9769fbd..4666853 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/InterpolateParametersKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/InterpolateParametersKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ModelKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ModelKt.kt index ca2e17d..1a61329 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ModelKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ModelKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/OnStatusKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/OnStatusKt.kt index 0f4b397..59585f2 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/OnStatusKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/OnStatusKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/PromptKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/PromptKt.kt index 307f054..325c463 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/PromptKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/PromptKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/PromptParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/PromptParametersKt.kt index 6dc29ad..b9d2a8a 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/PromptParametersKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/PromptParametersKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/RequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/RequestKt.kt index 5985280..9b3db7b 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/RequestKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/RequestKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/SamplerParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/SamplerParametersKt.kt index 24d9bd6..9815f33 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/SamplerParametersKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/SamplerParametersKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ScheduleParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ScheduleParametersKt.kt index 9826f02..b5d6842 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ScheduleParametersKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ScheduleParametersKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/StageKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/StageKt.kt index 5f52c24..4ab0674 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/StageKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/StageKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/StepParameterKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/StepParameterKt.kt index c2a9d3c..b2da9ab 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/StepParameterKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/StepParameterKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TokenKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TokenKt.kt index 04b83f8..3b3ca9c 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TokenKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TokenKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TokensKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TokensKt.kt index babf062..2d2863b 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TokensKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TokensKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformCameraPoseKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformCameraPoseKt.kt index c428867..8c50648 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformCameraPoseKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformCameraPoseKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformColorAdjustKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformColorAdjustKt.kt index b36ffec..40d1c07 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformColorAdjustKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformColorAdjustKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformDepthCalcKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformDepthCalcKt.kt index 7d4595b..0348a87 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformDepthCalcKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformDepthCalcKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformMatrixKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformMatrixKt.kt index f596150..c9b5e9b 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformMatrixKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformMatrixKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformParametersKt.kt index c48f269..8e6d194 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformParametersKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformParametersKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformResampleKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformResampleKt.kt index 80e5ae5..6037bb6 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformResampleKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformResampleKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformTypeKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformTypeKt.kt index 731df9f..00871f1 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformTypeKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformTypeKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/generation/v1/generation.proto +// source: stability_api/platform/generation/v1/generation.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/CreateProjectRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/CreateProjectRequestKt.kt index ab769eb..57b4f3e 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/CreateProjectRequestKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/CreateProjectRequestKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/project/v1/project.proto +// source: stability_api/platform/project/v1/project.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteAssetsRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteAssetsRequestKt.kt index 7fcd5d3..5a90976 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteAssetsRequestKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteAssetsRequestKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/project/v1/project.proto +// source: stability_api/platform/project/v1/project.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteAssetsResponseKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteAssetsResponseKt.kt index 13cbb0a..d6e312f 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteAssetsResponseKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteAssetsResponseKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/project/v1/project.proto +// source: stability_api/platform/project/v1/project.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteProjectRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteProjectRequestKt.kt index e992ae0..c549cea 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteProjectRequestKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteProjectRequestKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/project/v1/project.proto +// source: stability_api/platform/project/v1/project.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/GetProjectRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/GetProjectRequestKt.kt index 2735240..4ab4996 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/GetProjectRequestKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/GetProjectRequestKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/project/v1/project.proto +// source: stability_api/platform/project/v1/project.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ListProjectRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ListProjectRequestKt.kt index 048bd02..fe46d94 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ListProjectRequestKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ListProjectRequestKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/project/v1/project.proto +// source: stability_api/platform/project/v1/project.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectAssetKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectAssetKt.kt index 28e0c20..367c756 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectAssetKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectAssetKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/project/v1/project.proto +// source: stability_api/platform/project/v1/project.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectKt.kt index b09cfc7..84bd928 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/project/v1/project.proto +// source: stability_api/platform/project/v1/project.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectProtoKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectProtoKt.kt index 3a36aca..b4c5a4c 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectProtoKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectProtoKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/project/v1/project.proto +// source: stability_api/platform/project/v1/project.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectServiceClient.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectServiceClient.kt index 3719555..05af836 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectServiceClient.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectServiceClient.kt @@ -1,6 +1,6 @@ // Code generated by connect-kotlin. DO NOT EDIT. // -// Source: stabilityai/platformapis/project/v1/project.proto +// Source: stability_api/platform/project/v1/project.proto // package com.stabilityai.platformapis.project.v1 diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectServiceClientInterface.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectServiceClientInterface.kt index ce07728..cd9e922 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectServiceClientInterface.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectServiceClientInterface.kt @@ -1,6 +1,6 @@ // Code generated by connect-kotlin. DO NOT EDIT. // -// Source: stabilityai/platformapis/project/v1/project.proto +// Source: stability_api/platform/project/v1/project.proto // package com.stabilityai.platformapis.project.v1 diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/QueryAssetsRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/QueryAssetsRequestKt.kt index 721e8e0..122e15c 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/QueryAssetsRequestKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/QueryAssetsRequestKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/project/v1/project.proto +// source: stability_api/platform/project/v1/project.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/QueryAssetsResponseKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/QueryAssetsResponseKt.kt index f4001b6..b4a7fda 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/QueryAssetsResponseKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/QueryAssetsResponseKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/project/v1/project.proto +// source: stability_api/platform/project/v1/project.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/TagAssetsRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/TagAssetsRequestKt.kt index 6a59062..d0bf680 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/TagAssetsRequestKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/TagAssetsRequestKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/project/v1/project.proto +// source: stability_api/platform/project/v1/project.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/TagAssetsResponseKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/TagAssetsResponseKt.kt index 0928d52..6899574 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/TagAssetsResponseKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/TagAssetsResponseKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/project/v1/project.proto +// source: stability_api/platform/project/v1/project.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/UntagAssetsRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/UntagAssetsRequestKt.kt index fc1f3df..b5437d6 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/UntagAssetsRequestKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/UntagAssetsRequestKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/project/v1/project.proto +// source: stability_api/platform/project/v1/project.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/UntagAssetsResponseKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/UntagAssetsResponseKt.kt index 37de15a..f9dd415 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/UntagAssetsResponseKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/UntagAssetsResponseKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/project/v1/project.proto +// source: stability_api/platform/project/v1/project.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/UpdateProjectRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/UpdateProjectRequestKt.kt index 0b52d6f..ff24c42 100644 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/UpdateProjectRequestKt.kt +++ b/gen/proto/kt/com/stabilityai/platformapis/project/v1/UpdateProjectRequestKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/platformapis/project/v1/project.proto +// source: stability_api/platform/project/v1/project.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/tensors/AttributeKt.kt b/gen/proto/kt/com/tensors/AttributeKt.kt index 843f339..f0fa77c 100644 --- a/gen/proto/kt/com/tensors/AttributeKt.kt +++ b/gen/proto/kt/com/tensors/AttributeKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/tensors/tensors.proto +// source: stability_api/tensors/tensors.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/tensors/ModuleKt.kt b/gen/proto/kt/com/tensors/ModuleKt.kt index 48c91b7..07358a7 100644 --- a/gen/proto/kt/com/tensors/ModuleKt.kt +++ b/gen/proto/kt/com/tensors/ModuleKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/tensors/tensors.proto +// source: stability_api/tensors/tensors.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/tensors/TensorKt.kt b/gen/proto/kt/com/tensors/TensorKt.kt index 9852f1d..1dd28a2 100644 --- a/gen/proto/kt/com/tensors/TensorKt.kt +++ b/gen/proto/kt/com/tensors/TensorKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/tensors/tensors.proto +// source: stability_api/tensors/tensors.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/kt/com/tensors/TensorsProtoKt.kt b/gen/proto/kt/com/tensors/TensorsProtoKt.kt index 735db21..9170cad 100644 --- a/gen/proto/kt/com/tensors/TensorsProtoKt.kt +++ b/gen/proto/kt/com/tensors/TensorsProtoKt.kt @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilityai/tensors/tensors.proto +// source: stability_api/tensors/tensors.proto // Generated files should ignore deprecation warnings @file:Suppress("DEPRECATION") diff --git a/gen/proto/py/stability_api/platform/dashboard/v1/dashboard_pb2.py b/gen/proto/py/stability_api/platform/dashboard/v1/dashboard_pb2.py new file mode 100644 index 0000000..c0fffad --- /dev/null +++ b/gen/proto/py/stability_api/platform/dashboard/v1/dashboard_pb2.py @@ -0,0 +1,85 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: stability_api/platform/dashboard/v1/dashboard.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n3stability_api/platform/dashboard/v1/dashboard.proto\x12\x1cstabilityai.api.dashboard.v1\"\x8d\x02\n\x12OrganizationMember\x12N\n\x0corganization\x18\x01 \x01(\x0b\x32*.stabilityai.api.dashboard.v1.OrganizationR\x0corganization\x12;\n\x04user\x18\x02 \x01(\x0b\x32\".stabilityai.api.dashboard.v1.UserH\x00R\x04user\x88\x01\x01\x12\x42\n\x04role\x18\x03 \x01(\x0e\x32..stabilityai.api.dashboard.v1.OrganizationRoleR\x04role\x12\x1d\n\nis_default\x18\x04 \x01(\x08R\tisDefaultB\x07\n\x05_user\"\x99\x01\n\x11OrganizationGrant\x12%\n\x0e\x61mount_granted\x18\x01 \x01(\x01R\ramountGranted\x12\x1f\n\x0b\x61mount_used\x18\x02 \x01(\x01R\namountUsed\x12\x1d\n\nexpires_at\x18\x03 \x01(\x04R\texpiresAt\x12\x1d\n\ngranted_at\x18\x04 \x01(\x04R\tgrantedAt\"|\n\x17OrganizationPaymentInfo\x12\x18\n\x07\x62\x61lance\x18\x01 \x01(\x01R\x07\x62\x61lance\x12G\n\x06grants\x18\x02 \x03(\x0b\x32/.stabilityai.api.dashboard.v1.OrganizationGrantR\x06grants\"a\n\x16OrganizationAutoCharge\x12\x18\n\x07\x65nabled\x18\x01 \x01(\x08R\x07\x65nabled\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\x12\x1d\n\ncreated_at\x18\x03 \x01(\x04R\tcreatedAt\"\xc6\x03\n\x0cOrganization\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12J\n\x07members\x18\x04 \x03(\x0b\x32\x30.stabilityai.api.dashboard.v1.OrganizationMemberR\x07members\x12]\n\x0cpayment_info\x18\x05 \x01(\x0b\x32\x35.stabilityai.api.dashboard.v1.OrganizationPaymentInfoH\x00R\x0bpaymentInfo\x88\x01\x01\x12\x31\n\x12stripe_customer_id\x18\x06 \x01(\tH\x01R\x10stripeCustomerId\x88\x01\x01\x12Z\n\x0b\x61uto_charge\x18\x07 \x01(\x0b\x32\x34.stabilityai.api.dashboard.v1.OrganizationAutoChargeH\x02R\nautoCharge\x88\x01\x01\x42\x0f\n\r_payment_infoB\x15\n\x13_stripe_customer_idB\x0e\n\x0c_auto_charge\"V\n\x06\x41PIKey\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x1b\n\tis_secret\x18\x02 \x01(\x08R\x08isSecret\x12\x1d\n\ncreated_at\x18\x03 \x01(\x04R\tcreatedAt\"\xf6\x02\n\x04User\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1c\n\x07\x61uth_id\x18\x02 \x01(\tH\x00R\x06\x61uthId\x88\x01\x01\x12\'\n\x0fprofile_picture\x18\x03 \x01(\tR\x0eprofilePicture\x12\x14\n\x05\x65mail\x18\x04 \x01(\tR\x05\x65mail\x12V\n\rorganizations\x18\x05 \x03(\x0b\x32\x30.stabilityai.api.dashboard.v1.OrganizationMemberR\rorganizations\x12?\n\x08\x61pi_keys\x18\x07 \x03(\x0b\x32$.stabilityai.api.dashboard.v1.APIKeyR\x07\x61piKeys\x12\x1d\n\ncreated_at\x18\x08 \x01(\x04R\tcreatedAt\x12*\n\x0e\x65mail_verified\x18\t \x01(\x08H\x01R\remailVerified\x88\x01\x01\x42\n\n\x08_auth_idB\x11\n\x0f_email_verified\"V\n\x08\x43ostData\x12#\n\ramount_tokens\x18\x01 \x01(\rR\x0c\x61mountTokens\x12%\n\x0e\x61mount_credits\x18\x02 \x01(\x01R\ramountCredits\"\xaa\x02\n\x0bUsageMetric\x12\x1c\n\toperation\x18\x01 \x01(\tR\toperation\x12\x16\n\x06\x65ngine\x18\x02 \x01(\tR\x06\x65ngine\x12\x45\n\ninput_cost\x18\x03 \x01(\x0b\x32&.stabilityai.api.dashboard.v1.CostDataR\tinputCost\x12G\n\x0boutput_cost\x18\x04 \x01(\x0b\x32&.stabilityai.api.dashboard.v1.CostDataR\noutputCost\x12\x17\n\x04user\x18\x05 \x01(\tH\x00R\x04user\x88\x01\x01\x12\x33\n\x15\x61ggregation_timestamp\x18\x06 \x01(\x04R\x14\x61ggregationTimestampB\x07\n\x05_user\"W\n\tCostTotal\x12#\n\ramount_tokens\x18\x01 \x01(\rR\x0c\x61mountTokens\x12%\n\x0e\x61mount_credits\x18\x02 \x01(\x01R\ramountCredits\"\xa8\x01\n\x10TotalMetricsData\x12H\n\x0binput_total\x18\x01 \x01(\x0b\x32\'.stabilityai.api.dashboard.v1.CostTotalR\ninputTotal\x12J\n\x0coutput_total\x18\x02 \x01(\x0b\x32\'.stabilityai.api.dashboard.v1.CostTotalR\x0boutputTotal\"\x94\x01\n\x07Metrics\x12\x43\n\x07metrics\x18\x01 \x03(\x0b\x32).stabilityai.api.dashboard.v1.UsageMetricR\x07metrics\x12\x44\n\x05total\x18\x02 \x01(\x0b\x32..stabilityai.api.dashboard.v1.TotalMetricsDataR\x05total\"\x0e\n\x0c\x45mptyRequest\"(\n\x16GetOrganizationRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"\xdf\x01\n\x11GetMetricsRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\x1c\n\x07user_id\x18\x02 \x01(\tH\x00R\x06userId\x88\x01\x01\x12\x1d\n\nrange_from\x18\x03 \x01(\x04R\trangeFrom\x12\x19\n\x08range_to\x18\x04 \x01(\x04R\x07rangeTo\x12=\n\x1binclude_per_request_metrics\x18\x05 \x01(\x08R\x18includePerRequestMetricsB\n\n\x08_user_id\",\n\rAPIKeyRequest\x12\x1b\n\tis_secret\x18\x01 \x01(\x08R\x08isSecret\"#\n\x11\x41PIKeyFindRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"K\n UpdateDefaultOrganizationRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\",\n\x0e\x43lientSettings\x12\x1a\n\x08settings\x18\x01 \x01(\x0cR\x08settings\"\xbd\x01\n\x1d\x43reateAutoChargeIntentRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\'\n\x0fmonthly_maximum\x18\x02 \x01(\x04R\x0emonthlyMaximum\x12#\n\rminimum_value\x18\x03 \x01(\x04R\x0cminimumValue\x12%\n\x0e\x61mount_credits\x18\x04 \x01(\x04R\ramountCredits\"V\n\x13\x43reateChargeRequest\x12\x16\n\x06\x61mount\x18\x01 \x01(\x04R\x06\x61mount\x12\'\n\x0forganization_id\x18\x02 \x01(\tR\x0eorganizationId\"v\n\x11GetChargesRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\x1d\n\nrange_from\x18\x02 \x01(\x04R\trangeFrom\x12\x19\n\x08range_to\x18\x03 \x01(\x04R\x07rangeTo\"\xb8\x01\n\x06\x43harge\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04paid\x18\x02 \x01(\x08R\x04paid\x12!\n\x0creceipt_link\x18\x03 \x01(\tR\x0breceiptLink\x12!\n\x0cpayment_link\x18\x04 \x01(\tR\x0bpaymentLink\x12\x1d\n\ncreated_at\x18\x05 \x01(\x04R\tcreatedAt\x12%\n\x0e\x61mount_credits\x18\x06 \x01(\x04R\ramountCredits\"I\n\x07\x43harges\x12>\n\x07\x63harges\x18\x01 \x03(\x0b\x32$.stabilityai.api.dashboard.v1.ChargeR\x07\x63harges\"?\n\x14GetAutoChargeRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\"\xd9\x01\n\x10\x41utoChargeIntent\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12!\n\x0cpayment_link\x18\x02 \x01(\tR\x0bpaymentLink\x12\x1d\n\ncreated_at\x18\x03 \x01(\x04R\tcreatedAt\x12\'\n\x0fmonthly_maximum\x18\x04 \x01(\x04R\x0emonthlyMaximum\x12#\n\rminimum_value\x18\x05 \x01(\x04R\x0cminimumValue\x12%\n\x0e\x61mount_credits\x18\x06 \x01(\x04R\ramountCredits\"<\n\x15UpdateUserInfoRequest\x12\x19\n\x05\x65mail\x18\x01 \x01(\tH\x00R\x05\x65mail\x88\x01\x01\x42\x08\n\x06_email\"2\n\x18UserPasswordChangeTicket\x12\x16\n\x06ticket\x18\x01 \x01(\tR\x06ticket*9\n\x10OrganizationRole\x12\n\n\x06MEMBER\x10\x00\x12\x0e\n\nACCOUNTANT\x10\x01\x12\t\n\x05OWNER\x10\x02\x32\x9a\x0e\n\x10\x44\x61shboardService\x12W\n\x05GetMe\x12*.stabilityai.api.dashboard.v1.EmptyRequest\x1a\".stabilityai.api.dashboard.v1.User\x12s\n\x0fGetOrganization\x12\x34.stabilityai.api.dashboard.v1.GetOrganizationRequest\x1a*.stabilityai.api.dashboard.v1.Organization\x12\x64\n\nGetMetrics\x12/.stabilityai.api.dashboard.v1.GetMetricsRequest\x1a%.stabilityai.api.dashboard.v1.Metrics\x12\x61\n\x0c\x43reateAPIKey\x12+.stabilityai.api.dashboard.v1.APIKeyRequest\x1a$.stabilityai.api.dashboard.v1.APIKey\x12\x65\n\x0c\x44\x65leteAPIKey\x12/.stabilityai.api.dashboard.v1.APIKeyFindRequest\x1a$.stabilityai.api.dashboard.v1.APIKey\x12\x7f\n\x19UpdateDefaultOrganization\x12>.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest\x1a\".stabilityai.api.dashboard.v1.User\x12m\n\x11GetClientSettings\x12*.stabilityai.api.dashboard.v1.EmptyRequest\x1a,.stabilityai.api.dashboard.v1.ClientSettings\x12o\n\x11SetClientSettings\x12,.stabilityai.api.dashboard.v1.ClientSettings\x1a,.stabilityai.api.dashboard.v1.ClientSettings\x12i\n\x0eUpdateUserInfo\x12\x33.stabilityai.api.dashboard.v1.UpdateUserInfoRequest\x1a\".stabilityai.api.dashboard.v1.User\x12\x80\x01\n\x1a\x43reatePasswordChangeTicket\x12*.stabilityai.api.dashboard.v1.EmptyRequest\x1a\x36.stabilityai.api.dashboard.v1.UserPasswordChangeTicket\x12_\n\rDeleteAccount\x12*.stabilityai.api.dashboard.v1.EmptyRequest\x1a\".stabilityai.api.dashboard.v1.User\x12g\n\x0c\x43reateCharge\x12\x31.stabilityai.api.dashboard.v1.CreateChargeRequest\x1a$.stabilityai.api.dashboard.v1.Charge\x12\x64\n\nGetCharges\x12/.stabilityai.api.dashboard.v1.GetChargesRequest\x1a%.stabilityai.api.dashboard.v1.Charges\x12\x85\x01\n\x16\x43reateAutoChargeIntent\x12;.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest\x1a..stabilityai.api.dashboard.v1.AutoChargeIntent\x12\x85\x01\n\x16UpdateAutoChargeIntent\x12;.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest\x1a..stabilityai.api.dashboard.v1.AutoChargeIntent\x12y\n\x13GetAutoChargeIntent\x12\x32.stabilityai.api.dashboard.v1.GetAutoChargeRequest\x1a..stabilityai.api.dashboard.v1.AutoChargeIntentB\xaa\x02\n com.stabilityai.api.dashboard.v1B\x0e\x44\x61shboardProtoP\x01Zcgithub.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/dashboard/v1;dashboardv1\xa2\x02\x03SAD\xaa\x02\x1cStabilityai.Api.Dashboard.V1\xca\x02\x1cStabilityai\\Api\\Dashboard\\V1\xe2\x02(Stabilityai\\Api\\Dashboard\\V1\\GPBMetadata\xea\x02\x1fStabilityai::Api::Dashboard::V1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'stability_api.platform.dashboard.v1.dashboard_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n com.stabilityai.api.dashboard.v1B\016DashboardProtoP\001Zcgithub.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/dashboard/v1;dashboardv1\242\002\003SAD\252\002\034Stabilityai.Api.Dashboard.V1\312\002\034Stabilityai\\Api\\Dashboard\\V1\342\002(Stabilityai\\Api\\Dashboard\\V1\\GPBMetadata\352\002\037Stabilityai::Api::Dashboard::V1' + _globals['_ORGANIZATIONROLE']._serialized_start=4011 + _globals['_ORGANIZATIONROLE']._serialized_end=4068 + _globals['_ORGANIZATIONMEMBER']._serialized_start=86 + _globals['_ORGANIZATIONMEMBER']._serialized_end=355 + _globals['_ORGANIZATIONGRANT']._serialized_start=358 + _globals['_ORGANIZATIONGRANT']._serialized_end=511 + _globals['_ORGANIZATIONPAYMENTINFO']._serialized_start=513 + _globals['_ORGANIZATIONPAYMENTINFO']._serialized_end=637 + _globals['_ORGANIZATIONAUTOCHARGE']._serialized_start=639 + _globals['_ORGANIZATIONAUTOCHARGE']._serialized_end=736 + _globals['_ORGANIZATION']._serialized_start=739 + _globals['_ORGANIZATION']._serialized_end=1193 + _globals['_APIKEY']._serialized_start=1195 + _globals['_APIKEY']._serialized_end=1281 + _globals['_USER']._serialized_start=1284 + _globals['_USER']._serialized_end=1658 + _globals['_COSTDATA']._serialized_start=1660 + _globals['_COSTDATA']._serialized_end=1746 + _globals['_USAGEMETRIC']._serialized_start=1749 + _globals['_USAGEMETRIC']._serialized_end=2047 + _globals['_COSTTOTAL']._serialized_start=2049 + _globals['_COSTTOTAL']._serialized_end=2136 + _globals['_TOTALMETRICSDATA']._serialized_start=2139 + _globals['_TOTALMETRICSDATA']._serialized_end=2307 + _globals['_METRICS']._serialized_start=2310 + _globals['_METRICS']._serialized_end=2458 + _globals['_EMPTYREQUEST']._serialized_start=2460 + _globals['_EMPTYREQUEST']._serialized_end=2474 + _globals['_GETORGANIZATIONREQUEST']._serialized_start=2476 + _globals['_GETORGANIZATIONREQUEST']._serialized_end=2516 + _globals['_GETMETRICSREQUEST']._serialized_start=2519 + _globals['_GETMETRICSREQUEST']._serialized_end=2742 + _globals['_APIKEYREQUEST']._serialized_start=2744 + _globals['_APIKEYREQUEST']._serialized_end=2788 + _globals['_APIKEYFINDREQUEST']._serialized_start=2790 + _globals['_APIKEYFINDREQUEST']._serialized_end=2825 + _globals['_UPDATEDEFAULTORGANIZATIONREQUEST']._serialized_start=2827 + _globals['_UPDATEDEFAULTORGANIZATIONREQUEST']._serialized_end=2902 + _globals['_CLIENTSETTINGS']._serialized_start=2904 + _globals['_CLIENTSETTINGS']._serialized_end=2948 + _globals['_CREATEAUTOCHARGEINTENTREQUEST']._serialized_start=2951 + _globals['_CREATEAUTOCHARGEINTENTREQUEST']._serialized_end=3140 + _globals['_CREATECHARGEREQUEST']._serialized_start=3142 + _globals['_CREATECHARGEREQUEST']._serialized_end=3228 + _globals['_GETCHARGESREQUEST']._serialized_start=3230 + _globals['_GETCHARGESREQUEST']._serialized_end=3348 + _globals['_CHARGE']._serialized_start=3351 + _globals['_CHARGE']._serialized_end=3535 + _globals['_CHARGES']._serialized_start=3537 + _globals['_CHARGES']._serialized_end=3610 + _globals['_GETAUTOCHARGEREQUEST']._serialized_start=3612 + _globals['_GETAUTOCHARGEREQUEST']._serialized_end=3675 + _globals['_AUTOCHARGEINTENT']._serialized_start=3678 + _globals['_AUTOCHARGEINTENT']._serialized_end=3895 + _globals['_UPDATEUSERINFOREQUEST']._serialized_start=3897 + _globals['_UPDATEUSERINFOREQUEST']._serialized_end=3957 + _globals['_USERPASSWORDCHANGETICKET']._serialized_start=3959 + _globals['_USERPASSWORDCHANGETICKET']._serialized_end=4009 + _globals['_DASHBOARDSERVICE']._serialized_start=4071 + _globals['_DASHBOARDSERVICE']._serialized_end=5889 +# @@protoc_insertion_point(module_scope) diff --git a/gen/proto/py/stabilityai/platformapis/dashboard/v1/dashboard_pb2.pyi b/gen/proto/py/stability_api/platform/dashboard/v1/dashboard_pb2.pyi similarity index 100% rename from gen/proto/py/stabilityai/platformapis/dashboard/v1/dashboard_pb2.pyi rename to gen/proto/py/stability_api/platform/dashboard/v1/dashboard_pb2.pyi diff --git a/gen/proto/py/stabilityai/platformapis/dashboard/v1/dashboard_pb2_grpc.py b/gen/proto/py/stability_api/platform/dashboard/v1/dashboard_pb2_grpc.py similarity index 61% rename from gen/proto/py/stabilityai/platformapis/dashboard/v1/dashboard_pb2_grpc.py rename to gen/proto/py/stability_api/platform/dashboard/v1/dashboard_pb2_grpc.py index 8bf5f7d..a9bf65b 100644 --- a/gen/proto/py/stabilityai/platformapis/dashboard/v1/dashboard_pb2_grpc.py +++ b/gen/proto/py/stability_api/platform/dashboard/v1/dashboard_pb2_grpc.py @@ -2,7 +2,7 @@ """Client and server classes corresponding to protobuf-defined services.""" import grpc -from stabilityai.platformapis.dashboard.v1 import dashboard_pb2 as stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2 +from stability_api.platform.dashboard.v1 import dashboard_pb2 as stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2 class DashboardServiceStub(object): @@ -16,83 +16,83 @@ def __init__(self, channel): """ self.GetMe = channel.unary_unary( '/stabilityai.api.dashboard.v1.DashboardService/GetMe', - request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString, + request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString, ) self.GetOrganization = channel.unary_unary( '/stabilityai.api.dashboard.v1.DashboardService/GetOrganization', - request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.GetOrganizationRequest.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.Organization.FromString, + request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.GetOrganizationRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.Organization.FromString, ) self.GetMetrics = channel.unary_unary( '/stabilityai.api.dashboard.v1.DashboardService/GetMetrics', - request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.GetMetricsRequest.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.Metrics.FromString, + request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.GetMetricsRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.Metrics.FromString, ) self.CreateAPIKey = channel.unary_unary( '/stabilityai.api.dashboard.v1.DashboardService/CreateAPIKey', - request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKeyRequest.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKey.FromString, + request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKeyRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKey.FromString, ) self.DeleteAPIKey = channel.unary_unary( '/stabilityai.api.dashboard.v1.DashboardService/DeleteAPIKey', - request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKeyFindRequest.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKey.FromString, + request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKeyFindRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKey.FromString, ) self.UpdateDefaultOrganization = channel.unary_unary( '/stabilityai.api.dashboard.v1.DashboardService/UpdateDefaultOrganization', - request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.UpdateDefaultOrganizationRequest.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString, + request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.UpdateDefaultOrganizationRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString, ) self.GetClientSettings = channel.unary_unary( '/stabilityai.api.dashboard.v1.DashboardService/GetClientSettings', - request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.FromString, + request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.FromString, ) self.SetClientSettings = channel.unary_unary( '/stabilityai.api.dashboard.v1.DashboardService/SetClientSettings', - request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.FromString, + request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.FromString, ) self.UpdateUserInfo = channel.unary_unary( '/stabilityai.api.dashboard.v1.DashboardService/UpdateUserInfo', - request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.UpdateUserInfoRequest.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString, + request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.UpdateUserInfoRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString, ) self.CreatePasswordChangeTicket = channel.unary_unary( '/stabilityai.api.dashboard.v1.DashboardService/CreatePasswordChangeTicket', - request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.UserPasswordChangeTicket.FromString, + request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.UserPasswordChangeTicket.FromString, ) self.DeleteAccount = channel.unary_unary( '/stabilityai.api.dashboard.v1.DashboardService/DeleteAccount', - request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString, + request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString, ) self.CreateCharge = channel.unary_unary( '/stabilityai.api.dashboard.v1.DashboardService/CreateCharge', - request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateChargeRequest.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.Charge.FromString, + request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateChargeRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.Charge.FromString, ) self.GetCharges = channel.unary_unary( '/stabilityai.api.dashboard.v1.DashboardService/GetCharges', - request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.GetChargesRequest.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.Charges.FromString, + request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.GetChargesRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.Charges.FromString, ) self.CreateAutoChargeIntent = channel.unary_unary( '/stabilityai.api.dashboard.v1.DashboardService/CreateAutoChargeIntent', - request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateAutoChargeIntentRequest.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.FromString, + request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateAutoChargeIntentRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.FromString, ) self.UpdateAutoChargeIntent = channel.unary_unary( '/stabilityai.api.dashboard.v1.DashboardService/UpdateAutoChargeIntent', - request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateAutoChargeIntentRequest.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.FromString, + request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateAutoChargeIntentRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.FromString, ) self.GetAutoChargeIntent = channel.unary_unary( '/stabilityai.api.dashboard.v1.DashboardService/GetAutoChargeIntent', - request_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.GetAutoChargeRequest.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.FromString, + request_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.GetAutoChargeRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.FromString, ) @@ -204,83 +204,83 @@ def add_DashboardServiceServicer_to_server(servicer, server): rpc_method_handlers = { 'GetMe': grpc.unary_unary_rpc_method_handler( servicer.GetMe, - request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.FromString, - response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.User.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.FromString, + response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.User.SerializeToString, ), 'GetOrganization': grpc.unary_unary_rpc_method_handler( servicer.GetOrganization, - request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.GetOrganizationRequest.FromString, - response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.Organization.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.GetOrganizationRequest.FromString, + response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.Organization.SerializeToString, ), 'GetMetrics': grpc.unary_unary_rpc_method_handler( servicer.GetMetrics, - request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.GetMetricsRequest.FromString, - response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.Metrics.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.GetMetricsRequest.FromString, + response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.Metrics.SerializeToString, ), 'CreateAPIKey': grpc.unary_unary_rpc_method_handler( servicer.CreateAPIKey, - request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKeyRequest.FromString, - response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKey.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKeyRequest.FromString, + response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKey.SerializeToString, ), 'DeleteAPIKey': grpc.unary_unary_rpc_method_handler( servicer.DeleteAPIKey, - request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKeyFindRequest.FromString, - response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKey.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKeyFindRequest.FromString, + response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKey.SerializeToString, ), 'UpdateDefaultOrganization': grpc.unary_unary_rpc_method_handler( servicer.UpdateDefaultOrganization, - request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.UpdateDefaultOrganizationRequest.FromString, - response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.User.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.UpdateDefaultOrganizationRequest.FromString, + response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.User.SerializeToString, ), 'GetClientSettings': grpc.unary_unary_rpc_method_handler( servicer.GetClientSettings, - request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.FromString, - response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.FromString, + response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.SerializeToString, ), 'SetClientSettings': grpc.unary_unary_rpc_method_handler( servicer.SetClientSettings, - request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.FromString, - response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.FromString, + response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.SerializeToString, ), 'UpdateUserInfo': grpc.unary_unary_rpc_method_handler( servicer.UpdateUserInfo, - request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.UpdateUserInfoRequest.FromString, - response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.User.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.UpdateUserInfoRequest.FromString, + response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.User.SerializeToString, ), 'CreatePasswordChangeTicket': grpc.unary_unary_rpc_method_handler( servicer.CreatePasswordChangeTicket, - request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.FromString, - response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.UserPasswordChangeTicket.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.FromString, + response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.UserPasswordChangeTicket.SerializeToString, ), 'DeleteAccount': grpc.unary_unary_rpc_method_handler( servicer.DeleteAccount, - request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.FromString, - response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.User.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.FromString, + response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.User.SerializeToString, ), 'CreateCharge': grpc.unary_unary_rpc_method_handler( servicer.CreateCharge, - request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateChargeRequest.FromString, - response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.Charge.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateChargeRequest.FromString, + response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.Charge.SerializeToString, ), 'GetCharges': grpc.unary_unary_rpc_method_handler( servicer.GetCharges, - request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.GetChargesRequest.FromString, - response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.Charges.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.GetChargesRequest.FromString, + response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.Charges.SerializeToString, ), 'CreateAutoChargeIntent': grpc.unary_unary_rpc_method_handler( servicer.CreateAutoChargeIntent, - request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateAutoChargeIntentRequest.FromString, - response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateAutoChargeIntentRequest.FromString, + response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.SerializeToString, ), 'UpdateAutoChargeIntent': grpc.unary_unary_rpc_method_handler( servicer.UpdateAutoChargeIntent, - request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateAutoChargeIntentRequest.FromString, - response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateAutoChargeIntentRequest.FromString, + response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.SerializeToString, ), 'GetAutoChargeIntent': grpc.unary_unary_rpc_method_handler( servicer.GetAutoChargeIntent, - request_deserializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.GetAutoChargeRequest.FromString, - response_serializer=stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.GetAutoChargeRequest.FromString, + response_serializer=stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( @@ -304,8 +304,8 @@ def GetMe(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/GetMe', - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString, - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -321,8 +321,8 @@ def GetOrganization(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/GetOrganization', - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.GetOrganizationRequest.SerializeToString, - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.Organization.FromString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.GetOrganizationRequest.SerializeToString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.Organization.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -338,8 +338,8 @@ def GetMetrics(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/GetMetrics', - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.GetMetricsRequest.SerializeToString, - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.Metrics.FromString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.GetMetricsRequest.SerializeToString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.Metrics.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -355,8 +355,8 @@ def CreateAPIKey(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/CreateAPIKey', - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKeyRequest.SerializeToString, - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKey.FromString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKeyRequest.SerializeToString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKey.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -372,8 +372,8 @@ def DeleteAPIKey(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/DeleteAPIKey', - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKeyFindRequest.SerializeToString, - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKey.FromString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKeyFindRequest.SerializeToString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.APIKey.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -389,8 +389,8 @@ def UpdateDefaultOrganization(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/UpdateDefaultOrganization', - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.UpdateDefaultOrganizationRequest.SerializeToString, - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.UpdateDefaultOrganizationRequest.SerializeToString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -406,8 +406,8 @@ def GetClientSettings(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/GetClientSettings', - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString, - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.FromString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -423,8 +423,8 @@ def SetClientSettings(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/SetClientSettings', - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.SerializeToString, - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.FromString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.SerializeToString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.ClientSettings.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -440,8 +440,8 @@ def UpdateUserInfo(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/UpdateUserInfo', - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.UpdateUserInfoRequest.SerializeToString, - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.UpdateUserInfoRequest.SerializeToString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -457,8 +457,8 @@ def CreatePasswordChangeTicket(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/CreatePasswordChangeTicket', - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString, - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.UserPasswordChangeTicket.FromString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.UserPasswordChangeTicket.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -474,8 +474,8 @@ def DeleteAccount(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/DeleteAccount', - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString, - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.EmptyRequest.SerializeToString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.User.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -491,8 +491,8 @@ def CreateCharge(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/CreateCharge', - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateChargeRequest.SerializeToString, - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.Charge.FromString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateChargeRequest.SerializeToString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.Charge.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -508,8 +508,8 @@ def GetCharges(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/GetCharges', - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.GetChargesRequest.SerializeToString, - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.Charges.FromString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.GetChargesRequest.SerializeToString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.Charges.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -525,8 +525,8 @@ def CreateAutoChargeIntent(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/CreateAutoChargeIntent', - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateAutoChargeIntentRequest.SerializeToString, - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.FromString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateAutoChargeIntentRequest.SerializeToString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -542,8 +542,8 @@ def UpdateAutoChargeIntent(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/UpdateAutoChargeIntent', - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateAutoChargeIntentRequest.SerializeToString, - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.FromString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.CreateAutoChargeIntentRequest.SerializeToString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -559,7 +559,7 @@ def GetAutoChargeIntent(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/stabilityai.api.dashboard.v1.DashboardService/GetAutoChargeIntent', - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.GetAutoChargeRequest.SerializeToString, - stabilityai_dot_platformapis_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.FromString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.GetAutoChargeRequest.SerializeToString, + stability__api_dot_platform_dot_dashboard_dot_v1_dot_dashboard__pb2.AutoChargeIntent.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/gen/proto/py/stability_api/platform/engines/v1/engines_pb2.py b/gen/proto/py/stability_api/platform/engines/v1/engines_pb2.py new file mode 100644 index 0000000..b8eb78b --- /dev/null +++ b/gen/proto/py/stability_api/platform/engines/v1/engines_pb2.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: stability_api/platform/engines/v1/engines.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n/stability_api/platform/engines/v1/engines.proto\x12#stabilityai.platformapis.engines.v1\"\x97\x02\n\nEngineInfo\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05owner\x18\x02 \x01(\tR\x05owner\x12\x14\n\x05ready\x18\x03 \x01(\x08R\x05ready\x12\x43\n\x04type\x18\x04 \x01(\x0e\x32/.stabilityai.platformapis.engines.v1.EngineTypeR\x04type\x12R\n\ttokenizer\x18\x05 \x01(\x0e\x32\x34.stabilityai.platformapis.engines.v1.EngineTokenizerR\ttokenizer\x12\x12\n\x04name\x18\x06 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x07 \x01(\tR\x0b\x64\x65scription\"\x14\n\x12ListEnginesRequest\"R\n\x07\x45ngines\x12G\n\x06\x65ngine\x18\x01 \x03(\x0b\x32/.stabilityai.platformapis.engines.v1.EngineInfoR\x06\x65ngine*Z\n\nEngineType\x12\x08\n\x04TEXT\x10\x00\x12\x0b\n\x07PICTURE\x10\x01\x12\t\n\x05\x41UDIO\x10\x02\x12\t\n\x05VIDEO\x10\x03\x12\x12\n\x0e\x43LASSIFICATION\x10\x04\x12\x0b\n\x07STORAGE\x10\x05*%\n\x0f\x45ngineTokenizer\x12\x08\n\x04GPT2\x10\x00\x12\x08\n\x04PILE\x10\x01\x32\x88\x01\n\x0e\x45nginesService\x12v\n\x0bListEngines\x12\x37.stabilityai.platformapis.engines.v1.ListEnginesRequest\x1a,.stabilityai.platformapis.engines.v1.Engines\"\x00\x42\xc7\x02\n\'com.stabilityai.platformapis.engines.v1B\x0c\x45nginesProtoP\x01Z_github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/engines/v1;enginesv1\xa2\x02\x03SPE\xaa\x02#Stabilityai.Platformapis.Engines.V1\xca\x02#Stabilityai\\Platformapis\\Engines\\V1\xe2\x02/Stabilityai\\Platformapis\\Engines\\V1\\GPBMetadata\xea\x02&Stabilityai::Platformapis::Engines::V1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'stability_api.platform.engines.v1.engines_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\'com.stabilityai.platformapis.engines.v1B\014EnginesProtoP\001Z_github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/engines/v1;enginesv1\242\002\003SPE\252\002#Stabilityai.Platformapis.Engines.V1\312\002#Stabilityai\\Platformapis\\Engines\\V1\342\002/Stabilityai\\Platformapis\\Engines\\V1\\GPBMetadata\352\002&Stabilityai::Platformapis::Engines::V1' + _globals['_ENGINETYPE']._serialized_start=476 + _globals['_ENGINETYPE']._serialized_end=566 + _globals['_ENGINETOKENIZER']._serialized_start=568 + _globals['_ENGINETOKENIZER']._serialized_end=605 + _globals['_ENGINEINFO']._serialized_start=89 + _globals['_ENGINEINFO']._serialized_end=368 + _globals['_LISTENGINESREQUEST']._serialized_start=370 + _globals['_LISTENGINESREQUEST']._serialized_end=390 + _globals['_ENGINES']._serialized_start=392 + _globals['_ENGINES']._serialized_end=474 + _globals['_ENGINESSERVICE']._serialized_start=608 + _globals['_ENGINESSERVICE']._serialized_end=744 +# @@protoc_insertion_point(module_scope) diff --git a/gen/proto/py/stabilityai/platformapis/engines/v1/engines_pb2.pyi b/gen/proto/py/stability_api/platform/engines/v1/engines_pb2.pyi similarity index 100% rename from gen/proto/py/stabilityai/platformapis/engines/v1/engines_pb2.pyi rename to gen/proto/py/stability_api/platform/engines/v1/engines_pb2.pyi diff --git a/gen/proto/py/stabilityai/platformapis/engines/v1/engines_pb2_grpc.py b/gen/proto/py/stability_api/platform/engines/v1/engines_pb2_grpc.py similarity index 70% rename from gen/proto/py/stabilityai/platformapis/engines/v1/engines_pb2_grpc.py rename to gen/proto/py/stability_api/platform/engines/v1/engines_pb2_grpc.py index a3ca2aa..76c560e 100644 --- a/gen/proto/py/stabilityai/platformapis/engines/v1/engines_pb2_grpc.py +++ b/gen/proto/py/stability_api/platform/engines/v1/engines_pb2_grpc.py @@ -2,7 +2,7 @@ """Client and server classes corresponding to protobuf-defined services.""" import grpc -from stabilityai.platformapis.engines.v1 import engines_pb2 as stabilityai_dot_platformapis_dot_engines_dot_v1_dot_engines__pb2 +from stability_api.platform.engines.v1 import engines_pb2 as stability__api_dot_platform_dot_engines_dot_v1_dot_engines__pb2 class EnginesServiceStub(object): @@ -16,8 +16,8 @@ def __init__(self, channel): """ self.ListEngines = channel.unary_unary( '/stabilityai.platformapis.engines.v1.EnginesService/ListEngines', - request_serializer=stabilityai_dot_platformapis_dot_engines_dot_v1_dot_engines__pb2.ListEnginesRequest.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_engines_dot_v1_dot_engines__pb2.Engines.FromString, + request_serializer=stability__api_dot_platform_dot_engines_dot_v1_dot_engines__pb2.ListEnginesRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_engines_dot_v1_dot_engines__pb2.Engines.FromString, ) @@ -35,8 +35,8 @@ def add_EnginesServiceServicer_to_server(servicer, server): rpc_method_handlers = { 'ListEngines': grpc.unary_unary_rpc_method_handler( servicer.ListEngines, - request_deserializer=stabilityai_dot_platformapis_dot_engines_dot_v1_dot_engines__pb2.ListEnginesRequest.FromString, - response_serializer=stabilityai_dot_platformapis_dot_engines_dot_v1_dot_engines__pb2.Engines.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_engines_dot_v1_dot_engines__pb2.ListEnginesRequest.FromString, + response_serializer=stability__api_dot_platform_dot_engines_dot_v1_dot_engines__pb2.Engines.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( @@ -60,7 +60,7 @@ def ListEngines(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/stabilityai.platformapis.engines.v1.EnginesService/ListEngines', - stabilityai_dot_platformapis_dot_engines_dot_v1_dot_engines__pb2.ListEnginesRequest.SerializeToString, - stabilityai_dot_platformapis_dot_engines_dot_v1_dot_engines__pb2.Engines.FromString, + stability__api_dot_platform_dot_engines_dot_v1_dot_engines__pb2.ListEnginesRequest.SerializeToString, + stability__api_dot_platform_dot_engines_dot_v1_dot_engines__pb2.Engines.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2.py b/gen/proto/py/stability_api/platform/generation/v1/generation_pb2.py similarity index 94% rename from gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2.py rename to gen/proto/py/stability_api/platform/generation/v1/generation_pb2.py index e987e75..275283e 100644 --- a/gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2.py +++ b/gen/proto/py/stability_api/platform/generation/v1/generation_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: stabilityai/platformapis/generation/v1/generation.proto +# source: stability_api/platform/generation/v1/generation.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -12,18 +12,18 @@ from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 -from stabilityai.tensors import tensors_pb2 as stabilityai_dot_tensors_dot_tensors__pb2 +from stability_api.tensors import tensors_pb2 as stability__api_dot_tensors_dot_tensors__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n7stabilityai/platformapis/generation/v1/generation.proto\x12&stabilityai.platformapis.generation.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a!stabilityai/tensors/tensors.proto\"9\n\x05Token\x12\x17\n\x04text\x18\x01 \x01(\tH\x00R\x04text\x88\x01\x01\x12\x0e\n\x02id\x18\x02 \x01(\rR\x02idB\x07\n\x05_text\"\x88\x01\n\x06Tokens\x12\x45\n\x06tokens\x18\x01 \x03(\x0b\x32-.stabilityai.platformapis.generation.v1.TokenR\x06tokens\x12&\n\x0ctokenizer_id\x18\x02 \x01(\tH\x00R\x0btokenizerId\x88\x01\x01\x42\x0f\n\r_tokenizer_id\"\xd7\x04\n\x08\x41rtifact\x12\x0e\n\x02id\x18\x01 \x01(\x04R\x02id\x12H\n\x04type\x18\x02 \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.ArtifactTypeR\x04type\x12\x12\n\x04mime\x18\x03 \x01(\tR\x04mime\x12\x19\n\x05magic\x18\x04 \x01(\tH\x01R\x05magic\x88\x01\x01\x12\x18\n\x06\x62inary\x18\x05 \x01(\x0cH\x00R\x06\x62inary\x12\x14\n\x04text\x18\x06 \x01(\tH\x00R\x04text\x12H\n\x06tokens\x18\x07 \x01(\x0b\x32..stabilityai.platformapis.generation.v1.TokensH\x00R\x06tokens\x12^\n\nclassifier\x18\x0b \x01(\x0b\x32<.stabilityai.platformapis.generation.v1.ClassifierParametersH\x00R\nclassifier\x12)\n\x06tensor\x18\x0e \x01(\x0b\x32\x0f.tensors.TensorH\x00R\x06tensor\x12\x14\n\x05index\x18\x08 \x01(\rR\x05index\x12Y\n\rfinish_reason\x18\t \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.FinishReasonR\x0c\x66inishReason\x12\x12\n\x04seed\x18\n \x01(\rR\x04seed\x12\x12\n\x04uuid\x18\x0c \x01(\tR\x04uuid\x12\x12\n\x04size\x18\r \x01(\x04R\x04sizeB\x06\n\x04\x64\x61taB\x08\n\x06_magic\"\\\n\x10PromptParameters\x12\x17\n\x04init\x18\x01 \x01(\x08H\x00R\x04init\x88\x01\x01\x12\x1b\n\x06weight\x18\x02 \x01(\x02H\x01R\x06weight\x88\x01\x01\x42\x07\n\x05_initB\t\n\x07_weight\"\xb0\x02\n\x06Prompt\x12]\n\nparameters\x18\x01 \x01(\x0b\x32\x38.stabilityai.platformapis.generation.v1.PromptParametersH\x01R\nparameters\x88\x01\x01\x12\x14\n\x04text\x18\x02 \x01(\tH\x00R\x04text\x12H\n\x06tokens\x18\x03 \x01(\x0b\x32..stabilityai.platformapis.generation.v1.TokensH\x00R\x06tokens\x12N\n\x08\x61rtifact\x18\x04 \x01(\x0b\x32\x30.stabilityai.platformapis.generation.v1.ArtifactH\x00R\x08\x61rtifactB\x08\n\x06promptB\r\n\x0b_parameters\"\xb9\x03\n\x11SamplerParameters\x12\x15\n\x03\x65ta\x18\x01 \x01(\x02H\x00R\x03\x65ta\x88\x01\x01\x12*\n\x0esampling_steps\x18\x02 \x01(\x04H\x01R\rsamplingSteps\x88\x01\x01\x12,\n\x0flatent_channels\x18\x03 \x01(\x04H\x02R\x0elatentChannels\x88\x01\x01\x12\x34\n\x13\x64ownsampling_factor\x18\x04 \x01(\x04H\x03R\x12\x64ownsamplingFactor\x88\x01\x01\x12 \n\tcfg_scale\x18\x05 \x01(\x02H\x04R\x08\x63\x66gScale\x88\x01\x01\x12-\n\x10init_noise_scale\x18\x06 \x01(\x02H\x05R\x0einitNoiseScale\x88\x01\x01\x12-\n\x10step_noise_scale\x18\x07 \x01(\x02H\x06R\x0estepNoiseScale\x88\x01\x01\x42\x06\n\x04_etaB\x11\n\x0f_sampling_stepsB\x12\n\x10_latent_channelsB\x16\n\x14_downsampling_factorB\x0c\n\n_cfg_scaleB\x13\n\x11_init_noise_scaleB\x13\n\x11_step_noise_scale\"\xca\x01\n\x15\x43onditionerParameters\x12\x33\n\x13vector_adjust_prior\x18\x01 \x01(\tH\x00R\x11vectorAdjustPrior\x88\x01\x01\x12T\n\x0b\x63onditioner\x18\x02 \x01(\x0b\x32-.stabilityai.platformapis.generation.v1.ModelH\x01R\x0b\x63onditioner\x88\x01\x01\x42\x16\n\x14_vector_adjust_priorB\x0e\n\x0c_conditioner\"}\n\x12ScheduleParameters\x12\x19\n\x05start\x18\x01 \x01(\x02H\x00R\x05start\x88\x01\x01\x12\x15\n\x03\x65nd\x18\x02 \x01(\x02H\x01R\x03\x65nd\x88\x01\x01\x12\x19\n\x05value\x18\x03 \x01(\x02H\x02R\x05value\x88\x01\x01\x42\x08\n\x06_startB\x06\n\x04_endB\x08\n\x06_value\"\xea\x02\n\rStepParameter\x12\x1f\n\x0bscaled_step\x18\x01 \x01(\x02R\nscaledStep\x12X\n\x07sampler\x18\x02 \x01(\x0b\x32\x39.stabilityai.platformapis.generation.v1.SamplerParametersH\x00R\x07sampler\x88\x01\x01\x12[\n\x08schedule\x18\x03 \x01(\x0b\x32:.stabilityai.platformapis.generation.v1.ScheduleParametersH\x01R\x08schedule\x88\x01\x01\x12[\n\x08guidance\x18\x04 \x01(\x0b\x32:.stabilityai.platformapis.generation.v1.GuidanceParametersH\x02R\x08guidance\x88\x01\x01\x42\n\n\x08_samplerB\x0b\n\t_scheduleB\x0b\n\t_guidance\"\xf9\x01\n\x05Model\x12]\n\x0c\x61rchitecture\x18\x01 \x01(\x0e\x32\x39.stabilityai.platformapis.generation.v1.ModelArchitectureR\x0c\x61rchitecture\x12\x1c\n\tpublisher\x18\x02 \x01(\tR\tpublisher\x12\x18\n\x07\x64\x61taset\x18\x03 \x01(\tR\x07\x64\x61taset\x12\x18\n\x07version\x18\x04 \x01(\x02R\x07version\x12)\n\x10semantic_version\x18\x05 \x01(\tR\x0fsemanticVersion\x12\x14\n\x05\x61lias\x18\x06 \x01(\tR\x05\x61lias\"\x82\x02\n\x10\x43utoutParameters\x12R\n\x07\x63utouts\x18\x01 \x03(\x0b\x32\x38.stabilityai.platformapis.generation.v1.CutoutParametersR\x07\x63utouts\x12\x19\n\x05\x63ount\x18\x02 \x01(\rH\x00R\x05\x63ount\x88\x01\x01\x12\x17\n\x04gray\x18\x03 \x01(\x02H\x01R\x04gray\x88\x01\x01\x12\x17\n\x04\x62lur\x18\x04 \x01(\x02H\x02R\x04\x62lur\x88\x01\x01\x12\"\n\nsize_power\x18\x05 \x01(\x02H\x03R\tsizePower\x88\x01\x01\x42\x08\n\x06_countB\x07\n\x05_grayB\x07\n\x05_blurB\r\n\x0b_size_power\"N\n\x1aGuidanceScheduleParameters\x12\x1a\n\x08\x64uration\x18\x01 \x01(\x02R\x08\x64uration\x12\x14\n\x05value\x18\x02 \x01(\x02R\x05value\"\xc8\x03\n\x1aGuidanceInstanceParameters\x12\x45\n\x06models\x18\x02 \x03(\x0b\x32-.stabilityai.platformapis.generation.v1.ModelR\x06models\x12\x30\n\x11guidance_strength\x18\x03 \x01(\x02H\x00R\x10guidanceStrength\x88\x01\x01\x12^\n\x08schedule\x18\x04 \x03(\x0b\x32\x42.stabilityai.platformapis.generation.v1.GuidanceScheduleParametersR\x08schedule\x12W\n\x07\x63utouts\x18\x05 \x01(\x0b\x32\x38.stabilityai.platformapis.generation.v1.CutoutParametersH\x01R\x07\x63utouts\x88\x01\x01\x12K\n\x06prompt\x18\x06 \x01(\x0b\x32..stabilityai.platformapis.generation.v1.PromptH\x02R\x06prompt\x88\x01\x01\x42\x14\n\x12_guidance_strengthB\n\n\x08_cutoutsB\t\n\x07_prompt\"\xd7\x01\n\x12GuidanceParameters\x12_\n\x0fguidance_preset\x18\x01 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.GuidancePresetR\x0eguidancePreset\x12`\n\tinstances\x18\x02 \x03(\x0b\x32\x42.stabilityai.platformapis.generation.v1.GuidanceInstanceParametersR\tinstances\"\xc1\x01\n\rTransformType\x12X\n\tdiffusion\x18\x01 \x01(\x0e\x32\x38.stabilityai.platformapis.generation.v1.DiffusionSamplerH\x00R\tdiffusion\x12N\n\x08upscaler\x18\x02 \x01(\x0e\x32\x30.stabilityai.platformapis.generation.v1.UpscalerH\x00R\x08upscalerB\x06\n\x04type\"\x9d\x05\n\x0fImageParameters\x12\x1b\n\x06height\x18\x01 \x01(\x04H\x00R\x06height\x88\x01\x01\x12\x19\n\x05width\x18\x02 \x01(\x04H\x01R\x05width\x88\x01\x01\x12\x12\n\x04seed\x18\x03 \x03(\rR\x04seed\x12\x1d\n\x07samples\x18\x04 \x01(\x04H\x02R\x07samples\x88\x01\x01\x12\x19\n\x05steps\x18\x05 \x01(\x04H\x03R\x05steps\x88\x01\x01\x12X\n\ttransform\x18\x06 \x01(\x0b\x32\x35.stabilityai.platformapis.generation.v1.TransformTypeH\x04R\ttransform\x88\x01\x01\x12U\n\nparameters\x18\x07 \x03(\x0b\x32\x35.stabilityai.platformapis.generation.v1.StepParameterR\nparameters\x12\x65\n\x10masked_area_init\x18\x08 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.MaskedAreaInitH\x05R\x0emaskedAreaInit\x88\x01\x01\x12^\n\rweight_method\x18\t \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.WeightMethodH\x06R\x0cweightMethod\x88\x01\x01\x12\x1f\n\x08quantize\x18\n \x01(\x08H\x07R\x08quantize\x88\x01\x01\x42\t\n\x07_heightB\x08\n\x06_widthB\n\n\x08_samplesB\x08\n\x06_stepsB\x0c\n\n_transformB\x13\n\x11_masked_area_initB\x10\n\x0e_weight_methodB\x0b\n\t_quantize\"^\n\x11\x43lassifierConcept\x12\x18\n\x07\x63oncept\x18\x01 \x01(\tR\x07\x63oncept\x12!\n\tthreshold\x18\x02 \x01(\x02H\x00R\tthreshold\x88\x01\x01\x42\x0c\n\n_threshold\"\x85\x03\n\x12\x43lassifierCategory\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12U\n\x08\x63oncepts\x18\x02 \x03(\x0b\x32\x39.stabilityai.platformapis.generation.v1.ClassifierConceptR\x08\x63oncepts\x12#\n\nadjustment\x18\x03 \x01(\x02H\x00R\nadjustment\x88\x01\x01\x12K\n\x06\x61\x63tion\x18\x04 \x01(\x0e\x32..stabilityai.platformapis.generation.v1.ActionH\x01R\x06\x61\x63tion\x88\x01\x01\x12\x64\n\x0f\x63lassifier_mode\x18\x05 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.ClassifierModeH\x02R\x0e\x63lassifierMode\x88\x01\x01\x42\r\n\x0b_adjustmentB\t\n\x07_actionB\x12\n\x10_classifier_mode\"\xba\x02\n\x14\x43lassifierParameters\x12Z\n\ncategories\x18\x01 \x03(\x0b\x32:.stabilityai.platformapis.generation.v1.ClassifierCategoryR\ncategories\x12T\n\x07\x65xceeds\x18\x02 \x03(\x0b\x32:.stabilityai.platformapis.generation.v1.ClassifierCategoryR\x07\x65xceeds\x12\\\n\x0frealized_action\x18\x03 \x01(\x0e\x32..stabilityai.platformapis.generation.v1.ActionH\x00R\x0erealizedAction\x88\x01\x01\x42\x12\n\x10_realized_action\"\x8a\x01\n\x15InterpolateParameters\x12\x16\n\x06ratios\x18\x01 \x03(\x02R\x06ratios\x12P\n\x04mode\x18\x02 \x01(\x0e\x32\x37.stabilityai.platformapis.generation.v1.InterpolateModeH\x00R\x04mode\x88\x01\x01\x42\x07\n\x05_mode\"\xbb\x04\n\x14TransformColorAdjust\x12#\n\nbrightness\x18\x01 \x01(\x02H\x00R\nbrightness\x88\x01\x01\x12\x1f\n\x08\x63ontrast\x18\x02 \x01(\x02H\x01R\x08\x63ontrast\x88\x01\x01\x12\x15\n\x03hue\x18\x03 \x01(\x02H\x02R\x03hue\x88\x01\x01\x12#\n\nsaturation\x18\x04 \x01(\x02H\x03R\nsaturation\x88\x01\x01\x12!\n\tlightness\x18\x05 \x01(\x02H\x04R\tlightness\x88\x01\x01\x12V\n\x0bmatch_image\x18\x06 \x01(\x0b\x32\x30.stabilityai.platformapis.generation.v1.ArtifactH\x05R\nmatchImage\x88\x01\x01\x12Z\n\nmatch_mode\x18\x07 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.ColorMatchModeH\x06R\tmatchMode\x88\x01\x01\x12&\n\x0cnoise_amount\x18\x08 \x01(\x02H\x07R\x0bnoiseAmount\x88\x01\x01\x12\"\n\nnoise_seed\x18\t \x01(\rH\x08R\tnoiseSeed\x88\x01\x01\x42\r\n\x0b_brightnessB\x0b\n\t_contrastB\x06\n\x04_hueB\r\n\x0b_saturationB\x0c\n\n_lightnessB\x0e\n\x0c_match_imageB\r\n\x0b_match_modeB\x0f\n\r_noise_amountB\r\n\x0b_noise_seed\"\xae\x01\n\x12TransformDepthCalc\x12&\n\x0c\x62lend_weight\x18\x01 \x01(\x02H\x00R\x0b\x62lendWeight\x88\x01\x01\x12$\n\x0b\x62lur_radius\x18\x02 \x01(\rH\x01R\nblurRadius\x88\x01\x01\x12\x1d\n\x07reverse\x18\x03 \x01(\x08H\x02R\x07reverse\x88\x01\x01\x42\x0f\n\r_blend_weightB\x0e\n\x0c_blur_radiusB\n\n\x08_reverse\")\n\x0fTransformMatrix\x12\x16\n\x04\x64\x61ta\x18\x01 \x03(\x02\x42\x02\x10\x01R\x04\x64\x61ta\"\xa0\x03\n\x11TransformResample\x12S\n\x0b\x62order_mode\x18\x01 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.BorderModeR\nborderMode\x12U\n\ttransform\x18\x02 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.TransformMatrixR\ttransform\x12\x63\n\x0eprev_transform\x18\x03 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.TransformMatrixH\x00R\rprevTransform\x88\x01\x01\x12\"\n\ndepth_warp\x18\x04 \x01(\x02H\x01R\tdepthWarp\x88\x01\x01\x12$\n\x0b\x65xport_mask\x18\x05 \x01(\x08H\x02R\nexportMask\x88\x01\x01\x42\x11\n\x0f_prev_transformB\r\n\x0b_depth_warpB\x0e\n\x0c_export_mask\"\xc2\x01\n\x10\x43\x61meraParameters\x12S\n\x0b\x63\x61mera_type\x18\x01 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.CameraTypeR\ncameraType\x12\x1d\n\nnear_plane\x18\x02 \x01(\x02R\tnearPlane\x12\x1b\n\tfar_plane\x18\x03 \x01(\x02R\x08\x66\x61rPlane\x12\x15\n\x03\x66ov\x18\x04 \x01(\x02H\x00R\x03\x66ov\x88\x01\x01\x42\x06\n\x04_fov\"\xf2\x02\n\x13TransformCameraPose\x12h\n\x14world_to_view_matrix\x18\x01 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.TransformMatrixR\x11worldToViewMatrix\x12\x65\n\x11\x63\x61mera_parameters\x18\x02 \x01(\x0b\x32\x38.stabilityai.platformapis.generation.v1.CameraParametersR\x10\x63\x61meraParameters\x12\x1d\n\ndo_prefill\x18\x05 \x01(\x08R\tdoPrefill\x12S\n\x0brender_mode\x18\x08 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.RenderModeR\nrenderModeJ\x04\x08\x03\x10\x04J\x04\x08\x04\x10\x05J\x04\x08\x06\x10\x07J\x04\x08\x07\x10\x08\"\x9b\x03\n\x13TransformParameters\x12\x61\n\x0c\x63olor_adjust\x18\x02 \x01(\x0b\x32<.stabilityai.platformapis.generation.v1.TransformColorAdjustH\x00R\x0b\x63olorAdjust\x12[\n\ndepth_calc\x18\x04 \x01(\x0b\x32:.stabilityai.platformapis.generation.v1.TransformDepthCalcH\x00R\tdepthCalc\x12W\n\x08resample\x18\x05 \x01(\x0b\x32\x39.stabilityai.platformapis.generation.v1.TransformResampleH\x00R\x08resample\x12^\n\x0b\x63\x61mera_pose\x18\x06 \x01(\x0b\x32;.stabilityai.platformapis.generation.v1.TransformCameraPoseH\x00R\ncameraPoseB\x0b\n\ttransform\"\xc1\x01\n\x0f\x41ssetParameters\x12K\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32\x33.stabilityai.platformapis.generation.v1.AssetActionR\x06\x61\x63tion\x12\x1d\n\nproject_id\x18\x02 \x01(\tR\tprojectId\x12\x42\n\x03use\x18\x03 \x01(\x0e\x32\x30.stabilityai.platformapis.generation.v1.AssetUseR\x03use\"\xb4\x01\n\nAnswerMeta\x12\x1a\n\x06gpu_id\x18\x01 \x01(\tH\x00R\x05gpuId\x88\x01\x01\x12\x1a\n\x06\x63pu_id\x18\x02 \x01(\tH\x01R\x05\x63puId\x88\x01\x01\x12\x1c\n\x07node_id\x18\x03 \x01(\tH\x02R\x06nodeId\x88\x01\x01\x12 \n\tengine_id\x18\x04 \x01(\tH\x03R\x08\x65ngineId\x88\x01\x01\x42\t\n\x07_gpu_idB\t\n\x07_cpu_idB\n\n\x08_node_idB\x0c\n\n_engine_id\"\xa0\x02\n\x06\x41nswer\x12\x1b\n\tanswer_id\x18\x01 \x01(\tR\x08\x61nswerId\x12\x1d\n\nrequest_id\x18\x02 \x01(\tR\trequestId\x12\x1a\n\x08received\x18\x03 \x01(\x04R\x08received\x12\x18\n\x07\x63reated\x18\x04 \x01(\x04R\x07\x63reated\x12K\n\x04meta\x18\x06 \x01(\x0b\x32\x32.stabilityai.platformapis.generation.v1.AnswerMetaH\x00R\x04meta\x88\x01\x01\x12N\n\tartifacts\x18\x07 \x03(\x0b\x32\x30.stabilityai.platformapis.generation.v1.ArtifactR\tartifactsB\x07\n\x05_meta\"r\n\x0b\x41nswerBatch\x12\x19\n\x08\x62\x61tch_id\x18\x01 \x01(\tR\x07\x62\x61tchId\x12H\n\x07\x61nswers\x18\x02 \x03(\x0b\x32..stabilityai.platformapis.generation.v1.AnswerR\x07\x61nswers\"\xfa\x06\n\x07Request\x12\x1b\n\tengine_id\x18\x01 \x01(\tR\x08\x65ngineId\x12\x1d\n\nrequest_id\x18\x02 \x01(\tR\trequestId\x12[\n\x0erequested_type\x18\x03 \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.ArtifactTypeR\rrequestedType\x12\x46\n\x06prompt\x18\x04 \x03(\x0b\x32..stabilityai.platformapis.generation.v1.PromptR\x06prompt\x12O\n\x05image\x18\x05 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.ImageParametersH\x00R\x05image\x12^\n\nclassifier\x18\x07 \x01(\x0b\x32<.stabilityai.platformapis.generation.v1.ClassifierParametersH\x00R\nclassifier\x12O\n\x05\x61sset\x18\x08 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.AssetParametersH\x00R\x05\x61sset\x12\x61\n\x0binterpolate\x18\x0b \x01(\x0b\x32=.stabilityai.platformapis.generation.v1.InterpolateParametersH\x00R\x0binterpolate\x12[\n\ttransform\x18\x0c \x01(\x0b\x32;.stabilityai.platformapis.generation.v1.TransformParametersH\x00R\ttransform\x12\x64\n\x0b\x63onditioner\x18\x06 \x01(\x0b\x32=.stabilityai.platformapis.generation.v1.ConditionerParametersH\x01R\x0b\x63onditioner\x88\x01\x01\x12\x35\n\x06\x65xtras\x18\xff\x0f \x01(\x0b\x32\x17.google.protobuf.StructH\x02R\x06\x65xtras\x88\x01\x01\x42\x08\n\x06paramsB\x0e\n\x0c_conditionerB\t\n\x07_extrasJ\x04\x08\t\x10\nJ\x04\x08\n\x10\x0b\"\xcd\x01\n\x08OnStatus\x12L\n\x06reason\x18\x01 \x03(\x0e\x32\x34.stabilityai.platformapis.generation.v1.FinishReasonR\x06reason\x12\x1b\n\x06target\x18\x02 \x01(\tH\x00R\x06target\x88\x01\x01\x12K\n\x06\x61\x63tion\x18\x03 \x03(\x0e\x32\x33.stabilityai.platformapis.generation.v1.StageActionR\x06\x61\x63tionB\t\n\x07_target\"\xb1\x01\n\x05Stage\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12I\n\x07request\x18\x02 \x01(\x0b\x32/.stabilityai.platformapis.generation.v1.RequestR\x07request\x12M\n\ton_status\x18\x03 \x03(\x0b\x32\x30.stabilityai.platformapis.generation.v1.OnStatusR\x08onStatus\"r\n\x0c\x43hainRequest\x12\x1d\n\nrequest_id\x18\x01 \x01(\tR\trequestId\x12\x43\n\x05stage\x18\x02 \x03(\x0b\x32-.stabilityai.platformapis.generation.v1.StageR\x05stage*E\n\x0c\x46inishReason\x12\x08\n\x04NULL\x10\x00\x12\n\n\x06LENGTH\x10\x01\x12\x08\n\x04STOP\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\n\n\x06\x46ILTER\x10\x04*\xf8\x01\n\x0c\x41rtifactType\x12\x11\n\rARTIFACT_NONE\x10\x00\x12\x12\n\x0e\x41RTIFACT_IMAGE\x10\x01\x12\x12\n\x0e\x41RTIFACT_VIDEO\x10\x02\x12\x11\n\rARTIFACT_TEXT\x10\x03\x12\x13\n\x0f\x41RTIFACT_TOKENS\x10\x04\x12\x16\n\x12\x41RTIFACT_EMBEDDING\x10\x05\x12\x1c\n\x18\x41RTIFACT_CLASSIFICATIONS\x10\x06\x12\x11\n\rARTIFACT_MASK\x10\x07\x12\x13\n\x0f\x41RTIFACT_LATENT\x10\x08\x12\x13\n\x0f\x41RTIFACT_TENSOR\x10\t\x12\x12\n\x0e\x41RTIFACT_DEPTH\x10\n*g\n\x0eMaskedAreaInit\x12\x19\n\x15MASKED_AREA_INIT_ZERO\x10\x00\x12\x1b\n\x17MASKED_AREA_INIT_RANDOM\x10\x01\x12\x1d\n\x19MASKED_AREA_INIT_ORIGINAL\x10\x02*5\n\x0cWeightMethod\x12\x10\n\x0cTEXT_ENCODER\x10\x00\x12\x13\n\x0f\x43ROSS_ATTENTION\x10\x01*\x98\x02\n\x10\x44iffusionSampler\x12\x10\n\x0cSAMPLER_DDIM\x10\x00\x12\x10\n\x0cSAMPLER_DDPM\x10\x01\x12\x13\n\x0fSAMPLER_K_EULER\x10\x02\x12\x1d\n\x19SAMPLER_K_EULER_ANCESTRAL\x10\x03\x12\x12\n\x0eSAMPLER_K_HEUN\x10\x04\x12\x13\n\x0fSAMPLER_K_DPM_2\x10\x05\x12\x1d\n\x19SAMPLER_K_DPM_2_ANCESTRAL\x10\x06\x12\x11\n\rSAMPLER_K_LMS\x10\x07\x12 \n\x1cSAMPLER_K_DPMPP_2S_ANCESTRAL\x10\x08\x12\x16\n\x12SAMPLER_K_DPMPP_2M\x10\t\x12\x17\n\x13SAMPLER_K_DPMPP_SDE\x10\n*F\n\x08Upscaler\x12\x10\n\x0cUPSCALER_RGB\x10\x00\x12\x13\n\x0fUPSCALER_GFPGAN\x10\x01\x12\x13\n\x0fUPSCALER_ESRGAN\x10\x02*\xd8\x01\n\x0eGuidancePreset\x12\x18\n\x14GUIDANCE_PRESET_NONE\x10\x00\x12\x1a\n\x16GUIDANCE_PRESET_SIMPLE\x10\x01\x12\x1d\n\x19GUIDANCE_PRESET_FAST_BLUE\x10\x02\x12\x1e\n\x1aGUIDANCE_PRESET_FAST_GREEN\x10\x03\x12\x18\n\x14GUIDANCE_PRESET_SLOW\x10\x04\x12\x1a\n\x16GUIDANCE_PRESET_SLOWER\x10\x05\x12\x1b\n\x17GUIDANCE_PRESET_SLOWEST\x10\x06*\x91\x01\n\x11ModelArchitecture\x12\x1b\n\x17MODEL_ARCHITECTURE_NONE\x10\x00\x12\x1f\n\x1bMODEL_ARCHITECTURE_CLIP_VIT\x10\x01\x12\"\n\x1eMODEL_ARCHITECTURE_CLIP_RESNET\x10\x02\x12\x1a\n\x16MODEL_ARCHITECTURE_LDM\x10\x03*\xa2\x01\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_PASSTHROUGH\x10\x00\x12\x1f\n\x1b\x41\x43TION_REGENERATE_DUPLICATE\x10\x01\x12\x15\n\x11\x41\x43TION_REGENERATE\x10\x02\x12\x1e\n\x1a\x41\x43TION_OBFUSCATE_DUPLICATE\x10\x03\x12\x14\n\x10\x41\x43TION_OBFUSCATE\x10\x04\x12\x12\n\x0e\x41\x43TION_DISCARD\x10\x05*D\n\x0e\x43lassifierMode\x12\x17\n\x13\x43LSFR_MODE_ZEROSHOT\x10\x00\x12\x19\n\x15\x43LSFR_MODE_MULTICLASS\x10\x01*\x8c\x01\n\x0fInterpolateMode\x12\x16\n\x12INTERPOLATE_LINEAR\x10\x00\x12\x14\n\x10INTERPOLATE_RIFE\x10\x01\x12\x1a\n\x16INTERPOLATE_VAE_LINEAR\x10\x02\x12\x19\n\x15INTERPOLATE_VAE_SLERP\x10\x03\x12\x14\n\x10INTERPOLATE_FILM\x10\x04*l\n\nBorderMode\x12\x12\n\x0e\x42ORDER_REFLECT\x10\x00\x12\x14\n\x10\x42ORDER_REPLICATE\x10\x01\x12\x0f\n\x0b\x42ORDER_WRAP\x10\x02\x12\x0f\n\x0b\x42ORDER_ZERO\x10\x03\x12\x12\n\x0e\x42ORDER_PREFILL\x10\x04*O\n\x0e\x43olorMatchMode\x12\x13\n\x0f\x43OLOR_MATCH_HSV\x10\x00\x12\x13\n\x0f\x43OLOR_MATCH_LAB\x10\x01\x12\x13\n\x0f\x43OLOR_MATCH_RGB\x10\x02*=\n\nCameraType\x12\x16\n\x12\x43\x41MERA_PERSPECTIVE\x10\x00\x12\x17\n\x13\x43\x41MERA_ORTHOGRAPHIC\x10\x01*4\n\nRenderMode\x12\x0f\n\x0bRENDER_MESH\x10\x00\x12\x15\n\x11RENDER_POINTCLOUD\x10\x01*=\n\x0b\x41ssetAction\x12\r\n\tASSET_PUT\x10\x00\x12\r\n\tASSET_GET\x10\x01\x12\x10\n\x0c\x41SSET_DELETE\x10\x02*\x81\x01\n\x08\x41ssetUse\x12\x17\n\x13\x41SSET_USE_UNDEFINED\x10\x00\x12\x13\n\x0f\x41SSET_USE_INPUT\x10\x01\x12\x14\n\x10\x41SSET_USE_OUTPUT\x10\x02\x12\x1a\n\x16\x41SSET_USE_INTERMEDIATE\x10\x03\x12\x15\n\x11\x41SSET_USE_PROJECT\x10\x04*W\n\x0bStageAction\x12\x15\n\x11STAGE_ACTION_PASS\x10\x00\x12\x18\n\x14STAGE_ACTION_DISCARD\x10\x01\x12\x17\n\x13STAGE_ACTION_RETURN\x10\x02\x32\xff\x01\n\x11GenerationService\x12o\n\x08Generate\x12/.stabilityai.platformapis.generation.v1.Request\x1a..stabilityai.platformapis.generation.v1.Answer\"\x00\x30\x01\x12y\n\rChainGenerate\x12\x34.stabilityai.platformapis.generation.v1.ChainRequest\x1a..stabilityai.platformapis.generation.v1.Answer\"\x00\x30\x01\x42\xe1\x02\n*com.stabilityai.platformapis.generation.v1B\x0fGenerationProtoP\x01Zggithub.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/generation/v1;generationv1\xa2\x02\x03SPG\xaa\x02&Stabilityai.Platformapis.Generation.V1\xca\x02&Stabilityai\\Platformapis\\Generation\\V1\xe2\x02\x32Stabilityai\\Platformapis\\Generation\\V1\\GPBMetadata\xea\x02)Stabilityai::Platformapis::Generation::V1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n5stability_api/platform/generation/v1/generation.proto\x12&stabilityai.platformapis.generation.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a#stability_api/tensors/tensors.proto\"9\n\x05Token\x12\x17\n\x04text\x18\x01 \x01(\tH\x00R\x04text\x88\x01\x01\x12\x0e\n\x02id\x18\x02 \x01(\rR\x02idB\x07\n\x05_text\"\x88\x01\n\x06Tokens\x12\x45\n\x06tokens\x18\x01 \x03(\x0b\x32-.stabilityai.platformapis.generation.v1.TokenR\x06tokens\x12&\n\x0ctokenizer_id\x18\x02 \x01(\tH\x00R\x0btokenizerId\x88\x01\x01\x42\x0f\n\r_tokenizer_id\"\xd7\x04\n\x08\x41rtifact\x12\x0e\n\x02id\x18\x01 \x01(\x04R\x02id\x12H\n\x04type\x18\x02 \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.ArtifactTypeR\x04type\x12\x12\n\x04mime\x18\x03 \x01(\tR\x04mime\x12\x19\n\x05magic\x18\x04 \x01(\tH\x01R\x05magic\x88\x01\x01\x12\x18\n\x06\x62inary\x18\x05 \x01(\x0cH\x00R\x06\x62inary\x12\x14\n\x04text\x18\x06 \x01(\tH\x00R\x04text\x12H\n\x06tokens\x18\x07 \x01(\x0b\x32..stabilityai.platformapis.generation.v1.TokensH\x00R\x06tokens\x12^\n\nclassifier\x18\x0b \x01(\x0b\x32<.stabilityai.platformapis.generation.v1.ClassifierParametersH\x00R\nclassifier\x12)\n\x06tensor\x18\x0e \x01(\x0b\x32\x0f.tensors.TensorH\x00R\x06tensor\x12\x14\n\x05index\x18\x08 \x01(\rR\x05index\x12Y\n\rfinish_reason\x18\t \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.FinishReasonR\x0c\x66inishReason\x12\x12\n\x04seed\x18\n \x01(\rR\x04seed\x12\x12\n\x04uuid\x18\x0c \x01(\tR\x04uuid\x12\x12\n\x04size\x18\r \x01(\x04R\x04sizeB\x06\n\x04\x64\x61taB\x08\n\x06_magic\"\\\n\x10PromptParameters\x12\x17\n\x04init\x18\x01 \x01(\x08H\x00R\x04init\x88\x01\x01\x12\x1b\n\x06weight\x18\x02 \x01(\x02H\x01R\x06weight\x88\x01\x01\x42\x07\n\x05_initB\t\n\x07_weight\"\xb0\x02\n\x06Prompt\x12]\n\nparameters\x18\x01 \x01(\x0b\x32\x38.stabilityai.platformapis.generation.v1.PromptParametersH\x01R\nparameters\x88\x01\x01\x12\x14\n\x04text\x18\x02 \x01(\tH\x00R\x04text\x12H\n\x06tokens\x18\x03 \x01(\x0b\x32..stabilityai.platformapis.generation.v1.TokensH\x00R\x06tokens\x12N\n\x08\x61rtifact\x18\x04 \x01(\x0b\x32\x30.stabilityai.platformapis.generation.v1.ArtifactH\x00R\x08\x61rtifactB\x08\n\x06promptB\r\n\x0b_parameters\"\xb9\x03\n\x11SamplerParameters\x12\x15\n\x03\x65ta\x18\x01 \x01(\x02H\x00R\x03\x65ta\x88\x01\x01\x12*\n\x0esampling_steps\x18\x02 \x01(\x04H\x01R\rsamplingSteps\x88\x01\x01\x12,\n\x0flatent_channels\x18\x03 \x01(\x04H\x02R\x0elatentChannels\x88\x01\x01\x12\x34\n\x13\x64ownsampling_factor\x18\x04 \x01(\x04H\x03R\x12\x64ownsamplingFactor\x88\x01\x01\x12 \n\tcfg_scale\x18\x05 \x01(\x02H\x04R\x08\x63\x66gScale\x88\x01\x01\x12-\n\x10init_noise_scale\x18\x06 \x01(\x02H\x05R\x0einitNoiseScale\x88\x01\x01\x12-\n\x10step_noise_scale\x18\x07 \x01(\x02H\x06R\x0estepNoiseScale\x88\x01\x01\x42\x06\n\x04_etaB\x11\n\x0f_sampling_stepsB\x12\n\x10_latent_channelsB\x16\n\x14_downsampling_factorB\x0c\n\n_cfg_scaleB\x13\n\x11_init_noise_scaleB\x13\n\x11_step_noise_scale\"\xca\x01\n\x15\x43onditionerParameters\x12\x33\n\x13vector_adjust_prior\x18\x01 \x01(\tH\x00R\x11vectorAdjustPrior\x88\x01\x01\x12T\n\x0b\x63onditioner\x18\x02 \x01(\x0b\x32-.stabilityai.platformapis.generation.v1.ModelH\x01R\x0b\x63onditioner\x88\x01\x01\x42\x16\n\x14_vector_adjust_priorB\x0e\n\x0c_conditioner\"}\n\x12ScheduleParameters\x12\x19\n\x05start\x18\x01 \x01(\x02H\x00R\x05start\x88\x01\x01\x12\x15\n\x03\x65nd\x18\x02 \x01(\x02H\x01R\x03\x65nd\x88\x01\x01\x12\x19\n\x05value\x18\x03 \x01(\x02H\x02R\x05value\x88\x01\x01\x42\x08\n\x06_startB\x06\n\x04_endB\x08\n\x06_value\"\xea\x02\n\rStepParameter\x12\x1f\n\x0bscaled_step\x18\x01 \x01(\x02R\nscaledStep\x12X\n\x07sampler\x18\x02 \x01(\x0b\x32\x39.stabilityai.platformapis.generation.v1.SamplerParametersH\x00R\x07sampler\x88\x01\x01\x12[\n\x08schedule\x18\x03 \x01(\x0b\x32:.stabilityai.platformapis.generation.v1.ScheduleParametersH\x01R\x08schedule\x88\x01\x01\x12[\n\x08guidance\x18\x04 \x01(\x0b\x32:.stabilityai.platformapis.generation.v1.GuidanceParametersH\x02R\x08guidance\x88\x01\x01\x42\n\n\x08_samplerB\x0b\n\t_scheduleB\x0b\n\t_guidance\"\xf9\x01\n\x05Model\x12]\n\x0c\x61rchitecture\x18\x01 \x01(\x0e\x32\x39.stabilityai.platformapis.generation.v1.ModelArchitectureR\x0c\x61rchitecture\x12\x1c\n\tpublisher\x18\x02 \x01(\tR\tpublisher\x12\x18\n\x07\x64\x61taset\x18\x03 \x01(\tR\x07\x64\x61taset\x12\x18\n\x07version\x18\x04 \x01(\x02R\x07version\x12)\n\x10semantic_version\x18\x05 \x01(\tR\x0fsemanticVersion\x12\x14\n\x05\x61lias\x18\x06 \x01(\tR\x05\x61lias\"\x82\x02\n\x10\x43utoutParameters\x12R\n\x07\x63utouts\x18\x01 \x03(\x0b\x32\x38.stabilityai.platformapis.generation.v1.CutoutParametersR\x07\x63utouts\x12\x19\n\x05\x63ount\x18\x02 \x01(\rH\x00R\x05\x63ount\x88\x01\x01\x12\x17\n\x04gray\x18\x03 \x01(\x02H\x01R\x04gray\x88\x01\x01\x12\x17\n\x04\x62lur\x18\x04 \x01(\x02H\x02R\x04\x62lur\x88\x01\x01\x12\"\n\nsize_power\x18\x05 \x01(\x02H\x03R\tsizePower\x88\x01\x01\x42\x08\n\x06_countB\x07\n\x05_grayB\x07\n\x05_blurB\r\n\x0b_size_power\"N\n\x1aGuidanceScheduleParameters\x12\x1a\n\x08\x64uration\x18\x01 \x01(\x02R\x08\x64uration\x12\x14\n\x05value\x18\x02 \x01(\x02R\x05value\"\xc8\x03\n\x1aGuidanceInstanceParameters\x12\x45\n\x06models\x18\x02 \x03(\x0b\x32-.stabilityai.platformapis.generation.v1.ModelR\x06models\x12\x30\n\x11guidance_strength\x18\x03 \x01(\x02H\x00R\x10guidanceStrength\x88\x01\x01\x12^\n\x08schedule\x18\x04 \x03(\x0b\x32\x42.stabilityai.platformapis.generation.v1.GuidanceScheduleParametersR\x08schedule\x12W\n\x07\x63utouts\x18\x05 \x01(\x0b\x32\x38.stabilityai.platformapis.generation.v1.CutoutParametersH\x01R\x07\x63utouts\x88\x01\x01\x12K\n\x06prompt\x18\x06 \x01(\x0b\x32..stabilityai.platformapis.generation.v1.PromptH\x02R\x06prompt\x88\x01\x01\x42\x14\n\x12_guidance_strengthB\n\n\x08_cutoutsB\t\n\x07_prompt\"\xd7\x01\n\x12GuidanceParameters\x12_\n\x0fguidance_preset\x18\x01 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.GuidancePresetR\x0eguidancePreset\x12`\n\tinstances\x18\x02 \x03(\x0b\x32\x42.stabilityai.platformapis.generation.v1.GuidanceInstanceParametersR\tinstances\"\xc1\x01\n\rTransformType\x12X\n\tdiffusion\x18\x01 \x01(\x0e\x32\x38.stabilityai.platformapis.generation.v1.DiffusionSamplerH\x00R\tdiffusion\x12N\n\x08upscaler\x18\x02 \x01(\x0e\x32\x30.stabilityai.platformapis.generation.v1.UpscalerH\x00R\x08upscalerB\x06\n\x04type\"\x9d\x05\n\x0fImageParameters\x12\x1b\n\x06height\x18\x01 \x01(\x04H\x00R\x06height\x88\x01\x01\x12\x19\n\x05width\x18\x02 \x01(\x04H\x01R\x05width\x88\x01\x01\x12\x12\n\x04seed\x18\x03 \x03(\rR\x04seed\x12\x1d\n\x07samples\x18\x04 \x01(\x04H\x02R\x07samples\x88\x01\x01\x12\x19\n\x05steps\x18\x05 \x01(\x04H\x03R\x05steps\x88\x01\x01\x12X\n\ttransform\x18\x06 \x01(\x0b\x32\x35.stabilityai.platformapis.generation.v1.TransformTypeH\x04R\ttransform\x88\x01\x01\x12U\n\nparameters\x18\x07 \x03(\x0b\x32\x35.stabilityai.platformapis.generation.v1.StepParameterR\nparameters\x12\x65\n\x10masked_area_init\x18\x08 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.MaskedAreaInitH\x05R\x0emaskedAreaInit\x88\x01\x01\x12^\n\rweight_method\x18\t \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.WeightMethodH\x06R\x0cweightMethod\x88\x01\x01\x12\x1f\n\x08quantize\x18\n \x01(\x08H\x07R\x08quantize\x88\x01\x01\x42\t\n\x07_heightB\x08\n\x06_widthB\n\n\x08_samplesB\x08\n\x06_stepsB\x0c\n\n_transformB\x13\n\x11_masked_area_initB\x10\n\x0e_weight_methodB\x0b\n\t_quantize\"^\n\x11\x43lassifierConcept\x12\x18\n\x07\x63oncept\x18\x01 \x01(\tR\x07\x63oncept\x12!\n\tthreshold\x18\x02 \x01(\x02H\x00R\tthreshold\x88\x01\x01\x42\x0c\n\n_threshold\"\x85\x03\n\x12\x43lassifierCategory\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12U\n\x08\x63oncepts\x18\x02 \x03(\x0b\x32\x39.stabilityai.platformapis.generation.v1.ClassifierConceptR\x08\x63oncepts\x12#\n\nadjustment\x18\x03 \x01(\x02H\x00R\nadjustment\x88\x01\x01\x12K\n\x06\x61\x63tion\x18\x04 \x01(\x0e\x32..stabilityai.platformapis.generation.v1.ActionH\x01R\x06\x61\x63tion\x88\x01\x01\x12\x64\n\x0f\x63lassifier_mode\x18\x05 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.ClassifierModeH\x02R\x0e\x63lassifierMode\x88\x01\x01\x42\r\n\x0b_adjustmentB\t\n\x07_actionB\x12\n\x10_classifier_mode\"\xba\x02\n\x14\x43lassifierParameters\x12Z\n\ncategories\x18\x01 \x03(\x0b\x32:.stabilityai.platformapis.generation.v1.ClassifierCategoryR\ncategories\x12T\n\x07\x65xceeds\x18\x02 \x03(\x0b\x32:.stabilityai.platformapis.generation.v1.ClassifierCategoryR\x07\x65xceeds\x12\\\n\x0frealized_action\x18\x03 \x01(\x0e\x32..stabilityai.platformapis.generation.v1.ActionH\x00R\x0erealizedAction\x88\x01\x01\x42\x12\n\x10_realized_action\"\x8a\x01\n\x15InterpolateParameters\x12\x16\n\x06ratios\x18\x01 \x03(\x02R\x06ratios\x12P\n\x04mode\x18\x02 \x01(\x0e\x32\x37.stabilityai.platformapis.generation.v1.InterpolateModeH\x00R\x04mode\x88\x01\x01\x42\x07\n\x05_mode\"\xbb\x04\n\x14TransformColorAdjust\x12#\n\nbrightness\x18\x01 \x01(\x02H\x00R\nbrightness\x88\x01\x01\x12\x1f\n\x08\x63ontrast\x18\x02 \x01(\x02H\x01R\x08\x63ontrast\x88\x01\x01\x12\x15\n\x03hue\x18\x03 \x01(\x02H\x02R\x03hue\x88\x01\x01\x12#\n\nsaturation\x18\x04 \x01(\x02H\x03R\nsaturation\x88\x01\x01\x12!\n\tlightness\x18\x05 \x01(\x02H\x04R\tlightness\x88\x01\x01\x12V\n\x0bmatch_image\x18\x06 \x01(\x0b\x32\x30.stabilityai.platformapis.generation.v1.ArtifactH\x05R\nmatchImage\x88\x01\x01\x12Z\n\nmatch_mode\x18\x07 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.ColorMatchModeH\x06R\tmatchMode\x88\x01\x01\x12&\n\x0cnoise_amount\x18\x08 \x01(\x02H\x07R\x0bnoiseAmount\x88\x01\x01\x12\"\n\nnoise_seed\x18\t \x01(\rH\x08R\tnoiseSeed\x88\x01\x01\x42\r\n\x0b_brightnessB\x0b\n\t_contrastB\x06\n\x04_hueB\r\n\x0b_saturationB\x0c\n\n_lightnessB\x0e\n\x0c_match_imageB\r\n\x0b_match_modeB\x0f\n\r_noise_amountB\r\n\x0b_noise_seed\"\xae\x01\n\x12TransformDepthCalc\x12&\n\x0c\x62lend_weight\x18\x01 \x01(\x02H\x00R\x0b\x62lendWeight\x88\x01\x01\x12$\n\x0b\x62lur_radius\x18\x02 \x01(\rH\x01R\nblurRadius\x88\x01\x01\x12\x1d\n\x07reverse\x18\x03 \x01(\x08H\x02R\x07reverse\x88\x01\x01\x42\x0f\n\r_blend_weightB\x0e\n\x0c_blur_radiusB\n\n\x08_reverse\")\n\x0fTransformMatrix\x12\x16\n\x04\x64\x61ta\x18\x01 \x03(\x02\x42\x02\x10\x01R\x04\x64\x61ta\"\xa0\x03\n\x11TransformResample\x12S\n\x0b\x62order_mode\x18\x01 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.BorderModeR\nborderMode\x12U\n\ttransform\x18\x02 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.TransformMatrixR\ttransform\x12\x63\n\x0eprev_transform\x18\x03 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.TransformMatrixH\x00R\rprevTransform\x88\x01\x01\x12\"\n\ndepth_warp\x18\x04 \x01(\x02H\x01R\tdepthWarp\x88\x01\x01\x12$\n\x0b\x65xport_mask\x18\x05 \x01(\x08H\x02R\nexportMask\x88\x01\x01\x42\x11\n\x0f_prev_transformB\r\n\x0b_depth_warpB\x0e\n\x0c_export_mask\"\xc2\x01\n\x10\x43\x61meraParameters\x12S\n\x0b\x63\x61mera_type\x18\x01 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.CameraTypeR\ncameraType\x12\x1d\n\nnear_plane\x18\x02 \x01(\x02R\tnearPlane\x12\x1b\n\tfar_plane\x18\x03 \x01(\x02R\x08\x66\x61rPlane\x12\x15\n\x03\x66ov\x18\x04 \x01(\x02H\x00R\x03\x66ov\x88\x01\x01\x42\x06\n\x04_fov\"\xf2\x02\n\x13TransformCameraPose\x12h\n\x14world_to_view_matrix\x18\x01 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.TransformMatrixR\x11worldToViewMatrix\x12\x65\n\x11\x63\x61mera_parameters\x18\x02 \x01(\x0b\x32\x38.stabilityai.platformapis.generation.v1.CameraParametersR\x10\x63\x61meraParameters\x12\x1d\n\ndo_prefill\x18\x05 \x01(\x08R\tdoPrefill\x12S\n\x0brender_mode\x18\x08 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.RenderModeR\nrenderModeJ\x04\x08\x03\x10\x04J\x04\x08\x04\x10\x05J\x04\x08\x06\x10\x07J\x04\x08\x07\x10\x08\"\x9b\x03\n\x13TransformParameters\x12\x61\n\x0c\x63olor_adjust\x18\x02 \x01(\x0b\x32<.stabilityai.platformapis.generation.v1.TransformColorAdjustH\x00R\x0b\x63olorAdjust\x12[\n\ndepth_calc\x18\x04 \x01(\x0b\x32:.stabilityai.platformapis.generation.v1.TransformDepthCalcH\x00R\tdepthCalc\x12W\n\x08resample\x18\x05 \x01(\x0b\x32\x39.stabilityai.platformapis.generation.v1.TransformResampleH\x00R\x08resample\x12^\n\x0b\x63\x61mera_pose\x18\x06 \x01(\x0b\x32;.stabilityai.platformapis.generation.v1.TransformCameraPoseH\x00R\ncameraPoseB\x0b\n\ttransform\"\xc1\x01\n\x0f\x41ssetParameters\x12K\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32\x33.stabilityai.platformapis.generation.v1.AssetActionR\x06\x61\x63tion\x12\x1d\n\nproject_id\x18\x02 \x01(\tR\tprojectId\x12\x42\n\x03use\x18\x03 \x01(\x0e\x32\x30.stabilityai.platformapis.generation.v1.AssetUseR\x03use\"\xb4\x01\n\nAnswerMeta\x12\x1a\n\x06gpu_id\x18\x01 \x01(\tH\x00R\x05gpuId\x88\x01\x01\x12\x1a\n\x06\x63pu_id\x18\x02 \x01(\tH\x01R\x05\x63puId\x88\x01\x01\x12\x1c\n\x07node_id\x18\x03 \x01(\tH\x02R\x06nodeId\x88\x01\x01\x12 \n\tengine_id\x18\x04 \x01(\tH\x03R\x08\x65ngineId\x88\x01\x01\x42\t\n\x07_gpu_idB\t\n\x07_cpu_idB\n\n\x08_node_idB\x0c\n\n_engine_id\"\xa0\x02\n\x06\x41nswer\x12\x1b\n\tanswer_id\x18\x01 \x01(\tR\x08\x61nswerId\x12\x1d\n\nrequest_id\x18\x02 \x01(\tR\trequestId\x12\x1a\n\x08received\x18\x03 \x01(\x04R\x08received\x12\x18\n\x07\x63reated\x18\x04 \x01(\x04R\x07\x63reated\x12K\n\x04meta\x18\x06 \x01(\x0b\x32\x32.stabilityai.platformapis.generation.v1.AnswerMetaH\x00R\x04meta\x88\x01\x01\x12N\n\tartifacts\x18\x07 \x03(\x0b\x32\x30.stabilityai.platformapis.generation.v1.ArtifactR\tartifactsB\x07\n\x05_meta\"r\n\x0b\x41nswerBatch\x12\x19\n\x08\x62\x61tch_id\x18\x01 \x01(\tR\x07\x62\x61tchId\x12H\n\x07\x61nswers\x18\x02 \x03(\x0b\x32..stabilityai.platformapis.generation.v1.AnswerR\x07\x61nswers\"\xfa\x06\n\x07Request\x12\x1b\n\tengine_id\x18\x01 \x01(\tR\x08\x65ngineId\x12\x1d\n\nrequest_id\x18\x02 \x01(\tR\trequestId\x12[\n\x0erequested_type\x18\x03 \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.ArtifactTypeR\rrequestedType\x12\x46\n\x06prompt\x18\x04 \x03(\x0b\x32..stabilityai.platformapis.generation.v1.PromptR\x06prompt\x12O\n\x05image\x18\x05 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.ImageParametersH\x00R\x05image\x12^\n\nclassifier\x18\x07 \x01(\x0b\x32<.stabilityai.platformapis.generation.v1.ClassifierParametersH\x00R\nclassifier\x12O\n\x05\x61sset\x18\x08 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.AssetParametersH\x00R\x05\x61sset\x12\x61\n\x0binterpolate\x18\x0b \x01(\x0b\x32=.stabilityai.platformapis.generation.v1.InterpolateParametersH\x00R\x0binterpolate\x12[\n\ttransform\x18\x0c \x01(\x0b\x32;.stabilityai.platformapis.generation.v1.TransformParametersH\x00R\ttransform\x12\x64\n\x0b\x63onditioner\x18\x06 \x01(\x0b\x32=.stabilityai.platformapis.generation.v1.ConditionerParametersH\x01R\x0b\x63onditioner\x88\x01\x01\x12\x35\n\x06\x65xtras\x18\xff\x0f \x01(\x0b\x32\x17.google.protobuf.StructH\x02R\x06\x65xtras\x88\x01\x01\x42\x08\n\x06paramsB\x0e\n\x0c_conditionerB\t\n\x07_extrasJ\x04\x08\t\x10\nJ\x04\x08\n\x10\x0b\"\xcd\x01\n\x08OnStatus\x12L\n\x06reason\x18\x01 \x03(\x0e\x32\x34.stabilityai.platformapis.generation.v1.FinishReasonR\x06reason\x12\x1b\n\x06target\x18\x02 \x01(\tH\x00R\x06target\x88\x01\x01\x12K\n\x06\x61\x63tion\x18\x03 \x03(\x0e\x32\x33.stabilityai.platformapis.generation.v1.StageActionR\x06\x61\x63tionB\t\n\x07_target\"\xb1\x01\n\x05Stage\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12I\n\x07request\x18\x02 \x01(\x0b\x32/.stabilityai.platformapis.generation.v1.RequestR\x07request\x12M\n\ton_status\x18\x03 \x03(\x0b\x32\x30.stabilityai.platformapis.generation.v1.OnStatusR\x08onStatus\"r\n\x0c\x43hainRequest\x12\x1d\n\nrequest_id\x18\x01 \x01(\tR\trequestId\x12\x43\n\x05stage\x18\x02 \x03(\x0b\x32-.stabilityai.platformapis.generation.v1.StageR\x05stage*E\n\x0c\x46inishReason\x12\x08\n\x04NULL\x10\x00\x12\n\n\x06LENGTH\x10\x01\x12\x08\n\x04STOP\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\n\n\x06\x46ILTER\x10\x04*\xf8\x01\n\x0c\x41rtifactType\x12\x11\n\rARTIFACT_NONE\x10\x00\x12\x12\n\x0e\x41RTIFACT_IMAGE\x10\x01\x12\x12\n\x0e\x41RTIFACT_VIDEO\x10\x02\x12\x11\n\rARTIFACT_TEXT\x10\x03\x12\x13\n\x0f\x41RTIFACT_TOKENS\x10\x04\x12\x16\n\x12\x41RTIFACT_EMBEDDING\x10\x05\x12\x1c\n\x18\x41RTIFACT_CLASSIFICATIONS\x10\x06\x12\x11\n\rARTIFACT_MASK\x10\x07\x12\x13\n\x0f\x41RTIFACT_LATENT\x10\x08\x12\x13\n\x0f\x41RTIFACT_TENSOR\x10\t\x12\x12\n\x0e\x41RTIFACT_DEPTH\x10\n*g\n\x0eMaskedAreaInit\x12\x19\n\x15MASKED_AREA_INIT_ZERO\x10\x00\x12\x1b\n\x17MASKED_AREA_INIT_RANDOM\x10\x01\x12\x1d\n\x19MASKED_AREA_INIT_ORIGINAL\x10\x02*5\n\x0cWeightMethod\x12\x10\n\x0cTEXT_ENCODER\x10\x00\x12\x13\n\x0f\x43ROSS_ATTENTION\x10\x01*\x98\x02\n\x10\x44iffusionSampler\x12\x10\n\x0cSAMPLER_DDIM\x10\x00\x12\x10\n\x0cSAMPLER_DDPM\x10\x01\x12\x13\n\x0fSAMPLER_K_EULER\x10\x02\x12\x1d\n\x19SAMPLER_K_EULER_ANCESTRAL\x10\x03\x12\x12\n\x0eSAMPLER_K_HEUN\x10\x04\x12\x13\n\x0fSAMPLER_K_DPM_2\x10\x05\x12\x1d\n\x19SAMPLER_K_DPM_2_ANCESTRAL\x10\x06\x12\x11\n\rSAMPLER_K_LMS\x10\x07\x12 \n\x1cSAMPLER_K_DPMPP_2S_ANCESTRAL\x10\x08\x12\x16\n\x12SAMPLER_K_DPMPP_2M\x10\t\x12\x17\n\x13SAMPLER_K_DPMPP_SDE\x10\n*F\n\x08Upscaler\x12\x10\n\x0cUPSCALER_RGB\x10\x00\x12\x13\n\x0fUPSCALER_GFPGAN\x10\x01\x12\x13\n\x0fUPSCALER_ESRGAN\x10\x02*\xd8\x01\n\x0eGuidancePreset\x12\x18\n\x14GUIDANCE_PRESET_NONE\x10\x00\x12\x1a\n\x16GUIDANCE_PRESET_SIMPLE\x10\x01\x12\x1d\n\x19GUIDANCE_PRESET_FAST_BLUE\x10\x02\x12\x1e\n\x1aGUIDANCE_PRESET_FAST_GREEN\x10\x03\x12\x18\n\x14GUIDANCE_PRESET_SLOW\x10\x04\x12\x1a\n\x16GUIDANCE_PRESET_SLOWER\x10\x05\x12\x1b\n\x17GUIDANCE_PRESET_SLOWEST\x10\x06*\x91\x01\n\x11ModelArchitecture\x12\x1b\n\x17MODEL_ARCHITECTURE_NONE\x10\x00\x12\x1f\n\x1bMODEL_ARCHITECTURE_CLIP_VIT\x10\x01\x12\"\n\x1eMODEL_ARCHITECTURE_CLIP_RESNET\x10\x02\x12\x1a\n\x16MODEL_ARCHITECTURE_LDM\x10\x03*\xa2\x01\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_PASSTHROUGH\x10\x00\x12\x1f\n\x1b\x41\x43TION_REGENERATE_DUPLICATE\x10\x01\x12\x15\n\x11\x41\x43TION_REGENERATE\x10\x02\x12\x1e\n\x1a\x41\x43TION_OBFUSCATE_DUPLICATE\x10\x03\x12\x14\n\x10\x41\x43TION_OBFUSCATE\x10\x04\x12\x12\n\x0e\x41\x43TION_DISCARD\x10\x05*D\n\x0e\x43lassifierMode\x12\x17\n\x13\x43LSFR_MODE_ZEROSHOT\x10\x00\x12\x19\n\x15\x43LSFR_MODE_MULTICLASS\x10\x01*\x8c\x01\n\x0fInterpolateMode\x12\x16\n\x12INTERPOLATE_LINEAR\x10\x00\x12\x14\n\x10INTERPOLATE_RIFE\x10\x01\x12\x1a\n\x16INTERPOLATE_VAE_LINEAR\x10\x02\x12\x19\n\x15INTERPOLATE_VAE_SLERP\x10\x03\x12\x14\n\x10INTERPOLATE_FILM\x10\x04*l\n\nBorderMode\x12\x12\n\x0e\x42ORDER_REFLECT\x10\x00\x12\x14\n\x10\x42ORDER_REPLICATE\x10\x01\x12\x0f\n\x0b\x42ORDER_WRAP\x10\x02\x12\x0f\n\x0b\x42ORDER_ZERO\x10\x03\x12\x12\n\x0e\x42ORDER_PREFILL\x10\x04*O\n\x0e\x43olorMatchMode\x12\x13\n\x0f\x43OLOR_MATCH_HSV\x10\x00\x12\x13\n\x0f\x43OLOR_MATCH_LAB\x10\x01\x12\x13\n\x0f\x43OLOR_MATCH_RGB\x10\x02*=\n\nCameraType\x12\x16\n\x12\x43\x41MERA_PERSPECTIVE\x10\x00\x12\x17\n\x13\x43\x41MERA_ORTHOGRAPHIC\x10\x01*4\n\nRenderMode\x12\x0f\n\x0bRENDER_MESH\x10\x00\x12\x15\n\x11RENDER_POINTCLOUD\x10\x01*=\n\x0b\x41ssetAction\x12\r\n\tASSET_PUT\x10\x00\x12\r\n\tASSET_GET\x10\x01\x12\x10\n\x0c\x41SSET_DELETE\x10\x02*\x81\x01\n\x08\x41ssetUse\x12\x17\n\x13\x41SSET_USE_UNDEFINED\x10\x00\x12\x13\n\x0f\x41SSET_USE_INPUT\x10\x01\x12\x14\n\x10\x41SSET_USE_OUTPUT\x10\x02\x12\x1a\n\x16\x41SSET_USE_INTERMEDIATE\x10\x03\x12\x15\n\x11\x41SSET_USE_PROJECT\x10\x04*W\n\x0bStageAction\x12\x15\n\x11STAGE_ACTION_PASS\x10\x00\x12\x18\n\x14STAGE_ACTION_DISCARD\x10\x01\x12\x17\n\x13STAGE_ACTION_RETURN\x10\x02\x32\xff\x01\n\x11GenerationService\x12o\n\x08Generate\x12/.stabilityai.platformapis.generation.v1.Request\x1a..stabilityai.platformapis.generation.v1.Answer\"\x00\x30\x01\x12y\n\rChainGenerate\x12\x34.stabilityai.platformapis.generation.v1.ChainRequest\x1a..stabilityai.platformapis.generation.v1.Answer\"\x00\x30\x01\x42\xdf\x02\n*com.stabilityai.platformapis.generation.v1B\x0fGenerationProtoP\x01Zegithub.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/generation/v1;generationv1\xa2\x02\x03SPG\xaa\x02&Stabilityai.Platformapis.Generation.V1\xca\x02&Stabilityai\\Platformapis\\Generation\\V1\xe2\x02\x32Stabilityai\\Platformapis\\Generation\\V1\\GPBMetadata\xea\x02)Stabilityai::Platformapis::Generation::V1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'stabilityai.platformapis.generation.v1.generation_pb2', _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'stability_api.platform.generation.v1.generation_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n*com.stabilityai.platformapis.generation.v1B\017GenerationProtoP\001Zggithub.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/generation/v1;generationv1\242\002\003SPG\252\002&Stabilityai.Platformapis.Generation.V1\312\002&Stabilityai\\Platformapis\\Generation\\V1\342\0022Stabilityai\\Platformapis\\Generation\\V1\\GPBMetadata\352\002)Stabilityai::Platformapis::Generation::V1' + DESCRIPTOR._serialized_options = b'\n*com.stabilityai.platformapis.generation.v1B\017GenerationProtoP\001Zegithub.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/generation/v1;generationv1\242\002\003SPG\252\002&Stabilityai.Platformapis.Generation.V1\312\002&Stabilityai\\Platformapis\\Generation\\V1\342\0022Stabilityai\\Platformapis\\Generation\\V1\\GPBMetadata\352\002)Stabilityai::Platformapis::Generation::V1' _TRANSFORMMATRIX.fields_by_name['data']._options = None _TRANSFORMMATRIX.fields_by_name['data']._serialized_options = b'\020\001' _globals['_FINISHREASON']._serialized_start=9970 diff --git a/gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2.pyi b/gen/proto/py/stability_api/platform/generation/v1/generation_pb2.pyi similarity index 99% rename from gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2.pyi rename to gen/proto/py/stability_api/platform/generation/v1/generation_pb2.pyi index 809d91a..52506e0 100644 --- a/gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2.pyi +++ b/gen/proto/py/stability_api/platform/generation/v1/generation_pb2.pyi @@ -1,5 +1,5 @@ from google.protobuf import struct_pb2 as _struct_pb2 -from stabilityai.tensors import tensors_pb2 as _tensors_pb2 +from stability_api.tensors import tensors_pb2 as _tensors_pb2 from google.protobuf.internal import containers as _containers from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper from google.protobuf import descriptor as _descriptor diff --git a/gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2_grpc.py b/gen/proto/py/stability_api/platform/generation/v1/generation_pb2_grpc.py similarity index 65% rename from gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2_grpc.py rename to gen/proto/py/stability_api/platform/generation/v1/generation_pb2_grpc.py index 787d795..e034662 100644 --- a/gen/proto/py/stabilityai/platformapis/generation/v1/generation_pb2_grpc.py +++ b/gen/proto/py/stability_api/platform/generation/v1/generation_pb2_grpc.py @@ -2,7 +2,7 @@ """Client and server classes corresponding to protobuf-defined services.""" import grpc -from stabilityai.platformapis.generation.v1 import generation_pb2 as stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2 +from stability_api.platform.generation.v1 import generation_pb2 as stability__api_dot_platform_dot_generation_dot_v1_dot_generation__pb2 class GenerationServiceStub(object): @@ -19,13 +19,13 @@ def __init__(self, channel): """ self.Generate = channel.unary_stream( '/stabilityai.platformapis.generation.v1.GenerationService/Generate', - request_serializer=stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2.Request.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2.Answer.FromString, + request_serializer=stability__api_dot_platform_dot_generation_dot_v1_dot_generation__pb2.Request.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_generation_dot_v1_dot_generation__pb2.Answer.FromString, ) self.ChainGenerate = channel.unary_stream( '/stabilityai.platformapis.generation.v1.GenerationService/ChainGenerate', - request_serializer=stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2.ChainRequest.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2.Answer.FromString, + request_serializer=stability__api_dot_platform_dot_generation_dot_v1_dot_generation__pb2.ChainRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_generation_dot_v1_dot_generation__pb2.Answer.FromString, ) @@ -52,13 +52,13 @@ def add_GenerationServiceServicer_to_server(servicer, server): rpc_method_handlers = { 'Generate': grpc.unary_stream_rpc_method_handler( servicer.Generate, - request_deserializer=stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2.Request.FromString, - response_serializer=stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2.Answer.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_generation_dot_v1_dot_generation__pb2.Request.FromString, + response_serializer=stability__api_dot_platform_dot_generation_dot_v1_dot_generation__pb2.Answer.SerializeToString, ), 'ChainGenerate': grpc.unary_stream_rpc_method_handler( servicer.ChainGenerate, - request_deserializer=stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2.ChainRequest.FromString, - response_serializer=stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2.Answer.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_generation_dot_v1_dot_generation__pb2.ChainRequest.FromString, + response_serializer=stability__api_dot_platform_dot_generation_dot_v1_dot_generation__pb2.Answer.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( @@ -85,8 +85,8 @@ def Generate(request, timeout=None, metadata=None): return grpc.experimental.unary_stream(request, target, '/stabilityai.platformapis.generation.v1.GenerationService/Generate', - stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2.Request.SerializeToString, - stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2.Answer.FromString, + stability__api_dot_platform_dot_generation_dot_v1_dot_generation__pb2.Request.SerializeToString, + stability__api_dot_platform_dot_generation_dot_v1_dot_generation__pb2.Answer.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -102,7 +102,7 @@ def ChainGenerate(request, timeout=None, metadata=None): return grpc.experimental.unary_stream(request, target, '/stabilityai.platformapis.generation.v1.GenerationService/ChainGenerate', - stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2.ChainRequest.SerializeToString, - stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2.Answer.FromString, + stability__api_dot_platform_dot_generation_dot_v1_dot_generation__pb2.ChainRequest.SerializeToString, + stability__api_dot_platform_dot_generation_dot_v1_dot_generation__pb2.Answer.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/gen/proto/py/stability_api/platform/project/v1/project_pb2.py b/gen/proto/py/stability_api/platform/project/v1/project_pb2.py new file mode 100644 index 0000000..ab85964 --- /dev/null +++ b/gen/proto/py/stability_api/platform/project/v1/project_pb2.py @@ -0,0 +1,78 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: stability_api/platform/project/v1/project.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from stability_api.platform.generation.v1 import generation_pb2 as stability__api_dot_platform_dot_generation_dot_v1_dot_generation__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n/stability_api/platform/project/v1/project.proto\x12#stabilityai.platformapis.project.v1\x1a\x35stability_api/platform/generation/v1/generation.proto\"\xb3\x03\n\x0cProjectAsset\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x10\n\x03uri\x18\x02 \x01(\tR\x03uri\x12\x46\n\x03use\x18\x03 \x01(\x0e\x32\x34.stabilityai.platformapis.project.v1.ProjectAssetUseR\x03use\x12\x12\n\x04name\x18\x04 \x01(\tR\x04name\x12\x12\n\x04size\x18\x05 \x01(\x04R\x04size\x12\x1d\n\ncreated_at\x18\x06 \x01(\x04R\tcreatedAt\x12\x1d\n\nupdated_at\x18\x07 \x01(\x04R\tupdatedAt\x12I\n\x07request\x18\x08 \x01(\x0b\x32/.stabilityai.platformapis.generation.v1.RequestR\x07request\x12O\n\x04tags\x18\t \x03(\x0b\x32;.stabilityai.platformapis.project.v1.ProjectAsset.TagsEntryR\x04tags\x1a\x37\n\tTagsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xc6\x03\n\x07Project\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05title\x18\x02 \x01(\tR\x05title\x12\x19\n\x08owner_id\x18\x03 \x01(\tR\x07ownerId\x12J\n\x06\x61\x63\x63\x65ss\x18\x04 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectAccessR\x06\x61\x63\x63\x65ss\x12J\n\x06status\x18\x05 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectStatusR\x06status\x12\x12\n\x04size\x18\x06 \x01(\x04R\x04size\x12\x45\n\x04\x66ile\x18\x07 \x01(\x0b\x32\x31.stabilityai.platformapis.project.v1.ProjectAssetR\x04\x66ile\x12\x1d\n\ncreated_at\x18\x08 \x01(\x04R\tcreatedAt\x12\x1d\n\nupdated_at\x18\t \x01(\x04R\tupdatedAt\x12I\n\x06\x61ssets\x18\n \x03(\x0b\x32\x31.stabilityai.platformapis.project.v1.ProjectAssetR\x06\x61ssets\"\xc6\x02\n\x14\x43reateProjectRequest\x12\x14\n\x05title\x18\x01 \x01(\tR\x05title\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12J\n\x06\x61\x63\x63\x65ss\x18\x03 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectAccessR\x06\x61\x63\x63\x65ss\x12J\n\x06status\x18\x04 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectStatusR\x06status\x12J\n\x04\x66ile\x18\x05 \x01(\x0b\x32\x31.stabilityai.platformapis.project.v1.ProjectAssetH\x01R\x04\x66ile\x88\x01\x01\x42\x0b\n\t_owner_idB\x07\n\x05_file\"\x85\x03\n\x14UpdateProjectRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12\x19\n\x05title\x18\x03 \x01(\tH\x01R\x05title\x88\x01\x01\x12O\n\x06\x61\x63\x63\x65ss\x18\x04 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectAccessH\x02R\x06\x61\x63\x63\x65ss\x88\x01\x01\x12O\n\x06status\x18\x05 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectStatusH\x03R\x06status\x88\x01\x01\x12J\n\x04\x66ile\x18\x06 \x01(\x0b\x32\x31.stabilityai.platformapis.project.v1.ProjectAssetH\x04R\x04\x66ile\x88\x01\x01\x42\x0b\n\t_owner_idB\x08\n\x06_titleB\t\n\x07_accessB\t\n\x07_statusB\x07\n\x05_file\"A\n\x12ListProjectRequest\x12\x1e\n\x08owner_id\x18\x01 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x42\x0b\n\t_owner_id\"P\n\x11GetProjectRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x42\x0b\n\t_owner_id\"S\n\x14\x44\x65leteProjectRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x42\x0b\n\t_owner_id\"\x98\x04\n\x12QueryAssetsRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12\x19\n\x05since\x18\x03 \x01(\x04H\x01R\x05since\x88\x01\x01\x12\x19\n\x05until\x18\x04 \x01(\x04H\x02R\x05until\x88\x01\x01\x12\x19\n\x05limit\x18\x05 \x01(\x04H\x03R\x05limit\x88\x01\x01\x12 \n\tstart_key\x18\x06 \x01(\tH\x04R\x08startKey\x88\x01\x01\x12\x46\n\x03use\x18\x07 \x03(\x0e\x32\x34.stabilityai.platformapis.project.v1.ProjectAssetUseR\x03use\x12N\n\x08sort_dir\x18\x08 \x01(\x0e\x32\x33.stabilityai.platformapis.project.v1.ProjectSortDirR\x07sortDir\x12U\n\x04tags\x18\t \x03(\x0b\x32\x41.stabilityai.platformapis.project.v1.QueryAssetsRequest.TagsEntryR\x04tags\x1a\x37\n\tTagsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x0b\n\t_owner_idB\x08\n\x06_sinceB\x08\n\x06_untilB\x08\n\x06_limitB\x0c\n\n_start_key\"\x8d\x01\n\x13QueryAssetsResponse\x12I\n\x06\x61ssets\x18\x01 \x03(\x0b\x32\x31.stabilityai.platformapis.project.v1.ProjectAssetR\x06\x61ssets\x12\x1e\n\x08last_key\x18\x02 \x01(\tH\x00R\x07lastKey\x88\x01\x01\x42\x0b\n\t_last_key\"\xfa\x01\n\x10TagAssetsRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIds\x12S\n\x04tags\x18\x04 \x03(\x0b\x32?.stabilityai.platformapis.project.v1.TagAssetsRequest.TagsEntryR\x04tags\x1a\x37\n\tTagsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x0b\n\t_owner_id\"[\n\x11TagAssetsResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIds\"\x89\x01\n\x12UntagAssetsRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIds\x12\x19\n\x08tag_keys\x18\x04 \x03(\tR\x07tagKeysB\x0b\n\t_owner_id\"]\n\x13UntagAssetsResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIds\"o\n\x13\x44\x65leteAssetsRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIdsB\x0b\n\t_owner_id\"^\n\x14\x44\x65leteAssetsResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIds*F\n\rProjectAccess\x12\x1a\n\x16PROJECT_ACCESS_PRIVATE\x10\x00\x12\x19\n\x15PROJECT_ACCESS_PUBLIC\x10\x01*c\n\rProjectStatus\x12\x1b\n\x17PROJECT_STATUS_INACTIVE\x10\x00\x12\x19\n\x15PROJECT_STATUS_ACTIVE\x10\x01\x12\x1a\n\x16PROJECT_STATUS_DELETED\x10\x02*\xb0\x01\n\x0fProjectAssetUse\x12\x1f\n\x1bPROJECT_ASSET_USE_UNDEFINED\x10\x00\x12\x1b\n\x17PROJECT_ASSET_USE_INPUT\x10\x01\x12\x1c\n\x18PROJECT_ASSET_USE_OUTPUT\x10\x02\x12\"\n\x1ePROJECT_ASSET_USE_INTERMEDIATE\x10\x03\x12\x1d\n\x19PROJECT_ASSET_USE_PROJECT\x10\x04*g\n\x0eProjectSortDir\x12 \n\x1cPROJECT_SORT_DIR_UNSPECIFIED\x10\x00\x12\x18\n\x14PROJECT_SORT_DIR_ASC\x10\x01\x12\x19\n\x15PROJECT_SORT_DIR_DESC\x10\x02\x32\xe1\x08\n\x0eProjectService\x12s\n\x06\x43reate\x12\x39.stabilityai.platformapis.project.v1.CreateProjectRequest\x1a,.stabilityai.platformapis.project.v1.Project\"\x00\x12s\n\x06Update\x12\x39.stabilityai.platformapis.project.v1.UpdateProjectRequest\x1a,.stabilityai.platformapis.project.v1.Project\"\x00\x12q\n\x04List\x12\x37.stabilityai.platformapis.project.v1.ListProjectRequest\x1a,.stabilityai.platformapis.project.v1.Project\"\x00\x30\x01\x12m\n\x03Get\x12\x36.stabilityai.platformapis.project.v1.GetProjectRequest\x1a,.stabilityai.platformapis.project.v1.Project\"\x00\x12s\n\x06\x44\x65lete\x12\x39.stabilityai.platformapis.project.v1.DeleteProjectRequest\x1a,.stabilityai.platformapis.project.v1.Project\"\x00\x12|\n\tTagAssets\x12\x35.stabilityai.platformapis.project.v1.TagAssetsRequest\x1a\x36.stabilityai.platformapis.project.v1.TagAssetsResponse\"\x00\x12\x82\x01\n\x0bUntagAssets\x12\x37.stabilityai.platformapis.project.v1.UntagAssetsRequest\x1a\x38.stabilityai.platformapis.project.v1.UntagAssetsResponse\"\x00\x12\x82\x01\n\x0bQueryAssets\x12\x37.stabilityai.platformapis.project.v1.QueryAssetsRequest\x1a\x38.stabilityai.platformapis.project.v1.QueryAssetsResponse\"\x00\x12\x85\x01\n\x0c\x44\x65leteAssets\x12\x38.stabilityai.platformapis.project.v1.DeleteAssetsRequest\x1a\x39.stabilityai.platformapis.project.v1.DeleteAssetsResponse\"\x00\x42\xc7\x02\n\'com.stabilityai.platformapis.project.v1B\x0cProjectProtoP\x01Z_github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/project/v1;projectv1\xa2\x02\x03SPP\xaa\x02#Stabilityai.Platformapis.Project.V1\xca\x02#Stabilityai\\Platformapis\\Project\\V1\xe2\x02/Stabilityai\\Platformapis\\Project\\V1\\GPBMetadata\xea\x02&Stabilityai::Platformapis::Project::V1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'stability_api.platform.project.v1.project_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\'com.stabilityai.platformapis.project.v1B\014ProjectProtoP\001Z_github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/project/v1;projectv1\242\002\003SPP\252\002#Stabilityai.Platformapis.Project.V1\312\002#Stabilityai\\Platformapis\\Project\\V1\342\002/Stabilityai\\Platformapis\\Project\\V1\\GPBMetadata\352\002&Stabilityai::Platformapis::Project::V1' + _PROJECTASSET_TAGSENTRY._options = None + _PROJECTASSET_TAGSENTRY._serialized_options = b'8\001' + _QUERYASSETSREQUEST_TAGSENTRY._options = None + _QUERYASSETSREQUEST_TAGSENTRY._serialized_options = b'8\001' + _TAGASSETSREQUEST_TAGSENTRY._options = None + _TAGASSETSREQUEST_TAGSENTRY._serialized_options = b'8\001' + _globals['_PROJECTACCESS']._serialized_start=3466 + _globals['_PROJECTACCESS']._serialized_end=3536 + _globals['_PROJECTSTATUS']._serialized_start=3538 + _globals['_PROJECTSTATUS']._serialized_end=3637 + _globals['_PROJECTASSETUSE']._serialized_start=3640 + _globals['_PROJECTASSETUSE']._serialized_end=3816 + _globals['_PROJECTSORTDIR']._serialized_start=3818 + _globals['_PROJECTSORTDIR']._serialized_end=3921 + _globals['_PROJECTASSET']._serialized_start=144 + _globals['_PROJECTASSET']._serialized_end=579 + _globals['_PROJECTASSET_TAGSENTRY']._serialized_start=524 + _globals['_PROJECTASSET_TAGSENTRY']._serialized_end=579 + _globals['_PROJECT']._serialized_start=582 + _globals['_PROJECT']._serialized_end=1036 + _globals['_CREATEPROJECTREQUEST']._serialized_start=1039 + _globals['_CREATEPROJECTREQUEST']._serialized_end=1365 + _globals['_UPDATEPROJECTREQUEST']._serialized_start=1368 + _globals['_UPDATEPROJECTREQUEST']._serialized_end=1757 + _globals['_LISTPROJECTREQUEST']._serialized_start=1759 + _globals['_LISTPROJECTREQUEST']._serialized_end=1824 + _globals['_GETPROJECTREQUEST']._serialized_start=1826 + _globals['_GETPROJECTREQUEST']._serialized_end=1906 + _globals['_DELETEPROJECTREQUEST']._serialized_start=1908 + _globals['_DELETEPROJECTREQUEST']._serialized_end=1991 + _globals['_QUERYASSETSREQUEST']._serialized_start=1994 + _globals['_QUERYASSETSREQUEST']._serialized_end=2530 + _globals['_QUERYASSETSREQUEST_TAGSENTRY']._serialized_start=524 + _globals['_QUERYASSETSREQUEST_TAGSENTRY']._serialized_end=579 + _globals['_QUERYASSETSRESPONSE']._serialized_start=2533 + _globals['_QUERYASSETSRESPONSE']._serialized_end=2674 + _globals['_TAGASSETSREQUEST']._serialized_start=2677 + _globals['_TAGASSETSREQUEST']._serialized_end=2927 + _globals['_TAGASSETSREQUEST_TAGSENTRY']._serialized_start=524 + _globals['_TAGASSETSREQUEST_TAGSENTRY']._serialized_end=579 + _globals['_TAGASSETSRESPONSE']._serialized_start=2929 + _globals['_TAGASSETSRESPONSE']._serialized_end=3020 + _globals['_UNTAGASSETSREQUEST']._serialized_start=3023 + _globals['_UNTAGASSETSREQUEST']._serialized_end=3160 + _globals['_UNTAGASSETSRESPONSE']._serialized_start=3162 + _globals['_UNTAGASSETSRESPONSE']._serialized_end=3255 + _globals['_DELETEASSETSREQUEST']._serialized_start=3257 + _globals['_DELETEASSETSREQUEST']._serialized_end=3368 + _globals['_DELETEASSETSRESPONSE']._serialized_start=3370 + _globals['_DELETEASSETSRESPONSE']._serialized_end=3464 + _globals['_PROJECTSERVICE']._serialized_start=3924 + _globals['_PROJECTSERVICE']._serialized_end=5045 +# @@protoc_insertion_point(module_scope) diff --git a/gen/proto/py/stabilityai/platformapis/project/v1/project_pb2.pyi b/gen/proto/py/stability_api/platform/project/v1/project_pb2.pyi similarity index 99% rename from gen/proto/py/stabilityai/platformapis/project/v1/project_pb2.pyi rename to gen/proto/py/stability_api/platform/project/v1/project_pb2.pyi index a9bb93a..510aa9c 100644 --- a/gen/proto/py/stabilityai/platformapis/project/v1/project_pb2.pyi +++ b/gen/proto/py/stability_api/platform/project/v1/project_pb2.pyi @@ -1,4 +1,4 @@ -from stabilityai.platformapis.generation.v1 import generation_pb2 as _generation_pb2 +from stability_api.platform.generation.v1 import generation_pb2 as _generation_pb2 from google.protobuf.internal import containers as _containers from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper from google.protobuf import descriptor as _descriptor diff --git a/gen/proto/py/stabilityai/platformapis/project/v1/project_pb2_grpc.py b/gen/proto/py/stability_api/platform/project/v1/project_pb2_grpc.py similarity index 61% rename from gen/proto/py/stabilityai/platformapis/project/v1/project_pb2_grpc.py rename to gen/proto/py/stability_api/platform/project/v1/project_pb2_grpc.py index 6046941..141a11c 100644 --- a/gen/proto/py/stabilityai/platformapis/project/v1/project_pb2_grpc.py +++ b/gen/proto/py/stability_api/platform/project/v1/project_pb2_grpc.py @@ -2,7 +2,7 @@ """Client and server classes corresponding to protobuf-defined services.""" import grpc -from stabilityai.platformapis.project.v1 import project_pb2 as stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2 +from stability_api.platform.project.v1 import project_pb2 as stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2 class ProjectServiceStub(object): @@ -19,48 +19,48 @@ def __init__(self, channel): """ self.Create = channel.unary_unary( '/stabilityai.platformapis.project.v1.ProjectService/Create', - request_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.CreateProjectRequest.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.FromString, + request_serializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.CreateProjectRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.Project.FromString, ) self.Update = channel.unary_unary( '/stabilityai.platformapis.project.v1.ProjectService/Update', - request_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.UpdateProjectRequest.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.FromString, + request_serializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.UpdateProjectRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.Project.FromString, ) self.List = channel.unary_stream( '/stabilityai.platformapis.project.v1.ProjectService/List', - request_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.ListProjectRequest.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.FromString, + request_serializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.ListProjectRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.Project.FromString, ) self.Get = channel.unary_unary( '/stabilityai.platformapis.project.v1.ProjectService/Get', - request_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.GetProjectRequest.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.FromString, + request_serializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.GetProjectRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.Project.FromString, ) self.Delete = channel.unary_unary( '/stabilityai.platformapis.project.v1.ProjectService/Delete', - request_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.DeleteProjectRequest.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.FromString, + request_serializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.DeleteProjectRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.Project.FromString, ) self.TagAssets = channel.unary_unary( '/stabilityai.platformapis.project.v1.ProjectService/TagAssets', - request_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.TagAssetsRequest.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.TagAssetsResponse.FromString, + request_serializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.TagAssetsRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.TagAssetsResponse.FromString, ) self.UntagAssets = channel.unary_unary( '/stabilityai.platformapis.project.v1.ProjectService/UntagAssets', - request_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.UntagAssetsRequest.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.UntagAssetsResponse.FromString, + request_serializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.UntagAssetsRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.UntagAssetsResponse.FromString, ) self.QueryAssets = channel.unary_unary( '/stabilityai.platformapis.project.v1.ProjectService/QueryAssets', - request_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.QueryAssetsRequest.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.QueryAssetsResponse.FromString, + request_serializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.QueryAssetsRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.QueryAssetsResponse.FromString, ) self.DeleteAssets = channel.unary_unary( '/stabilityai.platformapis.project.v1.ProjectService/DeleteAssets', - request_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.DeleteAssetsRequest.SerializeToString, - response_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.DeleteAssetsResponse.FromString, + request_serializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.DeleteAssetsRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.DeleteAssetsResponse.FromString, ) @@ -137,48 +137,48 @@ def add_ProjectServiceServicer_to_server(servicer, server): rpc_method_handlers = { 'Create': grpc.unary_unary_rpc_method_handler( servicer.Create, - request_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.CreateProjectRequest.FromString, - response_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.CreateProjectRequest.FromString, + response_serializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.Project.SerializeToString, ), 'Update': grpc.unary_unary_rpc_method_handler( servicer.Update, - request_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.UpdateProjectRequest.FromString, - response_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.UpdateProjectRequest.FromString, + response_serializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.Project.SerializeToString, ), 'List': grpc.unary_stream_rpc_method_handler( servicer.List, - request_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.ListProjectRequest.FromString, - response_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.ListProjectRequest.FromString, + response_serializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.Project.SerializeToString, ), 'Get': grpc.unary_unary_rpc_method_handler( servicer.Get, - request_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.GetProjectRequest.FromString, - response_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.GetProjectRequest.FromString, + response_serializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.Project.SerializeToString, ), 'Delete': grpc.unary_unary_rpc_method_handler( servicer.Delete, - request_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.DeleteProjectRequest.FromString, - response_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.DeleteProjectRequest.FromString, + response_serializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.Project.SerializeToString, ), 'TagAssets': grpc.unary_unary_rpc_method_handler( servicer.TagAssets, - request_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.TagAssetsRequest.FromString, - response_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.TagAssetsResponse.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.TagAssetsRequest.FromString, + response_serializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.TagAssetsResponse.SerializeToString, ), 'UntagAssets': grpc.unary_unary_rpc_method_handler( servicer.UntagAssets, - request_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.UntagAssetsRequest.FromString, - response_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.UntagAssetsResponse.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.UntagAssetsRequest.FromString, + response_serializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.UntagAssetsResponse.SerializeToString, ), 'QueryAssets': grpc.unary_unary_rpc_method_handler( servicer.QueryAssets, - request_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.QueryAssetsRequest.FromString, - response_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.QueryAssetsResponse.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.QueryAssetsRequest.FromString, + response_serializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.QueryAssetsResponse.SerializeToString, ), 'DeleteAssets': grpc.unary_unary_rpc_method_handler( servicer.DeleteAssets, - request_deserializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.DeleteAssetsRequest.FromString, - response_serializer=stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.DeleteAssetsResponse.SerializeToString, + request_deserializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.DeleteAssetsRequest.FromString, + response_serializer=stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.DeleteAssetsResponse.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( @@ -205,8 +205,8 @@ def Create(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/stabilityai.platformapis.project.v1.ProjectService/Create', - stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.CreateProjectRequest.SerializeToString, - stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.FromString, + stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.CreateProjectRequest.SerializeToString, + stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.Project.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -222,8 +222,8 @@ def Update(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/stabilityai.platformapis.project.v1.ProjectService/Update', - stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.UpdateProjectRequest.SerializeToString, - stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.FromString, + stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.UpdateProjectRequest.SerializeToString, + stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.Project.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -239,8 +239,8 @@ def List(request, timeout=None, metadata=None): return grpc.experimental.unary_stream(request, target, '/stabilityai.platformapis.project.v1.ProjectService/List', - stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.ListProjectRequest.SerializeToString, - stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.FromString, + stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.ListProjectRequest.SerializeToString, + stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.Project.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -256,8 +256,8 @@ def Get(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/stabilityai.platformapis.project.v1.ProjectService/Get', - stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.GetProjectRequest.SerializeToString, - stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.FromString, + stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.GetProjectRequest.SerializeToString, + stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.Project.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -273,8 +273,8 @@ def Delete(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/stabilityai.platformapis.project.v1.ProjectService/Delete', - stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.DeleteProjectRequest.SerializeToString, - stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.Project.FromString, + stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.DeleteProjectRequest.SerializeToString, + stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.Project.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -290,8 +290,8 @@ def TagAssets(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/stabilityai.platformapis.project.v1.ProjectService/TagAssets', - stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.TagAssetsRequest.SerializeToString, - stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.TagAssetsResponse.FromString, + stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.TagAssetsRequest.SerializeToString, + stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.TagAssetsResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -307,8 +307,8 @@ def UntagAssets(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/stabilityai.platformapis.project.v1.ProjectService/UntagAssets', - stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.UntagAssetsRequest.SerializeToString, - stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.UntagAssetsResponse.FromString, + stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.UntagAssetsRequest.SerializeToString, + stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.UntagAssetsResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -324,8 +324,8 @@ def QueryAssets(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/stabilityai.platformapis.project.v1.ProjectService/QueryAssets', - stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.QueryAssetsRequest.SerializeToString, - stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.QueryAssetsResponse.FromString, + stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.QueryAssetsRequest.SerializeToString, + stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.QueryAssetsResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -341,7 +341,7 @@ def DeleteAssets(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/stabilityai.platformapis.project.v1.ProjectService/DeleteAssets', - stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.DeleteAssetsRequest.SerializeToString, - stabilityai_dot_platformapis_dot_project_dot_v1_dot_project__pb2.DeleteAssetsResponse.FromString, + stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.DeleteAssetsRequest.SerializeToString, + stability__api_dot_platform_dot_project_dot_v1_dot_project__pb2.DeleteAssetsResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/gen/proto/py/stability_api/tensors/tensors_pb2.py b/gen/proto/py/stability_api/tensors/tensors_pb2.py new file mode 100644 index 0000000..2b6276e --- /dev/null +++ b/gen/proto/py/stability_api/tensors/tensors_pb2.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: stability_api/tensors/tensors.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#stability_api/tensors/tensors.proto\x12\x07tensors\"\xa0\x01\n\x06Tensor\x12$\n\x05\x64type\x18\x01 \x01(\x0e\x32\x0e.tensors.DtypeR\x05\x64type\x12\x14\n\x05shape\x18\x02 \x03(\x03R\x05shape\x12\x12\n\x04\x64\x61ta\x18\x03 \x01(\x0cR\x04\x64\x61ta\x12\x38\n\tattr_type\x18\x04 \x01(\x0e\x32\x16.tensors.AttributeTypeH\x00R\x08\x61ttrType\x88\x01\x01\x42\x0c\n\n_attr_type\"\xde\x01\n\tAttribute\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12)\n\x06module\x18\x03 \x01(\x0b\x32\x0f.tensors.ModuleH\x00R\x06module\x12)\n\x06tensor\x18\x04 \x01(\x0b\x32\x0f.tensors.TensorH\x00R\x06tensor\x12\x18\n\x06string\x18\x05 \x01(\tH\x00R\x06string\x12\x16\n\x05int64\x18\x06 \x01(\x03H\x00R\x05int64\x12\x16\n\x05\x66loat\x18\x07 \x01(\x02H\x00R\x05\x66loat\x12\x14\n\x04\x62ool\x18\x08 \x01(\x08H\x00R\x04\x62oolB\x07\n\x05value\"f\n\x06Module\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n\x05names\x18\x02 \x03(\tR\x05names\x12\x32\n\nattributes\x18\x03 \x03(\x0b\x32\x12.tensors.AttributeR\nattributes*\x9e\x02\n\x05\x44type\x12\x0e\n\nDT_INVALID\x10\x00\x12\x0e\n\nDT_FLOAT32\x10\x01\x12\x0e\n\nDT_FLOAT64\x10\x02\x12\x0e\n\nDT_FLOAT16\x10\x03\x12\x0f\n\x0b\x44T_BFLOAT16\x10\x04\x12\x10\n\x0c\x44T_COMPLEX32\x10\x05\x12\x10\n\x0c\x44T_COMPLEX64\x10\x06\x12\x11\n\rDT_COMPLEX128\x10\x07\x12\x0c\n\x08\x44T_UINT8\x10\x08\x12\x0b\n\x07\x44T_INT8\x10\t\x12\x0c\n\x08\x44T_INT16\x10\n\x12\x0c\n\x08\x44T_INT32\x10\x0b\x12\x0c\n\x08\x44T_INT64\x10\x0c\x12\x0b\n\x07\x44T_BOOL\x10\r\x12\r\n\tDT_QUINT8\x10\x0e\x12\x0c\n\x08\x44T_QINT8\x10\x0f\x12\r\n\tDT_QINT32\x10\x10\x12\x0f\n\x0b\x44T_QUINT4_2\x10\x11*0\n\rAttributeType\x12\x10\n\x0c\x41T_PARAMETER\x10\x00\x12\r\n\tAT_BUFFER\x10\x01\x42\x80\x01\n\x0b\x63om.tensorsB\x0cTensorsProtoP\x01Z\'github.com/coreweave/tensorizer/tensors\xa2\x02\x03TXX\xaa\x02\x07Tensors\xca\x02\x07Tensors\xe2\x02\x13Tensors\\GPBMetadata\xea\x02\x07Tensorsb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'stability_api.tensors.tensors_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\013com.tensorsB\014TensorsProtoP\001Z\'github.com/coreweave/tensorizer/tensors\242\002\003TXX\252\002\007Tensors\312\002\007Tensors\342\002\023Tensors\\GPBMetadata\352\002\007Tensors' + _globals['_DTYPE']._serialized_start=541 + _globals['_DTYPE']._serialized_end=827 + _globals['_ATTRIBUTETYPE']._serialized_start=829 + _globals['_ATTRIBUTETYPE']._serialized_end=877 + _globals['_TENSOR']._serialized_start=49 + _globals['_TENSOR']._serialized_end=209 + _globals['_ATTRIBUTE']._serialized_start=212 + _globals['_ATTRIBUTE']._serialized_end=434 + _globals['_MODULE']._serialized_start=436 + _globals['_MODULE']._serialized_end=538 +# @@protoc_insertion_point(module_scope) diff --git a/gen/proto/py/stabilityai/tensors/tensors_pb2.pyi b/gen/proto/py/stability_api/tensors/tensors_pb2.pyi similarity index 100% rename from gen/proto/py/stabilityai/tensors/tensors_pb2.pyi rename to gen/proto/py/stability_api/tensors/tensors_pb2.pyi diff --git a/gen/proto/py/stabilityai/tensors/tensors_pb2_grpc.py b/gen/proto/py/stability_api/tensors/tensors_pb2_grpc.py similarity index 100% rename from gen/proto/py/stabilityai/tensors/tensors_pb2_grpc.py rename to gen/proto/py/stability_api/tensors/tensors_pb2_grpc.py diff --git a/gen/proto/py/stabilityai/platformapis/dashboard/v1/dashboard_pb2.py b/gen/proto/py/stabilityai/platformapis/dashboard/v1/dashboard_pb2.py deleted file mode 100644 index cdbd356..0000000 --- a/gen/proto/py/stabilityai/platformapis/dashboard/v1/dashboard_pb2.py +++ /dev/null @@ -1,85 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: stabilityai/platformapis/dashboard/v1/dashboard.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n5stabilityai/platformapis/dashboard/v1/dashboard.proto\x12\x1cstabilityai.api.dashboard.v1\"\x8d\x02\n\x12OrganizationMember\x12N\n\x0corganization\x18\x01 \x01(\x0b\x32*.stabilityai.api.dashboard.v1.OrganizationR\x0corganization\x12;\n\x04user\x18\x02 \x01(\x0b\x32\".stabilityai.api.dashboard.v1.UserH\x00R\x04user\x88\x01\x01\x12\x42\n\x04role\x18\x03 \x01(\x0e\x32..stabilityai.api.dashboard.v1.OrganizationRoleR\x04role\x12\x1d\n\nis_default\x18\x04 \x01(\x08R\tisDefaultB\x07\n\x05_user\"\x99\x01\n\x11OrganizationGrant\x12%\n\x0e\x61mount_granted\x18\x01 \x01(\x01R\ramountGranted\x12\x1f\n\x0b\x61mount_used\x18\x02 \x01(\x01R\namountUsed\x12\x1d\n\nexpires_at\x18\x03 \x01(\x04R\texpiresAt\x12\x1d\n\ngranted_at\x18\x04 \x01(\x04R\tgrantedAt\"|\n\x17OrganizationPaymentInfo\x12\x18\n\x07\x62\x61lance\x18\x01 \x01(\x01R\x07\x62\x61lance\x12G\n\x06grants\x18\x02 \x03(\x0b\x32/.stabilityai.api.dashboard.v1.OrganizationGrantR\x06grants\"a\n\x16OrganizationAutoCharge\x12\x18\n\x07\x65nabled\x18\x01 \x01(\x08R\x07\x65nabled\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\x12\x1d\n\ncreated_at\x18\x03 \x01(\x04R\tcreatedAt\"\xc6\x03\n\x0cOrganization\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12J\n\x07members\x18\x04 \x03(\x0b\x32\x30.stabilityai.api.dashboard.v1.OrganizationMemberR\x07members\x12]\n\x0cpayment_info\x18\x05 \x01(\x0b\x32\x35.stabilityai.api.dashboard.v1.OrganizationPaymentInfoH\x00R\x0bpaymentInfo\x88\x01\x01\x12\x31\n\x12stripe_customer_id\x18\x06 \x01(\tH\x01R\x10stripeCustomerId\x88\x01\x01\x12Z\n\x0b\x61uto_charge\x18\x07 \x01(\x0b\x32\x34.stabilityai.api.dashboard.v1.OrganizationAutoChargeH\x02R\nautoCharge\x88\x01\x01\x42\x0f\n\r_payment_infoB\x15\n\x13_stripe_customer_idB\x0e\n\x0c_auto_charge\"V\n\x06\x41PIKey\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x1b\n\tis_secret\x18\x02 \x01(\x08R\x08isSecret\x12\x1d\n\ncreated_at\x18\x03 \x01(\x04R\tcreatedAt\"\xf6\x02\n\x04User\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1c\n\x07\x61uth_id\x18\x02 \x01(\tH\x00R\x06\x61uthId\x88\x01\x01\x12\'\n\x0fprofile_picture\x18\x03 \x01(\tR\x0eprofilePicture\x12\x14\n\x05\x65mail\x18\x04 \x01(\tR\x05\x65mail\x12V\n\rorganizations\x18\x05 \x03(\x0b\x32\x30.stabilityai.api.dashboard.v1.OrganizationMemberR\rorganizations\x12?\n\x08\x61pi_keys\x18\x07 \x03(\x0b\x32$.stabilityai.api.dashboard.v1.APIKeyR\x07\x61piKeys\x12\x1d\n\ncreated_at\x18\x08 \x01(\x04R\tcreatedAt\x12*\n\x0e\x65mail_verified\x18\t \x01(\x08H\x01R\remailVerified\x88\x01\x01\x42\n\n\x08_auth_idB\x11\n\x0f_email_verified\"V\n\x08\x43ostData\x12#\n\ramount_tokens\x18\x01 \x01(\rR\x0c\x61mountTokens\x12%\n\x0e\x61mount_credits\x18\x02 \x01(\x01R\ramountCredits\"\xaa\x02\n\x0bUsageMetric\x12\x1c\n\toperation\x18\x01 \x01(\tR\toperation\x12\x16\n\x06\x65ngine\x18\x02 \x01(\tR\x06\x65ngine\x12\x45\n\ninput_cost\x18\x03 \x01(\x0b\x32&.stabilityai.api.dashboard.v1.CostDataR\tinputCost\x12G\n\x0boutput_cost\x18\x04 \x01(\x0b\x32&.stabilityai.api.dashboard.v1.CostDataR\noutputCost\x12\x17\n\x04user\x18\x05 \x01(\tH\x00R\x04user\x88\x01\x01\x12\x33\n\x15\x61ggregation_timestamp\x18\x06 \x01(\x04R\x14\x61ggregationTimestampB\x07\n\x05_user\"W\n\tCostTotal\x12#\n\ramount_tokens\x18\x01 \x01(\rR\x0c\x61mountTokens\x12%\n\x0e\x61mount_credits\x18\x02 \x01(\x01R\ramountCredits\"\xa8\x01\n\x10TotalMetricsData\x12H\n\x0binput_total\x18\x01 \x01(\x0b\x32\'.stabilityai.api.dashboard.v1.CostTotalR\ninputTotal\x12J\n\x0coutput_total\x18\x02 \x01(\x0b\x32\'.stabilityai.api.dashboard.v1.CostTotalR\x0boutputTotal\"\x94\x01\n\x07Metrics\x12\x43\n\x07metrics\x18\x01 \x03(\x0b\x32).stabilityai.api.dashboard.v1.UsageMetricR\x07metrics\x12\x44\n\x05total\x18\x02 \x01(\x0b\x32..stabilityai.api.dashboard.v1.TotalMetricsDataR\x05total\"\x0e\n\x0c\x45mptyRequest\"(\n\x16GetOrganizationRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"\xdf\x01\n\x11GetMetricsRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\x1c\n\x07user_id\x18\x02 \x01(\tH\x00R\x06userId\x88\x01\x01\x12\x1d\n\nrange_from\x18\x03 \x01(\x04R\trangeFrom\x12\x19\n\x08range_to\x18\x04 \x01(\x04R\x07rangeTo\x12=\n\x1binclude_per_request_metrics\x18\x05 \x01(\x08R\x18includePerRequestMetricsB\n\n\x08_user_id\",\n\rAPIKeyRequest\x12\x1b\n\tis_secret\x18\x01 \x01(\x08R\x08isSecret\"#\n\x11\x41PIKeyFindRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"K\n UpdateDefaultOrganizationRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\",\n\x0e\x43lientSettings\x12\x1a\n\x08settings\x18\x01 \x01(\x0cR\x08settings\"\xbd\x01\n\x1d\x43reateAutoChargeIntentRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\'\n\x0fmonthly_maximum\x18\x02 \x01(\x04R\x0emonthlyMaximum\x12#\n\rminimum_value\x18\x03 \x01(\x04R\x0cminimumValue\x12%\n\x0e\x61mount_credits\x18\x04 \x01(\x04R\ramountCredits\"V\n\x13\x43reateChargeRequest\x12\x16\n\x06\x61mount\x18\x01 \x01(\x04R\x06\x61mount\x12\'\n\x0forganization_id\x18\x02 \x01(\tR\x0eorganizationId\"v\n\x11GetChargesRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\x1d\n\nrange_from\x18\x02 \x01(\x04R\trangeFrom\x12\x19\n\x08range_to\x18\x03 \x01(\x04R\x07rangeTo\"\xb8\x01\n\x06\x43harge\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04paid\x18\x02 \x01(\x08R\x04paid\x12!\n\x0creceipt_link\x18\x03 \x01(\tR\x0breceiptLink\x12!\n\x0cpayment_link\x18\x04 \x01(\tR\x0bpaymentLink\x12\x1d\n\ncreated_at\x18\x05 \x01(\x04R\tcreatedAt\x12%\n\x0e\x61mount_credits\x18\x06 \x01(\x04R\ramountCredits\"I\n\x07\x43harges\x12>\n\x07\x63harges\x18\x01 \x03(\x0b\x32$.stabilityai.api.dashboard.v1.ChargeR\x07\x63harges\"?\n\x14GetAutoChargeRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\"\xd9\x01\n\x10\x41utoChargeIntent\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12!\n\x0cpayment_link\x18\x02 \x01(\tR\x0bpaymentLink\x12\x1d\n\ncreated_at\x18\x03 \x01(\x04R\tcreatedAt\x12\'\n\x0fmonthly_maximum\x18\x04 \x01(\x04R\x0emonthlyMaximum\x12#\n\rminimum_value\x18\x05 \x01(\x04R\x0cminimumValue\x12%\n\x0e\x61mount_credits\x18\x06 \x01(\x04R\ramountCredits\"<\n\x15UpdateUserInfoRequest\x12\x19\n\x05\x65mail\x18\x01 \x01(\tH\x00R\x05\x65mail\x88\x01\x01\x42\x08\n\x06_email\"2\n\x18UserPasswordChangeTicket\x12\x16\n\x06ticket\x18\x01 \x01(\tR\x06ticket*9\n\x10OrganizationRole\x12\n\n\x06MEMBER\x10\x00\x12\x0e\n\nACCOUNTANT\x10\x01\x12\t\n\x05OWNER\x10\x02\x32\x9a\x0e\n\x10\x44\x61shboardService\x12W\n\x05GetMe\x12*.stabilityai.api.dashboard.v1.EmptyRequest\x1a\".stabilityai.api.dashboard.v1.User\x12s\n\x0fGetOrganization\x12\x34.stabilityai.api.dashboard.v1.GetOrganizationRequest\x1a*.stabilityai.api.dashboard.v1.Organization\x12\x64\n\nGetMetrics\x12/.stabilityai.api.dashboard.v1.GetMetricsRequest\x1a%.stabilityai.api.dashboard.v1.Metrics\x12\x61\n\x0c\x43reateAPIKey\x12+.stabilityai.api.dashboard.v1.APIKeyRequest\x1a$.stabilityai.api.dashboard.v1.APIKey\x12\x65\n\x0c\x44\x65leteAPIKey\x12/.stabilityai.api.dashboard.v1.APIKeyFindRequest\x1a$.stabilityai.api.dashboard.v1.APIKey\x12\x7f\n\x19UpdateDefaultOrganization\x12>.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest\x1a\".stabilityai.api.dashboard.v1.User\x12m\n\x11GetClientSettings\x12*.stabilityai.api.dashboard.v1.EmptyRequest\x1a,.stabilityai.api.dashboard.v1.ClientSettings\x12o\n\x11SetClientSettings\x12,.stabilityai.api.dashboard.v1.ClientSettings\x1a,.stabilityai.api.dashboard.v1.ClientSettings\x12i\n\x0eUpdateUserInfo\x12\x33.stabilityai.api.dashboard.v1.UpdateUserInfoRequest\x1a\".stabilityai.api.dashboard.v1.User\x12\x80\x01\n\x1a\x43reatePasswordChangeTicket\x12*.stabilityai.api.dashboard.v1.EmptyRequest\x1a\x36.stabilityai.api.dashboard.v1.UserPasswordChangeTicket\x12_\n\rDeleteAccount\x12*.stabilityai.api.dashboard.v1.EmptyRequest\x1a\".stabilityai.api.dashboard.v1.User\x12g\n\x0c\x43reateCharge\x12\x31.stabilityai.api.dashboard.v1.CreateChargeRequest\x1a$.stabilityai.api.dashboard.v1.Charge\x12\x64\n\nGetCharges\x12/.stabilityai.api.dashboard.v1.GetChargesRequest\x1a%.stabilityai.api.dashboard.v1.Charges\x12\x85\x01\n\x16\x43reateAutoChargeIntent\x12;.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest\x1a..stabilityai.api.dashboard.v1.AutoChargeIntent\x12\x85\x01\n\x16UpdateAutoChargeIntent\x12;.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest\x1a..stabilityai.api.dashboard.v1.AutoChargeIntent\x12y\n\x13GetAutoChargeIntent\x12\x32.stabilityai.api.dashboard.v1.GetAutoChargeRequest\x1a..stabilityai.api.dashboard.v1.AutoChargeIntentB\xac\x02\n com.stabilityai.api.dashboard.v1B\x0e\x44\x61shboardProtoP\x01Zegithub.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/dashboard/v1;dashboardv1\xa2\x02\x03SAD\xaa\x02\x1cStabilityai.Api.Dashboard.V1\xca\x02\x1cStabilityai\\Api\\Dashboard\\V1\xe2\x02(Stabilityai\\Api\\Dashboard\\V1\\GPBMetadata\xea\x02\x1fStabilityai::Api::Dashboard::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'stabilityai.platformapis.dashboard.v1.dashboard_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n com.stabilityai.api.dashboard.v1B\016DashboardProtoP\001Zegithub.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/dashboard/v1;dashboardv1\242\002\003SAD\252\002\034Stabilityai.Api.Dashboard.V1\312\002\034Stabilityai\\Api\\Dashboard\\V1\342\002(Stabilityai\\Api\\Dashboard\\V1\\GPBMetadata\352\002\037Stabilityai::Api::Dashboard::V1' - _globals['_ORGANIZATIONROLE']._serialized_start=4013 - _globals['_ORGANIZATIONROLE']._serialized_end=4070 - _globals['_ORGANIZATIONMEMBER']._serialized_start=88 - _globals['_ORGANIZATIONMEMBER']._serialized_end=357 - _globals['_ORGANIZATIONGRANT']._serialized_start=360 - _globals['_ORGANIZATIONGRANT']._serialized_end=513 - _globals['_ORGANIZATIONPAYMENTINFO']._serialized_start=515 - _globals['_ORGANIZATIONPAYMENTINFO']._serialized_end=639 - _globals['_ORGANIZATIONAUTOCHARGE']._serialized_start=641 - _globals['_ORGANIZATIONAUTOCHARGE']._serialized_end=738 - _globals['_ORGANIZATION']._serialized_start=741 - _globals['_ORGANIZATION']._serialized_end=1195 - _globals['_APIKEY']._serialized_start=1197 - _globals['_APIKEY']._serialized_end=1283 - _globals['_USER']._serialized_start=1286 - _globals['_USER']._serialized_end=1660 - _globals['_COSTDATA']._serialized_start=1662 - _globals['_COSTDATA']._serialized_end=1748 - _globals['_USAGEMETRIC']._serialized_start=1751 - _globals['_USAGEMETRIC']._serialized_end=2049 - _globals['_COSTTOTAL']._serialized_start=2051 - _globals['_COSTTOTAL']._serialized_end=2138 - _globals['_TOTALMETRICSDATA']._serialized_start=2141 - _globals['_TOTALMETRICSDATA']._serialized_end=2309 - _globals['_METRICS']._serialized_start=2312 - _globals['_METRICS']._serialized_end=2460 - _globals['_EMPTYREQUEST']._serialized_start=2462 - _globals['_EMPTYREQUEST']._serialized_end=2476 - _globals['_GETORGANIZATIONREQUEST']._serialized_start=2478 - _globals['_GETORGANIZATIONREQUEST']._serialized_end=2518 - _globals['_GETMETRICSREQUEST']._serialized_start=2521 - _globals['_GETMETRICSREQUEST']._serialized_end=2744 - _globals['_APIKEYREQUEST']._serialized_start=2746 - _globals['_APIKEYREQUEST']._serialized_end=2790 - _globals['_APIKEYFINDREQUEST']._serialized_start=2792 - _globals['_APIKEYFINDREQUEST']._serialized_end=2827 - _globals['_UPDATEDEFAULTORGANIZATIONREQUEST']._serialized_start=2829 - _globals['_UPDATEDEFAULTORGANIZATIONREQUEST']._serialized_end=2904 - _globals['_CLIENTSETTINGS']._serialized_start=2906 - _globals['_CLIENTSETTINGS']._serialized_end=2950 - _globals['_CREATEAUTOCHARGEINTENTREQUEST']._serialized_start=2953 - _globals['_CREATEAUTOCHARGEINTENTREQUEST']._serialized_end=3142 - _globals['_CREATECHARGEREQUEST']._serialized_start=3144 - _globals['_CREATECHARGEREQUEST']._serialized_end=3230 - _globals['_GETCHARGESREQUEST']._serialized_start=3232 - _globals['_GETCHARGESREQUEST']._serialized_end=3350 - _globals['_CHARGE']._serialized_start=3353 - _globals['_CHARGE']._serialized_end=3537 - _globals['_CHARGES']._serialized_start=3539 - _globals['_CHARGES']._serialized_end=3612 - _globals['_GETAUTOCHARGEREQUEST']._serialized_start=3614 - _globals['_GETAUTOCHARGEREQUEST']._serialized_end=3677 - _globals['_AUTOCHARGEINTENT']._serialized_start=3680 - _globals['_AUTOCHARGEINTENT']._serialized_end=3897 - _globals['_UPDATEUSERINFOREQUEST']._serialized_start=3899 - _globals['_UPDATEUSERINFOREQUEST']._serialized_end=3959 - _globals['_USERPASSWORDCHANGETICKET']._serialized_start=3961 - _globals['_USERPASSWORDCHANGETICKET']._serialized_end=4011 - _globals['_DASHBOARDSERVICE']._serialized_start=4073 - _globals['_DASHBOARDSERVICE']._serialized_end=5891 -# @@protoc_insertion_point(module_scope) diff --git a/gen/proto/py/stabilityai/platformapis/engines/v1/engines_pb2.py b/gen/proto/py/stabilityai/platformapis/engines/v1/engines_pb2.py deleted file mode 100644 index 376f63d..0000000 --- a/gen/proto/py/stabilityai/platformapis/engines/v1/engines_pb2.py +++ /dev/null @@ -1,37 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: stabilityai/platformapis/engines/v1/engines.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n1stabilityai/platformapis/engines/v1/engines.proto\x12#stabilityai.platformapis.engines.v1\"\x97\x02\n\nEngineInfo\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05owner\x18\x02 \x01(\tR\x05owner\x12\x14\n\x05ready\x18\x03 \x01(\x08R\x05ready\x12\x43\n\x04type\x18\x04 \x01(\x0e\x32/.stabilityai.platformapis.engines.v1.EngineTypeR\x04type\x12R\n\ttokenizer\x18\x05 \x01(\x0e\x32\x34.stabilityai.platformapis.engines.v1.EngineTokenizerR\ttokenizer\x12\x12\n\x04name\x18\x06 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x07 \x01(\tR\x0b\x64\x65scription\"\x14\n\x12ListEnginesRequest\"R\n\x07\x45ngines\x12G\n\x06\x65ngine\x18\x01 \x03(\x0b\x32/.stabilityai.platformapis.engines.v1.EngineInfoR\x06\x65ngine*Z\n\nEngineType\x12\x08\n\x04TEXT\x10\x00\x12\x0b\n\x07PICTURE\x10\x01\x12\t\n\x05\x41UDIO\x10\x02\x12\t\n\x05VIDEO\x10\x03\x12\x12\n\x0e\x43LASSIFICATION\x10\x04\x12\x0b\n\x07STORAGE\x10\x05*%\n\x0f\x45ngineTokenizer\x12\x08\n\x04GPT2\x10\x00\x12\x08\n\x04PILE\x10\x01\x32\x88\x01\n\x0e\x45nginesService\x12v\n\x0bListEngines\x12\x37.stabilityai.platformapis.engines.v1.ListEnginesRequest\x1a,.stabilityai.platformapis.engines.v1.Engines\"\x00\x42\xc9\x02\n\'com.stabilityai.platformapis.engines.v1B\x0c\x45nginesProtoP\x01Zagithub.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/engines/v1;enginesv1\xa2\x02\x03SPE\xaa\x02#Stabilityai.Platformapis.Engines.V1\xca\x02#Stabilityai\\Platformapis\\Engines\\V1\xe2\x02/Stabilityai\\Platformapis\\Engines\\V1\\GPBMetadata\xea\x02&Stabilityai::Platformapis::Engines::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'stabilityai.platformapis.engines.v1.engines_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\'com.stabilityai.platformapis.engines.v1B\014EnginesProtoP\001Zagithub.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/engines/v1;enginesv1\242\002\003SPE\252\002#Stabilityai.Platformapis.Engines.V1\312\002#Stabilityai\\Platformapis\\Engines\\V1\342\002/Stabilityai\\Platformapis\\Engines\\V1\\GPBMetadata\352\002&Stabilityai::Platformapis::Engines::V1' - _globals['_ENGINETYPE']._serialized_start=478 - _globals['_ENGINETYPE']._serialized_end=568 - _globals['_ENGINETOKENIZER']._serialized_start=570 - _globals['_ENGINETOKENIZER']._serialized_end=607 - _globals['_ENGINEINFO']._serialized_start=91 - _globals['_ENGINEINFO']._serialized_end=370 - _globals['_LISTENGINESREQUEST']._serialized_start=372 - _globals['_LISTENGINESREQUEST']._serialized_end=392 - _globals['_ENGINES']._serialized_start=394 - _globals['_ENGINES']._serialized_end=476 - _globals['_ENGINESSERVICE']._serialized_start=610 - _globals['_ENGINESSERVICE']._serialized_end=746 -# @@protoc_insertion_point(module_scope) diff --git a/gen/proto/py/stabilityai/platformapis/project/v1/project_pb2.py b/gen/proto/py/stabilityai/platformapis/project/v1/project_pb2.py deleted file mode 100644 index 2712896..0000000 --- a/gen/proto/py/stabilityai/platformapis/project/v1/project_pb2.py +++ /dev/null @@ -1,78 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: stabilityai/platformapis/project/v1/project.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from stabilityai.platformapis.generation.v1 import generation_pb2 as stabilityai_dot_platformapis_dot_generation_dot_v1_dot_generation__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n1stabilityai/platformapis/project/v1/project.proto\x12#stabilityai.platformapis.project.v1\x1a\x37stabilityai/platformapis/generation/v1/generation.proto\"\xb3\x03\n\x0cProjectAsset\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x10\n\x03uri\x18\x02 \x01(\tR\x03uri\x12\x46\n\x03use\x18\x03 \x01(\x0e\x32\x34.stabilityai.platformapis.project.v1.ProjectAssetUseR\x03use\x12\x12\n\x04name\x18\x04 \x01(\tR\x04name\x12\x12\n\x04size\x18\x05 \x01(\x04R\x04size\x12\x1d\n\ncreated_at\x18\x06 \x01(\x04R\tcreatedAt\x12\x1d\n\nupdated_at\x18\x07 \x01(\x04R\tupdatedAt\x12I\n\x07request\x18\x08 \x01(\x0b\x32/.stabilityai.platformapis.generation.v1.RequestR\x07request\x12O\n\x04tags\x18\t \x03(\x0b\x32;.stabilityai.platformapis.project.v1.ProjectAsset.TagsEntryR\x04tags\x1a\x37\n\tTagsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xc6\x03\n\x07Project\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05title\x18\x02 \x01(\tR\x05title\x12\x19\n\x08owner_id\x18\x03 \x01(\tR\x07ownerId\x12J\n\x06\x61\x63\x63\x65ss\x18\x04 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectAccessR\x06\x61\x63\x63\x65ss\x12J\n\x06status\x18\x05 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectStatusR\x06status\x12\x12\n\x04size\x18\x06 \x01(\x04R\x04size\x12\x45\n\x04\x66ile\x18\x07 \x01(\x0b\x32\x31.stabilityai.platformapis.project.v1.ProjectAssetR\x04\x66ile\x12\x1d\n\ncreated_at\x18\x08 \x01(\x04R\tcreatedAt\x12\x1d\n\nupdated_at\x18\t \x01(\x04R\tupdatedAt\x12I\n\x06\x61ssets\x18\n \x03(\x0b\x32\x31.stabilityai.platformapis.project.v1.ProjectAssetR\x06\x61ssets\"\xc6\x02\n\x14\x43reateProjectRequest\x12\x14\n\x05title\x18\x01 \x01(\tR\x05title\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12J\n\x06\x61\x63\x63\x65ss\x18\x03 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectAccessR\x06\x61\x63\x63\x65ss\x12J\n\x06status\x18\x04 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectStatusR\x06status\x12J\n\x04\x66ile\x18\x05 \x01(\x0b\x32\x31.stabilityai.platformapis.project.v1.ProjectAssetH\x01R\x04\x66ile\x88\x01\x01\x42\x0b\n\t_owner_idB\x07\n\x05_file\"\x85\x03\n\x14UpdateProjectRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12\x19\n\x05title\x18\x03 \x01(\tH\x01R\x05title\x88\x01\x01\x12O\n\x06\x61\x63\x63\x65ss\x18\x04 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectAccessH\x02R\x06\x61\x63\x63\x65ss\x88\x01\x01\x12O\n\x06status\x18\x05 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectStatusH\x03R\x06status\x88\x01\x01\x12J\n\x04\x66ile\x18\x06 \x01(\x0b\x32\x31.stabilityai.platformapis.project.v1.ProjectAssetH\x04R\x04\x66ile\x88\x01\x01\x42\x0b\n\t_owner_idB\x08\n\x06_titleB\t\n\x07_accessB\t\n\x07_statusB\x07\n\x05_file\"A\n\x12ListProjectRequest\x12\x1e\n\x08owner_id\x18\x01 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x42\x0b\n\t_owner_id\"P\n\x11GetProjectRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x42\x0b\n\t_owner_id\"S\n\x14\x44\x65leteProjectRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x42\x0b\n\t_owner_id\"\x98\x04\n\x12QueryAssetsRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12\x19\n\x05since\x18\x03 \x01(\x04H\x01R\x05since\x88\x01\x01\x12\x19\n\x05until\x18\x04 \x01(\x04H\x02R\x05until\x88\x01\x01\x12\x19\n\x05limit\x18\x05 \x01(\x04H\x03R\x05limit\x88\x01\x01\x12 \n\tstart_key\x18\x06 \x01(\tH\x04R\x08startKey\x88\x01\x01\x12\x46\n\x03use\x18\x07 \x03(\x0e\x32\x34.stabilityai.platformapis.project.v1.ProjectAssetUseR\x03use\x12N\n\x08sort_dir\x18\x08 \x01(\x0e\x32\x33.stabilityai.platformapis.project.v1.ProjectSortDirR\x07sortDir\x12U\n\x04tags\x18\t \x03(\x0b\x32\x41.stabilityai.platformapis.project.v1.QueryAssetsRequest.TagsEntryR\x04tags\x1a\x37\n\tTagsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x0b\n\t_owner_idB\x08\n\x06_sinceB\x08\n\x06_untilB\x08\n\x06_limitB\x0c\n\n_start_key\"\x8d\x01\n\x13QueryAssetsResponse\x12I\n\x06\x61ssets\x18\x01 \x03(\x0b\x32\x31.stabilityai.platformapis.project.v1.ProjectAssetR\x06\x61ssets\x12\x1e\n\x08last_key\x18\x02 \x01(\tH\x00R\x07lastKey\x88\x01\x01\x42\x0b\n\t_last_key\"\xfa\x01\n\x10TagAssetsRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIds\x12S\n\x04tags\x18\x04 \x03(\x0b\x32?.stabilityai.platformapis.project.v1.TagAssetsRequest.TagsEntryR\x04tags\x1a\x37\n\tTagsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x0b\n\t_owner_id\"[\n\x11TagAssetsResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIds\"\x89\x01\n\x12UntagAssetsRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIds\x12\x19\n\x08tag_keys\x18\x04 \x03(\tR\x07tagKeysB\x0b\n\t_owner_id\"]\n\x13UntagAssetsResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIds\"o\n\x13\x44\x65leteAssetsRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIdsB\x0b\n\t_owner_id\"^\n\x14\x44\x65leteAssetsResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIds*F\n\rProjectAccess\x12\x1a\n\x16PROJECT_ACCESS_PRIVATE\x10\x00\x12\x19\n\x15PROJECT_ACCESS_PUBLIC\x10\x01*c\n\rProjectStatus\x12\x1b\n\x17PROJECT_STATUS_INACTIVE\x10\x00\x12\x19\n\x15PROJECT_STATUS_ACTIVE\x10\x01\x12\x1a\n\x16PROJECT_STATUS_DELETED\x10\x02*\xb0\x01\n\x0fProjectAssetUse\x12\x1f\n\x1bPROJECT_ASSET_USE_UNDEFINED\x10\x00\x12\x1b\n\x17PROJECT_ASSET_USE_INPUT\x10\x01\x12\x1c\n\x18PROJECT_ASSET_USE_OUTPUT\x10\x02\x12\"\n\x1ePROJECT_ASSET_USE_INTERMEDIATE\x10\x03\x12\x1d\n\x19PROJECT_ASSET_USE_PROJECT\x10\x04*g\n\x0eProjectSortDir\x12 \n\x1cPROJECT_SORT_DIR_UNSPECIFIED\x10\x00\x12\x18\n\x14PROJECT_SORT_DIR_ASC\x10\x01\x12\x19\n\x15PROJECT_SORT_DIR_DESC\x10\x02\x32\xe1\x08\n\x0eProjectService\x12s\n\x06\x43reate\x12\x39.stabilityai.platformapis.project.v1.CreateProjectRequest\x1a,.stabilityai.platformapis.project.v1.Project\"\x00\x12s\n\x06Update\x12\x39.stabilityai.platformapis.project.v1.UpdateProjectRequest\x1a,.stabilityai.platformapis.project.v1.Project\"\x00\x12q\n\x04List\x12\x37.stabilityai.platformapis.project.v1.ListProjectRequest\x1a,.stabilityai.platformapis.project.v1.Project\"\x00\x30\x01\x12m\n\x03Get\x12\x36.stabilityai.platformapis.project.v1.GetProjectRequest\x1a,.stabilityai.platformapis.project.v1.Project\"\x00\x12s\n\x06\x44\x65lete\x12\x39.stabilityai.platformapis.project.v1.DeleteProjectRequest\x1a,.stabilityai.platformapis.project.v1.Project\"\x00\x12|\n\tTagAssets\x12\x35.stabilityai.platformapis.project.v1.TagAssetsRequest\x1a\x36.stabilityai.platformapis.project.v1.TagAssetsResponse\"\x00\x12\x82\x01\n\x0bUntagAssets\x12\x37.stabilityai.platformapis.project.v1.UntagAssetsRequest\x1a\x38.stabilityai.platformapis.project.v1.UntagAssetsResponse\"\x00\x12\x82\x01\n\x0bQueryAssets\x12\x37.stabilityai.platformapis.project.v1.QueryAssetsRequest\x1a\x38.stabilityai.platformapis.project.v1.QueryAssetsResponse\"\x00\x12\x85\x01\n\x0c\x44\x65leteAssets\x12\x38.stabilityai.platformapis.project.v1.DeleteAssetsRequest\x1a\x39.stabilityai.platformapis.project.v1.DeleteAssetsResponse\"\x00\x42\xc9\x02\n\'com.stabilityai.platformapis.project.v1B\x0cProjectProtoP\x01Zagithub.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/project/v1;projectv1\xa2\x02\x03SPP\xaa\x02#Stabilityai.Platformapis.Project.V1\xca\x02#Stabilityai\\Platformapis\\Project\\V1\xe2\x02/Stabilityai\\Platformapis\\Project\\V1\\GPBMetadata\xea\x02&Stabilityai::Platformapis::Project::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'stabilityai.platformapis.project.v1.project_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\'com.stabilityai.platformapis.project.v1B\014ProjectProtoP\001Zagithub.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/project/v1;projectv1\242\002\003SPP\252\002#Stabilityai.Platformapis.Project.V1\312\002#Stabilityai\\Platformapis\\Project\\V1\342\002/Stabilityai\\Platformapis\\Project\\V1\\GPBMetadata\352\002&Stabilityai::Platformapis::Project::V1' - _PROJECTASSET_TAGSENTRY._options = None - _PROJECTASSET_TAGSENTRY._serialized_options = b'8\001' - _QUERYASSETSREQUEST_TAGSENTRY._options = None - _QUERYASSETSREQUEST_TAGSENTRY._serialized_options = b'8\001' - _TAGASSETSREQUEST_TAGSENTRY._options = None - _TAGASSETSREQUEST_TAGSENTRY._serialized_options = b'8\001' - _globals['_PROJECTACCESS']._serialized_start=3470 - _globals['_PROJECTACCESS']._serialized_end=3540 - _globals['_PROJECTSTATUS']._serialized_start=3542 - _globals['_PROJECTSTATUS']._serialized_end=3641 - _globals['_PROJECTASSETUSE']._serialized_start=3644 - _globals['_PROJECTASSETUSE']._serialized_end=3820 - _globals['_PROJECTSORTDIR']._serialized_start=3822 - _globals['_PROJECTSORTDIR']._serialized_end=3925 - _globals['_PROJECTASSET']._serialized_start=148 - _globals['_PROJECTASSET']._serialized_end=583 - _globals['_PROJECTASSET_TAGSENTRY']._serialized_start=528 - _globals['_PROJECTASSET_TAGSENTRY']._serialized_end=583 - _globals['_PROJECT']._serialized_start=586 - _globals['_PROJECT']._serialized_end=1040 - _globals['_CREATEPROJECTREQUEST']._serialized_start=1043 - _globals['_CREATEPROJECTREQUEST']._serialized_end=1369 - _globals['_UPDATEPROJECTREQUEST']._serialized_start=1372 - _globals['_UPDATEPROJECTREQUEST']._serialized_end=1761 - _globals['_LISTPROJECTREQUEST']._serialized_start=1763 - _globals['_LISTPROJECTREQUEST']._serialized_end=1828 - _globals['_GETPROJECTREQUEST']._serialized_start=1830 - _globals['_GETPROJECTREQUEST']._serialized_end=1910 - _globals['_DELETEPROJECTREQUEST']._serialized_start=1912 - _globals['_DELETEPROJECTREQUEST']._serialized_end=1995 - _globals['_QUERYASSETSREQUEST']._serialized_start=1998 - _globals['_QUERYASSETSREQUEST']._serialized_end=2534 - _globals['_QUERYASSETSREQUEST_TAGSENTRY']._serialized_start=528 - _globals['_QUERYASSETSREQUEST_TAGSENTRY']._serialized_end=583 - _globals['_QUERYASSETSRESPONSE']._serialized_start=2537 - _globals['_QUERYASSETSRESPONSE']._serialized_end=2678 - _globals['_TAGASSETSREQUEST']._serialized_start=2681 - _globals['_TAGASSETSREQUEST']._serialized_end=2931 - _globals['_TAGASSETSREQUEST_TAGSENTRY']._serialized_start=528 - _globals['_TAGASSETSREQUEST_TAGSENTRY']._serialized_end=583 - _globals['_TAGASSETSRESPONSE']._serialized_start=2933 - _globals['_TAGASSETSRESPONSE']._serialized_end=3024 - _globals['_UNTAGASSETSREQUEST']._serialized_start=3027 - _globals['_UNTAGASSETSREQUEST']._serialized_end=3164 - _globals['_UNTAGASSETSRESPONSE']._serialized_start=3166 - _globals['_UNTAGASSETSRESPONSE']._serialized_end=3259 - _globals['_DELETEASSETSREQUEST']._serialized_start=3261 - _globals['_DELETEASSETSREQUEST']._serialized_end=3372 - _globals['_DELETEASSETSRESPONSE']._serialized_start=3374 - _globals['_DELETEASSETSRESPONSE']._serialized_end=3468 - _globals['_PROJECTSERVICE']._serialized_start=3928 - _globals['_PROJECTSERVICE']._serialized_end=5049 -# @@protoc_insertion_point(module_scope) diff --git a/gen/proto/py/stabilityai/tensors/tensors_pb2.py b/gen/proto/py/stabilityai/tensors/tensors_pb2.py deleted file mode 100644 index 5412a9e..0000000 --- a/gen/proto/py/stabilityai/tensors/tensors_pb2.py +++ /dev/null @@ -1,35 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: stabilityai/tensors/tensors.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!stabilityai/tensors/tensors.proto\x12\x07tensors\"\xa0\x01\n\x06Tensor\x12$\n\x05\x64type\x18\x01 \x01(\x0e\x32\x0e.tensors.DtypeR\x05\x64type\x12\x14\n\x05shape\x18\x02 \x03(\x03R\x05shape\x12\x12\n\x04\x64\x61ta\x18\x03 \x01(\x0cR\x04\x64\x61ta\x12\x38\n\tattr_type\x18\x04 \x01(\x0e\x32\x16.tensors.AttributeTypeH\x00R\x08\x61ttrType\x88\x01\x01\x42\x0c\n\n_attr_type\"\xde\x01\n\tAttribute\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12)\n\x06module\x18\x03 \x01(\x0b\x32\x0f.tensors.ModuleH\x00R\x06module\x12)\n\x06tensor\x18\x04 \x01(\x0b\x32\x0f.tensors.TensorH\x00R\x06tensor\x12\x18\n\x06string\x18\x05 \x01(\tH\x00R\x06string\x12\x16\n\x05int64\x18\x06 \x01(\x03H\x00R\x05int64\x12\x16\n\x05\x66loat\x18\x07 \x01(\x02H\x00R\x05\x66loat\x12\x14\n\x04\x62ool\x18\x08 \x01(\x08H\x00R\x04\x62oolB\x07\n\x05value\"f\n\x06Module\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n\x05names\x18\x02 \x03(\tR\x05names\x12\x32\n\nattributes\x18\x03 \x03(\x0b\x32\x12.tensors.AttributeR\nattributes*\x9e\x02\n\x05\x44type\x12\x0e\n\nDT_INVALID\x10\x00\x12\x0e\n\nDT_FLOAT32\x10\x01\x12\x0e\n\nDT_FLOAT64\x10\x02\x12\x0e\n\nDT_FLOAT16\x10\x03\x12\x0f\n\x0b\x44T_BFLOAT16\x10\x04\x12\x10\n\x0c\x44T_COMPLEX32\x10\x05\x12\x10\n\x0c\x44T_COMPLEX64\x10\x06\x12\x11\n\rDT_COMPLEX128\x10\x07\x12\x0c\n\x08\x44T_UINT8\x10\x08\x12\x0b\n\x07\x44T_INT8\x10\t\x12\x0c\n\x08\x44T_INT16\x10\n\x12\x0c\n\x08\x44T_INT32\x10\x0b\x12\x0c\n\x08\x44T_INT64\x10\x0c\x12\x0b\n\x07\x44T_BOOL\x10\r\x12\r\n\tDT_QUINT8\x10\x0e\x12\x0c\n\x08\x44T_QINT8\x10\x0f\x12\r\n\tDT_QINT32\x10\x10\x12\x0f\n\x0b\x44T_QUINT4_2\x10\x11*0\n\rAttributeType\x12\x10\n\x0c\x41T_PARAMETER\x10\x00\x12\r\n\tAT_BUFFER\x10\x01\x42\x80\x01\n\x0b\x63om.tensorsB\x0cTensorsProtoP\x01Z\'github.com/coreweave/tensorizer/tensors\xa2\x02\x03TXX\xaa\x02\x07Tensors\xca\x02\x07Tensors\xe2\x02\x13Tensors\\GPBMetadata\xea\x02\x07Tensorsb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'stabilityai.tensors.tensors_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\013com.tensorsB\014TensorsProtoP\001Z\'github.com/coreweave/tensorizer/tensors\242\002\003TXX\252\002\007Tensors\312\002\007Tensors\342\002\023Tensors\\GPBMetadata\352\002\007Tensors' - _globals['_DTYPE']._serialized_start=539 - _globals['_DTYPE']._serialized_end=825 - _globals['_ATTRIBUTETYPE']._serialized_start=827 - _globals['_ATTRIBUTETYPE']._serialized_end=875 - _globals['_TENSOR']._serialized_start=47 - _globals['_TENSOR']._serialized_end=207 - _globals['_ATTRIBUTE']._serialized_start=210 - _globals['_ATTRIBUTE']._serialized_end=432 - _globals['_MODULE']._serialized_start=434 - _globals['_MODULE']._serialized_end=536 -# @@protoc_insertion_point(module_scope) diff --git a/gen/proto/swift/stabilityai/platformapis/dashboard/v1/dashboard.connect.swift b/gen/proto/swift/stability_api/platform/dashboard/v1/dashboard.connect.swift similarity index 99% rename from gen/proto/swift/stabilityai/platformapis/dashboard/v1/dashboard.connect.swift rename to gen/proto/swift/stability_api/platform/dashboard/v1/dashboard.connect.swift index 76bdf44..de8d9fd 100644 --- a/gen/proto/swift/stabilityai/platformapis/dashboard/v1/dashboard.connect.swift +++ b/gen/proto/swift/stability_api/platform/dashboard/v1/dashboard.connect.swift @@ -1,6 +1,6 @@ // Code generated by protoc-gen-connect-swift. DO NOT EDIT. // -// Source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// Source: stability_api/platform/dashboard/v1/dashboard.proto // import Connect diff --git a/gen/proto/swift/stabilityai/platformapis/dashboard/v1/dashboard.pb.swift b/gen/proto/swift/stability_api/platform/dashboard/v1/dashboard.pb.swift similarity index 99% rename from gen/proto/swift/stabilityai/platformapis/dashboard/v1/dashboard.pb.swift rename to gen/proto/swift/stability_api/platform/dashboard/v1/dashboard.pb.swift index 3847aaa..c94a341 100644 --- a/gen/proto/swift/stabilityai/platformapis/dashboard/v1/dashboard.pb.swift +++ b/gen/proto/swift/stability_api/platform/dashboard/v1/dashboard.pb.swift @@ -2,7 +2,7 @@ // swift-format-ignore-file // // Generated by the Swift generator plugin for the protocol buffer compiler. -// Source: stabilityai/platformapis/dashboard/v1/dashboard.proto +// Source: stability_api/platform/dashboard/v1/dashboard.proto // // For information on using the generated types, please see the documentation: // https://github.com/apple/swift-protobuf/ diff --git a/gen/proto/swift/stabilityai/platformapis/engines/v1/engines.connect.swift b/gen/proto/swift/stability_api/platform/engines/v1/engines.connect.swift similarity index 95% rename from gen/proto/swift/stabilityai/platformapis/engines/v1/engines.connect.swift rename to gen/proto/swift/stability_api/platform/engines/v1/engines.connect.swift index 976bb5e..42d18f2 100644 --- a/gen/proto/swift/stabilityai/platformapis/engines/v1/engines.connect.swift +++ b/gen/proto/swift/stability_api/platform/engines/v1/engines.connect.swift @@ -1,6 +1,6 @@ // Code generated by protoc-gen-connect-swift. DO NOT EDIT. // -// Source: stabilityai/platformapis/engines/v1/engines.proto +// Source: stability_api/platform/engines/v1/engines.proto // import Connect diff --git a/gen/proto/swift/stabilityai/platformapis/engines/v1/engines.pb.swift b/gen/proto/swift/stability_api/platform/engines/v1/engines.pb.swift similarity index 99% rename from gen/proto/swift/stabilityai/platformapis/engines/v1/engines.pb.swift rename to gen/proto/swift/stability_api/platform/engines/v1/engines.pb.swift index 9f17a1e..7811c8c 100644 --- a/gen/proto/swift/stabilityai/platformapis/engines/v1/engines.pb.swift +++ b/gen/proto/swift/stability_api/platform/engines/v1/engines.pb.swift @@ -2,7 +2,7 @@ // swift-format-ignore-file // // Generated by the Swift generator plugin for the protocol buffer compiler. -// Source: stabilityai/platformapis/engines/v1/engines.proto +// Source: stability_api/platform/engines/v1/engines.proto // // For information on using the generated types, please see the documentation: // https://github.com/apple/swift-protobuf/ diff --git a/gen/proto/swift/stabilityai/platformapis/generation/v1/generation.connect.swift b/gen/proto/swift/stability_api/platform/generation/v1/generation.connect.swift similarity index 97% rename from gen/proto/swift/stabilityai/platformapis/generation/v1/generation.connect.swift rename to gen/proto/swift/stability_api/platform/generation/v1/generation.connect.swift index e108a7a..ed25fb0 100644 --- a/gen/proto/swift/stabilityai/platformapis/generation/v1/generation.connect.swift +++ b/gen/proto/swift/stability_api/platform/generation/v1/generation.connect.swift @@ -1,6 +1,6 @@ // Code generated by protoc-gen-connect-swift. DO NOT EDIT. // -// Source: stabilityai/platformapis/generation/v1/generation.proto +// Source: stability_api/platform/generation/v1/generation.proto // import Connect diff --git a/gen/proto/swift/stabilityai/platformapis/generation/v1/generation.pb.swift b/gen/proto/swift/stability_api/platform/generation/v1/generation.pb.swift similarity index 99% rename from gen/proto/swift/stabilityai/platformapis/generation/v1/generation.pb.swift rename to gen/proto/swift/stability_api/platform/generation/v1/generation.pb.swift index ffc36c0..191251c 100644 --- a/gen/proto/swift/stabilityai/platformapis/generation/v1/generation.pb.swift +++ b/gen/proto/swift/stability_api/platform/generation/v1/generation.pb.swift @@ -2,7 +2,7 @@ // swift-format-ignore-file // // Generated by the Swift generator plugin for the protocol buffer compiler. -// Source: stabilityai/platformapis/generation/v1/generation.proto +// Source: stability_api/platform/generation/v1/generation.proto // // For information on using the generated types, please see the documentation: // https://github.com/apple/swift-protobuf/ diff --git a/gen/proto/swift/stabilityai/platformapis/project/v1/project.connect.swift b/gen/proto/swift/stability_api/platform/project/v1/project.connect.swift similarity index 99% rename from gen/proto/swift/stabilityai/platformapis/project/v1/project.connect.swift rename to gen/proto/swift/stability_api/platform/project/v1/project.connect.swift index fe0ea88..347d661 100644 --- a/gen/proto/swift/stabilityai/platformapis/project/v1/project.connect.swift +++ b/gen/proto/swift/stability_api/platform/project/v1/project.connect.swift @@ -1,6 +1,6 @@ // Code generated by protoc-gen-connect-swift. DO NOT EDIT. // -// Source: stabilityai/platformapis/project/v1/project.proto +// Source: stability_api/platform/project/v1/project.proto // import Connect diff --git a/gen/proto/swift/stabilityai/platformapis/project/v1/project.pb.swift b/gen/proto/swift/stability_api/platform/project/v1/project.pb.swift similarity index 99% rename from gen/proto/swift/stabilityai/platformapis/project/v1/project.pb.swift rename to gen/proto/swift/stability_api/platform/project/v1/project.pb.swift index 7fd007c..1b8b875 100644 --- a/gen/proto/swift/stabilityai/platformapis/project/v1/project.pb.swift +++ b/gen/proto/swift/stability_api/platform/project/v1/project.pb.swift @@ -2,7 +2,7 @@ // swift-format-ignore-file // // Generated by the Swift generator plugin for the protocol buffer compiler. -// Source: stabilityai/platformapis/project/v1/project.proto +// Source: stability_api/platform/project/v1/project.proto // // For information on using the generated types, please see the documentation: // https://github.com/apple/swift-protobuf/ diff --git a/gen/proto/swift/stabilityai/tensors/tensors.pb.swift b/gen/proto/swift/stability_api/tensors/tensors.pb.swift similarity index 99% rename from gen/proto/swift/stabilityai/tensors/tensors.pb.swift rename to gen/proto/swift/stability_api/tensors/tensors.pb.swift index d42a8a2..20028e3 100644 --- a/gen/proto/swift/stabilityai/tensors/tensors.pb.swift +++ b/gen/proto/swift/stability_api/tensors/tensors.pb.swift @@ -2,7 +2,7 @@ // swift-format-ignore-file // // Generated by the Swift generator plugin for the protocol buffer compiler. -// Source: stabilityai/tensors/tensors.proto +// Source: stability_api/tensors/tensors.proto // // For information on using the generated types, please see the documentation: // https://github.com/apple/swift-protobuf/ diff --git a/pyproject.toml b/pyproject.toml index d8c3128..ad0d937 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,8 +36,7 @@ path = "src/stability_api/__about__.py" [tool.hatch.build.targets.wheel.force-include] "src/stability_api" = "stability_api" -"gen/proto/py/stabilityai/platformapis" = "stability_api/interfaces/platform" -"gen/proto/py/stabilityai/tensors" = "stability_api/interfaces/tensors" +"gen/proto/py/stability_api" = "stability_api" [tool.hatch.envs.default] dependencies = [ diff --git a/src/proto/stabilityai/platformapis/dashboard/v1/dashboard.proto b/src/proto/stability_api/platform/dashboard/v1/dashboard.proto similarity index 98% rename from src/proto/stabilityai/platformapis/dashboard/v1/dashboard.proto rename to src/proto/stability_api/platform/dashboard/v1/dashboard.proto index b9e7220..4825b08 100644 --- a/src/proto/stabilityai/platformapis/dashboard/v1/dashboard.proto +++ b/src/proto/stability_api/platform/dashboard/v1/dashboard.proto @@ -1,6 +1,6 @@ syntax = 'proto3'; package stabilityai.api.dashboard.v1; -option go_package = "github.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/dashboard/v1;dashboardv1"; +option go_package = "github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/dashboard/v1;dashboardv1"; enum OrganizationRole { MEMBER = 0; diff --git a/src/proto/stabilityai/platformapis/engines/v1/engines.proto b/src/proto/stability_api/platform/engines/v1/engines.proto similarity index 92% rename from src/proto/stabilityai/platformapis/engines/v1/engines.proto rename to src/proto/stability_api/platform/engines/v1/engines.proto index 224d11f..8ca2d31 100644 --- a/src/proto/stabilityai/platformapis/engines/v1/engines.proto +++ b/src/proto/stability_api/platform/engines/v1/engines.proto @@ -1,6 +1,6 @@ syntax = 'proto3'; package stabilityai.platformapis.engines.v1; -option go_package = "github.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/engines/v1;enginesv1"; +option go_package = "github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/engines/v1;enginesv1"; // Possible engine type enum EngineType { diff --git a/src/proto/stabilityai/platformapis/generation/v1/generation.proto b/src/proto/stability_api/platform/generation/v1/generation.proto similarity index 99% rename from src/proto/stabilityai/platformapis/generation/v1/generation.proto rename to src/proto/stability_api/platform/generation/v1/generation.proto index 607e71b..f8986ab 100644 --- a/src/proto/stabilityai/platformapis/generation/v1/generation.proto +++ b/src/proto/stability_api/platform/generation/v1/generation.proto @@ -1,8 +1,8 @@ syntax = 'proto3'; package stabilityai.platformapis.generation.v1; -option go_package = "github.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/generation/v1;generationv1"; +option go_package = "github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/generation/v1;generationv1"; import "google/protobuf/struct.proto"; -import "stabilityai/tensors/tensors.proto"; +import "stability_api/tensors/tensors.proto"; enum FinishReason { NULL = 0; diff --git a/src/proto/stabilityai/platformapis/project/v1/project.proto b/src/proto/stability_api/platform/project/v1/project.proto similarity index 98% rename from src/proto/stabilityai/platformapis/project/v1/project.proto rename to src/proto/stability_api/platform/project/v1/project.proto index 379f3bb..11f538d 100644 --- a/src/proto/stabilityai/platformapis/project/v1/project.proto +++ b/src/proto/stability_api/platform/project/v1/project.proto @@ -1,7 +1,7 @@ syntax = 'proto3'; package stabilityai.platformapis.project.v1; -option go_package = "github.com/stability-ai/api-interfaces/gen/proto/go/stabilityai/platformapis/project/v1;projectv1"; -import "stabilityai/platformapis/generation/v1/generation.proto"; +option go_package = "github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/project/v1;projectv1"; +import "stability_api/platform/generation/v1/generation.proto"; enum ProjectAccess { PROJECT_ACCESS_PRIVATE = 0; // Private access, only owner organization can access diff --git a/src/proto/stabilityai/tensors/tensors.proto b/src/proto/stability_api/tensors/tensors.proto similarity index 100% rename from src/proto/stabilityai/tensors/tensors.proto rename to src/proto/stability_api/tensors/tensors.proto From 19fd1bf29b08cede4f1da6787ee06469ac7e39f0 Mon Sep 17 00:00:00 2001 From: Stephan Auerhahn Date: Thu, 11 May 2023 09:19:27 +0000 Subject: [PATCH 08/20] bump version --- src/stability_api/__about__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stability_api/__about__.py b/src/stability_api/__about__.py index a049c7f..b66be8d 100644 --- a/src/stability_api/__about__.py +++ b/src/stability_api/__about__.py @@ -1 +1 @@ -__version__ = "0.1.0-dev" \ No newline at end of file +__version__ = "0.1.1.dev0" \ No newline at end of file From 84a90b8454bf5e1bbcfb17e28a7131d7eeba90e4 Mon Sep 17 00:00:00 2001 From: Stephan Auerhahn Date: Thu, 11 May 2023 10:23:01 +0000 Subject: [PATCH 09/20] more experimenting --- .gitignore | 2 +- buf.gen.go.yaml | 12 +- buf.gen.js.yaml | 4 +- buf.gen.kt.yaml | 4 +- buf.gen.py.yaml | 6 +- buf.gen.swift.yaml | 4 +- .../api/dashboard/v1/APIKeyFindRequestKt.kt | 51 - .../stabilityai/api/dashboard/v1/APIKeyKt.kt | 85 - .../api/dashboard/v1/APIKeyRequestKt.kt | 51 - .../api/dashboard/v1/AutoChargeIntentKt.kt | 136 - .../stabilityai/api/dashboard/v1/ChargeKt.kt | 136 - .../stabilityai/api/dashboard/v1/ChargesKt.kt | 106 - .../api/dashboard/v1/ClientSettingsKt.kt | 51 - .../api/dashboard/v1/CostDataKt.kt | 68 - .../api/dashboard/v1/CostTotalKt.kt | 68 - .../v1/CreateAutoChargeIntentRequestKt.kt | 102 - .../api/dashboard/v1/CreateChargeRequestKt.kt | 68 - .../api/dashboard/v1/DashboardProtoKt.kt | 7 - .../dashboard/v1/DashboardServiceClient.kt | 218 - .../v1/DashboardServiceClientInterface.kt | 70 - .../api/dashboard/v1/EmptyRequestKt.kt | 34 - .../dashboard/v1/GetAutoChargeRequestKt.kt | 51 - .../api/dashboard/v1/GetChargesRequestKt.kt | 85 - .../api/dashboard/v1/GetMetricsRequestKt.kt | 126 - .../dashboard/v1/GetOrganizationRequestKt.kt | 51 - .../stabilityai/api/dashboard/v1/MetricsKt.kt | 133 - .../dashboard/v1/OrganizationAutoChargeKt.kt | 85 - .../api/dashboard/v1/OrganizationGrantKt.kt | 102 - .../api/dashboard/v1/OrganizationKt.kt | 239 - .../api/dashboard/v1/OrganizationMemberKt.kt | 131 - .../dashboard/v1/OrganizationPaymentInfoKt.kt | 123 - .../api/dashboard/v1/TotalMetricsDataKt.kt | 88 - .../v1/UpdateDefaultOrganizationRequestKt.kt | 51 - .../dashboard/v1/UpdateUserInfoRequestKt.kt | 58 - .../api/dashboard/v1/UsageMetricKt.kt | 163 - .../stabilityai/api/dashboard/v1/UserKt.kt | 294 - .../v1/UserPasswordChangeTicketKt.kt | 51 - .../platformapis/engines/v1/EngineInfoKt.kt | 171 - .../platformapis/engines/v1/EnginesKt.kt | 110 - .../platformapis/engines/v1/EnginesProtoKt.kt | 7 - .../engines/v1/EnginesServiceClient.kt | 26 - .../v1/EnginesServiceClientInterface.kt | 13 - .../engines/v1/ListEnginesRequestKt.kt | 38 - .../generation/v1/AnswerBatchKt.kt | 128 - .../platformapis/generation/v1/AnswerKt.kt | 208 - .../generation/v1/AnswerMetaKt.kt | 135 - .../platformapis/generation/v1/ArtifactKt.kt | 457 -- .../generation/v1/AssetParametersKt.kt | 99 - .../generation/v1/CameraParametersKt.kt | 144 - .../generation/v1/ChainRequestKt.kt | 123 - .../generation/v1/ClassifierCategoryKt.kt | 209 - .../generation/v1/ClassifierConceptKt.kt | 75 - .../generation/v1/ClassifierParametersKt.kt | 209 - .../generation/v1/ConditionerParametersKt.kt | 92 - .../generation/v1/CutoutParametersKt.kt | 278 - .../generation/v1/GenerationProtoKt.kt | 7 - .../generation/v1/GenerationServiceClient.kt | 40 - .../v1/GenerationServiceClientInterface.kt | 20 - .../v1/GuidanceInstanceParametersKt.kt | 358 -- .../generation/v1/GuidanceParametersKt.kt | 171 - .../v1/GuidanceScheduleParametersKt.kt | 75 - .../generation/v1/ImageParametersKt.kt | 418 -- .../generation/v1/InterpolateParametersKt.kt | 134 - .../platformapis/generation/v1/ModelKt.kt | 143 - .../platformapis/generation/v1/OnStatusKt.kt | 188 - .../platformapis/generation/v1/PromptKt.kt | 158 - .../generation/v1/PromptParametersKt.kt | 98 - .../platformapis/generation/v1/RequestKt.kt | 382 -- .../generation/v1/SamplerParametersKt.kt | 230 - .../generation/v1/ScheduleParametersKt.kt | 146 - .../platformapis/generation/v1/StageKt.kt | 150 - .../generation/v1/StepParameterKt.kt | 142 - .../platformapis/generation/v1/TokenKt.kt | 79 - .../platformapis/generation/v1/TokensKt.kt | 134 - .../generation/v1/TransformCameraPoseKt.kt | 157 - .../generation/v1/TransformColorAdjustKt.kt | 370 -- .../generation/v1/TransformDepthCalcKt.kt | 142 - .../generation/v1/TransformMatrixKt.kt | 155 - .../generation/v1/TransformParametersKt.kt | 149 - .../generation/v1/TransformResampleKt.kt | 218 - .../generation/v1/TransformTypeKt.kt | 103 - .../project/v1/CreateProjectRequestKt.kt | 200 - .../project/v1/DeleteAssetsRequestKt.kt | 193 - .../project/v1/DeleteAssetsResponseKt.kt | 182 - .../project/v1/DeleteProjectRequestKt.kt | 95 - .../project/v1/GetProjectRequestKt.kt | 95 - .../project/v1/ListProjectRequestKt.kt | 70 - .../platformapis/project/v1/ProjectAssetKt.kt | 340 -- .../platformapis/project/v1/ProjectKt.kt | 387 -- .../platformapis/project/v1/ProjectProtoKt.kt | 7 - .../project/v1/ProjectServiceClient.kt | 150 - .../v1/ProjectServiceClientInterface.kt | 66 - .../project/v1/QueryAssetsRequestKt.kt | 449 -- .../project/v1/QueryAssetsResponseKt.kt | 170 - .../project/v1/TagAssetsRequestKt.kt | 278 - .../project/v1/TagAssetsResponseKt.kt | 182 - .../project/v1/UntagAssetsRequestKt.kt | 291 - .../project/v1/UntagAssetsResponseKt.kt | 182 - .../project/v1/UpdateProjectRequestKt.kt | 258 - gen/proto/kt/com/tensors/AttributeKt.kt | 208 - gen/proto/kt/com/tensors/ModuleKt.kt | 193 - gen/proto/kt/com/tensors/TensorKt.kt | 171 - gen/proto/kt/com/tensors/TensorsProtoKt.kt | 7 - .../dashboard/v1/dashboard.connect.swift | 173 - .../platform/dashboard/v1/dashboard.pb.swift | 1953 ------- .../platform/engines/v1/engines.connect.swift | 34 - .../platform/engines/v1/engines.pb.swift | 316 - .../generation/v1/generation.connect.swift | 45 - .../generation/v1/generation.pb.swift | 5094 ----------------- .../platform/project/v1/project.connect.swift | 116 - .../platform/project/v1/project.pb.swift | 1725 ------ .../stability_api/tensors/tensors.pb.swift | 583 -- package-lock.json | 17 +- package.json | 17 +- pyproject.toml | 1 - src/js/main.js | 0 src/stability_api/index.js | 0 .../platform/dashboard/v1/dashboard.pb.go | 0 .../dashboard/v1/dashboard_connect.d.ts | 0 .../dashboard/v1/dashboard_connect.js | 0 .../dashboard/v1/dashboard_grpc.pb.go | 0 .../platform/dashboard/v1/dashboard_pb.d.ts | 0 .../platform/dashboard/v1/dashboard_pb.js | 0 .../platform/dashboard/v1/dashboard_pb2.py | 0 .../platform/dashboard/v1/dashboard_pb2.pyi | 0 .../dashboard/v1/dashboard_pb2_grpc.py | 0 .../dashboardv1connect/dashboard.connect.go | 0 .../platform/engines/v1/engines.pb.go | 0 .../platform/engines/v1/engines_connect.d.ts | 0 .../platform/engines/v1/engines_connect.js | 0 .../platform/engines/v1/engines_grpc.pb.go | 0 .../platform/engines/v1/engines_pb.d.ts | 0 .../platform/engines/v1/engines_pb.js | 0 .../platform/engines/v1/engines_pb2.py | 0 .../platform/engines/v1/engines_pb2.pyi | 0 .../platform/engines/v1/engines_pb2_grpc.py | 0 .../v1/enginesv1connect/engines.connect.go | 0 .../platform/generation/v1/generation.pb.go | 0 .../generation/v1/generation_connect.d.ts | 0 .../generation/v1/generation_connect.js | 0 .../generation/v1/generation_grpc.pb.go | 0 .../platform/generation/v1/generation_pb.d.ts | 0 .../platform/generation/v1/generation_pb.js | 0 .../platform/generation/v1/generation_pb2.py | 0 .../platform/generation/v1/generation_pb2.pyi | 0 .../generation/v1/generation_pb2_grpc.py | 0 .../generationv1connect/generation.connect.go | 0 .../platform/project/v1/project.pb.go | 0 .../platform/project/v1/project_connect.d.ts | 0 .../platform/project/v1/project_connect.js | 0 .../platform/project/v1/project_grpc.pb.go | 0 .../platform/project/v1/project_pb.d.ts | 0 .../platform/project/v1/project_pb.js | 0 .../platform/project/v1/project_pb2.py | 0 .../platform/project/v1/project_pb2.pyi | 0 .../platform/project/v1/project_pb2_grpc.py | 0 .../v1/projectv1connect/project.connect.go | 0 .../stability_api/tensors/tensors.pb.go | 0 .../stability_api/tensors/tensors_pb.d.ts | 0 .../stability_api/tensors/tensors_pb.js | 0 .../stability_api/tensors/tensors_pb2.py | 0 .../stability_api/tensors/tensors_pb2.pyi | 0 .../stability_api/tensors/tensors_pb2_grpc.py | 0 163 files changed, 24 insertions(+), 24227 deletions(-) delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyFindRequestKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyRequestKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/AutoChargeIntentKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/ChargeKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/ChargesKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/ClientSettingsKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/CostDataKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/CostTotalKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/CreateAutoChargeIntentRequestKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/CreateChargeRequestKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardProtoKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardServiceClient.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardServiceClientInterface.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/EmptyRequestKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/GetAutoChargeRequestKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/GetChargesRequestKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/GetMetricsRequestKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/GetOrganizationRequestKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/MetricsKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationAutoChargeKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationGrantKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationMemberKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationPaymentInfoKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/TotalMetricsDataKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/UpdateDefaultOrganizationRequestKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/UpdateUserInfoRequestKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/UsageMetricKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/UserKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/api/dashboard/v1/UserPasswordChangeTicketKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/engines/v1/EngineInfoKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesProtoKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesServiceClient.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesServiceClientInterface.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/engines/v1/ListEnginesRequestKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerBatchKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerMetaKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/ArtifactKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/AssetParametersKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/CameraParametersKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/ChainRequestKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierCategoryKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierConceptKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierParametersKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/ConditionerParametersKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/CutoutParametersKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationProtoKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationServiceClient.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationServiceClientInterface.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceInstanceParametersKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceParametersKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceScheduleParametersKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/ImageParametersKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/InterpolateParametersKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/ModelKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/OnStatusKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/PromptKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/PromptParametersKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/RequestKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/SamplerParametersKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/ScheduleParametersKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/StageKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/StepParameterKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/TokenKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/TokensKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformCameraPoseKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformColorAdjustKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformDepthCalcKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformMatrixKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformParametersKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformResampleKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformTypeKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/CreateProjectRequestKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteAssetsRequestKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteAssetsResponseKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteProjectRequestKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/GetProjectRequestKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/ListProjectRequestKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectAssetKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectProtoKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectServiceClient.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectServiceClientInterface.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/QueryAssetsRequestKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/QueryAssetsResponseKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/TagAssetsRequestKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/TagAssetsResponseKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/UntagAssetsRequestKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/UntagAssetsResponseKt.kt delete mode 100644 gen/proto/kt/com/stabilityai/platformapis/project/v1/UpdateProjectRequestKt.kt delete mode 100644 gen/proto/kt/com/tensors/AttributeKt.kt delete mode 100644 gen/proto/kt/com/tensors/ModuleKt.kt delete mode 100644 gen/proto/kt/com/tensors/TensorKt.kt delete mode 100644 gen/proto/kt/com/tensors/TensorsProtoKt.kt delete mode 100644 gen/proto/swift/stability_api/platform/dashboard/v1/dashboard.connect.swift delete mode 100644 gen/proto/swift/stability_api/platform/dashboard/v1/dashboard.pb.swift delete mode 100644 gen/proto/swift/stability_api/platform/engines/v1/engines.connect.swift delete mode 100644 gen/proto/swift/stability_api/platform/engines/v1/engines.pb.swift delete mode 100644 gen/proto/swift/stability_api/platform/generation/v1/generation.connect.swift delete mode 100644 gen/proto/swift/stability_api/platform/generation/v1/generation.pb.swift delete mode 100644 gen/proto/swift/stability_api/platform/project/v1/project.connect.swift delete mode 100644 gen/proto/swift/stability_api/platform/project/v1/project.pb.swift delete mode 100644 gen/proto/swift/stability_api/tensors/tensors.pb.swift create mode 100644 src/js/main.js create mode 100644 src/stability_api/index.js rename {gen/proto/go => src}/stability_api/platform/dashboard/v1/dashboard.pb.go (100%) rename {gen/proto/js => src}/stability_api/platform/dashboard/v1/dashboard_connect.d.ts (100%) rename {gen/proto/js => src}/stability_api/platform/dashboard/v1/dashboard_connect.js (100%) rename {gen/proto/go => src}/stability_api/platform/dashboard/v1/dashboard_grpc.pb.go (100%) rename {gen/proto/js => src}/stability_api/platform/dashboard/v1/dashboard_pb.d.ts (100%) rename {gen/proto/js => src}/stability_api/platform/dashboard/v1/dashboard_pb.js (100%) rename {gen/proto/py => src}/stability_api/platform/dashboard/v1/dashboard_pb2.py (100%) rename {gen/proto/py => src}/stability_api/platform/dashboard/v1/dashboard_pb2.pyi (100%) rename {gen/proto/py => src}/stability_api/platform/dashboard/v1/dashboard_pb2_grpc.py (100%) rename {gen/proto/go => src}/stability_api/platform/dashboard/v1/dashboardv1connect/dashboard.connect.go (100%) rename {gen/proto/go => src}/stability_api/platform/engines/v1/engines.pb.go (100%) rename {gen/proto/js => src}/stability_api/platform/engines/v1/engines_connect.d.ts (100%) rename {gen/proto/js => src}/stability_api/platform/engines/v1/engines_connect.js (100%) rename {gen/proto/go => src}/stability_api/platform/engines/v1/engines_grpc.pb.go (100%) rename {gen/proto/js => src}/stability_api/platform/engines/v1/engines_pb.d.ts (100%) rename {gen/proto/js => src}/stability_api/platform/engines/v1/engines_pb.js (100%) rename {gen/proto/py => src}/stability_api/platform/engines/v1/engines_pb2.py (100%) rename {gen/proto/py => src}/stability_api/platform/engines/v1/engines_pb2.pyi (100%) rename {gen/proto/py => src}/stability_api/platform/engines/v1/engines_pb2_grpc.py (100%) rename {gen/proto/go => src}/stability_api/platform/engines/v1/enginesv1connect/engines.connect.go (100%) rename {gen/proto/go => src}/stability_api/platform/generation/v1/generation.pb.go (100%) rename {gen/proto/js => src}/stability_api/platform/generation/v1/generation_connect.d.ts (100%) rename {gen/proto/js => src}/stability_api/platform/generation/v1/generation_connect.js (100%) rename {gen/proto/go => src}/stability_api/platform/generation/v1/generation_grpc.pb.go (100%) rename {gen/proto/js => src}/stability_api/platform/generation/v1/generation_pb.d.ts (100%) rename {gen/proto/js => src}/stability_api/platform/generation/v1/generation_pb.js (100%) rename {gen/proto/py => src}/stability_api/platform/generation/v1/generation_pb2.py (100%) rename {gen/proto/py => src}/stability_api/platform/generation/v1/generation_pb2.pyi (100%) rename {gen/proto/py => src}/stability_api/platform/generation/v1/generation_pb2_grpc.py (100%) rename {gen/proto/go => src}/stability_api/platform/generation/v1/generationv1connect/generation.connect.go (100%) rename {gen/proto/go => src}/stability_api/platform/project/v1/project.pb.go (100%) rename {gen/proto/js => src}/stability_api/platform/project/v1/project_connect.d.ts (100%) rename {gen/proto/js => src}/stability_api/platform/project/v1/project_connect.js (100%) rename {gen/proto/go => src}/stability_api/platform/project/v1/project_grpc.pb.go (100%) rename {gen/proto/js => src}/stability_api/platform/project/v1/project_pb.d.ts (100%) rename {gen/proto/js => src}/stability_api/platform/project/v1/project_pb.js (100%) rename {gen/proto/py => src}/stability_api/platform/project/v1/project_pb2.py (100%) rename {gen/proto/py => src}/stability_api/platform/project/v1/project_pb2.pyi (100%) rename {gen/proto/py => src}/stability_api/platform/project/v1/project_pb2_grpc.py (100%) rename {gen/proto/go => src}/stability_api/platform/project/v1/projectv1connect/project.connect.go (100%) rename {gen/proto/go => src}/stability_api/tensors/tensors.pb.go (100%) rename {gen/proto/js => src}/stability_api/tensors/tensors_pb.d.ts (100%) rename {gen/proto/js => src}/stability_api/tensors/tensors_pb.js (100%) rename {gen/proto/py => src}/stability_api/tensors/tensors_pb2.py (100%) rename {gen/proto/py => src}/stability_api/tensors/tensors_pb2.pyi (100%) rename {gen/proto/py => src}/stability_api/tensors/tensors_pb2_grpc.py (100%) diff --git a/.gitignore b/.gitignore index fc5ff68..f7127cc 100644 --- a/.gitignore +++ b/.gitignore @@ -18,4 +18,4 @@ node_modules .idea pybuild/ -dist \ No newline at end of file +dist/ \ No newline at end of file diff --git a/buf.gen.go.yaml b/buf.gen.go.yaml index 14d0019..e77226d 100644 --- a/buf.gen.go.yaml +++ b/buf.gen.go.yaml @@ -10,18 +10,14 @@ managed: - buf.build/googleapis/googleapis plugins: - plugin: buf.build/bufbuild/connect-go:v1.7.0 - out: gen/proto/go + out: '.' opt: - paths=source_relative - plugin: buf.build/grpc/go:v1.3.0 - out: gen/proto/go + out: '.' opt: - paths=source_relative - plugin: buf.build/protocolbuffers/go - out: gen/proto/go + out: '.' opt: - - paths=source_relative - - plugin: buf.build/bufbuild/connect-swift:v0.5.0 - out: gen/proto/swift - - plugin: buf.build/apple/swift - out: gen/proto/swift \ No newline at end of file + - paths=source_relative \ No newline at end of file diff --git a/buf.gen.js.yaml b/buf.gen.js.yaml index 4d387c3..50c2991 100644 --- a/buf.gen.js.yaml +++ b/buf.gen.js.yaml @@ -3,6 +3,6 @@ managed: enabled: true plugins: - plugin: buf.build/bufbuild/connect-es:v0.8.6 - out: gen/proto/js + out: '.' - plugin: buf.build/bufbuild/es:v1.2.0 - out: gen/proto/js \ No newline at end of file + out: '.' \ No newline at end of file diff --git a/buf.gen.kt.yaml b/buf.gen.kt.yaml index 292b330..ae01163 100644 --- a/buf.gen.kt.yaml +++ b/buf.gen.kt.yaml @@ -3,6 +3,6 @@ managed: enabled: true plugins: - plugin: buf.build/bufbuild/connect-kotlin:v0.1.7 - out: gen/proto/kt + out: '.' - plugin: buf.build/protocolbuffers/kotlin - out: gen/proto/kt + out: '.' diff --git a/buf.gen.py.yaml b/buf.gen.py.yaml index d1f21d8..cafa8bd 100644 --- a/buf.gen.py.yaml +++ b/buf.gen.py.yaml @@ -3,8 +3,8 @@ managed: enabled: true plugins: - plugin: buf.build/grpc/python:v1.54.1 - out: gen/proto/py + out: '.' - plugin: buf.build/protocolbuffers/python - out: gen/proto/py + out: '.' - plugin: buf.build/protocolbuffers/pyi:v23.0 - out: gen/proto/py + out: '.' diff --git a/buf.gen.swift.yaml b/buf.gen.swift.yaml index 7ccc996..eff9fd2 100644 --- a/buf.gen.swift.yaml +++ b/buf.gen.swift.yaml @@ -3,6 +3,6 @@ managed: enabled: true plugins: - plugin: buf.build/bufbuild/connect-swift:v0.5.0 - out: gen/proto/swift + out: '.' - plugin: buf.build/apple/swift - out: gen/proto/swift \ No newline at end of file + out: '.' \ No newline at end of file diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyFindRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyFindRequestKt.kt deleted file mode 100644 index 00266dc..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyFindRequestKt.kt +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializeaPIKeyFindRequest") -public inline fun aPIKeyFindRequest(block: com.stabilityai.api.dashboard.v1.APIKeyFindRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.APIKeyFindRequest = - com.stabilityai.api.dashboard.v1.APIKeyFindRequestKt.Dsl._create(com.stabilityai.api.dashboard.v1.APIKeyFindRequest.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.APIKeyFindRequest` - */ -public object APIKeyFindRequestKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.APIKeyFindRequest.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.APIKeyFindRequest.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.APIKeyFindRequest = _builder.build() - - /** - * `string id = 1 [json_name = "id"];` - */ - public var id: kotlin.String - @JvmName("getId") - get() = _builder.getId() - @JvmName("setId") - set(value) { - _builder.setId(value) - } - /** - * `string id = 1 [json_name = "id"];` - */ - public fun clearId() { - _builder.clearId() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.APIKeyFindRequest.copy(block: com.stabilityai.api.dashboard.v1.APIKeyFindRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.APIKeyFindRequest = - com.stabilityai.api.dashboard.v1.APIKeyFindRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyKt.kt deleted file mode 100644 index fc9c158..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyKt.kt +++ /dev/null @@ -1,85 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializeaPIKey") -public inline fun aPIKey(block: com.stabilityai.api.dashboard.v1.APIKeyKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.APIKey = - com.stabilityai.api.dashboard.v1.APIKeyKt.Dsl._create(com.stabilityai.api.dashboard.v1.APIKey.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.APIKey` - */ -public object APIKeyKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.APIKey.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.APIKey.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.APIKey = _builder.build() - - /** - * `string key = 1 [json_name = "key"];` - */ - public var key: kotlin.String - @JvmName("getKey") - get() = _builder.getKey() - @JvmName("setKey") - set(value) { - _builder.setKey(value) - } - /** - * `string key = 1 [json_name = "key"];` - */ - public fun clearKey() { - _builder.clearKey() - } - - /** - * `bool is_secret = 2 [json_name = "isSecret"];` - */ - public var isSecret: kotlin.Boolean - @JvmName("getIsSecret") - get() = _builder.getIsSecret() - @JvmName("setIsSecret") - set(value) { - _builder.setIsSecret(value) - } - /** - * `bool is_secret = 2 [json_name = "isSecret"];` - */ - public fun clearIsSecret() { - _builder.clearIsSecret() - } - - /** - * `uint64 created_at = 3 [json_name = "createdAt"];` - */ - public var createdAt: kotlin.Long - @JvmName("getCreatedAt") - get() = _builder.getCreatedAt() - @JvmName("setCreatedAt") - set(value) { - _builder.setCreatedAt(value) - } - /** - * `uint64 created_at = 3 [json_name = "createdAt"];` - */ - public fun clearCreatedAt() { - _builder.clearCreatedAt() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.APIKey.copy(block: com.stabilityai.api.dashboard.v1.APIKeyKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.APIKey = - com.stabilityai.api.dashboard.v1.APIKeyKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyRequestKt.kt deleted file mode 100644 index 1c154b8..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/APIKeyRequestKt.kt +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializeaPIKeyRequest") -public inline fun aPIKeyRequest(block: com.stabilityai.api.dashboard.v1.APIKeyRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.APIKeyRequest = - com.stabilityai.api.dashboard.v1.APIKeyRequestKt.Dsl._create(com.stabilityai.api.dashboard.v1.APIKeyRequest.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.APIKeyRequest` - */ -public object APIKeyRequestKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.APIKeyRequest.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.APIKeyRequest.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.APIKeyRequest = _builder.build() - - /** - * `bool is_secret = 1 [json_name = "isSecret"];` - */ - public var isSecret: kotlin.Boolean - @JvmName("getIsSecret") - get() = _builder.getIsSecret() - @JvmName("setIsSecret") - set(value) { - _builder.setIsSecret(value) - } - /** - * `bool is_secret = 1 [json_name = "isSecret"];` - */ - public fun clearIsSecret() { - _builder.clearIsSecret() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.APIKeyRequest.copy(block: com.stabilityai.api.dashboard.v1.APIKeyRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.APIKeyRequest = - com.stabilityai.api.dashboard.v1.APIKeyRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/AutoChargeIntentKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/AutoChargeIntentKt.kt deleted file mode 100644 index 4250f5e..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/AutoChargeIntentKt.kt +++ /dev/null @@ -1,136 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializeautoChargeIntent") -public inline fun autoChargeIntent(block: com.stabilityai.api.dashboard.v1.AutoChargeIntentKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.AutoChargeIntent = - com.stabilityai.api.dashboard.v1.AutoChargeIntentKt.Dsl._create(com.stabilityai.api.dashboard.v1.AutoChargeIntent.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.AutoChargeIntent` - */ -public object AutoChargeIntentKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.AutoChargeIntent.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.AutoChargeIntent.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.AutoChargeIntent = _builder.build() - - /** - * `string id = 1 [json_name = "id"];` - */ - public var id: kotlin.String - @JvmName("getId") - get() = _builder.getId() - @JvmName("setId") - set(value) { - _builder.setId(value) - } - /** - * `string id = 1 [json_name = "id"];` - */ - public fun clearId() { - _builder.clearId() - } - - /** - * `string payment_link = 2 [json_name = "paymentLink"];` - */ - public var paymentLink: kotlin.String - @JvmName("getPaymentLink") - get() = _builder.getPaymentLink() - @JvmName("setPaymentLink") - set(value) { - _builder.setPaymentLink(value) - } - /** - * `string payment_link = 2 [json_name = "paymentLink"];` - */ - public fun clearPaymentLink() { - _builder.clearPaymentLink() - } - - /** - * `uint64 created_at = 3 [json_name = "createdAt"];` - */ - public var createdAt: kotlin.Long - @JvmName("getCreatedAt") - get() = _builder.getCreatedAt() - @JvmName("setCreatedAt") - set(value) { - _builder.setCreatedAt(value) - } - /** - * `uint64 created_at = 3 [json_name = "createdAt"];` - */ - public fun clearCreatedAt() { - _builder.clearCreatedAt() - } - - /** - * `uint64 monthly_maximum = 4 [json_name = "monthlyMaximum"];` - */ - public var monthlyMaximum: kotlin.Long - @JvmName("getMonthlyMaximum") - get() = _builder.getMonthlyMaximum() - @JvmName("setMonthlyMaximum") - set(value) { - _builder.setMonthlyMaximum(value) - } - /** - * `uint64 monthly_maximum = 4 [json_name = "monthlyMaximum"];` - */ - public fun clearMonthlyMaximum() { - _builder.clearMonthlyMaximum() - } - - /** - * `uint64 minimum_value = 5 [json_name = "minimumValue"];` - */ - public var minimumValue: kotlin.Long - @JvmName("getMinimumValue") - get() = _builder.getMinimumValue() - @JvmName("setMinimumValue") - set(value) { - _builder.setMinimumValue(value) - } - /** - * `uint64 minimum_value = 5 [json_name = "minimumValue"];` - */ - public fun clearMinimumValue() { - _builder.clearMinimumValue() - } - - /** - * `uint64 amount_credits = 6 [json_name = "amountCredits"];` - */ - public var amountCredits: kotlin.Long - @JvmName("getAmountCredits") - get() = _builder.getAmountCredits() - @JvmName("setAmountCredits") - set(value) { - _builder.setAmountCredits(value) - } - /** - * `uint64 amount_credits = 6 [json_name = "amountCredits"];` - */ - public fun clearAmountCredits() { - _builder.clearAmountCredits() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.AutoChargeIntent.copy(block: com.stabilityai.api.dashboard.v1.AutoChargeIntentKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.AutoChargeIntent = - com.stabilityai.api.dashboard.v1.AutoChargeIntentKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/ChargeKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/ChargeKt.kt deleted file mode 100644 index 1f64776..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/ChargeKt.kt +++ /dev/null @@ -1,136 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializecharge") -public inline fun charge(block: com.stabilityai.api.dashboard.v1.ChargeKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.Charge = - com.stabilityai.api.dashboard.v1.ChargeKt.Dsl._create(com.stabilityai.api.dashboard.v1.Charge.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.Charge` - */ -public object ChargeKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.Charge.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.Charge.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.Charge = _builder.build() - - /** - * `string id = 1 [json_name = "id"];` - */ - public var id: kotlin.String - @JvmName("getId") - get() = _builder.getId() - @JvmName("setId") - set(value) { - _builder.setId(value) - } - /** - * `string id = 1 [json_name = "id"];` - */ - public fun clearId() { - _builder.clearId() - } - - /** - * `bool paid = 2 [json_name = "paid"];` - */ - public var paid: kotlin.Boolean - @JvmName("getPaid") - get() = _builder.getPaid() - @JvmName("setPaid") - set(value) { - _builder.setPaid(value) - } - /** - * `bool paid = 2 [json_name = "paid"];` - */ - public fun clearPaid() { - _builder.clearPaid() - } - - /** - * `string receipt_link = 3 [json_name = "receiptLink"];` - */ - public var receiptLink: kotlin.String - @JvmName("getReceiptLink") - get() = _builder.getReceiptLink() - @JvmName("setReceiptLink") - set(value) { - _builder.setReceiptLink(value) - } - /** - * `string receipt_link = 3 [json_name = "receiptLink"];` - */ - public fun clearReceiptLink() { - _builder.clearReceiptLink() - } - - /** - * `string payment_link = 4 [json_name = "paymentLink"];` - */ - public var paymentLink: kotlin.String - @JvmName("getPaymentLink") - get() = _builder.getPaymentLink() - @JvmName("setPaymentLink") - set(value) { - _builder.setPaymentLink(value) - } - /** - * `string payment_link = 4 [json_name = "paymentLink"];` - */ - public fun clearPaymentLink() { - _builder.clearPaymentLink() - } - - /** - * `uint64 created_at = 5 [json_name = "createdAt"];` - */ - public var createdAt: kotlin.Long - @JvmName("getCreatedAt") - get() = _builder.getCreatedAt() - @JvmName("setCreatedAt") - set(value) { - _builder.setCreatedAt(value) - } - /** - * `uint64 created_at = 5 [json_name = "createdAt"];` - */ - public fun clearCreatedAt() { - _builder.clearCreatedAt() - } - - /** - * `uint64 amount_credits = 6 [json_name = "amountCredits"];` - */ - public var amountCredits: kotlin.Long - @JvmName("getAmountCredits") - get() = _builder.getAmountCredits() - @JvmName("setAmountCredits") - set(value) { - _builder.setAmountCredits(value) - } - /** - * `uint64 amount_credits = 6 [json_name = "amountCredits"];` - */ - public fun clearAmountCredits() { - _builder.clearAmountCredits() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.Charge.copy(block: com.stabilityai.api.dashboard.v1.ChargeKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.Charge = - com.stabilityai.api.dashboard.v1.ChargeKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/ChargesKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/ChargesKt.kt deleted file mode 100644 index f7a5064..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/ChargesKt.kt +++ /dev/null @@ -1,106 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializecharges") -public inline fun charges(block: com.stabilityai.api.dashboard.v1.ChargesKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.Charges = - com.stabilityai.api.dashboard.v1.ChargesKt.Dsl._create(com.stabilityai.api.dashboard.v1.Charges.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.Charges` - */ -public object ChargesKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.Charges.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.Charges.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.Charges = _builder.build() - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class ChargesProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * `repeated .stabilityai.api.dashboard.v1.Charge charges = 1 [json_name = "charges"];` - */ - public val charges: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getChargesList() - ) - /** - * `repeated .stabilityai.api.dashboard.v1.Charge charges = 1 [json_name = "charges"];` - * @param value The charges to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addCharges") - public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.api.dashboard.v1.Charge) { - _builder.addCharges(value) - } - /** - * `repeated .stabilityai.api.dashboard.v1.Charge charges = 1 [json_name = "charges"];` - * @param value The charges to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignCharges") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.api.dashboard.v1.Charge) { - add(value) - } - /** - * `repeated .stabilityai.api.dashboard.v1.Charge charges = 1 [json_name = "charges"];` - * @param values The charges to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllCharges") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllCharges(values) - } - /** - * `repeated .stabilityai.api.dashboard.v1.Charge charges = 1 [json_name = "charges"];` - * @param values The charges to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllCharges") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * `repeated .stabilityai.api.dashboard.v1.Charge charges = 1 [json_name = "charges"];` - * @param index The index to set the value at. - * @param value The charges to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setCharges") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.api.dashboard.v1.Charge) { - _builder.setCharges(index, value) - } - /** - * `repeated .stabilityai.api.dashboard.v1.Charge charges = 1 [json_name = "charges"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearCharges") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearCharges() - } - - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.Charges.copy(block: com.stabilityai.api.dashboard.v1.ChargesKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.Charges = - com.stabilityai.api.dashboard.v1.ChargesKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/ClientSettingsKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/ClientSettingsKt.kt deleted file mode 100644 index 037e679..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/ClientSettingsKt.kt +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializeclientSettings") -public inline fun clientSettings(block: com.stabilityai.api.dashboard.v1.ClientSettingsKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.ClientSettings = - com.stabilityai.api.dashboard.v1.ClientSettingsKt.Dsl._create(com.stabilityai.api.dashboard.v1.ClientSettings.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.ClientSettings` - */ -public object ClientSettingsKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.ClientSettings.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.ClientSettings.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.ClientSettings = _builder.build() - - /** - * `bytes settings = 1 [json_name = "settings"];` - */ - public var settings: com.google.protobuf.ByteString - @JvmName("getSettings") - get() = _builder.getSettings() - @JvmName("setSettings") - set(value) { - _builder.setSettings(value) - } - /** - * `bytes settings = 1 [json_name = "settings"];` - */ - public fun clearSettings() { - _builder.clearSettings() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.ClientSettings.copy(block: com.stabilityai.api.dashboard.v1.ClientSettingsKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.ClientSettings = - com.stabilityai.api.dashboard.v1.ClientSettingsKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/CostDataKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/CostDataKt.kt deleted file mode 100644 index ab1600e..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/CostDataKt.kt +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializecostData") -public inline fun costData(block: com.stabilityai.api.dashboard.v1.CostDataKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.CostData = - com.stabilityai.api.dashboard.v1.CostDataKt.Dsl._create(com.stabilityai.api.dashboard.v1.CostData.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.CostData` - */ -public object CostDataKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.CostData.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.CostData.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.CostData = _builder.build() - - /** - * `uint32 amount_tokens = 1 [json_name = "amountTokens"];` - */ - public var amountTokens: kotlin.Int - @JvmName("getAmountTokens") - get() = _builder.getAmountTokens() - @JvmName("setAmountTokens") - set(value) { - _builder.setAmountTokens(value) - } - /** - * `uint32 amount_tokens = 1 [json_name = "amountTokens"];` - */ - public fun clearAmountTokens() { - _builder.clearAmountTokens() - } - - /** - * `double amount_credits = 2 [json_name = "amountCredits"];` - */ - public var amountCredits: kotlin.Double - @JvmName("getAmountCredits") - get() = _builder.getAmountCredits() - @JvmName("setAmountCredits") - set(value) { - _builder.setAmountCredits(value) - } - /** - * `double amount_credits = 2 [json_name = "amountCredits"];` - */ - public fun clearAmountCredits() { - _builder.clearAmountCredits() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.CostData.copy(block: com.stabilityai.api.dashboard.v1.CostDataKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.CostData = - com.stabilityai.api.dashboard.v1.CostDataKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/CostTotalKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/CostTotalKt.kt deleted file mode 100644 index c8511fd..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/CostTotalKt.kt +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializecostTotal") -public inline fun costTotal(block: com.stabilityai.api.dashboard.v1.CostTotalKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.CostTotal = - com.stabilityai.api.dashboard.v1.CostTotalKt.Dsl._create(com.stabilityai.api.dashboard.v1.CostTotal.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.CostTotal` - */ -public object CostTotalKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.CostTotal.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.CostTotal.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.CostTotal = _builder.build() - - /** - * `uint32 amount_tokens = 1 [json_name = "amountTokens"];` - */ - public var amountTokens: kotlin.Int - @JvmName("getAmountTokens") - get() = _builder.getAmountTokens() - @JvmName("setAmountTokens") - set(value) { - _builder.setAmountTokens(value) - } - /** - * `uint32 amount_tokens = 1 [json_name = "amountTokens"];` - */ - public fun clearAmountTokens() { - _builder.clearAmountTokens() - } - - /** - * `double amount_credits = 2 [json_name = "amountCredits"];` - */ - public var amountCredits: kotlin.Double - @JvmName("getAmountCredits") - get() = _builder.getAmountCredits() - @JvmName("setAmountCredits") - set(value) { - _builder.setAmountCredits(value) - } - /** - * `double amount_credits = 2 [json_name = "amountCredits"];` - */ - public fun clearAmountCredits() { - _builder.clearAmountCredits() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.CostTotal.copy(block: com.stabilityai.api.dashboard.v1.CostTotalKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.CostTotal = - com.stabilityai.api.dashboard.v1.CostTotalKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/CreateAutoChargeIntentRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/CreateAutoChargeIntentRequestKt.kt deleted file mode 100644 index a912442..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/CreateAutoChargeIntentRequestKt.kt +++ /dev/null @@ -1,102 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializecreateAutoChargeIntentRequest") -public inline fun createAutoChargeIntentRequest(block: com.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest = - com.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequestKt.Dsl._create(com.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest` - */ -public object CreateAutoChargeIntentRequestKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest = _builder.build() - - /** - * `string organization_id = 1 [json_name = "organizationId"];` - */ - public var organizationId: kotlin.String - @JvmName("getOrganizationId") - get() = _builder.getOrganizationId() - @JvmName("setOrganizationId") - set(value) { - _builder.setOrganizationId(value) - } - /** - * `string organization_id = 1 [json_name = "organizationId"];` - */ - public fun clearOrganizationId() { - _builder.clearOrganizationId() - } - - /** - * `uint64 monthly_maximum = 2 [json_name = "monthlyMaximum"];` - */ - public var monthlyMaximum: kotlin.Long - @JvmName("getMonthlyMaximum") - get() = _builder.getMonthlyMaximum() - @JvmName("setMonthlyMaximum") - set(value) { - _builder.setMonthlyMaximum(value) - } - /** - * `uint64 monthly_maximum = 2 [json_name = "monthlyMaximum"];` - */ - public fun clearMonthlyMaximum() { - _builder.clearMonthlyMaximum() - } - - /** - * `uint64 minimum_value = 3 [json_name = "minimumValue"];` - */ - public var minimumValue: kotlin.Long - @JvmName("getMinimumValue") - get() = _builder.getMinimumValue() - @JvmName("setMinimumValue") - set(value) { - _builder.setMinimumValue(value) - } - /** - * `uint64 minimum_value = 3 [json_name = "minimumValue"];` - */ - public fun clearMinimumValue() { - _builder.clearMinimumValue() - } - - /** - * `uint64 amount_credits = 4 [json_name = "amountCredits"];` - */ - public var amountCredits: kotlin.Long - @JvmName("getAmountCredits") - get() = _builder.getAmountCredits() - @JvmName("setAmountCredits") - set(value) { - _builder.setAmountCredits(value) - } - /** - * `uint64 amount_credits = 4 [json_name = "amountCredits"];` - */ - public fun clearAmountCredits() { - _builder.clearAmountCredits() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest.copy(block: com.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest = - com.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/CreateChargeRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/CreateChargeRequestKt.kt deleted file mode 100644 index e6f7461..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/CreateChargeRequestKt.kt +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializecreateChargeRequest") -public inline fun createChargeRequest(block: com.stabilityai.api.dashboard.v1.CreateChargeRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.CreateChargeRequest = - com.stabilityai.api.dashboard.v1.CreateChargeRequestKt.Dsl._create(com.stabilityai.api.dashboard.v1.CreateChargeRequest.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.CreateChargeRequest` - */ -public object CreateChargeRequestKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.CreateChargeRequest.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.CreateChargeRequest.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.CreateChargeRequest = _builder.build() - - /** - * `uint64 amount = 1 [json_name = "amount"];` - */ - public var amount: kotlin.Long - @JvmName("getAmount") - get() = _builder.getAmount() - @JvmName("setAmount") - set(value) { - _builder.setAmount(value) - } - /** - * `uint64 amount = 1 [json_name = "amount"];` - */ - public fun clearAmount() { - _builder.clearAmount() - } - - /** - * `string organization_id = 2 [json_name = "organizationId"];` - */ - public var organizationId: kotlin.String - @JvmName("getOrganizationId") - get() = _builder.getOrganizationId() - @JvmName("setOrganizationId") - set(value) { - _builder.setOrganizationId(value) - } - /** - * `string organization_id = 2 [json_name = "organizationId"];` - */ - public fun clearOrganizationId() { - _builder.clearOrganizationId() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.CreateChargeRequest.copy(block: com.stabilityai.api.dashboard.v1.CreateChargeRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.CreateChargeRequest = - com.stabilityai.api.dashboard.v1.CreateChargeRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardProtoKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardProtoKt.kt deleted file mode 100644 index cadf3bb..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardProtoKt.kt +++ /dev/null @@ -1,7 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardServiceClient.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardServiceClient.kt deleted file mode 100644 index d869908..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardServiceClient.kt +++ /dev/null @@ -1,218 +0,0 @@ -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: stability_api/platform/dashboard/v1/dashboard.proto -// -package com.stabilityai.api.dashboard.v1 - -import build.buf.connect.Headers -import build.buf.connect.MethodSpec -import build.buf.connect.ProtocolClientInterface -import build.buf.connect.ResponseMessage - -public class DashboardServiceClient( - private val client: ProtocolClientInterface, -) : DashboardServiceClientInterface { - /** - * Get info - */ - public override suspend fun getMe(request: EmptyRequest, headers: Headers): ResponseMessage - = client.unary( - request, - headers, - MethodSpec( - "stabilityai.api.dashboard.v1.DashboardService/GetMe", - com.stabilityai.api.dashboard.v1.EmptyRequest::class, - com.stabilityai.api.dashboard.v1.User::class - ), - ) - - - public override suspend fun getOrganization(request: GetOrganizationRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "stabilityai.api.dashboard.v1.DashboardService/GetOrganization", - com.stabilityai.api.dashboard.v1.GetOrganizationRequest::class, - com.stabilityai.api.dashboard.v1.Organization::class - ), - ) - - - public override suspend fun getMetrics(request: GetMetricsRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "stabilityai.api.dashboard.v1.DashboardService/GetMetrics", - com.stabilityai.api.dashboard.v1.GetMetricsRequest::class, - com.stabilityai.api.dashboard.v1.Metrics::class - ), - ) - - - /** - * API key management - */ - public override suspend fun createAPIKey(request: APIKeyRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "stabilityai.api.dashboard.v1.DashboardService/CreateAPIKey", - com.stabilityai.api.dashboard.v1.APIKeyRequest::class, - com.stabilityai.api.dashboard.v1.APIKey::class - ), - ) - - - public override suspend fun deleteAPIKey(request: APIKeyFindRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "stabilityai.api.dashboard.v1.DashboardService/DeleteAPIKey", - com.stabilityai.api.dashboard.v1.APIKeyFindRequest::class, - com.stabilityai.api.dashboard.v1.APIKey::class - ), - ) - - - /** - * User settings - */ - public override suspend fun updateDefaultOrganization(request: UpdateDefaultOrganizationRequest, - headers: Headers): ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "stabilityai.api.dashboard.v1.DashboardService/UpdateDefaultOrganization", - com.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest::class, - com.stabilityai.api.dashboard.v1.User::class - ), - ) - - - public override suspend fun getClientSettings(request: EmptyRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "stabilityai.api.dashboard.v1.DashboardService/GetClientSettings", - com.stabilityai.api.dashboard.v1.EmptyRequest::class, - com.stabilityai.api.dashboard.v1.ClientSettings::class - ), - ) - - - public override suspend fun setClientSettings(request: ClientSettings, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "stabilityai.api.dashboard.v1.DashboardService/SetClientSettings", - com.stabilityai.api.dashboard.v1.ClientSettings::class, - com.stabilityai.api.dashboard.v1.ClientSettings::class - ), - ) - - - public override suspend fun updateUserInfo(request: UpdateUserInfoRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "stabilityai.api.dashboard.v1.DashboardService/UpdateUserInfo", - com.stabilityai.api.dashboard.v1.UpdateUserInfoRequest::class, - com.stabilityai.api.dashboard.v1.User::class - ), - ) - - - public override suspend fun createPasswordChangeTicket(request: EmptyRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "stabilityai.api.dashboard.v1.DashboardService/CreatePasswordChangeTicket", - com.stabilityai.api.dashboard.v1.EmptyRequest::class, - com.stabilityai.api.dashboard.v1.UserPasswordChangeTicket::class - ), - ) - - - public override suspend fun deleteAccount(request: EmptyRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "stabilityai.api.dashboard.v1.DashboardService/DeleteAccount", - com.stabilityai.api.dashboard.v1.EmptyRequest::class, - com.stabilityai.api.dashboard.v1.User::class - ), - ) - - - /** - * Payment functions - */ - public override suspend fun createCharge(request: CreateChargeRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "stabilityai.api.dashboard.v1.DashboardService/CreateCharge", - com.stabilityai.api.dashboard.v1.CreateChargeRequest::class, - com.stabilityai.api.dashboard.v1.Charge::class - ), - ) - - - public override suspend fun getCharges(request: GetChargesRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "stabilityai.api.dashboard.v1.DashboardService/GetCharges", - com.stabilityai.api.dashboard.v1.GetChargesRequest::class, - com.stabilityai.api.dashboard.v1.Charges::class - ), - ) - - - public override suspend fun createAutoChargeIntent(request: CreateAutoChargeIntentRequest, - headers: Headers): ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "stabilityai.api.dashboard.v1.DashboardService/CreateAutoChargeIntent", - com.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest::class, - com.stabilityai.api.dashboard.v1.AutoChargeIntent::class - ), - ) - - - public override suspend fun updateAutoChargeIntent(request: CreateAutoChargeIntentRequest, - headers: Headers): ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "stabilityai.api.dashboard.v1.DashboardService/UpdateAutoChargeIntent", - com.stabilityai.api.dashboard.v1.CreateAutoChargeIntentRequest::class, - com.stabilityai.api.dashboard.v1.AutoChargeIntent::class - ), - ) - - - public override suspend fun getAutoChargeIntent(request: GetAutoChargeRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "stabilityai.api.dashboard.v1.DashboardService/GetAutoChargeIntent", - com.stabilityai.api.dashboard.v1.GetAutoChargeRequest::class, - com.stabilityai.api.dashboard.v1.AutoChargeIntent::class - ), - ) - -} diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardServiceClientInterface.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardServiceClientInterface.kt deleted file mode 100644 index ec57e4c..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/DashboardServiceClientInterface.kt +++ /dev/null @@ -1,70 +0,0 @@ -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: stability_api/platform/dashboard/v1/dashboard.proto -// -package com.stabilityai.api.dashboard.v1 - -import build.buf.connect.Headers -import build.buf.connect.ResponseMessage - -public interface DashboardServiceClientInterface { - /** - * Get info - */ - public suspend fun getMe(request: EmptyRequest, headers: Headers = emptyMap()): - ResponseMessage - - public suspend fun getOrganization(request: GetOrganizationRequest, headers: Headers = - emptyMap()): ResponseMessage - - public suspend fun getMetrics(request: GetMetricsRequest, headers: Headers = emptyMap()): - ResponseMessage - - /** - * API key management - */ - public suspend fun createAPIKey(request: APIKeyRequest, headers: Headers = emptyMap()): - ResponseMessage - - public suspend fun deleteAPIKey(request: APIKeyFindRequest, headers: Headers = emptyMap()): - ResponseMessage - - /** - * User settings - */ - public suspend fun updateDefaultOrganization(request: UpdateDefaultOrganizationRequest, - headers: Headers = emptyMap()): ResponseMessage - - public suspend fun getClientSettings(request: EmptyRequest, headers: Headers = emptyMap()): - ResponseMessage - - public suspend fun setClientSettings(request: ClientSettings, headers: Headers = emptyMap()): - ResponseMessage - - public suspend fun updateUserInfo(request: UpdateUserInfoRequest, headers: Headers = emptyMap()): - ResponseMessage - - public suspend fun createPasswordChangeTicket(request: EmptyRequest, headers: Headers = - emptyMap()): ResponseMessage - - public suspend fun deleteAccount(request: EmptyRequest, headers: Headers = emptyMap()): - ResponseMessage - - /** - * Payment functions - */ - public suspend fun createCharge(request: CreateChargeRequest, headers: Headers = emptyMap()): - ResponseMessage - - public suspend fun getCharges(request: GetChargesRequest, headers: Headers = emptyMap()): - ResponseMessage - - public suspend fun createAutoChargeIntent(request: CreateAutoChargeIntentRequest, headers: Headers - = emptyMap()): ResponseMessage - - public suspend fun updateAutoChargeIntent(request: CreateAutoChargeIntentRequest, headers: Headers - = emptyMap()): ResponseMessage - - public suspend fun getAutoChargeIntent(request: GetAutoChargeRequest, headers: Headers = - emptyMap()): ResponseMessage -} diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/EmptyRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/EmptyRequestKt.kt deleted file mode 100644 index 4f2efdd..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/EmptyRequestKt.kt +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializeemptyRequest") -public inline fun emptyRequest(block: com.stabilityai.api.dashboard.v1.EmptyRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.EmptyRequest = - com.stabilityai.api.dashboard.v1.EmptyRequestKt.Dsl._create(com.stabilityai.api.dashboard.v1.EmptyRequest.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.EmptyRequest` - */ -public object EmptyRequestKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.EmptyRequest.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.EmptyRequest.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.EmptyRequest = _builder.build() - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.EmptyRequest.copy(block: com.stabilityai.api.dashboard.v1.EmptyRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.EmptyRequest = - com.stabilityai.api.dashboard.v1.EmptyRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetAutoChargeRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetAutoChargeRequestKt.kt deleted file mode 100644 index 0cb3b6b..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetAutoChargeRequestKt.kt +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializegetAutoChargeRequest") -public inline fun getAutoChargeRequest(block: com.stabilityai.api.dashboard.v1.GetAutoChargeRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.GetAutoChargeRequest = - com.stabilityai.api.dashboard.v1.GetAutoChargeRequestKt.Dsl._create(com.stabilityai.api.dashboard.v1.GetAutoChargeRequest.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.GetAutoChargeRequest` - */ -public object GetAutoChargeRequestKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.GetAutoChargeRequest.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.GetAutoChargeRequest.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.GetAutoChargeRequest = _builder.build() - - /** - * `string organization_id = 1 [json_name = "organizationId"];` - */ - public var organizationId: kotlin.String - @JvmName("getOrganizationId") - get() = _builder.getOrganizationId() - @JvmName("setOrganizationId") - set(value) { - _builder.setOrganizationId(value) - } - /** - * `string organization_id = 1 [json_name = "organizationId"];` - */ - public fun clearOrganizationId() { - _builder.clearOrganizationId() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.GetAutoChargeRequest.copy(block: com.stabilityai.api.dashboard.v1.GetAutoChargeRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.GetAutoChargeRequest = - com.stabilityai.api.dashboard.v1.GetAutoChargeRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetChargesRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetChargesRequestKt.kt deleted file mode 100644 index abfa648..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetChargesRequestKt.kt +++ /dev/null @@ -1,85 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializegetChargesRequest") -public inline fun getChargesRequest(block: com.stabilityai.api.dashboard.v1.GetChargesRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.GetChargesRequest = - com.stabilityai.api.dashboard.v1.GetChargesRequestKt.Dsl._create(com.stabilityai.api.dashboard.v1.GetChargesRequest.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.GetChargesRequest` - */ -public object GetChargesRequestKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.GetChargesRequest.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.GetChargesRequest.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.GetChargesRequest = _builder.build() - - /** - * `string organization_id = 1 [json_name = "organizationId"];` - */ - public var organizationId: kotlin.String - @JvmName("getOrganizationId") - get() = _builder.getOrganizationId() - @JvmName("setOrganizationId") - set(value) { - _builder.setOrganizationId(value) - } - /** - * `string organization_id = 1 [json_name = "organizationId"];` - */ - public fun clearOrganizationId() { - _builder.clearOrganizationId() - } - - /** - * `uint64 range_from = 2 [json_name = "rangeFrom"];` - */ - public var rangeFrom: kotlin.Long - @JvmName("getRangeFrom") - get() = _builder.getRangeFrom() - @JvmName("setRangeFrom") - set(value) { - _builder.setRangeFrom(value) - } - /** - * `uint64 range_from = 2 [json_name = "rangeFrom"];` - */ - public fun clearRangeFrom() { - _builder.clearRangeFrom() - } - - /** - * `uint64 range_to = 3 [json_name = "rangeTo"];` - */ - public var rangeTo: kotlin.Long - @JvmName("getRangeTo") - get() = _builder.getRangeTo() - @JvmName("setRangeTo") - set(value) { - _builder.setRangeTo(value) - } - /** - * `uint64 range_to = 3 [json_name = "rangeTo"];` - */ - public fun clearRangeTo() { - _builder.clearRangeTo() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.GetChargesRequest.copy(block: com.stabilityai.api.dashboard.v1.GetChargesRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.GetChargesRequest = - com.stabilityai.api.dashboard.v1.GetChargesRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetMetricsRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetMetricsRequestKt.kt deleted file mode 100644 index ce45fd3..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetMetricsRequestKt.kt +++ /dev/null @@ -1,126 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializegetMetricsRequest") -public inline fun getMetricsRequest(block: com.stabilityai.api.dashboard.v1.GetMetricsRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.GetMetricsRequest = - com.stabilityai.api.dashboard.v1.GetMetricsRequestKt.Dsl._create(com.stabilityai.api.dashboard.v1.GetMetricsRequest.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.GetMetricsRequest` - */ -public object GetMetricsRequestKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.GetMetricsRequest.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.GetMetricsRequest.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.GetMetricsRequest = _builder.build() - - /** - * `string organization_id = 1 [json_name = "organizationId"];` - */ - public var organizationId: kotlin.String - @JvmName("getOrganizationId") - get() = _builder.getOrganizationId() - @JvmName("setOrganizationId") - set(value) { - _builder.setOrganizationId(value) - } - /** - * `string organization_id = 1 [json_name = "organizationId"];` - */ - public fun clearOrganizationId() { - _builder.clearOrganizationId() - } - - /** - * `optional string user_id = 2 [json_name = "userId"];` - */ - public var userId: kotlin.String - @JvmName("getUserId") - get() = _builder.getUserId() - @JvmName("setUserId") - set(value) { - _builder.setUserId(value) - } - /** - * `optional string user_id = 2 [json_name = "userId"];` - */ - public fun clearUserId() { - _builder.clearUserId() - } - /** - * `optional string user_id = 2 [json_name = "userId"];` - * @return Whether the userId field is set. - */ - public fun hasUserId(): kotlin.Boolean { - return _builder.hasUserId() - } - - /** - * `uint64 range_from = 3 [json_name = "rangeFrom"];` - */ - public var rangeFrom: kotlin.Long - @JvmName("getRangeFrom") - get() = _builder.getRangeFrom() - @JvmName("setRangeFrom") - set(value) { - _builder.setRangeFrom(value) - } - /** - * `uint64 range_from = 3 [json_name = "rangeFrom"];` - */ - public fun clearRangeFrom() { - _builder.clearRangeFrom() - } - - /** - * `uint64 range_to = 4 [json_name = "rangeTo"];` - */ - public var rangeTo: kotlin.Long - @JvmName("getRangeTo") - get() = _builder.getRangeTo() - @JvmName("setRangeTo") - set(value) { - _builder.setRangeTo(value) - } - /** - * `uint64 range_to = 4 [json_name = "rangeTo"];` - */ - public fun clearRangeTo() { - _builder.clearRangeTo() - } - - /** - * `bool include_per_request_metrics = 5 [json_name = "includePerRequestMetrics"];` - */ - public var includePerRequestMetrics: kotlin.Boolean - @JvmName("getIncludePerRequestMetrics") - get() = _builder.getIncludePerRequestMetrics() - @JvmName("setIncludePerRequestMetrics") - set(value) { - _builder.setIncludePerRequestMetrics(value) - } - /** - * `bool include_per_request_metrics = 5 [json_name = "includePerRequestMetrics"];` - */ - public fun clearIncludePerRequestMetrics() { - _builder.clearIncludePerRequestMetrics() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.GetMetricsRequest.copy(block: com.stabilityai.api.dashboard.v1.GetMetricsRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.GetMetricsRequest = - com.stabilityai.api.dashboard.v1.GetMetricsRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetOrganizationRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetOrganizationRequestKt.kt deleted file mode 100644 index 3f1b5ab..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/GetOrganizationRequestKt.kt +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializegetOrganizationRequest") -public inline fun getOrganizationRequest(block: com.stabilityai.api.dashboard.v1.GetOrganizationRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.GetOrganizationRequest = - com.stabilityai.api.dashboard.v1.GetOrganizationRequestKt.Dsl._create(com.stabilityai.api.dashboard.v1.GetOrganizationRequest.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.GetOrganizationRequest` - */ -public object GetOrganizationRequestKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.GetOrganizationRequest.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.GetOrganizationRequest.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.GetOrganizationRequest = _builder.build() - - /** - * `string id = 1 [json_name = "id"];` - */ - public var id: kotlin.String - @JvmName("getId") - get() = _builder.getId() - @JvmName("setId") - set(value) { - _builder.setId(value) - } - /** - * `string id = 1 [json_name = "id"];` - */ - public fun clearId() { - _builder.clearId() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.GetOrganizationRequest.copy(block: com.stabilityai.api.dashboard.v1.GetOrganizationRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.GetOrganizationRequest = - com.stabilityai.api.dashboard.v1.GetOrganizationRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/MetricsKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/MetricsKt.kt deleted file mode 100644 index b2458db..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/MetricsKt.kt +++ /dev/null @@ -1,133 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializemetrics") -public inline fun metrics(block: com.stabilityai.api.dashboard.v1.MetricsKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.Metrics = - com.stabilityai.api.dashboard.v1.MetricsKt.Dsl._create(com.stabilityai.api.dashboard.v1.Metrics.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.Metrics` - */ -public object MetricsKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.Metrics.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.Metrics.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.Metrics = _builder.build() - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class MetricsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * `repeated .stabilityai.api.dashboard.v1.UsageMetric metrics = 1 [json_name = "metrics"];` - */ - public val metrics: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getMetricsList() - ) - /** - * `repeated .stabilityai.api.dashboard.v1.UsageMetric metrics = 1 [json_name = "metrics"];` - * @param value The metrics to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addMetrics") - public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.api.dashboard.v1.UsageMetric) { - _builder.addMetrics(value) - } - /** - * `repeated .stabilityai.api.dashboard.v1.UsageMetric metrics = 1 [json_name = "metrics"];` - * @param value The metrics to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignMetrics") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.api.dashboard.v1.UsageMetric) { - add(value) - } - /** - * `repeated .stabilityai.api.dashboard.v1.UsageMetric metrics = 1 [json_name = "metrics"];` - * @param values The metrics to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllMetrics") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllMetrics(values) - } - /** - * `repeated .stabilityai.api.dashboard.v1.UsageMetric metrics = 1 [json_name = "metrics"];` - * @param values The metrics to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllMetrics") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * `repeated .stabilityai.api.dashboard.v1.UsageMetric metrics = 1 [json_name = "metrics"];` - * @param index The index to set the value at. - * @param value The metrics to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setMetrics") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.api.dashboard.v1.UsageMetric) { - _builder.setMetrics(index, value) - } - /** - * `repeated .stabilityai.api.dashboard.v1.UsageMetric metrics = 1 [json_name = "metrics"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearMetrics") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearMetrics() - } - - - /** - * `.stabilityai.api.dashboard.v1.TotalMetricsData total = 2 [json_name = "total"];` - */ - public var total: com.stabilityai.api.dashboard.v1.TotalMetricsData - @JvmName("getTotal") - get() = _builder.getTotal() - @JvmName("setTotal") - set(value) { - _builder.setTotal(value) - } - /** - * `.stabilityai.api.dashboard.v1.TotalMetricsData total = 2 [json_name = "total"];` - */ - public fun clearTotal() { - _builder.clearTotal() - } - /** - * `.stabilityai.api.dashboard.v1.TotalMetricsData total = 2 [json_name = "total"];` - * @return Whether the total field is set. - */ - public fun hasTotal(): kotlin.Boolean { - return _builder.hasTotal() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.Metrics.copy(block: com.stabilityai.api.dashboard.v1.MetricsKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.Metrics = - com.stabilityai.api.dashboard.v1.MetricsKt.Dsl._create(this.toBuilder()).apply { block() }._build() - -public val com.stabilityai.api.dashboard.v1.MetricsOrBuilder.totalOrNull: com.stabilityai.api.dashboard.v1.TotalMetricsData? - get() = if (hasTotal()) getTotal() else null - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationAutoChargeKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationAutoChargeKt.kt deleted file mode 100644 index 88edafc..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationAutoChargeKt.kt +++ /dev/null @@ -1,85 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializeorganizationAutoCharge") -public inline fun organizationAutoCharge(block: com.stabilityai.api.dashboard.v1.OrganizationAutoChargeKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.OrganizationAutoCharge = - com.stabilityai.api.dashboard.v1.OrganizationAutoChargeKt.Dsl._create(com.stabilityai.api.dashboard.v1.OrganizationAutoCharge.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.OrganizationAutoCharge` - */ -public object OrganizationAutoChargeKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.OrganizationAutoCharge.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.OrganizationAutoCharge.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.OrganizationAutoCharge = _builder.build() - - /** - * `bool enabled = 1 [json_name = "enabled"];` - */ - public var enabled: kotlin.Boolean - @JvmName("getEnabled") - get() = _builder.getEnabled() - @JvmName("setEnabled") - set(value) { - _builder.setEnabled(value) - } - /** - * `bool enabled = 1 [json_name = "enabled"];` - */ - public fun clearEnabled() { - _builder.clearEnabled() - } - - /** - * `string id = 2 [json_name = "id"];` - */ - public var id: kotlin.String - @JvmName("getId") - get() = _builder.getId() - @JvmName("setId") - set(value) { - _builder.setId(value) - } - /** - * `string id = 2 [json_name = "id"];` - */ - public fun clearId() { - _builder.clearId() - } - - /** - * `uint64 created_at = 3 [json_name = "createdAt"];` - */ - public var createdAt: kotlin.Long - @JvmName("getCreatedAt") - get() = _builder.getCreatedAt() - @JvmName("setCreatedAt") - set(value) { - _builder.setCreatedAt(value) - } - /** - * `uint64 created_at = 3 [json_name = "createdAt"];` - */ - public fun clearCreatedAt() { - _builder.clearCreatedAt() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.OrganizationAutoCharge.copy(block: com.stabilityai.api.dashboard.v1.OrganizationAutoChargeKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.OrganizationAutoCharge = - com.stabilityai.api.dashboard.v1.OrganizationAutoChargeKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationGrantKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationGrantKt.kt deleted file mode 100644 index 90a0d55..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationGrantKt.kt +++ /dev/null @@ -1,102 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializeorganizationGrant") -public inline fun organizationGrant(block: com.stabilityai.api.dashboard.v1.OrganizationGrantKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.OrganizationGrant = - com.stabilityai.api.dashboard.v1.OrganizationGrantKt.Dsl._create(com.stabilityai.api.dashboard.v1.OrganizationGrant.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.OrganizationGrant` - */ -public object OrganizationGrantKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.OrganizationGrant.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.OrganizationGrant.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.OrganizationGrant = _builder.build() - - /** - * `double amount_granted = 1 [json_name = "amountGranted"];` - */ - public var amountGranted: kotlin.Double - @JvmName("getAmountGranted") - get() = _builder.getAmountGranted() - @JvmName("setAmountGranted") - set(value) { - _builder.setAmountGranted(value) - } - /** - * `double amount_granted = 1 [json_name = "amountGranted"];` - */ - public fun clearAmountGranted() { - _builder.clearAmountGranted() - } - - /** - * `double amount_used = 2 [json_name = "amountUsed"];` - */ - public var amountUsed: kotlin.Double - @JvmName("getAmountUsed") - get() = _builder.getAmountUsed() - @JvmName("setAmountUsed") - set(value) { - _builder.setAmountUsed(value) - } - /** - * `double amount_used = 2 [json_name = "amountUsed"];` - */ - public fun clearAmountUsed() { - _builder.clearAmountUsed() - } - - /** - * `uint64 expires_at = 3 [json_name = "expiresAt"];` - */ - public var expiresAt: kotlin.Long - @JvmName("getExpiresAt") - get() = _builder.getExpiresAt() - @JvmName("setExpiresAt") - set(value) { - _builder.setExpiresAt(value) - } - /** - * `uint64 expires_at = 3 [json_name = "expiresAt"];` - */ - public fun clearExpiresAt() { - _builder.clearExpiresAt() - } - - /** - * `uint64 granted_at = 4 [json_name = "grantedAt"];` - */ - public var grantedAt: kotlin.Long - @JvmName("getGrantedAt") - get() = _builder.getGrantedAt() - @JvmName("setGrantedAt") - set(value) { - _builder.setGrantedAt(value) - } - /** - * `uint64 granted_at = 4 [json_name = "grantedAt"];` - */ - public fun clearGrantedAt() { - _builder.clearGrantedAt() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.OrganizationGrant.copy(block: com.stabilityai.api.dashboard.v1.OrganizationGrantKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.OrganizationGrant = - com.stabilityai.api.dashboard.v1.OrganizationGrantKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationKt.kt deleted file mode 100644 index c96a6c6..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationKt.kt +++ /dev/null @@ -1,239 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializeorganization") -public inline fun organization(block: com.stabilityai.api.dashboard.v1.OrganizationKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.Organization = - com.stabilityai.api.dashboard.v1.OrganizationKt.Dsl._create(com.stabilityai.api.dashboard.v1.Organization.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.Organization` - */ -public object OrganizationKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.Organization.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.Organization.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.Organization = _builder.build() - - /** - * `string id = 1 [json_name = "id"];` - */ - public var id: kotlin.String - @JvmName("getId") - get() = _builder.getId() - @JvmName("setId") - set(value) { - _builder.setId(value) - } - /** - * `string id = 1 [json_name = "id"];` - */ - public fun clearId() { - _builder.clearId() - } - - /** - * `string name = 2 [json_name = "name"];` - */ - public var name: kotlin.String - @JvmName("getName") - get() = _builder.getName() - @JvmName("setName") - set(value) { - _builder.setName(value) - } - /** - * `string name = 2 [json_name = "name"];` - */ - public fun clearName() { - _builder.clearName() - } - - /** - * `string description = 3 [json_name = "description"];` - */ - public var description: kotlin.String - @JvmName("getDescription") - get() = _builder.getDescription() - @JvmName("setDescription") - set(value) { - _builder.setDescription(value) - } - /** - * `string description = 3 [json_name = "description"];` - */ - public fun clearDescription() { - _builder.clearDescription() - } - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class MembersProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * `repeated .stabilityai.api.dashboard.v1.OrganizationMember members = 4 [json_name = "members"];` - */ - public val members: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getMembersList() - ) - /** - * `repeated .stabilityai.api.dashboard.v1.OrganizationMember members = 4 [json_name = "members"];` - * @param value The members to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addMembers") - public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.api.dashboard.v1.OrganizationMember) { - _builder.addMembers(value) - } - /** - * `repeated .stabilityai.api.dashboard.v1.OrganizationMember members = 4 [json_name = "members"];` - * @param value The members to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignMembers") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.api.dashboard.v1.OrganizationMember) { - add(value) - } - /** - * `repeated .stabilityai.api.dashboard.v1.OrganizationMember members = 4 [json_name = "members"];` - * @param values The members to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllMembers") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllMembers(values) - } - /** - * `repeated .stabilityai.api.dashboard.v1.OrganizationMember members = 4 [json_name = "members"];` - * @param values The members to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllMembers") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * `repeated .stabilityai.api.dashboard.v1.OrganizationMember members = 4 [json_name = "members"];` - * @param index The index to set the value at. - * @param value The members to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setMembers") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.api.dashboard.v1.OrganizationMember) { - _builder.setMembers(index, value) - } - /** - * `repeated .stabilityai.api.dashboard.v1.OrganizationMember members = 4 [json_name = "members"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearMembers") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearMembers() - } - - - /** - * `optional .stabilityai.api.dashboard.v1.OrganizationPaymentInfo payment_info = 5 [json_name = "paymentInfo"];` - */ - public var paymentInfo: com.stabilityai.api.dashboard.v1.OrganizationPaymentInfo - @JvmName("getPaymentInfo") - get() = _builder.getPaymentInfo() - @JvmName("setPaymentInfo") - set(value) { - _builder.setPaymentInfo(value) - } - /** - * `optional .stabilityai.api.dashboard.v1.OrganizationPaymentInfo payment_info = 5 [json_name = "paymentInfo"];` - */ - public fun clearPaymentInfo() { - _builder.clearPaymentInfo() - } - /** - * `optional .stabilityai.api.dashboard.v1.OrganizationPaymentInfo payment_info = 5 [json_name = "paymentInfo"];` - * @return Whether the paymentInfo field is set. - */ - public fun hasPaymentInfo(): kotlin.Boolean { - return _builder.hasPaymentInfo() - } - public val OrganizationKt.Dsl.paymentInfoOrNull: com.stabilityai.api.dashboard.v1.OrganizationPaymentInfo? - get() = _builder.paymentInfoOrNull - - /** - * `optional string stripe_customer_id = 6 [json_name = "stripeCustomerId"];` - */ - public var stripeCustomerId: kotlin.String - @JvmName("getStripeCustomerId") - get() = _builder.getStripeCustomerId() - @JvmName("setStripeCustomerId") - set(value) { - _builder.setStripeCustomerId(value) - } - /** - * `optional string stripe_customer_id = 6 [json_name = "stripeCustomerId"];` - */ - public fun clearStripeCustomerId() { - _builder.clearStripeCustomerId() - } - /** - * `optional string stripe_customer_id = 6 [json_name = "stripeCustomerId"];` - * @return Whether the stripeCustomerId field is set. - */ - public fun hasStripeCustomerId(): kotlin.Boolean { - return _builder.hasStripeCustomerId() - } - - /** - * `optional .stabilityai.api.dashboard.v1.OrganizationAutoCharge auto_charge = 7 [json_name = "autoCharge"];` - */ - public var autoCharge: com.stabilityai.api.dashboard.v1.OrganizationAutoCharge - @JvmName("getAutoCharge") - get() = _builder.getAutoCharge() - @JvmName("setAutoCharge") - set(value) { - _builder.setAutoCharge(value) - } - /** - * `optional .stabilityai.api.dashboard.v1.OrganizationAutoCharge auto_charge = 7 [json_name = "autoCharge"];` - */ - public fun clearAutoCharge() { - _builder.clearAutoCharge() - } - /** - * `optional .stabilityai.api.dashboard.v1.OrganizationAutoCharge auto_charge = 7 [json_name = "autoCharge"];` - * @return Whether the autoCharge field is set. - */ - public fun hasAutoCharge(): kotlin.Boolean { - return _builder.hasAutoCharge() - } - public val OrganizationKt.Dsl.autoChargeOrNull: com.stabilityai.api.dashboard.v1.OrganizationAutoCharge? - get() = _builder.autoChargeOrNull - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.Organization.copy(block: com.stabilityai.api.dashboard.v1.OrganizationKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.Organization = - com.stabilityai.api.dashboard.v1.OrganizationKt.Dsl._create(this.toBuilder()).apply { block() }._build() - -public val com.stabilityai.api.dashboard.v1.OrganizationOrBuilder.paymentInfoOrNull: com.stabilityai.api.dashboard.v1.OrganizationPaymentInfo? - get() = if (hasPaymentInfo()) getPaymentInfo() else null - -public val com.stabilityai.api.dashboard.v1.OrganizationOrBuilder.autoChargeOrNull: com.stabilityai.api.dashboard.v1.OrganizationAutoCharge? - get() = if (hasAutoCharge()) getAutoCharge() else null - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationMemberKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationMemberKt.kt deleted file mode 100644 index 059def4..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationMemberKt.kt +++ /dev/null @@ -1,131 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializeorganizationMember") -public inline fun organizationMember(block: com.stabilityai.api.dashboard.v1.OrganizationMemberKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.OrganizationMember = - com.stabilityai.api.dashboard.v1.OrganizationMemberKt.Dsl._create(com.stabilityai.api.dashboard.v1.OrganizationMember.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.OrganizationMember` - */ -public object OrganizationMemberKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.OrganizationMember.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.OrganizationMember.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.OrganizationMember = _builder.build() - - /** - * `.stabilityai.api.dashboard.v1.Organization organization = 1 [json_name = "organization"];` - */ - public var organization: com.stabilityai.api.dashboard.v1.Organization - @JvmName("getOrganization") - get() = _builder.getOrganization() - @JvmName("setOrganization") - set(value) { - _builder.setOrganization(value) - } - /** - * `.stabilityai.api.dashboard.v1.Organization organization = 1 [json_name = "organization"];` - */ - public fun clearOrganization() { - _builder.clearOrganization() - } - /** - * `.stabilityai.api.dashboard.v1.Organization organization = 1 [json_name = "organization"];` - * @return Whether the organization field is set. - */ - public fun hasOrganization(): kotlin.Boolean { - return _builder.hasOrganization() - } - - /** - * `optional .stabilityai.api.dashboard.v1.User user = 2 [json_name = "user"];` - */ - public var user: com.stabilityai.api.dashboard.v1.User - @JvmName("getUser") - get() = _builder.getUser() - @JvmName("setUser") - set(value) { - _builder.setUser(value) - } - /** - * `optional .stabilityai.api.dashboard.v1.User user = 2 [json_name = "user"];` - */ - public fun clearUser() { - _builder.clearUser() - } - /** - * `optional .stabilityai.api.dashboard.v1.User user = 2 [json_name = "user"];` - * @return Whether the user field is set. - */ - public fun hasUser(): kotlin.Boolean { - return _builder.hasUser() - } - public val OrganizationMemberKt.Dsl.userOrNull: com.stabilityai.api.dashboard.v1.User? - get() = _builder.userOrNull - - /** - * `.stabilityai.api.dashboard.v1.OrganizationRole role = 3 [json_name = "role"];` - */ - public var role: com.stabilityai.api.dashboard.v1.OrganizationRole - @JvmName("getRole") - get() = _builder.getRole() - @JvmName("setRole") - set(value) { - _builder.setRole(value) - } - public var roleValue: kotlin.Int - @JvmName("getRoleValue") - get() = _builder.getRoleValue() - @JvmName("setRoleValue") - set(value) { - _builder.setRoleValue(value) - } - /** - * `.stabilityai.api.dashboard.v1.OrganizationRole role = 3 [json_name = "role"];` - */ - public fun clearRole() { - _builder.clearRole() - } - - /** - * `bool is_default = 4 [json_name = "isDefault"];` - */ - public var isDefault: kotlin.Boolean - @JvmName("getIsDefault") - get() = _builder.getIsDefault() - @JvmName("setIsDefault") - set(value) { - _builder.setIsDefault(value) - } - /** - * `bool is_default = 4 [json_name = "isDefault"];` - */ - public fun clearIsDefault() { - _builder.clearIsDefault() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.OrganizationMember.copy(block: com.stabilityai.api.dashboard.v1.OrganizationMemberKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.OrganizationMember = - com.stabilityai.api.dashboard.v1.OrganizationMemberKt.Dsl._create(this.toBuilder()).apply { block() }._build() - -public val com.stabilityai.api.dashboard.v1.OrganizationMemberOrBuilder.organizationOrNull: com.stabilityai.api.dashboard.v1.Organization? - get() = if (hasOrganization()) getOrganization() else null - -public val com.stabilityai.api.dashboard.v1.OrganizationMemberOrBuilder.userOrNull: com.stabilityai.api.dashboard.v1.User? - get() = if (hasUser()) getUser() else null - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationPaymentInfoKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationPaymentInfoKt.kt deleted file mode 100644 index 3187161..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/OrganizationPaymentInfoKt.kt +++ /dev/null @@ -1,123 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializeorganizationPaymentInfo") -public inline fun organizationPaymentInfo(block: com.stabilityai.api.dashboard.v1.OrganizationPaymentInfoKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.OrganizationPaymentInfo = - com.stabilityai.api.dashboard.v1.OrganizationPaymentInfoKt.Dsl._create(com.stabilityai.api.dashboard.v1.OrganizationPaymentInfo.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.OrganizationPaymentInfo` - */ -public object OrganizationPaymentInfoKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.OrganizationPaymentInfo.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.OrganizationPaymentInfo.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.OrganizationPaymentInfo = _builder.build() - - /** - * `double balance = 1 [json_name = "balance"];` - */ - public var balance: kotlin.Double - @JvmName("getBalance") - get() = _builder.getBalance() - @JvmName("setBalance") - set(value) { - _builder.setBalance(value) - } - /** - * `double balance = 1 [json_name = "balance"];` - */ - public fun clearBalance() { - _builder.clearBalance() - } - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class GrantsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * `repeated .stabilityai.api.dashboard.v1.OrganizationGrant grants = 2 [json_name = "grants"];` - */ - public val grants: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getGrantsList() - ) - /** - * `repeated .stabilityai.api.dashboard.v1.OrganizationGrant grants = 2 [json_name = "grants"];` - * @param value The grants to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addGrants") - public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.api.dashboard.v1.OrganizationGrant) { - _builder.addGrants(value) - } - /** - * `repeated .stabilityai.api.dashboard.v1.OrganizationGrant grants = 2 [json_name = "grants"];` - * @param value The grants to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignGrants") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.api.dashboard.v1.OrganizationGrant) { - add(value) - } - /** - * `repeated .stabilityai.api.dashboard.v1.OrganizationGrant grants = 2 [json_name = "grants"];` - * @param values The grants to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllGrants") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllGrants(values) - } - /** - * `repeated .stabilityai.api.dashboard.v1.OrganizationGrant grants = 2 [json_name = "grants"];` - * @param values The grants to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllGrants") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * `repeated .stabilityai.api.dashboard.v1.OrganizationGrant grants = 2 [json_name = "grants"];` - * @param index The index to set the value at. - * @param value The grants to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setGrants") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.api.dashboard.v1.OrganizationGrant) { - _builder.setGrants(index, value) - } - /** - * `repeated .stabilityai.api.dashboard.v1.OrganizationGrant grants = 2 [json_name = "grants"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearGrants") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearGrants() - } - - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.OrganizationPaymentInfo.copy(block: com.stabilityai.api.dashboard.v1.OrganizationPaymentInfoKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.OrganizationPaymentInfo = - com.stabilityai.api.dashboard.v1.OrganizationPaymentInfoKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/TotalMetricsDataKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/TotalMetricsDataKt.kt deleted file mode 100644 index 187180c..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/TotalMetricsDataKt.kt +++ /dev/null @@ -1,88 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializetotalMetricsData") -public inline fun totalMetricsData(block: com.stabilityai.api.dashboard.v1.TotalMetricsDataKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.TotalMetricsData = - com.stabilityai.api.dashboard.v1.TotalMetricsDataKt.Dsl._create(com.stabilityai.api.dashboard.v1.TotalMetricsData.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.TotalMetricsData` - */ -public object TotalMetricsDataKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.TotalMetricsData.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.TotalMetricsData.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.TotalMetricsData = _builder.build() - - /** - * `.stabilityai.api.dashboard.v1.CostTotal input_total = 1 [json_name = "inputTotal"];` - */ - public var inputTotal: com.stabilityai.api.dashboard.v1.CostTotal - @JvmName("getInputTotal") - get() = _builder.getInputTotal() - @JvmName("setInputTotal") - set(value) { - _builder.setInputTotal(value) - } - /** - * `.stabilityai.api.dashboard.v1.CostTotal input_total = 1 [json_name = "inputTotal"];` - */ - public fun clearInputTotal() { - _builder.clearInputTotal() - } - /** - * `.stabilityai.api.dashboard.v1.CostTotal input_total = 1 [json_name = "inputTotal"];` - * @return Whether the inputTotal field is set. - */ - public fun hasInputTotal(): kotlin.Boolean { - return _builder.hasInputTotal() - } - - /** - * `.stabilityai.api.dashboard.v1.CostTotal output_total = 2 [json_name = "outputTotal"];` - */ - public var outputTotal: com.stabilityai.api.dashboard.v1.CostTotal - @JvmName("getOutputTotal") - get() = _builder.getOutputTotal() - @JvmName("setOutputTotal") - set(value) { - _builder.setOutputTotal(value) - } - /** - * `.stabilityai.api.dashboard.v1.CostTotal output_total = 2 [json_name = "outputTotal"];` - */ - public fun clearOutputTotal() { - _builder.clearOutputTotal() - } - /** - * `.stabilityai.api.dashboard.v1.CostTotal output_total = 2 [json_name = "outputTotal"];` - * @return Whether the outputTotal field is set. - */ - public fun hasOutputTotal(): kotlin.Boolean { - return _builder.hasOutputTotal() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.TotalMetricsData.copy(block: com.stabilityai.api.dashboard.v1.TotalMetricsDataKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.TotalMetricsData = - com.stabilityai.api.dashboard.v1.TotalMetricsDataKt.Dsl._create(this.toBuilder()).apply { block() }._build() - -public val com.stabilityai.api.dashboard.v1.TotalMetricsDataOrBuilder.inputTotalOrNull: com.stabilityai.api.dashboard.v1.CostTotal? - get() = if (hasInputTotal()) getInputTotal() else null - -public val com.stabilityai.api.dashboard.v1.TotalMetricsDataOrBuilder.outputTotalOrNull: com.stabilityai.api.dashboard.v1.CostTotal? - get() = if (hasOutputTotal()) getOutputTotal() else null - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/UpdateDefaultOrganizationRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/UpdateDefaultOrganizationRequestKt.kt deleted file mode 100644 index 2147473..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/UpdateDefaultOrganizationRequestKt.kt +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializeupdateDefaultOrganizationRequest") -public inline fun updateDefaultOrganizationRequest(block: com.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest = - com.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequestKt.Dsl._create(com.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest` - */ -public object UpdateDefaultOrganizationRequestKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest = _builder.build() - - /** - * `string organization_id = 1 [json_name = "organizationId"];` - */ - public var organizationId: kotlin.String - @JvmName("getOrganizationId") - get() = _builder.getOrganizationId() - @JvmName("setOrganizationId") - set(value) { - _builder.setOrganizationId(value) - } - /** - * `string organization_id = 1 [json_name = "organizationId"];` - */ - public fun clearOrganizationId() { - _builder.clearOrganizationId() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest.copy(block: com.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequest = - com.stabilityai.api.dashboard.v1.UpdateDefaultOrganizationRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/UpdateUserInfoRequestKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/UpdateUserInfoRequestKt.kt deleted file mode 100644 index cb994a5..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/UpdateUserInfoRequestKt.kt +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializeupdateUserInfoRequest") -public inline fun updateUserInfoRequest(block: com.stabilityai.api.dashboard.v1.UpdateUserInfoRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.UpdateUserInfoRequest = - com.stabilityai.api.dashboard.v1.UpdateUserInfoRequestKt.Dsl._create(com.stabilityai.api.dashboard.v1.UpdateUserInfoRequest.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.UpdateUserInfoRequest` - */ -public object UpdateUserInfoRequestKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.UpdateUserInfoRequest.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.UpdateUserInfoRequest.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.UpdateUserInfoRequest = _builder.build() - - /** - * `optional string email = 1 [json_name = "email"];` - */ - public var email: kotlin.String - @JvmName("getEmail") - get() = _builder.getEmail() - @JvmName("setEmail") - set(value) { - _builder.setEmail(value) - } - /** - * `optional string email = 1 [json_name = "email"];` - */ - public fun clearEmail() { - _builder.clearEmail() - } - /** - * `optional string email = 1 [json_name = "email"];` - * @return Whether the email field is set. - */ - public fun hasEmail(): kotlin.Boolean { - return _builder.hasEmail() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.UpdateUserInfoRequest.copy(block: com.stabilityai.api.dashboard.v1.UpdateUserInfoRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.UpdateUserInfoRequest = - com.stabilityai.api.dashboard.v1.UpdateUserInfoRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/UsageMetricKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/UsageMetricKt.kt deleted file mode 100644 index 0fec899..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/UsageMetricKt.kt +++ /dev/null @@ -1,163 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializeusageMetric") -public inline fun usageMetric(block: com.stabilityai.api.dashboard.v1.UsageMetricKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.UsageMetric = - com.stabilityai.api.dashboard.v1.UsageMetricKt.Dsl._create(com.stabilityai.api.dashboard.v1.UsageMetric.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.UsageMetric` - */ -public object UsageMetricKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.UsageMetric.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.UsageMetric.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.UsageMetric = _builder.build() - - /** - * `string operation = 1 [json_name = "operation"];` - */ - public var operation: kotlin.String - @JvmName("getOperation") - get() = _builder.getOperation() - @JvmName("setOperation") - set(value) { - _builder.setOperation(value) - } - /** - * `string operation = 1 [json_name = "operation"];` - */ - public fun clearOperation() { - _builder.clearOperation() - } - - /** - * `string engine = 2 [json_name = "engine"];` - */ - public var engine: kotlin.String - @JvmName("getEngine") - get() = _builder.getEngine() - @JvmName("setEngine") - set(value) { - _builder.setEngine(value) - } - /** - * `string engine = 2 [json_name = "engine"];` - */ - public fun clearEngine() { - _builder.clearEngine() - } - - /** - * `.stabilityai.api.dashboard.v1.CostData input_cost = 3 [json_name = "inputCost"];` - */ - public var inputCost: com.stabilityai.api.dashboard.v1.CostData - @JvmName("getInputCost") - get() = _builder.getInputCost() - @JvmName("setInputCost") - set(value) { - _builder.setInputCost(value) - } - /** - * `.stabilityai.api.dashboard.v1.CostData input_cost = 3 [json_name = "inputCost"];` - */ - public fun clearInputCost() { - _builder.clearInputCost() - } - /** - * `.stabilityai.api.dashboard.v1.CostData input_cost = 3 [json_name = "inputCost"];` - * @return Whether the inputCost field is set. - */ - public fun hasInputCost(): kotlin.Boolean { - return _builder.hasInputCost() - } - - /** - * `.stabilityai.api.dashboard.v1.CostData output_cost = 4 [json_name = "outputCost"];` - */ - public var outputCost: com.stabilityai.api.dashboard.v1.CostData - @JvmName("getOutputCost") - get() = _builder.getOutputCost() - @JvmName("setOutputCost") - set(value) { - _builder.setOutputCost(value) - } - /** - * `.stabilityai.api.dashboard.v1.CostData output_cost = 4 [json_name = "outputCost"];` - */ - public fun clearOutputCost() { - _builder.clearOutputCost() - } - /** - * `.stabilityai.api.dashboard.v1.CostData output_cost = 4 [json_name = "outputCost"];` - * @return Whether the outputCost field is set. - */ - public fun hasOutputCost(): kotlin.Boolean { - return _builder.hasOutputCost() - } - - /** - * `optional string user = 5 [json_name = "user"];` - */ - public var user: kotlin.String - @JvmName("getUser") - get() = _builder.getUser() - @JvmName("setUser") - set(value) { - _builder.setUser(value) - } - /** - * `optional string user = 5 [json_name = "user"];` - */ - public fun clearUser() { - _builder.clearUser() - } - /** - * `optional string user = 5 [json_name = "user"];` - * @return Whether the user field is set. - */ - public fun hasUser(): kotlin.Boolean { - return _builder.hasUser() - } - - /** - * `uint64 aggregation_timestamp = 6 [json_name = "aggregationTimestamp"];` - */ - public var aggregationTimestamp: kotlin.Long - @JvmName("getAggregationTimestamp") - get() = _builder.getAggregationTimestamp() - @JvmName("setAggregationTimestamp") - set(value) { - _builder.setAggregationTimestamp(value) - } - /** - * `uint64 aggregation_timestamp = 6 [json_name = "aggregationTimestamp"];` - */ - public fun clearAggregationTimestamp() { - _builder.clearAggregationTimestamp() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.UsageMetric.copy(block: com.stabilityai.api.dashboard.v1.UsageMetricKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.UsageMetric = - com.stabilityai.api.dashboard.v1.UsageMetricKt.Dsl._create(this.toBuilder()).apply { block() }._build() - -public val com.stabilityai.api.dashboard.v1.UsageMetricOrBuilder.inputCostOrNull: com.stabilityai.api.dashboard.v1.CostData? - get() = if (hasInputCost()) getInputCost() else null - -public val com.stabilityai.api.dashboard.v1.UsageMetricOrBuilder.outputCostOrNull: com.stabilityai.api.dashboard.v1.CostData? - get() = if (hasOutputCost()) getOutputCost() else null - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/UserKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/UserKt.kt deleted file mode 100644 index 6a5fddb..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/UserKt.kt +++ /dev/null @@ -1,294 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializeuser") -public inline fun user(block: com.stabilityai.api.dashboard.v1.UserKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.User = - com.stabilityai.api.dashboard.v1.UserKt.Dsl._create(com.stabilityai.api.dashboard.v1.User.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.User` - */ -public object UserKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.User.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.User.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.User = _builder.build() - - /** - * `string id = 1 [json_name = "id"];` - */ - public var id: kotlin.String - @JvmName("getId") - get() = _builder.getId() - @JvmName("setId") - set(value) { - _builder.setId(value) - } - /** - * `string id = 1 [json_name = "id"];` - */ - public fun clearId() { - _builder.clearId() - } - - /** - * `optional string auth_id = 2 [json_name = "authId"];` - */ - public var authId: kotlin.String - @JvmName("getAuthId") - get() = _builder.getAuthId() - @JvmName("setAuthId") - set(value) { - _builder.setAuthId(value) - } - /** - * `optional string auth_id = 2 [json_name = "authId"];` - */ - public fun clearAuthId() { - _builder.clearAuthId() - } - /** - * `optional string auth_id = 2 [json_name = "authId"];` - * @return Whether the authId field is set. - */ - public fun hasAuthId(): kotlin.Boolean { - return _builder.hasAuthId() - } - - /** - * `string profile_picture = 3 [json_name = "profilePicture"];` - */ - public var profilePicture: kotlin.String - @JvmName("getProfilePicture") - get() = _builder.getProfilePicture() - @JvmName("setProfilePicture") - set(value) { - _builder.setProfilePicture(value) - } - /** - * `string profile_picture = 3 [json_name = "profilePicture"];` - */ - public fun clearProfilePicture() { - _builder.clearProfilePicture() - } - - /** - * `string email = 4 [json_name = "email"];` - */ - public var email: kotlin.String - @JvmName("getEmail") - get() = _builder.getEmail() - @JvmName("setEmail") - set(value) { - _builder.setEmail(value) - } - /** - * `string email = 4 [json_name = "email"];` - */ - public fun clearEmail() { - _builder.clearEmail() - } - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class OrganizationsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * `repeated .stabilityai.api.dashboard.v1.OrganizationMember organizations = 5 [json_name = "organizations"];` - */ - public val organizations: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getOrganizationsList() - ) - /** - * `repeated .stabilityai.api.dashboard.v1.OrganizationMember organizations = 5 [json_name = "organizations"];` - * @param value The organizations to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addOrganizations") - public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.api.dashboard.v1.OrganizationMember) { - _builder.addOrganizations(value) - } - /** - * `repeated .stabilityai.api.dashboard.v1.OrganizationMember organizations = 5 [json_name = "organizations"];` - * @param value The organizations to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignOrganizations") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.api.dashboard.v1.OrganizationMember) { - add(value) - } - /** - * `repeated .stabilityai.api.dashboard.v1.OrganizationMember organizations = 5 [json_name = "organizations"];` - * @param values The organizations to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllOrganizations") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllOrganizations(values) - } - /** - * `repeated .stabilityai.api.dashboard.v1.OrganizationMember organizations = 5 [json_name = "organizations"];` - * @param values The organizations to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllOrganizations") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * `repeated .stabilityai.api.dashboard.v1.OrganizationMember organizations = 5 [json_name = "organizations"];` - * @param index The index to set the value at. - * @param value The organizations to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setOrganizations") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.api.dashboard.v1.OrganizationMember) { - _builder.setOrganizations(index, value) - } - /** - * `repeated .stabilityai.api.dashboard.v1.OrganizationMember organizations = 5 [json_name = "organizations"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearOrganizations") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearOrganizations() - } - - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class ApiKeysProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * `repeated .stabilityai.api.dashboard.v1.APIKey api_keys = 7 [json_name = "apiKeys"];` - */ - public val apiKeys: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getApiKeysList() - ) - /** - * `repeated .stabilityai.api.dashboard.v1.APIKey api_keys = 7 [json_name = "apiKeys"];` - * @param value The apiKeys to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addApiKeys") - public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.api.dashboard.v1.APIKey) { - _builder.addApiKeys(value) - } - /** - * `repeated .stabilityai.api.dashboard.v1.APIKey api_keys = 7 [json_name = "apiKeys"];` - * @param value The apiKeys to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignApiKeys") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.api.dashboard.v1.APIKey) { - add(value) - } - /** - * `repeated .stabilityai.api.dashboard.v1.APIKey api_keys = 7 [json_name = "apiKeys"];` - * @param values The apiKeys to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllApiKeys") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllApiKeys(values) - } - /** - * `repeated .stabilityai.api.dashboard.v1.APIKey api_keys = 7 [json_name = "apiKeys"];` - * @param values The apiKeys to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllApiKeys") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * `repeated .stabilityai.api.dashboard.v1.APIKey api_keys = 7 [json_name = "apiKeys"];` - * @param index The index to set the value at. - * @param value The apiKeys to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setApiKeys") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.api.dashboard.v1.APIKey) { - _builder.setApiKeys(index, value) - } - /** - * `repeated .stabilityai.api.dashboard.v1.APIKey api_keys = 7 [json_name = "apiKeys"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearApiKeys") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearApiKeys() - } - - - /** - * `uint64 created_at = 8 [json_name = "createdAt"];` - */ - public var createdAt: kotlin.Long - @JvmName("getCreatedAt") - get() = _builder.getCreatedAt() - @JvmName("setCreatedAt") - set(value) { - _builder.setCreatedAt(value) - } - /** - * `uint64 created_at = 8 [json_name = "createdAt"];` - */ - public fun clearCreatedAt() { - _builder.clearCreatedAt() - } - - /** - * `optional bool email_verified = 9 [json_name = "emailVerified"];` - */ - public var emailVerified: kotlin.Boolean - @JvmName("getEmailVerified") - get() = _builder.getEmailVerified() - @JvmName("setEmailVerified") - set(value) { - _builder.setEmailVerified(value) - } - /** - * `optional bool email_verified = 9 [json_name = "emailVerified"];` - */ - public fun clearEmailVerified() { - _builder.clearEmailVerified() - } - /** - * `optional bool email_verified = 9 [json_name = "emailVerified"];` - * @return Whether the emailVerified field is set. - */ - public fun hasEmailVerified(): kotlin.Boolean { - return _builder.hasEmailVerified() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.User.copy(block: com.stabilityai.api.dashboard.v1.UserKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.User = - com.stabilityai.api.dashboard.v1.UserKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/api/dashboard/v1/UserPasswordChangeTicketKt.kt b/gen/proto/kt/com/stabilityai/api/dashboard/v1/UserPasswordChangeTicketKt.kt deleted file mode 100644 index 6d6a47c..0000000 --- a/gen/proto/kt/com/stabilityai/api/dashboard/v1/UserPasswordChangeTicketKt.kt +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/dashboard/v1/dashboard.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.api.dashboard.v1; - -@kotlin.jvm.JvmName("-initializeuserPasswordChangeTicket") -public inline fun userPasswordChangeTicket(block: com.stabilityai.api.dashboard.v1.UserPasswordChangeTicketKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.UserPasswordChangeTicket = - com.stabilityai.api.dashboard.v1.UserPasswordChangeTicketKt.Dsl._create(com.stabilityai.api.dashboard.v1.UserPasswordChangeTicket.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.api.dashboard.v1.UserPasswordChangeTicket` - */ -public object UserPasswordChangeTicketKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.api.dashboard.v1.UserPasswordChangeTicket.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.api.dashboard.v1.UserPasswordChangeTicket.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.api.dashboard.v1.UserPasswordChangeTicket = _builder.build() - - /** - * `string ticket = 1 [json_name = "ticket"];` - */ - public var ticket: kotlin.String - @JvmName("getTicket") - get() = _builder.getTicket() - @JvmName("setTicket") - set(value) { - _builder.setTicket(value) - } - /** - * `string ticket = 1 [json_name = "ticket"];` - */ - public fun clearTicket() { - _builder.clearTicket() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.api.dashboard.v1.UserPasswordChangeTicket.copy(block: com.stabilityai.api.dashboard.v1.UserPasswordChangeTicketKt.Dsl.() -> kotlin.Unit): com.stabilityai.api.dashboard.v1.UserPasswordChangeTicket = - com.stabilityai.api.dashboard.v1.UserPasswordChangeTicketKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EngineInfoKt.kt b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EngineInfoKt.kt deleted file mode 100644 index 33ac6b7..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EngineInfoKt.kt +++ /dev/null @@ -1,171 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/engines/v1/engines.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.engines.v1; - -@kotlin.jvm.JvmName("-initializeengineInfo") -public inline fun engineInfo(block: com.stabilityai.platformapis.engines.v1.EngineInfoKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.engines.v1.EngineInfo = - com.stabilityai.platformapis.engines.v1.EngineInfoKt.Dsl._create(com.stabilityai.platformapis.engines.v1.EngineInfo.newBuilder()).apply { block() }._build() -/** - * ``` - * Engine info struct - * ``` - * - * Protobuf type `stabilityai.platformapis.engines.v1.EngineInfo` - */ -public object EngineInfoKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.engines.v1.EngineInfo.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.engines.v1.EngineInfo.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.engines.v1.EngineInfo = _builder.build() - - /** - * `string id = 1 [json_name = "id"];` - */ - public var id: kotlin.String - @JvmName("getId") - get() = _builder.getId() - @JvmName("setId") - set(value) { - _builder.setId(value) - } - /** - * `string id = 1 [json_name = "id"];` - */ - public fun clearId() { - _builder.clearId() - } - - /** - * `string owner = 2 [json_name = "owner"];` - */ - public var owner: kotlin.String - @JvmName("getOwner") - get() = _builder.getOwner() - @JvmName("setOwner") - set(value) { - _builder.setOwner(value) - } - /** - * `string owner = 2 [json_name = "owner"];` - */ - public fun clearOwner() { - _builder.clearOwner() - } - - /** - * `bool ready = 3 [json_name = "ready"];` - */ - public var ready: kotlin.Boolean - @JvmName("getReady") - get() = _builder.getReady() - @JvmName("setReady") - set(value) { - _builder.setReady(value) - } - /** - * `bool ready = 3 [json_name = "ready"];` - */ - public fun clearReady() { - _builder.clearReady() - } - - /** - * `.stabilityai.platformapis.engines.v1.EngineType type = 4 [json_name = "type"];` - */ - public var type: com.stabilityai.platformapis.engines.v1.EngineType - @JvmName("getType") - get() = _builder.getType() - @JvmName("setType") - set(value) { - _builder.setType(value) - } - public var typeValue: kotlin.Int - @JvmName("getTypeValue") - get() = _builder.getTypeValue() - @JvmName("setTypeValue") - set(value) { - _builder.setTypeValue(value) - } - /** - * `.stabilityai.platformapis.engines.v1.EngineType type = 4 [json_name = "type"];` - */ - public fun clearType() { - _builder.clearType() - } - - /** - * `.stabilityai.platformapis.engines.v1.EngineTokenizer tokenizer = 5 [json_name = "tokenizer"];` - */ - public var tokenizer: com.stabilityai.platformapis.engines.v1.EngineTokenizer - @JvmName("getTokenizer") - get() = _builder.getTokenizer() - @JvmName("setTokenizer") - set(value) { - _builder.setTokenizer(value) - } - public var tokenizerValue: kotlin.Int - @JvmName("getTokenizerValue") - get() = _builder.getTokenizerValue() - @JvmName("setTokenizerValue") - set(value) { - _builder.setTokenizerValue(value) - } - /** - * `.stabilityai.platformapis.engines.v1.EngineTokenizer tokenizer = 5 [json_name = "tokenizer"];` - */ - public fun clearTokenizer() { - _builder.clearTokenizer() - } - - /** - * `string name = 6 [json_name = "name"];` - */ - public var name: kotlin.String - @JvmName("getName") - get() = _builder.getName() - @JvmName("setName") - set(value) { - _builder.setName(value) - } - /** - * `string name = 6 [json_name = "name"];` - */ - public fun clearName() { - _builder.clearName() - } - - /** - * `string description = 7 [json_name = "description"];` - */ - public var description: kotlin.String - @JvmName("getDescription") - get() = _builder.getDescription() - @JvmName("setDescription") - set(value) { - _builder.setDescription(value) - } - /** - * `string description = 7 [json_name = "description"];` - */ - public fun clearDescription() { - _builder.clearDescription() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.engines.v1.EngineInfo.copy(block: com.stabilityai.platformapis.engines.v1.EngineInfoKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.engines.v1.EngineInfo = - com.stabilityai.platformapis.engines.v1.EngineInfoKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesKt.kt b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesKt.kt deleted file mode 100644 index 89528a1..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesKt.kt +++ /dev/null @@ -1,110 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/engines/v1/engines.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.engines.v1; - -@kotlin.jvm.JvmName("-initializeengines") -public inline fun engines(block: com.stabilityai.platformapis.engines.v1.EnginesKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.engines.v1.Engines = - com.stabilityai.platformapis.engines.v1.EnginesKt.Dsl._create(com.stabilityai.platformapis.engines.v1.Engines.newBuilder()).apply { block() }._build() -/** - * ``` - * Engine info list - * ``` - * - * Protobuf type `stabilityai.platformapis.engines.v1.Engines` - */ -public object EnginesKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.engines.v1.Engines.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.engines.v1.Engines.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.engines.v1.Engines = _builder.build() - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class EngineProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * `repeated .stabilityai.platformapis.engines.v1.EngineInfo engine = 1 [json_name = "engine"];` - */ - public val engine: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getEngineList() - ) - /** - * `repeated .stabilityai.platformapis.engines.v1.EngineInfo engine = 1 [json_name = "engine"];` - * @param value The engine to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addEngine") - public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.engines.v1.EngineInfo) { - _builder.addEngine(value) - } - /** - * `repeated .stabilityai.platformapis.engines.v1.EngineInfo engine = 1 [json_name = "engine"];` - * @param value The engine to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignEngine") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.engines.v1.EngineInfo) { - add(value) - } - /** - * `repeated .stabilityai.platformapis.engines.v1.EngineInfo engine = 1 [json_name = "engine"];` - * @param values The engine to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllEngine") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllEngine(values) - } - /** - * `repeated .stabilityai.platformapis.engines.v1.EngineInfo engine = 1 [json_name = "engine"];` - * @param values The engine to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllEngine") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * `repeated .stabilityai.platformapis.engines.v1.EngineInfo engine = 1 [json_name = "engine"];` - * @param index The index to set the value at. - * @param value The engine to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setEngine") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.engines.v1.EngineInfo) { - _builder.setEngine(index, value) - } - /** - * `repeated .stabilityai.platformapis.engines.v1.EngineInfo engine = 1 [json_name = "engine"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearEngine") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearEngine() - } - - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.engines.v1.Engines.copy(block: com.stabilityai.platformapis.engines.v1.EnginesKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.engines.v1.Engines = - com.stabilityai.platformapis.engines.v1.EnginesKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesProtoKt.kt b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesProtoKt.kt deleted file mode 100644 index d3fe6a0..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesProtoKt.kt +++ /dev/null @@ -1,7 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/engines/v1/engines.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.engines.v1; - diff --git a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesServiceClient.kt b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesServiceClient.kt deleted file mode 100644 index 3d63555..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesServiceClient.kt +++ /dev/null @@ -1,26 +0,0 @@ -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: stability_api/platform/engines/v1/engines.proto -// -package com.stabilityai.platformapis.engines.v1 - -import build.buf.connect.Headers -import build.buf.connect.MethodSpec -import build.buf.connect.ProtocolClientInterface -import build.buf.connect.ResponseMessage - -public class EnginesServiceClient( - private val client: ProtocolClientInterface, -) : EnginesServiceClientInterface { - public override suspend fun listEngines(request: ListEnginesRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "stabilityai.platformapis.engines.v1.EnginesService/ListEngines", - com.stabilityai.platformapis.engines.v1.ListEnginesRequest::class, - com.stabilityai.platformapis.engines.v1.Engines::class - ), - ) - -} diff --git a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesServiceClientInterface.kt b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesServiceClientInterface.kt deleted file mode 100644 index f4bbfe1..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/EnginesServiceClientInterface.kt +++ /dev/null @@ -1,13 +0,0 @@ -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: stability_api/platform/engines/v1/engines.proto -// -package com.stabilityai.platformapis.engines.v1 - -import build.buf.connect.Headers -import build.buf.connect.ResponseMessage - -public interface EnginesServiceClientInterface { - public suspend fun listEngines(request: ListEnginesRequest, headers: Headers = emptyMap()): - ResponseMessage -} diff --git a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/ListEnginesRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/engines/v1/ListEnginesRequestKt.kt deleted file mode 100644 index 9c9d32f..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/engines/v1/ListEnginesRequestKt.kt +++ /dev/null @@ -1,38 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/engines/v1/engines.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.engines.v1; - -@kotlin.jvm.JvmName("-initializelistEnginesRequest") -public inline fun listEnginesRequest(block: com.stabilityai.platformapis.engines.v1.ListEnginesRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.engines.v1.ListEnginesRequest = - com.stabilityai.platformapis.engines.v1.ListEnginesRequestKt.Dsl._create(com.stabilityai.platformapis.engines.v1.ListEnginesRequest.newBuilder()).apply { block() }._build() -/** - * ``` - * Empty - * ``` - * - * Protobuf type `stabilityai.platformapis.engines.v1.ListEnginesRequest` - */ -public object ListEnginesRequestKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.engines.v1.ListEnginesRequest.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.engines.v1.ListEnginesRequest.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.engines.v1.ListEnginesRequest = _builder.build() - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.engines.v1.ListEnginesRequest.copy(block: com.stabilityai.platformapis.engines.v1.ListEnginesRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.engines.v1.ListEnginesRequest = - com.stabilityai.platformapis.engines.v1.ListEnginesRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerBatchKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerBatchKt.kt deleted file mode 100644 index 1cf8bbe..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerBatchKt.kt +++ /dev/null @@ -1,128 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializeanswerBatch") -public inline fun answerBatch(block: com.stabilityai.platformapis.generation.v1.AnswerBatchKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.AnswerBatch = - com.stabilityai.platformapis.generation.v1.AnswerBatchKt.Dsl._create(com.stabilityai.platformapis.generation.v1.AnswerBatch.newBuilder()).apply { block() }._build() -/** - * ``` - * An AnswerBatch is a set of Answers. It can represent one or several completed - * requests, which may be sent to the client in a single response. - * ``` - * - * Protobuf type `stabilityai.platformapis.generation.v1.AnswerBatch` - */ -public object AnswerBatchKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.AnswerBatch.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.AnswerBatch.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.AnswerBatch = _builder.build() - - /** - * `string batch_id = 1 [json_name = "batchId"];` - */ - public var batchId: kotlin.String - @JvmName("getBatchId") - get() = _builder.getBatchId() - @JvmName("setBatchId") - set(value) { - _builder.setBatchId(value) - } - /** - * `string batch_id = 1 [json_name = "batchId"];` - */ - public fun clearBatchId() { - _builder.clearBatchId() - } - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class AnswersProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * `repeated .stabilityai.platformapis.generation.v1.Answer answers = 2 [json_name = "answers"];` - */ - public val answers: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getAnswersList() - ) - /** - * `repeated .stabilityai.platformapis.generation.v1.Answer answers = 2 [json_name = "answers"];` - * @param value The answers to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAnswers") - public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.Answer) { - _builder.addAnswers(value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.Answer answers = 2 [json_name = "answers"];` - * @param value The answers to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAnswers") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.Answer) { - add(value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.Answer answers = 2 [json_name = "answers"];` - * @param values The answers to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllAnswers") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllAnswers(values) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.Answer answers = 2 [json_name = "answers"];` - * @param values The answers to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllAnswers") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.Answer answers = 2 [json_name = "answers"];` - * @param index The index to set the value at. - * @param value The answers to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setAnswers") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.Answer) { - _builder.setAnswers(index, value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.Answer answers = 2 [json_name = "answers"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearAnswers") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearAnswers() - } - - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.AnswerBatch.copy(block: com.stabilityai.platformapis.generation.v1.AnswerBatchKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.AnswerBatch = - com.stabilityai.platformapis.generation.v1.AnswerBatchKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerKt.kt deleted file mode 100644 index a628d79..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerKt.kt +++ /dev/null @@ -1,208 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializeanswer") -public inline fun answer(block: com.stabilityai.platformapis.generation.v1.AnswerKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Answer = - com.stabilityai.platformapis.generation.v1.AnswerKt.Dsl._create(com.stabilityai.platformapis.generation.v1.Answer.newBuilder()).apply { block() }._build() -/** - * ``` - * An Answer is a response to a Request. It is a set of Artifacts, which can be - * of any type and forwarded to the client or the next stage. - * ``` - * - * Protobuf type `stabilityai.platformapis.generation.v1.Answer` - */ -public object AnswerKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.Answer.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.Answer.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.Answer = _builder.build() - - /** - * `string answer_id = 1 [json_name = "answerId"];` - */ - public var answerId: kotlin.String - @JvmName("getAnswerId") - get() = _builder.getAnswerId() - @JvmName("setAnswerId") - set(value) { - _builder.setAnswerId(value) - } - /** - * `string answer_id = 1 [json_name = "answerId"];` - */ - public fun clearAnswerId() { - _builder.clearAnswerId() - } - - /** - * `string request_id = 2 [json_name = "requestId"];` - */ - public var requestId: kotlin.String - @JvmName("getRequestId") - get() = _builder.getRequestId() - @JvmName("setRequestId") - set(value) { - _builder.setRequestId(value) - } - /** - * `string request_id = 2 [json_name = "requestId"];` - */ - public fun clearRequestId() { - _builder.clearRequestId() - } - - /** - * `uint64 received = 3 [json_name = "received"];` - */ - public var received: kotlin.Long - @JvmName("getReceived") - get() = _builder.getReceived() - @JvmName("setReceived") - set(value) { - _builder.setReceived(value) - } - /** - * `uint64 received = 3 [json_name = "received"];` - */ - public fun clearReceived() { - _builder.clearReceived() - } - - /** - * `uint64 created = 4 [json_name = "created"];` - */ - public var created: kotlin.Long - @JvmName("getCreated") - get() = _builder.getCreated() - @JvmName("setCreated") - set(value) { - _builder.setCreated(value) - } - /** - * `uint64 created = 4 [json_name = "created"];` - */ - public fun clearCreated() { - _builder.clearCreated() - } - - /** - * `optional .stabilityai.platformapis.generation.v1.AnswerMeta meta = 6 [json_name = "meta"];` - */ - public var meta: com.stabilityai.platformapis.generation.v1.AnswerMeta - @JvmName("getMeta") - get() = _builder.getMeta() - @JvmName("setMeta") - set(value) { - _builder.setMeta(value) - } - /** - * `optional .stabilityai.platformapis.generation.v1.AnswerMeta meta = 6 [json_name = "meta"];` - */ - public fun clearMeta() { - _builder.clearMeta() - } - /** - * `optional .stabilityai.platformapis.generation.v1.AnswerMeta meta = 6 [json_name = "meta"];` - * @return Whether the meta field is set. - */ - public fun hasMeta(): kotlin.Boolean { - return _builder.hasMeta() - } - public val AnswerKt.Dsl.metaOrNull: com.stabilityai.platformapis.generation.v1.AnswerMeta? - get() = _builder.metaOrNull - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class ArtifactsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * `repeated .stabilityai.platformapis.generation.v1.Artifact artifacts = 7 [json_name = "artifacts"];` - */ - public val artifacts: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getArtifactsList() - ) - /** - * `repeated .stabilityai.platformapis.generation.v1.Artifact artifacts = 7 [json_name = "artifacts"];` - * @param value The artifacts to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addArtifacts") - public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.Artifact) { - _builder.addArtifacts(value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.Artifact artifacts = 7 [json_name = "artifacts"];` - * @param value The artifacts to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignArtifacts") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.Artifact) { - add(value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.Artifact artifacts = 7 [json_name = "artifacts"];` - * @param values The artifacts to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllArtifacts") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllArtifacts(values) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.Artifact artifacts = 7 [json_name = "artifacts"];` - * @param values The artifacts to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllArtifacts") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.Artifact artifacts = 7 [json_name = "artifacts"];` - * @param index The index to set the value at. - * @param value The artifacts to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setArtifacts") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.Artifact) { - _builder.setArtifacts(index, value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.Artifact artifacts = 7 [json_name = "artifacts"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearArtifacts") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearArtifacts() - } - - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.Answer.copy(block: com.stabilityai.platformapis.generation.v1.AnswerKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Answer = - com.stabilityai.platformapis.generation.v1.AnswerKt.Dsl._create(this.toBuilder()).apply { block() }._build() - -public val com.stabilityai.platformapis.generation.v1.AnswerOrBuilder.metaOrNull: com.stabilityai.platformapis.generation.v1.AnswerMeta? - get() = if (hasMeta()) getMeta() else null - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerMetaKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerMetaKt.kt deleted file mode 100644 index 74d912b..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AnswerMetaKt.kt +++ /dev/null @@ -1,135 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializeanswerMeta") -public inline fun answerMeta(block: com.stabilityai.platformapis.generation.v1.AnswerMetaKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.AnswerMeta = - com.stabilityai.platformapis.generation.v1.AnswerMetaKt.Dsl._create(com.stabilityai.platformapis.generation.v1.AnswerMeta.newBuilder()).apply { block() }._build() -/** - * ``` - * AnswerMeta is a set of metadata about an answer, usually the operating - * environment. - * ``` - * - * Protobuf type `stabilityai.platformapis.generation.v1.AnswerMeta` - */ -public object AnswerMetaKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.AnswerMeta.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.AnswerMeta.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.AnswerMeta = _builder.build() - - /** - * `optional string gpu_id = 1 [json_name = "gpuId"];` - */ - public var gpuId: kotlin.String - @JvmName("getGpuId") - get() = _builder.getGpuId() - @JvmName("setGpuId") - set(value) { - _builder.setGpuId(value) - } - /** - * `optional string gpu_id = 1 [json_name = "gpuId"];` - */ - public fun clearGpuId() { - _builder.clearGpuId() - } - /** - * `optional string gpu_id = 1 [json_name = "gpuId"];` - * @return Whether the gpuId field is set. - */ - public fun hasGpuId(): kotlin.Boolean { - return _builder.hasGpuId() - } - - /** - * `optional string cpu_id = 2 [json_name = "cpuId"];` - */ - public var cpuId: kotlin.String - @JvmName("getCpuId") - get() = _builder.getCpuId() - @JvmName("setCpuId") - set(value) { - _builder.setCpuId(value) - } - /** - * `optional string cpu_id = 2 [json_name = "cpuId"];` - */ - public fun clearCpuId() { - _builder.clearCpuId() - } - /** - * `optional string cpu_id = 2 [json_name = "cpuId"];` - * @return Whether the cpuId field is set. - */ - public fun hasCpuId(): kotlin.Boolean { - return _builder.hasCpuId() - } - - /** - * `optional string node_id = 3 [json_name = "nodeId"];` - */ - public var nodeId: kotlin.String - @JvmName("getNodeId") - get() = _builder.getNodeId() - @JvmName("setNodeId") - set(value) { - _builder.setNodeId(value) - } - /** - * `optional string node_id = 3 [json_name = "nodeId"];` - */ - public fun clearNodeId() { - _builder.clearNodeId() - } - /** - * `optional string node_id = 3 [json_name = "nodeId"];` - * @return Whether the nodeId field is set. - */ - public fun hasNodeId(): kotlin.Boolean { - return _builder.hasNodeId() - } - - /** - * `optional string engine_id = 4 [json_name = "engineId"];` - */ - public var engineId: kotlin.String - @JvmName("getEngineId") - get() = _builder.getEngineId() - @JvmName("setEngineId") - set(value) { - _builder.setEngineId(value) - } - /** - * `optional string engine_id = 4 [json_name = "engineId"];` - */ - public fun clearEngineId() { - _builder.clearEngineId() - } - /** - * `optional string engine_id = 4 [json_name = "engineId"];` - * @return Whether the engineId field is set. - */ - public fun hasEngineId(): kotlin.Boolean { - return _builder.hasEngineId() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.AnswerMeta.copy(block: com.stabilityai.platformapis.generation.v1.AnswerMetaKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.AnswerMeta = - com.stabilityai.platformapis.generation.v1.AnswerMetaKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ArtifactKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ArtifactKt.kt deleted file mode 100644 index efe83a0..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ArtifactKt.kt +++ /dev/null @@ -1,457 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializeartifact") -public inline fun artifact(block: com.stabilityai.platformapis.generation.v1.ArtifactKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Artifact = - com.stabilityai.platformapis.generation.v1.ArtifactKt.Dsl._create(com.stabilityai.platformapis.generation.v1.Artifact.newBuilder()).apply { block() }._build() -/** - * ``` - * A tangible Artifact, such as an image, video, or text that is used for input - * or output. - * ``` - * - * Protobuf type `stabilityai.platformapis.generation.v1.Artifact` - */ -public object ArtifactKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.Artifact.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.Artifact.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.Artifact = _builder.build() - - /** - * `uint64 id = 1 [json_name = "id"];` - */ - public var id: kotlin.Long - @JvmName("getId") - get() = _builder.getId() - @JvmName("setId") - set(value) { - _builder.setId(value) - } - /** - * `uint64 id = 1 [json_name = "id"];` - */ - public fun clearId() { - _builder.clearId() - } - - /** - * `.stabilityai.platformapis.generation.v1.ArtifactType type = 2 [json_name = "type"];` - */ - public var type: com.stabilityai.platformapis.generation.v1.ArtifactType - @JvmName("getType") - get() = _builder.getType() - @JvmName("setType") - set(value) { - _builder.setType(value) - } - public var typeValue: kotlin.Int - @JvmName("getTypeValue") - get() = _builder.getTypeValue() - @JvmName("setTypeValue") - set(value) { - _builder.setTypeValue(value) - } - /** - * `.stabilityai.platformapis.generation.v1.ArtifactType type = 2 [json_name = "type"];` - */ - public fun clearType() { - _builder.clearType() - } - - /** - * ``` - * MIME type identifier, e.g. "image/png" - * ``` - * - * `string mime = 3 [json_name = "mime"];` - */ - public var mime: kotlin.String - @JvmName("getMime") - get() = _builder.getMime() - @JvmName("setMime") - set(value) { - _builder.setMime(value) - } - /** - * ``` - * MIME type identifier, e.g. "image/png" - * ``` - * - * `string mime = 3 [json_name = "mime"];` - */ - public fun clearMime() { - _builder.clearMime() - } - - /** - * ``` - * Magic number, e.g. "PNG" - * ``` - * - * `optional string magic = 4 [json_name = "magic"];` - */ - public var magic: kotlin.String - @JvmName("getMagic") - get() = _builder.getMagic() - @JvmName("setMagic") - set(value) { - _builder.setMagic(value) - } - /** - * ``` - * Magic number, e.g. "PNG" - * ``` - * - * `optional string magic = 4 [json_name = "magic"];` - */ - public fun clearMagic() { - _builder.clearMagic() - } - /** - * ``` - * Magic number, e.g. "PNG" - * ``` - * - * `optional string magic = 4 [json_name = "magic"];` - * @return Whether the magic field is set. - */ - public fun hasMagic(): kotlin.Boolean { - return _builder.hasMagic() - } - - /** - * ``` - * Binary data, e.g. PNG image - * ``` - * - * `bytes binary = 5 [json_name = "binary"];` - */ - public var binary: com.google.protobuf.ByteString - @JvmName("getBinary") - get() = _builder.getBinary() - @JvmName("setBinary") - set(value) { - _builder.setBinary(value) - } - /** - * ``` - * Binary data, e.g. PNG image - * ``` - * - * `bytes binary = 5 [json_name = "binary"];` - */ - public fun clearBinary() { - _builder.clearBinary() - } - /** - * ``` - * Binary data, e.g. PNG image - * ``` - * - * `bytes binary = 5 [json_name = "binary"];` - * @return Whether the binary field is set. - */ - public fun hasBinary(): kotlin.Boolean { - return _builder.hasBinary() - } - - /** - * ``` - * Text data, e.g. text prompt - * ``` - * - * `string text = 6 [json_name = "text"];` - */ - public var text: kotlin.String - @JvmName("getText") - get() = _builder.getText() - @JvmName("setText") - set(value) { - _builder.setText(value) - } - /** - * ``` - * Text data, e.g. text prompt - * ``` - * - * `string text = 6 [json_name = "text"];` - */ - public fun clearText() { - _builder.clearText() - } - /** - * ``` - * Text data, e.g. text prompt - * ``` - * - * `string text = 6 [json_name = "text"];` - * @return Whether the text field is set. - */ - public fun hasText(): kotlin.Boolean { - return _builder.hasText() - } - - /** - * ``` - * Tokenized text data, e.g. GPT tokens - * ``` - * - * `.stabilityai.platformapis.generation.v1.Tokens tokens = 7 [json_name = "tokens"];` - */ - public var tokens: com.stabilityai.platformapis.generation.v1.Tokens - @JvmName("getTokens") - get() = _builder.getTokens() - @JvmName("setTokens") - set(value) { - _builder.setTokens(value) - } - /** - * ``` - * Tokenized text data, e.g. GPT tokens - * ``` - * - * `.stabilityai.platformapis.generation.v1.Tokens tokens = 7 [json_name = "tokens"];` - */ - public fun clearTokens() { - _builder.clearTokens() - } - /** - * ``` - * Tokenized text data, e.g. GPT tokens - * ``` - * - * `.stabilityai.platformapis.generation.v1.Tokens tokens = 7 [json_name = "tokens"];` - * @return Whether the tokens field is set. - */ - public fun hasTokens(): kotlin.Boolean { - return _builder.hasTokens() - } - - /** - * `.stabilityai.platformapis.generation.v1.ClassifierParameters classifier = 11 [json_name = "classifier"];` - */ - public var classifier: com.stabilityai.platformapis.generation.v1.ClassifierParameters - @JvmName("getClassifier") - get() = _builder.getClassifier() - @JvmName("setClassifier") - set(value) { - _builder.setClassifier(value) - } - /** - * `.stabilityai.platformapis.generation.v1.ClassifierParameters classifier = 11 [json_name = "classifier"];` - */ - public fun clearClassifier() { - _builder.clearClassifier() - } - /** - * `.stabilityai.platformapis.generation.v1.ClassifierParameters classifier = 11 [json_name = "classifier"];` - * @return Whether the classifier field is set. - */ - public fun hasClassifier(): kotlin.Boolean { - return _builder.hasClassifier() - } - - /** - * ``` - * torch.Tensor: - * ``` - * - * `.tensors.Tensor tensor = 14 [json_name = "tensor"];` - */ - public var tensor: com.tensors.Tensor - @JvmName("getTensor") - get() = _builder.getTensor() - @JvmName("setTensor") - set(value) { - _builder.setTensor(value) - } - /** - * ``` - * torch.Tensor: - * ``` - * - * `.tensors.Tensor tensor = 14 [json_name = "tensor"];` - */ - public fun clearTensor() { - _builder.clearTensor() - } - /** - * ``` - * torch.Tensor: - * ``` - * - * `.tensors.Tensor tensor = 14 [json_name = "tensor"];` - * @return Whether the tensor field is set. - */ - public fun hasTensor(): kotlin.Boolean { - return _builder.hasTensor() - } - - /** - * ``` - * Index of this artifact in input/output list - * ``` - * - * `uint32 index = 8 [json_name = "index"];` - */ - public var index: kotlin.Int - @JvmName("getIndex") - get() = _builder.getIndex() - @JvmName("setIndex") - set(value) { - _builder.setIndex(value) - } - /** - * ``` - * Index of this artifact in input/output list - * ``` - * - * `uint32 index = 8 [json_name = "index"];` - */ - public fun clearIndex() { - _builder.clearIndex() - } - - /** - * ``` - * Reason for finishing, if applicable - * ``` - * - * `.stabilityai.platformapis.generation.v1.FinishReason finish_reason = 9 [json_name = "finishReason"];` - */ - public var finishReason: com.stabilityai.platformapis.generation.v1.FinishReason - @JvmName("getFinishReason") - get() = _builder.getFinishReason() - @JvmName("setFinishReason") - set(value) { - _builder.setFinishReason(value) - } - public var finishReasonValue: kotlin.Int - @JvmName("getFinishReasonValue") - get() = _builder.getFinishReasonValue() - @JvmName("setFinishReasonValue") - set(value) { - _builder.setFinishReasonValue(value) - } - /** - * ``` - * Reason for finishing, if applicable - * ``` - * - * `.stabilityai.platformapis.generation.v1.FinishReason finish_reason = 9 [json_name = "finishReason"];` - */ - public fun clearFinishReason() { - _builder.clearFinishReason() - } - - /** - * ``` - * Seed used to generate this artifact - * ``` - * - * `uint32 seed = 10 [json_name = "seed"];` - */ - public var seed: kotlin.Int - @JvmName("getSeed") - get() = _builder.getSeed() - @JvmName("setSeed") - set(value) { - _builder.setSeed(value) - } - /** - * ``` - * Seed used to generate this artifact - * ``` - * - * `uint32 seed = 10 [json_name = "seed"];` - */ - public fun clearSeed() { - _builder.clearSeed() - } - - /** - * ``` - * UUIDv4 of the artifact, used for asset lookup - * ``` - * - * `string uuid = 12 [json_name = "uuid"];` - */ - public var uuid: kotlin.String - @JvmName("getUuid") - get() = _builder.getUuid() - @JvmName("setUuid") - set(value) { - _builder.setUuid(value) - } - /** - * ``` - * UUIDv4 of the artifact, used for asset lookup - * ``` - * - * `string uuid = 12 [json_name = "uuid"];` - */ - public fun clearUuid() { - _builder.clearUuid() - } - - /** - * ``` - * Size of the artifact in bytes - * ``` - * - * `uint64 size = 13 [json_name = "size"];` - */ - public var size: kotlin.Long - @JvmName("getSize") - get() = _builder.getSize() - @JvmName("setSize") - set(value) { - _builder.setSize(value) - } - /** - * ``` - * Size of the artifact in bytes - * ``` - * - * `uint64 size = 13 [json_name = "size"];` - */ - public fun clearSize() { - _builder.clearSize() - } - public val dataCase: com.stabilityai.platformapis.generation.v1.Artifact.DataCase - @JvmName("getDataCase") - get() = _builder.getDataCase() - - public fun clearData() { - _builder.clearData() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.Artifact.copy(block: com.stabilityai.platformapis.generation.v1.ArtifactKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Artifact = - com.stabilityai.platformapis.generation.v1.ArtifactKt.Dsl._create(this.toBuilder()).apply { block() }._build() - -public val com.stabilityai.platformapis.generation.v1.ArtifactOrBuilder.tokensOrNull: com.stabilityai.platformapis.generation.v1.Tokens? - get() = if (hasTokens()) getTokens() else null - -public val com.stabilityai.platformapis.generation.v1.ArtifactOrBuilder.classifierOrNull: com.stabilityai.platformapis.generation.v1.ClassifierParameters? - get() = if (hasClassifier()) getClassifier() else null - -public val com.stabilityai.platformapis.generation.v1.ArtifactOrBuilder.tensorOrNull: com.tensors.Tensor? - get() = if (hasTensor()) getTensor() else null - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AssetParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AssetParametersKt.kt deleted file mode 100644 index a4c7a9a..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/AssetParametersKt.kt +++ /dev/null @@ -1,99 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializeassetParameters") -public inline fun assetParameters(block: com.stabilityai.platformapis.generation.v1.AssetParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.AssetParameters = - com.stabilityai.platformapis.generation.v1.AssetParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.AssetParameters.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.generation.v1.AssetParameters` - */ -public object AssetParametersKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.AssetParameters.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.AssetParameters.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.AssetParameters = _builder.build() - - /** - * `.stabilityai.platformapis.generation.v1.AssetAction action = 1 [json_name = "action"];` - */ - public var action: com.stabilityai.platformapis.generation.v1.AssetAction - @JvmName("getAction") - get() = _builder.getAction() - @JvmName("setAction") - set(value) { - _builder.setAction(value) - } - public var actionValue: kotlin.Int - @JvmName("getActionValue") - get() = _builder.getActionValue() - @JvmName("setActionValue") - set(value) { - _builder.setActionValue(value) - } - /** - * `.stabilityai.platformapis.generation.v1.AssetAction action = 1 [json_name = "action"];` - */ - public fun clearAction() { - _builder.clearAction() - } - - /** - * `string project_id = 2 [json_name = "projectId"];` - */ - public var projectId: kotlin.String - @JvmName("getProjectId") - get() = _builder.getProjectId() - @JvmName("setProjectId") - set(value) { - _builder.setProjectId(value) - } - /** - * `string project_id = 2 [json_name = "projectId"];` - */ - public fun clearProjectId() { - _builder.clearProjectId() - } - - /** - * `.stabilityai.platformapis.generation.v1.AssetUse use = 3 [json_name = "use"];` - */ - public var use: com.stabilityai.platformapis.generation.v1.AssetUse - @JvmName("getUse") - get() = _builder.getUse() - @JvmName("setUse") - set(value) { - _builder.setUse(value) - } - public var useValue: kotlin.Int - @JvmName("getUseValue") - get() = _builder.getUseValue() - @JvmName("setUseValue") - set(value) { - _builder.setUseValue(value) - } - /** - * `.stabilityai.platformapis.generation.v1.AssetUse use = 3 [json_name = "use"];` - */ - public fun clearUse() { - _builder.clearUse() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.AssetParameters.copy(block: com.stabilityai.platformapis.generation.v1.AssetParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.AssetParameters = - com.stabilityai.platformapis.generation.v1.AssetParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/CameraParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/CameraParametersKt.kt deleted file mode 100644 index a58f4cc..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/CameraParametersKt.kt +++ /dev/null @@ -1,144 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializecameraParameters") -public inline fun cameraParameters(block: com.stabilityai.platformapis.generation.v1.CameraParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.CameraParameters = - com.stabilityai.platformapis.generation.v1.CameraParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.CameraParameters.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.generation.v1.CameraParameters` - */ -public object CameraParametersKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.CameraParameters.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.CameraParameters.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.CameraParameters = _builder.build() - - /** - * `.stabilityai.platformapis.generation.v1.CameraType camera_type = 1 [json_name = "cameraType"];` - */ - public var cameraType: com.stabilityai.platformapis.generation.v1.CameraType - @JvmName("getCameraType") - get() = _builder.getCameraType() - @JvmName("setCameraType") - set(value) { - _builder.setCameraType(value) - } - public var cameraTypeValue: kotlin.Int - @JvmName("getCameraTypeValue") - get() = _builder.getCameraTypeValue() - @JvmName("setCameraTypeValue") - set(value) { - _builder.setCameraTypeValue(value) - } - /** - * `.stabilityai.platformapis.generation.v1.CameraType camera_type = 1 [json_name = "cameraType"];` - */ - public fun clearCameraType() { - _builder.clearCameraType() - } - - /** - * ``` - * Nearest plane depth of a rendered frustum - * ``` - * - * `float near_plane = 2 [json_name = "nearPlane"];` - */ - public var nearPlane: kotlin.Float - @JvmName("getNearPlane") - get() = _builder.getNearPlane() - @JvmName("setNearPlane") - set(value) { - _builder.setNearPlane(value) - } - /** - * ``` - * Nearest plane depth of a rendered frustum - * ``` - * - * `float near_plane = 2 [json_name = "nearPlane"];` - */ - public fun clearNearPlane() { - _builder.clearNearPlane() - } - - /** - * ``` - * Farthest plane depth of a rendered frustum - * ``` - * - * `float far_plane = 3 [json_name = "farPlane"];` - */ - public var farPlane: kotlin.Float - @JvmName("getFarPlane") - get() = _builder.getFarPlane() - @JvmName("setFarPlane") - set(value) { - _builder.setFarPlane(value) - } - /** - * ``` - * Farthest plane depth of a rendered frustum - * ``` - * - * `float far_plane = 3 [json_name = "farPlane"];` - */ - public fun clearFarPlane() { - _builder.clearFarPlane() - } - - /** - * ``` - * Camera field of view (in degrees). Must be set for CAMERA_PERSPECTIVE type. - * ``` - * - * `optional float fov = 4 [json_name = "fov"];` - */ - public var fov: kotlin.Float - @JvmName("getFov") - get() = _builder.getFov() - @JvmName("setFov") - set(value) { - _builder.setFov(value) - } - /** - * ``` - * Camera field of view (in degrees). Must be set for CAMERA_PERSPECTIVE type. - * ``` - * - * `optional float fov = 4 [json_name = "fov"];` - */ - public fun clearFov() { - _builder.clearFov() - } - /** - * ``` - * Camera field of view (in degrees). Must be set for CAMERA_PERSPECTIVE type. - * ``` - * - * `optional float fov = 4 [json_name = "fov"];` - * @return Whether the fov field is set. - */ - public fun hasFov(): kotlin.Boolean { - return _builder.hasFov() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.CameraParameters.copy(block: com.stabilityai.platformapis.generation.v1.CameraParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.CameraParameters = - com.stabilityai.platformapis.generation.v1.CameraParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ChainRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ChainRequestKt.kt deleted file mode 100644 index e7379db..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ChainRequestKt.kt +++ /dev/null @@ -1,123 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializechainRequest") -public inline fun chainRequest(block: com.stabilityai.platformapis.generation.v1.ChainRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ChainRequest = - com.stabilityai.platformapis.generation.v1.ChainRequestKt.Dsl._create(com.stabilityai.platformapis.generation.v1.ChainRequest.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.generation.v1.ChainRequest` - */ -public object ChainRequestKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.ChainRequest.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.ChainRequest.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.ChainRequest = _builder.build() - - /** - * `string request_id = 1 [json_name = "requestId"];` - */ - public var requestId: kotlin.String - @JvmName("getRequestId") - get() = _builder.getRequestId() - @JvmName("setRequestId") - set(value) { - _builder.setRequestId(value) - } - /** - * `string request_id = 1 [json_name = "requestId"];` - */ - public fun clearRequestId() { - _builder.clearRequestId() - } - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class StageProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * `repeated .stabilityai.platformapis.generation.v1.Stage stage = 2 [json_name = "stage"];` - */ - public val stage: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getStageList() - ) - /** - * `repeated .stabilityai.platformapis.generation.v1.Stage stage = 2 [json_name = "stage"];` - * @param value The stage to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addStage") - public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.Stage) { - _builder.addStage(value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.Stage stage = 2 [json_name = "stage"];` - * @param value The stage to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignStage") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.Stage) { - add(value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.Stage stage = 2 [json_name = "stage"];` - * @param values The stage to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllStage") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllStage(values) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.Stage stage = 2 [json_name = "stage"];` - * @param values The stage to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllStage") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.Stage stage = 2 [json_name = "stage"];` - * @param index The index to set the value at. - * @param value The stage to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setStage") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.Stage) { - _builder.setStage(index, value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.Stage stage = 2 [json_name = "stage"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearStage") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearStage() - } - - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.ChainRequest.copy(block: com.stabilityai.platformapis.generation.v1.ChainRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ChainRequest = - com.stabilityai.platformapis.generation.v1.ChainRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierCategoryKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierCategoryKt.kt deleted file mode 100644 index c1db3c9..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierCategoryKt.kt +++ /dev/null @@ -1,209 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializeclassifierCategory") -public inline fun classifierCategory(block: com.stabilityai.platformapis.generation.v1.ClassifierCategoryKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ClassifierCategory = - com.stabilityai.platformapis.generation.v1.ClassifierCategoryKt.Dsl._create(com.stabilityai.platformapis.generation.v1.ClassifierCategory.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.generation.v1.ClassifierCategory` - */ -public object ClassifierCategoryKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.ClassifierCategory.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.ClassifierCategory.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.ClassifierCategory = _builder.build() - - /** - * `string name = 1 [json_name = "name"];` - */ - public var name: kotlin.String - @JvmName("getName") - get() = _builder.getName() - @JvmName("setName") - set(value) { - _builder.setName(value) - } - /** - * `string name = 1 [json_name = "name"];` - */ - public fun clearName() { - _builder.clearName() - } - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class ConceptsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * `repeated .stabilityai.platformapis.generation.v1.ClassifierConcept concepts = 2 [json_name = "concepts"];` - */ - public val concepts: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getConceptsList() - ) - /** - * `repeated .stabilityai.platformapis.generation.v1.ClassifierConcept concepts = 2 [json_name = "concepts"];` - * @param value The concepts to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addConcepts") - public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.ClassifierConcept) { - _builder.addConcepts(value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.ClassifierConcept concepts = 2 [json_name = "concepts"];` - * @param value The concepts to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignConcepts") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.ClassifierConcept) { - add(value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.ClassifierConcept concepts = 2 [json_name = "concepts"];` - * @param values The concepts to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllConcepts") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllConcepts(values) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.ClassifierConcept concepts = 2 [json_name = "concepts"];` - * @param values The concepts to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllConcepts") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.ClassifierConcept concepts = 2 [json_name = "concepts"];` - * @param index The index to set the value at. - * @param value The concepts to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setConcepts") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.ClassifierConcept) { - _builder.setConcepts(index, value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.ClassifierConcept concepts = 2 [json_name = "concepts"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearConcepts") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearConcepts() - } - - - /** - * `optional float adjustment = 3 [json_name = "adjustment"];` - */ - public var adjustment: kotlin.Float - @JvmName("getAdjustment") - get() = _builder.getAdjustment() - @JvmName("setAdjustment") - set(value) { - _builder.setAdjustment(value) - } - /** - * `optional float adjustment = 3 [json_name = "adjustment"];` - */ - public fun clearAdjustment() { - _builder.clearAdjustment() - } - /** - * `optional float adjustment = 3 [json_name = "adjustment"];` - * @return Whether the adjustment field is set. - */ - public fun hasAdjustment(): kotlin.Boolean { - return _builder.hasAdjustment() - } - - /** - * `optional .stabilityai.platformapis.generation.v1.Action action = 4 [json_name = "action"];` - */ - public var action: com.stabilityai.platformapis.generation.v1.Action - @JvmName("getAction") - get() = _builder.getAction() - @JvmName("setAction") - set(value) { - _builder.setAction(value) - } - public var actionValue: kotlin.Int - @JvmName("getActionValue") - get() = _builder.getActionValue() - @JvmName("setActionValue") - set(value) { - _builder.setActionValue(value) - } - /** - * `optional .stabilityai.platformapis.generation.v1.Action action = 4 [json_name = "action"];` - */ - public fun clearAction() { - _builder.clearAction() - } - /** - * `optional .stabilityai.platformapis.generation.v1.Action action = 4 [json_name = "action"];` - * @return Whether the action field is set. - */ - public fun hasAction(): kotlin.Boolean { - return _builder.hasAction() - } - - /** - * `optional .stabilityai.platformapis.generation.v1.ClassifierMode classifier_mode = 5 [json_name = "classifierMode"];` - */ - public var classifierMode: com.stabilityai.platformapis.generation.v1.ClassifierMode - @JvmName("getClassifierMode") - get() = _builder.getClassifierMode() - @JvmName("setClassifierMode") - set(value) { - _builder.setClassifierMode(value) - } - public var classifierModeValue: kotlin.Int - @JvmName("getClassifierModeValue") - get() = _builder.getClassifierModeValue() - @JvmName("setClassifierModeValue") - set(value) { - _builder.setClassifierModeValue(value) - } - /** - * `optional .stabilityai.platformapis.generation.v1.ClassifierMode classifier_mode = 5 [json_name = "classifierMode"];` - */ - public fun clearClassifierMode() { - _builder.clearClassifierMode() - } - /** - * `optional .stabilityai.platformapis.generation.v1.ClassifierMode classifier_mode = 5 [json_name = "classifierMode"];` - * @return Whether the classifierMode field is set. - */ - public fun hasClassifierMode(): kotlin.Boolean { - return _builder.hasClassifierMode() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.ClassifierCategory.copy(block: com.stabilityai.platformapis.generation.v1.ClassifierCategoryKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ClassifierCategory = - com.stabilityai.platformapis.generation.v1.ClassifierCategoryKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierConceptKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierConceptKt.kt deleted file mode 100644 index da51f29..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierConceptKt.kt +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializeclassifierConcept") -public inline fun classifierConcept(block: com.stabilityai.platformapis.generation.v1.ClassifierConceptKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ClassifierConcept = - com.stabilityai.platformapis.generation.v1.ClassifierConceptKt.Dsl._create(com.stabilityai.platformapis.generation.v1.ClassifierConcept.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.generation.v1.ClassifierConcept` - */ -public object ClassifierConceptKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.ClassifierConcept.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.ClassifierConcept.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.ClassifierConcept = _builder.build() - - /** - * `string concept = 1 [json_name = "concept"];` - */ - public var concept: kotlin.String - @JvmName("getConcept") - get() = _builder.getConcept() - @JvmName("setConcept") - set(value) { - _builder.setConcept(value) - } - /** - * `string concept = 1 [json_name = "concept"];` - */ - public fun clearConcept() { - _builder.clearConcept() - } - - /** - * `optional float threshold = 2 [json_name = "threshold"];` - */ - public var threshold: kotlin.Float - @JvmName("getThreshold") - get() = _builder.getThreshold() - @JvmName("setThreshold") - set(value) { - _builder.setThreshold(value) - } - /** - * `optional float threshold = 2 [json_name = "threshold"];` - */ - public fun clearThreshold() { - _builder.clearThreshold() - } - /** - * `optional float threshold = 2 [json_name = "threshold"];` - * @return Whether the threshold field is set. - */ - public fun hasThreshold(): kotlin.Boolean { - return _builder.hasThreshold() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.ClassifierConcept.copy(block: com.stabilityai.platformapis.generation.v1.ClassifierConceptKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ClassifierConcept = - com.stabilityai.platformapis.generation.v1.ClassifierConceptKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierParametersKt.kt deleted file mode 100644 index 3f6bc10..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ClassifierParametersKt.kt +++ /dev/null @@ -1,209 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializeclassifierParameters") -public inline fun classifierParameters(block: com.stabilityai.platformapis.generation.v1.ClassifierParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ClassifierParameters = - com.stabilityai.platformapis.generation.v1.ClassifierParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.ClassifierParameters.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.generation.v1.ClassifierParameters` - */ -public object ClassifierParametersKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.ClassifierParameters.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.ClassifierParameters.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.ClassifierParameters = _builder.build() - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class CategoriesProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory categories = 1 [json_name = "categories"];` - */ - public val categories: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getCategoriesList() - ) - /** - * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory categories = 1 [json_name = "categories"];` - * @param value The categories to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addCategories") - public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.ClassifierCategory) { - _builder.addCategories(value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory categories = 1 [json_name = "categories"];` - * @param value The categories to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignCategories") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.ClassifierCategory) { - add(value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory categories = 1 [json_name = "categories"];` - * @param values The categories to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllCategories") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllCategories(values) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory categories = 1 [json_name = "categories"];` - * @param values The categories to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllCategories") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory categories = 1 [json_name = "categories"];` - * @param index The index to set the value at. - * @param value The categories to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setCategories") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.ClassifierCategory) { - _builder.setCategories(index, value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory categories = 1 [json_name = "categories"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearCategories") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearCategories() - } - - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class ExceedsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory exceeds = 2 [json_name = "exceeds"];` - */ - public val exceeds: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getExceedsList() - ) - /** - * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory exceeds = 2 [json_name = "exceeds"];` - * @param value The exceeds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addExceeds") - public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.ClassifierCategory) { - _builder.addExceeds(value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory exceeds = 2 [json_name = "exceeds"];` - * @param value The exceeds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignExceeds") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.ClassifierCategory) { - add(value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory exceeds = 2 [json_name = "exceeds"];` - * @param values The exceeds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllExceeds") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllExceeds(values) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory exceeds = 2 [json_name = "exceeds"];` - * @param values The exceeds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllExceeds") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory exceeds = 2 [json_name = "exceeds"];` - * @param index The index to set the value at. - * @param value The exceeds to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setExceeds") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.ClassifierCategory) { - _builder.setExceeds(index, value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.ClassifierCategory exceeds = 2 [json_name = "exceeds"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearExceeds") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearExceeds() - } - - - /** - * `optional .stabilityai.platformapis.generation.v1.Action realized_action = 3 [json_name = "realizedAction"];` - */ - public var realizedAction: com.stabilityai.platformapis.generation.v1.Action - @JvmName("getRealizedAction") - get() = _builder.getRealizedAction() - @JvmName("setRealizedAction") - set(value) { - _builder.setRealizedAction(value) - } - public var realizedActionValue: kotlin.Int - @JvmName("getRealizedActionValue") - get() = _builder.getRealizedActionValue() - @JvmName("setRealizedActionValue") - set(value) { - _builder.setRealizedActionValue(value) - } - /** - * `optional .stabilityai.platformapis.generation.v1.Action realized_action = 3 [json_name = "realizedAction"];` - */ - public fun clearRealizedAction() { - _builder.clearRealizedAction() - } - /** - * `optional .stabilityai.platformapis.generation.v1.Action realized_action = 3 [json_name = "realizedAction"];` - * @return Whether the realizedAction field is set. - */ - public fun hasRealizedAction(): kotlin.Boolean { - return _builder.hasRealizedAction() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.ClassifierParameters.copy(block: com.stabilityai.platformapis.generation.v1.ClassifierParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ClassifierParameters = - com.stabilityai.platformapis.generation.v1.ClassifierParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ConditionerParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ConditionerParametersKt.kt deleted file mode 100644 index 4904892..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ConditionerParametersKt.kt +++ /dev/null @@ -1,92 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializeconditionerParameters") -public inline fun conditionerParameters(block: com.stabilityai.platformapis.generation.v1.ConditionerParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ConditionerParameters = - com.stabilityai.platformapis.generation.v1.ConditionerParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.ConditionerParameters.newBuilder()).apply { block() }._build() -/** - * ``` - * Unused, but reserved for future use. Adjustments to the latents after - * initialization. - * ``` - * - * Protobuf type `stabilityai.platformapis.generation.v1.ConditionerParameters` - */ -public object ConditionerParametersKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.ConditionerParameters.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.ConditionerParameters.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.ConditionerParameters = _builder.build() - - /** - * `optional string vector_adjust_prior = 1 [json_name = "vectorAdjustPrior"];` - */ - public var vectorAdjustPrior: kotlin.String - @JvmName("getVectorAdjustPrior") - get() = _builder.getVectorAdjustPrior() - @JvmName("setVectorAdjustPrior") - set(value) { - _builder.setVectorAdjustPrior(value) - } - /** - * `optional string vector_adjust_prior = 1 [json_name = "vectorAdjustPrior"];` - */ - public fun clearVectorAdjustPrior() { - _builder.clearVectorAdjustPrior() - } - /** - * `optional string vector_adjust_prior = 1 [json_name = "vectorAdjustPrior"];` - * @return Whether the vectorAdjustPrior field is set. - */ - public fun hasVectorAdjustPrior(): kotlin.Boolean { - return _builder.hasVectorAdjustPrior() - } - - /** - * `optional .stabilityai.platformapis.generation.v1.Model conditioner = 2 [json_name = "conditioner"];` - */ - public var conditioner: com.stabilityai.platformapis.generation.v1.Model - @JvmName("getConditioner") - get() = _builder.getConditioner() - @JvmName("setConditioner") - set(value) { - _builder.setConditioner(value) - } - /** - * `optional .stabilityai.platformapis.generation.v1.Model conditioner = 2 [json_name = "conditioner"];` - */ - public fun clearConditioner() { - _builder.clearConditioner() - } - /** - * `optional .stabilityai.platformapis.generation.v1.Model conditioner = 2 [json_name = "conditioner"];` - * @return Whether the conditioner field is set. - */ - public fun hasConditioner(): kotlin.Boolean { - return _builder.hasConditioner() - } - public val ConditionerParametersKt.Dsl.conditionerOrNull: com.stabilityai.platformapis.generation.v1.Model? - get() = _builder.conditionerOrNull - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.ConditionerParameters.copy(block: com.stabilityai.platformapis.generation.v1.ConditionerParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ConditionerParameters = - com.stabilityai.platformapis.generation.v1.ConditionerParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() - -public val com.stabilityai.platformapis.generation.v1.ConditionerParametersOrBuilder.conditionerOrNull: com.stabilityai.platformapis.generation.v1.Model? - get() = if (hasConditioner()) getConditioner() else null - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/CutoutParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/CutoutParametersKt.kt deleted file mode 100644 index c195a4f..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/CutoutParametersKt.kt +++ /dev/null @@ -1,278 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializecutoutParameters") -public inline fun cutoutParameters(block: com.stabilityai.platformapis.generation.v1.CutoutParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.CutoutParameters = - com.stabilityai.platformapis.generation.v1.CutoutParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.CutoutParameters.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.generation.v1.CutoutParameters` - */ -public object CutoutParametersKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.CutoutParameters.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.CutoutParameters.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.CutoutParameters = _builder.build() - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class CutoutsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * ``` - * Nested cutouts, unsupported - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.CutoutParameters cutouts = 1 [json_name = "cutouts"];` - */ - public val cutouts: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getCutoutsList() - ) - /** - * ``` - * Nested cutouts, unsupported - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.CutoutParameters cutouts = 1 [json_name = "cutouts"];` - * @param value The cutouts to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addCutouts") - public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.CutoutParameters) { - _builder.addCutouts(value) - } - /** - * ``` - * Nested cutouts, unsupported - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.CutoutParameters cutouts = 1 [json_name = "cutouts"];` - * @param value The cutouts to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignCutouts") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.CutoutParameters) { - add(value) - } - /** - * ``` - * Nested cutouts, unsupported - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.CutoutParameters cutouts = 1 [json_name = "cutouts"];` - * @param values The cutouts to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllCutouts") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllCutouts(values) - } - /** - * ``` - * Nested cutouts, unsupported - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.CutoutParameters cutouts = 1 [json_name = "cutouts"];` - * @param values The cutouts to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllCutouts") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * ``` - * Nested cutouts, unsupported - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.CutoutParameters cutouts = 1 [json_name = "cutouts"];` - * @param index The index to set the value at. - * @param value The cutouts to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setCutouts") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.CutoutParameters) { - _builder.setCutouts(index, value) - } - /** - * ``` - * Nested cutouts, unsupported - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.CutoutParameters cutouts = 1 [json_name = "cutouts"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearCutouts") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearCutouts() - } - - - /** - * ``` - * 0 to n, usually 8 to 32, 0 inner - * ``` - * - * `optional uint32 count = 2 [json_name = "count"];` - */ - public var count: kotlin.Int - @JvmName("getCount") - get() = _builder.getCount() - @JvmName("setCount") - set(value) { - _builder.setCount(value) - } - /** - * ``` - * 0 to n, usually 8 to 32, 0 inner - * ``` - * - * `optional uint32 count = 2 [json_name = "count"];` - */ - public fun clearCount() { - _builder.clearCount() - } - /** - * ``` - * 0 to n, usually 8 to 32, 0 inner - * ``` - * - * `optional uint32 count = 2 [json_name = "count"];` - * @return Whether the count field is set. - */ - public fun hasCount(): kotlin.Boolean { - return _builder.hasCount() - } - - /** - * ``` - * 0.0 to 1.0, defaults to 0.2 - * ``` - * - * `optional float gray = 3 [json_name = "gray"];` - */ - public var gray: kotlin.Float - @JvmName("getGray") - get() = _builder.getGray() - @JvmName("setGray") - set(value) { - _builder.setGray(value) - } - /** - * ``` - * 0.0 to 1.0, defaults to 0.2 - * ``` - * - * `optional float gray = 3 [json_name = "gray"];` - */ - public fun clearGray() { - _builder.clearGray() - } - /** - * ``` - * 0.0 to 1.0, defaults to 0.2 - * ``` - * - * `optional float gray = 3 [json_name = "gray"];` - * @return Whether the gray field is set. - */ - public fun hasGray(): kotlin.Boolean { - return _builder.hasGray() - } - - /** - * ``` - * percentage of cutouts to blur - * ``` - * - * `optional float blur = 4 [json_name = "blur"];` - */ - public var blur: kotlin.Float - @JvmName("getBlur") - get() = _builder.getBlur() - @JvmName("setBlur") - set(value) { - _builder.setBlur(value) - } - /** - * ``` - * percentage of cutouts to blur - * ``` - * - * `optional float blur = 4 [json_name = "blur"];` - */ - public fun clearBlur() { - _builder.clearBlur() - } - /** - * ``` - * percentage of cutouts to blur - * ``` - * - * `optional float blur = 4 [json_name = "blur"];` - * @return Whether the blur field is set. - */ - public fun hasBlur(): kotlin.Boolean { - return _builder.hasBlur() - } - - /** - * ``` - * defaults to inner: 0.5, outer: 0.0 - * ``` - * - * `optional float size_power = 5 [json_name = "sizePower"];` - */ - public var sizePower: kotlin.Float - @JvmName("getSizePower") - get() = _builder.getSizePower() - @JvmName("setSizePower") - set(value) { - _builder.setSizePower(value) - } - /** - * ``` - * defaults to inner: 0.5, outer: 0.0 - * ``` - * - * `optional float size_power = 5 [json_name = "sizePower"];` - */ - public fun clearSizePower() { - _builder.clearSizePower() - } - /** - * ``` - * defaults to inner: 0.5, outer: 0.0 - * ``` - * - * `optional float size_power = 5 [json_name = "sizePower"];` - * @return Whether the sizePower field is set. - */ - public fun hasSizePower(): kotlin.Boolean { - return _builder.hasSizePower() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.CutoutParameters.copy(block: com.stabilityai.platformapis.generation.v1.CutoutParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.CutoutParameters = - com.stabilityai.platformapis.generation.v1.CutoutParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationProtoKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationProtoKt.kt deleted file mode 100644 index 619ad61..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationProtoKt.kt +++ /dev/null @@ -1,7 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationServiceClient.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationServiceClient.kt deleted file mode 100644 index 13d5fe3..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationServiceClient.kt +++ /dev/null @@ -1,40 +0,0 @@ -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: stability_api/platform/generation/v1/generation.proto -// -package com.stabilityai.platformapis.generation.v1 - -import build.buf.connect.Headers -import build.buf.connect.MethodSpec -import build.buf.connect.ProtocolClientInterface -import build.buf.connect.ServerOnlyStreamInterface - -/** - * - * gRPC services - */ -public class GenerationServiceClient( - private val client: ProtocolClientInterface, -) : GenerationServiceClientInterface { - public override suspend fun generate(headers: Headers): ServerOnlyStreamInterface - = client.serverStream( - headers, - MethodSpec( - "stabilityai.platformapis.generation.v1.GenerationService/Generate", - com.stabilityai.platformapis.generation.v1.Request::class, - com.stabilityai.platformapis.generation.v1.Answer::class - ), - ) - - - public override suspend fun chainGenerate(headers: Headers): - ServerOnlyStreamInterface = client.serverStream( - headers, - MethodSpec( - "stabilityai.platformapis.generation.v1.GenerationService/ChainGenerate", - com.stabilityai.platformapis.generation.v1.ChainRequest::class, - com.stabilityai.platformapis.generation.v1.Answer::class - ), - ) - -} diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationServiceClientInterface.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationServiceClientInterface.kt deleted file mode 100644 index 21f3163..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GenerationServiceClientInterface.kt +++ /dev/null @@ -1,20 +0,0 @@ -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: stability_api/platform/generation/v1/generation.proto -// -package com.stabilityai.platformapis.generation.v1 - -import build.buf.connect.Headers -import build.buf.connect.ServerOnlyStreamInterface - -/** - * - * gRPC services - */ -public interface GenerationServiceClientInterface { - public suspend fun generate(headers: Headers = emptyMap()): - ServerOnlyStreamInterface - - public suspend fun chainGenerate(headers: Headers = emptyMap()): - ServerOnlyStreamInterface -} diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceInstanceParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceInstanceParametersKt.kt deleted file mode 100644 index b934dce..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceInstanceParametersKt.kt +++ /dev/null @@ -1,358 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializeguidanceInstanceParameters") -public inline fun guidanceInstanceParameters(block: com.stabilityai.platformapis.generation.v1.GuidanceInstanceParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.GuidanceInstanceParameters = - com.stabilityai.platformapis.generation.v1.GuidanceInstanceParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.GuidanceInstanceParameters.newBuilder()).apply { block() }._build() -/** - * ``` - * Parameters that affect the behavior of the guidance, typically used for CLIP. - * We can specify more than one model, and the guidance will be a weighted sum - * of the models. - * ``` - * - * Protobuf type `stabilityai.platformapis.generation.v1.GuidanceInstanceParameters` - */ -public object GuidanceInstanceParametersKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.GuidanceInstanceParameters.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.GuidanceInstanceParameters.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.GuidanceInstanceParameters = _builder.build() - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class ModelsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * ``` - * models to use for this set - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.Model models = 2 [json_name = "models"];` - */ - public val models: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getModelsList() - ) - /** - * ``` - * models to use for this set - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.Model models = 2 [json_name = "models"];` - * @param value The models to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addModels") - public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.Model) { - _builder.addModels(value) - } - /** - * ``` - * models to use for this set - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.Model models = 2 [json_name = "models"];` - * @param value The models to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignModels") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.Model) { - add(value) - } - /** - * ``` - * models to use for this set - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.Model models = 2 [json_name = "models"];` - * @param values The models to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllModels") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllModels(values) - } - /** - * ``` - * models to use for this set - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.Model models = 2 [json_name = "models"];` - * @param values The models to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllModels") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * ``` - * models to use for this set - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.Model models = 2 [json_name = "models"];` - * @param index The index to set the value at. - * @param value The models to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setModels") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.Model) { - _builder.setModels(index, value) - } - /** - * ``` - * models to use for this set - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.Model models = 2 [json_name = "models"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearModels") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearModels() - } - - - /** - * ``` - * 0.0 to 1.0, usually 0.05 to 0.225 - * ``` - * - * `optional float guidance_strength = 3 [json_name = "guidanceStrength"];` - */ - public var guidanceStrength: kotlin.Float - @JvmName("getGuidanceStrength") - get() = _builder.getGuidanceStrength() - @JvmName("setGuidanceStrength") - set(value) { - _builder.setGuidanceStrength(value) - } - /** - * ``` - * 0.0 to 1.0, usually 0.05 to 0.225 - * ``` - * - * `optional float guidance_strength = 3 [json_name = "guidanceStrength"];` - */ - public fun clearGuidanceStrength() { - _builder.clearGuidanceStrength() - } - /** - * ``` - * 0.0 to 1.0, usually 0.05 to 0.225 - * ``` - * - * `optional float guidance_strength = 3 [json_name = "guidanceStrength"];` - * @return Whether the guidanceStrength field is set. - */ - public fun hasGuidanceStrength(): kotlin.Boolean { - return _builder.hasGuidanceStrength() - } - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class ScheduleProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * ``` - * when to apply guidance - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.GuidanceScheduleParameters schedule = 4 [json_name = "schedule"];` - */ - public val schedule: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getScheduleList() - ) - /** - * ``` - * when to apply guidance - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.GuidanceScheduleParameters schedule = 4 [json_name = "schedule"];` - * @param value The schedule to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addSchedule") - public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.GuidanceScheduleParameters) { - _builder.addSchedule(value) - } - /** - * ``` - * when to apply guidance - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.GuidanceScheduleParameters schedule = 4 [json_name = "schedule"];` - * @param value The schedule to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignSchedule") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.GuidanceScheduleParameters) { - add(value) - } - /** - * ``` - * when to apply guidance - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.GuidanceScheduleParameters schedule = 4 [json_name = "schedule"];` - * @param values The schedule to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllSchedule") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllSchedule(values) - } - /** - * ``` - * when to apply guidance - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.GuidanceScheduleParameters schedule = 4 [json_name = "schedule"];` - * @param values The schedule to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllSchedule") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * ``` - * when to apply guidance - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.GuidanceScheduleParameters schedule = 4 [json_name = "schedule"];` - * @param index The index to set the value at. - * @param value The schedule to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setSchedule") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.GuidanceScheduleParameters) { - _builder.setSchedule(index, value) - } - /** - * ``` - * when to apply guidance - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.GuidanceScheduleParameters schedule = 4 [json_name = "schedule"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearSchedule") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearSchedule() - } - - - /** - * ``` - * cutout parameters - * ``` - * - * `optional .stabilityai.platformapis.generation.v1.CutoutParameters cutouts = 5 [json_name = "cutouts"];` - */ - public var cutouts: com.stabilityai.platformapis.generation.v1.CutoutParameters - @JvmName("getCutouts") - get() = _builder.getCutouts() - @JvmName("setCutouts") - set(value) { - _builder.setCutouts(value) - } - /** - * ``` - * cutout parameters - * ``` - * - * `optional .stabilityai.platformapis.generation.v1.CutoutParameters cutouts = 5 [json_name = "cutouts"];` - */ - public fun clearCutouts() { - _builder.clearCutouts() - } - /** - * ``` - * cutout parameters - * ``` - * - * `optional .stabilityai.platformapis.generation.v1.CutoutParameters cutouts = 5 [json_name = "cutouts"];` - * @return Whether the cutouts field is set. - */ - public fun hasCutouts(): kotlin.Boolean { - return _builder.hasCutouts() - } - public val GuidanceInstanceParametersKt.Dsl.cutoutsOrNull: com.stabilityai.platformapis.generation.v1.CutoutParameters? - get() = _builder.cutoutsOrNull - - /** - * ``` - * prompt to use for guidance - * ``` - * - * `optional .stabilityai.platformapis.generation.v1.Prompt prompt = 6 [json_name = "prompt"];` - */ - public var prompt: com.stabilityai.platformapis.generation.v1.Prompt - @JvmName("getPrompt") - get() = _builder.getPrompt() - @JvmName("setPrompt") - set(value) { - _builder.setPrompt(value) - } - /** - * ``` - * prompt to use for guidance - * ``` - * - * `optional .stabilityai.platformapis.generation.v1.Prompt prompt = 6 [json_name = "prompt"];` - */ - public fun clearPrompt() { - _builder.clearPrompt() - } - /** - * ``` - * prompt to use for guidance - * ``` - * - * `optional .stabilityai.platformapis.generation.v1.Prompt prompt = 6 [json_name = "prompt"];` - * @return Whether the prompt field is set. - */ - public fun hasPrompt(): kotlin.Boolean { - return _builder.hasPrompt() - } - public val GuidanceInstanceParametersKt.Dsl.promptOrNull: com.stabilityai.platformapis.generation.v1.Prompt? - get() = _builder.promptOrNull - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.GuidanceInstanceParameters.copy(block: com.stabilityai.platformapis.generation.v1.GuidanceInstanceParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.GuidanceInstanceParameters = - com.stabilityai.platformapis.generation.v1.GuidanceInstanceParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() - -public val com.stabilityai.platformapis.generation.v1.GuidanceInstanceParametersOrBuilder.cutoutsOrNull: com.stabilityai.platformapis.generation.v1.CutoutParameters? - get() = if (hasCutouts()) getCutouts() else null - -public val com.stabilityai.platformapis.generation.v1.GuidanceInstanceParametersOrBuilder.promptOrNull: com.stabilityai.platformapis.generation.v1.Prompt? - get() = if (hasPrompt()) getPrompt() else null - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceParametersKt.kt deleted file mode 100644 index acdd9c5..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceParametersKt.kt +++ /dev/null @@ -1,171 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializeguidanceParameters") -public inline fun guidanceParameters(block: com.stabilityai.platformapis.generation.v1.GuidanceParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.GuidanceParameters = - com.stabilityai.platformapis.generation.v1.GuidanceParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.GuidanceParameters.newBuilder()).apply { block() }._build() -/** - * ``` - * Parameters that affect the behavior of the guidance, typically used for CLIP. - * The omission of this field implies the default guidance of CFG. - * ``` - * - * Protobuf type `stabilityai.platformapis.generation.v1.GuidanceParameters` - */ -public object GuidanceParametersKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.GuidanceParameters.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.GuidanceParameters.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.GuidanceParameters = _builder.build() - - /** - * ``` - * base preset for guidance - * ``` - * - * `.stabilityai.platformapis.generation.v1.GuidancePreset guidance_preset = 1 [json_name = "guidancePreset"];` - */ - public var guidancePreset: com.stabilityai.platformapis.generation.v1.GuidancePreset - @JvmName("getGuidancePreset") - get() = _builder.getGuidancePreset() - @JvmName("setGuidancePreset") - set(value) { - _builder.setGuidancePreset(value) - } - public var guidancePresetValue: kotlin.Int - @JvmName("getGuidancePresetValue") - get() = _builder.getGuidancePresetValue() - @JvmName("setGuidancePresetValue") - set(value) { - _builder.setGuidancePresetValue(value) - } - /** - * ``` - * base preset for guidance - * ``` - * - * `.stabilityai.platformapis.generation.v1.GuidancePreset guidance_preset = 1 [json_name = "guidancePreset"];` - */ - public fun clearGuidancePreset() { - _builder.clearGuidancePreset() - } - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class InstancesProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * ``` - * guidance instances - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.GuidanceInstanceParameters instances = 2 [json_name = "instances"];` - */ - public val instances: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getInstancesList() - ) - /** - * ``` - * guidance instances - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.GuidanceInstanceParameters instances = 2 [json_name = "instances"];` - * @param value The instances to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addInstances") - public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.GuidanceInstanceParameters) { - _builder.addInstances(value) - } - /** - * ``` - * guidance instances - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.GuidanceInstanceParameters instances = 2 [json_name = "instances"];` - * @param value The instances to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignInstances") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.GuidanceInstanceParameters) { - add(value) - } - /** - * ``` - * guidance instances - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.GuidanceInstanceParameters instances = 2 [json_name = "instances"];` - * @param values The instances to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllInstances") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllInstances(values) - } - /** - * ``` - * guidance instances - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.GuidanceInstanceParameters instances = 2 [json_name = "instances"];` - * @param values The instances to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllInstances") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * ``` - * guidance instances - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.GuidanceInstanceParameters instances = 2 [json_name = "instances"];` - * @param index The index to set the value at. - * @param value The instances to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setInstances") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.GuidanceInstanceParameters) { - _builder.setInstances(index, value) - } - /** - * ``` - * guidance instances - * ``` - * - * `repeated .stabilityai.platformapis.generation.v1.GuidanceInstanceParameters instances = 2 [json_name = "instances"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearInstances") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearInstances() - } - - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.GuidanceParameters.copy(block: com.stabilityai.platformapis.generation.v1.GuidanceParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.GuidanceParameters = - com.stabilityai.platformapis.generation.v1.GuidanceParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceScheduleParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceScheduleParametersKt.kt deleted file mode 100644 index 5e64771..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/GuidanceScheduleParametersKt.kt +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializeguidanceScheduleParameters") -public inline fun guidanceScheduleParameters(block: com.stabilityai.platformapis.generation.v1.GuidanceScheduleParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.GuidanceScheduleParameters = - com.stabilityai.platformapis.generation.v1.GuidanceScheduleParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.GuidanceScheduleParameters.newBuilder()).apply { block() }._build() -/** - * ``` - * GuidanceScheduleParameters are used to define a schedule for CLIP guidance, and - * are used to define the behavior of the guidance over time. They are relative - * to the total number of steps, and are scaled to the number of steps in the - * current run. - * ``` - * - * Protobuf type `stabilityai.platformapis.generation.v1.GuidanceScheduleParameters` - */ -public object GuidanceScheduleParametersKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.GuidanceScheduleParameters.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.GuidanceScheduleParameters.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.GuidanceScheduleParameters = _builder.build() - - /** - * `float duration = 1 [json_name = "duration"];` - */ - public var duration: kotlin.Float - @JvmName("getDuration") - get() = _builder.getDuration() - @JvmName("setDuration") - set(value) { - _builder.setDuration(value) - } - /** - * `float duration = 1 [json_name = "duration"];` - */ - public fun clearDuration() { - _builder.clearDuration() - } - - /** - * `float value = 2 [json_name = "value"];` - */ - public var value: kotlin.Float - @JvmName("getValue") - get() = _builder.getValue() - @JvmName("setValue") - set(value) { - _builder.setValue(value) - } - /** - * `float value = 2 [json_name = "value"];` - */ - public fun clearValue() { - _builder.clearValue() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.GuidanceScheduleParameters.copy(block: com.stabilityai.platformapis.generation.v1.GuidanceScheduleParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.GuidanceScheduleParameters = - com.stabilityai.platformapis.generation.v1.GuidanceScheduleParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ImageParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ImageParametersKt.kt deleted file mode 100644 index 7ed5d9d..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ImageParametersKt.kt +++ /dev/null @@ -1,418 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializeimageParameters") -public inline fun imageParameters(block: com.stabilityai.platformapis.generation.v1.ImageParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ImageParameters = - com.stabilityai.platformapis.generation.v1.ImageParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.ImageParameters.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.generation.v1.ImageParameters` - */ -public object ImageParametersKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.ImageParameters.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.ImageParameters.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.ImageParameters = _builder.build() - - /** - * `optional uint64 height = 1 [json_name = "height"];` - */ - public var height: kotlin.Long - @JvmName("getHeight") - get() = _builder.getHeight() - @JvmName("setHeight") - set(value) { - _builder.setHeight(value) - } - /** - * `optional uint64 height = 1 [json_name = "height"];` - */ - public fun clearHeight() { - _builder.clearHeight() - } - /** - * `optional uint64 height = 1 [json_name = "height"];` - * @return Whether the height field is set. - */ - public fun hasHeight(): kotlin.Boolean { - return _builder.hasHeight() - } - - /** - * `optional uint64 width = 2 [json_name = "width"];` - */ - public var width: kotlin.Long - @JvmName("getWidth") - get() = _builder.getWidth() - @JvmName("setWidth") - set(value) { - _builder.setWidth(value) - } - /** - * `optional uint64 width = 2 [json_name = "width"];` - */ - public fun clearWidth() { - _builder.clearWidth() - } - /** - * `optional uint64 width = 2 [json_name = "width"];` - * @return Whether the width field is set. - */ - public fun hasWidth(): kotlin.Boolean { - return _builder.hasWidth() - } - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class SeedProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * `repeated uint32 seed = 3 [json_name = "seed"];` - */ - public val seed: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getSeedList() - ) - /** - * `repeated uint32 seed = 3 [json_name = "seed"];` - * @param value The seed to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addSeed") - public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.Int) { - _builder.addSeed(value) - }/** - * `repeated uint32 seed = 3 [json_name = "seed"];` - * @param value The seed to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignSeed") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.Int) { - add(value) - }/** - * `repeated uint32 seed = 3 [json_name = "seed"];` - * @param values The seed to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllSeed") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllSeed(values) - }/** - * `repeated uint32 seed = 3 [json_name = "seed"];` - * @param values The seed to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllSeed") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - }/** - * `repeated uint32 seed = 3 [json_name = "seed"];` - * @param index The index to set the value at. - * @param value The seed to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setSeed") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.Int) { - _builder.setSeed(index, value) - }/** - * `repeated uint32 seed = 3 [json_name = "seed"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearSeed") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearSeed() - } - /** - * `optional uint64 samples = 4 [json_name = "samples"];` - */ - public var samples: kotlin.Long - @JvmName("getSamples") - get() = _builder.getSamples() - @JvmName("setSamples") - set(value) { - _builder.setSamples(value) - } - /** - * `optional uint64 samples = 4 [json_name = "samples"];` - */ - public fun clearSamples() { - _builder.clearSamples() - } - /** - * `optional uint64 samples = 4 [json_name = "samples"];` - * @return Whether the samples field is set. - */ - public fun hasSamples(): kotlin.Boolean { - return _builder.hasSamples() - } - - /** - * `optional uint64 steps = 5 [json_name = "steps"];` - */ - public var steps: kotlin.Long - @JvmName("getSteps") - get() = _builder.getSteps() - @JvmName("setSteps") - set(value) { - _builder.setSteps(value) - } - /** - * `optional uint64 steps = 5 [json_name = "steps"];` - */ - public fun clearSteps() { - _builder.clearSteps() - } - /** - * `optional uint64 steps = 5 [json_name = "steps"];` - * @return Whether the steps field is set. - */ - public fun hasSteps(): kotlin.Boolean { - return _builder.hasSteps() - } - - /** - * `optional .stabilityai.platformapis.generation.v1.TransformType transform = 6 [json_name = "transform"];` - */ - public var transform: com.stabilityai.platformapis.generation.v1.TransformType - @JvmName("getTransform") - get() = _builder.getTransform() - @JvmName("setTransform") - set(value) { - _builder.setTransform(value) - } - /** - * `optional .stabilityai.platformapis.generation.v1.TransformType transform = 6 [json_name = "transform"];` - */ - public fun clearTransform() { - _builder.clearTransform() - } - /** - * `optional .stabilityai.platformapis.generation.v1.TransformType transform = 6 [json_name = "transform"];` - * @return Whether the transform field is set. - */ - public fun hasTransform(): kotlin.Boolean { - return _builder.hasTransform() - } - public val ImageParametersKt.Dsl.transformOrNull: com.stabilityai.platformapis.generation.v1.TransformType? - get() = _builder.transformOrNull - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class ParametersProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * `repeated .stabilityai.platformapis.generation.v1.StepParameter parameters = 7 [json_name = "parameters"];` - */ - public val parameters: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getParametersList() - ) - /** - * `repeated .stabilityai.platformapis.generation.v1.StepParameter parameters = 7 [json_name = "parameters"];` - * @param value The parameters to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addParameters") - public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.StepParameter) { - _builder.addParameters(value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.StepParameter parameters = 7 [json_name = "parameters"];` - * @param value The parameters to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignParameters") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.StepParameter) { - add(value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.StepParameter parameters = 7 [json_name = "parameters"];` - * @param values The parameters to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllParameters") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllParameters(values) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.StepParameter parameters = 7 [json_name = "parameters"];` - * @param values The parameters to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllParameters") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.StepParameter parameters = 7 [json_name = "parameters"];` - * @param index The index to set the value at. - * @param value The parameters to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setParameters") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.StepParameter) { - _builder.setParameters(index, value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.StepParameter parameters = 7 [json_name = "parameters"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearParameters") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearParameters() - } - - - /** - * ``` - * defaults to MASKED_AREA_INIT_ZERO - * ``` - * - * `optional .stabilityai.platformapis.generation.v1.MaskedAreaInit masked_area_init = 8 [json_name = "maskedAreaInit"];` - */ - public var maskedAreaInit: com.stabilityai.platformapis.generation.v1.MaskedAreaInit - @JvmName("getMaskedAreaInit") - get() = _builder.getMaskedAreaInit() - @JvmName("setMaskedAreaInit") - set(value) { - _builder.setMaskedAreaInit(value) - } - public var maskedAreaInitValue: kotlin.Int - @JvmName("getMaskedAreaInitValue") - get() = _builder.getMaskedAreaInitValue() - @JvmName("setMaskedAreaInitValue") - set(value) { - _builder.setMaskedAreaInitValue(value) - } - /** - * ``` - * defaults to MASKED_AREA_INIT_ZERO - * ``` - * - * `optional .stabilityai.platformapis.generation.v1.MaskedAreaInit masked_area_init = 8 [json_name = "maskedAreaInit"];` - */ - public fun clearMaskedAreaInit() { - _builder.clearMaskedAreaInit() - } - /** - * ``` - * defaults to MASKED_AREA_INIT_ZERO - * ``` - * - * `optional .stabilityai.platformapis.generation.v1.MaskedAreaInit masked_area_init = 8 [json_name = "maskedAreaInit"];` - * @return Whether the maskedAreaInit field is set. - */ - public fun hasMaskedAreaInit(): kotlin.Boolean { - return _builder.hasMaskedAreaInit() - } - - /** - * ``` - *defaults to TEXT_ENCODER - * ``` - * - * `optional .stabilityai.platformapis.generation.v1.WeightMethod weight_method = 9 [json_name = "weightMethod"];` - */ - public var weightMethod: com.stabilityai.platformapis.generation.v1.WeightMethod - @JvmName("getWeightMethod") - get() = _builder.getWeightMethod() - @JvmName("setWeightMethod") - set(value) { - _builder.setWeightMethod(value) - } - public var weightMethodValue: kotlin.Int - @JvmName("getWeightMethodValue") - get() = _builder.getWeightMethodValue() - @JvmName("setWeightMethodValue") - set(value) { - _builder.setWeightMethodValue(value) - } - /** - * ``` - *defaults to TEXT_ENCODER - * ``` - * - * `optional .stabilityai.platformapis.generation.v1.WeightMethod weight_method = 9 [json_name = "weightMethod"];` - */ - public fun clearWeightMethod() { - _builder.clearWeightMethod() - } - /** - * ``` - *defaults to TEXT_ENCODER - * ``` - * - * `optional .stabilityai.platformapis.generation.v1.WeightMethod weight_method = 9 [json_name = "weightMethod"];` - * @return Whether the weightMethod field is set. - */ - public fun hasWeightMethod(): kotlin.Boolean { - return _builder.hasWeightMethod() - } - - /** - * ``` - *defaults to true - * ``` - * - * `optional bool quantize = 10 [json_name = "quantize"];` - */ - public var quantize: kotlin.Boolean - @JvmName("getQuantize") - get() = _builder.getQuantize() - @JvmName("setQuantize") - set(value) { - _builder.setQuantize(value) - } - /** - * ``` - *defaults to true - * ``` - * - * `optional bool quantize = 10 [json_name = "quantize"];` - */ - public fun clearQuantize() { - _builder.clearQuantize() - } - /** - * ``` - *defaults to true - * ``` - * - * `optional bool quantize = 10 [json_name = "quantize"];` - * @return Whether the quantize field is set. - */ - public fun hasQuantize(): kotlin.Boolean { - return _builder.hasQuantize() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.ImageParameters.copy(block: com.stabilityai.platformapis.generation.v1.ImageParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ImageParameters = - com.stabilityai.platformapis.generation.v1.ImageParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() - -public val com.stabilityai.platformapis.generation.v1.ImageParametersOrBuilder.transformOrNull: com.stabilityai.platformapis.generation.v1.TransformType? - get() = if (hasTransform()) getTransform() else null - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/InterpolateParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/InterpolateParametersKt.kt deleted file mode 100644 index 4666853..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/InterpolateParametersKt.kt +++ /dev/null @@ -1,134 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializeinterpolateParameters") -public inline fun interpolateParameters(block: com.stabilityai.platformapis.generation.v1.InterpolateParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.InterpolateParameters = - com.stabilityai.platformapis.generation.v1.InterpolateParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.InterpolateParameters.newBuilder()).apply { block() }._build() -/** - * ``` - * Interpolation between two images applied at specified blend ratios - * ``` - * - * Protobuf type `stabilityai.platformapis.generation.v1.InterpolateParameters` - */ -public object InterpolateParametersKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.InterpolateParameters.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.InterpolateParameters.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.InterpolateParameters = _builder.build() - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class RatiosProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * `repeated float ratios = 1 [json_name = "ratios"];` - */ - public val ratios: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getRatiosList() - ) - /** - * `repeated float ratios = 1 [json_name = "ratios"];` - * @param value The ratios to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addRatios") - public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.Float) { - _builder.addRatios(value) - }/** - * `repeated float ratios = 1 [json_name = "ratios"];` - * @param value The ratios to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignRatios") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.Float) { - add(value) - }/** - * `repeated float ratios = 1 [json_name = "ratios"];` - * @param values The ratios to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllRatios") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllRatios(values) - }/** - * `repeated float ratios = 1 [json_name = "ratios"];` - * @param values The ratios to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllRatios") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - }/** - * `repeated float ratios = 1 [json_name = "ratios"];` - * @param index The index to set the value at. - * @param value The ratios to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setRatios") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.Float) { - _builder.setRatios(index, value) - }/** - * `repeated float ratios = 1 [json_name = "ratios"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearRatios") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearRatios() - } - /** - * `optional .stabilityai.platformapis.generation.v1.InterpolateMode mode = 2 [json_name = "mode"];` - */ - public var mode: com.stabilityai.platformapis.generation.v1.InterpolateMode - @JvmName("getMode") - get() = _builder.getMode() - @JvmName("setMode") - set(value) { - _builder.setMode(value) - } - public var modeValue: kotlin.Int - @JvmName("getModeValue") - get() = _builder.getModeValue() - @JvmName("setModeValue") - set(value) { - _builder.setModeValue(value) - } - /** - * `optional .stabilityai.platformapis.generation.v1.InterpolateMode mode = 2 [json_name = "mode"];` - */ - public fun clearMode() { - _builder.clearMode() - } - /** - * `optional .stabilityai.platformapis.generation.v1.InterpolateMode mode = 2 [json_name = "mode"];` - * @return Whether the mode field is set. - */ - public fun hasMode(): kotlin.Boolean { - return _builder.hasMode() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.InterpolateParameters.copy(block: com.stabilityai.platformapis.generation.v1.InterpolateParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.InterpolateParameters = - com.stabilityai.platformapis.generation.v1.InterpolateParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ModelKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ModelKt.kt deleted file mode 100644 index 1a61329..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ModelKt.kt +++ /dev/null @@ -1,143 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializemodel") -public inline fun model(block: com.stabilityai.platformapis.generation.v1.ModelKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Model = - com.stabilityai.platformapis.generation.v1.ModelKt.Dsl._create(com.stabilityai.platformapis.generation.v1.Model.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.generation.v1.Model` - */ -public object ModelKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.Model.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.Model.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.Model = _builder.build() - - /** - * `.stabilityai.platformapis.generation.v1.ModelArchitecture architecture = 1 [json_name = "architecture"];` - */ - public var architecture: com.stabilityai.platformapis.generation.v1.ModelArchitecture - @JvmName("getArchitecture") - get() = _builder.getArchitecture() - @JvmName("setArchitecture") - set(value) { - _builder.setArchitecture(value) - } - public var architectureValue: kotlin.Int - @JvmName("getArchitectureValue") - get() = _builder.getArchitectureValue() - @JvmName("setArchitectureValue") - set(value) { - _builder.setArchitectureValue(value) - } - /** - * `.stabilityai.platformapis.generation.v1.ModelArchitecture architecture = 1 [json_name = "architecture"];` - */ - public fun clearArchitecture() { - _builder.clearArchitecture() - } - - /** - * `string publisher = 2 [json_name = "publisher"];` - */ - public var publisher: kotlin.String - @JvmName("getPublisher") - get() = _builder.getPublisher() - @JvmName("setPublisher") - set(value) { - _builder.setPublisher(value) - } - /** - * `string publisher = 2 [json_name = "publisher"];` - */ - public fun clearPublisher() { - _builder.clearPublisher() - } - - /** - * `string dataset = 3 [json_name = "dataset"];` - */ - public var dataset: kotlin.String - @JvmName("getDataset") - get() = _builder.getDataset() - @JvmName("setDataset") - set(value) { - _builder.setDataset(value) - } - /** - * `string dataset = 3 [json_name = "dataset"];` - */ - public fun clearDataset() { - _builder.clearDataset() - } - - /** - * `float version = 4 [json_name = "version"];` - */ - public var version: kotlin.Float - @JvmName("getVersion") - get() = _builder.getVersion() - @JvmName("setVersion") - set(value) { - _builder.setVersion(value) - } - /** - * `float version = 4 [json_name = "version"];` - */ - public fun clearVersion() { - _builder.clearVersion() - } - - /** - * `string semantic_version = 5 [json_name = "semanticVersion"];` - */ - public var semanticVersion: kotlin.String - @JvmName("getSemanticVersion") - get() = _builder.getSemanticVersion() - @JvmName("setSemanticVersion") - set(value) { - _builder.setSemanticVersion(value) - } - /** - * `string semantic_version = 5 [json_name = "semanticVersion"];` - */ - public fun clearSemanticVersion() { - _builder.clearSemanticVersion() - } - - /** - * `string alias = 6 [json_name = "alias"];` - */ - public var alias: kotlin.String - @JvmName("getAlias") - get() = _builder.getAlias() - @JvmName("setAlias") - set(value) { - _builder.setAlias(value) - } - /** - * `string alias = 6 [json_name = "alias"];` - */ - public fun clearAlias() { - _builder.clearAlias() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.Model.copy(block: com.stabilityai.platformapis.generation.v1.ModelKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Model = - com.stabilityai.platformapis.generation.v1.ModelKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/OnStatusKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/OnStatusKt.kt deleted file mode 100644 index 59585f2..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/OnStatusKt.kt +++ /dev/null @@ -1,188 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializeonStatus") -public inline fun onStatus(block: com.stabilityai.platformapis.generation.v1.OnStatusKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.OnStatus = - com.stabilityai.platformapis.generation.v1.OnStatusKt.Dsl._create(com.stabilityai.platformapis.generation.v1.OnStatus.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.generation.v1.OnStatus` - */ -public object OnStatusKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.OnStatus.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.OnStatus.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.OnStatus = _builder.build() - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class ReasonProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * `repeated .stabilityai.platformapis.generation.v1.FinishReason reason = 1 [json_name = "reason"];` - */ - public val reason: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getReasonList() - ) - /** - * `repeated .stabilityai.platformapis.generation.v1.FinishReason reason = 1 [json_name = "reason"];` - * @param value The reason to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addReason") - public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.FinishReason) { - _builder.addReason(value) - }/** - * `repeated .stabilityai.platformapis.generation.v1.FinishReason reason = 1 [json_name = "reason"];` - * @param value The reason to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignReason") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.FinishReason) { - add(value) - }/** - * `repeated .stabilityai.platformapis.generation.v1.FinishReason reason = 1 [json_name = "reason"];` - * @param values The reason to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllReason") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllReason(values) - }/** - * `repeated .stabilityai.platformapis.generation.v1.FinishReason reason = 1 [json_name = "reason"];` - * @param values The reason to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllReason") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - }/** - * `repeated .stabilityai.platformapis.generation.v1.FinishReason reason = 1 [json_name = "reason"];` - * @param index The index to set the value at. - * @param value The reason to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setReason") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.FinishReason) { - _builder.setReason(index, value) - }/** - * `repeated .stabilityai.platformapis.generation.v1.FinishReason reason = 1 [json_name = "reason"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearReason") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearReason() - } - /** - * `optional string target = 2 [json_name = "target"];` - */ - public var target: kotlin.String - @JvmName("getTarget") - get() = _builder.getTarget() - @JvmName("setTarget") - set(value) { - _builder.setTarget(value) - } - /** - * `optional string target = 2 [json_name = "target"];` - */ - public fun clearTarget() { - _builder.clearTarget() - } - /** - * `optional string target = 2 [json_name = "target"];` - * @return Whether the target field is set. - */ - public fun hasTarget(): kotlin.Boolean { - return _builder.hasTarget() - } - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class ActionProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * `repeated .stabilityai.platformapis.generation.v1.StageAction action = 3 [json_name = "action"];` - */ - public val action: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getActionList() - ) - /** - * `repeated .stabilityai.platformapis.generation.v1.StageAction action = 3 [json_name = "action"];` - * @param value The action to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAction") - public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.StageAction) { - _builder.addAction(value) - }/** - * `repeated .stabilityai.platformapis.generation.v1.StageAction action = 3 [json_name = "action"];` - * @param value The action to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAction") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.StageAction) { - add(value) - }/** - * `repeated .stabilityai.platformapis.generation.v1.StageAction action = 3 [json_name = "action"];` - * @param values The action to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllAction") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllAction(values) - }/** - * `repeated .stabilityai.platformapis.generation.v1.StageAction action = 3 [json_name = "action"];` - * @param values The action to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllAction") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - }/** - * `repeated .stabilityai.platformapis.generation.v1.StageAction action = 3 [json_name = "action"];` - * @param index The index to set the value at. - * @param value The action to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setAction") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.StageAction) { - _builder.setAction(index, value) - }/** - * `repeated .stabilityai.platformapis.generation.v1.StageAction action = 3 [json_name = "action"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearAction") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearAction() - }} -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.OnStatus.copy(block: com.stabilityai.platformapis.generation.v1.OnStatusKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.OnStatus = - com.stabilityai.platformapis.generation.v1.OnStatusKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/PromptKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/PromptKt.kt deleted file mode 100644 index 325c463..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/PromptKt.kt +++ /dev/null @@ -1,158 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializeprompt") -public inline fun prompt(block: com.stabilityai.platformapis.generation.v1.PromptKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Prompt = - com.stabilityai.platformapis.generation.v1.PromptKt.Dsl._create(com.stabilityai.platformapis.generation.v1.Prompt.newBuilder()).apply { block() }._build() -/** - * ``` - * A Prompt is a special type of Artifact that is used to generate an output. - * There can be multiple Prompts that affect the same output. Currently, the - * only Prompts supported are: - * - Text (singular) - * - Init Image (singular, optional, type ARTIFACT_IMAGE) - * - Mask (singular, optional, type ARTIFACT_MASK) - * - Depth (singular, optional, type ARTIFACT_DEPTH) - * ``` - * - * Protobuf type `stabilityai.platformapis.generation.v1.Prompt` - */ -public object PromptKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.Prompt.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.Prompt.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.Prompt = _builder.build() - - /** - * `optional .stabilityai.platformapis.generation.v1.PromptParameters parameters = 1 [json_name = "parameters"];` - */ - public var parameters: com.stabilityai.platformapis.generation.v1.PromptParameters - @JvmName("getParameters") - get() = _builder.getParameters() - @JvmName("setParameters") - set(value) { - _builder.setParameters(value) - } - /** - * `optional .stabilityai.platformapis.generation.v1.PromptParameters parameters = 1 [json_name = "parameters"];` - */ - public fun clearParameters() { - _builder.clearParameters() - } - /** - * `optional .stabilityai.platformapis.generation.v1.PromptParameters parameters = 1 [json_name = "parameters"];` - * @return Whether the parameters field is set. - */ - public fun hasParameters(): kotlin.Boolean { - return _builder.hasParameters() - } - public val PromptKt.Dsl.parametersOrNull: com.stabilityai.platformapis.generation.v1.PromptParameters? - get() = _builder.parametersOrNull - - /** - * `string text = 2 [json_name = "text"];` - */ - public var text: kotlin.String - @JvmName("getText") - get() = _builder.getText() - @JvmName("setText") - set(value) { - _builder.setText(value) - } - /** - * `string text = 2 [json_name = "text"];` - */ - public fun clearText() { - _builder.clearText() - } - /** - * `string text = 2 [json_name = "text"];` - * @return Whether the text field is set. - */ - public fun hasText(): kotlin.Boolean { - return _builder.hasText() - } - - /** - * `.stabilityai.platformapis.generation.v1.Tokens tokens = 3 [json_name = "tokens"];` - */ - public var tokens: com.stabilityai.platformapis.generation.v1.Tokens - @JvmName("getTokens") - get() = _builder.getTokens() - @JvmName("setTokens") - set(value) { - _builder.setTokens(value) - } - /** - * `.stabilityai.platformapis.generation.v1.Tokens tokens = 3 [json_name = "tokens"];` - */ - public fun clearTokens() { - _builder.clearTokens() - } - /** - * `.stabilityai.platformapis.generation.v1.Tokens tokens = 3 [json_name = "tokens"];` - * @return Whether the tokens field is set. - */ - public fun hasTokens(): kotlin.Boolean { - return _builder.hasTokens() - } - - /** - * `.stabilityai.platformapis.generation.v1.Artifact artifact = 4 [json_name = "artifact"];` - */ - public var artifact: com.stabilityai.platformapis.generation.v1.Artifact - @JvmName("getArtifact") - get() = _builder.getArtifact() - @JvmName("setArtifact") - set(value) { - _builder.setArtifact(value) - } - /** - * `.stabilityai.platformapis.generation.v1.Artifact artifact = 4 [json_name = "artifact"];` - */ - public fun clearArtifact() { - _builder.clearArtifact() - } - /** - * `.stabilityai.platformapis.generation.v1.Artifact artifact = 4 [json_name = "artifact"];` - * @return Whether the artifact field is set. - */ - public fun hasArtifact(): kotlin.Boolean { - return _builder.hasArtifact() - } - public val promptCase: com.stabilityai.platformapis.generation.v1.Prompt.PromptCase - @JvmName("getPromptCase") - get() = _builder.getPromptCase() - - public fun clearPrompt() { - _builder.clearPrompt() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.Prompt.copy(block: com.stabilityai.platformapis.generation.v1.PromptKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Prompt = - com.stabilityai.platformapis.generation.v1.PromptKt.Dsl._create(this.toBuilder()).apply { block() }._build() - -public val com.stabilityai.platformapis.generation.v1.PromptOrBuilder.parametersOrNull: com.stabilityai.platformapis.generation.v1.PromptParameters? - get() = if (hasParameters()) getParameters() else null - -public val com.stabilityai.platformapis.generation.v1.PromptOrBuilder.tokensOrNull: com.stabilityai.platformapis.generation.v1.Tokens? - get() = if (hasTokens()) getTokens() else null - -public val com.stabilityai.platformapis.generation.v1.PromptOrBuilder.artifactOrNull: com.stabilityai.platformapis.generation.v1.Artifact? - get() = if (hasArtifact()) getArtifact() else null - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/PromptParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/PromptParametersKt.kt deleted file mode 100644 index b9d2a8a..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/PromptParametersKt.kt +++ /dev/null @@ -1,98 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializepromptParameters") -public inline fun promptParameters(block: com.stabilityai.platformapis.generation.v1.PromptParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.PromptParameters = - com.stabilityai.platformapis.generation.v1.PromptParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.PromptParameters.newBuilder()).apply { block() }._build() -/** - * ``` - * A set of parameters for each individual Prompt. - * ``` - * - * Protobuf type `stabilityai.platformapis.generation.v1.PromptParameters` - */ -public object PromptParametersKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.PromptParameters.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.PromptParameters.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.PromptParameters = _builder.build() - - /** - * ``` - * deprecated, no longer used - * ``` - * - * `optional bool init = 1 [json_name = "init"];` - */ - public var init: kotlin.Boolean - @JvmName("getInit") - get() = _builder.getInit() - @JvmName("setInit") - set(value) { - _builder.setInit(value) - } - /** - * ``` - * deprecated, no longer used - * ``` - * - * `optional bool init = 1 [json_name = "init"];` - */ - public fun clearInit() { - _builder.clearInit() - } - /** - * ``` - * deprecated, no longer used - * ``` - * - * `optional bool init = 1 [json_name = "init"];` - * @return Whether the init field is set. - */ - public fun hasInit(): kotlin.Boolean { - return _builder.hasInit() - } - - /** - * `optional float weight = 2 [json_name = "weight"];` - */ - public var weight: kotlin.Float - @JvmName("getWeight") - get() = _builder.getWeight() - @JvmName("setWeight") - set(value) { - _builder.setWeight(value) - } - /** - * `optional float weight = 2 [json_name = "weight"];` - */ - public fun clearWeight() { - _builder.clearWeight() - } - /** - * `optional float weight = 2 [json_name = "weight"];` - * @return Whether the weight field is set. - */ - public fun hasWeight(): kotlin.Boolean { - return _builder.hasWeight() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.PromptParameters.copy(block: com.stabilityai.platformapis.generation.v1.PromptParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.PromptParameters = - com.stabilityai.platformapis.generation.v1.PromptParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/RequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/RequestKt.kt deleted file mode 100644 index 9b3db7b..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/RequestKt.kt +++ /dev/null @@ -1,382 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializerequest") -public inline fun request(block: com.stabilityai.platformapis.generation.v1.RequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Request = - com.stabilityai.platformapis.generation.v1.RequestKt.Dsl._create(com.stabilityai.platformapis.generation.v1.Request.newBuilder()).apply { block() }._build() -/** - * ``` - * A Request is a set of Artifacts, which can be of any type with model or - * transform parameters. It is sent to the server, which will respond with an - * Answer. - * ``` - * - * Protobuf type `stabilityai.platformapis.generation.v1.Request` - */ -public object RequestKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.Request.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.Request.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.Request = _builder.build() - - /** - * `string engine_id = 1 [json_name = "engineId"];` - */ - public var engineId: kotlin.String - @JvmName("getEngineId") - get() = _builder.getEngineId() - @JvmName("setEngineId") - set(value) { - _builder.setEngineId(value) - } - /** - * `string engine_id = 1 [json_name = "engineId"];` - */ - public fun clearEngineId() { - _builder.clearEngineId() - } - - /** - * `string request_id = 2 [json_name = "requestId"];` - */ - public var requestId: kotlin.String - @JvmName("getRequestId") - get() = _builder.getRequestId() - @JvmName("setRequestId") - set(value) { - _builder.setRequestId(value) - } - /** - * `string request_id = 2 [json_name = "requestId"];` - */ - public fun clearRequestId() { - _builder.clearRequestId() - } - - /** - * `.stabilityai.platformapis.generation.v1.ArtifactType requested_type = 3 [json_name = "requestedType"];` - */ - public var requestedType: com.stabilityai.platformapis.generation.v1.ArtifactType - @JvmName("getRequestedType") - get() = _builder.getRequestedType() - @JvmName("setRequestedType") - set(value) { - _builder.setRequestedType(value) - } - public var requestedTypeValue: kotlin.Int - @JvmName("getRequestedTypeValue") - get() = _builder.getRequestedTypeValue() - @JvmName("setRequestedTypeValue") - set(value) { - _builder.setRequestedTypeValue(value) - } - /** - * `.stabilityai.platformapis.generation.v1.ArtifactType requested_type = 3 [json_name = "requestedType"];` - */ - public fun clearRequestedType() { - _builder.clearRequestedType() - } - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class PromptProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * `repeated .stabilityai.platformapis.generation.v1.Prompt prompt = 4 [json_name = "prompt"];` - */ - public val prompt: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getPromptList() - ) - /** - * `repeated .stabilityai.platformapis.generation.v1.Prompt prompt = 4 [json_name = "prompt"];` - * @param value The prompt to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addPrompt") - public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.Prompt) { - _builder.addPrompt(value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.Prompt prompt = 4 [json_name = "prompt"];` - * @param value The prompt to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignPrompt") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.Prompt) { - add(value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.Prompt prompt = 4 [json_name = "prompt"];` - * @param values The prompt to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllPrompt") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllPrompt(values) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.Prompt prompt = 4 [json_name = "prompt"];` - * @param values The prompt to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllPrompt") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.Prompt prompt = 4 [json_name = "prompt"];` - * @param index The index to set the value at. - * @param value The prompt to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setPrompt") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.Prompt) { - _builder.setPrompt(index, value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.Prompt prompt = 4 [json_name = "prompt"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearPrompt") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearPrompt() - } - - - /** - * `.stabilityai.platformapis.generation.v1.ImageParameters image = 5 [json_name = "image"];` - */ - public var image: com.stabilityai.platformapis.generation.v1.ImageParameters - @JvmName("getImage") - get() = _builder.getImage() - @JvmName("setImage") - set(value) { - _builder.setImage(value) - } - /** - * `.stabilityai.platformapis.generation.v1.ImageParameters image = 5 [json_name = "image"];` - */ - public fun clearImage() { - _builder.clearImage() - } - /** - * `.stabilityai.platformapis.generation.v1.ImageParameters image = 5 [json_name = "image"];` - * @return Whether the image field is set. - */ - public fun hasImage(): kotlin.Boolean { - return _builder.hasImage() - } - - /** - * `.stabilityai.platformapis.generation.v1.ClassifierParameters classifier = 7 [json_name = "classifier"];` - */ - public var classifier: com.stabilityai.platformapis.generation.v1.ClassifierParameters - @JvmName("getClassifier") - get() = _builder.getClassifier() - @JvmName("setClassifier") - set(value) { - _builder.setClassifier(value) - } - /** - * `.stabilityai.platformapis.generation.v1.ClassifierParameters classifier = 7 [json_name = "classifier"];` - */ - public fun clearClassifier() { - _builder.clearClassifier() - } - /** - * `.stabilityai.platformapis.generation.v1.ClassifierParameters classifier = 7 [json_name = "classifier"];` - * @return Whether the classifier field is set. - */ - public fun hasClassifier(): kotlin.Boolean { - return _builder.hasClassifier() - } - - /** - * `.stabilityai.platformapis.generation.v1.AssetParameters asset = 8 [json_name = "asset"];` - */ - public var asset: com.stabilityai.platformapis.generation.v1.AssetParameters - @JvmName("getAsset") - get() = _builder.getAsset() - @JvmName("setAsset") - set(value) { - _builder.setAsset(value) - } - /** - * `.stabilityai.platformapis.generation.v1.AssetParameters asset = 8 [json_name = "asset"];` - */ - public fun clearAsset() { - _builder.clearAsset() - } - /** - * `.stabilityai.platformapis.generation.v1.AssetParameters asset = 8 [json_name = "asset"];` - * @return Whether the asset field is set. - */ - public fun hasAsset(): kotlin.Boolean { - return _builder.hasAsset() - } - - /** - * `.stabilityai.platformapis.generation.v1.InterpolateParameters interpolate = 11 [json_name = "interpolate"];` - */ - public var interpolate: com.stabilityai.platformapis.generation.v1.InterpolateParameters - @JvmName("getInterpolate") - get() = _builder.getInterpolate() - @JvmName("setInterpolate") - set(value) { - _builder.setInterpolate(value) - } - /** - * `.stabilityai.platformapis.generation.v1.InterpolateParameters interpolate = 11 [json_name = "interpolate"];` - */ - public fun clearInterpolate() { - _builder.clearInterpolate() - } - /** - * `.stabilityai.platformapis.generation.v1.InterpolateParameters interpolate = 11 [json_name = "interpolate"];` - * @return Whether the interpolate field is set. - */ - public fun hasInterpolate(): kotlin.Boolean { - return _builder.hasInterpolate() - } - - /** - * `.stabilityai.platformapis.generation.v1.TransformParameters transform = 12 [json_name = "transform"];` - */ - public var transform: com.stabilityai.platformapis.generation.v1.TransformParameters - @JvmName("getTransform") - get() = _builder.getTransform() - @JvmName("setTransform") - set(value) { - _builder.setTransform(value) - } - /** - * `.stabilityai.platformapis.generation.v1.TransformParameters transform = 12 [json_name = "transform"];` - */ - public fun clearTransform() { - _builder.clearTransform() - } - /** - * `.stabilityai.platformapis.generation.v1.TransformParameters transform = 12 [json_name = "transform"];` - * @return Whether the transform field is set. - */ - public fun hasTransform(): kotlin.Boolean { - return _builder.hasTransform() - } - - /** - * `optional .stabilityai.platformapis.generation.v1.ConditionerParameters conditioner = 6 [json_name = "conditioner"];` - */ - public var conditioner: com.stabilityai.platformapis.generation.v1.ConditionerParameters - @JvmName("getConditioner") - get() = _builder.getConditioner() - @JvmName("setConditioner") - set(value) { - _builder.setConditioner(value) - } - /** - * `optional .stabilityai.platformapis.generation.v1.ConditionerParameters conditioner = 6 [json_name = "conditioner"];` - */ - public fun clearConditioner() { - _builder.clearConditioner() - } - /** - * `optional .stabilityai.platformapis.generation.v1.ConditionerParameters conditioner = 6 [json_name = "conditioner"];` - * @return Whether the conditioner field is set. - */ - public fun hasConditioner(): kotlin.Boolean { - return _builder.hasConditioner() - } - public val RequestKt.Dsl.conditionerOrNull: com.stabilityai.platformapis.generation.v1.ConditionerParameters? - get() = _builder.conditionerOrNull - - /** - * ``` - * for development use - * ``` - * - * `optional .google.protobuf.Struct extras = 2047 [json_name = "extras"];` - */ - public var extras: com.google.protobuf.Struct - @JvmName("getExtras") - get() = _builder.getExtras() - @JvmName("setExtras") - set(value) { - _builder.setExtras(value) - } - /** - * ``` - * for development use - * ``` - * - * `optional .google.protobuf.Struct extras = 2047 [json_name = "extras"];` - */ - public fun clearExtras() { - _builder.clearExtras() - } - /** - * ``` - * for development use - * ``` - * - * `optional .google.protobuf.Struct extras = 2047 [json_name = "extras"];` - * @return Whether the extras field is set. - */ - public fun hasExtras(): kotlin.Boolean { - return _builder.hasExtras() - } - public val RequestKt.Dsl.extrasOrNull: com.google.protobuf.Struct? - get() = _builder.extrasOrNull - public val paramsCase: com.stabilityai.platformapis.generation.v1.Request.ParamsCase - @JvmName("getParamsCase") - get() = _builder.getParamsCase() - - public fun clearParams() { - _builder.clearParams() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.Request.copy(block: com.stabilityai.platformapis.generation.v1.RequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Request = - com.stabilityai.platformapis.generation.v1.RequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() - -public val com.stabilityai.platformapis.generation.v1.RequestOrBuilder.imageOrNull: com.stabilityai.platformapis.generation.v1.ImageParameters? - get() = if (hasImage()) getImage() else null - -public val com.stabilityai.platformapis.generation.v1.RequestOrBuilder.classifierOrNull: com.stabilityai.platformapis.generation.v1.ClassifierParameters? - get() = if (hasClassifier()) getClassifier() else null - -public val com.stabilityai.platformapis.generation.v1.RequestOrBuilder.assetOrNull: com.stabilityai.platformapis.generation.v1.AssetParameters? - get() = if (hasAsset()) getAsset() else null - -public val com.stabilityai.platformapis.generation.v1.RequestOrBuilder.interpolateOrNull: com.stabilityai.platformapis.generation.v1.InterpolateParameters? - get() = if (hasInterpolate()) getInterpolate() else null - -public val com.stabilityai.platformapis.generation.v1.RequestOrBuilder.transformOrNull: com.stabilityai.platformapis.generation.v1.TransformParameters? - get() = if (hasTransform()) getTransform() else null - -public val com.stabilityai.platformapis.generation.v1.RequestOrBuilder.conditionerOrNull: com.stabilityai.platformapis.generation.v1.ConditionerParameters? - get() = if (hasConditioner()) getConditioner() else null - -public val com.stabilityai.platformapis.generation.v1.RequestOrBuilder.extrasOrNull: com.google.protobuf.Struct? - get() = if (hasExtras()) getExtras() else null - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/SamplerParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/SamplerParametersKt.kt deleted file mode 100644 index 9815f33..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/SamplerParametersKt.kt +++ /dev/null @@ -1,230 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializesamplerParameters") -public inline fun samplerParameters(block: com.stabilityai.platformapis.generation.v1.SamplerParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.SamplerParameters = - com.stabilityai.platformapis.generation.v1.SamplerParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.SamplerParameters.newBuilder()).apply { block() }._build() -/** - * ``` - * Parameters that affect the behavior of the sampler, typically used for CFG. - * ``` - * - * Protobuf type `stabilityai.platformapis.generation.v1.SamplerParameters` - */ -public object SamplerParametersKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.SamplerParameters.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.SamplerParameters.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.SamplerParameters = _builder.build() - - /** - * `optional float eta = 1 [json_name = "eta"];` - */ - public var eta: kotlin.Float - @JvmName("getEta") - get() = _builder.getEta() - @JvmName("setEta") - set(value) { - _builder.setEta(value) - } - /** - * `optional float eta = 1 [json_name = "eta"];` - */ - public fun clearEta() { - _builder.clearEta() - } - /** - * `optional float eta = 1 [json_name = "eta"];` - * @return Whether the eta field is set. - */ - public fun hasEta(): kotlin.Boolean { - return _builder.hasEta() - } - - /** - * `optional uint64 sampling_steps = 2 [json_name = "samplingSteps"];` - */ - public var samplingSteps: kotlin.Long - @JvmName("getSamplingSteps") - get() = _builder.getSamplingSteps() - @JvmName("setSamplingSteps") - set(value) { - _builder.setSamplingSteps(value) - } - /** - * `optional uint64 sampling_steps = 2 [json_name = "samplingSteps"];` - */ - public fun clearSamplingSteps() { - _builder.clearSamplingSteps() - } - /** - * `optional uint64 sampling_steps = 2 [json_name = "samplingSteps"];` - * @return Whether the samplingSteps field is set. - */ - public fun hasSamplingSteps(): kotlin.Boolean { - return _builder.hasSamplingSteps() - } - - /** - * `optional uint64 latent_channels = 3 [json_name = "latentChannels"];` - */ - public var latentChannels: kotlin.Long - @JvmName("getLatentChannels") - get() = _builder.getLatentChannels() - @JvmName("setLatentChannels") - set(value) { - _builder.setLatentChannels(value) - } - /** - * `optional uint64 latent_channels = 3 [json_name = "latentChannels"];` - */ - public fun clearLatentChannels() { - _builder.clearLatentChannels() - } - /** - * `optional uint64 latent_channels = 3 [json_name = "latentChannels"];` - * @return Whether the latentChannels field is set. - */ - public fun hasLatentChannels(): kotlin.Boolean { - return _builder.hasLatentChannels() - } - - /** - * `optional uint64 downsampling_factor = 4 [json_name = "downsamplingFactor"];` - */ - public var downsamplingFactor: kotlin.Long - @JvmName("getDownsamplingFactor") - get() = _builder.getDownsamplingFactor() - @JvmName("setDownsamplingFactor") - set(value) { - _builder.setDownsamplingFactor(value) - } - /** - * `optional uint64 downsampling_factor = 4 [json_name = "downsamplingFactor"];` - */ - public fun clearDownsamplingFactor() { - _builder.clearDownsamplingFactor() - } - /** - * `optional uint64 downsampling_factor = 4 [json_name = "downsamplingFactor"];` - * @return Whether the downsamplingFactor field is set. - */ - public fun hasDownsamplingFactor(): kotlin.Boolean { - return _builder.hasDownsamplingFactor() - } - - /** - * `optional float cfg_scale = 5 [json_name = "cfgScale"];` - */ - public var cfgScale: kotlin.Float - @JvmName("getCfgScale") - get() = _builder.getCfgScale() - @JvmName("setCfgScale") - set(value) { - _builder.setCfgScale(value) - } - /** - * `optional float cfg_scale = 5 [json_name = "cfgScale"];` - */ - public fun clearCfgScale() { - _builder.clearCfgScale() - } - /** - * `optional float cfg_scale = 5 [json_name = "cfgScale"];` - * @return Whether the cfgScale field is set. - */ - public fun hasCfgScale(): kotlin.Boolean { - return _builder.hasCfgScale() - } - - /** - * ``` - * defaults to 0.99 - * ``` - * - * `optional float init_noise_scale = 6 [json_name = "initNoiseScale"];` - */ - public var initNoiseScale: kotlin.Float - @JvmName("getInitNoiseScale") - get() = _builder.getInitNoiseScale() - @JvmName("setInitNoiseScale") - set(value) { - _builder.setInitNoiseScale(value) - } - /** - * ``` - * defaults to 0.99 - * ``` - * - * `optional float init_noise_scale = 6 [json_name = "initNoiseScale"];` - */ - public fun clearInitNoiseScale() { - _builder.clearInitNoiseScale() - } - /** - * ``` - * defaults to 0.99 - * ``` - * - * `optional float init_noise_scale = 6 [json_name = "initNoiseScale"];` - * @return Whether the initNoiseScale field is set. - */ - public fun hasInitNoiseScale(): kotlin.Boolean { - return _builder.hasInitNoiseScale() - } - - /** - * ``` - * defaults to 0.99 - * ``` - * - * `optional float step_noise_scale = 7 [json_name = "stepNoiseScale"];` - */ - public var stepNoiseScale: kotlin.Float - @JvmName("getStepNoiseScale") - get() = _builder.getStepNoiseScale() - @JvmName("setStepNoiseScale") - set(value) { - _builder.setStepNoiseScale(value) - } - /** - * ``` - * defaults to 0.99 - * ``` - * - * `optional float step_noise_scale = 7 [json_name = "stepNoiseScale"];` - */ - public fun clearStepNoiseScale() { - _builder.clearStepNoiseScale() - } - /** - * ``` - * defaults to 0.99 - * ``` - * - * `optional float step_noise_scale = 7 [json_name = "stepNoiseScale"];` - * @return Whether the stepNoiseScale field is set. - */ - public fun hasStepNoiseScale(): kotlin.Boolean { - return _builder.hasStepNoiseScale() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.SamplerParameters.copy(block: com.stabilityai.platformapis.generation.v1.SamplerParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.SamplerParameters = - com.stabilityai.platformapis.generation.v1.SamplerParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ScheduleParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ScheduleParametersKt.kt deleted file mode 100644 index b5d6842..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/ScheduleParametersKt.kt +++ /dev/null @@ -1,146 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializescheduleParameters") -public inline fun scheduleParameters(block: com.stabilityai.platformapis.generation.v1.ScheduleParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ScheduleParameters = - com.stabilityai.platformapis.generation.v1.ScheduleParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.ScheduleParameters.newBuilder()).apply { block() }._build() -/** - * ``` - * When does this schedule definition apply? - * ``` - * - * Protobuf type `stabilityai.platformapis.generation.v1.ScheduleParameters` - */ -public object ScheduleParametersKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.ScheduleParameters.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.ScheduleParameters.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.ScheduleParameters = _builder.build() - - /** - * ``` - * 0.0 to 1.0 - * ``` - * - * `optional float start = 1 [json_name = "start"];` - */ - public var start: kotlin.Float - @JvmName("getStart") - get() = _builder.getStart() - @JvmName("setStart") - set(value) { - _builder.setStart(value) - } - /** - * ``` - * 0.0 to 1.0 - * ``` - * - * `optional float start = 1 [json_name = "start"];` - */ - public fun clearStart() { - _builder.clearStart() - } - /** - * ``` - * 0.0 to 1.0 - * ``` - * - * `optional float start = 1 [json_name = "start"];` - * @return Whether the start field is set. - */ - public fun hasStart(): kotlin.Boolean { - return _builder.hasStart() - } - - /** - * ``` - * 0.0 to 1.0 - * ``` - * - * `optional float end = 2 [json_name = "end"];` - */ - public var end: kotlin.Float - @JvmName("getEnd") - get() = _builder.getEnd() - @JvmName("setEnd") - set(value) { - _builder.setEnd(value) - } - /** - * ``` - * 0.0 to 1.0 - * ``` - * - * `optional float end = 2 [json_name = "end"];` - */ - public fun clearEnd() { - _builder.clearEnd() - } - /** - * ``` - * 0.0 to 1.0 - * ``` - * - * `optional float end = 2 [json_name = "end"];` - * @return Whether the end field is set. - */ - public fun hasEnd(): kotlin.Boolean { - return _builder.hasEnd() - } - - /** - * ``` - * float value to apply on this schedule - * ``` - * - * `optional float value = 3 [json_name = "value"];` - */ - public var value: kotlin.Float - @JvmName("getValue") - get() = _builder.getValue() - @JvmName("setValue") - set(value) { - _builder.setValue(value) - } - /** - * ``` - * float value to apply on this schedule - * ``` - * - * `optional float value = 3 [json_name = "value"];` - */ - public fun clearValue() { - _builder.clearValue() - } - /** - * ``` - * float value to apply on this schedule - * ``` - * - * `optional float value = 3 [json_name = "value"];` - * @return Whether the value field is set. - */ - public fun hasValue(): kotlin.Boolean { - return _builder.hasValue() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.ScheduleParameters.copy(block: com.stabilityai.platformapis.generation.v1.ScheduleParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.ScheduleParameters = - com.stabilityai.platformapis.generation.v1.ScheduleParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/StageKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/StageKt.kt deleted file mode 100644 index 4ab0674..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/StageKt.kt +++ /dev/null @@ -1,150 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializestage") -public inline fun stage(block: com.stabilityai.platformapis.generation.v1.StageKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Stage = - com.stabilityai.platformapis.generation.v1.StageKt.Dsl._create(com.stabilityai.platformapis.generation.v1.Stage.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.generation.v1.Stage` - */ -public object StageKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.Stage.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.Stage.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.Stage = _builder.build() - - /** - * `string id = 1 [json_name = "id"];` - */ - public var id: kotlin.String - @JvmName("getId") - get() = _builder.getId() - @JvmName("setId") - set(value) { - _builder.setId(value) - } - /** - * `string id = 1 [json_name = "id"];` - */ - public fun clearId() { - _builder.clearId() - } - - /** - * `.stabilityai.platformapis.generation.v1.Request request = 2 [json_name = "request"];` - */ - public var request: com.stabilityai.platformapis.generation.v1.Request - @JvmName("getRequest") - get() = _builder.getRequest() - @JvmName("setRequest") - set(value) { - _builder.setRequest(value) - } - /** - * `.stabilityai.platformapis.generation.v1.Request request = 2 [json_name = "request"];` - */ - public fun clearRequest() { - _builder.clearRequest() - } - /** - * `.stabilityai.platformapis.generation.v1.Request request = 2 [json_name = "request"];` - * @return Whether the request field is set. - */ - public fun hasRequest(): kotlin.Boolean { - return _builder.hasRequest() - } - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class OnStatusProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * `repeated .stabilityai.platformapis.generation.v1.OnStatus on_status = 3 [json_name = "onStatus"];` - */ - public val onStatus: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getOnStatusList() - ) - /** - * `repeated .stabilityai.platformapis.generation.v1.OnStatus on_status = 3 [json_name = "onStatus"];` - * @param value The onStatus to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addOnStatus") - public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.OnStatus) { - _builder.addOnStatus(value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.OnStatus on_status = 3 [json_name = "onStatus"];` - * @param value The onStatus to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignOnStatus") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.OnStatus) { - add(value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.OnStatus on_status = 3 [json_name = "onStatus"];` - * @param values The onStatus to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllOnStatus") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllOnStatus(values) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.OnStatus on_status = 3 [json_name = "onStatus"];` - * @param values The onStatus to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllOnStatus") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.OnStatus on_status = 3 [json_name = "onStatus"];` - * @param index The index to set the value at. - * @param value The onStatus to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setOnStatus") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.OnStatus) { - _builder.setOnStatus(index, value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.OnStatus on_status = 3 [json_name = "onStatus"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearOnStatus") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearOnStatus() - } - - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.Stage.copy(block: com.stabilityai.platformapis.generation.v1.StageKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Stage = - com.stabilityai.platformapis.generation.v1.StageKt.Dsl._create(this.toBuilder()).apply { block() }._build() - -public val com.stabilityai.platformapis.generation.v1.StageOrBuilder.requestOrNull: com.stabilityai.platformapis.generation.v1.Request? - get() = if (hasRequest()) getRequest() else null - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/StepParameterKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/StepParameterKt.kt deleted file mode 100644 index b2da9ab..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/StepParameterKt.kt +++ /dev/null @@ -1,142 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializestepParameter") -public inline fun stepParameter(block: com.stabilityai.platformapis.generation.v1.StepParameterKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.StepParameter = - com.stabilityai.platformapis.generation.v1.StepParameterKt.Dsl._create(com.stabilityai.platformapis.generation.v1.StepParameter.newBuilder()).apply { block() }._build() -/** - * ``` - * Parameters that apply to this block of the schedule. - * ``` - * - * Protobuf type `stabilityai.platformapis.generation.v1.StepParameter` - */ -public object StepParameterKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.StepParameter.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.StepParameter.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.StepParameter = _builder.build() - - /** - * `float scaled_step = 1 [json_name = "scaledStep"];` - */ - public var scaledStep: kotlin.Float - @JvmName("getScaledStep") - get() = _builder.getScaledStep() - @JvmName("setScaledStep") - set(value) { - _builder.setScaledStep(value) - } - /** - * `float scaled_step = 1 [json_name = "scaledStep"];` - */ - public fun clearScaledStep() { - _builder.clearScaledStep() - } - - /** - * `optional .stabilityai.platformapis.generation.v1.SamplerParameters sampler = 2 [json_name = "sampler"];` - */ - public var sampler: com.stabilityai.platformapis.generation.v1.SamplerParameters - @JvmName("getSampler") - get() = _builder.getSampler() - @JvmName("setSampler") - set(value) { - _builder.setSampler(value) - } - /** - * `optional .stabilityai.platformapis.generation.v1.SamplerParameters sampler = 2 [json_name = "sampler"];` - */ - public fun clearSampler() { - _builder.clearSampler() - } - /** - * `optional .stabilityai.platformapis.generation.v1.SamplerParameters sampler = 2 [json_name = "sampler"];` - * @return Whether the sampler field is set. - */ - public fun hasSampler(): kotlin.Boolean { - return _builder.hasSampler() - } - public val StepParameterKt.Dsl.samplerOrNull: com.stabilityai.platformapis.generation.v1.SamplerParameters? - get() = _builder.samplerOrNull - - /** - * `optional .stabilityai.platformapis.generation.v1.ScheduleParameters schedule = 3 [json_name = "schedule"];` - */ - public var schedule: com.stabilityai.platformapis.generation.v1.ScheduleParameters - @JvmName("getSchedule") - get() = _builder.getSchedule() - @JvmName("setSchedule") - set(value) { - _builder.setSchedule(value) - } - /** - * `optional .stabilityai.platformapis.generation.v1.ScheduleParameters schedule = 3 [json_name = "schedule"];` - */ - public fun clearSchedule() { - _builder.clearSchedule() - } - /** - * `optional .stabilityai.platformapis.generation.v1.ScheduleParameters schedule = 3 [json_name = "schedule"];` - * @return Whether the schedule field is set. - */ - public fun hasSchedule(): kotlin.Boolean { - return _builder.hasSchedule() - } - public val StepParameterKt.Dsl.scheduleOrNull: com.stabilityai.platformapis.generation.v1.ScheduleParameters? - get() = _builder.scheduleOrNull - - /** - * `optional .stabilityai.platformapis.generation.v1.GuidanceParameters guidance = 4 [json_name = "guidance"];` - */ - public var guidance: com.stabilityai.platformapis.generation.v1.GuidanceParameters - @JvmName("getGuidance") - get() = _builder.getGuidance() - @JvmName("setGuidance") - set(value) { - _builder.setGuidance(value) - } - /** - * `optional .stabilityai.platformapis.generation.v1.GuidanceParameters guidance = 4 [json_name = "guidance"];` - */ - public fun clearGuidance() { - _builder.clearGuidance() - } - /** - * `optional .stabilityai.platformapis.generation.v1.GuidanceParameters guidance = 4 [json_name = "guidance"];` - * @return Whether the guidance field is set. - */ - public fun hasGuidance(): kotlin.Boolean { - return _builder.hasGuidance() - } - public val StepParameterKt.Dsl.guidanceOrNull: com.stabilityai.platformapis.generation.v1.GuidanceParameters? - get() = _builder.guidanceOrNull - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.StepParameter.copy(block: com.stabilityai.platformapis.generation.v1.StepParameterKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.StepParameter = - com.stabilityai.platformapis.generation.v1.StepParameterKt.Dsl._create(this.toBuilder()).apply { block() }._build() - -public val com.stabilityai.platformapis.generation.v1.StepParameterOrBuilder.samplerOrNull: com.stabilityai.platformapis.generation.v1.SamplerParameters? - get() = if (hasSampler()) getSampler() else null - -public val com.stabilityai.platformapis.generation.v1.StepParameterOrBuilder.scheduleOrNull: com.stabilityai.platformapis.generation.v1.ScheduleParameters? - get() = if (hasSchedule()) getSchedule() else null - -public val com.stabilityai.platformapis.generation.v1.StepParameterOrBuilder.guidanceOrNull: com.stabilityai.platformapis.generation.v1.GuidanceParameters? - get() = if (hasGuidance()) getGuidance() else null - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TokenKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TokenKt.kt deleted file mode 100644 index 3b3ca9c..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TokenKt.kt +++ /dev/null @@ -1,79 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializetoken") -public inline fun token(block: com.stabilityai.platformapis.generation.v1.TokenKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Token = - com.stabilityai.platformapis.generation.v1.TokenKt.Dsl._create(com.stabilityai.platformapis.generation.v1.Token.newBuilder()).apply { block() }._build() -/** - * ``` - * Generally, a GPT BPE 16-bit token, paired with an optional string representation. - * ``` - * - * Protobuf type `stabilityai.platformapis.generation.v1.Token` - */ -public object TokenKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.Token.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.Token.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.Token = _builder.build() - - /** - * `optional string text = 1 [json_name = "text"];` - */ - public var text: kotlin.String - @JvmName("getText") - get() = _builder.getText() - @JvmName("setText") - set(value) { - _builder.setText(value) - } - /** - * `optional string text = 1 [json_name = "text"];` - */ - public fun clearText() { - _builder.clearText() - } - /** - * `optional string text = 1 [json_name = "text"];` - * @return Whether the text field is set. - */ - public fun hasText(): kotlin.Boolean { - return _builder.hasText() - } - - /** - * `uint32 id = 2 [json_name = "id"];` - */ - public var id: kotlin.Int - @JvmName("getId") - get() = _builder.getId() - @JvmName("setId") - set(value) { - _builder.setId(value) - } - /** - * `uint32 id = 2 [json_name = "id"];` - */ - public fun clearId() { - _builder.clearId() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.Token.copy(block: com.stabilityai.platformapis.generation.v1.TokenKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Token = - com.stabilityai.platformapis.generation.v1.TokenKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TokensKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TokensKt.kt deleted file mode 100644 index 2d2863b..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TokensKt.kt +++ /dev/null @@ -1,134 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializetokens") -public inline fun tokens(block: com.stabilityai.platformapis.generation.v1.TokensKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Tokens = - com.stabilityai.platformapis.generation.v1.TokensKt.Dsl._create(com.stabilityai.platformapis.generation.v1.Tokens.newBuilder()).apply { block() }._build() -/** - * ``` - * Sequence of tokens, paired with the id of the tokenizer used to generate them. - * ``` - * - * Protobuf type `stabilityai.platformapis.generation.v1.Tokens` - */ -public object TokensKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.Tokens.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.Tokens.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.Tokens = _builder.build() - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class TokensProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * `repeated .stabilityai.platformapis.generation.v1.Token tokens = 1 [json_name = "tokens"];` - */ - public val tokens: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getTokensList() - ) - /** - * `repeated .stabilityai.platformapis.generation.v1.Token tokens = 1 [json_name = "tokens"];` - * @param value The tokens to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addTokens") - public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.generation.v1.Token) { - _builder.addTokens(value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.Token tokens = 1 [json_name = "tokens"];` - * @param value The tokens to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignTokens") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.generation.v1.Token) { - add(value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.Token tokens = 1 [json_name = "tokens"];` - * @param values The tokens to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllTokens") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllTokens(values) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.Token tokens = 1 [json_name = "tokens"];` - * @param values The tokens to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllTokens") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.Token tokens = 1 [json_name = "tokens"];` - * @param index The index to set the value at. - * @param value The tokens to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setTokens") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.generation.v1.Token) { - _builder.setTokens(index, value) - } - /** - * `repeated .stabilityai.platformapis.generation.v1.Token tokens = 1 [json_name = "tokens"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearTokens") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearTokens() - } - - - /** - * `optional string tokenizer_id = 2 [json_name = "tokenizerId"];` - */ - public var tokenizerId: kotlin.String - @JvmName("getTokenizerId") - get() = _builder.getTokenizerId() - @JvmName("setTokenizerId") - set(value) { - _builder.setTokenizerId(value) - } - /** - * `optional string tokenizer_id = 2 [json_name = "tokenizerId"];` - */ - public fun clearTokenizerId() { - _builder.clearTokenizerId() - } - /** - * `optional string tokenizer_id = 2 [json_name = "tokenizerId"];` - * @return Whether the tokenizerId field is set. - */ - public fun hasTokenizerId(): kotlin.Boolean { - return _builder.hasTokenizerId() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.Tokens.copy(block: com.stabilityai.platformapis.generation.v1.TokensKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.Tokens = - com.stabilityai.platformapis.generation.v1.TokensKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformCameraPoseKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformCameraPoseKt.kt deleted file mode 100644 index 8c50648..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformCameraPoseKt.kt +++ /dev/null @@ -1,157 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializetransformCameraPose") -public inline fun transformCameraPose(block: com.stabilityai.platformapis.generation.v1.TransformCameraPoseKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformCameraPose = - com.stabilityai.platformapis.generation.v1.TransformCameraPoseKt.Dsl._create(com.stabilityai.platformapis.generation.v1.TransformCameraPose.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.generation.v1.TransformCameraPose` - */ -public object TransformCameraPoseKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.TransformCameraPose.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.TransformCameraPose.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.TransformCameraPose = _builder.build() - - /** - * ``` - * 4x4 transform matrix for the next frame - * ``` - * - * `.stabilityai.platformapis.generation.v1.TransformMatrix world_to_view_matrix = 1 [json_name = "worldToViewMatrix"];` - */ - public var worldToViewMatrix: com.stabilityai.platformapis.generation.v1.TransformMatrix - @JvmName("getWorldToViewMatrix") - get() = _builder.getWorldToViewMatrix() - @JvmName("setWorldToViewMatrix") - set(value) { - _builder.setWorldToViewMatrix(value) - } - /** - * ``` - * 4x4 transform matrix for the next frame - * ``` - * - * `.stabilityai.platformapis.generation.v1.TransformMatrix world_to_view_matrix = 1 [json_name = "worldToViewMatrix"];` - */ - public fun clearWorldToViewMatrix() { - _builder.clearWorldToViewMatrix() - } - /** - * ``` - * 4x4 transform matrix for the next frame - * ``` - * - * `.stabilityai.platformapis.generation.v1.TransformMatrix world_to_view_matrix = 1 [json_name = "worldToViewMatrix"];` - * @return Whether the worldToViewMatrix field is set. - */ - public fun hasWorldToViewMatrix(): kotlin.Boolean { - return _builder.hasWorldToViewMatrix() - } - - /** - * `.stabilityai.platformapis.generation.v1.CameraParameters camera_parameters = 2 [json_name = "cameraParameters"];` - */ - public var cameraParameters: com.stabilityai.platformapis.generation.v1.CameraParameters - @JvmName("getCameraParameters") - get() = _builder.getCameraParameters() - @JvmName("setCameraParameters") - set(value) { - _builder.setCameraParameters(value) - } - /** - * `.stabilityai.platformapis.generation.v1.CameraParameters camera_parameters = 2 [json_name = "cameraParameters"];` - */ - public fun clearCameraParameters() { - _builder.clearCameraParameters() - } - /** - * `.stabilityai.platformapis.generation.v1.CameraParameters camera_parameters = 2 [json_name = "cameraParameters"];` - * @return Whether the cameraParameters field is set. - */ - public fun hasCameraParameters(): kotlin.Boolean { - return _builder.hasCameraParameters() - } - - /** - * ``` - * Prefill masked areas with values matching the colors around the area - * ``` - * - * `bool do_prefill = 5 [json_name = "doPrefill"];` - */ - public var doPrefill: kotlin.Boolean - @JvmName("getDoPrefill") - get() = _builder.getDoPrefill() - @JvmName("setDoPrefill") - set(value) { - _builder.setDoPrefill(value) - } - /** - * ``` - * Prefill masked areas with values matching the colors around the area - * ``` - * - * `bool do_prefill = 5 [json_name = "doPrefill"];` - */ - public fun clearDoPrefill() { - _builder.clearDoPrefill() - } - - /** - * ``` - * Both image and mask will be rendered using this method. - * ``` - * - * `.stabilityai.platformapis.generation.v1.RenderMode render_mode = 8 [json_name = "renderMode"];` - */ - public var renderMode: com.stabilityai.platformapis.generation.v1.RenderMode - @JvmName("getRenderMode") - get() = _builder.getRenderMode() - @JvmName("setRenderMode") - set(value) { - _builder.setRenderMode(value) - } - public var renderModeValue: kotlin.Int - @JvmName("getRenderModeValue") - get() = _builder.getRenderModeValue() - @JvmName("setRenderModeValue") - set(value) { - _builder.setRenderModeValue(value) - } - /** - * ``` - * Both image and mask will be rendered using this method. - * ``` - * - * `.stabilityai.platformapis.generation.v1.RenderMode render_mode = 8 [json_name = "renderMode"];` - */ - public fun clearRenderMode() { - _builder.clearRenderMode() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.TransformCameraPose.copy(block: com.stabilityai.platformapis.generation.v1.TransformCameraPoseKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformCameraPose = - com.stabilityai.platformapis.generation.v1.TransformCameraPoseKt.Dsl._create(this.toBuilder()).apply { block() }._build() - -public val com.stabilityai.platformapis.generation.v1.TransformCameraPoseOrBuilder.worldToViewMatrixOrNull: com.stabilityai.platformapis.generation.v1.TransformMatrix? - get() = if (hasWorldToViewMatrix()) getWorldToViewMatrix() else null - -public val com.stabilityai.platformapis.generation.v1.TransformCameraPoseOrBuilder.cameraParametersOrNull: com.stabilityai.platformapis.generation.v1.CameraParameters? - get() = if (hasCameraParameters()) getCameraParameters() else null - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformColorAdjustKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformColorAdjustKt.kt deleted file mode 100644 index 40d1c07..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformColorAdjustKt.kt +++ /dev/null @@ -1,370 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializetransformColorAdjust") -public inline fun transformColorAdjust(block: com.stabilityai.platformapis.generation.v1.TransformColorAdjustKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformColorAdjust = - com.stabilityai.platformapis.generation.v1.TransformColorAdjustKt.Dsl._create(com.stabilityai.platformapis.generation.v1.TransformColorAdjust.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.generation.v1.TransformColorAdjust` - */ -public object TransformColorAdjustKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.TransformColorAdjust.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.TransformColorAdjust.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.TransformColorAdjust = _builder.build() - - /** - * ``` - * scale pixel intensities, 1.0 is no change - * ``` - * - * `optional float brightness = 1 [json_name = "brightness"];` - */ - public var brightness: kotlin.Float - @JvmName("getBrightness") - get() = _builder.getBrightness() - @JvmName("setBrightness") - set(value) { - _builder.setBrightness(value) - } - /** - * ``` - * scale pixel intensities, 1.0 is no change - * ``` - * - * `optional float brightness = 1 [json_name = "brightness"];` - */ - public fun clearBrightness() { - _builder.clearBrightness() - } - /** - * ``` - * scale pixel intensities, 1.0 is no change - * ``` - * - * `optional float brightness = 1 [json_name = "brightness"];` - * @return Whether the brightness field is set. - */ - public fun hasBrightness(): kotlin.Boolean { - return _builder.hasBrightness() - } - - /** - * ``` - * contrast adjustment, 1.0 is no change - * ``` - * - * `optional float contrast = 2 [json_name = "contrast"];` - */ - public var contrast: kotlin.Float - @JvmName("getContrast") - get() = _builder.getContrast() - @JvmName("setContrast") - set(value) { - _builder.setContrast(value) - } - /** - * ``` - * contrast adjustment, 1.0 is no change - * ``` - * - * `optional float contrast = 2 [json_name = "contrast"];` - */ - public fun clearContrast() { - _builder.clearContrast() - } - /** - * ``` - * contrast adjustment, 1.0 is no change - * ``` - * - * `optional float contrast = 2 [json_name = "contrast"];` - * @return Whether the contrast field is set. - */ - public fun hasContrast(): kotlin.Boolean { - return _builder.hasContrast() - } - - /** - * ``` - * -180 to 180 hue adjustment, 0.0 is no change - * ``` - * - * `optional float hue = 3 [json_name = "hue"];` - */ - public var hue: kotlin.Float - @JvmName("getHue") - get() = _builder.getHue() - @JvmName("setHue") - set(value) { - _builder.setHue(value) - } - /** - * ``` - * -180 to 180 hue adjustment, 0.0 is no change - * ``` - * - * `optional float hue = 3 [json_name = "hue"];` - */ - public fun clearHue() { - _builder.clearHue() - } - /** - * ``` - * -180 to 180 hue adjustment, 0.0 is no change - * ``` - * - * `optional float hue = 3 [json_name = "hue"];` - * @return Whether the hue field is set. - */ - public fun hasHue(): kotlin.Boolean { - return _builder.hasHue() - } - - /** - * ``` - * 0.0 to 2.0 saturation scale, 1.0 is no change - * ``` - * - * `optional float saturation = 4 [json_name = "saturation"];` - */ - public var saturation: kotlin.Float - @JvmName("getSaturation") - get() = _builder.getSaturation() - @JvmName("setSaturation") - set(value) { - _builder.setSaturation(value) - } - /** - * ``` - * 0.0 to 2.0 saturation scale, 1.0 is no change - * ``` - * - * `optional float saturation = 4 [json_name = "saturation"];` - */ - public fun clearSaturation() { - _builder.clearSaturation() - } - /** - * ``` - * 0.0 to 2.0 saturation scale, 1.0 is no change - * ``` - * - * `optional float saturation = 4 [json_name = "saturation"];` - * @return Whether the saturation field is set. - */ - public fun hasSaturation(): kotlin.Boolean { - return _builder.hasSaturation() - } - - /** - * ``` - * -1.0 to 1.0 lightness adjustment, 0.0 is no change - * ``` - * - * `optional float lightness = 5 [json_name = "lightness"];` - */ - public var lightness: kotlin.Float - @JvmName("getLightness") - get() = _builder.getLightness() - @JvmName("setLightness") - set(value) { - _builder.setLightness(value) - } - /** - * ``` - * -1.0 to 1.0 lightness adjustment, 0.0 is no change - * ``` - * - * `optional float lightness = 5 [json_name = "lightness"];` - */ - public fun clearLightness() { - _builder.clearLightness() - } - /** - * ``` - * -1.0 to 1.0 lightness adjustment, 0.0 is no change - * ``` - * - * `optional float lightness = 5 [json_name = "lightness"];` - * @return Whether the lightness field is set. - */ - public fun hasLightness(): kotlin.Boolean { - return _builder.hasLightness() - } - - /** - * ``` - * image to color match - * ``` - * - * `optional .stabilityai.platformapis.generation.v1.Artifact match_image = 6 [json_name = "matchImage"];` - */ - public var matchImage: com.stabilityai.platformapis.generation.v1.Artifact - @JvmName("getMatchImage") - get() = _builder.getMatchImage() - @JvmName("setMatchImage") - set(value) { - _builder.setMatchImage(value) - } - /** - * ``` - * image to color match - * ``` - * - * `optional .stabilityai.platformapis.generation.v1.Artifact match_image = 6 [json_name = "matchImage"];` - */ - public fun clearMatchImage() { - _builder.clearMatchImage() - } - /** - * ``` - * image to color match - * ``` - * - * `optional .stabilityai.platformapis.generation.v1.Artifact match_image = 6 [json_name = "matchImage"];` - * @return Whether the matchImage field is set. - */ - public fun hasMatchImage(): kotlin.Boolean { - return _builder.hasMatchImage() - } - public val TransformColorAdjustKt.Dsl.matchImageOrNull: com.stabilityai.platformapis.generation.v1.Artifact? - get() = _builder.matchImageOrNull - - /** - * ``` - * color match mode to use - * ``` - * - * `optional .stabilityai.platformapis.generation.v1.ColorMatchMode match_mode = 7 [json_name = "matchMode"];` - */ - public var matchMode: com.stabilityai.platformapis.generation.v1.ColorMatchMode - @JvmName("getMatchMode") - get() = _builder.getMatchMode() - @JvmName("setMatchMode") - set(value) { - _builder.setMatchMode(value) - } - public var matchModeValue: kotlin.Int - @JvmName("getMatchModeValue") - get() = _builder.getMatchModeValue() - @JvmName("setMatchModeValue") - set(value) { - _builder.setMatchModeValue(value) - } - /** - * ``` - * color match mode to use - * ``` - * - * `optional .stabilityai.platformapis.generation.v1.ColorMatchMode match_mode = 7 [json_name = "matchMode"];` - */ - public fun clearMatchMode() { - _builder.clearMatchMode() - } - /** - * ``` - * color match mode to use - * ``` - * - * `optional .stabilityai.platformapis.generation.v1.ColorMatchMode match_mode = 7 [json_name = "matchMode"];` - * @return Whether the matchMode field is set. - */ - public fun hasMatchMode(): kotlin.Boolean { - return _builder.hasMatchMode() - } - - /** - * ``` - * amount of gaussian noise to add - * ``` - * - * `optional float noise_amount = 8 [json_name = "noiseAmount"];` - */ - public var noiseAmount: kotlin.Float - @JvmName("getNoiseAmount") - get() = _builder.getNoiseAmount() - @JvmName("setNoiseAmount") - set(value) { - _builder.setNoiseAmount(value) - } - /** - * ``` - * amount of gaussian noise to add - * ``` - * - * `optional float noise_amount = 8 [json_name = "noiseAmount"];` - */ - public fun clearNoiseAmount() { - _builder.clearNoiseAmount() - } - /** - * ``` - * amount of gaussian noise to add - * ``` - * - * `optional float noise_amount = 8 [json_name = "noiseAmount"];` - * @return Whether the noiseAmount field is set. - */ - public fun hasNoiseAmount(): kotlin.Boolean { - return _builder.hasNoiseAmount() - } - - /** - * ``` - * random seed for noise - * ``` - * - * `optional uint32 noise_seed = 9 [json_name = "noiseSeed"];` - */ - public var noiseSeed: kotlin.Int - @JvmName("getNoiseSeed") - get() = _builder.getNoiseSeed() - @JvmName("setNoiseSeed") - set(value) { - _builder.setNoiseSeed(value) - } - /** - * ``` - * random seed for noise - * ``` - * - * `optional uint32 noise_seed = 9 [json_name = "noiseSeed"];` - */ - public fun clearNoiseSeed() { - _builder.clearNoiseSeed() - } - /** - * ``` - * random seed for noise - * ``` - * - * `optional uint32 noise_seed = 9 [json_name = "noiseSeed"];` - * @return Whether the noiseSeed field is set. - */ - public fun hasNoiseSeed(): kotlin.Boolean { - return _builder.hasNoiseSeed() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.TransformColorAdjust.copy(block: com.stabilityai.platformapis.generation.v1.TransformColorAdjustKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformColorAdjust = - com.stabilityai.platformapis.generation.v1.TransformColorAdjustKt.Dsl._create(this.toBuilder()).apply { block() }._build() - -public val com.stabilityai.platformapis.generation.v1.TransformColorAdjustOrBuilder.matchImageOrNull: com.stabilityai.platformapis.generation.v1.Artifact? - get() = if (hasMatchImage()) getMatchImage() else null - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformDepthCalcKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformDepthCalcKt.kt deleted file mode 100644 index 0348a87..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformDepthCalcKt.kt +++ /dev/null @@ -1,142 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializetransformDepthCalc") -public inline fun transformDepthCalc(block: com.stabilityai.platformapis.generation.v1.TransformDepthCalcKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformDepthCalc = - com.stabilityai.platformapis.generation.v1.TransformDepthCalcKt.Dsl._create(com.stabilityai.platformapis.generation.v1.TransformDepthCalc.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.generation.v1.TransformDepthCalc` - */ -public object TransformDepthCalcKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.TransformDepthCalc.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.TransformDepthCalc.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.TransformDepthCalc = _builder.build() - - /** - * ``` - * blend factor between AdaBins (0.0) and MiDaS (1.0) - * ``` - * - * `optional float blend_weight = 1 [json_name = "blendWeight"];` - */ - public var blendWeight: kotlin.Float - @JvmName("getBlendWeight") - get() = _builder.getBlendWeight() - @JvmName("setBlendWeight") - set(value) { - _builder.setBlendWeight(value) - } - /** - * ``` - * blend factor between AdaBins (0.0) and MiDaS (1.0) - * ``` - * - * `optional float blend_weight = 1 [json_name = "blendWeight"];` - */ - public fun clearBlendWeight() { - _builder.clearBlendWeight() - } - /** - * ``` - * blend factor between AdaBins (0.0) and MiDaS (1.0) - * ``` - * - * `optional float blend_weight = 1 [json_name = "blendWeight"];` - * @return Whether the blendWeight field is set. - */ - public fun hasBlendWeight(): kotlin.Boolean { - return _builder.hasBlendWeight() - } - - /** - * ``` - * defaults to 0.0 - * ``` - * - * `optional uint32 blur_radius = 2 [json_name = "blurRadius"];` - */ - public var blurRadius: kotlin.Int - @JvmName("getBlurRadius") - get() = _builder.getBlurRadius() - @JvmName("setBlurRadius") - set(value) { - _builder.setBlurRadius(value) - } - /** - * ``` - * defaults to 0.0 - * ``` - * - * `optional uint32 blur_radius = 2 [json_name = "blurRadius"];` - */ - public fun clearBlurRadius() { - _builder.clearBlurRadius() - } - /** - * ``` - * defaults to 0.0 - * ``` - * - * `optional uint32 blur_radius = 2 [json_name = "blurRadius"];` - * @return Whether the blurRadius field is set. - */ - public fun hasBlurRadius(): kotlin.Boolean { - return _builder.hasBlurRadius() - } - - /** - * ``` - * make near depths have higher values - * ``` - * - * `optional bool reverse = 3 [json_name = "reverse"];` - */ - public var reverse: kotlin.Boolean - @JvmName("getReverse") - get() = _builder.getReverse() - @JvmName("setReverse") - set(value) { - _builder.setReverse(value) - } - /** - * ``` - * make near depths have higher values - * ``` - * - * `optional bool reverse = 3 [json_name = "reverse"];` - */ - public fun clearReverse() { - _builder.clearReverse() - } - /** - * ``` - * make near depths have higher values - * ``` - * - * `optional bool reverse = 3 [json_name = "reverse"];` - * @return Whether the reverse field is set. - */ - public fun hasReverse(): kotlin.Boolean { - return _builder.hasReverse() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.TransformDepthCalc.copy(block: com.stabilityai.platformapis.generation.v1.TransformDepthCalcKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformDepthCalc = - com.stabilityai.platformapis.generation.v1.TransformDepthCalcKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformMatrixKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformMatrixKt.kt deleted file mode 100644 index c9b5e9b..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformMatrixKt.kt +++ /dev/null @@ -1,155 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializetransformMatrix") -public inline fun transformMatrix(block: com.stabilityai.platformapis.generation.v1.TransformMatrixKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformMatrix = - com.stabilityai.platformapis.generation.v1.TransformMatrixKt.Dsl._create(com.stabilityai.platformapis.generation.v1.TransformMatrix.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.generation.v1.TransformMatrix` - */ -public object TransformMatrixKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.TransformMatrix.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.TransformMatrix.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.TransformMatrix = _builder.build() - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class DataProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * ``` - * Column-major 3x3 or 4x4 perspective matrix - * [sx, 10, 20, tx] [x] - * [01, sy, 21, ty] . [y] - * [02, 12, sz, tz] [z] - * [03, 13, 23, 33] [1] - * ``` - * - * `repeated float data = 1 [json_name = "data", packed = true];` - */ - public val data: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getDataList() - ) - /** - * ``` - * Column-major 3x3 or 4x4 perspective matrix - * [sx, 10, 20, tx] [x] - * [01, sy, 21, ty] . [y] - * [02, 12, sz, tz] [z] - * [03, 13, 23, 33] [1] - * ``` - * - * `repeated float data = 1 [json_name = "data", packed = true];` - * @param value The data to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addData") - public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.Float) { - _builder.addData(value) - }/** - * ``` - * Column-major 3x3 or 4x4 perspective matrix - * [sx, 10, 20, tx] [x] - * [01, sy, 21, ty] . [y] - * [02, 12, sz, tz] [z] - * [03, 13, 23, 33] [1] - * ``` - * - * `repeated float data = 1 [json_name = "data", packed = true];` - * @param value The data to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignData") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.Float) { - add(value) - }/** - * ``` - * Column-major 3x3 or 4x4 perspective matrix - * [sx, 10, 20, tx] [x] - * [01, sy, 21, ty] . [y] - * [02, 12, sz, tz] [z] - * [03, 13, 23, 33] [1] - * ``` - * - * `repeated float data = 1 [json_name = "data", packed = true];` - * @param values The data to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllData") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllData(values) - }/** - * ``` - * Column-major 3x3 or 4x4 perspective matrix - * [sx, 10, 20, tx] [x] - * [01, sy, 21, ty] . [y] - * [02, 12, sz, tz] [z] - * [03, 13, 23, 33] [1] - * ``` - * - * `repeated float data = 1 [json_name = "data", packed = true];` - * @param values The data to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllData") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - }/** - * ``` - * Column-major 3x3 or 4x4 perspective matrix - * [sx, 10, 20, tx] [x] - * [01, sy, 21, ty] . [y] - * [02, 12, sz, tz] [z] - * [03, 13, 23, 33] [1] - * ``` - * - * `repeated float data = 1 [json_name = "data", packed = true];` - * @param index The index to set the value at. - * @param value The data to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setData") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.Float) { - _builder.setData(index, value) - }/** - * ``` - * Column-major 3x3 or 4x4 perspective matrix - * [sx, 10, 20, tx] [x] - * [01, sy, 21, ty] . [y] - * [02, 12, sz, tz] [z] - * [03, 13, 23, 33] [1] - * ``` - * - * `repeated float data = 1 [json_name = "data", packed = true];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearData") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearData() - }} -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.TransformMatrix.copy(block: com.stabilityai.platformapis.generation.v1.TransformMatrixKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformMatrix = - com.stabilityai.platformapis.generation.v1.TransformMatrixKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformParametersKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformParametersKt.kt deleted file mode 100644 index 8e6d194..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformParametersKt.kt +++ /dev/null @@ -1,149 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializetransformParameters") -public inline fun transformParameters(block: com.stabilityai.platformapis.generation.v1.TransformParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformParameters = - com.stabilityai.platformapis.generation.v1.TransformParametersKt.Dsl._create(com.stabilityai.platformapis.generation.v1.TransformParameters.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.generation.v1.TransformParameters` - */ -public object TransformParametersKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.TransformParameters.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.TransformParameters.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.TransformParameters = _builder.build() - - /** - * `.stabilityai.platformapis.generation.v1.TransformColorAdjust color_adjust = 2 [json_name = "colorAdjust"];` - */ - public var colorAdjust: com.stabilityai.platformapis.generation.v1.TransformColorAdjust - @JvmName("getColorAdjust") - get() = _builder.getColorAdjust() - @JvmName("setColorAdjust") - set(value) { - _builder.setColorAdjust(value) - } - /** - * `.stabilityai.platformapis.generation.v1.TransformColorAdjust color_adjust = 2 [json_name = "colorAdjust"];` - */ - public fun clearColorAdjust() { - _builder.clearColorAdjust() - } - /** - * `.stabilityai.platformapis.generation.v1.TransformColorAdjust color_adjust = 2 [json_name = "colorAdjust"];` - * @return Whether the colorAdjust field is set. - */ - public fun hasColorAdjust(): kotlin.Boolean { - return _builder.hasColorAdjust() - } - - /** - * `.stabilityai.platformapis.generation.v1.TransformDepthCalc depth_calc = 4 [json_name = "depthCalc"];` - */ - public var depthCalc: com.stabilityai.platformapis.generation.v1.TransformDepthCalc - @JvmName("getDepthCalc") - get() = _builder.getDepthCalc() - @JvmName("setDepthCalc") - set(value) { - _builder.setDepthCalc(value) - } - /** - * `.stabilityai.platformapis.generation.v1.TransformDepthCalc depth_calc = 4 [json_name = "depthCalc"];` - */ - public fun clearDepthCalc() { - _builder.clearDepthCalc() - } - /** - * `.stabilityai.platformapis.generation.v1.TransformDepthCalc depth_calc = 4 [json_name = "depthCalc"];` - * @return Whether the depthCalc field is set. - */ - public fun hasDepthCalc(): kotlin.Boolean { - return _builder.hasDepthCalc() - } - - /** - * `.stabilityai.platformapis.generation.v1.TransformResample resample = 5 [json_name = "resample"];` - */ - public var resample: com.stabilityai.platformapis.generation.v1.TransformResample - @JvmName("getResample") - get() = _builder.getResample() - @JvmName("setResample") - set(value) { - _builder.setResample(value) - } - /** - * `.stabilityai.platformapis.generation.v1.TransformResample resample = 5 [json_name = "resample"];` - */ - public fun clearResample() { - _builder.clearResample() - } - /** - * `.stabilityai.platformapis.generation.v1.TransformResample resample = 5 [json_name = "resample"];` - * @return Whether the resample field is set. - */ - public fun hasResample(): kotlin.Boolean { - return _builder.hasResample() - } - - /** - * `.stabilityai.platformapis.generation.v1.TransformCameraPose camera_pose = 6 [json_name = "cameraPose"];` - */ - public var cameraPose: com.stabilityai.platformapis.generation.v1.TransformCameraPose - @JvmName("getCameraPose") - get() = _builder.getCameraPose() - @JvmName("setCameraPose") - set(value) { - _builder.setCameraPose(value) - } - /** - * `.stabilityai.platformapis.generation.v1.TransformCameraPose camera_pose = 6 [json_name = "cameraPose"];` - */ - public fun clearCameraPose() { - _builder.clearCameraPose() - } - /** - * `.stabilityai.platformapis.generation.v1.TransformCameraPose camera_pose = 6 [json_name = "cameraPose"];` - * @return Whether the cameraPose field is set. - */ - public fun hasCameraPose(): kotlin.Boolean { - return _builder.hasCameraPose() - } - public val transformCase: com.stabilityai.platformapis.generation.v1.TransformParameters.TransformCase - @JvmName("getTransformCase") - get() = _builder.getTransformCase() - - public fun clearTransform() { - _builder.clearTransform() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.TransformParameters.copy(block: com.stabilityai.platformapis.generation.v1.TransformParametersKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformParameters = - com.stabilityai.platformapis.generation.v1.TransformParametersKt.Dsl._create(this.toBuilder()).apply { block() }._build() - -public val com.stabilityai.platformapis.generation.v1.TransformParametersOrBuilder.colorAdjustOrNull: com.stabilityai.platformapis.generation.v1.TransformColorAdjust? - get() = if (hasColorAdjust()) getColorAdjust() else null - -public val com.stabilityai.platformapis.generation.v1.TransformParametersOrBuilder.depthCalcOrNull: com.stabilityai.platformapis.generation.v1.TransformDepthCalc? - get() = if (hasDepthCalc()) getDepthCalc() else null - -public val com.stabilityai.platformapis.generation.v1.TransformParametersOrBuilder.resampleOrNull: com.stabilityai.platformapis.generation.v1.TransformResample? - get() = if (hasResample()) getResample() else null - -public val com.stabilityai.platformapis.generation.v1.TransformParametersOrBuilder.cameraPoseOrNull: com.stabilityai.platformapis.generation.v1.TransformCameraPose? - get() = if (hasCameraPose()) getCameraPose() else null - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformResampleKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformResampleKt.kt deleted file mode 100644 index 6037bb6..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformResampleKt.kt +++ /dev/null @@ -1,218 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializetransformResample") -public inline fun transformResample(block: com.stabilityai.platformapis.generation.v1.TransformResampleKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformResample = - com.stabilityai.platformapis.generation.v1.TransformResampleKt.Dsl._create(com.stabilityai.platformapis.generation.v1.TransformResample.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.generation.v1.TransformResample` - */ -public object TransformResampleKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.TransformResample.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.TransformResample.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.TransformResample = _builder.build() - - /** - * ``` - * extrapolation of border pixels - * ``` - * - * `.stabilityai.platformapis.generation.v1.BorderMode border_mode = 1 [json_name = "borderMode"];` - */ - public var borderMode: com.stabilityai.platformapis.generation.v1.BorderMode - @JvmName("getBorderMode") - get() = _builder.getBorderMode() - @JvmName("setBorderMode") - set(value) { - _builder.setBorderMode(value) - } - public var borderModeValue: kotlin.Int - @JvmName("getBorderModeValue") - get() = _builder.getBorderModeValue() - @JvmName("setBorderModeValue") - set(value) { - _builder.setBorderModeValue(value) - } - /** - * ``` - * extrapolation of border pixels - * ``` - * - * `.stabilityai.platformapis.generation.v1.BorderMode border_mode = 1 [json_name = "borderMode"];` - */ - public fun clearBorderMode() { - _builder.clearBorderMode() - } - - /** - * ``` - * 3x3 or 4x4 matrix - * ``` - * - * `.stabilityai.platformapis.generation.v1.TransformMatrix transform = 2 [json_name = "transform"];` - */ - public var transform: com.stabilityai.platformapis.generation.v1.TransformMatrix - @JvmName("getTransform") - get() = _builder.getTransform() - @JvmName("setTransform") - set(value) { - _builder.setTransform(value) - } - /** - * ``` - * 3x3 or 4x4 matrix - * ``` - * - * `.stabilityai.platformapis.generation.v1.TransformMatrix transform = 2 [json_name = "transform"];` - */ - public fun clearTransform() { - _builder.clearTransform() - } - /** - * ``` - * 3x3 or 4x4 matrix - * ``` - * - * `.stabilityai.platformapis.generation.v1.TransformMatrix transform = 2 [json_name = "transform"];` - * @return Whether the transform field is set. - */ - public fun hasTransform(): kotlin.Boolean { - return _builder.hasTransform() - } - - /** - * ``` - * 3x3 or 4x4 matrix, defaults to identity - * ``` - * - * `optional .stabilityai.platformapis.generation.v1.TransformMatrix prev_transform = 3 [json_name = "prevTransform"];` - */ - public var prevTransform: com.stabilityai.platformapis.generation.v1.TransformMatrix - @JvmName("getPrevTransform") - get() = _builder.getPrevTransform() - @JvmName("setPrevTransform") - set(value) { - _builder.setPrevTransform(value) - } - /** - * ``` - * 3x3 or 4x4 matrix, defaults to identity - * ``` - * - * `optional .stabilityai.platformapis.generation.v1.TransformMatrix prev_transform = 3 [json_name = "prevTransform"];` - */ - public fun clearPrevTransform() { - _builder.clearPrevTransform() - } - /** - * ``` - * 3x3 or 4x4 matrix, defaults to identity - * ``` - * - * `optional .stabilityai.platformapis.generation.v1.TransformMatrix prev_transform = 3 [json_name = "prevTransform"];` - * @return Whether the prevTransform field is set. - */ - public fun hasPrevTransform(): kotlin.Boolean { - return _builder.hasPrevTransform() - } - public val TransformResampleKt.Dsl.prevTransformOrNull: com.stabilityai.platformapis.generation.v1.TransformMatrix? - get() = _builder.prevTransformOrNull - - /** - * ``` - * depth warp factor, defaults to 1.0 - * ``` - * - * `optional float depth_warp = 4 [json_name = "depthWarp"];` - */ - public var depthWarp: kotlin.Float - @JvmName("getDepthWarp") - get() = _builder.getDepthWarp() - @JvmName("setDepthWarp") - set(value) { - _builder.setDepthWarp(value) - } - /** - * ``` - * depth warp factor, defaults to 1.0 - * ``` - * - * `optional float depth_warp = 4 [json_name = "depthWarp"];` - */ - public fun clearDepthWarp() { - _builder.clearDepthWarp() - } - /** - * ``` - * depth warp factor, defaults to 1.0 - * ``` - * - * `optional float depth_warp = 4 [json_name = "depthWarp"];` - * @return Whether the depthWarp field is set. - */ - public fun hasDepthWarp(): kotlin.Boolean { - return _builder.hasDepthWarp() - } - - /** - * ``` - * return inpaint mask - * ``` - * - * `optional bool export_mask = 5 [json_name = "exportMask"];` - */ - public var exportMask: kotlin.Boolean - @JvmName("getExportMask") - get() = _builder.getExportMask() - @JvmName("setExportMask") - set(value) { - _builder.setExportMask(value) - } - /** - * ``` - * return inpaint mask - * ``` - * - * `optional bool export_mask = 5 [json_name = "exportMask"];` - */ - public fun clearExportMask() { - _builder.clearExportMask() - } - /** - * ``` - * return inpaint mask - * ``` - * - * `optional bool export_mask = 5 [json_name = "exportMask"];` - * @return Whether the exportMask field is set. - */ - public fun hasExportMask(): kotlin.Boolean { - return _builder.hasExportMask() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.TransformResample.copy(block: com.stabilityai.platformapis.generation.v1.TransformResampleKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformResample = - com.stabilityai.platformapis.generation.v1.TransformResampleKt.Dsl._create(this.toBuilder()).apply { block() }._build() - -public val com.stabilityai.platformapis.generation.v1.TransformResampleOrBuilder.transformOrNull: com.stabilityai.platformapis.generation.v1.TransformMatrix? - get() = if (hasTransform()) getTransform() else null - -public val com.stabilityai.platformapis.generation.v1.TransformResampleOrBuilder.prevTransformOrNull: com.stabilityai.platformapis.generation.v1.TransformMatrix? - get() = if (hasPrevTransform()) getPrevTransform() else null - diff --git a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformTypeKt.kt b/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformTypeKt.kt deleted file mode 100644 index 00871f1..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/generation/v1/TransformTypeKt.kt +++ /dev/null @@ -1,103 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/generation/v1/generation.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.generation.v1; - -@kotlin.jvm.JvmName("-initializetransformType") -public inline fun transformType(block: com.stabilityai.platformapis.generation.v1.TransformTypeKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformType = - com.stabilityai.platformapis.generation.v1.TransformTypeKt.Dsl._create(com.stabilityai.platformapis.generation.v1.TransformType.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.generation.v1.TransformType` - */ -public object TransformTypeKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.generation.v1.TransformType.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.generation.v1.TransformType.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.generation.v1.TransformType = _builder.build() - - /** - * `.stabilityai.platformapis.generation.v1.DiffusionSampler diffusion = 1 [json_name = "diffusion"];` - */ - public var diffusion: com.stabilityai.platformapis.generation.v1.DiffusionSampler - @JvmName("getDiffusion") - get() = _builder.getDiffusion() - @JvmName("setDiffusion") - set(value) { - _builder.setDiffusion(value) - } - public var diffusionValue: kotlin.Int - @JvmName("getDiffusionValue") - get() = _builder.getDiffusionValue() - @JvmName("setDiffusionValue") - set(value) { - _builder.setDiffusionValue(value) - } - /** - * `.stabilityai.platformapis.generation.v1.DiffusionSampler diffusion = 1 [json_name = "diffusion"];` - */ - public fun clearDiffusion() { - _builder.clearDiffusion() - } - /** - * `.stabilityai.platformapis.generation.v1.DiffusionSampler diffusion = 1 [json_name = "diffusion"];` - * @return Whether the diffusion field is set. - */ - public fun hasDiffusion(): kotlin.Boolean { - return _builder.hasDiffusion() - } - - /** - * `.stabilityai.platformapis.generation.v1.Upscaler upscaler = 2 [json_name = "upscaler"];` - */ - public var upscaler: com.stabilityai.platformapis.generation.v1.Upscaler - @JvmName("getUpscaler") - get() = _builder.getUpscaler() - @JvmName("setUpscaler") - set(value) { - _builder.setUpscaler(value) - } - public var upscalerValue: kotlin.Int - @JvmName("getUpscalerValue") - get() = _builder.getUpscalerValue() - @JvmName("setUpscalerValue") - set(value) { - _builder.setUpscalerValue(value) - } - /** - * `.stabilityai.platformapis.generation.v1.Upscaler upscaler = 2 [json_name = "upscaler"];` - */ - public fun clearUpscaler() { - _builder.clearUpscaler() - } - /** - * `.stabilityai.platformapis.generation.v1.Upscaler upscaler = 2 [json_name = "upscaler"];` - * @return Whether the upscaler field is set. - */ - public fun hasUpscaler(): kotlin.Boolean { - return _builder.hasUpscaler() - } - public val typeCase: com.stabilityai.platformapis.generation.v1.TransformType.TypeCase - @JvmName("getTypeCase") - get() = _builder.getTypeCase() - - public fun clearType() { - _builder.clearType() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.generation.v1.TransformType.copy(block: com.stabilityai.platformapis.generation.v1.TransformTypeKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.generation.v1.TransformType = - com.stabilityai.platformapis.generation.v1.TransformTypeKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/CreateProjectRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/CreateProjectRequestKt.kt deleted file mode 100644 index 57b4f3e..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/CreateProjectRequestKt.kt +++ /dev/null @@ -1,200 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/project/v1/project.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.project.v1; - -@kotlin.jvm.JvmName("-initializecreateProjectRequest") -public inline fun createProjectRequest(block: com.stabilityai.platformapis.project.v1.CreateProjectRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.CreateProjectRequest = - com.stabilityai.platformapis.project.v1.CreateProjectRequestKt.Dsl._create(com.stabilityai.platformapis.project.v1.CreateProjectRequest.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.project.v1.CreateProjectRequest` - */ -public object CreateProjectRequestKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.project.v1.CreateProjectRequest.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.project.v1.CreateProjectRequest.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.project.v1.CreateProjectRequest = _builder.build() - - /** - * ``` - * title of the project - * ``` - * - * `string title = 1 [json_name = "title"];` - */ - public var title: kotlin.String - @JvmName("getTitle") - get() = _builder.getTitle() - @JvmName("setTitle") - set(value) { - _builder.setTitle(value) - } - /** - * ``` - * title of the project - * ``` - * - * `string title = 1 [json_name = "title"];` - */ - public fun clearTitle() { - _builder.clearTitle() - } - - /** - * ``` - * The ID of the organization owning the project, empty for default org for user - * ``` - * - * `optional string owner_id = 2 [json_name = "ownerId"];` - */ - public var ownerId: kotlin.String - @JvmName("getOwnerId") - get() = _builder.getOwnerId() - @JvmName("setOwnerId") - set(value) { - _builder.setOwnerId(value) - } - /** - * ``` - * The ID of the organization owning the project, empty for default org for user - * ``` - * - * `optional string owner_id = 2 [json_name = "ownerId"];` - */ - public fun clearOwnerId() { - _builder.clearOwnerId() - } - /** - * ``` - * The ID of the organization owning the project, empty for default org for user - * ``` - * - * `optional string owner_id = 2 [json_name = "ownerId"];` - * @return Whether the ownerId field is set. - */ - public fun hasOwnerId(): kotlin.Boolean { - return _builder.hasOwnerId() - } - - /** - * ``` - * The access of the project (such as public vs private) - * ``` - * - * `.stabilityai.platformapis.project.v1.ProjectAccess access = 3 [json_name = "access"];` - */ - public var access: com.stabilityai.platformapis.project.v1.ProjectAccess - @JvmName("getAccess") - get() = _builder.getAccess() - @JvmName("setAccess") - set(value) { - _builder.setAccess(value) - } - public var accessValue: kotlin.Int - @JvmName("getAccessValue") - get() = _builder.getAccessValue() - @JvmName("setAccessValue") - set(value) { - _builder.setAccessValue(value) - } - /** - * ``` - * The access of the project (such as public vs private) - * ``` - * - * `.stabilityai.platformapis.project.v1.ProjectAccess access = 3 [json_name = "access"];` - */ - public fun clearAccess() { - _builder.clearAccess() - } - - /** - * ``` - * The status of the project (such as active vs inactive) - * ``` - * - * `.stabilityai.platformapis.project.v1.ProjectStatus status = 4 [json_name = "status"];` - */ - public var status: com.stabilityai.platformapis.project.v1.ProjectStatus - @JvmName("getStatus") - get() = _builder.getStatus() - @JvmName("setStatus") - set(value) { - _builder.setStatus(value) - } - public var statusValue: kotlin.Int - @JvmName("getStatusValue") - get() = _builder.getStatusValue() - @JvmName("setStatusValue") - set(value) { - _builder.setStatusValue(value) - } - /** - * ``` - * The status of the project (such as active vs inactive) - * ``` - * - * `.stabilityai.platformapis.project.v1.ProjectStatus status = 4 [json_name = "status"];` - */ - public fun clearStatus() { - _builder.clearStatus() - } - - /** - * ``` - * Project file for the project (if existing, else will create) - * ``` - * - * `optional .stabilityai.platformapis.project.v1.ProjectAsset file = 5 [json_name = "file"];` - */ - public var file: com.stabilityai.platformapis.project.v1.ProjectAsset - @JvmName("getFile") - get() = _builder.getFile() - @JvmName("setFile") - set(value) { - _builder.setFile(value) - } - /** - * ``` - * Project file for the project (if existing, else will create) - * ``` - * - * `optional .stabilityai.platformapis.project.v1.ProjectAsset file = 5 [json_name = "file"];` - */ - public fun clearFile() { - _builder.clearFile() - } - /** - * ``` - * Project file for the project (if existing, else will create) - * ``` - * - * `optional .stabilityai.platformapis.project.v1.ProjectAsset file = 5 [json_name = "file"];` - * @return Whether the file field is set. - */ - public fun hasFile(): kotlin.Boolean { - return _builder.hasFile() - } - public val CreateProjectRequestKt.Dsl.fileOrNull: com.stabilityai.platformapis.project.v1.ProjectAsset? - get() = _builder.fileOrNull - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.project.v1.CreateProjectRequest.copy(block: com.stabilityai.platformapis.project.v1.CreateProjectRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.CreateProjectRequest = - com.stabilityai.platformapis.project.v1.CreateProjectRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() - -public val com.stabilityai.platformapis.project.v1.CreateProjectRequestOrBuilder.fileOrNull: com.stabilityai.platformapis.project.v1.ProjectAsset? - get() = if (hasFile()) getFile() else null - diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteAssetsRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteAssetsRequestKt.kt deleted file mode 100644 index 5a90976..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteAssetsRequestKt.kt +++ /dev/null @@ -1,193 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/project/v1/project.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.project.v1; - -@kotlin.jvm.JvmName("-initializedeleteAssetsRequest") -public inline fun deleteAssetsRequest(block: com.stabilityai.platformapis.project.v1.DeleteAssetsRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.DeleteAssetsRequest = - com.stabilityai.platformapis.project.v1.DeleteAssetsRequestKt.Dsl._create(com.stabilityai.platformapis.project.v1.DeleteAssetsRequest.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.project.v1.DeleteAssetsRequest` - */ -public object DeleteAssetsRequestKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.project.v1.DeleteAssetsRequest.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.project.v1.DeleteAssetsRequest.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.project.v1.DeleteAssetsRequest = _builder.build() - - /** - * ``` - * ID of the project to request, UUIDv4, empty string uses default project - * ``` - * - * `string id = 1 [json_name = "id"];` - */ - public var id: kotlin.String - @JvmName("getId") - get() = _builder.getId() - @JvmName("setId") - set(value) { - _builder.setId(value) - } - /** - * ``` - * ID of the project to request, UUIDv4, empty string uses default project - * ``` - * - * `string id = 1 [json_name = "id"];` - */ - public fun clearId() { - _builder.clearId() - } - - /** - * ``` - * The ID of the organization owning the project, unset for default org for user - * ``` - * - * `optional string owner_id = 2 [json_name = "ownerId"];` - */ - public var ownerId: kotlin.String - @JvmName("getOwnerId") - get() = _builder.getOwnerId() - @JvmName("setOwnerId") - set(value) { - _builder.setOwnerId(value) - } - /** - * ``` - * The ID of the organization owning the project, unset for default org for user - * ``` - * - * `optional string owner_id = 2 [json_name = "ownerId"];` - */ - public fun clearOwnerId() { - _builder.clearOwnerId() - } - /** - * ``` - * The ID of the organization owning the project, unset for default org for user - * ``` - * - * `optional string owner_id = 2 [json_name = "ownerId"];` - * @return Whether the ownerId field is set. - */ - public fun hasOwnerId(): kotlin.Boolean { - return _builder.hasOwnerId() - } - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class AssetIdsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * ``` - * The IDs of the assets to delete from the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @return A list containing the assetIds. - */ - public val assetIds: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getAssetIdsList() - ) - /** - * ``` - * The IDs of the assets to delete from the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param value The assetIds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAssetIds") - public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) { - _builder.addAssetIds(value) - } - /** - * ``` - * The IDs of the assets to delete from the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param value The assetIds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAssetIds") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) { - add(value) - } - /** - * ``` - * The IDs of the assets to delete from the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param values The assetIds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllAssetIds") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllAssetIds(values) - } - /** - * ``` - * The IDs of the assets to delete from the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param values The assetIds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllAssetIds") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * ``` - * The IDs of the assets to delete from the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param index The index to set the value at. - * @param value The assetIds to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setAssetIds") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) { - _builder.setAssetIds(index, value) - }/** - * ``` - * The IDs of the assets to delete from the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearAssetIds") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearAssetIds() - }} -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.project.v1.DeleteAssetsRequest.copy(block: com.stabilityai.platformapis.project.v1.DeleteAssetsRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.DeleteAssetsRequest = - com.stabilityai.platformapis.project.v1.DeleteAssetsRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteAssetsResponseKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteAssetsResponseKt.kt deleted file mode 100644 index d6e312f..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteAssetsResponseKt.kt +++ /dev/null @@ -1,182 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/project/v1/project.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.project.v1; - -@kotlin.jvm.JvmName("-initializedeleteAssetsResponse") -public inline fun deleteAssetsResponse(block: com.stabilityai.platformapis.project.v1.DeleteAssetsResponseKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.DeleteAssetsResponse = - com.stabilityai.platformapis.project.v1.DeleteAssetsResponseKt.Dsl._create(com.stabilityai.platformapis.project.v1.DeleteAssetsResponse.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.project.v1.DeleteAssetsResponse` - */ -public object DeleteAssetsResponseKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.project.v1.DeleteAssetsResponse.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.project.v1.DeleteAssetsResponse.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.project.v1.DeleteAssetsResponse = _builder.build() - - /** - * ``` - * ID of the project, UUIDv4 - * ``` - * - * `string id = 1 [json_name = "id"];` - */ - public var id: kotlin.String - @JvmName("getId") - get() = _builder.getId() - @JvmName("setId") - set(value) { - _builder.setId(value) - } - /** - * ``` - * ID of the project, UUIDv4 - * ``` - * - * `string id = 1 [json_name = "id"];` - */ - public fun clearId() { - _builder.clearId() - } - - /** - * ``` - * The ID of the organization owning the project - * ``` - * - * `string owner_id = 2 [json_name = "ownerId"];` - */ - public var ownerId: kotlin.String - @JvmName("getOwnerId") - get() = _builder.getOwnerId() - @JvmName("setOwnerId") - set(value) { - _builder.setOwnerId(value) - } - /** - * ``` - * The ID of the organization owning the project - * ``` - * - * `string owner_id = 2 [json_name = "ownerId"];` - */ - public fun clearOwnerId() { - _builder.clearOwnerId() - } - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class AssetIdsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * ``` - * The IDs of the assets deleted from the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @return A list containing the assetIds. - */ - public val assetIds: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getAssetIdsList() - ) - /** - * ``` - * The IDs of the assets deleted from the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param value The assetIds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAssetIds") - public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) { - _builder.addAssetIds(value) - } - /** - * ``` - * The IDs of the assets deleted from the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param value The assetIds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAssetIds") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) { - add(value) - } - /** - * ``` - * The IDs of the assets deleted from the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param values The assetIds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllAssetIds") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllAssetIds(values) - } - /** - * ``` - * The IDs of the assets deleted from the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param values The assetIds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllAssetIds") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * ``` - * The IDs of the assets deleted from the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param index The index to set the value at. - * @param value The assetIds to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setAssetIds") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) { - _builder.setAssetIds(index, value) - }/** - * ``` - * The IDs of the assets deleted from the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearAssetIds") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearAssetIds() - }} -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.project.v1.DeleteAssetsResponse.copy(block: com.stabilityai.platformapis.project.v1.DeleteAssetsResponseKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.DeleteAssetsResponse = - com.stabilityai.platformapis.project.v1.DeleteAssetsResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteProjectRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteProjectRequestKt.kt deleted file mode 100644 index c549cea..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/DeleteProjectRequestKt.kt +++ /dev/null @@ -1,95 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/project/v1/project.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.project.v1; - -@kotlin.jvm.JvmName("-initializedeleteProjectRequest") -public inline fun deleteProjectRequest(block: com.stabilityai.platformapis.project.v1.DeleteProjectRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.DeleteProjectRequest = - com.stabilityai.platformapis.project.v1.DeleteProjectRequestKt.Dsl._create(com.stabilityai.platformapis.project.v1.DeleteProjectRequest.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.project.v1.DeleteProjectRequest` - */ -public object DeleteProjectRequestKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.project.v1.DeleteProjectRequest.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.project.v1.DeleteProjectRequest.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.project.v1.DeleteProjectRequest = _builder.build() - - /** - * ``` - * ID of the project to request, UUIDv4 - * ``` - * - * `string id = 1 [json_name = "id"];` - */ - public var id: kotlin.String - @JvmName("getId") - get() = _builder.getId() - @JvmName("setId") - set(value) { - _builder.setId(value) - } - /** - * ``` - * ID of the project to request, UUIDv4 - * ``` - * - * `string id = 1 [json_name = "id"];` - */ - public fun clearId() { - _builder.clearId() - } - - /** - * ``` - * The ID of the organization owning the project, empty for default org for user - * ``` - * - * `optional string owner_id = 2 [json_name = "ownerId"];` - */ - public var ownerId: kotlin.String - @JvmName("getOwnerId") - get() = _builder.getOwnerId() - @JvmName("setOwnerId") - set(value) { - _builder.setOwnerId(value) - } - /** - * ``` - * The ID of the organization owning the project, empty for default org for user - * ``` - * - * `optional string owner_id = 2 [json_name = "ownerId"];` - */ - public fun clearOwnerId() { - _builder.clearOwnerId() - } - /** - * ``` - * The ID of the organization owning the project, empty for default org for user - * ``` - * - * `optional string owner_id = 2 [json_name = "ownerId"];` - * @return Whether the ownerId field is set. - */ - public fun hasOwnerId(): kotlin.Boolean { - return _builder.hasOwnerId() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.project.v1.DeleteProjectRequest.copy(block: com.stabilityai.platformapis.project.v1.DeleteProjectRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.DeleteProjectRequest = - com.stabilityai.platformapis.project.v1.DeleteProjectRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/GetProjectRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/GetProjectRequestKt.kt deleted file mode 100644 index 4ab4996..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/GetProjectRequestKt.kt +++ /dev/null @@ -1,95 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/project/v1/project.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.project.v1; - -@kotlin.jvm.JvmName("-initializegetProjectRequest") -public inline fun getProjectRequest(block: com.stabilityai.platformapis.project.v1.GetProjectRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.GetProjectRequest = - com.stabilityai.platformapis.project.v1.GetProjectRequestKt.Dsl._create(com.stabilityai.platformapis.project.v1.GetProjectRequest.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.project.v1.GetProjectRequest` - */ -public object GetProjectRequestKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.project.v1.GetProjectRequest.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.project.v1.GetProjectRequest.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.project.v1.GetProjectRequest = _builder.build() - - /** - * ``` - * ID of the project to request, UUIDv4, empty string uses default project - * ``` - * - * `string id = 1 [json_name = "id"];` - */ - public var id: kotlin.String - @JvmName("getId") - get() = _builder.getId() - @JvmName("setId") - set(value) { - _builder.setId(value) - } - /** - * ``` - * ID of the project to request, UUIDv4, empty string uses default project - * ``` - * - * `string id = 1 [json_name = "id"];` - */ - public fun clearId() { - _builder.clearId() - } - - /** - * ``` - * The ID of the organization owning the project, empty for default org for user - * ``` - * - * `optional string owner_id = 2 [json_name = "ownerId"];` - */ - public var ownerId: kotlin.String - @JvmName("getOwnerId") - get() = _builder.getOwnerId() - @JvmName("setOwnerId") - set(value) { - _builder.setOwnerId(value) - } - /** - * ``` - * The ID of the organization owning the project, empty for default org for user - * ``` - * - * `optional string owner_id = 2 [json_name = "ownerId"];` - */ - public fun clearOwnerId() { - _builder.clearOwnerId() - } - /** - * ``` - * The ID of the organization owning the project, empty for default org for user - * ``` - * - * `optional string owner_id = 2 [json_name = "ownerId"];` - * @return Whether the ownerId field is set. - */ - public fun hasOwnerId(): kotlin.Boolean { - return _builder.hasOwnerId() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.project.v1.GetProjectRequest.copy(block: com.stabilityai.platformapis.project.v1.GetProjectRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.GetProjectRequest = - com.stabilityai.platformapis.project.v1.GetProjectRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ListProjectRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ListProjectRequestKt.kt deleted file mode 100644 index fe46d94..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ListProjectRequestKt.kt +++ /dev/null @@ -1,70 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/project/v1/project.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.project.v1; - -@kotlin.jvm.JvmName("-initializelistProjectRequest") -public inline fun listProjectRequest(block: com.stabilityai.platformapis.project.v1.ListProjectRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.ListProjectRequest = - com.stabilityai.platformapis.project.v1.ListProjectRequestKt.Dsl._create(com.stabilityai.platformapis.project.v1.ListProjectRequest.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.project.v1.ListProjectRequest` - */ -public object ListProjectRequestKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.project.v1.ListProjectRequest.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.project.v1.ListProjectRequest.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.project.v1.ListProjectRequest = _builder.build() - - /** - * ``` - * The ID of the organization owning the project, empty for default org for user - * ``` - * - * `optional string owner_id = 1 [json_name = "ownerId"];` - */ - public var ownerId: kotlin.String - @JvmName("getOwnerId") - get() = _builder.getOwnerId() - @JvmName("setOwnerId") - set(value) { - _builder.setOwnerId(value) - } - /** - * ``` - * The ID of the organization owning the project, empty for default org for user - * ``` - * - * `optional string owner_id = 1 [json_name = "ownerId"];` - */ - public fun clearOwnerId() { - _builder.clearOwnerId() - } - /** - * ``` - * The ID of the organization owning the project, empty for default org for user - * ``` - * - * `optional string owner_id = 1 [json_name = "ownerId"];` - * @return Whether the ownerId field is set. - */ - public fun hasOwnerId(): kotlin.Boolean { - return _builder.hasOwnerId() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.project.v1.ListProjectRequest.copy(block: com.stabilityai.platformapis.project.v1.ListProjectRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.ListProjectRequest = - com.stabilityai.platformapis.project.v1.ListProjectRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectAssetKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectAssetKt.kt deleted file mode 100644 index 367c756..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectAssetKt.kt +++ /dev/null @@ -1,340 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/project/v1/project.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.project.v1; - -@kotlin.jvm.JvmName("-initializeprojectAsset") -public inline fun projectAsset(block: com.stabilityai.platformapis.project.v1.ProjectAssetKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.ProjectAsset = - com.stabilityai.platformapis.project.v1.ProjectAssetKt.Dsl._create(com.stabilityai.platformapis.project.v1.ProjectAsset.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.project.v1.ProjectAsset` - */ -public object ProjectAssetKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.project.v1.ProjectAsset.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.project.v1.ProjectAsset.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.project.v1.ProjectAsset = _builder.build() - - /** - * ``` - * ID of the asset, UUIDv4 - * ``` - * - * `string id = 1 [json_name = "id"];` - */ - public var id: kotlin.String - @JvmName("getId") - get() = _builder.getId() - @JvmName("setId") - set(value) { - _builder.setId(value) - } - /** - * ``` - * ID of the asset, UUIDv4 - * ``` - * - * `string id = 1 [json_name = "id"];` - */ - public fun clearId() { - _builder.clearId() - } - - /** - * ``` - * The URI to the asset - * ``` - * - * `string uri = 2 [json_name = "uri"];` - */ - public var uri: kotlin.String - @JvmName("getUri") - get() = _builder.getUri() - @JvmName("setUri") - set(value) { - _builder.setUri(value) - } - /** - * ``` - * The URI to the asset - * ``` - * - * `string uri = 2 [json_name = "uri"];` - */ - public fun clearUri() { - _builder.clearUri() - } - - /** - * ``` - * The use of the asset with respect to the project - * ``` - * - * `.stabilityai.platformapis.project.v1.ProjectAssetUse use = 3 [json_name = "use"];` - */ - public var use: com.stabilityai.platformapis.project.v1.ProjectAssetUse - @JvmName("getUse") - get() = _builder.getUse() - @JvmName("setUse") - set(value) { - _builder.setUse(value) - } - public var useValue: kotlin.Int - @JvmName("getUseValue") - get() = _builder.getUseValue() - @JvmName("setUseValue") - set(value) { - _builder.setUseValue(value) - } - /** - * ``` - * The use of the asset with respect to the project - * ``` - * - * `.stabilityai.platformapis.project.v1.ProjectAssetUse use = 3 [json_name = "use"];` - */ - public fun clearUse() { - _builder.clearUse() - } - - /** - * ``` - * The name of the asset - * ``` - * - * `string name = 4 [json_name = "name"];` - */ - public var name: kotlin.String - @JvmName("getName") - get() = _builder.getName() - @JvmName("setName") - set(value) { - _builder.setName(value) - } - /** - * ``` - * The name of the asset - * ``` - * - * `string name = 4 [json_name = "name"];` - */ - public fun clearName() { - _builder.clearName() - } - - /** - * ``` - * The asset size in bytes - * ``` - * - * `uint64 size = 5 [json_name = "size"];` - */ - public var size: kotlin.Long - @JvmName("getSize") - get() = _builder.getSize() - @JvmName("setSize") - set(value) { - _builder.setSize(value) - } - /** - * ``` - * The asset size in bytes - * ``` - * - * `uint64 size = 5 [json_name = "size"];` - */ - public fun clearSize() { - _builder.clearSize() - } - - /** - * ``` - * Time of asset creation (UTC seconds epoch) - * ``` - * - * `uint64 created_at = 6 [json_name = "createdAt"];` - */ - public var createdAt: kotlin.Long - @JvmName("getCreatedAt") - get() = _builder.getCreatedAt() - @JvmName("setCreatedAt") - set(value) { - _builder.setCreatedAt(value) - } - /** - * ``` - * Time of asset creation (UTC seconds epoch) - * ``` - * - * `uint64 created_at = 6 [json_name = "createdAt"];` - */ - public fun clearCreatedAt() { - _builder.clearCreatedAt() - } - - /** - * ``` - * Time of last asset update (UTC seconds epoch) - * ``` - * - * `uint64 updated_at = 7 [json_name = "updatedAt"];` - */ - public var updatedAt: kotlin.Long - @JvmName("getUpdatedAt") - get() = _builder.getUpdatedAt() - @JvmName("setUpdatedAt") - set(value) { - _builder.setUpdatedAt(value) - } - /** - * ``` - * Time of last asset update (UTC seconds epoch) - * ``` - * - * `uint64 updated_at = 7 [json_name = "updatedAt"];` - */ - public fun clearUpdatedAt() { - _builder.clearUpdatedAt() - } - - /** - * ``` - * The request object that is associated with the artifact - * ``` - * - * `.stabilityai.platformapis.generation.v1.Request request = 8 [json_name = "request"];` - */ - public var request: com.stabilityai.platformapis.generation.v1.Request - @JvmName("getRequest") - get() = _builder.getRequest() - @JvmName("setRequest") - set(value) { - _builder.setRequest(value) - } - /** - * ``` - * The request object that is associated with the artifact - * ``` - * - * `.stabilityai.platformapis.generation.v1.Request request = 8 [json_name = "request"];` - */ - public fun clearRequest() { - _builder.clearRequest() - } - /** - * ``` - * The request object that is associated with the artifact - * ``` - * - * `.stabilityai.platformapis.generation.v1.Request request = 8 [json_name = "request"];` - * @return Whether the request field is set. - */ - public fun hasRequest(): kotlin.Boolean { - return _builder.hasRequest() - } - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class TagsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * ``` - * The tags associated with the asset - * ``` - * - * `map tags = 9 [json_name = "tags"];` - */ - public val tags: com.google.protobuf.kotlin.DslMap - @kotlin.jvm.JvmSynthetic - @JvmName("getTagsMap") - get() = com.google.protobuf.kotlin.DslMap( - _builder.getTagsMap() - ) - /** - * ``` - * The tags associated with the asset - * ``` - * - * `map tags = 9 [json_name = "tags"];` - */ - @JvmName("putTags") - public fun com.google.protobuf.kotlin.DslMap - .put(key: kotlin.String, value: kotlin.String) { - _builder.putTags(key, value) - } - /** - * ``` - * The tags associated with the asset - * ``` - * - * `map tags = 9 [json_name = "tags"];` - */ - @kotlin.jvm.JvmSynthetic - @JvmName("setTags") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslMap - .set(key: kotlin.String, value: kotlin.String) { - put(key, value) - } - /** - * ``` - * The tags associated with the asset - * ``` - * - * `map tags = 9 [json_name = "tags"];` - */ - @kotlin.jvm.JvmSynthetic - @JvmName("removeTags") - public fun com.google.protobuf.kotlin.DslMap - .remove(key: kotlin.String) { - _builder.removeTags(key) - } - /** - * ``` - * The tags associated with the asset - * ``` - * - * `map tags = 9 [json_name = "tags"];` - */ - @kotlin.jvm.JvmSynthetic - @JvmName("putAllTags") - public fun com.google.protobuf.kotlin.DslMap - .putAll(map: kotlin.collections.Map) { - _builder.putAllTags(map) - } - /** - * ``` - * The tags associated with the asset - * ``` - * - * `map tags = 9 [json_name = "tags"];` - */ - @kotlin.jvm.JvmSynthetic - @JvmName("clearTags") - public fun com.google.protobuf.kotlin.DslMap - .clear() { - _builder.clearTags() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.project.v1.ProjectAsset.copy(block: com.stabilityai.platformapis.project.v1.ProjectAssetKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.ProjectAsset = - com.stabilityai.platformapis.project.v1.ProjectAssetKt.Dsl._create(this.toBuilder()).apply { block() }._build() - -public val com.stabilityai.platformapis.project.v1.ProjectAssetOrBuilder.requestOrNull: com.stabilityai.platformapis.generation.v1.Request? - get() = if (hasRequest()) getRequest() else null - diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectKt.kt deleted file mode 100644 index 84bd928..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectKt.kt +++ /dev/null @@ -1,387 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/project/v1/project.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.project.v1; - -@kotlin.jvm.JvmName("-initializeproject") -public inline fun project(block: com.stabilityai.platformapis.project.v1.ProjectKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.Project = - com.stabilityai.platformapis.project.v1.ProjectKt.Dsl._create(com.stabilityai.platformapis.project.v1.Project.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.project.v1.Project` - */ -public object ProjectKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.project.v1.Project.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.project.v1.Project.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.project.v1.Project = _builder.build() - - /** - * ``` - * ID of the project, UUIDv4 - * ``` - * - * `string id = 1 [json_name = "id"];` - */ - public var id: kotlin.String - @JvmName("getId") - get() = _builder.getId() - @JvmName("setId") - set(value) { - _builder.setId(value) - } - /** - * ``` - * ID of the project, UUIDv4 - * ``` - * - * `string id = 1 [json_name = "id"];` - */ - public fun clearId() { - _builder.clearId() - } - - /** - * ``` - * Title of the project - * ``` - * - * `string title = 2 [json_name = "title"];` - */ - public var title: kotlin.String - @JvmName("getTitle") - get() = _builder.getTitle() - @JvmName("setTitle") - set(value) { - _builder.setTitle(value) - } - /** - * ``` - * Title of the project - * ``` - * - * `string title = 2 [json_name = "title"];` - */ - public fun clearTitle() { - _builder.clearTitle() - } - - /** - * ``` - * The ID of the organization owning the project - * ``` - * - * `string owner_id = 3 [json_name = "ownerId"];` - */ - public var ownerId: kotlin.String - @JvmName("getOwnerId") - get() = _builder.getOwnerId() - @JvmName("setOwnerId") - set(value) { - _builder.setOwnerId(value) - } - /** - * ``` - * The ID of the organization owning the project - * ``` - * - * `string owner_id = 3 [json_name = "ownerId"];` - */ - public fun clearOwnerId() { - _builder.clearOwnerId() - } - - /** - * ``` - * The access of the project (such as public vs private) - * ``` - * - * `.stabilityai.platformapis.project.v1.ProjectAccess access = 4 [json_name = "access"];` - */ - public var access: com.stabilityai.platformapis.project.v1.ProjectAccess - @JvmName("getAccess") - get() = _builder.getAccess() - @JvmName("setAccess") - set(value) { - _builder.setAccess(value) - } - public var accessValue: kotlin.Int - @JvmName("getAccessValue") - get() = _builder.getAccessValue() - @JvmName("setAccessValue") - set(value) { - _builder.setAccessValue(value) - } - /** - * ``` - * The access of the project (such as public vs private) - * ``` - * - * `.stabilityai.platformapis.project.v1.ProjectAccess access = 4 [json_name = "access"];` - */ - public fun clearAccess() { - _builder.clearAccess() - } - - /** - * ``` - * The status of the project (such as active vs inactive) - * ``` - * - * `.stabilityai.platformapis.project.v1.ProjectStatus status = 5 [json_name = "status"];` - */ - public var status: com.stabilityai.platformapis.project.v1.ProjectStatus - @JvmName("getStatus") - get() = _builder.getStatus() - @JvmName("setStatus") - set(value) { - _builder.setStatus(value) - } - public var statusValue: kotlin.Int - @JvmName("getStatusValue") - get() = _builder.getStatusValue() - @JvmName("setStatusValue") - set(value) { - _builder.setStatusValue(value) - } - /** - * ``` - * The status of the project (such as active vs inactive) - * ``` - * - * `.stabilityai.platformapis.project.v1.ProjectStatus status = 5 [json_name = "status"];` - */ - public fun clearStatus() { - _builder.clearStatus() - } - - /** - * ``` - * The size of the project in bytes - * ``` - * - * `uint64 size = 6 [json_name = "size"];` - */ - public var size: kotlin.Long - @JvmName("getSize") - get() = _builder.getSize() - @JvmName("setSize") - set(value) { - _builder.setSize(value) - } - /** - * ``` - * The size of the project in bytes - * ``` - * - * `uint64 size = 6 [json_name = "size"];` - */ - public fun clearSize() { - _builder.clearSize() - } - - /** - * ``` - * Project file for the project - * ``` - * - * `.stabilityai.platformapis.project.v1.ProjectAsset file = 7 [json_name = "file"];` - */ - public var file: com.stabilityai.platformapis.project.v1.ProjectAsset - @JvmName("getFile") - get() = _builder.getFile() - @JvmName("setFile") - set(value) { - _builder.setFile(value) - } - /** - * ``` - * Project file for the project - * ``` - * - * `.stabilityai.platformapis.project.v1.ProjectAsset file = 7 [json_name = "file"];` - */ - public fun clearFile() { - _builder.clearFile() - } - /** - * ``` - * Project file for the project - * ``` - * - * `.stabilityai.platformapis.project.v1.ProjectAsset file = 7 [json_name = "file"];` - * @return Whether the file field is set. - */ - public fun hasFile(): kotlin.Boolean { - return _builder.hasFile() - } - - /** - * ``` - * Time of project creation (UTC seconds epoch) - * ``` - * - * `uint64 created_at = 8 [json_name = "createdAt"];` - */ - public var createdAt: kotlin.Long - @JvmName("getCreatedAt") - get() = _builder.getCreatedAt() - @JvmName("setCreatedAt") - set(value) { - _builder.setCreatedAt(value) - } - /** - * ``` - * Time of project creation (UTC seconds epoch) - * ``` - * - * `uint64 created_at = 8 [json_name = "createdAt"];` - */ - public fun clearCreatedAt() { - _builder.clearCreatedAt() - } - - /** - * ``` - * Time of last project update (UTC seconds epoch) - * ``` - * - * `uint64 updated_at = 9 [json_name = "updatedAt"];` - */ - public var updatedAt: kotlin.Long - @JvmName("getUpdatedAt") - get() = _builder.getUpdatedAt() - @JvmName("setUpdatedAt") - set(value) { - _builder.setUpdatedAt(value) - } - /** - * ``` - * Time of last project update (UTC seconds epoch) - * ``` - * - * `uint64 updated_at = 9 [json_name = "updatedAt"];` - */ - public fun clearUpdatedAt() { - _builder.clearUpdatedAt() - } - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class AssetsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * ``` - * The listing of all assets associated with the project - * ``` - * - * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 10 [json_name = "assets"];` - */ - public val assets: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getAssetsList() - ) - /** - * ``` - * The listing of all assets associated with the project - * ``` - * - * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 10 [json_name = "assets"];` - * @param value The assets to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAssets") - public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.project.v1.ProjectAsset) { - _builder.addAssets(value) - } - /** - * ``` - * The listing of all assets associated with the project - * ``` - * - * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 10 [json_name = "assets"];` - * @param value The assets to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAssets") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.project.v1.ProjectAsset) { - add(value) - } - /** - * ``` - * The listing of all assets associated with the project - * ``` - * - * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 10 [json_name = "assets"];` - * @param values The assets to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllAssets") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllAssets(values) - } - /** - * ``` - * The listing of all assets associated with the project - * ``` - * - * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 10 [json_name = "assets"];` - * @param values The assets to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllAssets") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * ``` - * The listing of all assets associated with the project - * ``` - * - * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 10 [json_name = "assets"];` - * @param index The index to set the value at. - * @param value The assets to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setAssets") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.project.v1.ProjectAsset) { - _builder.setAssets(index, value) - } - /** - * ``` - * The listing of all assets associated with the project - * ``` - * - * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 10 [json_name = "assets"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearAssets") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearAssets() - } - - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.project.v1.Project.copy(block: com.stabilityai.platformapis.project.v1.ProjectKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.Project = - com.stabilityai.platformapis.project.v1.ProjectKt.Dsl._create(this.toBuilder()).apply { block() }._build() - -public val com.stabilityai.platformapis.project.v1.ProjectOrBuilder.fileOrNull: com.stabilityai.platformapis.project.v1.ProjectAsset? - get() = if (hasFile()) getFile() else null - diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectProtoKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectProtoKt.kt deleted file mode 100644 index b4c5a4c..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectProtoKt.kt +++ /dev/null @@ -1,7 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/project/v1/project.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.project.v1; - diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectServiceClient.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectServiceClient.kt deleted file mode 100644 index 05af836..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectServiceClient.kt +++ /dev/null @@ -1,150 +0,0 @@ -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: stability_api/platform/project/v1/project.proto -// -package com.stabilityai.platformapis.project.v1 - -import build.buf.connect.Headers -import build.buf.connect.MethodSpec -import build.buf.connect.ProtocolClientInterface -import build.buf.connect.ResponseMessage -import build.buf.connect.ServerOnlyStreamInterface - -/** - * - * gRPC services - */ -public class ProjectServiceClient( - private val client: ProtocolClientInterface, -) : ProjectServiceClientInterface { - /** - * Create a new project if it does not exist - */ - public override suspend fun create(request: CreateProjectRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "stabilityai.platformapis.project.v1.ProjectService/Create", - com.stabilityai.platformapis.project.v1.CreateProjectRequest::class, - com.stabilityai.platformapis.project.v1.Project::class - ), - ) - - - /** - * Update an existing project - */ - public override suspend fun update(request: UpdateProjectRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "stabilityai.platformapis.project.v1.ProjectService/Update", - com.stabilityai.platformapis.project.v1.UpdateProjectRequest::class, - com.stabilityai.platformapis.project.v1.Project::class - ), - ) - - - /** - * List all the projects for an organization - */ - public override suspend fun list(headers: Headers): - ServerOnlyStreamInterface = client.serverStream( - headers, - MethodSpec( - "stabilityai.platformapis.project.v1.ProjectService/List", - com.stabilityai.platformapis.project.v1.ListProjectRequest::class, - com.stabilityai.platformapis.project.v1.Project::class - ), - ) - - - /** - * Get a project - */ - public override suspend fun `get`(request: GetProjectRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "stabilityai.platformapis.project.v1.ProjectService/Get", - com.stabilityai.platformapis.project.v1.GetProjectRequest::class, - com.stabilityai.platformapis.project.v1.Project::class - ), - ) - - - /** - * Delete a project - */ - public override suspend fun delete(request: DeleteProjectRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "stabilityai.platformapis.project.v1.ProjectService/Delete", - com.stabilityai.platformapis.project.v1.DeleteProjectRequest::class, - com.stabilityai.platformapis.project.v1.Project::class - ), - ) - - - /** - * Add or remove tags from an asset - */ - public override suspend fun tagAssets(request: TagAssetsRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "stabilityai.platformapis.project.v1.ProjectService/TagAssets", - com.stabilityai.platformapis.project.v1.TagAssetsRequest::class, - com.stabilityai.platformapis.project.v1.TagAssetsResponse::class - ), - ) - - - public override suspend fun untagAssets(request: UntagAssetsRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "stabilityai.platformapis.project.v1.ProjectService/UntagAssets", - com.stabilityai.platformapis.project.v1.UntagAssetsRequest::class, - com.stabilityai.platformapis.project.v1.UntagAssetsResponse::class - ), - ) - - - /** - * Query the assets of a project, with additional filtering - */ - public override suspend fun queryAssets(request: QueryAssetsRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "stabilityai.platformapis.project.v1.ProjectService/QueryAssets", - com.stabilityai.platformapis.project.v1.QueryAssetsRequest::class, - com.stabilityai.platformapis.project.v1.QueryAssetsResponse::class - ), - ) - - - /** - * Delete one or more assets of a project - */ - public override suspend fun deleteAssets(request: DeleteAssetsRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "stabilityai.platformapis.project.v1.ProjectService/DeleteAssets", - com.stabilityai.platformapis.project.v1.DeleteAssetsRequest::class, - com.stabilityai.platformapis.project.v1.DeleteAssetsResponse::class - ), - ) - -} diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectServiceClientInterface.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectServiceClientInterface.kt deleted file mode 100644 index cd9e922..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/ProjectServiceClientInterface.kt +++ /dev/null @@ -1,66 +0,0 @@ -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: stability_api/platform/project/v1/project.proto -// -package com.stabilityai.platformapis.project.v1 - -import build.buf.connect.Headers -import build.buf.connect.ResponseMessage -import build.buf.connect.ServerOnlyStreamInterface - -/** - * - * gRPC services - */ -public interface ProjectServiceClientInterface { - /** - * Create a new project if it does not exist - */ - public suspend fun create(request: CreateProjectRequest, headers: Headers = emptyMap()): - ResponseMessage - - /** - * Update an existing project - */ - public suspend fun update(request: UpdateProjectRequest, headers: Headers = emptyMap()): - ResponseMessage - - /** - * List all the projects for an organization - */ - public suspend fun list(headers: Headers = emptyMap()): - ServerOnlyStreamInterface - - /** - * Get a project - */ - public suspend fun `get`(request: GetProjectRequest, headers: Headers = emptyMap()): - ResponseMessage - - /** - * Delete a project - */ - public suspend fun delete(request: DeleteProjectRequest, headers: Headers = emptyMap()): - ResponseMessage - - /** - * Add or remove tags from an asset - */ - public suspend fun tagAssets(request: TagAssetsRequest, headers: Headers = emptyMap()): - ResponseMessage - - public suspend fun untagAssets(request: UntagAssetsRequest, headers: Headers = emptyMap()): - ResponseMessage - - /** - * Query the assets of a project, with additional filtering - */ - public suspend fun queryAssets(request: QueryAssetsRequest, headers: Headers = emptyMap()): - ResponseMessage - - /** - * Delete one or more assets of a project - */ - public suspend fun deleteAssets(request: DeleteAssetsRequest, headers: Headers = emptyMap()): - ResponseMessage -} diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/QueryAssetsRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/QueryAssetsRequestKt.kt deleted file mode 100644 index 122e15c..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/QueryAssetsRequestKt.kt +++ /dev/null @@ -1,449 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/project/v1/project.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.project.v1; - -@kotlin.jvm.JvmName("-initializequeryAssetsRequest") -public inline fun queryAssetsRequest(block: com.stabilityai.platformapis.project.v1.QueryAssetsRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.QueryAssetsRequest = - com.stabilityai.platformapis.project.v1.QueryAssetsRequestKt.Dsl._create(com.stabilityai.platformapis.project.v1.QueryAssetsRequest.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.project.v1.QueryAssetsRequest` - */ -public object QueryAssetsRequestKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.project.v1.QueryAssetsRequest.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.project.v1.QueryAssetsRequest.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.project.v1.QueryAssetsRequest = _builder.build() - - /** - * ``` - * ID of the project to request, UUIDv4, empty string uses default project - * ``` - * - * `string id = 1 [json_name = "id"];` - */ - public var id: kotlin.String - @JvmName("getId") - get() = _builder.getId() - @JvmName("setId") - set(value) { - _builder.setId(value) - } - /** - * ``` - * ID of the project to request, UUIDv4, empty string uses default project - * ``` - * - * `string id = 1 [json_name = "id"];` - */ - public fun clearId() { - _builder.clearId() - } - - /** - * ``` - * The ID of the organization owning the assets, unset for default org for user - * ``` - * - * `optional string owner_id = 2 [json_name = "ownerId"];` - */ - public var ownerId: kotlin.String - @JvmName("getOwnerId") - get() = _builder.getOwnerId() - @JvmName("setOwnerId") - set(value) { - _builder.setOwnerId(value) - } - /** - * ``` - * The ID of the organization owning the assets, unset for default org for user - * ``` - * - * `optional string owner_id = 2 [json_name = "ownerId"];` - */ - public fun clearOwnerId() { - _builder.clearOwnerId() - } - /** - * ``` - * The ID of the organization owning the assets, unset for default org for user - * ``` - * - * `optional string owner_id = 2 [json_name = "ownerId"];` - * @return Whether the ownerId field is set. - */ - public fun hasOwnerId(): kotlin.Boolean { - return _builder.hasOwnerId() - } - - /** - * ``` - * The time (UTC seconds epoch) to start listing assets from, unset for no restriction - * ``` - * - * `optional uint64 since = 3 [json_name = "since"];` - */ - public var since: kotlin.Long - @JvmName("getSince") - get() = _builder.getSince() - @JvmName("setSince") - set(value) { - _builder.setSince(value) - } - /** - * ``` - * The time (UTC seconds epoch) to start listing assets from, unset for no restriction - * ``` - * - * `optional uint64 since = 3 [json_name = "since"];` - */ - public fun clearSince() { - _builder.clearSince() - } - /** - * ``` - * The time (UTC seconds epoch) to start listing assets from, unset for no restriction - * ``` - * - * `optional uint64 since = 3 [json_name = "since"];` - * @return Whether the since field is set. - */ - public fun hasSince(): kotlin.Boolean { - return _builder.hasSince() - } - - /** - * ``` - * The time (UTC seconds epoch) to stop listing assets at, unset for no restriction - * ``` - * - * `optional uint64 until = 4 [json_name = "until"];` - */ - public var until: kotlin.Long - @JvmName("getUntil") - get() = _builder.getUntil() - @JvmName("setUntil") - set(value) { - _builder.setUntil(value) - } - /** - * ``` - * The time (UTC seconds epoch) to stop listing assets at, unset for no restriction - * ``` - * - * `optional uint64 until = 4 [json_name = "until"];` - */ - public fun clearUntil() { - _builder.clearUntil() - } - /** - * ``` - * The time (UTC seconds epoch) to stop listing assets at, unset for no restriction - * ``` - * - * `optional uint64 until = 4 [json_name = "until"];` - * @return Whether the until field is set. - */ - public fun hasUntil(): kotlin.Boolean { - return _builder.hasUntil() - } - - /** - * ``` - * The maximum number of assets to return, unset for no limit - * ``` - * - * `optional uint64 limit = 5 [json_name = "limit"];` - */ - public var limit: kotlin.Long - @JvmName("getLimit") - get() = _builder.getLimit() - @JvmName("setLimit") - set(value) { - _builder.setLimit(value) - } - /** - * ``` - * The maximum number of assets to return, unset for no limit - * ``` - * - * `optional uint64 limit = 5 [json_name = "limit"];` - */ - public fun clearLimit() { - _builder.clearLimit() - } - /** - * ``` - * The maximum number of assets to return, unset for no limit - * ``` - * - * `optional uint64 limit = 5 [json_name = "limit"];` - * @return Whether the limit field is set. - */ - public fun hasLimit(): kotlin.Boolean { - return _builder.hasLimit() - } - - /** - * ``` - * The key to start from, used to paginate results, unset for no offset - * ``` - * - * `optional string start_key = 6 [json_name = "startKey"];` - */ - public var startKey: kotlin.String - @JvmName("getStartKey") - get() = _builder.getStartKey() - @JvmName("setStartKey") - set(value) { - _builder.setStartKey(value) - } - /** - * ``` - * The key to start from, used to paginate results, unset for no offset - * ``` - * - * `optional string start_key = 6 [json_name = "startKey"];` - */ - public fun clearStartKey() { - _builder.clearStartKey() - } - /** - * ``` - * The key to start from, used to paginate results, unset for no offset - * ``` - * - * `optional string start_key = 6 [json_name = "startKey"];` - * @return Whether the startKey field is set. - */ - public fun hasStartKey(): kotlin.Boolean { - return _builder.hasStartKey() - } - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class UseProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * ``` - * The asset usage to filter the assets returned, empty for no filter - * ``` - * - * `repeated .stabilityai.platformapis.project.v1.ProjectAssetUse use = 7 [json_name = "use"];` - */ - public val use: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getUseList() - ) - /** - * ``` - * The asset usage to filter the assets returned, empty for no filter - * ``` - * - * `repeated .stabilityai.platformapis.project.v1.ProjectAssetUse use = 7 [json_name = "use"];` - * @param value The use to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addUse") - public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.project.v1.ProjectAssetUse) { - _builder.addUse(value) - }/** - * ``` - * The asset usage to filter the assets returned, empty for no filter - * ``` - * - * `repeated .stabilityai.platformapis.project.v1.ProjectAssetUse use = 7 [json_name = "use"];` - * @param value The use to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignUse") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.project.v1.ProjectAssetUse) { - add(value) - }/** - * ``` - * The asset usage to filter the assets returned, empty for no filter - * ``` - * - * `repeated .stabilityai.platformapis.project.v1.ProjectAssetUse use = 7 [json_name = "use"];` - * @param values The use to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllUse") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllUse(values) - }/** - * ``` - * The asset usage to filter the assets returned, empty for no filter - * ``` - * - * `repeated .stabilityai.platformapis.project.v1.ProjectAssetUse use = 7 [json_name = "use"];` - * @param values The use to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllUse") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - }/** - * ``` - * The asset usage to filter the assets returned, empty for no filter - * ``` - * - * `repeated .stabilityai.platformapis.project.v1.ProjectAssetUse use = 7 [json_name = "use"];` - * @param index The index to set the value at. - * @param value The use to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setUse") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.project.v1.ProjectAssetUse) { - _builder.setUse(index, value) - }/** - * ``` - * The asset usage to filter the assets returned, empty for no filter - * ``` - * - * `repeated .stabilityai.platformapis.project.v1.ProjectAssetUse use = 7 [json_name = "use"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearUse") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearUse() - } - /** - * ``` - * The sort direction based on asset creation time, default is descending - * ``` - * - * `.stabilityai.platformapis.project.v1.ProjectSortDir sort_dir = 8 [json_name = "sortDir"];` - */ - public var sortDir: com.stabilityai.platformapis.project.v1.ProjectSortDir - @JvmName("getSortDir") - get() = _builder.getSortDir() - @JvmName("setSortDir") - set(value) { - _builder.setSortDir(value) - } - public var sortDirValue: kotlin.Int - @JvmName("getSortDirValue") - get() = _builder.getSortDirValue() - @JvmName("setSortDirValue") - set(value) { - _builder.setSortDirValue(value) - } - /** - * ``` - * The sort direction based on asset creation time, default is descending - * ``` - * - * `.stabilityai.platformapis.project.v1.ProjectSortDir sort_dir = 8 [json_name = "sortDir"];` - */ - public fun clearSortDir() { - _builder.clearSortDir() - } - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class TagsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * ``` - * The tag values used to filter the assets returned, empty for no filter - * ``` - * - * `map tags = 9 [json_name = "tags"];` - */ - public val tags: com.google.protobuf.kotlin.DslMap - @kotlin.jvm.JvmSynthetic - @JvmName("getTagsMap") - get() = com.google.protobuf.kotlin.DslMap( - _builder.getTagsMap() - ) - /** - * ``` - * The tag values used to filter the assets returned, empty for no filter - * ``` - * - * `map tags = 9 [json_name = "tags"];` - */ - @JvmName("putTags") - public fun com.google.protobuf.kotlin.DslMap - .put(key: kotlin.String, value: kotlin.String) { - _builder.putTags(key, value) - } - /** - * ``` - * The tag values used to filter the assets returned, empty for no filter - * ``` - * - * `map tags = 9 [json_name = "tags"];` - */ - @kotlin.jvm.JvmSynthetic - @JvmName("setTags") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslMap - .set(key: kotlin.String, value: kotlin.String) { - put(key, value) - } - /** - * ``` - * The tag values used to filter the assets returned, empty for no filter - * ``` - * - * `map tags = 9 [json_name = "tags"];` - */ - @kotlin.jvm.JvmSynthetic - @JvmName("removeTags") - public fun com.google.protobuf.kotlin.DslMap - .remove(key: kotlin.String) { - _builder.removeTags(key) - } - /** - * ``` - * The tag values used to filter the assets returned, empty for no filter - * ``` - * - * `map tags = 9 [json_name = "tags"];` - */ - @kotlin.jvm.JvmSynthetic - @JvmName("putAllTags") - public fun com.google.protobuf.kotlin.DslMap - .putAll(map: kotlin.collections.Map) { - _builder.putAllTags(map) - } - /** - * ``` - * The tag values used to filter the assets returned, empty for no filter - * ``` - * - * `map tags = 9 [json_name = "tags"];` - */ - @kotlin.jvm.JvmSynthetic - @JvmName("clearTags") - public fun com.google.protobuf.kotlin.DslMap - .clear() { - _builder.clearTags() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.project.v1.QueryAssetsRequest.copy(block: com.stabilityai.platformapis.project.v1.QueryAssetsRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.QueryAssetsRequest = - com.stabilityai.platformapis.project.v1.QueryAssetsRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/QueryAssetsResponseKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/QueryAssetsResponseKt.kt deleted file mode 100644 index b4a7fda..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/QueryAssetsResponseKt.kt +++ /dev/null @@ -1,170 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/project/v1/project.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.project.v1; - -@kotlin.jvm.JvmName("-initializequeryAssetsResponse") -public inline fun queryAssetsResponse(block: com.stabilityai.platformapis.project.v1.QueryAssetsResponseKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.QueryAssetsResponse = - com.stabilityai.platformapis.project.v1.QueryAssetsResponseKt.Dsl._create(com.stabilityai.platformapis.project.v1.QueryAssetsResponse.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.project.v1.QueryAssetsResponse` - */ -public object QueryAssetsResponseKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.project.v1.QueryAssetsResponse.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.project.v1.QueryAssetsResponse.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.project.v1.QueryAssetsResponse = _builder.build() - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class AssetsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * ``` - * The assets returned by the query - * ``` - * - * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 1 [json_name = "assets"];` - */ - public val assets: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getAssetsList() - ) - /** - * ``` - * The assets returned by the query - * ``` - * - * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 1 [json_name = "assets"];` - * @param value The assets to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAssets") - public fun com.google.protobuf.kotlin.DslList.add(value: com.stabilityai.platformapis.project.v1.ProjectAsset) { - _builder.addAssets(value) - } - /** - * ``` - * The assets returned by the query - * ``` - * - * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 1 [json_name = "assets"];` - * @param value The assets to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAssets") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.stabilityai.platformapis.project.v1.ProjectAsset) { - add(value) - } - /** - * ``` - * The assets returned by the query - * ``` - * - * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 1 [json_name = "assets"];` - * @param values The assets to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllAssets") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllAssets(values) - } - /** - * ``` - * The assets returned by the query - * ``` - * - * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 1 [json_name = "assets"];` - * @param values The assets to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllAssets") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * ``` - * The assets returned by the query - * ``` - * - * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 1 [json_name = "assets"];` - * @param index The index to set the value at. - * @param value The assets to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setAssets") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.stabilityai.platformapis.project.v1.ProjectAsset) { - _builder.setAssets(index, value) - } - /** - * ``` - * The assets returned by the query - * ``` - * - * `repeated .stabilityai.platformapis.project.v1.ProjectAsset assets = 1 [json_name = "assets"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearAssets") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearAssets() - } - - - /** - * ``` - * The last asset key returned when the results were limited, unset when not limited - * ``` - * - * `optional string last_key = 2 [json_name = "lastKey"];` - */ - public var lastKey: kotlin.String - @JvmName("getLastKey") - get() = _builder.getLastKey() - @JvmName("setLastKey") - set(value) { - _builder.setLastKey(value) - } - /** - * ``` - * The last asset key returned when the results were limited, unset when not limited - * ``` - * - * `optional string last_key = 2 [json_name = "lastKey"];` - */ - public fun clearLastKey() { - _builder.clearLastKey() - } - /** - * ``` - * The last asset key returned when the results were limited, unset when not limited - * ``` - * - * `optional string last_key = 2 [json_name = "lastKey"];` - * @return Whether the lastKey field is set. - */ - public fun hasLastKey(): kotlin.Boolean { - return _builder.hasLastKey() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.project.v1.QueryAssetsResponse.copy(block: com.stabilityai.platformapis.project.v1.QueryAssetsResponseKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.QueryAssetsResponse = - com.stabilityai.platformapis.project.v1.QueryAssetsResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/TagAssetsRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/TagAssetsRequestKt.kt deleted file mode 100644 index d0bf680..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/TagAssetsRequestKt.kt +++ /dev/null @@ -1,278 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/project/v1/project.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.project.v1; - -@kotlin.jvm.JvmName("-initializetagAssetsRequest") -public inline fun tagAssetsRequest(block: com.stabilityai.platformapis.project.v1.TagAssetsRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.TagAssetsRequest = - com.stabilityai.platformapis.project.v1.TagAssetsRequestKt.Dsl._create(com.stabilityai.platformapis.project.v1.TagAssetsRequest.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.project.v1.TagAssetsRequest` - */ -public object TagAssetsRequestKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.project.v1.TagAssetsRequest.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.project.v1.TagAssetsRequest.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.project.v1.TagAssetsRequest = _builder.build() - - /** - * ``` - * ID of the project to request, UUIDv4, empty string uses default project - * ``` - * - * `string id = 1 [json_name = "id"];` - */ - public var id: kotlin.String - @JvmName("getId") - get() = _builder.getId() - @JvmName("setId") - set(value) { - _builder.setId(value) - } - /** - * ``` - * ID of the project to request, UUIDv4, empty string uses default project - * ``` - * - * `string id = 1 [json_name = "id"];` - */ - public fun clearId() { - _builder.clearId() - } - - /** - * ``` - * The ID of the organization owning the assets, unset for default org for user - * ``` - * - * `optional string owner_id = 2 [json_name = "ownerId"];` - */ - public var ownerId: kotlin.String - @JvmName("getOwnerId") - get() = _builder.getOwnerId() - @JvmName("setOwnerId") - set(value) { - _builder.setOwnerId(value) - } - /** - * ``` - * The ID of the organization owning the assets, unset for default org for user - * ``` - * - * `optional string owner_id = 2 [json_name = "ownerId"];` - */ - public fun clearOwnerId() { - _builder.clearOwnerId() - } - /** - * ``` - * The ID of the organization owning the assets, unset for default org for user - * ``` - * - * `optional string owner_id = 2 [json_name = "ownerId"];` - * @return Whether the ownerId field is set. - */ - public fun hasOwnerId(): kotlin.Boolean { - return _builder.hasOwnerId() - } - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class AssetIdsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * ``` - * The IDs of the assets to tag in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @return A list containing the assetIds. - */ - public val assetIds: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getAssetIdsList() - ) - /** - * ``` - * The IDs of the assets to tag in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param value The assetIds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAssetIds") - public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) { - _builder.addAssetIds(value) - } - /** - * ``` - * The IDs of the assets to tag in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param value The assetIds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAssetIds") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) { - add(value) - } - /** - * ``` - * The IDs of the assets to tag in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param values The assetIds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllAssetIds") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllAssetIds(values) - } - /** - * ``` - * The IDs of the assets to tag in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param values The assetIds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllAssetIds") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * ``` - * The IDs of the assets to tag in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param index The index to set the value at. - * @param value The assetIds to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setAssetIds") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) { - _builder.setAssetIds(index, value) - }/** - * ``` - * The IDs of the assets to tag in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearAssetIds") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearAssetIds() - } - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class TagsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * ``` - * The tags to add to the assets - * ``` - * - * `map tags = 4 [json_name = "tags"];` - */ - public val tags: com.google.protobuf.kotlin.DslMap - @kotlin.jvm.JvmSynthetic - @JvmName("getTagsMap") - get() = com.google.protobuf.kotlin.DslMap( - _builder.getTagsMap() - ) - /** - * ``` - * The tags to add to the assets - * ``` - * - * `map tags = 4 [json_name = "tags"];` - */ - @JvmName("putTags") - public fun com.google.protobuf.kotlin.DslMap - .put(key: kotlin.String, value: kotlin.String) { - _builder.putTags(key, value) - } - /** - * ``` - * The tags to add to the assets - * ``` - * - * `map tags = 4 [json_name = "tags"];` - */ - @kotlin.jvm.JvmSynthetic - @JvmName("setTags") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslMap - .set(key: kotlin.String, value: kotlin.String) { - put(key, value) - } - /** - * ``` - * The tags to add to the assets - * ``` - * - * `map tags = 4 [json_name = "tags"];` - */ - @kotlin.jvm.JvmSynthetic - @JvmName("removeTags") - public fun com.google.protobuf.kotlin.DslMap - .remove(key: kotlin.String) { - _builder.removeTags(key) - } - /** - * ``` - * The tags to add to the assets - * ``` - * - * `map tags = 4 [json_name = "tags"];` - */ - @kotlin.jvm.JvmSynthetic - @JvmName("putAllTags") - public fun com.google.protobuf.kotlin.DslMap - .putAll(map: kotlin.collections.Map) { - _builder.putAllTags(map) - } - /** - * ``` - * The tags to add to the assets - * ``` - * - * `map tags = 4 [json_name = "tags"];` - */ - @kotlin.jvm.JvmSynthetic - @JvmName("clearTags") - public fun com.google.protobuf.kotlin.DslMap - .clear() { - _builder.clearTags() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.project.v1.TagAssetsRequest.copy(block: com.stabilityai.platformapis.project.v1.TagAssetsRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.TagAssetsRequest = - com.stabilityai.platformapis.project.v1.TagAssetsRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/TagAssetsResponseKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/TagAssetsResponseKt.kt deleted file mode 100644 index 6899574..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/TagAssetsResponseKt.kt +++ /dev/null @@ -1,182 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/project/v1/project.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.project.v1; - -@kotlin.jvm.JvmName("-initializetagAssetsResponse") -public inline fun tagAssetsResponse(block: com.stabilityai.platformapis.project.v1.TagAssetsResponseKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.TagAssetsResponse = - com.stabilityai.platformapis.project.v1.TagAssetsResponseKt.Dsl._create(com.stabilityai.platformapis.project.v1.TagAssetsResponse.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.project.v1.TagAssetsResponse` - */ -public object TagAssetsResponseKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.project.v1.TagAssetsResponse.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.project.v1.TagAssetsResponse.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.project.v1.TagAssetsResponse = _builder.build() - - /** - * ``` - * ID of the project, UUIDv4 - * ``` - * - * `string id = 1 [json_name = "id"];` - */ - public var id: kotlin.String - @JvmName("getId") - get() = _builder.getId() - @JvmName("setId") - set(value) { - _builder.setId(value) - } - /** - * ``` - * ID of the project, UUIDv4 - * ``` - * - * `string id = 1 [json_name = "id"];` - */ - public fun clearId() { - _builder.clearId() - } - - /** - * ``` - * The ID of the organization owning the project - * ``` - * - * `string owner_id = 2 [json_name = "ownerId"];` - */ - public var ownerId: kotlin.String - @JvmName("getOwnerId") - get() = _builder.getOwnerId() - @JvmName("setOwnerId") - set(value) { - _builder.setOwnerId(value) - } - /** - * ``` - * The ID of the organization owning the project - * ``` - * - * `string owner_id = 2 [json_name = "ownerId"];` - */ - public fun clearOwnerId() { - _builder.clearOwnerId() - } - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class AssetIdsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * ``` - * The IDs of the assets updated in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @return A list containing the assetIds. - */ - public val assetIds: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getAssetIdsList() - ) - /** - * ``` - * The IDs of the assets updated in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param value The assetIds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAssetIds") - public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) { - _builder.addAssetIds(value) - } - /** - * ``` - * The IDs of the assets updated in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param value The assetIds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAssetIds") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) { - add(value) - } - /** - * ``` - * The IDs of the assets updated in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param values The assetIds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllAssetIds") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllAssetIds(values) - } - /** - * ``` - * The IDs of the assets updated in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param values The assetIds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllAssetIds") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * ``` - * The IDs of the assets updated in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param index The index to set the value at. - * @param value The assetIds to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setAssetIds") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) { - _builder.setAssetIds(index, value) - }/** - * ``` - * The IDs of the assets updated in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearAssetIds") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearAssetIds() - }} -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.project.v1.TagAssetsResponse.copy(block: com.stabilityai.platformapis.project.v1.TagAssetsResponseKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.TagAssetsResponse = - com.stabilityai.platformapis.project.v1.TagAssetsResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/UntagAssetsRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/UntagAssetsRequestKt.kt deleted file mode 100644 index b5437d6..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/UntagAssetsRequestKt.kt +++ /dev/null @@ -1,291 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/project/v1/project.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.project.v1; - -@kotlin.jvm.JvmName("-initializeuntagAssetsRequest") -public inline fun untagAssetsRequest(block: com.stabilityai.platformapis.project.v1.UntagAssetsRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.UntagAssetsRequest = - com.stabilityai.platformapis.project.v1.UntagAssetsRequestKt.Dsl._create(com.stabilityai.platformapis.project.v1.UntagAssetsRequest.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.project.v1.UntagAssetsRequest` - */ -public object UntagAssetsRequestKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.project.v1.UntagAssetsRequest.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.project.v1.UntagAssetsRequest.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.project.v1.UntagAssetsRequest = _builder.build() - - /** - * ``` - * ID of the project to request, UUIDv4, empty string uses default project - * ``` - * - * `string id = 1 [json_name = "id"];` - */ - public var id: kotlin.String - @JvmName("getId") - get() = _builder.getId() - @JvmName("setId") - set(value) { - _builder.setId(value) - } - /** - * ``` - * ID of the project to request, UUIDv4, empty string uses default project - * ``` - * - * `string id = 1 [json_name = "id"];` - */ - public fun clearId() { - _builder.clearId() - } - - /** - * ``` - * The ID of the organization owning the assets, unset for default org for user - * ``` - * - * `optional string owner_id = 2 [json_name = "ownerId"];` - */ - public var ownerId: kotlin.String - @JvmName("getOwnerId") - get() = _builder.getOwnerId() - @JvmName("setOwnerId") - set(value) { - _builder.setOwnerId(value) - } - /** - * ``` - * The ID of the organization owning the assets, unset for default org for user - * ``` - * - * `optional string owner_id = 2 [json_name = "ownerId"];` - */ - public fun clearOwnerId() { - _builder.clearOwnerId() - } - /** - * ``` - * The ID of the organization owning the assets, unset for default org for user - * ``` - * - * `optional string owner_id = 2 [json_name = "ownerId"];` - * @return Whether the ownerId field is set. - */ - public fun hasOwnerId(): kotlin.Boolean { - return _builder.hasOwnerId() - } - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class AssetIdsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * ``` - * The IDs of the assets to tag in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @return A list containing the assetIds. - */ - public val assetIds: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getAssetIdsList() - ) - /** - * ``` - * The IDs of the assets to tag in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param value The assetIds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAssetIds") - public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) { - _builder.addAssetIds(value) - } - /** - * ``` - * The IDs of the assets to tag in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param value The assetIds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAssetIds") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) { - add(value) - } - /** - * ``` - * The IDs of the assets to tag in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param values The assetIds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllAssetIds") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllAssetIds(values) - } - /** - * ``` - * The IDs of the assets to tag in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param values The assetIds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllAssetIds") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * ``` - * The IDs of the assets to tag in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param index The index to set the value at. - * @param value The assetIds to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setAssetIds") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) { - _builder.setAssetIds(index, value) - }/** - * ``` - * The IDs of the assets to tag in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearAssetIds") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearAssetIds() - } - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class TagKeysProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * ``` - * The keys of the tags to remove from the assets - * ``` - * - * `repeated string tag_keys = 4 [json_name = "tagKeys"];` - * @return A list containing the tagKeys. - */ - public val tagKeys: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getTagKeysList() - ) - /** - * ``` - * The keys of the tags to remove from the assets - * ``` - * - * `repeated string tag_keys = 4 [json_name = "tagKeys"];` - * @param value The tagKeys to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addTagKeys") - public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) { - _builder.addTagKeys(value) - } - /** - * ``` - * The keys of the tags to remove from the assets - * ``` - * - * `repeated string tag_keys = 4 [json_name = "tagKeys"];` - * @param value The tagKeys to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignTagKeys") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) { - add(value) - } - /** - * ``` - * The keys of the tags to remove from the assets - * ``` - * - * `repeated string tag_keys = 4 [json_name = "tagKeys"];` - * @param values The tagKeys to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllTagKeys") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllTagKeys(values) - } - /** - * ``` - * The keys of the tags to remove from the assets - * ``` - * - * `repeated string tag_keys = 4 [json_name = "tagKeys"];` - * @param values The tagKeys to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllTagKeys") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * ``` - * The keys of the tags to remove from the assets - * ``` - * - * `repeated string tag_keys = 4 [json_name = "tagKeys"];` - * @param index The index to set the value at. - * @param value The tagKeys to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setTagKeys") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) { - _builder.setTagKeys(index, value) - }/** - * ``` - * The keys of the tags to remove from the assets - * ``` - * - * `repeated string tag_keys = 4 [json_name = "tagKeys"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearTagKeys") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearTagKeys() - }} -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.project.v1.UntagAssetsRequest.copy(block: com.stabilityai.platformapis.project.v1.UntagAssetsRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.UntagAssetsRequest = - com.stabilityai.platformapis.project.v1.UntagAssetsRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/UntagAssetsResponseKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/UntagAssetsResponseKt.kt deleted file mode 100644 index f9dd415..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/UntagAssetsResponseKt.kt +++ /dev/null @@ -1,182 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/project/v1/project.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.project.v1; - -@kotlin.jvm.JvmName("-initializeuntagAssetsResponse") -public inline fun untagAssetsResponse(block: com.stabilityai.platformapis.project.v1.UntagAssetsResponseKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.UntagAssetsResponse = - com.stabilityai.platformapis.project.v1.UntagAssetsResponseKt.Dsl._create(com.stabilityai.platformapis.project.v1.UntagAssetsResponse.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.project.v1.UntagAssetsResponse` - */ -public object UntagAssetsResponseKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.project.v1.UntagAssetsResponse.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.project.v1.UntagAssetsResponse.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.project.v1.UntagAssetsResponse = _builder.build() - - /** - * ``` - * ID of the project, UUIDv4 - * ``` - * - * `string id = 1 [json_name = "id"];` - */ - public var id: kotlin.String - @JvmName("getId") - get() = _builder.getId() - @JvmName("setId") - set(value) { - _builder.setId(value) - } - /** - * ``` - * ID of the project, UUIDv4 - * ``` - * - * `string id = 1 [json_name = "id"];` - */ - public fun clearId() { - _builder.clearId() - } - - /** - * ``` - * The ID of the organization owning the project - * ``` - * - * `string owner_id = 2 [json_name = "ownerId"];` - */ - public var ownerId: kotlin.String - @JvmName("getOwnerId") - get() = _builder.getOwnerId() - @JvmName("setOwnerId") - set(value) { - _builder.setOwnerId(value) - } - /** - * ``` - * The ID of the organization owning the project - * ``` - * - * `string owner_id = 2 [json_name = "ownerId"];` - */ - public fun clearOwnerId() { - _builder.clearOwnerId() - } - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class AssetIdsProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * ``` - * The IDs of the assets updated in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @return A list containing the assetIds. - */ - public val assetIds: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getAssetIdsList() - ) - /** - * ``` - * The IDs of the assets updated in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param value The assetIds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAssetIds") - public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) { - _builder.addAssetIds(value) - } - /** - * ``` - * The IDs of the assets updated in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param value The assetIds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAssetIds") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) { - add(value) - } - /** - * ``` - * The IDs of the assets updated in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param values The assetIds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllAssetIds") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllAssetIds(values) - } - /** - * ``` - * The IDs of the assets updated in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param values The assetIds to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllAssetIds") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * ``` - * The IDs of the assets updated in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - * @param index The index to set the value at. - * @param value The assetIds to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setAssetIds") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) { - _builder.setAssetIds(index, value) - }/** - * ``` - * The IDs of the assets updated in the project, UUIDv4, limit 1000 - * ``` - * - * `repeated string asset_ids = 3 [json_name = "assetIds"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearAssetIds") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearAssetIds() - }} -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.project.v1.UntagAssetsResponse.copy(block: com.stabilityai.platformapis.project.v1.UntagAssetsResponseKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.UntagAssetsResponse = - com.stabilityai.platformapis.project.v1.UntagAssetsResponseKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/stabilityai/platformapis/project/v1/UpdateProjectRequestKt.kt b/gen/proto/kt/com/stabilityai/platformapis/project/v1/UpdateProjectRequestKt.kt deleted file mode 100644 index ff24c42..0000000 --- a/gen/proto/kt/com/stabilityai/platformapis/project/v1/UpdateProjectRequestKt.kt +++ /dev/null @@ -1,258 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/platform/project/v1/project.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.stabilityai.platformapis.project.v1; - -@kotlin.jvm.JvmName("-initializeupdateProjectRequest") -public inline fun updateProjectRequest(block: com.stabilityai.platformapis.project.v1.UpdateProjectRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.UpdateProjectRequest = - com.stabilityai.platformapis.project.v1.UpdateProjectRequestKt.Dsl._create(com.stabilityai.platformapis.project.v1.UpdateProjectRequest.newBuilder()).apply { block() }._build() -/** - * Protobuf type `stabilityai.platformapis.project.v1.UpdateProjectRequest` - */ -public object UpdateProjectRequestKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.stabilityai.platformapis.project.v1.UpdateProjectRequest.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.stabilityai.platformapis.project.v1.UpdateProjectRequest.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.stabilityai.platformapis.project.v1.UpdateProjectRequest = _builder.build() - - /** - * ``` - * ID of the project, UUIDv4 - * ``` - * - * `string id = 1 [json_name = "id"];` - */ - public var id: kotlin.String - @JvmName("getId") - get() = _builder.getId() - @JvmName("setId") - set(value) { - _builder.setId(value) - } - /** - * ``` - * ID of the project, UUIDv4 - * ``` - * - * `string id = 1 [json_name = "id"];` - */ - public fun clearId() { - _builder.clearId() - } - - /** - * ``` - * The ID of the organization owning the project, empty for default org for user - * ``` - * - * `optional string owner_id = 2 [json_name = "ownerId"];` - */ - public var ownerId: kotlin.String - @JvmName("getOwnerId") - get() = _builder.getOwnerId() - @JvmName("setOwnerId") - set(value) { - _builder.setOwnerId(value) - } - /** - * ``` - * The ID of the organization owning the project, empty for default org for user - * ``` - * - * `optional string owner_id = 2 [json_name = "ownerId"];` - */ - public fun clearOwnerId() { - _builder.clearOwnerId() - } - /** - * ``` - * The ID of the organization owning the project, empty for default org for user - * ``` - * - * `optional string owner_id = 2 [json_name = "ownerId"];` - * @return Whether the ownerId field is set. - */ - public fun hasOwnerId(): kotlin.Boolean { - return _builder.hasOwnerId() - } - - /** - * ``` - * Title of the project - * ``` - * - * `optional string title = 3 [json_name = "title"];` - */ - public var title: kotlin.String - @JvmName("getTitle") - get() = _builder.getTitle() - @JvmName("setTitle") - set(value) { - _builder.setTitle(value) - } - /** - * ``` - * Title of the project - * ``` - * - * `optional string title = 3 [json_name = "title"];` - */ - public fun clearTitle() { - _builder.clearTitle() - } - /** - * ``` - * Title of the project - * ``` - * - * `optional string title = 3 [json_name = "title"];` - * @return Whether the title field is set. - */ - public fun hasTitle(): kotlin.Boolean { - return _builder.hasTitle() - } - - /** - * ``` - * The access of the project (such as public vs private) - * ``` - * - * `optional .stabilityai.platformapis.project.v1.ProjectAccess access = 4 [json_name = "access"];` - */ - public var access: com.stabilityai.platformapis.project.v1.ProjectAccess - @JvmName("getAccess") - get() = _builder.getAccess() - @JvmName("setAccess") - set(value) { - _builder.setAccess(value) - } - public var accessValue: kotlin.Int - @JvmName("getAccessValue") - get() = _builder.getAccessValue() - @JvmName("setAccessValue") - set(value) { - _builder.setAccessValue(value) - } - /** - * ``` - * The access of the project (such as public vs private) - * ``` - * - * `optional .stabilityai.platformapis.project.v1.ProjectAccess access = 4 [json_name = "access"];` - */ - public fun clearAccess() { - _builder.clearAccess() - } - /** - * ``` - * The access of the project (such as public vs private) - * ``` - * - * `optional .stabilityai.platformapis.project.v1.ProjectAccess access = 4 [json_name = "access"];` - * @return Whether the access field is set. - */ - public fun hasAccess(): kotlin.Boolean { - return _builder.hasAccess() - } - - /** - * ``` - * The status of the project (such as active vs inactive) - * ``` - * - * `optional .stabilityai.platformapis.project.v1.ProjectStatus status = 5 [json_name = "status"];` - */ - public var status: com.stabilityai.platformapis.project.v1.ProjectStatus - @JvmName("getStatus") - get() = _builder.getStatus() - @JvmName("setStatus") - set(value) { - _builder.setStatus(value) - } - public var statusValue: kotlin.Int - @JvmName("getStatusValue") - get() = _builder.getStatusValue() - @JvmName("setStatusValue") - set(value) { - _builder.setStatusValue(value) - } - /** - * ``` - * The status of the project (such as active vs inactive) - * ``` - * - * `optional .stabilityai.platformapis.project.v1.ProjectStatus status = 5 [json_name = "status"];` - */ - public fun clearStatus() { - _builder.clearStatus() - } - /** - * ``` - * The status of the project (such as active vs inactive) - * ``` - * - * `optional .stabilityai.platformapis.project.v1.ProjectStatus status = 5 [json_name = "status"];` - * @return Whether the status field is set. - */ - public fun hasStatus(): kotlin.Boolean { - return _builder.hasStatus() - } - - /** - * ``` - * Project file for the project - * ``` - * - * `optional .stabilityai.platformapis.project.v1.ProjectAsset file = 6 [json_name = "file"];` - */ - public var file: com.stabilityai.platformapis.project.v1.ProjectAsset - @JvmName("getFile") - get() = _builder.getFile() - @JvmName("setFile") - set(value) { - _builder.setFile(value) - } - /** - * ``` - * Project file for the project - * ``` - * - * `optional .stabilityai.platformapis.project.v1.ProjectAsset file = 6 [json_name = "file"];` - */ - public fun clearFile() { - _builder.clearFile() - } - /** - * ``` - * Project file for the project - * ``` - * - * `optional .stabilityai.platformapis.project.v1.ProjectAsset file = 6 [json_name = "file"];` - * @return Whether the file field is set. - */ - public fun hasFile(): kotlin.Boolean { - return _builder.hasFile() - } - public val UpdateProjectRequestKt.Dsl.fileOrNull: com.stabilityai.platformapis.project.v1.ProjectAsset? - get() = _builder.fileOrNull - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.stabilityai.platformapis.project.v1.UpdateProjectRequest.copy(block: com.stabilityai.platformapis.project.v1.UpdateProjectRequestKt.Dsl.() -> kotlin.Unit): com.stabilityai.platformapis.project.v1.UpdateProjectRequest = - com.stabilityai.platformapis.project.v1.UpdateProjectRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() - -public val com.stabilityai.platformapis.project.v1.UpdateProjectRequestOrBuilder.fileOrNull: com.stabilityai.platformapis.project.v1.ProjectAsset? - get() = if (hasFile()) getFile() else null - diff --git a/gen/proto/kt/com/tensors/AttributeKt.kt b/gen/proto/kt/com/tensors/AttributeKt.kt deleted file mode 100644 index f0fa77c..0000000 --- a/gen/proto/kt/com/tensors/AttributeKt.kt +++ /dev/null @@ -1,208 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/tensors/tensors.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.tensors; - -@kotlin.jvm.JvmName("-initializeattribute") -public inline fun attribute(block: com.tensors.AttributeKt.Dsl.() -> kotlin.Unit): com.tensors.Attribute = - com.tensors.AttributeKt.Dsl._create(com.tensors.Attribute.newBuilder()).apply { block() }._build() -/** - * Protobuf type `tensors.Attribute` - */ -public object AttributeKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.tensors.Attribute.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.tensors.Attribute.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.tensors.Attribute = _builder.build() - - /** - * `string name = 1 [json_name = "name"];` - */ - public var name: kotlin.String - @JvmName("getName") - get() = _builder.getName() - @JvmName("setName") - set(value) { - _builder.setName(value) - } - /** - * `string name = 1 [json_name = "name"];` - */ - public fun clearName() { - _builder.clearName() - } - - /** - * `.tensors.Module module = 3 [json_name = "module"];` - */ - public var module: com.tensors.Module - @JvmName("getModule") - get() = _builder.getModule() - @JvmName("setModule") - set(value) { - _builder.setModule(value) - } - /** - * `.tensors.Module module = 3 [json_name = "module"];` - */ - public fun clearModule() { - _builder.clearModule() - } - /** - * `.tensors.Module module = 3 [json_name = "module"];` - * @return Whether the module field is set. - */ - public fun hasModule(): kotlin.Boolean { - return _builder.hasModule() - } - - /** - * `.tensors.Tensor tensor = 4 [json_name = "tensor"];` - */ - public var tensor: com.tensors.Tensor - @JvmName("getTensor") - get() = _builder.getTensor() - @JvmName("setTensor") - set(value) { - _builder.setTensor(value) - } - /** - * `.tensors.Tensor tensor = 4 [json_name = "tensor"];` - */ - public fun clearTensor() { - _builder.clearTensor() - } - /** - * `.tensors.Tensor tensor = 4 [json_name = "tensor"];` - * @return Whether the tensor field is set. - */ - public fun hasTensor(): kotlin.Boolean { - return _builder.hasTensor() - } - - /** - * `string string = 5 [json_name = "string"];` - */ - public var string: kotlin.String - @JvmName("getString") - get() = _builder.getString() - @JvmName("setString") - set(value) { - _builder.setString(value) - } - /** - * `string string = 5 [json_name = "string"];` - */ - public fun clearString() { - _builder.clearString() - } - /** - * `string string = 5 [json_name = "string"];` - * @return Whether the string field is set. - */ - public fun hasString(): kotlin.Boolean { - return _builder.hasString() - } - - /** - * `int64 int64 = 6 [json_name = "int64"];` - */ - public var int64: kotlin.Long - @JvmName("getInt64") - get() = _builder.getInt64() - @JvmName("setInt64") - set(value) { - _builder.setInt64(value) - } - /** - * `int64 int64 = 6 [json_name = "int64"];` - */ - public fun clearInt64() { - _builder.clearInt64() - } - /** - * `int64 int64 = 6 [json_name = "int64"];` - * @return Whether the int64 field is set. - */ - public fun hasInt64(): kotlin.Boolean { - return _builder.hasInt64() - } - - /** - * `float float = 7 [json_name = "float"];` - */ - public var float: kotlin.Float - @JvmName("getFloat") - get() = _builder.getFloat() - @JvmName("setFloat") - set(value) { - _builder.setFloat(value) - } - /** - * `float float = 7 [json_name = "float"];` - */ - public fun clearFloat() { - _builder.clearFloat() - } - /** - * `float float = 7 [json_name = "float"];` - * @return Whether the float field is set. - */ - public fun hasFloat(): kotlin.Boolean { - return _builder.hasFloat() - } - - /** - * `bool bool = 8 [json_name = "bool"];` - */ - public var bool: kotlin.Boolean - @JvmName("getBool") - get() = _builder.getBool() - @JvmName("setBool") - set(value) { - _builder.setBool(value) - } - /** - * `bool bool = 8 [json_name = "bool"];` - */ - public fun clearBool() { - _builder.clearBool() - } - /** - * `bool bool = 8 [json_name = "bool"];` - * @return Whether the bool field is set. - */ - public fun hasBool(): kotlin.Boolean { - return _builder.hasBool() - } - public val valueCase: com.tensors.Attribute.ValueCase - @JvmName("getValueCase") - get() = _builder.getValueCase() - - public fun clearValue() { - _builder.clearValue() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.tensors.Attribute.copy(block: com.tensors.AttributeKt.Dsl.() -> kotlin.Unit): com.tensors.Attribute = - com.tensors.AttributeKt.Dsl._create(this.toBuilder()).apply { block() }._build() - -public val com.tensors.AttributeOrBuilder.moduleOrNull: com.tensors.Module? - get() = if (hasModule()) getModule() else null - -public val com.tensors.AttributeOrBuilder.tensorOrNull: com.tensors.Tensor? - get() = if (hasTensor()) getTensor() else null - diff --git a/gen/proto/kt/com/tensors/ModuleKt.kt b/gen/proto/kt/com/tensors/ModuleKt.kt deleted file mode 100644 index 07358a7..0000000 --- a/gen/proto/kt/com/tensors/ModuleKt.kt +++ /dev/null @@ -1,193 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/tensors/tensors.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.tensors; - -@kotlin.jvm.JvmName("-initializemodule") -public inline fun module(block: com.tensors.ModuleKt.Dsl.() -> kotlin.Unit): com.tensors.Module = - com.tensors.ModuleKt.Dsl._create(com.tensors.Module.newBuilder()).apply { block() }._build() -/** - * Protobuf type `tensors.Module` - */ -public object ModuleKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.tensors.Module.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.tensors.Module.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.tensors.Module = _builder.build() - - /** - * `string name = 1 [json_name = "name"];` - */ - public var name: kotlin.String - @JvmName("getName") - get() = _builder.getName() - @JvmName("setName") - set(value) { - _builder.setName(value) - } - /** - * `string name = 1 [json_name = "name"];` - */ - public fun clearName() { - _builder.clearName() - } - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class NamesProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * `repeated string names = 2 [json_name = "names"];` - * @return A list containing the names. - */ - public val names: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getNamesList() - ) - /** - * `repeated string names = 2 [json_name = "names"];` - * @param value The names to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addNames") - public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) { - _builder.addNames(value) - } - /** - * `repeated string names = 2 [json_name = "names"];` - * @param value The names to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignNames") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) { - add(value) - } - /** - * `repeated string names = 2 [json_name = "names"];` - * @param values The names to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllNames") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllNames(values) - } - /** - * `repeated string names = 2 [json_name = "names"];` - * @param values The names to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllNames") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * `repeated string names = 2 [json_name = "names"];` - * @param index The index to set the value at. - * @param value The names to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setNames") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) { - _builder.setNames(index, value) - }/** - * `repeated string names = 2 [json_name = "names"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearNames") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearNames() - } - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class AttributesProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * `repeated .tensors.Attribute attributes = 3 [json_name = "attributes"];` - */ - public val attributes: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getAttributesList() - ) - /** - * `repeated .tensors.Attribute attributes = 3 [json_name = "attributes"];` - * @param value The attributes to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAttributes") - public fun com.google.protobuf.kotlin.DslList.add(value: com.tensors.Attribute) { - _builder.addAttributes(value) - } - /** - * `repeated .tensors.Attribute attributes = 3 [json_name = "attributes"];` - * @param value The attributes to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAttributes") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: com.tensors.Attribute) { - add(value) - } - /** - * `repeated .tensors.Attribute attributes = 3 [json_name = "attributes"];` - * @param values The attributes to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllAttributes") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllAttributes(values) - } - /** - * `repeated .tensors.Attribute attributes = 3 [json_name = "attributes"];` - * @param values The attributes to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllAttributes") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - } - /** - * `repeated .tensors.Attribute attributes = 3 [json_name = "attributes"];` - * @param index The index to set the value at. - * @param value The attributes to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setAttributes") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: com.tensors.Attribute) { - _builder.setAttributes(index, value) - } - /** - * `repeated .tensors.Attribute attributes = 3 [json_name = "attributes"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearAttributes") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearAttributes() - } - - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.tensors.Module.copy(block: com.tensors.ModuleKt.Dsl.() -> kotlin.Unit): com.tensors.Module = - com.tensors.ModuleKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/tensors/TensorKt.kt b/gen/proto/kt/com/tensors/TensorKt.kt deleted file mode 100644 index 1dd28a2..0000000 --- a/gen/proto/kt/com/tensors/TensorKt.kt +++ /dev/null @@ -1,171 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/tensors/tensors.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.tensors; - -@kotlin.jvm.JvmName("-initializetensor") -public inline fun tensor(block: com.tensors.TensorKt.Dsl.() -> kotlin.Unit): com.tensors.Tensor = - com.tensors.TensorKt.Dsl._create(com.tensors.Tensor.newBuilder()).apply { block() }._build() -/** - * Protobuf type `tensors.Tensor` - */ -public object TensorKt { - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - @com.google.protobuf.kotlin.ProtoDslMarker - public class Dsl private constructor( - private val _builder: com.tensors.Tensor.Builder - ) { - public companion object { - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _create(builder: com.tensors.Tensor.Builder): Dsl = Dsl(builder) - } - - @kotlin.jvm.JvmSynthetic - @kotlin.PublishedApi - internal fun _build(): com.tensors.Tensor = _builder.build() - - /** - * `.tensors.Dtype dtype = 1 [json_name = "dtype"];` - */ - public var dtype: com.tensors.Dtype - @JvmName("getDtype") - get() = _builder.getDtype() - @JvmName("setDtype") - set(value) { - _builder.setDtype(value) - } - public var dtypeValue: kotlin.Int - @JvmName("getDtypeValue") - get() = _builder.getDtypeValue() - @JvmName("setDtypeValue") - set(value) { - _builder.setDtypeValue(value) - } - /** - * `.tensors.Dtype dtype = 1 [json_name = "dtype"];` - */ - public fun clearDtype() { - _builder.clearDtype() - } - - /** - * An uninstantiable, behaviorless type to represent the field in - * generics. - */ - @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) - public class ShapeProxy private constructor() : com.google.protobuf.kotlin.DslProxy() - /** - * `repeated int64 shape = 2 [json_name = "shape"];` - */ - public val shape: com.google.protobuf.kotlin.DslList - @kotlin.jvm.JvmSynthetic - get() = com.google.protobuf.kotlin.DslList( - _builder.getShapeList() - ) - /** - * `repeated int64 shape = 2 [json_name = "shape"];` - * @param value The shape to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addShape") - public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.Long) { - _builder.addShape(value) - }/** - * `repeated int64 shape = 2 [json_name = "shape"];` - * @param value The shape to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignShape") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.Long) { - add(value) - }/** - * `repeated int64 shape = 2 [json_name = "shape"];` - * @param values The shape to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("addAllShape") - public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) { - _builder.addAllShape(values) - }/** - * `repeated int64 shape = 2 [json_name = "shape"];` - * @param values The shape to add. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("plusAssignAllShape") - @Suppress("NOTHING_TO_INLINE") - public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) { - addAll(values) - }/** - * `repeated int64 shape = 2 [json_name = "shape"];` - * @param index The index to set the value at. - * @param value The shape to set. - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("setShape") - public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.Long) { - _builder.setShape(index, value) - }/** - * `repeated int64 shape = 2 [json_name = "shape"];` - */ - @kotlin.jvm.JvmSynthetic - @kotlin.jvm.JvmName("clearShape") - public fun com.google.protobuf.kotlin.DslList.clear() { - _builder.clearShape() - } - /** - * `bytes data = 3 [json_name = "data"];` - */ - public var data: com.google.protobuf.ByteString - @JvmName("getData") - get() = _builder.getData() - @JvmName("setData") - set(value) { - _builder.setData(value) - } - /** - * `bytes data = 3 [json_name = "data"];` - */ - public fun clearData() { - _builder.clearData() - } - - /** - * `optional .tensors.AttributeType attr_type = 4 [json_name = "attrType"];` - */ - public var attrType: com.tensors.AttributeType - @JvmName("getAttrType") - get() = _builder.getAttrType() - @JvmName("setAttrType") - set(value) { - _builder.setAttrType(value) - } - public var attrTypeValue: kotlin.Int - @JvmName("getAttrTypeValue") - get() = _builder.getAttrTypeValue() - @JvmName("setAttrTypeValue") - set(value) { - _builder.setAttrTypeValue(value) - } - /** - * `optional .tensors.AttributeType attr_type = 4 [json_name = "attrType"];` - */ - public fun clearAttrType() { - _builder.clearAttrType() - } - /** - * `optional .tensors.AttributeType attr_type = 4 [json_name = "attrType"];` - * @return Whether the attrType field is set. - */ - public fun hasAttrType(): kotlin.Boolean { - return _builder.hasAttrType() - } - } -} -@kotlin.jvm.JvmSynthetic -public inline fun com.tensors.Tensor.copy(block: com.tensors.TensorKt.Dsl.() -> kotlin.Unit): com.tensors.Tensor = - com.tensors.TensorKt.Dsl._create(this.toBuilder()).apply { block() }._build() - diff --git a/gen/proto/kt/com/tensors/TensorsProtoKt.kt b/gen/proto/kt/com/tensors/TensorsProtoKt.kt deleted file mode 100644 index 9170cad..0000000 --- a/gen/proto/kt/com/tensors/TensorsProtoKt.kt +++ /dev/null @@ -1,7 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stability_api/tensors/tensors.proto - -// Generated files should ignore deprecation warnings -@file:Suppress("DEPRECATION") -package com.tensors; - diff --git a/gen/proto/swift/stability_api/platform/dashboard/v1/dashboard.connect.swift b/gen/proto/swift/stability_api/platform/dashboard/v1/dashboard.connect.swift deleted file mode 100644 index de8d9fd..0000000 --- a/gen/proto/swift/stability_api/platform/dashboard/v1/dashboard.connect.swift +++ /dev/null @@ -1,173 +0,0 @@ -// Code generated by protoc-gen-connect-swift. DO NOT EDIT. -// -// Source: stability_api/platform/dashboard/v1/dashboard.proto -// - -import Connect -import Foundation -import SwiftProtobuf - -internal protocol Stabilityai_Api_Dashboard_V1_DashboardServiceClientInterface { - - /// Get info - @available(iOS 13, *) - func `getMe`(request: Stabilityai_Api_Dashboard_V1_EmptyRequest, headers: Connect.Headers) async -> ResponseMessage - - @available(iOS 13, *) - func `getOrganization`(request: Stabilityai_Api_Dashboard_V1_GetOrganizationRequest, headers: Connect.Headers) async -> ResponseMessage - - @available(iOS 13, *) - func `getMetrics`(request: Stabilityai_Api_Dashboard_V1_GetMetricsRequest, headers: Connect.Headers) async -> ResponseMessage - - /// API key management - @available(iOS 13, *) - func `createApikey`(request: Stabilityai_Api_Dashboard_V1_APIKeyRequest, headers: Connect.Headers) async -> ResponseMessage - - @available(iOS 13, *) - func `deleteApikey`(request: Stabilityai_Api_Dashboard_V1_APIKeyFindRequest, headers: Connect.Headers) async -> ResponseMessage - - /// User settings - @available(iOS 13, *) - func `updateDefaultOrganization`(request: Stabilityai_Api_Dashboard_V1_UpdateDefaultOrganizationRequest, headers: Connect.Headers) async -> ResponseMessage - - @available(iOS 13, *) - func `getClientSettings`(request: Stabilityai_Api_Dashboard_V1_EmptyRequest, headers: Connect.Headers) async -> ResponseMessage - - @available(iOS 13, *) - func `setClientSettings`(request: Stabilityai_Api_Dashboard_V1_ClientSettings, headers: Connect.Headers) async -> ResponseMessage - - @available(iOS 13, *) - func `updateUserInfo`(request: Stabilityai_Api_Dashboard_V1_UpdateUserInfoRequest, headers: Connect.Headers) async -> ResponseMessage - - @available(iOS 13, *) - func `createPasswordChangeTicket`(request: Stabilityai_Api_Dashboard_V1_EmptyRequest, headers: Connect.Headers) async -> ResponseMessage - - @available(iOS 13, *) - func `deleteAccount`(request: Stabilityai_Api_Dashboard_V1_EmptyRequest, headers: Connect.Headers) async -> ResponseMessage - - /// Payment functions - @available(iOS 13, *) - func `createCharge`(request: Stabilityai_Api_Dashboard_V1_CreateChargeRequest, headers: Connect.Headers) async -> ResponseMessage - - @available(iOS 13, *) - func `getCharges`(request: Stabilityai_Api_Dashboard_V1_GetChargesRequest, headers: Connect.Headers) async -> ResponseMessage - - @available(iOS 13, *) - func `createAutoChargeIntent`(request: Stabilityai_Api_Dashboard_V1_CreateAutoChargeIntentRequest, headers: Connect.Headers) async -> ResponseMessage - - @available(iOS 13, *) - func `updateAutoChargeIntent`(request: Stabilityai_Api_Dashboard_V1_CreateAutoChargeIntentRequest, headers: Connect.Headers) async -> ResponseMessage - - @available(iOS 13, *) - func `getAutoChargeIntent`(request: Stabilityai_Api_Dashboard_V1_GetAutoChargeRequest, headers: Connect.Headers) async -> ResponseMessage -} - -/// Concrete implementation of `Stabilityai_Api_Dashboard_V1_DashboardServiceClientInterface`. -internal final class Stabilityai_Api_Dashboard_V1_DashboardServiceClient: Stabilityai_Api_Dashboard_V1_DashboardServiceClientInterface { - private let client: Connect.ProtocolClientInterface - - internal init(client: Connect.ProtocolClientInterface) { - self.client = client - } - - @available(iOS 13, *) - internal func `getMe`(request: Stabilityai_Api_Dashboard_V1_EmptyRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { - return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/GetMe", request: request, headers: headers) - } - - @available(iOS 13, *) - internal func `getOrganization`(request: Stabilityai_Api_Dashboard_V1_GetOrganizationRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { - return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/GetOrganization", request: request, headers: headers) - } - - @available(iOS 13, *) - internal func `getMetrics`(request: Stabilityai_Api_Dashboard_V1_GetMetricsRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { - return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/GetMetrics", request: request, headers: headers) - } - - @available(iOS 13, *) - internal func `createApikey`(request: Stabilityai_Api_Dashboard_V1_APIKeyRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { - return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/CreateAPIKey", request: request, headers: headers) - } - - @available(iOS 13, *) - internal func `deleteApikey`(request: Stabilityai_Api_Dashboard_V1_APIKeyFindRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { - return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/DeleteAPIKey", request: request, headers: headers) - } - - @available(iOS 13, *) - internal func `updateDefaultOrganization`(request: Stabilityai_Api_Dashboard_V1_UpdateDefaultOrganizationRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { - return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/UpdateDefaultOrganization", request: request, headers: headers) - } - - @available(iOS 13, *) - internal func `getClientSettings`(request: Stabilityai_Api_Dashboard_V1_EmptyRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { - return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/GetClientSettings", request: request, headers: headers) - } - - @available(iOS 13, *) - internal func `setClientSettings`(request: Stabilityai_Api_Dashboard_V1_ClientSettings, headers: Connect.Headers = [:]) async -> ResponseMessage { - return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/SetClientSettings", request: request, headers: headers) - } - - @available(iOS 13, *) - internal func `updateUserInfo`(request: Stabilityai_Api_Dashboard_V1_UpdateUserInfoRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { - return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/UpdateUserInfo", request: request, headers: headers) - } - - @available(iOS 13, *) - internal func `createPasswordChangeTicket`(request: Stabilityai_Api_Dashboard_V1_EmptyRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { - return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/CreatePasswordChangeTicket", request: request, headers: headers) - } - - @available(iOS 13, *) - internal func `deleteAccount`(request: Stabilityai_Api_Dashboard_V1_EmptyRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { - return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/DeleteAccount", request: request, headers: headers) - } - - @available(iOS 13, *) - internal func `createCharge`(request: Stabilityai_Api_Dashboard_V1_CreateChargeRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { - return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/CreateCharge", request: request, headers: headers) - } - - @available(iOS 13, *) - internal func `getCharges`(request: Stabilityai_Api_Dashboard_V1_GetChargesRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { - return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/GetCharges", request: request, headers: headers) - } - - @available(iOS 13, *) - internal func `createAutoChargeIntent`(request: Stabilityai_Api_Dashboard_V1_CreateAutoChargeIntentRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { - return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/CreateAutoChargeIntent", request: request, headers: headers) - } - - @available(iOS 13, *) - internal func `updateAutoChargeIntent`(request: Stabilityai_Api_Dashboard_V1_CreateAutoChargeIntentRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { - return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/UpdateAutoChargeIntent", request: request, headers: headers) - } - - @available(iOS 13, *) - internal func `getAutoChargeIntent`(request: Stabilityai_Api_Dashboard_V1_GetAutoChargeRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { - return await self.client.unary(path: "stabilityai.api.dashboard.v1.DashboardService/GetAutoChargeIntent", request: request, headers: headers) - } - - internal enum Metadata { - internal enum Methods { - internal static let getMe = Connect.MethodSpec(name: "GetMe", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) - internal static let getOrganization = Connect.MethodSpec(name: "GetOrganization", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) - internal static let getMetrics = Connect.MethodSpec(name: "GetMetrics", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) - internal static let createApikey = Connect.MethodSpec(name: "CreateAPIKey", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) - internal static let deleteApikey = Connect.MethodSpec(name: "DeleteAPIKey", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) - internal static let updateDefaultOrganization = Connect.MethodSpec(name: "UpdateDefaultOrganization", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) - internal static let getClientSettings = Connect.MethodSpec(name: "GetClientSettings", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) - internal static let setClientSettings = Connect.MethodSpec(name: "SetClientSettings", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) - internal static let updateUserInfo = Connect.MethodSpec(name: "UpdateUserInfo", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) - internal static let createPasswordChangeTicket = Connect.MethodSpec(name: "CreatePasswordChangeTicket", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) - internal static let deleteAccount = Connect.MethodSpec(name: "DeleteAccount", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) - internal static let createCharge = Connect.MethodSpec(name: "CreateCharge", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) - internal static let getCharges = Connect.MethodSpec(name: "GetCharges", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) - internal static let createAutoChargeIntent = Connect.MethodSpec(name: "CreateAutoChargeIntent", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) - internal static let updateAutoChargeIntent = Connect.MethodSpec(name: "UpdateAutoChargeIntent", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) - internal static let getAutoChargeIntent = Connect.MethodSpec(name: "GetAutoChargeIntent", service: "stabilityai.api.dashboard.v1.DashboardService", type: .unary) - } - } -} diff --git a/gen/proto/swift/stability_api/platform/dashboard/v1/dashboard.pb.swift b/gen/proto/swift/stability_api/platform/dashboard/v1/dashboard.pb.swift deleted file mode 100644 index c94a341..0000000 --- a/gen/proto/swift/stability_api/platform/dashboard/v1/dashboard.pb.swift +++ /dev/null @@ -1,1953 +0,0 @@ -// DO NOT EDIT. -// swift-format-ignore-file -// -// Generated by the Swift generator plugin for the protocol buffer compiler. -// Source: stability_api/platform/dashboard/v1/dashboard.proto -// -// For information on using the generated types, please see the documentation: -// https://github.com/apple/swift-protobuf/ - -import Foundation -import SwiftProtobuf - -// If the compiler emits an error on this type, it is because this file -// was generated by a version of the `protoc` Swift plug-in that is -// incompatible with the version of SwiftProtobuf to which you are linking. -// Please ensure that you are building against the same version of the API -// that was used to generate this file. -fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck { - struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {} - typealias Version = _2 -} - -enum Stabilityai_Api_Dashboard_V1_OrganizationRole: SwiftProtobuf.Enum { - typealias RawValue = Int - case member // = 0 - case accountant // = 1 - case owner // = 2 - case UNRECOGNIZED(Int) - - init() { - self = .member - } - - init?(rawValue: Int) { - switch rawValue { - case 0: self = .member - case 1: self = .accountant - case 2: self = .owner - default: self = .UNRECOGNIZED(rawValue) - } - } - - var rawValue: Int { - switch self { - case .member: return 0 - case .accountant: return 1 - case .owner: return 2 - case .UNRECOGNIZED(let i): return i - } - } - -} - -#if swift(>=4.2) - -extension Stabilityai_Api_Dashboard_V1_OrganizationRole: CaseIterable { - // The compiler won't synthesize support with the UNRECOGNIZED case. - static var allCases: [Stabilityai_Api_Dashboard_V1_OrganizationRole] = [ - .member, - .accountant, - .owner, - ] -} - -#endif // swift(>=4.2) - -struct Stabilityai_Api_Dashboard_V1_OrganizationMember { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var organization: Stabilityai_Api_Dashboard_V1_Organization { - get {return _storage._organization ?? Stabilityai_Api_Dashboard_V1_Organization()} - set {_uniqueStorage()._organization = newValue} - } - /// Returns true if `organization` has been explicitly set. - var hasOrganization: Bool {return _storage._organization != nil} - /// Clears the value of `organization`. Subsequent reads from it will return its default value. - mutating func clearOrganization() {_uniqueStorage()._organization = nil} - - var user: Stabilityai_Api_Dashboard_V1_User { - get {return _storage._user ?? Stabilityai_Api_Dashboard_V1_User()} - set {_uniqueStorage()._user = newValue} - } - /// Returns true if `user` has been explicitly set. - var hasUser: Bool {return _storage._user != nil} - /// Clears the value of `user`. Subsequent reads from it will return its default value. - mutating func clearUser() {_uniqueStorage()._user = nil} - - var role: Stabilityai_Api_Dashboard_V1_OrganizationRole { - get {return _storage._role} - set {_uniqueStorage()._role = newValue} - } - - var isDefault: Bool { - get {return _storage._isDefault} - set {_uniqueStorage()._isDefault = newValue} - } - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _storage = _StorageClass.defaultInstance -} - -struct Stabilityai_Api_Dashboard_V1_OrganizationGrant { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var amountGranted: Double = 0 - - var amountUsed: Double = 0 - - var expiresAt: UInt64 = 0 - - var grantedAt: UInt64 = 0 - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -struct Stabilityai_Api_Dashboard_V1_OrganizationPaymentInfo { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var balance: Double = 0 - - var grants: [Stabilityai_Api_Dashboard_V1_OrganizationGrant] = [] - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -struct Stabilityai_Api_Dashboard_V1_OrganizationAutoCharge { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var enabled: Bool = false - - var id: String = String() - - var createdAt: UInt64 = 0 - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -struct Stabilityai_Api_Dashboard_V1_Organization { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var id: String = String() - - var name: String = String() - - var description_p: String = String() - - var members: [Stabilityai_Api_Dashboard_V1_OrganizationMember] = [] - - var paymentInfo: Stabilityai_Api_Dashboard_V1_OrganizationPaymentInfo { - get {return _paymentInfo ?? Stabilityai_Api_Dashboard_V1_OrganizationPaymentInfo()} - set {_paymentInfo = newValue} - } - /// Returns true if `paymentInfo` has been explicitly set. - var hasPaymentInfo: Bool {return self._paymentInfo != nil} - /// Clears the value of `paymentInfo`. Subsequent reads from it will return its default value. - mutating func clearPaymentInfo() {self._paymentInfo = nil} - - var stripeCustomerID: String { - get {return _stripeCustomerID ?? String()} - set {_stripeCustomerID = newValue} - } - /// Returns true if `stripeCustomerID` has been explicitly set. - var hasStripeCustomerID: Bool {return self._stripeCustomerID != nil} - /// Clears the value of `stripeCustomerID`. Subsequent reads from it will return its default value. - mutating func clearStripeCustomerID() {self._stripeCustomerID = nil} - - var autoCharge: Stabilityai_Api_Dashboard_V1_OrganizationAutoCharge { - get {return _autoCharge ?? Stabilityai_Api_Dashboard_V1_OrganizationAutoCharge()} - set {_autoCharge = newValue} - } - /// Returns true if `autoCharge` has been explicitly set. - var hasAutoCharge: Bool {return self._autoCharge != nil} - /// Clears the value of `autoCharge`. Subsequent reads from it will return its default value. - mutating func clearAutoCharge() {self._autoCharge = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _paymentInfo: Stabilityai_Api_Dashboard_V1_OrganizationPaymentInfo? = nil - fileprivate var _stripeCustomerID: String? = nil - fileprivate var _autoCharge: Stabilityai_Api_Dashboard_V1_OrganizationAutoCharge? = nil -} - -struct Stabilityai_Api_Dashboard_V1_APIKey { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var key: String = String() - - var isSecret: Bool = false - - var createdAt: UInt64 = 0 - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -struct Stabilityai_Api_Dashboard_V1_User { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var id: String = String() - - var authID: String { - get {return _authID ?? String()} - set {_authID = newValue} - } - /// Returns true if `authID` has been explicitly set. - var hasAuthID: Bool {return self._authID != nil} - /// Clears the value of `authID`. Subsequent reads from it will return its default value. - mutating func clearAuthID() {self._authID = nil} - - var profilePicture: String = String() - - var email: String = String() - - var organizations: [Stabilityai_Api_Dashboard_V1_OrganizationMember] = [] - - var apiKeys: [Stabilityai_Api_Dashboard_V1_APIKey] = [] - - var createdAt: UInt64 = 0 - - var emailVerified: Bool { - get {return _emailVerified ?? false} - set {_emailVerified = newValue} - } - /// Returns true if `emailVerified` has been explicitly set. - var hasEmailVerified: Bool {return self._emailVerified != nil} - /// Clears the value of `emailVerified`. Subsequent reads from it will return its default value. - mutating func clearEmailVerified() {self._emailVerified = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _authID: String? = nil - fileprivate var _emailVerified: Bool? = nil -} - -struct Stabilityai_Api_Dashboard_V1_CostData { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var amountTokens: UInt32 = 0 - - var amountCredits: Double = 0 - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -struct Stabilityai_Api_Dashboard_V1_UsageMetric { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var operation: String = String() - - var engine: String = String() - - var inputCost: Stabilityai_Api_Dashboard_V1_CostData { - get {return _inputCost ?? Stabilityai_Api_Dashboard_V1_CostData()} - set {_inputCost = newValue} - } - /// Returns true if `inputCost` has been explicitly set. - var hasInputCost: Bool {return self._inputCost != nil} - /// Clears the value of `inputCost`. Subsequent reads from it will return its default value. - mutating func clearInputCost() {self._inputCost = nil} - - var outputCost: Stabilityai_Api_Dashboard_V1_CostData { - get {return _outputCost ?? Stabilityai_Api_Dashboard_V1_CostData()} - set {_outputCost = newValue} - } - /// Returns true if `outputCost` has been explicitly set. - var hasOutputCost: Bool {return self._outputCost != nil} - /// Clears the value of `outputCost`. Subsequent reads from it will return its default value. - mutating func clearOutputCost() {self._outputCost = nil} - - var user: String { - get {return _user ?? String()} - set {_user = newValue} - } - /// Returns true if `user` has been explicitly set. - var hasUser: Bool {return self._user != nil} - /// Clears the value of `user`. Subsequent reads from it will return its default value. - mutating func clearUser() {self._user = nil} - - var aggregationTimestamp: UInt64 = 0 - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _inputCost: Stabilityai_Api_Dashboard_V1_CostData? = nil - fileprivate var _outputCost: Stabilityai_Api_Dashboard_V1_CostData? = nil - fileprivate var _user: String? = nil -} - -struct Stabilityai_Api_Dashboard_V1_CostTotal { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var amountTokens: UInt32 = 0 - - var amountCredits: Double = 0 - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -struct Stabilityai_Api_Dashboard_V1_TotalMetricsData { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var inputTotal: Stabilityai_Api_Dashboard_V1_CostTotal { - get {return _inputTotal ?? Stabilityai_Api_Dashboard_V1_CostTotal()} - set {_inputTotal = newValue} - } - /// Returns true if `inputTotal` has been explicitly set. - var hasInputTotal: Bool {return self._inputTotal != nil} - /// Clears the value of `inputTotal`. Subsequent reads from it will return its default value. - mutating func clearInputTotal() {self._inputTotal = nil} - - var outputTotal: Stabilityai_Api_Dashboard_V1_CostTotal { - get {return _outputTotal ?? Stabilityai_Api_Dashboard_V1_CostTotal()} - set {_outputTotal = newValue} - } - /// Returns true if `outputTotal` has been explicitly set. - var hasOutputTotal: Bool {return self._outputTotal != nil} - /// Clears the value of `outputTotal`. Subsequent reads from it will return its default value. - mutating func clearOutputTotal() {self._outputTotal = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _inputTotal: Stabilityai_Api_Dashboard_V1_CostTotal? = nil - fileprivate var _outputTotal: Stabilityai_Api_Dashboard_V1_CostTotal? = nil -} - -struct Stabilityai_Api_Dashboard_V1_Metrics { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var metrics: [Stabilityai_Api_Dashboard_V1_UsageMetric] = [] - - var total: Stabilityai_Api_Dashboard_V1_TotalMetricsData { - get {return _total ?? Stabilityai_Api_Dashboard_V1_TotalMetricsData()} - set {_total = newValue} - } - /// Returns true if `total` has been explicitly set. - var hasTotal: Bool {return self._total != nil} - /// Clears the value of `total`. Subsequent reads from it will return its default value. - mutating func clearTotal() {self._total = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _total: Stabilityai_Api_Dashboard_V1_TotalMetricsData? = nil -} - -struct Stabilityai_Api_Dashboard_V1_EmptyRequest { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -struct Stabilityai_Api_Dashboard_V1_GetOrganizationRequest { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var id: String = String() - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -struct Stabilityai_Api_Dashboard_V1_GetMetricsRequest { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var organizationID: String = String() - - var userID: String { - get {return _userID ?? String()} - set {_userID = newValue} - } - /// Returns true if `userID` has been explicitly set. - var hasUserID: Bool {return self._userID != nil} - /// Clears the value of `userID`. Subsequent reads from it will return its default value. - mutating func clearUserID() {self._userID = nil} - - var rangeFrom: UInt64 = 0 - - var rangeTo: UInt64 = 0 - - var includePerRequestMetrics: Bool = false - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _userID: String? = nil -} - -struct Stabilityai_Api_Dashboard_V1_APIKeyRequest { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var isSecret: Bool = false - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -struct Stabilityai_Api_Dashboard_V1_APIKeyFindRequest { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var id: String = String() - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -struct Stabilityai_Api_Dashboard_V1_UpdateDefaultOrganizationRequest { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var organizationID: String = String() - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -struct Stabilityai_Api_Dashboard_V1_ClientSettings { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var settings: Data = Data() - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -struct Stabilityai_Api_Dashboard_V1_CreateAutoChargeIntentRequest { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var organizationID: String = String() - - var monthlyMaximum: UInt64 = 0 - - var minimumValue: UInt64 = 0 - - var amountCredits: UInt64 = 0 - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -struct Stabilityai_Api_Dashboard_V1_CreateChargeRequest { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var amount: UInt64 = 0 - - var organizationID: String = String() - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -struct Stabilityai_Api_Dashboard_V1_GetChargesRequest { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var organizationID: String = String() - - var rangeFrom: UInt64 = 0 - - var rangeTo: UInt64 = 0 - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -struct Stabilityai_Api_Dashboard_V1_Charge { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var id: String = String() - - var paid: Bool = false - - var receiptLink: String = String() - - var paymentLink: String = String() - - var createdAt: UInt64 = 0 - - var amountCredits: UInt64 = 0 - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -struct Stabilityai_Api_Dashboard_V1_Charges { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var charges: [Stabilityai_Api_Dashboard_V1_Charge] = [] - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -struct Stabilityai_Api_Dashboard_V1_GetAutoChargeRequest { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var organizationID: String = String() - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -struct Stabilityai_Api_Dashboard_V1_AutoChargeIntent { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var id: String = String() - - var paymentLink: String = String() - - var createdAt: UInt64 = 0 - - var monthlyMaximum: UInt64 = 0 - - var minimumValue: UInt64 = 0 - - var amountCredits: UInt64 = 0 - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -struct Stabilityai_Api_Dashboard_V1_UpdateUserInfoRequest { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var email: String { - get {return _email ?? String()} - set {_email = newValue} - } - /// Returns true if `email` has been explicitly set. - var hasEmail: Bool {return self._email != nil} - /// Clears the value of `email`. Subsequent reads from it will return its default value. - mutating func clearEmail() {self._email = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _email: String? = nil -} - -struct Stabilityai_Api_Dashboard_V1_UserPasswordChangeTicket { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var ticket: String = String() - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -#if swift(>=5.5) && canImport(_Concurrency) -extension Stabilityai_Api_Dashboard_V1_OrganizationRole: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_OrganizationMember: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_OrganizationGrant: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_OrganizationPaymentInfo: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_OrganizationAutoCharge: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_Organization: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_APIKey: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_User: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_CostData: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_UsageMetric: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_CostTotal: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_TotalMetricsData: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_Metrics: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_EmptyRequest: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_GetOrganizationRequest: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_GetMetricsRequest: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_APIKeyRequest: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_APIKeyFindRequest: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_UpdateDefaultOrganizationRequest: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_ClientSettings: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_CreateAutoChargeIntentRequest: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_CreateChargeRequest: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_GetChargesRequest: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_Charge: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_Charges: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_GetAutoChargeRequest: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_AutoChargeIntent: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_UpdateUserInfoRequest: @unchecked Sendable {} -extension Stabilityai_Api_Dashboard_V1_UserPasswordChangeTicket: @unchecked Sendable {} -#endif // swift(>=5.5) && canImport(_Concurrency) - -// MARK: - Code below here is support for the SwiftProtobuf runtime. - -fileprivate let _protobuf_package = "stabilityai.api.dashboard.v1" - -extension Stabilityai_Api_Dashboard_V1_OrganizationRole: SwiftProtobuf._ProtoNameProviding { - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "MEMBER"), - 1: .same(proto: "ACCOUNTANT"), - 2: .same(proto: "OWNER"), - ] -} - -extension Stabilityai_Api_Dashboard_V1_OrganizationMember: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".OrganizationMember" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "organization"), - 2: .same(proto: "user"), - 3: .same(proto: "role"), - 4: .standard(proto: "is_default"), - ] - - fileprivate class _StorageClass { - var _organization: Stabilityai_Api_Dashboard_V1_Organization? = nil - var _user: Stabilityai_Api_Dashboard_V1_User? = nil - var _role: Stabilityai_Api_Dashboard_V1_OrganizationRole = .member - var _isDefault: Bool = false - - static let defaultInstance = _StorageClass() - - private init() {} - - init(copying source: _StorageClass) { - _organization = source._organization - _user = source._user - _role = source._role - _isDefault = source._isDefault - } - } - - fileprivate mutating func _uniqueStorage() -> _StorageClass { - if !isKnownUniquelyReferenced(&_storage) { - _storage = _StorageClass(copying: _storage) - } - return _storage - } - - mutating func decodeMessage(decoder: inout D) throws { - _ = _uniqueStorage() - try withExtendedLifetime(_storage) { (_storage: _StorageClass) in - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularMessageField(value: &_storage._organization) }() - case 2: try { try decoder.decodeSingularMessageField(value: &_storage._user) }() - case 3: try { try decoder.decodeSingularEnumField(value: &_storage._role) }() - case 4: try { try decoder.decodeSingularBoolField(value: &_storage._isDefault) }() - default: break - } - } - } - } - - func traverse(visitor: inout V) throws { - try withExtendedLifetime(_storage) { (_storage: _StorageClass) in - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - try { if let v = _storage._organization { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - try { if let v = _storage._user { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - if _storage._role != .member { - try visitor.visitSingularEnumField(value: _storage._role, fieldNumber: 3) - } - if _storage._isDefault != false { - try visitor.visitSingularBoolField(value: _storage._isDefault, fieldNumber: 4) - } - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_OrganizationMember, rhs: Stabilityai_Api_Dashboard_V1_OrganizationMember) -> Bool { - if lhs._storage !== rhs._storage { - let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in - let _storage = _args.0 - let rhs_storage = _args.1 - if _storage._organization != rhs_storage._organization {return false} - if _storage._user != rhs_storage._user {return false} - if _storage._role != rhs_storage._role {return false} - if _storage._isDefault != rhs_storage._isDefault {return false} - return true - } - if !storagesAreEqual {return false} - } - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Api_Dashboard_V1_OrganizationGrant: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".OrganizationGrant" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "amount_granted"), - 2: .standard(proto: "amount_used"), - 3: .standard(proto: "expires_at"), - 4: .standard(proto: "granted_at"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularDoubleField(value: &self.amountGranted) }() - case 2: try { try decoder.decodeSingularDoubleField(value: &self.amountUsed) }() - case 3: try { try decoder.decodeSingularUInt64Field(value: &self.expiresAt) }() - case 4: try { try decoder.decodeSingularUInt64Field(value: &self.grantedAt) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if self.amountGranted != 0 { - try visitor.visitSingularDoubleField(value: self.amountGranted, fieldNumber: 1) - } - if self.amountUsed != 0 { - try visitor.visitSingularDoubleField(value: self.amountUsed, fieldNumber: 2) - } - if self.expiresAt != 0 { - try visitor.visitSingularUInt64Field(value: self.expiresAt, fieldNumber: 3) - } - if self.grantedAt != 0 { - try visitor.visitSingularUInt64Field(value: self.grantedAt, fieldNumber: 4) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_OrganizationGrant, rhs: Stabilityai_Api_Dashboard_V1_OrganizationGrant) -> Bool { - if lhs.amountGranted != rhs.amountGranted {return false} - if lhs.amountUsed != rhs.amountUsed {return false} - if lhs.expiresAt != rhs.expiresAt {return false} - if lhs.grantedAt != rhs.grantedAt {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Api_Dashboard_V1_OrganizationPaymentInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".OrganizationPaymentInfo" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "balance"), - 2: .same(proto: "grants"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularDoubleField(value: &self.balance) }() - case 2: try { try decoder.decodeRepeatedMessageField(value: &self.grants) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if self.balance != 0 { - try visitor.visitSingularDoubleField(value: self.balance, fieldNumber: 1) - } - if !self.grants.isEmpty { - try visitor.visitRepeatedMessageField(value: self.grants, fieldNumber: 2) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_OrganizationPaymentInfo, rhs: Stabilityai_Api_Dashboard_V1_OrganizationPaymentInfo) -> Bool { - if lhs.balance != rhs.balance {return false} - if lhs.grants != rhs.grants {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Api_Dashboard_V1_OrganizationAutoCharge: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".OrganizationAutoCharge" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "enabled"), - 2: .same(proto: "id"), - 3: .standard(proto: "created_at"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularBoolField(value: &self.enabled) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.id) }() - case 3: try { try decoder.decodeSingularUInt64Field(value: &self.createdAt) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if self.enabled != false { - try visitor.visitSingularBoolField(value: self.enabled, fieldNumber: 1) - } - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 2) - } - if self.createdAt != 0 { - try visitor.visitSingularUInt64Field(value: self.createdAt, fieldNumber: 3) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_OrganizationAutoCharge, rhs: Stabilityai_Api_Dashboard_V1_OrganizationAutoCharge) -> Bool { - if lhs.enabled != rhs.enabled {return false} - if lhs.id != rhs.id {return false} - if lhs.createdAt != rhs.createdAt {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Api_Dashboard_V1_Organization: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".Organization" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .same(proto: "name"), - 3: .same(proto: "description"), - 4: .same(proto: "members"), - 5: .standard(proto: "payment_info"), - 6: .standard(proto: "stripe_customer_id"), - 7: .standard(proto: "auto_charge"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.name) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.description_p) }() - case 4: try { try decoder.decodeRepeatedMessageField(value: &self.members) }() - case 5: try { try decoder.decodeSingularMessageField(value: &self._paymentInfo) }() - case 6: try { try decoder.decodeSingularStringField(value: &self._stripeCustomerID) }() - case 7: try { try decoder.decodeSingularMessageField(value: &self._autoCharge) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - if !self.name.isEmpty { - try visitor.visitSingularStringField(value: self.name, fieldNumber: 2) - } - if !self.description_p.isEmpty { - try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 3) - } - if !self.members.isEmpty { - try visitor.visitRepeatedMessageField(value: self.members, fieldNumber: 4) - } - try { if let v = self._paymentInfo { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() - try { if let v = self._stripeCustomerID { - try visitor.visitSingularStringField(value: v, fieldNumber: 6) - } }() - try { if let v = self._autoCharge { - try visitor.visitSingularMessageField(value: v, fieldNumber: 7) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_Organization, rhs: Stabilityai_Api_Dashboard_V1_Organization) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.name != rhs.name {return false} - if lhs.description_p != rhs.description_p {return false} - if lhs.members != rhs.members {return false} - if lhs._paymentInfo != rhs._paymentInfo {return false} - if lhs._stripeCustomerID != rhs._stripeCustomerID {return false} - if lhs._autoCharge != rhs._autoCharge {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Api_Dashboard_V1_APIKey: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".APIKey" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "key"), - 2: .standard(proto: "is_secret"), - 3: .standard(proto: "created_at"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.key) }() - case 2: try { try decoder.decodeSingularBoolField(value: &self.isSecret) }() - case 3: try { try decoder.decodeSingularUInt64Field(value: &self.createdAt) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if !self.key.isEmpty { - try visitor.visitSingularStringField(value: self.key, fieldNumber: 1) - } - if self.isSecret != false { - try visitor.visitSingularBoolField(value: self.isSecret, fieldNumber: 2) - } - if self.createdAt != 0 { - try visitor.visitSingularUInt64Field(value: self.createdAt, fieldNumber: 3) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_APIKey, rhs: Stabilityai_Api_Dashboard_V1_APIKey) -> Bool { - if lhs.key != rhs.key {return false} - if lhs.isSecret != rhs.isSecret {return false} - if lhs.createdAt != rhs.createdAt {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Api_Dashboard_V1_User: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".User" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "auth_id"), - 3: .standard(proto: "profile_picture"), - 4: .same(proto: "email"), - 5: .same(proto: "organizations"), - 7: .standard(proto: "api_keys"), - 8: .standard(proto: "created_at"), - 9: .standard(proto: "email_verified"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self._authID) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.profilePicture) }() - case 4: try { try decoder.decodeSingularStringField(value: &self.email) }() - case 5: try { try decoder.decodeRepeatedMessageField(value: &self.organizations) }() - case 7: try { try decoder.decodeRepeatedMessageField(value: &self.apiKeys) }() - case 8: try { try decoder.decodeSingularUInt64Field(value: &self.createdAt) }() - case 9: try { try decoder.decodeSingularBoolField(value: &self._emailVerified) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - try { if let v = self._authID { - try visitor.visitSingularStringField(value: v, fieldNumber: 2) - } }() - if !self.profilePicture.isEmpty { - try visitor.visitSingularStringField(value: self.profilePicture, fieldNumber: 3) - } - if !self.email.isEmpty { - try visitor.visitSingularStringField(value: self.email, fieldNumber: 4) - } - if !self.organizations.isEmpty { - try visitor.visitRepeatedMessageField(value: self.organizations, fieldNumber: 5) - } - if !self.apiKeys.isEmpty { - try visitor.visitRepeatedMessageField(value: self.apiKeys, fieldNumber: 7) - } - if self.createdAt != 0 { - try visitor.visitSingularUInt64Field(value: self.createdAt, fieldNumber: 8) - } - try { if let v = self._emailVerified { - try visitor.visitSingularBoolField(value: v, fieldNumber: 9) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_User, rhs: Stabilityai_Api_Dashboard_V1_User) -> Bool { - if lhs.id != rhs.id {return false} - if lhs._authID != rhs._authID {return false} - if lhs.profilePicture != rhs.profilePicture {return false} - if lhs.email != rhs.email {return false} - if lhs.organizations != rhs.organizations {return false} - if lhs.apiKeys != rhs.apiKeys {return false} - if lhs.createdAt != rhs.createdAt {return false} - if lhs._emailVerified != rhs._emailVerified {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Api_Dashboard_V1_CostData: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".CostData" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "amount_tokens"), - 2: .standard(proto: "amount_credits"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularUInt32Field(value: &self.amountTokens) }() - case 2: try { try decoder.decodeSingularDoubleField(value: &self.amountCredits) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if self.amountTokens != 0 { - try visitor.visitSingularUInt32Field(value: self.amountTokens, fieldNumber: 1) - } - if self.amountCredits != 0 { - try visitor.visitSingularDoubleField(value: self.amountCredits, fieldNumber: 2) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_CostData, rhs: Stabilityai_Api_Dashboard_V1_CostData) -> Bool { - if lhs.amountTokens != rhs.amountTokens {return false} - if lhs.amountCredits != rhs.amountCredits {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Api_Dashboard_V1_UsageMetric: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".UsageMetric" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "operation"), - 2: .same(proto: "engine"), - 3: .standard(proto: "input_cost"), - 4: .standard(proto: "output_cost"), - 5: .same(proto: "user"), - 6: .standard(proto: "aggregation_timestamp"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.operation) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.engine) }() - case 3: try { try decoder.decodeSingularMessageField(value: &self._inputCost) }() - case 4: try { try decoder.decodeSingularMessageField(value: &self._outputCost) }() - case 5: try { try decoder.decodeSingularStringField(value: &self._user) }() - case 6: try { try decoder.decodeSingularUInt64Field(value: &self.aggregationTimestamp) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !self.operation.isEmpty { - try visitor.visitSingularStringField(value: self.operation, fieldNumber: 1) - } - if !self.engine.isEmpty { - try visitor.visitSingularStringField(value: self.engine, fieldNumber: 2) - } - try { if let v = self._inputCost { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - try { if let v = self._outputCost { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - } }() - try { if let v = self._user { - try visitor.visitSingularStringField(value: v, fieldNumber: 5) - } }() - if self.aggregationTimestamp != 0 { - try visitor.visitSingularUInt64Field(value: self.aggregationTimestamp, fieldNumber: 6) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_UsageMetric, rhs: Stabilityai_Api_Dashboard_V1_UsageMetric) -> Bool { - if lhs.operation != rhs.operation {return false} - if lhs.engine != rhs.engine {return false} - if lhs._inputCost != rhs._inputCost {return false} - if lhs._outputCost != rhs._outputCost {return false} - if lhs._user != rhs._user {return false} - if lhs.aggregationTimestamp != rhs.aggregationTimestamp {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Api_Dashboard_V1_CostTotal: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".CostTotal" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "amount_tokens"), - 2: .standard(proto: "amount_credits"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularUInt32Field(value: &self.amountTokens) }() - case 2: try { try decoder.decodeSingularDoubleField(value: &self.amountCredits) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if self.amountTokens != 0 { - try visitor.visitSingularUInt32Field(value: self.amountTokens, fieldNumber: 1) - } - if self.amountCredits != 0 { - try visitor.visitSingularDoubleField(value: self.amountCredits, fieldNumber: 2) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_CostTotal, rhs: Stabilityai_Api_Dashboard_V1_CostTotal) -> Bool { - if lhs.amountTokens != rhs.amountTokens {return false} - if lhs.amountCredits != rhs.amountCredits {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Api_Dashboard_V1_TotalMetricsData: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".TotalMetricsData" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "input_total"), - 2: .standard(proto: "output_total"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularMessageField(value: &self._inputTotal) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._outputTotal) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - try { if let v = self._inputTotal { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - try { if let v = self._outputTotal { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_TotalMetricsData, rhs: Stabilityai_Api_Dashboard_V1_TotalMetricsData) -> Bool { - if lhs._inputTotal != rhs._inputTotal {return false} - if lhs._outputTotal != rhs._outputTotal {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Api_Dashboard_V1_Metrics: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".Metrics" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "metrics"), - 2: .same(proto: "total"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeRepeatedMessageField(value: &self.metrics) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._total) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !self.metrics.isEmpty { - try visitor.visitRepeatedMessageField(value: self.metrics, fieldNumber: 1) - } - try { if let v = self._total { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_Metrics, rhs: Stabilityai_Api_Dashboard_V1_Metrics) -> Bool { - if lhs.metrics != rhs.metrics {return false} - if lhs._total != rhs._total {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Api_Dashboard_V1_EmptyRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".EmptyRequest" - static let _protobuf_nameMap = SwiftProtobuf._NameMap() - - mutating func decodeMessage(decoder: inout D) throws { - while let _ = try decoder.nextFieldNumber() { - } - } - - func traverse(visitor: inout V) throws { - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_EmptyRequest, rhs: Stabilityai_Api_Dashboard_V1_EmptyRequest) -> Bool { - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Api_Dashboard_V1_GetOrganizationRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".GetOrganizationRequest" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_GetOrganizationRequest, rhs: Stabilityai_Api_Dashboard_V1_GetOrganizationRequest) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Api_Dashboard_V1_GetMetricsRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".GetMetricsRequest" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "organization_id"), - 2: .standard(proto: "user_id"), - 3: .standard(proto: "range_from"), - 4: .standard(proto: "range_to"), - 5: .standard(proto: "include_per_request_metrics"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.organizationID) }() - case 2: try { try decoder.decodeSingularStringField(value: &self._userID) }() - case 3: try { try decoder.decodeSingularUInt64Field(value: &self.rangeFrom) }() - case 4: try { try decoder.decodeSingularUInt64Field(value: &self.rangeTo) }() - case 5: try { try decoder.decodeSingularBoolField(value: &self.includePerRequestMetrics) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !self.organizationID.isEmpty { - try visitor.visitSingularStringField(value: self.organizationID, fieldNumber: 1) - } - try { if let v = self._userID { - try visitor.visitSingularStringField(value: v, fieldNumber: 2) - } }() - if self.rangeFrom != 0 { - try visitor.visitSingularUInt64Field(value: self.rangeFrom, fieldNumber: 3) - } - if self.rangeTo != 0 { - try visitor.visitSingularUInt64Field(value: self.rangeTo, fieldNumber: 4) - } - if self.includePerRequestMetrics != false { - try visitor.visitSingularBoolField(value: self.includePerRequestMetrics, fieldNumber: 5) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_GetMetricsRequest, rhs: Stabilityai_Api_Dashboard_V1_GetMetricsRequest) -> Bool { - if lhs.organizationID != rhs.organizationID {return false} - if lhs._userID != rhs._userID {return false} - if lhs.rangeFrom != rhs.rangeFrom {return false} - if lhs.rangeTo != rhs.rangeTo {return false} - if lhs.includePerRequestMetrics != rhs.includePerRequestMetrics {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Api_Dashboard_V1_APIKeyRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".APIKeyRequest" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "is_secret"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularBoolField(value: &self.isSecret) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if self.isSecret != false { - try visitor.visitSingularBoolField(value: self.isSecret, fieldNumber: 1) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_APIKeyRequest, rhs: Stabilityai_Api_Dashboard_V1_APIKeyRequest) -> Bool { - if lhs.isSecret != rhs.isSecret {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Api_Dashboard_V1_APIKeyFindRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".APIKeyFindRequest" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_APIKeyFindRequest, rhs: Stabilityai_Api_Dashboard_V1_APIKeyFindRequest) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Api_Dashboard_V1_UpdateDefaultOrganizationRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".UpdateDefaultOrganizationRequest" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "organization_id"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.organizationID) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if !self.organizationID.isEmpty { - try visitor.visitSingularStringField(value: self.organizationID, fieldNumber: 1) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_UpdateDefaultOrganizationRequest, rhs: Stabilityai_Api_Dashboard_V1_UpdateDefaultOrganizationRequest) -> Bool { - if lhs.organizationID != rhs.organizationID {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Api_Dashboard_V1_ClientSettings: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".ClientSettings" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "settings"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularBytesField(value: &self.settings) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if !self.settings.isEmpty { - try visitor.visitSingularBytesField(value: self.settings, fieldNumber: 1) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_ClientSettings, rhs: Stabilityai_Api_Dashboard_V1_ClientSettings) -> Bool { - if lhs.settings != rhs.settings {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Api_Dashboard_V1_CreateAutoChargeIntentRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".CreateAutoChargeIntentRequest" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "organization_id"), - 2: .standard(proto: "monthly_maximum"), - 3: .standard(proto: "minimum_value"), - 4: .standard(proto: "amount_credits"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.organizationID) }() - case 2: try { try decoder.decodeSingularUInt64Field(value: &self.monthlyMaximum) }() - case 3: try { try decoder.decodeSingularUInt64Field(value: &self.minimumValue) }() - case 4: try { try decoder.decodeSingularUInt64Field(value: &self.amountCredits) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if !self.organizationID.isEmpty { - try visitor.visitSingularStringField(value: self.organizationID, fieldNumber: 1) - } - if self.monthlyMaximum != 0 { - try visitor.visitSingularUInt64Field(value: self.monthlyMaximum, fieldNumber: 2) - } - if self.minimumValue != 0 { - try visitor.visitSingularUInt64Field(value: self.minimumValue, fieldNumber: 3) - } - if self.amountCredits != 0 { - try visitor.visitSingularUInt64Field(value: self.amountCredits, fieldNumber: 4) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_CreateAutoChargeIntentRequest, rhs: Stabilityai_Api_Dashboard_V1_CreateAutoChargeIntentRequest) -> Bool { - if lhs.organizationID != rhs.organizationID {return false} - if lhs.monthlyMaximum != rhs.monthlyMaximum {return false} - if lhs.minimumValue != rhs.minimumValue {return false} - if lhs.amountCredits != rhs.amountCredits {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Api_Dashboard_V1_CreateChargeRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".CreateChargeRequest" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "amount"), - 2: .standard(proto: "organization_id"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularUInt64Field(value: &self.amount) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.organizationID) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if self.amount != 0 { - try visitor.visitSingularUInt64Field(value: self.amount, fieldNumber: 1) - } - if !self.organizationID.isEmpty { - try visitor.visitSingularStringField(value: self.organizationID, fieldNumber: 2) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_CreateChargeRequest, rhs: Stabilityai_Api_Dashboard_V1_CreateChargeRequest) -> Bool { - if lhs.amount != rhs.amount {return false} - if lhs.organizationID != rhs.organizationID {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Api_Dashboard_V1_GetChargesRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".GetChargesRequest" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "organization_id"), - 2: .standard(proto: "range_from"), - 3: .standard(proto: "range_to"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.organizationID) }() - case 2: try { try decoder.decodeSingularUInt64Field(value: &self.rangeFrom) }() - case 3: try { try decoder.decodeSingularUInt64Field(value: &self.rangeTo) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if !self.organizationID.isEmpty { - try visitor.visitSingularStringField(value: self.organizationID, fieldNumber: 1) - } - if self.rangeFrom != 0 { - try visitor.visitSingularUInt64Field(value: self.rangeFrom, fieldNumber: 2) - } - if self.rangeTo != 0 { - try visitor.visitSingularUInt64Field(value: self.rangeTo, fieldNumber: 3) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_GetChargesRequest, rhs: Stabilityai_Api_Dashboard_V1_GetChargesRequest) -> Bool { - if lhs.organizationID != rhs.organizationID {return false} - if lhs.rangeFrom != rhs.rangeFrom {return false} - if lhs.rangeTo != rhs.rangeTo {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Api_Dashboard_V1_Charge: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".Charge" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .same(proto: "paid"), - 3: .standard(proto: "receipt_link"), - 4: .standard(proto: "payment_link"), - 5: .standard(proto: "created_at"), - 6: .standard(proto: "amount_credits"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularBoolField(value: &self.paid) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.receiptLink) }() - case 4: try { try decoder.decodeSingularStringField(value: &self.paymentLink) }() - case 5: try { try decoder.decodeSingularUInt64Field(value: &self.createdAt) }() - case 6: try { try decoder.decodeSingularUInt64Field(value: &self.amountCredits) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - if self.paid != false { - try visitor.visitSingularBoolField(value: self.paid, fieldNumber: 2) - } - if !self.receiptLink.isEmpty { - try visitor.visitSingularStringField(value: self.receiptLink, fieldNumber: 3) - } - if !self.paymentLink.isEmpty { - try visitor.visitSingularStringField(value: self.paymentLink, fieldNumber: 4) - } - if self.createdAt != 0 { - try visitor.visitSingularUInt64Field(value: self.createdAt, fieldNumber: 5) - } - if self.amountCredits != 0 { - try visitor.visitSingularUInt64Field(value: self.amountCredits, fieldNumber: 6) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_Charge, rhs: Stabilityai_Api_Dashboard_V1_Charge) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.paid != rhs.paid {return false} - if lhs.receiptLink != rhs.receiptLink {return false} - if lhs.paymentLink != rhs.paymentLink {return false} - if lhs.createdAt != rhs.createdAt {return false} - if lhs.amountCredits != rhs.amountCredits {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Api_Dashboard_V1_Charges: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".Charges" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "charges"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeRepeatedMessageField(value: &self.charges) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if !self.charges.isEmpty { - try visitor.visitRepeatedMessageField(value: self.charges, fieldNumber: 1) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_Charges, rhs: Stabilityai_Api_Dashboard_V1_Charges) -> Bool { - if lhs.charges != rhs.charges {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Api_Dashboard_V1_GetAutoChargeRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".GetAutoChargeRequest" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "organization_id"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.organizationID) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if !self.organizationID.isEmpty { - try visitor.visitSingularStringField(value: self.organizationID, fieldNumber: 1) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_GetAutoChargeRequest, rhs: Stabilityai_Api_Dashboard_V1_GetAutoChargeRequest) -> Bool { - if lhs.organizationID != rhs.organizationID {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Api_Dashboard_V1_AutoChargeIntent: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".AutoChargeIntent" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "payment_link"), - 3: .standard(proto: "created_at"), - 4: .standard(proto: "monthly_maximum"), - 5: .standard(proto: "minimum_value"), - 6: .standard(proto: "amount_credits"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.paymentLink) }() - case 3: try { try decoder.decodeSingularUInt64Field(value: &self.createdAt) }() - case 4: try { try decoder.decodeSingularUInt64Field(value: &self.monthlyMaximum) }() - case 5: try { try decoder.decodeSingularUInt64Field(value: &self.minimumValue) }() - case 6: try { try decoder.decodeSingularUInt64Field(value: &self.amountCredits) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - if !self.paymentLink.isEmpty { - try visitor.visitSingularStringField(value: self.paymentLink, fieldNumber: 2) - } - if self.createdAt != 0 { - try visitor.visitSingularUInt64Field(value: self.createdAt, fieldNumber: 3) - } - if self.monthlyMaximum != 0 { - try visitor.visitSingularUInt64Field(value: self.monthlyMaximum, fieldNumber: 4) - } - if self.minimumValue != 0 { - try visitor.visitSingularUInt64Field(value: self.minimumValue, fieldNumber: 5) - } - if self.amountCredits != 0 { - try visitor.visitSingularUInt64Field(value: self.amountCredits, fieldNumber: 6) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_AutoChargeIntent, rhs: Stabilityai_Api_Dashboard_V1_AutoChargeIntent) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.paymentLink != rhs.paymentLink {return false} - if lhs.createdAt != rhs.createdAt {return false} - if lhs.monthlyMaximum != rhs.monthlyMaximum {return false} - if lhs.minimumValue != rhs.minimumValue {return false} - if lhs.amountCredits != rhs.amountCredits {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Api_Dashboard_V1_UpdateUserInfoRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".UpdateUserInfoRequest" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "email"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self._email) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - try { if let v = self._email { - try visitor.visitSingularStringField(value: v, fieldNumber: 1) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_UpdateUserInfoRequest, rhs: Stabilityai_Api_Dashboard_V1_UpdateUserInfoRequest) -> Bool { - if lhs._email != rhs._email {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Api_Dashboard_V1_UserPasswordChangeTicket: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".UserPasswordChangeTicket" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "ticket"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.ticket) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if !self.ticket.isEmpty { - try visitor.visitSingularStringField(value: self.ticket, fieldNumber: 1) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Api_Dashboard_V1_UserPasswordChangeTicket, rhs: Stabilityai_Api_Dashboard_V1_UserPasswordChangeTicket) -> Bool { - if lhs.ticket != rhs.ticket {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} diff --git a/gen/proto/swift/stability_api/platform/engines/v1/engines.connect.swift b/gen/proto/swift/stability_api/platform/engines/v1/engines.connect.swift deleted file mode 100644 index 42d18f2..0000000 --- a/gen/proto/swift/stability_api/platform/engines/v1/engines.connect.swift +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by protoc-gen-connect-swift. DO NOT EDIT. -// -// Source: stability_api/platform/engines/v1/engines.proto -// - -import Connect -import Foundation -import SwiftProtobuf - -internal protocol Stabilityai_Platformapis_Engines_V1_EnginesServiceClientInterface { - - @available(iOS 13, *) - func `listEngines`(request: Stabilityai_Platformapis_Engines_V1_ListEnginesRequest, headers: Connect.Headers) async -> ResponseMessage -} - -/// Concrete implementation of `Stabilityai_Platformapis_Engines_V1_EnginesServiceClientInterface`. -internal final class Stabilityai_Platformapis_Engines_V1_EnginesServiceClient: Stabilityai_Platformapis_Engines_V1_EnginesServiceClientInterface { - private let client: Connect.ProtocolClientInterface - - internal init(client: Connect.ProtocolClientInterface) { - self.client = client - } - - @available(iOS 13, *) - internal func `listEngines`(request: Stabilityai_Platformapis_Engines_V1_ListEnginesRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { - return await self.client.unary(path: "stabilityai.platformapis.engines.v1.EnginesService/ListEngines", request: request, headers: headers) - } - - internal enum Metadata { - internal enum Methods { - internal static let listEngines = Connect.MethodSpec(name: "ListEngines", service: "stabilityai.platformapis.engines.v1.EnginesService", type: .unary) - } - } -} diff --git a/gen/proto/swift/stability_api/platform/engines/v1/engines.pb.swift b/gen/proto/swift/stability_api/platform/engines/v1/engines.pb.swift deleted file mode 100644 index 7811c8c..0000000 --- a/gen/proto/swift/stability_api/platform/engines/v1/engines.pb.swift +++ /dev/null @@ -1,316 +0,0 @@ -// DO NOT EDIT. -// swift-format-ignore-file -// -// Generated by the Swift generator plugin for the protocol buffer compiler. -// Source: stability_api/platform/engines/v1/engines.proto -// -// For information on using the generated types, please see the documentation: -// https://github.com/apple/swift-protobuf/ - -import Foundation -import SwiftProtobuf - -// If the compiler emits an error on this type, it is because this file -// was generated by a version of the `protoc` Swift plug-in that is -// incompatible with the version of SwiftProtobuf to which you are linking. -// Please ensure that you are building against the same version of the API -// that was used to generate this file. -fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck { - struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {} - typealias Version = _2 -} - -/// Possible engine type -enum Stabilityai_Platformapis_Engines_V1_EngineType: SwiftProtobuf.Enum { - typealias RawValue = Int - case text // = 0 - case picture // = 1 - case audio // = 2 - case video // = 3 - case classification // = 4 - case storage // = 5 - case UNRECOGNIZED(Int) - - init() { - self = .text - } - - init?(rawValue: Int) { - switch rawValue { - case 0: self = .text - case 1: self = .picture - case 2: self = .audio - case 3: self = .video - case 4: self = .classification - case 5: self = .storage - default: self = .UNRECOGNIZED(rawValue) - } - } - - var rawValue: Int { - switch self { - case .text: return 0 - case .picture: return 1 - case .audio: return 2 - case .video: return 3 - case .classification: return 4 - case .storage: return 5 - case .UNRECOGNIZED(let i): return i - } - } - -} - -#if swift(>=4.2) - -extension Stabilityai_Platformapis_Engines_V1_EngineType: CaseIterable { - // The compiler won't synthesize support with the UNRECOGNIZED case. - static var allCases: [Stabilityai_Platformapis_Engines_V1_EngineType] = [ - .text, - .picture, - .audio, - .video, - .classification, - .storage, - ] -} - -#endif // swift(>=4.2) - -enum Stabilityai_Platformapis_Engines_V1_EngineTokenizer: SwiftProtobuf.Enum { - typealias RawValue = Int - case gpt2 // = 0 - case pile // = 1 - case UNRECOGNIZED(Int) - - init() { - self = .gpt2 - } - - init?(rawValue: Int) { - switch rawValue { - case 0: self = .gpt2 - case 1: self = .pile - default: self = .UNRECOGNIZED(rawValue) - } - } - - var rawValue: Int { - switch self { - case .gpt2: return 0 - case .pile: return 1 - case .UNRECOGNIZED(let i): return i - } - } - -} - -#if swift(>=4.2) - -extension Stabilityai_Platformapis_Engines_V1_EngineTokenizer: CaseIterable { - // The compiler won't synthesize support with the UNRECOGNIZED case. - static var allCases: [Stabilityai_Platformapis_Engines_V1_EngineTokenizer] = [ - .gpt2, - .pile, - ] -} - -#endif // swift(>=4.2) - -/// Engine info struct -struct Stabilityai_Platformapis_Engines_V1_EngineInfo { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var id: String = String() - - var owner: String = String() - - var ready: Bool = false - - var type: Stabilityai_Platformapis_Engines_V1_EngineType = .text - - var tokenizer: Stabilityai_Platformapis_Engines_V1_EngineTokenizer = .gpt2 - - var name: String = String() - - var description_p: String = String() - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -/// Empty -struct Stabilityai_Platformapis_Engines_V1_ListEnginesRequest { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -/// Engine info list -struct Stabilityai_Platformapis_Engines_V1_Engines { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var engine: [Stabilityai_Platformapis_Engines_V1_EngineInfo] = [] - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -#if swift(>=5.5) && canImport(_Concurrency) -extension Stabilityai_Platformapis_Engines_V1_EngineType: @unchecked Sendable {} -extension Stabilityai_Platformapis_Engines_V1_EngineTokenizer: @unchecked Sendable {} -extension Stabilityai_Platformapis_Engines_V1_EngineInfo: @unchecked Sendable {} -extension Stabilityai_Platformapis_Engines_V1_ListEnginesRequest: @unchecked Sendable {} -extension Stabilityai_Platformapis_Engines_V1_Engines: @unchecked Sendable {} -#endif // swift(>=5.5) && canImport(_Concurrency) - -// MARK: - Code below here is support for the SwiftProtobuf runtime. - -fileprivate let _protobuf_package = "stabilityai.platformapis.engines.v1" - -extension Stabilityai_Platformapis_Engines_V1_EngineType: SwiftProtobuf._ProtoNameProviding { - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "TEXT"), - 1: .same(proto: "PICTURE"), - 2: .same(proto: "AUDIO"), - 3: .same(proto: "VIDEO"), - 4: .same(proto: "CLASSIFICATION"), - 5: .same(proto: "STORAGE"), - ] -} - -extension Stabilityai_Platformapis_Engines_V1_EngineTokenizer: SwiftProtobuf._ProtoNameProviding { - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "GPT2"), - 1: .same(proto: "PILE"), - ] -} - -extension Stabilityai_Platformapis_Engines_V1_EngineInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".EngineInfo" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .same(proto: "owner"), - 3: .same(proto: "ready"), - 4: .same(proto: "type"), - 5: .same(proto: "tokenizer"), - 6: .same(proto: "name"), - 7: .same(proto: "description"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.owner) }() - case 3: try { try decoder.decodeSingularBoolField(value: &self.ready) }() - case 4: try { try decoder.decodeSingularEnumField(value: &self.type) }() - case 5: try { try decoder.decodeSingularEnumField(value: &self.tokenizer) }() - case 6: try { try decoder.decodeSingularStringField(value: &self.name) }() - case 7: try { try decoder.decodeSingularStringField(value: &self.description_p) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - if !self.owner.isEmpty { - try visitor.visitSingularStringField(value: self.owner, fieldNumber: 2) - } - if self.ready != false { - try visitor.visitSingularBoolField(value: self.ready, fieldNumber: 3) - } - if self.type != .text { - try visitor.visitSingularEnumField(value: self.type, fieldNumber: 4) - } - if self.tokenizer != .gpt2 { - try visitor.visitSingularEnumField(value: self.tokenizer, fieldNumber: 5) - } - if !self.name.isEmpty { - try visitor.visitSingularStringField(value: self.name, fieldNumber: 6) - } - if !self.description_p.isEmpty { - try visitor.visitSingularStringField(value: self.description_p, fieldNumber: 7) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Engines_V1_EngineInfo, rhs: Stabilityai_Platformapis_Engines_V1_EngineInfo) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.owner != rhs.owner {return false} - if lhs.ready != rhs.ready {return false} - if lhs.type != rhs.type {return false} - if lhs.tokenizer != rhs.tokenizer {return false} - if lhs.name != rhs.name {return false} - if lhs.description_p != rhs.description_p {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Engines_V1_ListEnginesRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".ListEnginesRequest" - static let _protobuf_nameMap = SwiftProtobuf._NameMap() - - mutating func decodeMessage(decoder: inout D) throws { - while let _ = try decoder.nextFieldNumber() { - } - } - - func traverse(visitor: inout V) throws { - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Engines_V1_ListEnginesRequest, rhs: Stabilityai_Platformapis_Engines_V1_ListEnginesRequest) -> Bool { - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Engines_V1_Engines: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".Engines" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "engine"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeRepeatedMessageField(value: &self.engine) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if !self.engine.isEmpty { - try visitor.visitRepeatedMessageField(value: self.engine, fieldNumber: 1) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Engines_V1_Engines, rhs: Stabilityai_Platformapis_Engines_V1_Engines) -> Bool { - if lhs.engine != rhs.engine {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} diff --git a/gen/proto/swift/stability_api/platform/generation/v1/generation.connect.swift b/gen/proto/swift/stability_api/platform/generation/v1/generation.connect.swift deleted file mode 100644 index ed25fb0..0000000 --- a/gen/proto/swift/stability_api/platform/generation/v1/generation.connect.swift +++ /dev/null @@ -1,45 +0,0 @@ -// Code generated by protoc-gen-connect-swift. DO NOT EDIT. -// -// Source: stability_api/platform/generation/v1/generation.proto -// - -import Connect -import Foundation -import SwiftProtobuf - -/// -/// gRPC services -internal protocol Stabilityai_Platformapis_Generation_V1_GenerationServiceClientInterface { - - @available(iOS 13, *) - func `generate`(headers: Connect.Headers) -> any Connect.ServerOnlyAsyncStreamInterface - - @available(iOS 13, *) - func `chainGenerate`(headers: Connect.Headers) -> any Connect.ServerOnlyAsyncStreamInterface -} - -/// Concrete implementation of `Stabilityai_Platformapis_Generation_V1_GenerationServiceClientInterface`. -internal final class Stabilityai_Platformapis_Generation_V1_GenerationServiceClient: Stabilityai_Platformapis_Generation_V1_GenerationServiceClientInterface { - private let client: Connect.ProtocolClientInterface - - internal init(client: Connect.ProtocolClientInterface) { - self.client = client - } - - @available(iOS 13, *) - internal func `generate`(headers: Connect.Headers = [:]) -> any Connect.ServerOnlyAsyncStreamInterface { - return self.client.serverOnlyStream(path: "stabilityai.platformapis.generation.v1.GenerationService/Generate", headers: headers) - } - - @available(iOS 13, *) - internal func `chainGenerate`(headers: Connect.Headers = [:]) -> any Connect.ServerOnlyAsyncStreamInterface { - return self.client.serverOnlyStream(path: "stabilityai.platformapis.generation.v1.GenerationService/ChainGenerate", headers: headers) - } - - internal enum Metadata { - internal enum Methods { - internal static let generate = Connect.MethodSpec(name: "Generate", service: "stabilityai.platformapis.generation.v1.GenerationService", type: .serverStream) - internal static let chainGenerate = Connect.MethodSpec(name: "ChainGenerate", service: "stabilityai.platformapis.generation.v1.GenerationService", type: .serverStream) - } - } -} diff --git a/gen/proto/swift/stability_api/platform/generation/v1/generation.pb.swift b/gen/proto/swift/stability_api/platform/generation/v1/generation.pb.swift deleted file mode 100644 index 191251c..0000000 --- a/gen/proto/swift/stability_api/platform/generation/v1/generation.pb.swift +++ /dev/null @@ -1,5094 +0,0 @@ -// DO NOT EDIT. -// swift-format-ignore-file -// -// Generated by the Swift generator plugin for the protocol buffer compiler. -// Source: stability_api/platform/generation/v1/generation.proto -// -// For information on using the generated types, please see the documentation: -// https://github.com/apple/swift-protobuf/ - -import Foundation -import SwiftProtobuf - -// If the compiler emits an error on this type, it is because this file -// was generated by a version of the `protoc` Swift plug-in that is -// incompatible with the version of SwiftProtobuf to which you are linking. -// Please ensure that you are building against the same version of the API -// that was used to generate this file. -fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck { - struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {} - typealias Version = _2 -} - -enum Stabilityai_Platformapis_Generation_V1_FinishReason: SwiftProtobuf.Enum { - typealias RawValue = Int - case null // = 0 - case length // = 1 - case stop // = 2 - case error // = 3 - case filter // = 4 - case UNRECOGNIZED(Int) - - init() { - self = .null - } - - init?(rawValue: Int) { - switch rawValue { - case 0: self = .null - case 1: self = .length - case 2: self = .stop - case 3: self = .error - case 4: self = .filter - default: self = .UNRECOGNIZED(rawValue) - } - } - - var rawValue: Int { - switch self { - case .null: return 0 - case .length: return 1 - case .stop: return 2 - case .error: return 3 - case .filter: return 4 - case .UNRECOGNIZED(let i): return i - } - } - -} - -#if swift(>=4.2) - -extension Stabilityai_Platformapis_Generation_V1_FinishReason: CaseIterable { - // The compiler won't synthesize support with the UNRECOGNIZED case. - static var allCases: [Stabilityai_Platformapis_Generation_V1_FinishReason] = [ - .null, - .length, - .stop, - .error, - .filter, - ] -} - -#endif // swift(>=4.2) - -enum Stabilityai_Platformapis_Generation_V1_ArtifactType: SwiftProtobuf.Enum { - typealias RawValue = Int - case artifactNone // = 0 - case artifactImage // = 1 - case artifactVideo // = 2 - case artifactText // = 3 - case artifactTokens // = 4 - case artifactEmbedding // = 5 - case artifactClassifications // = 6 - case artifactMask // = 7 - case artifactLatent // = 8 - case artifactTensor // = 9 - case artifactDepth // = 10 - case UNRECOGNIZED(Int) - - init() { - self = .artifactNone - } - - init?(rawValue: Int) { - switch rawValue { - case 0: self = .artifactNone - case 1: self = .artifactImage - case 2: self = .artifactVideo - case 3: self = .artifactText - case 4: self = .artifactTokens - case 5: self = .artifactEmbedding - case 6: self = .artifactClassifications - case 7: self = .artifactMask - case 8: self = .artifactLatent - case 9: self = .artifactTensor - case 10: self = .artifactDepth - default: self = .UNRECOGNIZED(rawValue) - } - } - - var rawValue: Int { - switch self { - case .artifactNone: return 0 - case .artifactImage: return 1 - case .artifactVideo: return 2 - case .artifactText: return 3 - case .artifactTokens: return 4 - case .artifactEmbedding: return 5 - case .artifactClassifications: return 6 - case .artifactMask: return 7 - case .artifactLatent: return 8 - case .artifactTensor: return 9 - case .artifactDepth: return 10 - case .UNRECOGNIZED(let i): return i - } - } - -} - -#if swift(>=4.2) - -extension Stabilityai_Platformapis_Generation_V1_ArtifactType: CaseIterable { - // The compiler won't synthesize support with the UNRECOGNIZED case. - static var allCases: [Stabilityai_Platformapis_Generation_V1_ArtifactType] = [ - .artifactNone, - .artifactImage, - .artifactVideo, - .artifactText, - .artifactTokens, - .artifactEmbedding, - .artifactClassifications, - .artifactMask, - .artifactLatent, - .artifactTensor, - .artifactDepth, - ] -} - -#endif // swift(>=4.2) - -enum Stabilityai_Platformapis_Generation_V1_MaskedAreaInit: SwiftProtobuf.Enum { - typealias RawValue = Int - case zero // = 0 - case random // = 1 - case original // = 2 - case UNRECOGNIZED(Int) - - init() { - self = .zero - } - - init?(rawValue: Int) { - switch rawValue { - case 0: self = .zero - case 1: self = .random - case 2: self = .original - default: self = .UNRECOGNIZED(rawValue) - } - } - - var rawValue: Int { - switch self { - case .zero: return 0 - case .random: return 1 - case .original: return 2 - case .UNRECOGNIZED(let i): return i - } - } - -} - -#if swift(>=4.2) - -extension Stabilityai_Platformapis_Generation_V1_MaskedAreaInit: CaseIterable { - // The compiler won't synthesize support with the UNRECOGNIZED case. - static var allCases: [Stabilityai_Platformapis_Generation_V1_MaskedAreaInit] = [ - .zero, - .random, - .original, - ] -} - -#endif // swift(>=4.2) - -enum Stabilityai_Platformapis_Generation_V1_WeightMethod: SwiftProtobuf.Enum { - typealias RawValue = Int - case textEncoder // = 0 - case crossAttention // = 1 - case UNRECOGNIZED(Int) - - init() { - self = .textEncoder - } - - init?(rawValue: Int) { - switch rawValue { - case 0: self = .textEncoder - case 1: self = .crossAttention - default: self = .UNRECOGNIZED(rawValue) - } - } - - var rawValue: Int { - switch self { - case .textEncoder: return 0 - case .crossAttention: return 1 - case .UNRECOGNIZED(let i): return i - } - } - -} - -#if swift(>=4.2) - -extension Stabilityai_Platformapis_Generation_V1_WeightMethod: CaseIterable { - // The compiler won't synthesize support with the UNRECOGNIZED case. - static var allCases: [Stabilityai_Platformapis_Generation_V1_WeightMethod] = [ - .textEncoder, - .crossAttention, - ] -} - -#endif // swift(>=4.2) - -/// DiffusionSampler identifies which sampler to use for Diffusion, and represents -/// the internal set of supported samplers. -enum Stabilityai_Platformapis_Generation_V1_DiffusionSampler: SwiftProtobuf.Enum { - typealias RawValue = Int - case samplerDdim // = 0 - case samplerDdpm // = 1 - case samplerKEuler // = 2 - case samplerKEulerAncestral // = 3 - case samplerKHeun // = 4 - case samplerKDpm2 // = 5 - case samplerKDpm2Ancestral // = 6 - case samplerKLms // = 7 - case samplerKDpmpp2SAncestral // = 8 - case samplerKDpmpp2M // = 9 - case samplerKDpmppSde // = 10 - case UNRECOGNIZED(Int) - - init() { - self = .samplerDdim - } - - init?(rawValue: Int) { - switch rawValue { - case 0: self = .samplerDdim - case 1: self = .samplerDdpm - case 2: self = .samplerKEuler - case 3: self = .samplerKEulerAncestral - case 4: self = .samplerKHeun - case 5: self = .samplerKDpm2 - case 6: self = .samplerKDpm2Ancestral - case 7: self = .samplerKLms - case 8: self = .samplerKDpmpp2SAncestral - case 9: self = .samplerKDpmpp2M - case 10: self = .samplerKDpmppSde - default: self = .UNRECOGNIZED(rawValue) - } - } - - var rawValue: Int { - switch self { - case .samplerDdim: return 0 - case .samplerDdpm: return 1 - case .samplerKEuler: return 2 - case .samplerKEulerAncestral: return 3 - case .samplerKHeun: return 4 - case .samplerKDpm2: return 5 - case .samplerKDpm2Ancestral: return 6 - case .samplerKLms: return 7 - case .samplerKDpmpp2SAncestral: return 8 - case .samplerKDpmpp2M: return 9 - case .samplerKDpmppSde: return 10 - case .UNRECOGNIZED(let i): return i - } - } - -} - -#if swift(>=4.2) - -extension Stabilityai_Platformapis_Generation_V1_DiffusionSampler: CaseIterable { - // The compiler won't synthesize support with the UNRECOGNIZED case. - static var allCases: [Stabilityai_Platformapis_Generation_V1_DiffusionSampler] = [ - .samplerDdim, - .samplerDdpm, - .samplerKEuler, - .samplerKEulerAncestral, - .samplerKHeun, - .samplerKDpm2, - .samplerKDpm2Ancestral, - .samplerKLms, - .samplerKDpmpp2SAncestral, - .samplerKDpmpp2M, - .samplerKDpmppSde, - ] -} - -#endif // swift(>=4.2) - -/// Future, unimplemented. -enum Stabilityai_Platformapis_Generation_V1_Upscaler: SwiftProtobuf.Enum { - typealias RawValue = Int - case rgb // = 0 - case gfpgan // = 1 - case esrgan // = 2 - case UNRECOGNIZED(Int) - - init() { - self = .rgb - } - - init?(rawValue: Int) { - switch rawValue { - case 0: self = .rgb - case 1: self = .gfpgan - case 2: self = .esrgan - default: self = .UNRECOGNIZED(rawValue) - } - } - - var rawValue: Int { - switch self { - case .rgb: return 0 - case .gfpgan: return 1 - case .esrgan: return 2 - case .UNRECOGNIZED(let i): return i - } - } - -} - -#if swift(>=4.2) - -extension Stabilityai_Platformapis_Generation_V1_Upscaler: CaseIterable { - // The compiler won't synthesize support with the UNRECOGNIZED case. - static var allCases: [Stabilityai_Platformapis_Generation_V1_Upscaler] = [ - .rgb, - .gfpgan, - .esrgan, - ] -} - -#endif // swift(>=4.2) - -/// Presets for CLIP guidance. -enum Stabilityai_Platformapis_Generation_V1_GuidancePreset: SwiftProtobuf.Enum { - typealias RawValue = Int - case none // = 0 - case simple // = 1 - case fastBlue // = 2 - case fastGreen // = 3 - case slow // = 4 - case slower // = 5 - case slowest // = 6 - case UNRECOGNIZED(Int) - - init() { - self = .none - } - - init?(rawValue: Int) { - switch rawValue { - case 0: self = .none - case 1: self = .simple - case 2: self = .fastBlue - case 3: self = .fastGreen - case 4: self = .slow - case 5: self = .slower - case 6: self = .slowest - default: self = .UNRECOGNIZED(rawValue) - } - } - - var rawValue: Int { - switch self { - case .none: return 0 - case .simple: return 1 - case .fastBlue: return 2 - case .fastGreen: return 3 - case .slow: return 4 - case .slower: return 5 - case .slowest: return 6 - case .UNRECOGNIZED(let i): return i - } - } - -} - -#if swift(>=4.2) - -extension Stabilityai_Platformapis_Generation_V1_GuidancePreset: CaseIterable { - // The compiler won't synthesize support with the UNRECOGNIZED case. - static var allCases: [Stabilityai_Platformapis_Generation_V1_GuidancePreset] = [ - .none, - .simple, - .fastBlue, - .fastGreen, - .slow, - .slower, - .slowest, - ] -} - -#endif // swift(>=4.2) - -enum Stabilityai_Platformapis_Generation_V1_ModelArchitecture: SwiftProtobuf.Enum { - typealias RawValue = Int - case none // = 0 - case clipVit // = 1 - case clipResnet // = 2 - case ldm // = 3 - case UNRECOGNIZED(Int) - - init() { - self = .none - } - - init?(rawValue: Int) { - switch rawValue { - case 0: self = .none - case 1: self = .clipVit - case 2: self = .clipResnet - case 3: self = .ldm - default: self = .UNRECOGNIZED(rawValue) - } - } - - var rawValue: Int { - switch self { - case .none: return 0 - case .clipVit: return 1 - case .clipResnet: return 2 - case .ldm: return 3 - case .UNRECOGNIZED(let i): return i - } - } - -} - -#if swift(>=4.2) - -extension Stabilityai_Platformapis_Generation_V1_ModelArchitecture: CaseIterable { - // The compiler won't synthesize support with the UNRECOGNIZED case. - static var allCases: [Stabilityai_Platformapis_Generation_V1_ModelArchitecture] = [ - .none, - .clipVit, - .clipResnet, - .ldm, - ] -} - -#endif // swift(>=4.2) - -enum Stabilityai_Platformapis_Generation_V1_Action: SwiftProtobuf.Enum { - typealias RawValue = Int - case passthrough // = 0 - case regenerateDuplicate // = 1 - case regenerate // = 2 - case obfuscateDuplicate // = 3 - case obfuscate // = 4 - case discard // = 5 - case UNRECOGNIZED(Int) - - init() { - self = .passthrough - } - - init?(rawValue: Int) { - switch rawValue { - case 0: self = .passthrough - case 1: self = .regenerateDuplicate - case 2: self = .regenerate - case 3: self = .obfuscateDuplicate - case 4: self = .obfuscate - case 5: self = .discard - default: self = .UNRECOGNIZED(rawValue) - } - } - - var rawValue: Int { - switch self { - case .passthrough: return 0 - case .regenerateDuplicate: return 1 - case .regenerate: return 2 - case .obfuscateDuplicate: return 3 - case .obfuscate: return 4 - case .discard: return 5 - case .UNRECOGNIZED(let i): return i - } - } - -} - -#if swift(>=4.2) - -extension Stabilityai_Platformapis_Generation_V1_Action: CaseIterable { - // The compiler won't synthesize support with the UNRECOGNIZED case. - static var allCases: [Stabilityai_Platformapis_Generation_V1_Action] = [ - .passthrough, - .regenerateDuplicate, - .regenerate, - .obfuscateDuplicate, - .obfuscate, - .discard, - ] -} - -#endif // swift(>=4.2) - -enum Stabilityai_Platformapis_Generation_V1_ClassifierMode: SwiftProtobuf.Enum { - typealias RawValue = Int - case clsfrModeZeroshot // = 0 - - ///CLSFR_MODE_ODDSRATIO = 2; - case clsfrModeMulticlass // = 1 - case UNRECOGNIZED(Int) - - init() { - self = .clsfrModeZeroshot - } - - init?(rawValue: Int) { - switch rawValue { - case 0: self = .clsfrModeZeroshot - case 1: self = .clsfrModeMulticlass - default: self = .UNRECOGNIZED(rawValue) - } - } - - var rawValue: Int { - switch self { - case .clsfrModeZeroshot: return 0 - case .clsfrModeMulticlass: return 1 - case .UNRECOGNIZED(let i): return i - } - } - -} - -#if swift(>=4.2) - -extension Stabilityai_Platformapis_Generation_V1_ClassifierMode: CaseIterable { - // The compiler won't synthesize support with the UNRECOGNIZED case. - static var allCases: [Stabilityai_Platformapis_Generation_V1_ClassifierMode] = [ - .clsfrModeZeroshot, - .clsfrModeMulticlass, - ] -} - -#endif // swift(>=4.2) - -enum Stabilityai_Platformapis_Generation_V1_InterpolateMode: SwiftProtobuf.Enum { - typealias RawValue = Int - case interpolateLinear // = 0 - case interpolateRife // = 1 - case interpolateVaeLinear // = 2 - case interpolateVaeSlerp // = 3 - case interpolateFilm // = 4 - case UNRECOGNIZED(Int) - - init() { - self = .interpolateLinear - } - - init?(rawValue: Int) { - switch rawValue { - case 0: self = .interpolateLinear - case 1: self = .interpolateRife - case 2: self = .interpolateVaeLinear - case 3: self = .interpolateVaeSlerp - case 4: self = .interpolateFilm - default: self = .UNRECOGNIZED(rawValue) - } - } - - var rawValue: Int { - switch self { - case .interpolateLinear: return 0 - case .interpolateRife: return 1 - case .interpolateVaeLinear: return 2 - case .interpolateVaeSlerp: return 3 - case .interpolateFilm: return 4 - case .UNRECOGNIZED(let i): return i - } - } - -} - -#if swift(>=4.2) - -extension Stabilityai_Platformapis_Generation_V1_InterpolateMode: CaseIterable { - // The compiler won't synthesize support with the UNRECOGNIZED case. - static var allCases: [Stabilityai_Platformapis_Generation_V1_InterpolateMode] = [ - .interpolateLinear, - .interpolateRife, - .interpolateVaeLinear, - .interpolateVaeSlerp, - .interpolateFilm, - ] -} - -#endif // swift(>=4.2) - -enum Stabilityai_Platformapis_Generation_V1_BorderMode: SwiftProtobuf.Enum { - typealias RawValue = Int - - /// reflect image values across the border - case borderReflect // = 0 - - /// replicate border values outside the image - case borderReplicate // = 1 - - /// wrap around / tile the image values - case borderWrap // = 2 - - /// use 0 for locations outside the image - case borderZero // = 3 - - /// prefill border areas with values matching the colors around the area - case borderPrefill // = 4 - case UNRECOGNIZED(Int) - - init() { - self = .borderReflect - } - - init?(rawValue: Int) { - switch rawValue { - case 0: self = .borderReflect - case 1: self = .borderReplicate - case 2: self = .borderWrap - case 3: self = .borderZero - case 4: self = .borderPrefill - default: self = .UNRECOGNIZED(rawValue) - } - } - - var rawValue: Int { - switch self { - case .borderReflect: return 0 - case .borderReplicate: return 1 - case .borderWrap: return 2 - case .borderZero: return 3 - case .borderPrefill: return 4 - case .UNRECOGNIZED(let i): return i - } - } - -} - -#if swift(>=4.2) - -extension Stabilityai_Platformapis_Generation_V1_BorderMode: CaseIterable { - // The compiler won't synthesize support with the UNRECOGNIZED case. - static var allCases: [Stabilityai_Platformapis_Generation_V1_BorderMode] = [ - .borderReflect, - .borderReplicate, - .borderWrap, - .borderZero, - .borderPrefill, - ] -} - -#endif // swift(>=4.2) - -enum Stabilityai_Platformapis_Generation_V1_ColorMatchMode: SwiftProtobuf.Enum { - typealias RawValue = Int - - /// match hue, saturation, and value histograms - case colorMatchHsv // = 0 - - /// match lightness, a, and b histograms - case colorMatchLab // = 1 - - /// match red, green, and blue histograms - case colorMatchRgb // = 2 - case UNRECOGNIZED(Int) - - init() { - self = .colorMatchHsv - } - - init?(rawValue: Int) { - switch rawValue { - case 0: self = .colorMatchHsv - case 1: self = .colorMatchLab - case 2: self = .colorMatchRgb - default: self = .UNRECOGNIZED(rawValue) - } - } - - var rawValue: Int { - switch self { - case .colorMatchHsv: return 0 - case .colorMatchLab: return 1 - case .colorMatchRgb: return 2 - case .UNRECOGNIZED(let i): return i - } - } - -} - -#if swift(>=4.2) - -extension Stabilityai_Platformapis_Generation_V1_ColorMatchMode: CaseIterable { - // The compiler won't synthesize support with the UNRECOGNIZED case. - static var allCases: [Stabilityai_Platformapis_Generation_V1_ColorMatchMode] = [ - .colorMatchHsv, - .colorMatchLab, - .colorMatchRgb, - ] -} - -#endif // swift(>=4.2) - -enum Stabilityai_Platformapis_Generation_V1_CameraType: SwiftProtobuf.Enum { - typealias RawValue = Int - - /// Perspective camera - case cameraPerspective // = 0 - - /// Orthographic camera. Well suited for isometric animations - case cameraOrthographic // = 1 - case UNRECOGNIZED(Int) - - init() { - self = .cameraPerspective - } - - init?(rawValue: Int) { - switch rawValue { - case 0: self = .cameraPerspective - case 1: self = .cameraOrthographic - default: self = .UNRECOGNIZED(rawValue) - } - } - - var rawValue: Int { - switch self { - case .cameraPerspective: return 0 - case .cameraOrthographic: return 1 - case .UNRECOGNIZED(let i): return i - } - } - -} - -#if swift(>=4.2) - -extension Stabilityai_Platformapis_Generation_V1_CameraType: CaseIterable { - // The compiler won't synthesize support with the UNRECOGNIZED case. - static var allCases: [Stabilityai_Platformapis_Generation_V1_CameraType] = [ - .cameraPerspective, - .cameraOrthographic, - ] -} - -#endif // swift(>=4.2) - -enum Stabilityai_Platformapis_Generation_V1_RenderMode: SwiftProtobuf.Enum { - typealias RawValue = Int - case renderMesh // = 0 - case renderPointcloud // = 1 - case UNRECOGNIZED(Int) - - init() { - self = .renderMesh - } - - init?(rawValue: Int) { - switch rawValue { - case 0: self = .renderMesh - case 1: self = .renderPointcloud - default: self = .UNRECOGNIZED(rawValue) - } - } - - var rawValue: Int { - switch self { - case .renderMesh: return 0 - case .renderPointcloud: return 1 - case .UNRECOGNIZED(let i): return i - } - } - -} - -#if swift(>=4.2) - -extension Stabilityai_Platformapis_Generation_V1_RenderMode: CaseIterable { - // The compiler won't synthesize support with the UNRECOGNIZED case. - static var allCases: [Stabilityai_Platformapis_Generation_V1_RenderMode] = [ - .renderMesh, - .renderPointcloud, - ] -} - -#endif // swift(>=4.2) - -enum Stabilityai_Platformapis_Generation_V1_AssetAction: SwiftProtobuf.Enum { - typealias RawValue = Int - case assetPut // = 0 - case assetGet // = 1 - case assetDelete // = 2 - case UNRECOGNIZED(Int) - - init() { - self = .assetPut - } - - init?(rawValue: Int) { - switch rawValue { - case 0: self = .assetPut - case 1: self = .assetGet - case 2: self = .assetDelete - default: self = .UNRECOGNIZED(rawValue) - } - } - - var rawValue: Int { - switch self { - case .assetPut: return 0 - case .assetGet: return 1 - case .assetDelete: return 2 - case .UNRECOGNIZED(let i): return i - } - } - -} - -#if swift(>=4.2) - -extension Stabilityai_Platformapis_Generation_V1_AssetAction: CaseIterable { - // The compiler won't synthesize support with the UNRECOGNIZED case. - static var allCases: [Stabilityai_Platformapis_Generation_V1_AssetAction] = [ - .assetPut, - .assetGet, - .assetDelete, - ] -} - -#endif // swift(>=4.2) - -/// AssetUse defines how the asset is used within a project. This enum matches -/// the values the project proto. -enum Stabilityai_Platformapis_Generation_V1_AssetUse: SwiftProtobuf.Enum { - typealias RawValue = Int - - /// Asset does not have use defined - case undefined // = 0 - - /// Asset is used as an input for the project - case input // = 1 - - /// Asset is an output from the project - case output // = 2 - - /// Asset is an output from an intermediate step of the project - case intermediate // = 3 - - /// Asset is used as the project file for the project - case project // = 4 - case UNRECOGNIZED(Int) - - init() { - self = .undefined - } - - init?(rawValue: Int) { - switch rawValue { - case 0: self = .undefined - case 1: self = .input - case 2: self = .output - case 3: self = .intermediate - case 4: self = .project - default: self = .UNRECOGNIZED(rawValue) - } - } - - var rawValue: Int { - switch self { - case .undefined: return 0 - case .input: return 1 - case .output: return 2 - case .intermediate: return 3 - case .project: return 4 - case .UNRECOGNIZED(let i): return i - } - } - -} - -#if swift(>=4.2) - -extension Stabilityai_Platformapis_Generation_V1_AssetUse: CaseIterable { - // The compiler won't synthesize support with the UNRECOGNIZED case. - static var allCases: [Stabilityai_Platformapis_Generation_V1_AssetUse] = [ - .undefined, - .input, - .output, - .intermediate, - .project, - ] -} - -#endif // swift(>=4.2) - -enum Stabilityai_Platformapis_Generation_V1_StageAction: SwiftProtobuf.Enum { - typealias RawValue = Int - case pass // = 0 - case discard // = 1 - case `return` // = 2 - case UNRECOGNIZED(Int) - - init() { - self = .pass - } - - init?(rawValue: Int) { - switch rawValue { - case 0: self = .pass - case 1: self = .discard - case 2: self = .return - default: self = .UNRECOGNIZED(rawValue) - } - } - - var rawValue: Int { - switch self { - case .pass: return 0 - case .discard: return 1 - case .return: return 2 - case .UNRECOGNIZED(let i): return i - } - } - -} - -#if swift(>=4.2) - -extension Stabilityai_Platformapis_Generation_V1_StageAction: CaseIterable { - // The compiler won't synthesize support with the UNRECOGNIZED case. - static var allCases: [Stabilityai_Platformapis_Generation_V1_StageAction] = [ - .pass, - .discard, - .return, - ] -} - -#endif // swift(>=4.2) - -/// Generally, a GPT BPE 16-bit token, paired with an optional string representation. -struct Stabilityai_Platformapis_Generation_V1_Token { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var text: String { - get {return _text ?? String()} - set {_text = newValue} - } - /// Returns true if `text` has been explicitly set. - var hasText: Bool {return self._text != nil} - /// Clears the value of `text`. Subsequent reads from it will return its default value. - mutating func clearText() {self._text = nil} - - var id: UInt32 = 0 - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _text: String? = nil -} - -/// Sequence of tokens, paired with the id of the tokenizer used to generate them. -struct Stabilityai_Platformapis_Generation_V1_Tokens { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var tokens: [Stabilityai_Platformapis_Generation_V1_Token] = [] - - var tokenizerID: String { - get {return _tokenizerID ?? String()} - set {_tokenizerID = newValue} - } - /// Returns true if `tokenizerID` has been explicitly set. - var hasTokenizerID: Bool {return self._tokenizerID != nil} - /// Clears the value of `tokenizerID`. Subsequent reads from it will return its default value. - mutating func clearTokenizerID() {self._tokenizerID = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _tokenizerID: String? = nil -} - -/// A tangible Artifact, such as an image, video, or text that is used for input -/// or output. -struct Stabilityai_Platformapis_Generation_V1_Artifact { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var id: UInt64 = 0 - - var type: Stabilityai_Platformapis_Generation_V1_ArtifactType = .artifactNone - - /// MIME type identifier, e.g. "image/png" - var mime: String = String() - - /// Magic number, e.g. "PNG" - var magic: String { - get {return _magic ?? String()} - set {_magic = newValue} - } - /// Returns true if `magic` has been explicitly set. - var hasMagic: Bool {return self._magic != nil} - /// Clears the value of `magic`. Subsequent reads from it will return its default value. - mutating func clearMagic() {self._magic = nil} - - var data: Stabilityai_Platformapis_Generation_V1_Artifact.OneOf_Data? = nil - - /// Binary data, e.g. PNG image - var binary: Data { - get { - if case .binary(let v)? = data {return v} - return Data() - } - set {data = .binary(newValue)} - } - - /// Text data, e.g. text prompt - var text: String { - get { - if case .text(let v)? = data {return v} - return String() - } - set {data = .text(newValue)} - } - - /// Tokenized text data, e.g. GPT tokens - var tokens: Stabilityai_Platformapis_Generation_V1_Tokens { - get { - if case .tokens(let v)? = data {return v} - return Stabilityai_Platformapis_Generation_V1_Tokens() - } - set {data = .tokens(newValue)} - } - - var classifier: Stabilityai_Platformapis_Generation_V1_ClassifierParameters { - get { - if case .classifier(let v)? = data {return v} - return Stabilityai_Platformapis_Generation_V1_ClassifierParameters() - } - set {data = .classifier(newValue)} - } - - /// torch.Tensor: - var tensor: Tensors_Tensor { - get { - if case .tensor(let v)? = data {return v} - return Tensors_Tensor() - } - set {data = .tensor(newValue)} - } - - /// Index of this artifact in input/output list - var index: UInt32 = 0 - - /// Reason for finishing, if applicable - var finishReason: Stabilityai_Platformapis_Generation_V1_FinishReason = .null - - /// Seed used to generate this artifact - var seed: UInt32 = 0 - - /// UUIDv4 of the artifact, used for asset lookup - var uuid: String = String() - - /// Size of the artifact in bytes - var size: UInt64 = 0 - - var unknownFields = SwiftProtobuf.UnknownStorage() - - enum OneOf_Data: Equatable { - /// Binary data, e.g. PNG image - case binary(Data) - /// Text data, e.g. text prompt - case text(String) - /// Tokenized text data, e.g. GPT tokens - case tokens(Stabilityai_Platformapis_Generation_V1_Tokens) - case classifier(Stabilityai_Platformapis_Generation_V1_ClassifierParameters) - /// torch.Tensor: - case tensor(Tensors_Tensor) - - #if !swift(>=4.1) - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_Artifact.OneOf_Data, rhs: Stabilityai_Platformapis_Generation_V1_Artifact.OneOf_Data) -> Bool { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch (lhs, rhs) { - case (.binary, .binary): return { - guard case .binary(let l) = lhs, case .binary(let r) = rhs else { preconditionFailure() } - return l == r - }() - case (.text, .text): return { - guard case .text(let l) = lhs, case .text(let r) = rhs else { preconditionFailure() } - return l == r - }() - case (.tokens, .tokens): return { - guard case .tokens(let l) = lhs, case .tokens(let r) = rhs else { preconditionFailure() } - return l == r - }() - case (.classifier, .classifier): return { - guard case .classifier(let l) = lhs, case .classifier(let r) = rhs else { preconditionFailure() } - return l == r - }() - case (.tensor, .tensor): return { - guard case .tensor(let l) = lhs, case .tensor(let r) = rhs else { preconditionFailure() } - return l == r - }() - default: return false - } - } - #endif - } - - init() {} - - fileprivate var _magic: String? = nil -} - -/// A set of parameters for each individual Prompt. -struct Stabilityai_Platformapis_Generation_V1_PromptParameters { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - /// deprecated, no longer used - var init_p: Bool { - get {return _init_p ?? false} - set {_init_p = newValue} - } - /// Returns true if `init_p` has been explicitly set. - var hasInit_p: Bool {return self._init_p != nil} - /// Clears the value of `init_p`. Subsequent reads from it will return its default value. - mutating func clearInit_p() {self._init_p = nil} - - var weight: Float { - get {return _weight ?? 0} - set {_weight = newValue} - } - /// Returns true if `weight` has been explicitly set. - var hasWeight: Bool {return self._weight != nil} - /// Clears the value of `weight`. Subsequent reads from it will return its default value. - mutating func clearWeight() {self._weight = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _init_p: Bool? = nil - fileprivate var _weight: Float? = nil -} - -/// A Prompt is a special type of Artifact that is used to generate an output. -/// There can be multiple Prompts that affect the same output. Currently, the -/// only Prompts supported are: -/// - Text (singular) -/// - Init Image (singular, optional, type ARTIFACT_IMAGE) -/// - Mask (singular, optional, type ARTIFACT_MASK) -/// - Depth (singular, optional, type ARTIFACT_DEPTH) -struct Stabilityai_Platformapis_Generation_V1_Prompt { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var parameters: Stabilityai_Platformapis_Generation_V1_PromptParameters { - get {return _parameters ?? Stabilityai_Platformapis_Generation_V1_PromptParameters()} - set {_parameters = newValue} - } - /// Returns true if `parameters` has been explicitly set. - var hasParameters: Bool {return self._parameters != nil} - /// Clears the value of `parameters`. Subsequent reads from it will return its default value. - mutating func clearParameters() {self._parameters = nil} - - var prompt: Stabilityai_Platformapis_Generation_V1_Prompt.OneOf_Prompt? = nil - - var text: String { - get { - if case .text(let v)? = prompt {return v} - return String() - } - set {prompt = .text(newValue)} - } - - var tokens: Stabilityai_Platformapis_Generation_V1_Tokens { - get { - if case .tokens(let v)? = prompt {return v} - return Stabilityai_Platformapis_Generation_V1_Tokens() - } - set {prompt = .tokens(newValue)} - } - - var artifact: Stabilityai_Platformapis_Generation_V1_Artifact { - get { - if case .artifact(let v)? = prompt {return v} - return Stabilityai_Platformapis_Generation_V1_Artifact() - } - set {prompt = .artifact(newValue)} - } - - var unknownFields = SwiftProtobuf.UnknownStorage() - - enum OneOf_Prompt: Equatable { - case text(String) - case tokens(Stabilityai_Platformapis_Generation_V1_Tokens) - case artifact(Stabilityai_Platformapis_Generation_V1_Artifact) - - #if !swift(>=4.1) - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_Prompt.OneOf_Prompt, rhs: Stabilityai_Platformapis_Generation_V1_Prompt.OneOf_Prompt) -> Bool { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch (lhs, rhs) { - case (.text, .text): return { - guard case .text(let l) = lhs, case .text(let r) = rhs else { preconditionFailure() } - return l == r - }() - case (.tokens, .tokens): return { - guard case .tokens(let l) = lhs, case .tokens(let r) = rhs else { preconditionFailure() } - return l == r - }() - case (.artifact, .artifact): return { - guard case .artifact(let l) = lhs, case .artifact(let r) = rhs else { preconditionFailure() } - return l == r - }() - default: return false - } - } - #endif - } - - init() {} - - fileprivate var _parameters: Stabilityai_Platformapis_Generation_V1_PromptParameters? = nil -} - -/// Parameters that affect the behavior of the sampler, typically used for CFG. -struct Stabilityai_Platformapis_Generation_V1_SamplerParameters { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var eta: Float { - get {return _eta ?? 0} - set {_eta = newValue} - } - /// Returns true if `eta` has been explicitly set. - var hasEta: Bool {return self._eta != nil} - /// Clears the value of `eta`. Subsequent reads from it will return its default value. - mutating func clearEta() {self._eta = nil} - - var samplingSteps: UInt64 { - get {return _samplingSteps ?? 0} - set {_samplingSteps = newValue} - } - /// Returns true if `samplingSteps` has been explicitly set. - var hasSamplingSteps: Bool {return self._samplingSteps != nil} - /// Clears the value of `samplingSteps`. Subsequent reads from it will return its default value. - mutating func clearSamplingSteps() {self._samplingSteps = nil} - - var latentChannels: UInt64 { - get {return _latentChannels ?? 0} - set {_latentChannels = newValue} - } - /// Returns true if `latentChannels` has been explicitly set. - var hasLatentChannels: Bool {return self._latentChannels != nil} - /// Clears the value of `latentChannels`. Subsequent reads from it will return its default value. - mutating func clearLatentChannels() {self._latentChannels = nil} - - var downsamplingFactor: UInt64 { - get {return _downsamplingFactor ?? 0} - set {_downsamplingFactor = newValue} - } - /// Returns true if `downsamplingFactor` has been explicitly set. - var hasDownsamplingFactor: Bool {return self._downsamplingFactor != nil} - /// Clears the value of `downsamplingFactor`. Subsequent reads from it will return its default value. - mutating func clearDownsamplingFactor() {self._downsamplingFactor = nil} - - var cfgScale: Float { - get {return _cfgScale ?? 0} - set {_cfgScale = newValue} - } - /// Returns true if `cfgScale` has been explicitly set. - var hasCfgScale: Bool {return self._cfgScale != nil} - /// Clears the value of `cfgScale`. Subsequent reads from it will return its default value. - mutating func clearCfgScale() {self._cfgScale = nil} - - /// defaults to 0.99 - var initNoiseScale: Float { - get {return _initNoiseScale ?? 0} - set {_initNoiseScale = newValue} - } - /// Returns true if `initNoiseScale` has been explicitly set. - var hasInitNoiseScale: Bool {return self._initNoiseScale != nil} - /// Clears the value of `initNoiseScale`. Subsequent reads from it will return its default value. - mutating func clearInitNoiseScale() {self._initNoiseScale = nil} - - /// defaults to 0.99 - var stepNoiseScale: Float { - get {return _stepNoiseScale ?? 0} - set {_stepNoiseScale = newValue} - } - /// Returns true if `stepNoiseScale` has been explicitly set. - var hasStepNoiseScale: Bool {return self._stepNoiseScale != nil} - /// Clears the value of `stepNoiseScale`. Subsequent reads from it will return its default value. - mutating func clearStepNoiseScale() {self._stepNoiseScale = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _eta: Float? = nil - fileprivate var _samplingSteps: UInt64? = nil - fileprivate var _latentChannels: UInt64? = nil - fileprivate var _downsamplingFactor: UInt64? = nil - fileprivate var _cfgScale: Float? = nil - fileprivate var _initNoiseScale: Float? = nil - fileprivate var _stepNoiseScale: Float? = nil -} - -/// Unused, but reserved for future use. Adjustments to the latents after -/// initialization. -struct Stabilityai_Platformapis_Generation_V1_ConditionerParameters { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var vectorAdjustPrior: String { - get {return _vectorAdjustPrior ?? String()} - set {_vectorAdjustPrior = newValue} - } - /// Returns true if `vectorAdjustPrior` has been explicitly set. - var hasVectorAdjustPrior: Bool {return self._vectorAdjustPrior != nil} - /// Clears the value of `vectorAdjustPrior`. Subsequent reads from it will return its default value. - mutating func clearVectorAdjustPrior() {self._vectorAdjustPrior = nil} - - var conditioner: Stabilityai_Platformapis_Generation_V1_Model { - get {return _conditioner ?? Stabilityai_Platformapis_Generation_V1_Model()} - set {_conditioner = newValue} - } - /// Returns true if `conditioner` has been explicitly set. - var hasConditioner: Bool {return self._conditioner != nil} - /// Clears the value of `conditioner`. Subsequent reads from it will return its default value. - mutating func clearConditioner() {self._conditioner = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _vectorAdjustPrior: String? = nil - fileprivate var _conditioner: Stabilityai_Platformapis_Generation_V1_Model? = nil -} - -/// When does this schedule definition apply? -struct Stabilityai_Platformapis_Generation_V1_ScheduleParameters { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - /// 0.0 to 1.0 - var start: Float { - get {return _start ?? 0} - set {_start = newValue} - } - /// Returns true if `start` has been explicitly set. - var hasStart: Bool {return self._start != nil} - /// Clears the value of `start`. Subsequent reads from it will return its default value. - mutating func clearStart() {self._start = nil} - - /// 0.0 to 1.0 - var end: Float { - get {return _end ?? 0} - set {_end = newValue} - } - /// Returns true if `end` has been explicitly set. - var hasEnd: Bool {return self._end != nil} - /// Clears the value of `end`. Subsequent reads from it will return its default value. - mutating func clearEnd() {self._end = nil} - - /// float value to apply on this schedule - var value: Float { - get {return _value ?? 0} - set {_value = newValue} - } - /// Returns true if `value` has been explicitly set. - var hasValue: Bool {return self._value != nil} - /// Clears the value of `value`. Subsequent reads from it will return its default value. - mutating func clearValue() {self._value = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _start: Float? = nil - fileprivate var _end: Float? = nil - fileprivate var _value: Float? = nil -} - -/// Parameters that apply to this block of the schedule. -struct Stabilityai_Platformapis_Generation_V1_StepParameter { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var scaledStep: Float = 0 - - var sampler: Stabilityai_Platformapis_Generation_V1_SamplerParameters { - get {return _sampler ?? Stabilityai_Platformapis_Generation_V1_SamplerParameters()} - set {_sampler = newValue} - } - /// Returns true if `sampler` has been explicitly set. - var hasSampler: Bool {return self._sampler != nil} - /// Clears the value of `sampler`. Subsequent reads from it will return its default value. - mutating func clearSampler() {self._sampler = nil} - - var schedule: Stabilityai_Platformapis_Generation_V1_ScheduleParameters { - get {return _schedule ?? Stabilityai_Platformapis_Generation_V1_ScheduleParameters()} - set {_schedule = newValue} - } - /// Returns true if `schedule` has been explicitly set. - var hasSchedule: Bool {return self._schedule != nil} - /// Clears the value of `schedule`. Subsequent reads from it will return its default value. - mutating func clearSchedule() {self._schedule = nil} - - var guidance: Stabilityai_Platformapis_Generation_V1_GuidanceParameters { - get {return _guidance ?? Stabilityai_Platformapis_Generation_V1_GuidanceParameters()} - set {_guidance = newValue} - } - /// Returns true if `guidance` has been explicitly set. - var hasGuidance: Bool {return self._guidance != nil} - /// Clears the value of `guidance`. Subsequent reads from it will return its default value. - mutating func clearGuidance() {self._guidance = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _sampler: Stabilityai_Platformapis_Generation_V1_SamplerParameters? = nil - fileprivate var _schedule: Stabilityai_Platformapis_Generation_V1_ScheduleParameters? = nil - fileprivate var _guidance: Stabilityai_Platformapis_Generation_V1_GuidanceParameters? = nil -} - -struct Stabilityai_Platformapis_Generation_V1_Model { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var architecture: Stabilityai_Platformapis_Generation_V1_ModelArchitecture = .none - - var publisher: String = String() - - var dataset: String = String() - - var version: Float = 0 - - var semanticVersion: String = String() - - var alias: String = String() - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -struct Stabilityai_Platformapis_Generation_V1_CutoutParameters { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - /// Nested cutouts, unsupported - var cutouts: [Stabilityai_Platformapis_Generation_V1_CutoutParameters] = [] - - /// 0 to n, usually 8 to 32, 0 inner - var count: UInt32 { - get {return _count ?? 0} - set {_count = newValue} - } - /// Returns true if `count` has been explicitly set. - var hasCount: Bool {return self._count != nil} - /// Clears the value of `count`. Subsequent reads from it will return its default value. - mutating func clearCount() {self._count = nil} - - /// 0.0 to 1.0, defaults to 0.2 - var gray: Float { - get {return _gray ?? 0} - set {_gray = newValue} - } - /// Returns true if `gray` has been explicitly set. - var hasGray: Bool {return self._gray != nil} - /// Clears the value of `gray`. Subsequent reads from it will return its default value. - mutating func clearGray() {self._gray = nil} - - /// percentage of cutouts to blur - var blur: Float { - get {return _blur ?? 0} - set {_blur = newValue} - } - /// Returns true if `blur` has been explicitly set. - var hasBlur: Bool {return self._blur != nil} - /// Clears the value of `blur`. Subsequent reads from it will return its default value. - mutating func clearBlur() {self._blur = nil} - - /// defaults to inner: 0.5, outer: 0.0 - var sizePower: Float { - get {return _sizePower ?? 0} - set {_sizePower = newValue} - } - /// Returns true if `sizePower` has been explicitly set. - var hasSizePower: Bool {return self._sizePower != nil} - /// Clears the value of `sizePower`. Subsequent reads from it will return its default value. - mutating func clearSizePower() {self._sizePower = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _count: UInt32? = nil - fileprivate var _gray: Float? = nil - fileprivate var _blur: Float? = nil - fileprivate var _sizePower: Float? = nil -} - -/// GuidanceScheduleParameters are used to define a schedule for CLIP guidance, and -/// are used to define the behavior of the guidance over time. They are relative -/// to the total number of steps, and are scaled to the number of steps in the -/// current run. -struct Stabilityai_Platformapis_Generation_V1_GuidanceScheduleParameters { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var duration: Float = 0 - - var value: Float = 0 - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -/// Parameters that affect the behavior of the guidance, typically used for CLIP. -/// We can specify more than one model, and the guidance will be a weighted sum -/// of the models. -struct Stabilityai_Platformapis_Generation_V1_GuidanceInstanceParameters { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - /// models to use for this set - var models: [Stabilityai_Platformapis_Generation_V1_Model] { - get {return _storage._models} - set {_uniqueStorage()._models = newValue} - } - - /// 0.0 to 1.0, usually 0.05 to 0.225 - var guidanceStrength: Float { - get {return _storage._guidanceStrength ?? 0} - set {_uniqueStorage()._guidanceStrength = newValue} - } - /// Returns true if `guidanceStrength` has been explicitly set. - var hasGuidanceStrength: Bool {return _storage._guidanceStrength != nil} - /// Clears the value of `guidanceStrength`. Subsequent reads from it will return its default value. - mutating func clearGuidanceStrength() {_uniqueStorage()._guidanceStrength = nil} - - /// when to apply guidance - var schedule: [Stabilityai_Platformapis_Generation_V1_GuidanceScheduleParameters] { - get {return _storage._schedule} - set {_uniqueStorage()._schedule = newValue} - } - - /// cutout parameters - var cutouts: Stabilityai_Platformapis_Generation_V1_CutoutParameters { - get {return _storage._cutouts ?? Stabilityai_Platformapis_Generation_V1_CutoutParameters()} - set {_uniqueStorage()._cutouts = newValue} - } - /// Returns true if `cutouts` has been explicitly set. - var hasCutouts: Bool {return _storage._cutouts != nil} - /// Clears the value of `cutouts`. Subsequent reads from it will return its default value. - mutating func clearCutouts() {_uniqueStorage()._cutouts = nil} - - /// prompt to use for guidance - var prompt: Stabilityai_Platformapis_Generation_V1_Prompt { - get {return _storage._prompt ?? Stabilityai_Platformapis_Generation_V1_Prompt()} - set {_uniqueStorage()._prompt = newValue} - } - /// Returns true if `prompt` has been explicitly set. - var hasPrompt: Bool {return _storage._prompt != nil} - /// Clears the value of `prompt`. Subsequent reads from it will return its default value. - mutating func clearPrompt() {_uniqueStorage()._prompt = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _storage = _StorageClass.defaultInstance -} - -/// Parameters that affect the behavior of the guidance, typically used for CLIP. -/// The omission of this field implies the default guidance of CFG. -struct Stabilityai_Platformapis_Generation_V1_GuidanceParameters { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - /// base preset for guidance - var guidancePreset: Stabilityai_Platformapis_Generation_V1_GuidancePreset = .none - - /// guidance instances - var instances: [Stabilityai_Platformapis_Generation_V1_GuidanceInstanceParameters] = [] - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -struct Stabilityai_Platformapis_Generation_V1_TransformType { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var type: Stabilityai_Platformapis_Generation_V1_TransformType.OneOf_Type? = nil - - var diffusion: Stabilityai_Platformapis_Generation_V1_DiffusionSampler { - get { - if case .diffusion(let v)? = type {return v} - return .samplerDdim - } - set {type = .diffusion(newValue)} - } - - var upscaler: Stabilityai_Platformapis_Generation_V1_Upscaler { - get { - if case .upscaler(let v)? = type {return v} - return .rgb - } - set {type = .upscaler(newValue)} - } - - var unknownFields = SwiftProtobuf.UnknownStorage() - - enum OneOf_Type: Equatable { - case diffusion(Stabilityai_Platformapis_Generation_V1_DiffusionSampler) - case upscaler(Stabilityai_Platformapis_Generation_V1_Upscaler) - - #if !swift(>=4.1) - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_TransformType.OneOf_Type, rhs: Stabilityai_Platformapis_Generation_V1_TransformType.OneOf_Type) -> Bool { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch (lhs, rhs) { - case (.diffusion, .diffusion): return { - guard case .diffusion(let l) = lhs, case .diffusion(let r) = rhs else { preconditionFailure() } - return l == r - }() - case (.upscaler, .upscaler): return { - guard case .upscaler(let l) = lhs, case .upscaler(let r) = rhs else { preconditionFailure() } - return l == r - }() - default: return false - } - } - #endif - } - - init() {} -} - -struct Stabilityai_Platformapis_Generation_V1_ImageParameters { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var height: UInt64 { - get {return _height ?? 0} - set {_height = newValue} - } - /// Returns true if `height` has been explicitly set. - var hasHeight: Bool {return self._height != nil} - /// Clears the value of `height`. Subsequent reads from it will return its default value. - mutating func clearHeight() {self._height = nil} - - var width: UInt64 { - get {return _width ?? 0} - set {_width = newValue} - } - /// Returns true if `width` has been explicitly set. - var hasWidth: Bool {return self._width != nil} - /// Clears the value of `width`. Subsequent reads from it will return its default value. - mutating func clearWidth() {self._width = nil} - - var seed: [UInt32] = [] - - var samples: UInt64 { - get {return _samples ?? 0} - set {_samples = newValue} - } - /// Returns true if `samples` has been explicitly set. - var hasSamples: Bool {return self._samples != nil} - /// Clears the value of `samples`. Subsequent reads from it will return its default value. - mutating func clearSamples() {self._samples = nil} - - var steps: UInt64 { - get {return _steps ?? 0} - set {_steps = newValue} - } - /// Returns true if `steps` has been explicitly set. - var hasSteps: Bool {return self._steps != nil} - /// Clears the value of `steps`. Subsequent reads from it will return its default value. - mutating func clearSteps() {self._steps = nil} - - var transform: Stabilityai_Platformapis_Generation_V1_TransformType { - get {return _transform ?? Stabilityai_Platformapis_Generation_V1_TransformType()} - set {_transform = newValue} - } - /// Returns true if `transform` has been explicitly set. - var hasTransform: Bool {return self._transform != nil} - /// Clears the value of `transform`. Subsequent reads from it will return its default value. - mutating func clearTransform() {self._transform = nil} - - var parameters: [Stabilityai_Platformapis_Generation_V1_StepParameter] = [] - - /// defaults to MASKED_AREA_INIT_ZERO - var maskedAreaInit: Stabilityai_Platformapis_Generation_V1_MaskedAreaInit { - get {return _maskedAreaInit ?? .zero} - set {_maskedAreaInit = newValue} - } - /// Returns true if `maskedAreaInit` has been explicitly set. - var hasMaskedAreaInit: Bool {return self._maskedAreaInit != nil} - /// Clears the value of `maskedAreaInit`. Subsequent reads from it will return its default value. - mutating func clearMaskedAreaInit() {self._maskedAreaInit = nil} - - ///defaults to TEXT_ENCODER - var weightMethod: Stabilityai_Platformapis_Generation_V1_WeightMethod { - get {return _weightMethod ?? .textEncoder} - set {_weightMethod = newValue} - } - /// Returns true if `weightMethod` has been explicitly set. - var hasWeightMethod: Bool {return self._weightMethod != nil} - /// Clears the value of `weightMethod`. Subsequent reads from it will return its default value. - mutating func clearWeightMethod() {self._weightMethod = nil} - - ///defaults to true - var quantize: Bool { - get {return _quantize ?? false} - set {_quantize = newValue} - } - /// Returns true if `quantize` has been explicitly set. - var hasQuantize: Bool {return self._quantize != nil} - /// Clears the value of `quantize`. Subsequent reads from it will return its default value. - mutating func clearQuantize() {self._quantize = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _height: UInt64? = nil - fileprivate var _width: UInt64? = nil - fileprivate var _samples: UInt64? = nil - fileprivate var _steps: UInt64? = nil - fileprivate var _transform: Stabilityai_Platformapis_Generation_V1_TransformType? = nil - fileprivate var _maskedAreaInit: Stabilityai_Platformapis_Generation_V1_MaskedAreaInit? = nil - fileprivate var _weightMethod: Stabilityai_Platformapis_Generation_V1_WeightMethod? = nil - fileprivate var _quantize: Bool? = nil -} - -struct Stabilityai_Platformapis_Generation_V1_ClassifierConcept { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var concept: String = String() - - var threshold: Float { - get {return _threshold ?? 0} - set {_threshold = newValue} - } - /// Returns true if `threshold` has been explicitly set. - var hasThreshold: Bool {return self._threshold != nil} - /// Clears the value of `threshold`. Subsequent reads from it will return its default value. - mutating func clearThreshold() {self._threshold = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _threshold: Float? = nil -} - -struct Stabilityai_Platformapis_Generation_V1_ClassifierCategory { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var name: String = String() - - var concepts: [Stabilityai_Platformapis_Generation_V1_ClassifierConcept] = [] - - var adjustment: Float { - get {return _adjustment ?? 0} - set {_adjustment = newValue} - } - /// Returns true if `adjustment` has been explicitly set. - var hasAdjustment: Bool {return self._adjustment != nil} - /// Clears the value of `adjustment`. Subsequent reads from it will return its default value. - mutating func clearAdjustment() {self._adjustment = nil} - - var action: Stabilityai_Platformapis_Generation_V1_Action { - get {return _action ?? .passthrough} - set {_action = newValue} - } - /// Returns true if `action` has been explicitly set. - var hasAction: Bool {return self._action != nil} - /// Clears the value of `action`. Subsequent reads from it will return its default value. - mutating func clearAction() {self._action = nil} - - var classifierMode: Stabilityai_Platformapis_Generation_V1_ClassifierMode { - get {return _classifierMode ?? .clsfrModeZeroshot} - set {_classifierMode = newValue} - } - /// Returns true if `classifierMode` has been explicitly set. - var hasClassifierMode: Bool {return self._classifierMode != nil} - /// Clears the value of `classifierMode`. Subsequent reads from it will return its default value. - mutating func clearClassifierMode() {self._classifierMode = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _adjustment: Float? = nil - fileprivate var _action: Stabilityai_Platformapis_Generation_V1_Action? = nil - fileprivate var _classifierMode: Stabilityai_Platformapis_Generation_V1_ClassifierMode? = nil -} - -struct Stabilityai_Platformapis_Generation_V1_ClassifierParameters { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var categories: [Stabilityai_Platformapis_Generation_V1_ClassifierCategory] = [] - - var exceeds: [Stabilityai_Platformapis_Generation_V1_ClassifierCategory] = [] - - var realizedAction: Stabilityai_Platformapis_Generation_V1_Action { - get {return _realizedAction ?? .passthrough} - set {_realizedAction = newValue} - } - /// Returns true if `realizedAction` has been explicitly set. - var hasRealizedAction: Bool {return self._realizedAction != nil} - /// Clears the value of `realizedAction`. Subsequent reads from it will return its default value. - mutating func clearRealizedAction() {self._realizedAction = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _realizedAction: Stabilityai_Platformapis_Generation_V1_Action? = nil -} - -/// Interpolation between two images applied at specified blend ratios -struct Stabilityai_Platformapis_Generation_V1_InterpolateParameters { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var ratios: [Float] = [] - - var mode: Stabilityai_Platformapis_Generation_V1_InterpolateMode { - get {return _mode ?? .interpolateLinear} - set {_mode = newValue} - } - /// Returns true if `mode` has been explicitly set. - var hasMode: Bool {return self._mode != nil} - /// Clears the value of `mode`. Subsequent reads from it will return its default value. - mutating func clearMode() {self._mode = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _mode: Stabilityai_Platformapis_Generation_V1_InterpolateMode? = nil -} - -struct Stabilityai_Platformapis_Generation_V1_TransformColorAdjust { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - /// scale pixel intensities, 1.0 is no change - var brightness: Float { - get {return _storage._brightness ?? 0} - set {_uniqueStorage()._brightness = newValue} - } - /// Returns true if `brightness` has been explicitly set. - var hasBrightness: Bool {return _storage._brightness != nil} - /// Clears the value of `brightness`. Subsequent reads from it will return its default value. - mutating func clearBrightness() {_uniqueStorage()._brightness = nil} - - /// contrast adjustment, 1.0 is no change - var contrast: Float { - get {return _storage._contrast ?? 0} - set {_uniqueStorage()._contrast = newValue} - } - /// Returns true if `contrast` has been explicitly set. - var hasContrast: Bool {return _storage._contrast != nil} - /// Clears the value of `contrast`. Subsequent reads from it will return its default value. - mutating func clearContrast() {_uniqueStorage()._contrast = nil} - - /// -180 to 180 hue adjustment, 0.0 is no change - var hue: Float { - get {return _storage._hue ?? 0} - set {_uniqueStorage()._hue = newValue} - } - /// Returns true if `hue` has been explicitly set. - var hasHue: Bool {return _storage._hue != nil} - /// Clears the value of `hue`. Subsequent reads from it will return its default value. - mutating func clearHue() {_uniqueStorage()._hue = nil} - - /// 0.0 to 2.0 saturation scale, 1.0 is no change - var saturation: Float { - get {return _storage._saturation ?? 0} - set {_uniqueStorage()._saturation = newValue} - } - /// Returns true if `saturation` has been explicitly set. - var hasSaturation: Bool {return _storage._saturation != nil} - /// Clears the value of `saturation`. Subsequent reads from it will return its default value. - mutating func clearSaturation() {_uniqueStorage()._saturation = nil} - - /// -1.0 to 1.0 lightness adjustment, 0.0 is no change - var lightness: Float { - get {return _storage._lightness ?? 0} - set {_uniqueStorage()._lightness = newValue} - } - /// Returns true if `lightness` has been explicitly set. - var hasLightness: Bool {return _storage._lightness != nil} - /// Clears the value of `lightness`. Subsequent reads from it will return its default value. - mutating func clearLightness() {_uniqueStorage()._lightness = nil} - - /// image to color match - var matchImage: Stabilityai_Platformapis_Generation_V1_Artifact { - get {return _storage._matchImage ?? Stabilityai_Platformapis_Generation_V1_Artifact()} - set {_uniqueStorage()._matchImage = newValue} - } - /// Returns true if `matchImage` has been explicitly set. - var hasMatchImage: Bool {return _storage._matchImage != nil} - /// Clears the value of `matchImage`. Subsequent reads from it will return its default value. - mutating func clearMatchImage() {_uniqueStorage()._matchImage = nil} - - /// color match mode to use - var matchMode: Stabilityai_Platformapis_Generation_V1_ColorMatchMode { - get {return _storage._matchMode ?? .colorMatchHsv} - set {_uniqueStorage()._matchMode = newValue} - } - /// Returns true if `matchMode` has been explicitly set. - var hasMatchMode: Bool {return _storage._matchMode != nil} - /// Clears the value of `matchMode`. Subsequent reads from it will return its default value. - mutating func clearMatchMode() {_uniqueStorage()._matchMode = nil} - - /// amount of gaussian noise to add - var noiseAmount: Float { - get {return _storage._noiseAmount ?? 0} - set {_uniqueStorage()._noiseAmount = newValue} - } - /// Returns true if `noiseAmount` has been explicitly set. - var hasNoiseAmount: Bool {return _storage._noiseAmount != nil} - /// Clears the value of `noiseAmount`. Subsequent reads from it will return its default value. - mutating func clearNoiseAmount() {_uniqueStorage()._noiseAmount = nil} - - /// random seed for noise - var noiseSeed: UInt32 { - get {return _storage._noiseSeed ?? 0} - set {_uniqueStorage()._noiseSeed = newValue} - } - /// Returns true if `noiseSeed` has been explicitly set. - var hasNoiseSeed: Bool {return _storage._noiseSeed != nil} - /// Clears the value of `noiseSeed`. Subsequent reads from it will return its default value. - mutating func clearNoiseSeed() {_uniqueStorage()._noiseSeed = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _storage = _StorageClass.defaultInstance -} - -struct Stabilityai_Platformapis_Generation_V1_TransformDepthCalc { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - /// blend factor between AdaBins (0.0) and MiDaS (1.0) - var blendWeight: Float { - get {return _blendWeight ?? 0} - set {_blendWeight = newValue} - } - /// Returns true if `blendWeight` has been explicitly set. - var hasBlendWeight: Bool {return self._blendWeight != nil} - /// Clears the value of `blendWeight`. Subsequent reads from it will return its default value. - mutating func clearBlendWeight() {self._blendWeight = nil} - - /// defaults to 0.0 - var blurRadius: UInt32 { - get {return _blurRadius ?? 0} - set {_blurRadius = newValue} - } - /// Returns true if `blurRadius` has been explicitly set. - var hasBlurRadius: Bool {return self._blurRadius != nil} - /// Clears the value of `blurRadius`. Subsequent reads from it will return its default value. - mutating func clearBlurRadius() {self._blurRadius = nil} - - /// make near depths have higher values - var reverse: Bool { - get {return _reverse ?? false} - set {_reverse = newValue} - } - /// Returns true if `reverse` has been explicitly set. - var hasReverse: Bool {return self._reverse != nil} - /// Clears the value of `reverse`. Subsequent reads from it will return its default value. - mutating func clearReverse() {self._reverse = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _blendWeight: Float? = nil - fileprivate var _blurRadius: UInt32? = nil - fileprivate var _reverse: Bool? = nil -} - -struct Stabilityai_Platformapis_Generation_V1_TransformMatrix { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - /// Column-major 3x3 or 4x4 perspective matrix - /// [sx, 10, 20, tx] [x] - /// [01, sy, 21, ty] . [y] - /// [02, 12, sz, tz] [z] - /// [03, 13, 23, 33] [1] - var data: [Float] = [] - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -struct Stabilityai_Platformapis_Generation_V1_TransformResample { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - /// extrapolation of border pixels - var borderMode: Stabilityai_Platformapis_Generation_V1_BorderMode = .borderReflect - - /// 3x3 or 4x4 matrix - var transform: Stabilityai_Platformapis_Generation_V1_TransformMatrix { - get {return _transform ?? Stabilityai_Platformapis_Generation_V1_TransformMatrix()} - set {_transform = newValue} - } - /// Returns true if `transform` has been explicitly set. - var hasTransform: Bool {return self._transform != nil} - /// Clears the value of `transform`. Subsequent reads from it will return its default value. - mutating func clearTransform() {self._transform = nil} - - /// 3x3 or 4x4 matrix, defaults to identity - var prevTransform: Stabilityai_Platformapis_Generation_V1_TransformMatrix { - get {return _prevTransform ?? Stabilityai_Platformapis_Generation_V1_TransformMatrix()} - set {_prevTransform = newValue} - } - /// Returns true if `prevTransform` has been explicitly set. - var hasPrevTransform: Bool {return self._prevTransform != nil} - /// Clears the value of `prevTransform`. Subsequent reads from it will return its default value. - mutating func clearPrevTransform() {self._prevTransform = nil} - - /// depth warp factor, defaults to 1.0 - var depthWarp: Float { - get {return _depthWarp ?? 0} - set {_depthWarp = newValue} - } - /// Returns true if `depthWarp` has been explicitly set. - var hasDepthWarp: Bool {return self._depthWarp != nil} - /// Clears the value of `depthWarp`. Subsequent reads from it will return its default value. - mutating func clearDepthWarp() {self._depthWarp = nil} - - /// return inpaint mask - var exportMask: Bool { - get {return _exportMask ?? false} - set {_exportMask = newValue} - } - /// Returns true if `exportMask` has been explicitly set. - var hasExportMask: Bool {return self._exportMask != nil} - /// Clears the value of `exportMask`. Subsequent reads from it will return its default value. - mutating func clearExportMask() {self._exportMask = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _transform: Stabilityai_Platformapis_Generation_V1_TransformMatrix? = nil - fileprivate var _prevTransform: Stabilityai_Platformapis_Generation_V1_TransformMatrix? = nil - fileprivate var _depthWarp: Float? = nil - fileprivate var _exportMask: Bool? = nil -} - -struct Stabilityai_Platformapis_Generation_V1_CameraParameters { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var cameraType: Stabilityai_Platformapis_Generation_V1_CameraType = .cameraPerspective - - /// Nearest plane depth of a rendered frustum - var nearPlane: Float = 0 - - /// Farthest plane depth of a rendered frustum - var farPlane: Float = 0 - - /// Camera field of view (in degrees). Must be set for CAMERA_PERSPECTIVE type. - var fov: Float { - get {return _fov ?? 0} - set {_fov = newValue} - } - /// Returns true if `fov` has been explicitly set. - var hasFov: Bool {return self._fov != nil} - /// Clears the value of `fov`. Subsequent reads from it will return its default value. - mutating func clearFov() {self._fov = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _fov: Float? = nil -} - -struct Stabilityai_Platformapis_Generation_V1_TransformCameraPose { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - /// 4x4 transform matrix for the next frame - var worldToViewMatrix: Stabilityai_Platformapis_Generation_V1_TransformMatrix { - get {return _worldToViewMatrix ?? Stabilityai_Platformapis_Generation_V1_TransformMatrix()} - set {_worldToViewMatrix = newValue} - } - /// Returns true if `worldToViewMatrix` has been explicitly set. - var hasWorldToViewMatrix: Bool {return self._worldToViewMatrix != nil} - /// Clears the value of `worldToViewMatrix`. Subsequent reads from it will return its default value. - mutating func clearWorldToViewMatrix() {self._worldToViewMatrix = nil} - - var cameraParameters: Stabilityai_Platformapis_Generation_V1_CameraParameters { - get {return _cameraParameters ?? Stabilityai_Platformapis_Generation_V1_CameraParameters()} - set {_cameraParameters = newValue} - } - /// Returns true if `cameraParameters` has been explicitly set. - var hasCameraParameters: Bool {return self._cameraParameters != nil} - /// Clears the value of `cameraParameters`. Subsequent reads from it will return its default value. - mutating func clearCameraParameters() {self._cameraParameters = nil} - - /// Prefill masked areas with values matching the colors around the area - var doPrefill: Bool = false - - /// Both image and mask will be rendered using this method. - var renderMode: Stabilityai_Platformapis_Generation_V1_RenderMode = .renderMesh - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _worldToViewMatrix: Stabilityai_Platformapis_Generation_V1_TransformMatrix? = nil - fileprivate var _cameraParameters: Stabilityai_Platformapis_Generation_V1_CameraParameters? = nil -} - -struct Stabilityai_Platformapis_Generation_V1_TransformParameters { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var transform: Stabilityai_Platformapis_Generation_V1_TransformParameters.OneOf_Transform? = nil - - var colorAdjust: Stabilityai_Platformapis_Generation_V1_TransformColorAdjust { - get { - if case .colorAdjust(let v)? = transform {return v} - return Stabilityai_Platformapis_Generation_V1_TransformColorAdjust() - } - set {transform = .colorAdjust(newValue)} - } - - var depthCalc: Stabilityai_Platformapis_Generation_V1_TransformDepthCalc { - get { - if case .depthCalc(let v)? = transform {return v} - return Stabilityai_Platformapis_Generation_V1_TransformDepthCalc() - } - set {transform = .depthCalc(newValue)} - } - - var resample: Stabilityai_Platformapis_Generation_V1_TransformResample { - get { - if case .resample(let v)? = transform {return v} - return Stabilityai_Platformapis_Generation_V1_TransformResample() - } - set {transform = .resample(newValue)} - } - - var cameraPose: Stabilityai_Platformapis_Generation_V1_TransformCameraPose { - get { - if case .cameraPose(let v)? = transform {return v} - return Stabilityai_Platformapis_Generation_V1_TransformCameraPose() - } - set {transform = .cameraPose(newValue)} - } - - var unknownFields = SwiftProtobuf.UnknownStorage() - - enum OneOf_Transform: Equatable { - case colorAdjust(Stabilityai_Platformapis_Generation_V1_TransformColorAdjust) - case depthCalc(Stabilityai_Platformapis_Generation_V1_TransformDepthCalc) - case resample(Stabilityai_Platformapis_Generation_V1_TransformResample) - case cameraPose(Stabilityai_Platformapis_Generation_V1_TransformCameraPose) - - #if !swift(>=4.1) - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_TransformParameters.OneOf_Transform, rhs: Stabilityai_Platformapis_Generation_V1_TransformParameters.OneOf_Transform) -> Bool { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch (lhs, rhs) { - case (.colorAdjust, .colorAdjust): return { - guard case .colorAdjust(let l) = lhs, case .colorAdjust(let r) = rhs else { preconditionFailure() } - return l == r - }() - case (.depthCalc, .depthCalc): return { - guard case .depthCalc(let l) = lhs, case .depthCalc(let r) = rhs else { preconditionFailure() } - return l == r - }() - case (.resample, .resample): return { - guard case .resample(let l) = lhs, case .resample(let r) = rhs else { preconditionFailure() } - return l == r - }() - case (.cameraPose, .cameraPose): return { - guard case .cameraPose(let l) = lhs, case .cameraPose(let r) = rhs else { preconditionFailure() } - return l == r - }() - default: return false - } - } - #endif - } - - init() {} -} - -struct Stabilityai_Platformapis_Generation_V1_AssetParameters { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var action: Stabilityai_Platformapis_Generation_V1_AssetAction = .assetPut - - var projectID: String = String() - - var use: Stabilityai_Platformapis_Generation_V1_AssetUse = .undefined - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -/// AnswerMeta is a set of metadata about an answer, usually the operating -/// environment. -struct Stabilityai_Platformapis_Generation_V1_AnswerMeta { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var gpuID: String { - get {return _gpuID ?? String()} - set {_gpuID = newValue} - } - /// Returns true if `gpuID` has been explicitly set. - var hasGpuID: Bool {return self._gpuID != nil} - /// Clears the value of `gpuID`. Subsequent reads from it will return its default value. - mutating func clearGpuID() {self._gpuID = nil} - - var cpuID: String { - get {return _cpuID ?? String()} - set {_cpuID = newValue} - } - /// Returns true if `cpuID` has been explicitly set. - var hasCpuID: Bool {return self._cpuID != nil} - /// Clears the value of `cpuID`. Subsequent reads from it will return its default value. - mutating func clearCpuID() {self._cpuID = nil} - - var nodeID: String { - get {return _nodeID ?? String()} - set {_nodeID = newValue} - } - /// Returns true if `nodeID` has been explicitly set. - var hasNodeID: Bool {return self._nodeID != nil} - /// Clears the value of `nodeID`. Subsequent reads from it will return its default value. - mutating func clearNodeID() {self._nodeID = nil} - - var engineID: String { - get {return _engineID ?? String()} - set {_engineID = newValue} - } - /// Returns true if `engineID` has been explicitly set. - var hasEngineID: Bool {return self._engineID != nil} - /// Clears the value of `engineID`. Subsequent reads from it will return its default value. - mutating func clearEngineID() {self._engineID = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _gpuID: String? = nil - fileprivate var _cpuID: String? = nil - fileprivate var _nodeID: String? = nil - fileprivate var _engineID: String? = nil -} - -/// An Answer is a response to a Request. It is a set of Artifacts, which can be -/// of any type and forwarded to the client or the next stage. -struct Stabilityai_Platformapis_Generation_V1_Answer { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var answerID: String = String() - - var requestID: String = String() - - var received: UInt64 = 0 - - var created: UInt64 = 0 - - var meta: Stabilityai_Platformapis_Generation_V1_AnswerMeta { - get {return _meta ?? Stabilityai_Platformapis_Generation_V1_AnswerMeta()} - set {_meta = newValue} - } - /// Returns true if `meta` has been explicitly set. - var hasMeta: Bool {return self._meta != nil} - /// Clears the value of `meta`. Subsequent reads from it will return its default value. - mutating func clearMeta() {self._meta = nil} - - var artifacts: [Stabilityai_Platformapis_Generation_V1_Artifact] = [] - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _meta: Stabilityai_Platformapis_Generation_V1_AnswerMeta? = nil -} - -/// An AnswerBatch is a set of Answers. It can represent one or several completed -/// requests, which may be sent to the client in a single response. -struct Stabilityai_Platformapis_Generation_V1_AnswerBatch { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var batchID: String = String() - - var answers: [Stabilityai_Platformapis_Generation_V1_Answer] = [] - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -/// A Request is a set of Artifacts, which can be of any type with model or -/// transform parameters. It is sent to the server, which will respond with an -/// Answer. -struct Stabilityai_Platformapis_Generation_V1_Request { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var engineID: String { - get {return _storage._engineID} - set {_uniqueStorage()._engineID = newValue} - } - - var requestID: String { - get {return _storage._requestID} - set {_uniqueStorage()._requestID = newValue} - } - - var requestedType: Stabilityai_Platformapis_Generation_V1_ArtifactType { - get {return _storage._requestedType} - set {_uniqueStorage()._requestedType = newValue} - } - - var prompt: [Stabilityai_Platformapis_Generation_V1_Prompt] { - get {return _storage._prompt} - set {_uniqueStorage()._prompt = newValue} - } - - var params: OneOf_Params? { - get {return _storage._params} - set {_uniqueStorage()._params = newValue} - } - - var image: Stabilityai_Platformapis_Generation_V1_ImageParameters { - get { - if case .image(let v)? = _storage._params {return v} - return Stabilityai_Platformapis_Generation_V1_ImageParameters() - } - set {_uniqueStorage()._params = .image(newValue)} - } - - var classifier: Stabilityai_Platformapis_Generation_V1_ClassifierParameters { - get { - if case .classifier(let v)? = _storage._params {return v} - return Stabilityai_Platformapis_Generation_V1_ClassifierParameters() - } - set {_uniqueStorage()._params = .classifier(newValue)} - } - - var asset: Stabilityai_Platformapis_Generation_V1_AssetParameters { - get { - if case .asset(let v)? = _storage._params {return v} - return Stabilityai_Platformapis_Generation_V1_AssetParameters() - } - set {_uniqueStorage()._params = .asset(newValue)} - } - - var interpolate: Stabilityai_Platformapis_Generation_V1_InterpolateParameters { - get { - if case .interpolate(let v)? = _storage._params {return v} - return Stabilityai_Platformapis_Generation_V1_InterpolateParameters() - } - set {_uniqueStorage()._params = .interpolate(newValue)} - } - - var transform: Stabilityai_Platformapis_Generation_V1_TransformParameters { - get { - if case .transform(let v)? = _storage._params {return v} - return Stabilityai_Platformapis_Generation_V1_TransformParameters() - } - set {_uniqueStorage()._params = .transform(newValue)} - } - - var conditioner: Stabilityai_Platformapis_Generation_V1_ConditionerParameters { - get {return _storage._conditioner ?? Stabilityai_Platformapis_Generation_V1_ConditionerParameters()} - set {_uniqueStorage()._conditioner = newValue} - } - /// Returns true if `conditioner` has been explicitly set. - var hasConditioner: Bool {return _storage._conditioner != nil} - /// Clears the value of `conditioner`. Subsequent reads from it will return its default value. - mutating func clearConditioner() {_uniqueStorage()._conditioner = nil} - - /// for development use - var extras: SwiftProtobuf.Google_Protobuf_Struct { - get {return _storage._extras ?? SwiftProtobuf.Google_Protobuf_Struct()} - set {_uniqueStorage()._extras = newValue} - } - /// Returns true if `extras` has been explicitly set. - var hasExtras: Bool {return _storage._extras != nil} - /// Clears the value of `extras`. Subsequent reads from it will return its default value. - mutating func clearExtras() {_uniqueStorage()._extras = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - enum OneOf_Params: Equatable { - case image(Stabilityai_Platformapis_Generation_V1_ImageParameters) - case classifier(Stabilityai_Platformapis_Generation_V1_ClassifierParameters) - case asset(Stabilityai_Platformapis_Generation_V1_AssetParameters) - case interpolate(Stabilityai_Platformapis_Generation_V1_InterpolateParameters) - case transform(Stabilityai_Platformapis_Generation_V1_TransformParameters) - - #if !swift(>=4.1) - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_Request.OneOf_Params, rhs: Stabilityai_Platformapis_Generation_V1_Request.OneOf_Params) -> Bool { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch (lhs, rhs) { - case (.image, .image): return { - guard case .image(let l) = lhs, case .image(let r) = rhs else { preconditionFailure() } - return l == r - }() - case (.classifier, .classifier): return { - guard case .classifier(let l) = lhs, case .classifier(let r) = rhs else { preconditionFailure() } - return l == r - }() - case (.asset, .asset): return { - guard case .asset(let l) = lhs, case .asset(let r) = rhs else { preconditionFailure() } - return l == r - }() - case (.interpolate, .interpolate): return { - guard case .interpolate(let l) = lhs, case .interpolate(let r) = rhs else { preconditionFailure() } - return l == r - }() - case (.transform, .transform): return { - guard case .transform(let l) = lhs, case .transform(let r) = rhs else { preconditionFailure() } - return l == r - }() - default: return false - } - } - #endif - } - - init() {} - - fileprivate var _storage = _StorageClass.defaultInstance -} - -struct Stabilityai_Platformapis_Generation_V1_OnStatus { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var reason: [Stabilityai_Platformapis_Generation_V1_FinishReason] = [] - - var target: String { - get {return _target ?? String()} - set {_target = newValue} - } - /// Returns true if `target` has been explicitly set. - var hasTarget: Bool {return self._target != nil} - /// Clears the value of `target`. Subsequent reads from it will return its default value. - mutating func clearTarget() {self._target = nil} - - var action: [Stabilityai_Platformapis_Generation_V1_StageAction] = [] - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _target: String? = nil -} - -struct Stabilityai_Platformapis_Generation_V1_Stage { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var id: String = String() - - var request: Stabilityai_Platformapis_Generation_V1_Request { - get {return _request ?? Stabilityai_Platformapis_Generation_V1_Request()} - set {_request = newValue} - } - /// Returns true if `request` has been explicitly set. - var hasRequest: Bool {return self._request != nil} - /// Clears the value of `request`. Subsequent reads from it will return its default value. - mutating func clearRequest() {self._request = nil} - - var onStatus: [Stabilityai_Platformapis_Generation_V1_OnStatus] = [] - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _request: Stabilityai_Platformapis_Generation_V1_Request? = nil -} - -struct Stabilityai_Platformapis_Generation_V1_ChainRequest { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var requestID: String = String() - - var stage: [Stabilityai_Platformapis_Generation_V1_Stage] = [] - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -#if swift(>=5.5) && canImport(_Concurrency) -extension Stabilityai_Platformapis_Generation_V1_FinishReason: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_ArtifactType: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_MaskedAreaInit: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_WeightMethod: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_DiffusionSampler: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_Upscaler: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_GuidancePreset: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_ModelArchitecture: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_Action: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_ClassifierMode: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_InterpolateMode: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_BorderMode: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_ColorMatchMode: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_CameraType: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_RenderMode: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_AssetAction: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_AssetUse: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_StageAction: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_Token: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_Tokens: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_Artifact: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_Artifact.OneOf_Data: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_PromptParameters: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_Prompt: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_Prompt.OneOf_Prompt: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_SamplerParameters: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_ConditionerParameters: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_ScheduleParameters: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_StepParameter: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_Model: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_CutoutParameters: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_GuidanceScheduleParameters: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_GuidanceInstanceParameters: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_GuidanceParameters: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_TransformType: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_TransformType.OneOf_Type: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_ImageParameters: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_ClassifierConcept: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_ClassifierCategory: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_ClassifierParameters: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_InterpolateParameters: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_TransformColorAdjust: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_TransformDepthCalc: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_TransformMatrix: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_TransformResample: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_CameraParameters: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_TransformCameraPose: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_TransformParameters: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_TransformParameters.OneOf_Transform: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_AssetParameters: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_AnswerMeta: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_Answer: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_AnswerBatch: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_Request: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_Request.OneOf_Params: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_OnStatus: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_Stage: @unchecked Sendable {} -extension Stabilityai_Platformapis_Generation_V1_ChainRequest: @unchecked Sendable {} -#endif // swift(>=5.5) && canImport(_Concurrency) - -// MARK: - Code below here is support for the SwiftProtobuf runtime. - -fileprivate let _protobuf_package = "stabilityai.platformapis.generation.v1" - -extension Stabilityai_Platformapis_Generation_V1_FinishReason: SwiftProtobuf._ProtoNameProviding { - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "NULL"), - 1: .same(proto: "LENGTH"), - 2: .same(proto: "STOP"), - 3: .same(proto: "ERROR"), - 4: .same(proto: "FILTER"), - ] -} - -extension Stabilityai_Platformapis_Generation_V1_ArtifactType: SwiftProtobuf._ProtoNameProviding { - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "ARTIFACT_NONE"), - 1: .same(proto: "ARTIFACT_IMAGE"), - 2: .same(proto: "ARTIFACT_VIDEO"), - 3: .same(proto: "ARTIFACT_TEXT"), - 4: .same(proto: "ARTIFACT_TOKENS"), - 5: .same(proto: "ARTIFACT_EMBEDDING"), - 6: .same(proto: "ARTIFACT_CLASSIFICATIONS"), - 7: .same(proto: "ARTIFACT_MASK"), - 8: .same(proto: "ARTIFACT_LATENT"), - 9: .same(proto: "ARTIFACT_TENSOR"), - 10: .same(proto: "ARTIFACT_DEPTH"), - ] -} - -extension Stabilityai_Platformapis_Generation_V1_MaskedAreaInit: SwiftProtobuf._ProtoNameProviding { - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "MASKED_AREA_INIT_ZERO"), - 1: .same(proto: "MASKED_AREA_INIT_RANDOM"), - 2: .same(proto: "MASKED_AREA_INIT_ORIGINAL"), - ] -} - -extension Stabilityai_Platformapis_Generation_V1_WeightMethod: SwiftProtobuf._ProtoNameProviding { - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "TEXT_ENCODER"), - 1: .same(proto: "CROSS_ATTENTION"), - ] -} - -extension Stabilityai_Platformapis_Generation_V1_DiffusionSampler: SwiftProtobuf._ProtoNameProviding { - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "SAMPLER_DDIM"), - 1: .same(proto: "SAMPLER_DDPM"), - 2: .same(proto: "SAMPLER_K_EULER"), - 3: .same(proto: "SAMPLER_K_EULER_ANCESTRAL"), - 4: .same(proto: "SAMPLER_K_HEUN"), - 5: .same(proto: "SAMPLER_K_DPM_2"), - 6: .same(proto: "SAMPLER_K_DPM_2_ANCESTRAL"), - 7: .same(proto: "SAMPLER_K_LMS"), - 8: .same(proto: "SAMPLER_K_DPMPP_2S_ANCESTRAL"), - 9: .same(proto: "SAMPLER_K_DPMPP_2M"), - 10: .same(proto: "SAMPLER_K_DPMPP_SDE"), - ] -} - -extension Stabilityai_Platformapis_Generation_V1_Upscaler: SwiftProtobuf._ProtoNameProviding { - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "UPSCALER_RGB"), - 1: .same(proto: "UPSCALER_GFPGAN"), - 2: .same(proto: "UPSCALER_ESRGAN"), - ] -} - -extension Stabilityai_Platformapis_Generation_V1_GuidancePreset: SwiftProtobuf._ProtoNameProviding { - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "GUIDANCE_PRESET_NONE"), - 1: .same(proto: "GUIDANCE_PRESET_SIMPLE"), - 2: .same(proto: "GUIDANCE_PRESET_FAST_BLUE"), - 3: .same(proto: "GUIDANCE_PRESET_FAST_GREEN"), - 4: .same(proto: "GUIDANCE_PRESET_SLOW"), - 5: .same(proto: "GUIDANCE_PRESET_SLOWER"), - 6: .same(proto: "GUIDANCE_PRESET_SLOWEST"), - ] -} - -extension Stabilityai_Platformapis_Generation_V1_ModelArchitecture: SwiftProtobuf._ProtoNameProviding { - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "MODEL_ARCHITECTURE_NONE"), - 1: .same(proto: "MODEL_ARCHITECTURE_CLIP_VIT"), - 2: .same(proto: "MODEL_ARCHITECTURE_CLIP_RESNET"), - 3: .same(proto: "MODEL_ARCHITECTURE_LDM"), - ] -} - -extension Stabilityai_Platformapis_Generation_V1_Action: SwiftProtobuf._ProtoNameProviding { - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "ACTION_PASSTHROUGH"), - 1: .same(proto: "ACTION_REGENERATE_DUPLICATE"), - 2: .same(proto: "ACTION_REGENERATE"), - 3: .same(proto: "ACTION_OBFUSCATE_DUPLICATE"), - 4: .same(proto: "ACTION_OBFUSCATE"), - 5: .same(proto: "ACTION_DISCARD"), - ] -} - -extension Stabilityai_Platformapis_Generation_V1_ClassifierMode: SwiftProtobuf._ProtoNameProviding { - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "CLSFR_MODE_ZEROSHOT"), - 1: .same(proto: "CLSFR_MODE_MULTICLASS"), - ] -} - -extension Stabilityai_Platformapis_Generation_V1_InterpolateMode: SwiftProtobuf._ProtoNameProviding { - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "INTERPOLATE_LINEAR"), - 1: .same(proto: "INTERPOLATE_RIFE"), - 2: .same(proto: "INTERPOLATE_VAE_LINEAR"), - 3: .same(proto: "INTERPOLATE_VAE_SLERP"), - 4: .same(proto: "INTERPOLATE_FILM"), - ] -} - -extension Stabilityai_Platformapis_Generation_V1_BorderMode: SwiftProtobuf._ProtoNameProviding { - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "BORDER_REFLECT"), - 1: .same(proto: "BORDER_REPLICATE"), - 2: .same(proto: "BORDER_WRAP"), - 3: .same(proto: "BORDER_ZERO"), - 4: .same(proto: "BORDER_PREFILL"), - ] -} - -extension Stabilityai_Platformapis_Generation_V1_ColorMatchMode: SwiftProtobuf._ProtoNameProviding { - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "COLOR_MATCH_HSV"), - 1: .same(proto: "COLOR_MATCH_LAB"), - 2: .same(proto: "COLOR_MATCH_RGB"), - ] -} - -extension Stabilityai_Platformapis_Generation_V1_CameraType: SwiftProtobuf._ProtoNameProviding { - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "CAMERA_PERSPECTIVE"), - 1: .same(proto: "CAMERA_ORTHOGRAPHIC"), - ] -} - -extension Stabilityai_Platformapis_Generation_V1_RenderMode: SwiftProtobuf._ProtoNameProviding { - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "RENDER_MESH"), - 1: .same(proto: "RENDER_POINTCLOUD"), - ] -} - -extension Stabilityai_Platformapis_Generation_V1_AssetAction: SwiftProtobuf._ProtoNameProviding { - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "ASSET_PUT"), - 1: .same(proto: "ASSET_GET"), - 2: .same(proto: "ASSET_DELETE"), - ] -} - -extension Stabilityai_Platformapis_Generation_V1_AssetUse: SwiftProtobuf._ProtoNameProviding { - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "ASSET_USE_UNDEFINED"), - 1: .same(proto: "ASSET_USE_INPUT"), - 2: .same(proto: "ASSET_USE_OUTPUT"), - 3: .same(proto: "ASSET_USE_INTERMEDIATE"), - 4: .same(proto: "ASSET_USE_PROJECT"), - ] -} - -extension Stabilityai_Platformapis_Generation_V1_StageAction: SwiftProtobuf._ProtoNameProviding { - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "STAGE_ACTION_PASS"), - 1: .same(proto: "STAGE_ACTION_DISCARD"), - 2: .same(proto: "STAGE_ACTION_RETURN"), - ] -} - -extension Stabilityai_Platformapis_Generation_V1_Token: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".Token" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "text"), - 2: .same(proto: "id"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self._text) }() - case 2: try { try decoder.decodeSingularUInt32Field(value: &self.id) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - try { if let v = self._text { - try visitor.visitSingularStringField(value: v, fieldNumber: 1) - } }() - if self.id != 0 { - try visitor.visitSingularUInt32Field(value: self.id, fieldNumber: 2) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_Token, rhs: Stabilityai_Platformapis_Generation_V1_Token) -> Bool { - if lhs._text != rhs._text {return false} - if lhs.id != rhs.id {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_Tokens: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".Tokens" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "tokens"), - 2: .standard(proto: "tokenizer_id"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeRepeatedMessageField(value: &self.tokens) }() - case 2: try { try decoder.decodeSingularStringField(value: &self._tokenizerID) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !self.tokens.isEmpty { - try visitor.visitRepeatedMessageField(value: self.tokens, fieldNumber: 1) - } - try { if let v = self._tokenizerID { - try visitor.visitSingularStringField(value: v, fieldNumber: 2) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_Tokens, rhs: Stabilityai_Platformapis_Generation_V1_Tokens) -> Bool { - if lhs.tokens != rhs.tokens {return false} - if lhs._tokenizerID != rhs._tokenizerID {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_Artifact: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".Artifact" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .same(proto: "type"), - 3: .same(proto: "mime"), - 4: .same(proto: "magic"), - 5: .same(proto: "binary"), - 6: .same(proto: "text"), - 7: .same(proto: "tokens"), - 11: .same(proto: "classifier"), - 14: .same(proto: "tensor"), - 8: .same(proto: "index"), - 9: .standard(proto: "finish_reason"), - 10: .same(proto: "seed"), - 12: .same(proto: "uuid"), - 13: .same(proto: "size"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularUInt64Field(value: &self.id) }() - case 2: try { try decoder.decodeSingularEnumField(value: &self.type) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.mime) }() - case 4: try { try decoder.decodeSingularStringField(value: &self._magic) }() - case 5: try { - var v: Data? - try decoder.decodeSingularBytesField(value: &v) - if let v = v { - if self.data != nil {try decoder.handleConflictingOneOf()} - self.data = .binary(v) - } - }() - case 6: try { - var v: String? - try decoder.decodeSingularStringField(value: &v) - if let v = v { - if self.data != nil {try decoder.handleConflictingOneOf()} - self.data = .text(v) - } - }() - case 7: try { - var v: Stabilityai_Platformapis_Generation_V1_Tokens? - var hadOneofValue = false - if let current = self.data { - hadOneofValue = true - if case .tokens(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.data = .tokens(v) - } - }() - case 8: try { try decoder.decodeSingularUInt32Field(value: &self.index) }() - case 9: try { try decoder.decodeSingularEnumField(value: &self.finishReason) }() - case 10: try { try decoder.decodeSingularUInt32Field(value: &self.seed) }() - case 11: try { - var v: Stabilityai_Platformapis_Generation_V1_ClassifierParameters? - var hadOneofValue = false - if let current = self.data { - hadOneofValue = true - if case .classifier(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.data = .classifier(v) - } - }() - case 12: try { try decoder.decodeSingularStringField(value: &self.uuid) }() - case 13: try { try decoder.decodeSingularUInt64Field(value: &self.size) }() - case 14: try { - var v: Tensors_Tensor? - var hadOneofValue = false - if let current = self.data { - hadOneofValue = true - if case .tensor(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.data = .tensor(v) - } - }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if self.id != 0 { - try visitor.visitSingularUInt64Field(value: self.id, fieldNumber: 1) - } - if self.type != .artifactNone { - try visitor.visitSingularEnumField(value: self.type, fieldNumber: 2) - } - if !self.mime.isEmpty { - try visitor.visitSingularStringField(value: self.mime, fieldNumber: 3) - } - try { if let v = self._magic { - try visitor.visitSingularStringField(value: v, fieldNumber: 4) - } }() - switch self.data { - case .binary?: try { - guard case .binary(let v)? = self.data else { preconditionFailure() } - try visitor.visitSingularBytesField(value: v, fieldNumber: 5) - }() - case .text?: try { - guard case .text(let v)? = self.data else { preconditionFailure() } - try visitor.visitSingularStringField(value: v, fieldNumber: 6) - }() - case .tokens?: try { - guard case .tokens(let v)? = self.data else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 7) - }() - default: break - } - if self.index != 0 { - try visitor.visitSingularUInt32Field(value: self.index, fieldNumber: 8) - } - if self.finishReason != .null { - try visitor.visitSingularEnumField(value: self.finishReason, fieldNumber: 9) - } - if self.seed != 0 { - try visitor.visitSingularUInt32Field(value: self.seed, fieldNumber: 10) - } - try { if case .classifier(let v)? = self.data { - try visitor.visitSingularMessageField(value: v, fieldNumber: 11) - } }() - if !self.uuid.isEmpty { - try visitor.visitSingularStringField(value: self.uuid, fieldNumber: 12) - } - if self.size != 0 { - try visitor.visitSingularUInt64Field(value: self.size, fieldNumber: 13) - } - try { if case .tensor(let v)? = self.data { - try visitor.visitSingularMessageField(value: v, fieldNumber: 14) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_Artifact, rhs: Stabilityai_Platformapis_Generation_V1_Artifact) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.type != rhs.type {return false} - if lhs.mime != rhs.mime {return false} - if lhs._magic != rhs._magic {return false} - if lhs.data != rhs.data {return false} - if lhs.index != rhs.index {return false} - if lhs.finishReason != rhs.finishReason {return false} - if lhs.seed != rhs.seed {return false} - if lhs.uuid != rhs.uuid {return false} - if lhs.size != rhs.size {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_PromptParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".PromptParameters" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "init"), - 2: .same(proto: "weight"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularBoolField(value: &self._init_p) }() - case 2: try { try decoder.decodeSingularFloatField(value: &self._weight) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - try { if let v = self._init_p { - try visitor.visitSingularBoolField(value: v, fieldNumber: 1) - } }() - try { if let v = self._weight { - try visitor.visitSingularFloatField(value: v, fieldNumber: 2) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_PromptParameters, rhs: Stabilityai_Platformapis_Generation_V1_PromptParameters) -> Bool { - if lhs._init_p != rhs._init_p {return false} - if lhs._weight != rhs._weight {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_Prompt: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".Prompt" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "parameters"), - 2: .same(proto: "text"), - 3: .same(proto: "tokens"), - 4: .same(proto: "artifact"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularMessageField(value: &self._parameters) }() - case 2: try { - var v: String? - try decoder.decodeSingularStringField(value: &v) - if let v = v { - if self.prompt != nil {try decoder.handleConflictingOneOf()} - self.prompt = .text(v) - } - }() - case 3: try { - var v: Stabilityai_Platformapis_Generation_V1_Tokens? - var hadOneofValue = false - if let current = self.prompt { - hadOneofValue = true - if case .tokens(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.prompt = .tokens(v) - } - }() - case 4: try { - var v: Stabilityai_Platformapis_Generation_V1_Artifact? - var hadOneofValue = false - if let current = self.prompt { - hadOneofValue = true - if case .artifact(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.prompt = .artifact(v) - } - }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - try { if let v = self._parameters { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - switch self.prompt { - case .text?: try { - guard case .text(let v)? = self.prompt else { preconditionFailure() } - try visitor.visitSingularStringField(value: v, fieldNumber: 2) - }() - case .tokens?: try { - guard case .tokens(let v)? = self.prompt else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - }() - case .artifact?: try { - guard case .artifact(let v)? = self.prompt else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - }() - case nil: break - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_Prompt, rhs: Stabilityai_Platformapis_Generation_V1_Prompt) -> Bool { - if lhs._parameters != rhs._parameters {return false} - if lhs.prompt != rhs.prompt {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_SamplerParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".SamplerParameters" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "eta"), - 2: .standard(proto: "sampling_steps"), - 3: .standard(proto: "latent_channels"), - 4: .standard(proto: "downsampling_factor"), - 5: .standard(proto: "cfg_scale"), - 6: .standard(proto: "init_noise_scale"), - 7: .standard(proto: "step_noise_scale"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularFloatField(value: &self._eta) }() - case 2: try { try decoder.decodeSingularUInt64Field(value: &self._samplingSteps) }() - case 3: try { try decoder.decodeSingularUInt64Field(value: &self._latentChannels) }() - case 4: try { try decoder.decodeSingularUInt64Field(value: &self._downsamplingFactor) }() - case 5: try { try decoder.decodeSingularFloatField(value: &self._cfgScale) }() - case 6: try { try decoder.decodeSingularFloatField(value: &self._initNoiseScale) }() - case 7: try { try decoder.decodeSingularFloatField(value: &self._stepNoiseScale) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - try { if let v = self._eta { - try visitor.visitSingularFloatField(value: v, fieldNumber: 1) - } }() - try { if let v = self._samplingSteps { - try visitor.visitSingularUInt64Field(value: v, fieldNumber: 2) - } }() - try { if let v = self._latentChannels { - try visitor.visitSingularUInt64Field(value: v, fieldNumber: 3) - } }() - try { if let v = self._downsamplingFactor { - try visitor.visitSingularUInt64Field(value: v, fieldNumber: 4) - } }() - try { if let v = self._cfgScale { - try visitor.visitSingularFloatField(value: v, fieldNumber: 5) - } }() - try { if let v = self._initNoiseScale { - try visitor.visitSingularFloatField(value: v, fieldNumber: 6) - } }() - try { if let v = self._stepNoiseScale { - try visitor.visitSingularFloatField(value: v, fieldNumber: 7) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_SamplerParameters, rhs: Stabilityai_Platformapis_Generation_V1_SamplerParameters) -> Bool { - if lhs._eta != rhs._eta {return false} - if lhs._samplingSteps != rhs._samplingSteps {return false} - if lhs._latentChannels != rhs._latentChannels {return false} - if lhs._downsamplingFactor != rhs._downsamplingFactor {return false} - if lhs._cfgScale != rhs._cfgScale {return false} - if lhs._initNoiseScale != rhs._initNoiseScale {return false} - if lhs._stepNoiseScale != rhs._stepNoiseScale {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_ConditionerParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".ConditionerParameters" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "vector_adjust_prior"), - 2: .same(proto: "conditioner"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self._vectorAdjustPrior) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._conditioner) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - try { if let v = self._vectorAdjustPrior { - try visitor.visitSingularStringField(value: v, fieldNumber: 1) - } }() - try { if let v = self._conditioner { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_ConditionerParameters, rhs: Stabilityai_Platformapis_Generation_V1_ConditionerParameters) -> Bool { - if lhs._vectorAdjustPrior != rhs._vectorAdjustPrior {return false} - if lhs._conditioner != rhs._conditioner {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_ScheduleParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".ScheduleParameters" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "start"), - 2: .same(proto: "end"), - 3: .same(proto: "value"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularFloatField(value: &self._start) }() - case 2: try { try decoder.decodeSingularFloatField(value: &self._end) }() - case 3: try { try decoder.decodeSingularFloatField(value: &self._value) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - try { if let v = self._start { - try visitor.visitSingularFloatField(value: v, fieldNumber: 1) - } }() - try { if let v = self._end { - try visitor.visitSingularFloatField(value: v, fieldNumber: 2) - } }() - try { if let v = self._value { - try visitor.visitSingularFloatField(value: v, fieldNumber: 3) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_ScheduleParameters, rhs: Stabilityai_Platformapis_Generation_V1_ScheduleParameters) -> Bool { - if lhs._start != rhs._start {return false} - if lhs._end != rhs._end {return false} - if lhs._value != rhs._value {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_StepParameter: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".StepParameter" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "scaled_step"), - 2: .same(proto: "sampler"), - 3: .same(proto: "schedule"), - 4: .same(proto: "guidance"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularFloatField(value: &self.scaledStep) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._sampler) }() - case 3: try { try decoder.decodeSingularMessageField(value: &self._schedule) }() - case 4: try { try decoder.decodeSingularMessageField(value: &self._guidance) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if self.scaledStep != 0 { - try visitor.visitSingularFloatField(value: self.scaledStep, fieldNumber: 1) - } - try { if let v = self._sampler { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try { if let v = self._schedule { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - try { if let v = self._guidance { - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_StepParameter, rhs: Stabilityai_Platformapis_Generation_V1_StepParameter) -> Bool { - if lhs.scaledStep != rhs.scaledStep {return false} - if lhs._sampler != rhs._sampler {return false} - if lhs._schedule != rhs._schedule {return false} - if lhs._guidance != rhs._guidance {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_Model: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".Model" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "architecture"), - 2: .same(proto: "publisher"), - 3: .same(proto: "dataset"), - 4: .same(proto: "version"), - 5: .standard(proto: "semantic_version"), - 6: .same(proto: "alias"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularEnumField(value: &self.architecture) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.publisher) }() - case 3: try { try decoder.decodeSingularStringField(value: &self.dataset) }() - case 4: try { try decoder.decodeSingularFloatField(value: &self.version) }() - case 5: try { try decoder.decodeSingularStringField(value: &self.semanticVersion) }() - case 6: try { try decoder.decodeSingularStringField(value: &self.alias) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if self.architecture != .none { - try visitor.visitSingularEnumField(value: self.architecture, fieldNumber: 1) - } - if !self.publisher.isEmpty { - try visitor.visitSingularStringField(value: self.publisher, fieldNumber: 2) - } - if !self.dataset.isEmpty { - try visitor.visitSingularStringField(value: self.dataset, fieldNumber: 3) - } - if self.version != 0 { - try visitor.visitSingularFloatField(value: self.version, fieldNumber: 4) - } - if !self.semanticVersion.isEmpty { - try visitor.visitSingularStringField(value: self.semanticVersion, fieldNumber: 5) - } - if !self.alias.isEmpty { - try visitor.visitSingularStringField(value: self.alias, fieldNumber: 6) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_Model, rhs: Stabilityai_Platformapis_Generation_V1_Model) -> Bool { - if lhs.architecture != rhs.architecture {return false} - if lhs.publisher != rhs.publisher {return false} - if lhs.dataset != rhs.dataset {return false} - if lhs.version != rhs.version {return false} - if lhs.semanticVersion != rhs.semanticVersion {return false} - if lhs.alias != rhs.alias {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_CutoutParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".CutoutParameters" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "cutouts"), - 2: .same(proto: "count"), - 3: .same(proto: "gray"), - 4: .same(proto: "blur"), - 5: .standard(proto: "size_power"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeRepeatedMessageField(value: &self.cutouts) }() - case 2: try { try decoder.decodeSingularUInt32Field(value: &self._count) }() - case 3: try { try decoder.decodeSingularFloatField(value: &self._gray) }() - case 4: try { try decoder.decodeSingularFloatField(value: &self._blur) }() - case 5: try { try decoder.decodeSingularFloatField(value: &self._sizePower) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !self.cutouts.isEmpty { - try visitor.visitRepeatedMessageField(value: self.cutouts, fieldNumber: 1) - } - try { if let v = self._count { - try visitor.visitSingularUInt32Field(value: v, fieldNumber: 2) - } }() - try { if let v = self._gray { - try visitor.visitSingularFloatField(value: v, fieldNumber: 3) - } }() - try { if let v = self._blur { - try visitor.visitSingularFloatField(value: v, fieldNumber: 4) - } }() - try { if let v = self._sizePower { - try visitor.visitSingularFloatField(value: v, fieldNumber: 5) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_CutoutParameters, rhs: Stabilityai_Platformapis_Generation_V1_CutoutParameters) -> Bool { - if lhs.cutouts != rhs.cutouts {return false} - if lhs._count != rhs._count {return false} - if lhs._gray != rhs._gray {return false} - if lhs._blur != rhs._blur {return false} - if lhs._sizePower != rhs._sizePower {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_GuidanceScheduleParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".GuidanceScheduleParameters" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "duration"), - 2: .same(proto: "value"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularFloatField(value: &self.duration) }() - case 2: try { try decoder.decodeSingularFloatField(value: &self.value) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if self.duration != 0 { - try visitor.visitSingularFloatField(value: self.duration, fieldNumber: 1) - } - if self.value != 0 { - try visitor.visitSingularFloatField(value: self.value, fieldNumber: 2) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_GuidanceScheduleParameters, rhs: Stabilityai_Platformapis_Generation_V1_GuidanceScheduleParameters) -> Bool { - if lhs.duration != rhs.duration {return false} - if lhs.value != rhs.value {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_GuidanceInstanceParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".GuidanceInstanceParameters" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 2: .same(proto: "models"), - 3: .standard(proto: "guidance_strength"), - 4: .same(proto: "schedule"), - 5: .same(proto: "cutouts"), - 6: .same(proto: "prompt"), - ] - - fileprivate class _StorageClass { - var _models: [Stabilityai_Platformapis_Generation_V1_Model] = [] - var _guidanceStrength: Float? = nil - var _schedule: [Stabilityai_Platformapis_Generation_V1_GuidanceScheduleParameters] = [] - var _cutouts: Stabilityai_Platformapis_Generation_V1_CutoutParameters? = nil - var _prompt: Stabilityai_Platformapis_Generation_V1_Prompt? = nil - - static let defaultInstance = _StorageClass() - - private init() {} - - init(copying source: _StorageClass) { - _models = source._models - _guidanceStrength = source._guidanceStrength - _schedule = source._schedule - _cutouts = source._cutouts - _prompt = source._prompt - } - } - - fileprivate mutating func _uniqueStorage() -> _StorageClass { - if !isKnownUniquelyReferenced(&_storage) { - _storage = _StorageClass(copying: _storage) - } - return _storage - } - - mutating func decodeMessage(decoder: inout D) throws { - _ = _uniqueStorage() - try withExtendedLifetime(_storage) { (_storage: _StorageClass) in - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 2: try { try decoder.decodeRepeatedMessageField(value: &_storage._models) }() - case 3: try { try decoder.decodeSingularFloatField(value: &_storage._guidanceStrength) }() - case 4: try { try decoder.decodeRepeatedMessageField(value: &_storage._schedule) }() - case 5: try { try decoder.decodeSingularMessageField(value: &_storage._cutouts) }() - case 6: try { try decoder.decodeSingularMessageField(value: &_storage._prompt) }() - default: break - } - } - } - } - - func traverse(visitor: inout V) throws { - try withExtendedLifetime(_storage) { (_storage: _StorageClass) in - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !_storage._models.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._models, fieldNumber: 2) - } - try { if let v = _storage._guidanceStrength { - try visitor.visitSingularFloatField(value: v, fieldNumber: 3) - } }() - if !_storage._schedule.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._schedule, fieldNumber: 4) - } - try { if let v = _storage._cutouts { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() - try { if let v = _storage._prompt { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_GuidanceInstanceParameters, rhs: Stabilityai_Platformapis_Generation_V1_GuidanceInstanceParameters) -> Bool { - if lhs._storage !== rhs._storage { - let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in - let _storage = _args.0 - let rhs_storage = _args.1 - if _storage._models != rhs_storage._models {return false} - if _storage._guidanceStrength != rhs_storage._guidanceStrength {return false} - if _storage._schedule != rhs_storage._schedule {return false} - if _storage._cutouts != rhs_storage._cutouts {return false} - if _storage._prompt != rhs_storage._prompt {return false} - return true - } - if !storagesAreEqual {return false} - } - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_GuidanceParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".GuidanceParameters" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "guidance_preset"), - 2: .same(proto: "instances"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularEnumField(value: &self.guidancePreset) }() - case 2: try { try decoder.decodeRepeatedMessageField(value: &self.instances) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if self.guidancePreset != .none { - try visitor.visitSingularEnumField(value: self.guidancePreset, fieldNumber: 1) - } - if !self.instances.isEmpty { - try visitor.visitRepeatedMessageField(value: self.instances, fieldNumber: 2) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_GuidanceParameters, rhs: Stabilityai_Platformapis_Generation_V1_GuidanceParameters) -> Bool { - if lhs.guidancePreset != rhs.guidancePreset {return false} - if lhs.instances != rhs.instances {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_TransformType: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".TransformType" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "diffusion"), - 2: .same(proto: "upscaler"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { - var v: Stabilityai_Platformapis_Generation_V1_DiffusionSampler? - try decoder.decodeSingularEnumField(value: &v) - if let v = v { - if self.type != nil {try decoder.handleConflictingOneOf()} - self.type = .diffusion(v) - } - }() - case 2: try { - var v: Stabilityai_Platformapis_Generation_V1_Upscaler? - try decoder.decodeSingularEnumField(value: &v) - if let v = v { - if self.type != nil {try decoder.handleConflictingOneOf()} - self.type = .upscaler(v) - } - }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - switch self.type { - case .diffusion?: try { - guard case .diffusion(let v)? = self.type else { preconditionFailure() } - try visitor.visitSingularEnumField(value: v, fieldNumber: 1) - }() - case .upscaler?: try { - guard case .upscaler(let v)? = self.type else { preconditionFailure() } - try visitor.visitSingularEnumField(value: v, fieldNumber: 2) - }() - case nil: break - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_TransformType, rhs: Stabilityai_Platformapis_Generation_V1_TransformType) -> Bool { - if lhs.type != rhs.type {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_ImageParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".ImageParameters" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "height"), - 2: .same(proto: "width"), - 3: .same(proto: "seed"), - 4: .same(proto: "samples"), - 5: .same(proto: "steps"), - 6: .same(proto: "transform"), - 7: .same(proto: "parameters"), - 8: .standard(proto: "masked_area_init"), - 9: .standard(proto: "weight_method"), - 10: .same(proto: "quantize"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularUInt64Field(value: &self._height) }() - case 2: try { try decoder.decodeSingularUInt64Field(value: &self._width) }() - case 3: try { try decoder.decodeRepeatedUInt32Field(value: &self.seed) }() - case 4: try { try decoder.decodeSingularUInt64Field(value: &self._samples) }() - case 5: try { try decoder.decodeSingularUInt64Field(value: &self._steps) }() - case 6: try { try decoder.decodeSingularMessageField(value: &self._transform) }() - case 7: try { try decoder.decodeRepeatedMessageField(value: &self.parameters) }() - case 8: try { try decoder.decodeSingularEnumField(value: &self._maskedAreaInit) }() - case 9: try { try decoder.decodeSingularEnumField(value: &self._weightMethod) }() - case 10: try { try decoder.decodeSingularBoolField(value: &self._quantize) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - try { if let v = self._height { - try visitor.visitSingularUInt64Field(value: v, fieldNumber: 1) - } }() - try { if let v = self._width { - try visitor.visitSingularUInt64Field(value: v, fieldNumber: 2) - } }() - if !self.seed.isEmpty { - try visitor.visitPackedUInt32Field(value: self.seed, fieldNumber: 3) - } - try { if let v = self._samples { - try visitor.visitSingularUInt64Field(value: v, fieldNumber: 4) - } }() - try { if let v = self._steps { - try visitor.visitSingularUInt64Field(value: v, fieldNumber: 5) - } }() - try { if let v = self._transform { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - if !self.parameters.isEmpty { - try visitor.visitRepeatedMessageField(value: self.parameters, fieldNumber: 7) - } - try { if let v = self._maskedAreaInit { - try visitor.visitSingularEnumField(value: v, fieldNumber: 8) - } }() - try { if let v = self._weightMethod { - try visitor.visitSingularEnumField(value: v, fieldNumber: 9) - } }() - try { if let v = self._quantize { - try visitor.visitSingularBoolField(value: v, fieldNumber: 10) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_ImageParameters, rhs: Stabilityai_Platformapis_Generation_V1_ImageParameters) -> Bool { - if lhs._height != rhs._height {return false} - if lhs._width != rhs._width {return false} - if lhs.seed != rhs.seed {return false} - if lhs._samples != rhs._samples {return false} - if lhs._steps != rhs._steps {return false} - if lhs._transform != rhs._transform {return false} - if lhs.parameters != rhs.parameters {return false} - if lhs._maskedAreaInit != rhs._maskedAreaInit {return false} - if lhs._weightMethod != rhs._weightMethod {return false} - if lhs._quantize != rhs._quantize {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_ClassifierConcept: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".ClassifierConcept" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "concept"), - 2: .same(proto: "threshold"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.concept) }() - case 2: try { try decoder.decodeSingularFloatField(value: &self._threshold) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !self.concept.isEmpty { - try visitor.visitSingularStringField(value: self.concept, fieldNumber: 1) - } - try { if let v = self._threshold { - try visitor.visitSingularFloatField(value: v, fieldNumber: 2) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_ClassifierConcept, rhs: Stabilityai_Platformapis_Generation_V1_ClassifierConcept) -> Bool { - if lhs.concept != rhs.concept {return false} - if lhs._threshold != rhs._threshold {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_ClassifierCategory: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".ClassifierCategory" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "name"), - 2: .same(proto: "concepts"), - 3: .same(proto: "adjustment"), - 4: .same(proto: "action"), - 5: .standard(proto: "classifier_mode"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.name) }() - case 2: try { try decoder.decodeRepeatedMessageField(value: &self.concepts) }() - case 3: try { try decoder.decodeSingularFloatField(value: &self._adjustment) }() - case 4: try { try decoder.decodeSingularEnumField(value: &self._action) }() - case 5: try { try decoder.decodeSingularEnumField(value: &self._classifierMode) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !self.name.isEmpty { - try visitor.visitSingularStringField(value: self.name, fieldNumber: 1) - } - if !self.concepts.isEmpty { - try visitor.visitRepeatedMessageField(value: self.concepts, fieldNumber: 2) - } - try { if let v = self._adjustment { - try visitor.visitSingularFloatField(value: v, fieldNumber: 3) - } }() - try { if let v = self._action { - try visitor.visitSingularEnumField(value: v, fieldNumber: 4) - } }() - try { if let v = self._classifierMode { - try visitor.visitSingularEnumField(value: v, fieldNumber: 5) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_ClassifierCategory, rhs: Stabilityai_Platformapis_Generation_V1_ClassifierCategory) -> Bool { - if lhs.name != rhs.name {return false} - if lhs.concepts != rhs.concepts {return false} - if lhs._adjustment != rhs._adjustment {return false} - if lhs._action != rhs._action {return false} - if lhs._classifierMode != rhs._classifierMode {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_ClassifierParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".ClassifierParameters" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "categories"), - 2: .same(proto: "exceeds"), - 3: .standard(proto: "realized_action"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeRepeatedMessageField(value: &self.categories) }() - case 2: try { try decoder.decodeRepeatedMessageField(value: &self.exceeds) }() - case 3: try { try decoder.decodeSingularEnumField(value: &self._realizedAction) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !self.categories.isEmpty { - try visitor.visitRepeatedMessageField(value: self.categories, fieldNumber: 1) - } - if !self.exceeds.isEmpty { - try visitor.visitRepeatedMessageField(value: self.exceeds, fieldNumber: 2) - } - try { if let v = self._realizedAction { - try visitor.visitSingularEnumField(value: v, fieldNumber: 3) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_ClassifierParameters, rhs: Stabilityai_Platformapis_Generation_V1_ClassifierParameters) -> Bool { - if lhs.categories != rhs.categories {return false} - if lhs.exceeds != rhs.exceeds {return false} - if lhs._realizedAction != rhs._realizedAction {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_InterpolateParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".InterpolateParameters" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "ratios"), - 2: .same(proto: "mode"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeRepeatedFloatField(value: &self.ratios) }() - case 2: try { try decoder.decodeSingularEnumField(value: &self._mode) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !self.ratios.isEmpty { - try visitor.visitPackedFloatField(value: self.ratios, fieldNumber: 1) - } - try { if let v = self._mode { - try visitor.visitSingularEnumField(value: v, fieldNumber: 2) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_InterpolateParameters, rhs: Stabilityai_Platformapis_Generation_V1_InterpolateParameters) -> Bool { - if lhs.ratios != rhs.ratios {return false} - if lhs._mode != rhs._mode {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_TransformColorAdjust: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".TransformColorAdjust" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "brightness"), - 2: .same(proto: "contrast"), - 3: .same(proto: "hue"), - 4: .same(proto: "saturation"), - 5: .same(proto: "lightness"), - 6: .standard(proto: "match_image"), - 7: .standard(proto: "match_mode"), - 8: .standard(proto: "noise_amount"), - 9: .standard(proto: "noise_seed"), - ] - - fileprivate class _StorageClass { - var _brightness: Float? = nil - var _contrast: Float? = nil - var _hue: Float? = nil - var _saturation: Float? = nil - var _lightness: Float? = nil - var _matchImage: Stabilityai_Platformapis_Generation_V1_Artifact? = nil - var _matchMode: Stabilityai_Platformapis_Generation_V1_ColorMatchMode? = nil - var _noiseAmount: Float? = nil - var _noiseSeed: UInt32? = nil - - static let defaultInstance = _StorageClass() - - private init() {} - - init(copying source: _StorageClass) { - _brightness = source._brightness - _contrast = source._contrast - _hue = source._hue - _saturation = source._saturation - _lightness = source._lightness - _matchImage = source._matchImage - _matchMode = source._matchMode - _noiseAmount = source._noiseAmount - _noiseSeed = source._noiseSeed - } - } - - fileprivate mutating func _uniqueStorage() -> _StorageClass { - if !isKnownUniquelyReferenced(&_storage) { - _storage = _StorageClass(copying: _storage) - } - return _storage - } - - mutating func decodeMessage(decoder: inout D) throws { - _ = _uniqueStorage() - try withExtendedLifetime(_storage) { (_storage: _StorageClass) in - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularFloatField(value: &_storage._brightness) }() - case 2: try { try decoder.decodeSingularFloatField(value: &_storage._contrast) }() - case 3: try { try decoder.decodeSingularFloatField(value: &_storage._hue) }() - case 4: try { try decoder.decodeSingularFloatField(value: &_storage._saturation) }() - case 5: try { try decoder.decodeSingularFloatField(value: &_storage._lightness) }() - case 6: try { try decoder.decodeSingularMessageField(value: &_storage._matchImage) }() - case 7: try { try decoder.decodeSingularEnumField(value: &_storage._matchMode) }() - case 8: try { try decoder.decodeSingularFloatField(value: &_storage._noiseAmount) }() - case 9: try { try decoder.decodeSingularUInt32Field(value: &_storage._noiseSeed) }() - default: break - } - } - } - } - - func traverse(visitor: inout V) throws { - try withExtendedLifetime(_storage) { (_storage: _StorageClass) in - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - try { if let v = _storage._brightness { - try visitor.visitSingularFloatField(value: v, fieldNumber: 1) - } }() - try { if let v = _storage._contrast { - try visitor.visitSingularFloatField(value: v, fieldNumber: 2) - } }() - try { if let v = _storage._hue { - try visitor.visitSingularFloatField(value: v, fieldNumber: 3) - } }() - try { if let v = _storage._saturation { - try visitor.visitSingularFloatField(value: v, fieldNumber: 4) - } }() - try { if let v = _storage._lightness { - try visitor.visitSingularFloatField(value: v, fieldNumber: 5) - } }() - try { if let v = _storage._matchImage { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - try { if let v = _storage._matchMode { - try visitor.visitSingularEnumField(value: v, fieldNumber: 7) - } }() - try { if let v = _storage._noiseAmount { - try visitor.visitSingularFloatField(value: v, fieldNumber: 8) - } }() - try { if let v = _storage._noiseSeed { - try visitor.visitSingularUInt32Field(value: v, fieldNumber: 9) - } }() - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_TransformColorAdjust, rhs: Stabilityai_Platformapis_Generation_V1_TransformColorAdjust) -> Bool { - if lhs._storage !== rhs._storage { - let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in - let _storage = _args.0 - let rhs_storage = _args.1 - if _storage._brightness != rhs_storage._brightness {return false} - if _storage._contrast != rhs_storage._contrast {return false} - if _storage._hue != rhs_storage._hue {return false} - if _storage._saturation != rhs_storage._saturation {return false} - if _storage._lightness != rhs_storage._lightness {return false} - if _storage._matchImage != rhs_storage._matchImage {return false} - if _storage._matchMode != rhs_storage._matchMode {return false} - if _storage._noiseAmount != rhs_storage._noiseAmount {return false} - if _storage._noiseSeed != rhs_storage._noiseSeed {return false} - return true - } - if !storagesAreEqual {return false} - } - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_TransformDepthCalc: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".TransformDepthCalc" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "blend_weight"), - 2: .standard(proto: "blur_radius"), - 3: .same(proto: "reverse"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularFloatField(value: &self._blendWeight) }() - case 2: try { try decoder.decodeSingularUInt32Field(value: &self._blurRadius) }() - case 3: try { try decoder.decodeSingularBoolField(value: &self._reverse) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - try { if let v = self._blendWeight { - try visitor.visitSingularFloatField(value: v, fieldNumber: 1) - } }() - try { if let v = self._blurRadius { - try visitor.visitSingularUInt32Field(value: v, fieldNumber: 2) - } }() - try { if let v = self._reverse { - try visitor.visitSingularBoolField(value: v, fieldNumber: 3) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_TransformDepthCalc, rhs: Stabilityai_Platformapis_Generation_V1_TransformDepthCalc) -> Bool { - if lhs._blendWeight != rhs._blendWeight {return false} - if lhs._blurRadius != rhs._blurRadius {return false} - if lhs._reverse != rhs._reverse {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_TransformMatrix: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".TransformMatrix" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "data"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeRepeatedFloatField(value: &self.data) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if !self.data.isEmpty { - try visitor.visitPackedFloatField(value: self.data, fieldNumber: 1) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_TransformMatrix, rhs: Stabilityai_Platformapis_Generation_V1_TransformMatrix) -> Bool { - if lhs.data != rhs.data {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_TransformResample: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".TransformResample" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "border_mode"), - 2: .same(proto: "transform"), - 3: .standard(proto: "prev_transform"), - 4: .standard(proto: "depth_warp"), - 5: .standard(proto: "export_mask"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularEnumField(value: &self.borderMode) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._transform) }() - case 3: try { try decoder.decodeSingularMessageField(value: &self._prevTransform) }() - case 4: try { try decoder.decodeSingularFloatField(value: &self._depthWarp) }() - case 5: try { try decoder.decodeSingularBoolField(value: &self._exportMask) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if self.borderMode != .borderReflect { - try visitor.visitSingularEnumField(value: self.borderMode, fieldNumber: 1) - } - try { if let v = self._transform { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - try { if let v = self._prevTransform { - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - } }() - try { if let v = self._depthWarp { - try visitor.visitSingularFloatField(value: v, fieldNumber: 4) - } }() - try { if let v = self._exportMask { - try visitor.visitSingularBoolField(value: v, fieldNumber: 5) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_TransformResample, rhs: Stabilityai_Platformapis_Generation_V1_TransformResample) -> Bool { - if lhs.borderMode != rhs.borderMode {return false} - if lhs._transform != rhs._transform {return false} - if lhs._prevTransform != rhs._prevTransform {return false} - if lhs._depthWarp != rhs._depthWarp {return false} - if lhs._exportMask != rhs._exportMask {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_CameraParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".CameraParameters" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "camera_type"), - 2: .standard(proto: "near_plane"), - 3: .standard(proto: "far_plane"), - 4: .same(proto: "fov"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularEnumField(value: &self.cameraType) }() - case 2: try { try decoder.decodeSingularFloatField(value: &self.nearPlane) }() - case 3: try { try decoder.decodeSingularFloatField(value: &self.farPlane) }() - case 4: try { try decoder.decodeSingularFloatField(value: &self._fov) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if self.cameraType != .cameraPerspective { - try visitor.visitSingularEnumField(value: self.cameraType, fieldNumber: 1) - } - if self.nearPlane != 0 { - try visitor.visitSingularFloatField(value: self.nearPlane, fieldNumber: 2) - } - if self.farPlane != 0 { - try visitor.visitSingularFloatField(value: self.farPlane, fieldNumber: 3) - } - try { if let v = self._fov { - try visitor.visitSingularFloatField(value: v, fieldNumber: 4) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_CameraParameters, rhs: Stabilityai_Platformapis_Generation_V1_CameraParameters) -> Bool { - if lhs.cameraType != rhs.cameraType {return false} - if lhs.nearPlane != rhs.nearPlane {return false} - if lhs.farPlane != rhs.farPlane {return false} - if lhs._fov != rhs._fov {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_TransformCameraPose: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".TransformCameraPose" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "world_to_view_matrix"), - 2: .standard(proto: "camera_parameters"), - 5: .standard(proto: "do_prefill"), - 8: .standard(proto: "render_mode"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularMessageField(value: &self._worldToViewMatrix) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._cameraParameters) }() - case 5: try { try decoder.decodeSingularBoolField(value: &self.doPrefill) }() - case 8: try { try decoder.decodeSingularEnumField(value: &self.renderMode) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - try { if let v = self._worldToViewMatrix { - try visitor.visitSingularMessageField(value: v, fieldNumber: 1) - } }() - try { if let v = self._cameraParameters { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - if self.doPrefill != false { - try visitor.visitSingularBoolField(value: self.doPrefill, fieldNumber: 5) - } - if self.renderMode != .renderMesh { - try visitor.visitSingularEnumField(value: self.renderMode, fieldNumber: 8) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_TransformCameraPose, rhs: Stabilityai_Platformapis_Generation_V1_TransformCameraPose) -> Bool { - if lhs._worldToViewMatrix != rhs._worldToViewMatrix {return false} - if lhs._cameraParameters != rhs._cameraParameters {return false} - if lhs.doPrefill != rhs.doPrefill {return false} - if lhs.renderMode != rhs.renderMode {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_TransformParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".TransformParameters" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 2: .standard(proto: "color_adjust"), - 4: .standard(proto: "depth_calc"), - 5: .same(proto: "resample"), - 6: .standard(proto: "camera_pose"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 2: try { - var v: Stabilityai_Platformapis_Generation_V1_TransformColorAdjust? - var hadOneofValue = false - if let current = self.transform { - hadOneofValue = true - if case .colorAdjust(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.transform = .colorAdjust(v) - } - }() - case 4: try { - var v: Stabilityai_Platformapis_Generation_V1_TransformDepthCalc? - var hadOneofValue = false - if let current = self.transform { - hadOneofValue = true - if case .depthCalc(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.transform = .depthCalc(v) - } - }() - case 5: try { - var v: Stabilityai_Platformapis_Generation_V1_TransformResample? - var hadOneofValue = false - if let current = self.transform { - hadOneofValue = true - if case .resample(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.transform = .resample(v) - } - }() - case 6: try { - var v: Stabilityai_Platformapis_Generation_V1_TransformCameraPose? - var hadOneofValue = false - if let current = self.transform { - hadOneofValue = true - if case .cameraPose(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.transform = .cameraPose(v) - } - }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - switch self.transform { - case .colorAdjust?: try { - guard case .colorAdjust(let v)? = self.transform else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - }() - case .depthCalc?: try { - guard case .depthCalc(let v)? = self.transform else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - }() - case .resample?: try { - guard case .resample(let v)? = self.transform else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - }() - case .cameraPose?: try { - guard case .cameraPose(let v)? = self.transform else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - }() - case nil: break - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_TransformParameters, rhs: Stabilityai_Platformapis_Generation_V1_TransformParameters) -> Bool { - if lhs.transform != rhs.transform {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_AssetParameters: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".AssetParameters" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "action"), - 2: .standard(proto: "project_id"), - 3: .same(proto: "use"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularEnumField(value: &self.action) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.projectID) }() - case 3: try { try decoder.decodeSingularEnumField(value: &self.use) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if self.action != .assetPut { - try visitor.visitSingularEnumField(value: self.action, fieldNumber: 1) - } - if !self.projectID.isEmpty { - try visitor.visitSingularStringField(value: self.projectID, fieldNumber: 2) - } - if self.use != .undefined { - try visitor.visitSingularEnumField(value: self.use, fieldNumber: 3) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_AssetParameters, rhs: Stabilityai_Platformapis_Generation_V1_AssetParameters) -> Bool { - if lhs.action != rhs.action {return false} - if lhs.projectID != rhs.projectID {return false} - if lhs.use != rhs.use {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_AnswerMeta: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".AnswerMeta" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "gpu_id"), - 2: .standard(proto: "cpu_id"), - 3: .standard(proto: "node_id"), - 4: .standard(proto: "engine_id"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self._gpuID) }() - case 2: try { try decoder.decodeSingularStringField(value: &self._cpuID) }() - case 3: try { try decoder.decodeSingularStringField(value: &self._nodeID) }() - case 4: try { try decoder.decodeSingularStringField(value: &self._engineID) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - try { if let v = self._gpuID { - try visitor.visitSingularStringField(value: v, fieldNumber: 1) - } }() - try { if let v = self._cpuID { - try visitor.visitSingularStringField(value: v, fieldNumber: 2) - } }() - try { if let v = self._nodeID { - try visitor.visitSingularStringField(value: v, fieldNumber: 3) - } }() - try { if let v = self._engineID { - try visitor.visitSingularStringField(value: v, fieldNumber: 4) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_AnswerMeta, rhs: Stabilityai_Platformapis_Generation_V1_AnswerMeta) -> Bool { - if lhs._gpuID != rhs._gpuID {return false} - if lhs._cpuID != rhs._cpuID {return false} - if lhs._nodeID != rhs._nodeID {return false} - if lhs._engineID != rhs._engineID {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_Answer: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".Answer" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "answer_id"), - 2: .standard(proto: "request_id"), - 3: .same(proto: "received"), - 4: .same(proto: "created"), - 6: .same(proto: "meta"), - 7: .same(proto: "artifacts"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.answerID) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.requestID) }() - case 3: try { try decoder.decodeSingularUInt64Field(value: &self.received) }() - case 4: try { try decoder.decodeSingularUInt64Field(value: &self.created) }() - case 6: try { try decoder.decodeSingularMessageField(value: &self._meta) }() - case 7: try { try decoder.decodeRepeatedMessageField(value: &self.artifacts) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !self.answerID.isEmpty { - try visitor.visitSingularStringField(value: self.answerID, fieldNumber: 1) - } - if !self.requestID.isEmpty { - try visitor.visitSingularStringField(value: self.requestID, fieldNumber: 2) - } - if self.received != 0 { - try visitor.visitSingularUInt64Field(value: self.received, fieldNumber: 3) - } - if self.created != 0 { - try visitor.visitSingularUInt64Field(value: self.created, fieldNumber: 4) - } - try { if let v = self._meta { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - if !self.artifacts.isEmpty { - try visitor.visitRepeatedMessageField(value: self.artifacts, fieldNumber: 7) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_Answer, rhs: Stabilityai_Platformapis_Generation_V1_Answer) -> Bool { - if lhs.answerID != rhs.answerID {return false} - if lhs.requestID != rhs.requestID {return false} - if lhs.received != rhs.received {return false} - if lhs.created != rhs.created {return false} - if lhs._meta != rhs._meta {return false} - if lhs.artifacts != rhs.artifacts {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_AnswerBatch: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".AnswerBatch" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "batch_id"), - 2: .same(proto: "answers"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.batchID) }() - case 2: try { try decoder.decodeRepeatedMessageField(value: &self.answers) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if !self.batchID.isEmpty { - try visitor.visitSingularStringField(value: self.batchID, fieldNumber: 1) - } - if !self.answers.isEmpty { - try visitor.visitRepeatedMessageField(value: self.answers, fieldNumber: 2) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_AnswerBatch, rhs: Stabilityai_Platformapis_Generation_V1_AnswerBatch) -> Bool { - if lhs.batchID != rhs.batchID {return false} - if lhs.answers != rhs.answers {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_Request: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".Request" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "engine_id"), - 2: .standard(proto: "request_id"), - 3: .standard(proto: "requested_type"), - 4: .same(proto: "prompt"), - 5: .same(proto: "image"), - 7: .same(proto: "classifier"), - 8: .same(proto: "asset"), - 11: .same(proto: "interpolate"), - 12: .same(proto: "transform"), - 6: .same(proto: "conditioner"), - 2047: .same(proto: "extras"), - ] - - fileprivate class _StorageClass { - var _engineID: String = String() - var _requestID: String = String() - var _requestedType: Stabilityai_Platformapis_Generation_V1_ArtifactType = .artifactNone - var _prompt: [Stabilityai_Platformapis_Generation_V1_Prompt] = [] - var _params: Stabilityai_Platformapis_Generation_V1_Request.OneOf_Params? - var _conditioner: Stabilityai_Platformapis_Generation_V1_ConditionerParameters? = nil - var _extras: SwiftProtobuf.Google_Protobuf_Struct? = nil - - static let defaultInstance = _StorageClass() - - private init() {} - - init(copying source: _StorageClass) { - _engineID = source._engineID - _requestID = source._requestID - _requestedType = source._requestedType - _prompt = source._prompt - _params = source._params - _conditioner = source._conditioner - _extras = source._extras - } - } - - fileprivate mutating func _uniqueStorage() -> _StorageClass { - if !isKnownUniquelyReferenced(&_storage) { - _storage = _StorageClass(copying: _storage) - } - return _storage - } - - mutating func decodeMessage(decoder: inout D) throws { - _ = _uniqueStorage() - try withExtendedLifetime(_storage) { (_storage: _StorageClass) in - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &_storage._engineID) }() - case 2: try { try decoder.decodeSingularStringField(value: &_storage._requestID) }() - case 3: try { try decoder.decodeSingularEnumField(value: &_storage._requestedType) }() - case 4: try { try decoder.decodeRepeatedMessageField(value: &_storage._prompt) }() - case 5: try { - var v: Stabilityai_Platformapis_Generation_V1_ImageParameters? - var hadOneofValue = false - if let current = _storage._params { - hadOneofValue = true - if case .image(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - _storage._params = .image(v) - } - }() - case 6: try { try decoder.decodeSingularMessageField(value: &_storage._conditioner) }() - case 7: try { - var v: Stabilityai_Platformapis_Generation_V1_ClassifierParameters? - var hadOneofValue = false - if let current = _storage._params { - hadOneofValue = true - if case .classifier(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - _storage._params = .classifier(v) - } - }() - case 8: try { - var v: Stabilityai_Platformapis_Generation_V1_AssetParameters? - var hadOneofValue = false - if let current = _storage._params { - hadOneofValue = true - if case .asset(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - _storage._params = .asset(v) - } - }() - case 11: try { - var v: Stabilityai_Platformapis_Generation_V1_InterpolateParameters? - var hadOneofValue = false - if let current = _storage._params { - hadOneofValue = true - if case .interpolate(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - _storage._params = .interpolate(v) - } - }() - case 12: try { - var v: Stabilityai_Platformapis_Generation_V1_TransformParameters? - var hadOneofValue = false - if let current = _storage._params { - hadOneofValue = true - if case .transform(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - _storage._params = .transform(v) - } - }() - case 2047: try { try decoder.decodeSingularMessageField(value: &_storage._extras) }() - default: break - } - } - } - } - - func traverse(visitor: inout V) throws { - try withExtendedLifetime(_storage) { (_storage: _StorageClass) in - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !_storage._engineID.isEmpty { - try visitor.visitSingularStringField(value: _storage._engineID, fieldNumber: 1) - } - if !_storage._requestID.isEmpty { - try visitor.visitSingularStringField(value: _storage._requestID, fieldNumber: 2) - } - if _storage._requestedType != .artifactNone { - try visitor.visitSingularEnumField(value: _storage._requestedType, fieldNumber: 3) - } - if !_storage._prompt.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._prompt, fieldNumber: 4) - } - try { if case .image(let v)? = _storage._params { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() - try { if let v = _storage._conditioner { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - switch _storage._params { - case .classifier?: try { - guard case .classifier(let v)? = _storage._params else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 7) - }() - case .asset?: try { - guard case .asset(let v)? = _storage._params else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 8) - }() - case .interpolate?: try { - guard case .interpolate(let v)? = _storage._params else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 11) - }() - case .transform?: try { - guard case .transform(let v)? = _storage._params else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 12) - }() - default: break - } - try { if let v = _storage._extras { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2047) - } }() - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_Request, rhs: Stabilityai_Platformapis_Generation_V1_Request) -> Bool { - if lhs._storage !== rhs._storage { - let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in - let _storage = _args.0 - let rhs_storage = _args.1 - if _storage._engineID != rhs_storage._engineID {return false} - if _storage._requestID != rhs_storage._requestID {return false} - if _storage._requestedType != rhs_storage._requestedType {return false} - if _storage._prompt != rhs_storage._prompt {return false} - if _storage._params != rhs_storage._params {return false} - if _storage._conditioner != rhs_storage._conditioner {return false} - if _storage._extras != rhs_storage._extras {return false} - return true - } - if !storagesAreEqual {return false} - } - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_OnStatus: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".OnStatus" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "reason"), - 2: .same(proto: "target"), - 3: .same(proto: "action"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeRepeatedEnumField(value: &self.reason) }() - case 2: try { try decoder.decodeSingularStringField(value: &self._target) }() - case 3: try { try decoder.decodeRepeatedEnumField(value: &self.action) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !self.reason.isEmpty { - try visitor.visitPackedEnumField(value: self.reason, fieldNumber: 1) - } - try { if let v = self._target { - try visitor.visitSingularStringField(value: v, fieldNumber: 2) - } }() - if !self.action.isEmpty { - try visitor.visitPackedEnumField(value: self.action, fieldNumber: 3) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_OnStatus, rhs: Stabilityai_Platformapis_Generation_V1_OnStatus) -> Bool { - if lhs.reason != rhs.reason {return false} - if lhs._target != rhs._target {return false} - if lhs.action != rhs.action {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_Stage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".Stage" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .same(proto: "request"), - 3: .standard(proto: "on_status"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularMessageField(value: &self._request) }() - case 3: try { try decoder.decodeRepeatedMessageField(value: &self.onStatus) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - try { if let v = self._request { - try visitor.visitSingularMessageField(value: v, fieldNumber: 2) - } }() - if !self.onStatus.isEmpty { - try visitor.visitRepeatedMessageField(value: self.onStatus, fieldNumber: 3) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_Stage, rhs: Stabilityai_Platformapis_Generation_V1_Stage) -> Bool { - if lhs.id != rhs.id {return false} - if lhs._request != rhs._request {return false} - if lhs.onStatus != rhs.onStatus {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Generation_V1_ChainRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".ChainRequest" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "request_id"), - 2: .same(proto: "stage"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.requestID) }() - case 2: try { try decoder.decodeRepeatedMessageField(value: &self.stage) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if !self.requestID.isEmpty { - try visitor.visitSingularStringField(value: self.requestID, fieldNumber: 1) - } - if !self.stage.isEmpty { - try visitor.visitRepeatedMessageField(value: self.stage, fieldNumber: 2) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Generation_V1_ChainRequest, rhs: Stabilityai_Platformapis_Generation_V1_ChainRequest) -> Bool { - if lhs.requestID != rhs.requestID {return false} - if lhs.stage != rhs.stage {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} diff --git a/gen/proto/swift/stability_api/platform/project/v1/project.connect.swift b/gen/proto/swift/stability_api/platform/project/v1/project.connect.swift deleted file mode 100644 index 347d661..0000000 --- a/gen/proto/swift/stability_api/platform/project/v1/project.connect.swift +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by protoc-gen-connect-swift. DO NOT EDIT. -// -// Source: stability_api/platform/project/v1/project.proto -// - -import Connect -import Foundation -import SwiftProtobuf - -/// -/// gRPC services -internal protocol Stabilityai_Platformapis_Project_V1_ProjectServiceClientInterface { - - /// Create a new project if it does not exist - @available(iOS 13, *) - func `create`(request: Stabilityai_Platformapis_Project_V1_CreateProjectRequest, headers: Connect.Headers) async -> ResponseMessage - - /// Update an existing project - @available(iOS 13, *) - func `update`(request: Stabilityai_Platformapis_Project_V1_UpdateProjectRequest, headers: Connect.Headers) async -> ResponseMessage - - /// List all the projects for an organization - @available(iOS 13, *) - func `list`(headers: Connect.Headers) -> any Connect.ServerOnlyAsyncStreamInterface - - /// Get a project - @available(iOS 13, *) - func `get`(request: Stabilityai_Platformapis_Project_V1_GetProjectRequest, headers: Connect.Headers) async -> ResponseMessage - - /// Delete a project - @available(iOS 13, *) - func `delete`(request: Stabilityai_Platformapis_Project_V1_DeleteProjectRequest, headers: Connect.Headers) async -> ResponseMessage - - /// Add or remove tags from an asset - @available(iOS 13, *) - func `tagAssets`(request: Stabilityai_Platformapis_Project_V1_TagAssetsRequest, headers: Connect.Headers) async -> ResponseMessage - - @available(iOS 13, *) - func `untagAssets`(request: Stabilityai_Platformapis_Project_V1_UntagAssetsRequest, headers: Connect.Headers) async -> ResponseMessage - - /// Query the assets of a project, with additional filtering - @available(iOS 13, *) - func `queryAssets`(request: Stabilityai_Platformapis_Project_V1_QueryAssetsRequest, headers: Connect.Headers) async -> ResponseMessage - - /// Delete one or more assets of a project - @available(iOS 13, *) - func `deleteAssets`(request: Stabilityai_Platformapis_Project_V1_DeleteAssetsRequest, headers: Connect.Headers) async -> ResponseMessage -} - -/// Concrete implementation of `Stabilityai_Platformapis_Project_V1_ProjectServiceClientInterface`. -internal final class Stabilityai_Platformapis_Project_V1_ProjectServiceClient: Stabilityai_Platformapis_Project_V1_ProjectServiceClientInterface { - private let client: Connect.ProtocolClientInterface - - internal init(client: Connect.ProtocolClientInterface) { - self.client = client - } - - @available(iOS 13, *) - internal func `create`(request: Stabilityai_Platformapis_Project_V1_CreateProjectRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { - return await self.client.unary(path: "stabilityai.platformapis.project.v1.ProjectService/Create", request: request, headers: headers) - } - - @available(iOS 13, *) - internal func `update`(request: Stabilityai_Platformapis_Project_V1_UpdateProjectRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { - return await self.client.unary(path: "stabilityai.platformapis.project.v1.ProjectService/Update", request: request, headers: headers) - } - - @available(iOS 13, *) - internal func `list`(headers: Connect.Headers = [:]) -> any Connect.ServerOnlyAsyncStreamInterface { - return self.client.serverOnlyStream(path: "stabilityai.platformapis.project.v1.ProjectService/List", headers: headers) - } - - @available(iOS 13, *) - internal func `get`(request: Stabilityai_Platformapis_Project_V1_GetProjectRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { - return await self.client.unary(path: "stabilityai.platformapis.project.v1.ProjectService/Get", request: request, headers: headers) - } - - @available(iOS 13, *) - internal func `delete`(request: Stabilityai_Platformapis_Project_V1_DeleteProjectRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { - return await self.client.unary(path: "stabilityai.platformapis.project.v1.ProjectService/Delete", request: request, headers: headers) - } - - @available(iOS 13, *) - internal func `tagAssets`(request: Stabilityai_Platformapis_Project_V1_TagAssetsRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { - return await self.client.unary(path: "stabilityai.platformapis.project.v1.ProjectService/TagAssets", request: request, headers: headers) - } - - @available(iOS 13, *) - internal func `untagAssets`(request: Stabilityai_Platformapis_Project_V1_UntagAssetsRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { - return await self.client.unary(path: "stabilityai.platformapis.project.v1.ProjectService/UntagAssets", request: request, headers: headers) - } - - @available(iOS 13, *) - internal func `queryAssets`(request: Stabilityai_Platformapis_Project_V1_QueryAssetsRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { - return await self.client.unary(path: "stabilityai.platformapis.project.v1.ProjectService/QueryAssets", request: request, headers: headers) - } - - @available(iOS 13, *) - internal func `deleteAssets`(request: Stabilityai_Platformapis_Project_V1_DeleteAssetsRequest, headers: Connect.Headers = [:]) async -> ResponseMessage { - return await self.client.unary(path: "stabilityai.platformapis.project.v1.ProjectService/DeleteAssets", request: request, headers: headers) - } - - internal enum Metadata { - internal enum Methods { - internal static let create = Connect.MethodSpec(name: "Create", service: "stabilityai.platformapis.project.v1.ProjectService", type: .unary) - internal static let update = Connect.MethodSpec(name: "Update", service: "stabilityai.platformapis.project.v1.ProjectService", type: .unary) - internal static let list = Connect.MethodSpec(name: "List", service: "stabilityai.platformapis.project.v1.ProjectService", type: .serverStream) - internal static let get = Connect.MethodSpec(name: "Get", service: "stabilityai.platformapis.project.v1.ProjectService", type: .unary) - internal static let delete = Connect.MethodSpec(name: "Delete", service: "stabilityai.platformapis.project.v1.ProjectService", type: .unary) - internal static let tagAssets = Connect.MethodSpec(name: "TagAssets", service: "stabilityai.platformapis.project.v1.ProjectService", type: .unary) - internal static let untagAssets = Connect.MethodSpec(name: "UntagAssets", service: "stabilityai.platformapis.project.v1.ProjectService", type: .unary) - internal static let queryAssets = Connect.MethodSpec(name: "QueryAssets", service: "stabilityai.platformapis.project.v1.ProjectService", type: .unary) - internal static let deleteAssets = Connect.MethodSpec(name: "DeleteAssets", service: "stabilityai.platformapis.project.v1.ProjectService", type: .unary) - } - } -} diff --git a/gen/proto/swift/stability_api/platform/project/v1/project.pb.swift b/gen/proto/swift/stability_api/platform/project/v1/project.pb.swift deleted file mode 100644 index 1b8b875..0000000 --- a/gen/proto/swift/stability_api/platform/project/v1/project.pb.swift +++ /dev/null @@ -1,1725 +0,0 @@ -// DO NOT EDIT. -// swift-format-ignore-file -// -// Generated by the Swift generator plugin for the protocol buffer compiler. -// Source: stability_api/platform/project/v1/project.proto -// -// For information on using the generated types, please see the documentation: -// https://github.com/apple/swift-protobuf/ - -import Foundation -import SwiftProtobuf - -// If the compiler emits an error on this type, it is because this file -// was generated by a version of the `protoc` Swift plug-in that is -// incompatible with the version of SwiftProtobuf to which you are linking. -// Please ensure that you are building against the same version of the API -// that was used to generate this file. -fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck { - struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {} - typealias Version = _2 -} - -enum Stabilityai_Platformapis_Project_V1_ProjectAccess: SwiftProtobuf.Enum { - typealias RawValue = Int - - /// Private access, only owner organization can access - case `private` // = 0 - - /// Public access, anyone can access - case `public` // = 1 - case UNRECOGNIZED(Int) - - init() { - self = .private - } - - init?(rawValue: Int) { - switch rawValue { - case 0: self = .private - case 1: self = .public - default: self = .UNRECOGNIZED(rawValue) - } - } - - var rawValue: Int { - switch self { - case .private: return 0 - case .public: return 1 - case .UNRECOGNIZED(let i): return i - } - } - -} - -#if swift(>=4.2) - -extension Stabilityai_Platformapis_Project_V1_ProjectAccess: CaseIterable { - // The compiler won't synthesize support with the UNRECOGNIZED case. - static var allCases: [Stabilityai_Platformapis_Project_V1_ProjectAccess] = [ - .private, - .public, - ] -} - -#endif // swift(>=4.2) - -enum Stabilityai_Platformapis_Project_V1_ProjectStatus: SwiftProtobuf.Enum { - typealias RawValue = Int - - /// Inactive project - case inactive // = 0 - - /// Active project - case active // = 1 - - /// Deleted project, only set by delete endpoint - case deleted // = 2 - case UNRECOGNIZED(Int) - - init() { - self = .inactive - } - - init?(rawValue: Int) { - switch rawValue { - case 0: self = .inactive - case 1: self = .active - case 2: self = .deleted - default: self = .UNRECOGNIZED(rawValue) - } - } - - var rawValue: Int { - switch self { - case .inactive: return 0 - case .active: return 1 - case .deleted: return 2 - case .UNRECOGNIZED(let i): return i - } - } - -} - -#if swift(>=4.2) - -extension Stabilityai_Platformapis_Project_V1_ProjectStatus: CaseIterable { - // The compiler won't synthesize support with the UNRECOGNIZED case. - static var allCases: [Stabilityai_Platformapis_Project_V1_ProjectStatus] = [ - .inactive, - .active, - .deleted, - ] -} - -#endif // swift(>=4.2) - -enum Stabilityai_Platformapis_Project_V1_ProjectAssetUse: SwiftProtobuf.Enum { - typealias RawValue = Int - - /// Asset does not have use defined - case undefined // = 0 - - /// Asset is used as an input for the project - case input // = 1 - - /// Asset is an output from the project - case output // = 2 - - /// Asset is an output from an intermediate step of the project - case intermediate // = 3 - - /// Asset is used as the project file for the project - case project // = 4 - case UNRECOGNIZED(Int) - - init() { - self = .undefined - } - - init?(rawValue: Int) { - switch rawValue { - case 0: self = .undefined - case 1: self = .input - case 2: self = .output - case 3: self = .intermediate - case 4: self = .project - default: self = .UNRECOGNIZED(rawValue) - } - } - - var rawValue: Int { - switch self { - case .undefined: return 0 - case .input: return 1 - case .output: return 2 - case .intermediate: return 3 - case .project: return 4 - case .UNRECOGNIZED(let i): return i - } - } - -} - -#if swift(>=4.2) - -extension Stabilityai_Platformapis_Project_V1_ProjectAssetUse: CaseIterable { - // The compiler won't synthesize support with the UNRECOGNIZED case. - static var allCases: [Stabilityai_Platformapis_Project_V1_ProjectAssetUse] = [ - .undefined, - .input, - .output, - .intermediate, - .project, - ] -} - -#endif // swift(>=4.2) - -enum Stabilityai_Platformapis_Project_V1_ProjectSortDir: SwiftProtobuf.Enum { - typealias RawValue = Int - - /// Sort direction is not specified, uses default - case unspecified // = 0 - - /// Sort in ascending order - case asc // = 1 - - /// Sort in descending order - case desc // = 2 - case UNRECOGNIZED(Int) - - init() { - self = .unspecified - } - - init?(rawValue: Int) { - switch rawValue { - case 0: self = .unspecified - case 1: self = .asc - case 2: self = .desc - default: self = .UNRECOGNIZED(rawValue) - } - } - - var rawValue: Int { - switch self { - case .unspecified: return 0 - case .asc: return 1 - case .desc: return 2 - case .UNRECOGNIZED(let i): return i - } - } - -} - -#if swift(>=4.2) - -extension Stabilityai_Platformapis_Project_V1_ProjectSortDir: CaseIterable { - // The compiler won't synthesize support with the UNRECOGNIZED case. - static var allCases: [Stabilityai_Platformapis_Project_V1_ProjectSortDir] = [ - .unspecified, - .asc, - .desc, - ] -} - -#endif // swift(>=4.2) - -struct Stabilityai_Platformapis_Project_V1_ProjectAsset { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - /// ID of the asset, UUIDv4 - var id: String = String() - - /// The URI to the asset - var uri: String = String() - - /// The use of the asset with respect to the project - var use: Stabilityai_Platformapis_Project_V1_ProjectAssetUse = .undefined - - /// The name of the asset - var name: String = String() - - /// The asset size in bytes - var size: UInt64 = 0 - - /// Time of asset creation (UTC seconds epoch) - var createdAt: UInt64 = 0 - - /// Time of last asset update (UTC seconds epoch) - var updatedAt: UInt64 = 0 - - /// The request object that is associated with the artifact - var request: Stabilityai_Platformapis_Generation_V1_Request { - get {return _request ?? Stabilityai_Platformapis_Generation_V1_Request()} - set {_request = newValue} - } - /// Returns true if `request` has been explicitly set. - var hasRequest: Bool {return self._request != nil} - /// Clears the value of `request`. Subsequent reads from it will return its default value. - mutating func clearRequest() {self._request = nil} - - /// The tags associated with the asset - var tags: Dictionary = [:] - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _request: Stabilityai_Platformapis_Generation_V1_Request? = nil -} - -struct Stabilityai_Platformapis_Project_V1_Project { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - /// ID of the project, UUIDv4 - var id: String { - get {return _storage._id} - set {_uniqueStorage()._id = newValue} - } - - /// Title of the project - var title: String { - get {return _storage._title} - set {_uniqueStorage()._title = newValue} - } - - /// The ID of the organization owning the project - var ownerID: String { - get {return _storage._ownerID} - set {_uniqueStorage()._ownerID = newValue} - } - - /// The access of the project (such as public vs private) - var access: Stabilityai_Platformapis_Project_V1_ProjectAccess { - get {return _storage._access} - set {_uniqueStorage()._access = newValue} - } - - /// The status of the project (such as active vs inactive) - var status: Stabilityai_Platformapis_Project_V1_ProjectStatus { - get {return _storage._status} - set {_uniqueStorage()._status = newValue} - } - - /// The size of the project in bytes - var size: UInt64 { - get {return _storage._size} - set {_uniqueStorage()._size = newValue} - } - - /// Project file for the project - var file: Stabilityai_Platformapis_Project_V1_ProjectAsset { - get {return _storage._file ?? Stabilityai_Platformapis_Project_V1_ProjectAsset()} - set {_uniqueStorage()._file = newValue} - } - /// Returns true if `file` has been explicitly set. - var hasFile: Bool {return _storage._file != nil} - /// Clears the value of `file`. Subsequent reads from it will return its default value. - mutating func clearFile() {_uniqueStorage()._file = nil} - - /// Time of project creation (UTC seconds epoch) - var createdAt: UInt64 { - get {return _storage._createdAt} - set {_uniqueStorage()._createdAt = newValue} - } - - /// Time of last project update (UTC seconds epoch) - var updatedAt: UInt64 { - get {return _storage._updatedAt} - set {_uniqueStorage()._updatedAt = newValue} - } - - /// The listing of all assets associated with the project - var assets: [Stabilityai_Platformapis_Project_V1_ProjectAsset] { - get {return _storage._assets} - set {_uniqueStorage()._assets = newValue} - } - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _storage = _StorageClass.defaultInstance -} - -struct Stabilityai_Platformapis_Project_V1_CreateProjectRequest { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - /// title of the project - var title: String = String() - - /// The ID of the organization owning the project, empty for default org for user - var ownerID: String { - get {return _ownerID ?? String()} - set {_ownerID = newValue} - } - /// Returns true if `ownerID` has been explicitly set. - var hasOwnerID: Bool {return self._ownerID != nil} - /// Clears the value of `ownerID`. Subsequent reads from it will return its default value. - mutating func clearOwnerID() {self._ownerID = nil} - - /// The access of the project (such as public vs private) - var access: Stabilityai_Platformapis_Project_V1_ProjectAccess = .private - - /// The status of the project (such as active vs inactive) - var status: Stabilityai_Platformapis_Project_V1_ProjectStatus = .inactive - - /// Project file for the project (if existing, else will create) - var file: Stabilityai_Platformapis_Project_V1_ProjectAsset { - get {return _file ?? Stabilityai_Platformapis_Project_V1_ProjectAsset()} - set {_file = newValue} - } - /// Returns true if `file` has been explicitly set. - var hasFile: Bool {return self._file != nil} - /// Clears the value of `file`. Subsequent reads from it will return its default value. - mutating func clearFile() {self._file = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _ownerID: String? = nil - fileprivate var _file: Stabilityai_Platformapis_Project_V1_ProjectAsset? = nil -} - -struct Stabilityai_Platformapis_Project_V1_UpdateProjectRequest { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - /// ID of the project, UUIDv4 - var id: String = String() - - /// The ID of the organization owning the project, empty for default org for user - var ownerID: String { - get {return _ownerID ?? String()} - set {_ownerID = newValue} - } - /// Returns true if `ownerID` has been explicitly set. - var hasOwnerID: Bool {return self._ownerID != nil} - /// Clears the value of `ownerID`. Subsequent reads from it will return its default value. - mutating func clearOwnerID() {self._ownerID = nil} - - /// Title of the project - var title: String { - get {return _title ?? String()} - set {_title = newValue} - } - /// Returns true if `title` has been explicitly set. - var hasTitle: Bool {return self._title != nil} - /// Clears the value of `title`. Subsequent reads from it will return its default value. - mutating func clearTitle() {self._title = nil} - - /// The access of the project (such as public vs private) - var access: Stabilityai_Platformapis_Project_V1_ProjectAccess { - get {return _access ?? .private} - set {_access = newValue} - } - /// Returns true if `access` has been explicitly set. - var hasAccess: Bool {return self._access != nil} - /// Clears the value of `access`. Subsequent reads from it will return its default value. - mutating func clearAccess() {self._access = nil} - - /// The status of the project (such as active vs inactive) - var status: Stabilityai_Platformapis_Project_V1_ProjectStatus { - get {return _status ?? .inactive} - set {_status = newValue} - } - /// Returns true if `status` has been explicitly set. - var hasStatus: Bool {return self._status != nil} - /// Clears the value of `status`. Subsequent reads from it will return its default value. - mutating func clearStatus() {self._status = nil} - - /// Project file for the project - var file: Stabilityai_Platformapis_Project_V1_ProjectAsset { - get {return _file ?? Stabilityai_Platformapis_Project_V1_ProjectAsset()} - set {_file = newValue} - } - /// Returns true if `file` has been explicitly set. - var hasFile: Bool {return self._file != nil} - /// Clears the value of `file`. Subsequent reads from it will return its default value. - mutating func clearFile() {self._file = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _ownerID: String? = nil - fileprivate var _title: String? = nil - fileprivate var _access: Stabilityai_Platformapis_Project_V1_ProjectAccess? = nil - fileprivate var _status: Stabilityai_Platformapis_Project_V1_ProjectStatus? = nil - fileprivate var _file: Stabilityai_Platformapis_Project_V1_ProjectAsset? = nil -} - -struct Stabilityai_Platformapis_Project_V1_ListProjectRequest { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - /// The ID of the organization owning the project, empty for default org for user - var ownerID: String { - get {return _ownerID ?? String()} - set {_ownerID = newValue} - } - /// Returns true if `ownerID` has been explicitly set. - var hasOwnerID: Bool {return self._ownerID != nil} - /// Clears the value of `ownerID`. Subsequent reads from it will return its default value. - mutating func clearOwnerID() {self._ownerID = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _ownerID: String? = nil -} - -struct Stabilityai_Platformapis_Project_V1_GetProjectRequest { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - /// ID of the project to request, UUIDv4, empty string uses default project - var id: String = String() - - /// The ID of the organization owning the project, empty for default org for user - var ownerID: String { - get {return _ownerID ?? String()} - set {_ownerID = newValue} - } - /// Returns true if `ownerID` has been explicitly set. - var hasOwnerID: Bool {return self._ownerID != nil} - /// Clears the value of `ownerID`. Subsequent reads from it will return its default value. - mutating func clearOwnerID() {self._ownerID = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _ownerID: String? = nil -} - -struct Stabilityai_Platformapis_Project_V1_DeleteProjectRequest { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - /// ID of the project to request, UUIDv4 - var id: String = String() - - /// The ID of the organization owning the project, empty for default org for user - var ownerID: String { - get {return _ownerID ?? String()} - set {_ownerID = newValue} - } - /// Returns true if `ownerID` has been explicitly set. - var hasOwnerID: Bool {return self._ownerID != nil} - /// Clears the value of `ownerID`. Subsequent reads from it will return its default value. - mutating func clearOwnerID() {self._ownerID = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _ownerID: String? = nil -} - -struct Stabilityai_Platformapis_Project_V1_QueryAssetsRequest { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - /// ID of the project to request, UUIDv4, empty string uses default project - var id: String = String() - - /// The ID of the organization owning the assets, unset for default org for user - var ownerID: String { - get {return _ownerID ?? String()} - set {_ownerID = newValue} - } - /// Returns true if `ownerID` has been explicitly set. - var hasOwnerID: Bool {return self._ownerID != nil} - /// Clears the value of `ownerID`. Subsequent reads from it will return its default value. - mutating func clearOwnerID() {self._ownerID = nil} - - /// The time (UTC seconds epoch) to start listing assets from, unset for no restriction - var since: UInt64 { - get {return _since ?? 0} - set {_since = newValue} - } - /// Returns true if `since` has been explicitly set. - var hasSince: Bool {return self._since != nil} - /// Clears the value of `since`. Subsequent reads from it will return its default value. - mutating func clearSince() {self._since = nil} - - /// The time (UTC seconds epoch) to stop listing assets at, unset for no restriction - var until: UInt64 { - get {return _until ?? 0} - set {_until = newValue} - } - /// Returns true if `until` has been explicitly set. - var hasUntil: Bool {return self._until != nil} - /// Clears the value of `until`. Subsequent reads from it will return its default value. - mutating func clearUntil() {self._until = nil} - - /// The maximum number of assets to return, unset for no limit - var limit: UInt64 { - get {return _limit ?? 0} - set {_limit = newValue} - } - /// Returns true if `limit` has been explicitly set. - var hasLimit: Bool {return self._limit != nil} - /// Clears the value of `limit`. Subsequent reads from it will return its default value. - mutating func clearLimit() {self._limit = nil} - - /// The key to start from, used to paginate results, unset for no offset - var startKey: String { - get {return _startKey ?? String()} - set {_startKey = newValue} - } - /// Returns true if `startKey` has been explicitly set. - var hasStartKey: Bool {return self._startKey != nil} - /// Clears the value of `startKey`. Subsequent reads from it will return its default value. - mutating func clearStartKey() {self._startKey = nil} - - /// The asset usage to filter the assets returned, empty for no filter - var use: [Stabilityai_Platformapis_Project_V1_ProjectAssetUse] = [] - - /// The sort direction based on asset creation time, default is descending - var sortDir: Stabilityai_Platformapis_Project_V1_ProjectSortDir = .unspecified - - /// The tag values used to filter the assets returned, empty for no filter - var tags: Dictionary = [:] - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _ownerID: String? = nil - fileprivate var _since: UInt64? = nil - fileprivate var _until: UInt64? = nil - fileprivate var _limit: UInt64? = nil - fileprivate var _startKey: String? = nil -} - -struct Stabilityai_Platformapis_Project_V1_QueryAssetsResponse { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - /// The assets returned by the query - var assets: [Stabilityai_Platformapis_Project_V1_ProjectAsset] = [] - - /// The last asset key returned when the results were limited, unset when not limited - var lastKey: String { - get {return _lastKey ?? String()} - set {_lastKey = newValue} - } - /// Returns true if `lastKey` has been explicitly set. - var hasLastKey: Bool {return self._lastKey != nil} - /// Clears the value of `lastKey`. Subsequent reads from it will return its default value. - mutating func clearLastKey() {self._lastKey = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _lastKey: String? = nil -} - -struct Stabilityai_Platformapis_Project_V1_TagAssetsRequest { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - /// ID of the project to request, UUIDv4, empty string uses default project - var id: String = String() - - /// The ID of the organization owning the assets, unset for default org for user - var ownerID: String { - get {return _ownerID ?? String()} - set {_ownerID = newValue} - } - /// Returns true if `ownerID` has been explicitly set. - var hasOwnerID: Bool {return self._ownerID != nil} - /// Clears the value of `ownerID`. Subsequent reads from it will return its default value. - mutating func clearOwnerID() {self._ownerID = nil} - - /// The IDs of the assets to tag in the project, UUIDv4, limit 1000 - var assetIds: [String] = [] - - /// The tags to add to the assets - var tags: Dictionary = [:] - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _ownerID: String? = nil -} - -struct Stabilityai_Platformapis_Project_V1_TagAssetsResponse { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - /// ID of the project, UUIDv4 - var id: String = String() - - /// The ID of the organization owning the project - var ownerID: String = String() - - /// The IDs of the assets updated in the project, UUIDv4, limit 1000 - var assetIds: [String] = [] - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -struct Stabilityai_Platformapis_Project_V1_UntagAssetsRequest { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - /// ID of the project to request, UUIDv4, empty string uses default project - var id: String = String() - - /// The ID of the organization owning the assets, unset for default org for user - var ownerID: String { - get {return _ownerID ?? String()} - set {_ownerID = newValue} - } - /// Returns true if `ownerID` has been explicitly set. - var hasOwnerID: Bool {return self._ownerID != nil} - /// Clears the value of `ownerID`. Subsequent reads from it will return its default value. - mutating func clearOwnerID() {self._ownerID = nil} - - /// The IDs of the assets to tag in the project, UUIDv4, limit 1000 - var assetIds: [String] = [] - - /// The keys of the tags to remove from the assets - var tagKeys: [String] = [] - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _ownerID: String? = nil -} - -struct Stabilityai_Platformapis_Project_V1_UntagAssetsResponse { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - /// ID of the project, UUIDv4 - var id: String = String() - - /// The ID of the organization owning the project - var ownerID: String = String() - - /// The IDs of the assets updated in the project, UUIDv4, limit 1000 - var assetIds: [String] = [] - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -struct Stabilityai_Platformapis_Project_V1_DeleteAssetsRequest { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - /// ID of the project to request, UUIDv4, empty string uses default project - var id: String = String() - - /// The ID of the organization owning the project, unset for default org for user - var ownerID: String { - get {return _ownerID ?? String()} - set {_ownerID = newValue} - } - /// Returns true if `ownerID` has been explicitly set. - var hasOwnerID: Bool {return self._ownerID != nil} - /// Clears the value of `ownerID`. Subsequent reads from it will return its default value. - mutating func clearOwnerID() {self._ownerID = nil} - - /// The IDs of the assets to delete from the project, UUIDv4, limit 1000 - var assetIds: [String] = [] - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _ownerID: String? = nil -} - -struct Stabilityai_Platformapis_Project_V1_DeleteAssetsResponse { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - /// ID of the project, UUIDv4 - var id: String = String() - - /// The ID of the organization owning the project - var ownerID: String = String() - - /// The IDs of the assets deleted from the project, UUIDv4, limit 1000 - var assetIds: [String] = [] - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -#if swift(>=5.5) && canImport(_Concurrency) -extension Stabilityai_Platformapis_Project_V1_ProjectAccess: @unchecked Sendable {} -extension Stabilityai_Platformapis_Project_V1_ProjectStatus: @unchecked Sendable {} -extension Stabilityai_Platformapis_Project_V1_ProjectAssetUse: @unchecked Sendable {} -extension Stabilityai_Platformapis_Project_V1_ProjectSortDir: @unchecked Sendable {} -extension Stabilityai_Platformapis_Project_V1_ProjectAsset: @unchecked Sendable {} -extension Stabilityai_Platformapis_Project_V1_Project: @unchecked Sendable {} -extension Stabilityai_Platformapis_Project_V1_CreateProjectRequest: @unchecked Sendable {} -extension Stabilityai_Platformapis_Project_V1_UpdateProjectRequest: @unchecked Sendable {} -extension Stabilityai_Platformapis_Project_V1_ListProjectRequest: @unchecked Sendable {} -extension Stabilityai_Platformapis_Project_V1_GetProjectRequest: @unchecked Sendable {} -extension Stabilityai_Platformapis_Project_V1_DeleteProjectRequest: @unchecked Sendable {} -extension Stabilityai_Platformapis_Project_V1_QueryAssetsRequest: @unchecked Sendable {} -extension Stabilityai_Platformapis_Project_V1_QueryAssetsResponse: @unchecked Sendable {} -extension Stabilityai_Platformapis_Project_V1_TagAssetsRequest: @unchecked Sendable {} -extension Stabilityai_Platformapis_Project_V1_TagAssetsResponse: @unchecked Sendable {} -extension Stabilityai_Platformapis_Project_V1_UntagAssetsRequest: @unchecked Sendable {} -extension Stabilityai_Platformapis_Project_V1_UntagAssetsResponse: @unchecked Sendable {} -extension Stabilityai_Platformapis_Project_V1_DeleteAssetsRequest: @unchecked Sendable {} -extension Stabilityai_Platformapis_Project_V1_DeleteAssetsResponse: @unchecked Sendable {} -#endif // swift(>=5.5) && canImport(_Concurrency) - -// MARK: - Code below here is support for the SwiftProtobuf runtime. - -fileprivate let _protobuf_package = "stabilityai.platformapis.project.v1" - -extension Stabilityai_Platformapis_Project_V1_ProjectAccess: SwiftProtobuf._ProtoNameProviding { - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "PROJECT_ACCESS_PRIVATE"), - 1: .same(proto: "PROJECT_ACCESS_PUBLIC"), - ] -} - -extension Stabilityai_Platformapis_Project_V1_ProjectStatus: SwiftProtobuf._ProtoNameProviding { - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "PROJECT_STATUS_INACTIVE"), - 1: .same(proto: "PROJECT_STATUS_ACTIVE"), - 2: .same(proto: "PROJECT_STATUS_DELETED"), - ] -} - -extension Stabilityai_Platformapis_Project_V1_ProjectAssetUse: SwiftProtobuf._ProtoNameProviding { - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "PROJECT_ASSET_USE_UNDEFINED"), - 1: .same(proto: "PROJECT_ASSET_USE_INPUT"), - 2: .same(proto: "PROJECT_ASSET_USE_OUTPUT"), - 3: .same(proto: "PROJECT_ASSET_USE_INTERMEDIATE"), - 4: .same(proto: "PROJECT_ASSET_USE_PROJECT"), - ] -} - -extension Stabilityai_Platformapis_Project_V1_ProjectSortDir: SwiftProtobuf._ProtoNameProviding { - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "PROJECT_SORT_DIR_UNSPECIFIED"), - 1: .same(proto: "PROJECT_SORT_DIR_ASC"), - 2: .same(proto: "PROJECT_SORT_DIR_DESC"), - ] -} - -extension Stabilityai_Platformapis_Project_V1_ProjectAsset: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".ProjectAsset" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .same(proto: "uri"), - 3: .same(proto: "use"), - 4: .same(proto: "name"), - 5: .same(proto: "size"), - 6: .standard(proto: "created_at"), - 7: .standard(proto: "updated_at"), - 8: .same(proto: "request"), - 9: .same(proto: "tags"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.uri) }() - case 3: try { try decoder.decodeSingularEnumField(value: &self.use) }() - case 4: try { try decoder.decodeSingularStringField(value: &self.name) }() - case 5: try { try decoder.decodeSingularUInt64Field(value: &self.size) }() - case 6: try { try decoder.decodeSingularUInt64Field(value: &self.createdAt) }() - case 7: try { try decoder.decodeSingularUInt64Field(value: &self.updatedAt) }() - case 8: try { try decoder.decodeSingularMessageField(value: &self._request) }() - case 9: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap.self, value: &self.tags) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - if !self.uri.isEmpty { - try visitor.visitSingularStringField(value: self.uri, fieldNumber: 2) - } - if self.use != .undefined { - try visitor.visitSingularEnumField(value: self.use, fieldNumber: 3) - } - if !self.name.isEmpty { - try visitor.visitSingularStringField(value: self.name, fieldNumber: 4) - } - if self.size != 0 { - try visitor.visitSingularUInt64Field(value: self.size, fieldNumber: 5) - } - if self.createdAt != 0 { - try visitor.visitSingularUInt64Field(value: self.createdAt, fieldNumber: 6) - } - if self.updatedAt != 0 { - try visitor.visitSingularUInt64Field(value: self.updatedAt, fieldNumber: 7) - } - try { if let v = self._request { - try visitor.visitSingularMessageField(value: v, fieldNumber: 8) - } }() - if !self.tags.isEmpty { - try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap.self, value: self.tags, fieldNumber: 9) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Project_V1_ProjectAsset, rhs: Stabilityai_Platformapis_Project_V1_ProjectAsset) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.uri != rhs.uri {return false} - if lhs.use != rhs.use {return false} - if lhs.name != rhs.name {return false} - if lhs.size != rhs.size {return false} - if lhs.createdAt != rhs.createdAt {return false} - if lhs.updatedAt != rhs.updatedAt {return false} - if lhs._request != rhs._request {return false} - if lhs.tags != rhs.tags {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Project_V1_Project: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".Project" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .same(proto: "title"), - 3: .standard(proto: "owner_id"), - 4: .same(proto: "access"), - 5: .same(proto: "status"), - 6: .same(proto: "size"), - 7: .same(proto: "file"), - 8: .standard(proto: "created_at"), - 9: .standard(proto: "updated_at"), - 10: .same(proto: "assets"), - ] - - fileprivate class _StorageClass { - var _id: String = String() - var _title: String = String() - var _ownerID: String = String() - var _access: Stabilityai_Platformapis_Project_V1_ProjectAccess = .private - var _status: Stabilityai_Platformapis_Project_V1_ProjectStatus = .inactive - var _size: UInt64 = 0 - var _file: Stabilityai_Platformapis_Project_V1_ProjectAsset? = nil - var _createdAt: UInt64 = 0 - var _updatedAt: UInt64 = 0 - var _assets: [Stabilityai_Platformapis_Project_V1_ProjectAsset] = [] - - static let defaultInstance = _StorageClass() - - private init() {} - - init(copying source: _StorageClass) { - _id = source._id - _title = source._title - _ownerID = source._ownerID - _access = source._access - _status = source._status - _size = source._size - _file = source._file - _createdAt = source._createdAt - _updatedAt = source._updatedAt - _assets = source._assets - } - } - - fileprivate mutating func _uniqueStorage() -> _StorageClass { - if !isKnownUniquelyReferenced(&_storage) { - _storage = _StorageClass(copying: _storage) - } - return _storage - } - - mutating func decodeMessage(decoder: inout D) throws { - _ = _uniqueStorage() - try withExtendedLifetime(_storage) { (_storage: _StorageClass) in - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &_storage._id) }() - case 2: try { try decoder.decodeSingularStringField(value: &_storage._title) }() - case 3: try { try decoder.decodeSingularStringField(value: &_storage._ownerID) }() - case 4: try { try decoder.decodeSingularEnumField(value: &_storage._access) }() - case 5: try { try decoder.decodeSingularEnumField(value: &_storage._status) }() - case 6: try { try decoder.decodeSingularUInt64Field(value: &_storage._size) }() - case 7: try { try decoder.decodeSingularMessageField(value: &_storage._file) }() - case 8: try { try decoder.decodeSingularUInt64Field(value: &_storage._createdAt) }() - case 9: try { try decoder.decodeSingularUInt64Field(value: &_storage._updatedAt) }() - case 10: try { try decoder.decodeRepeatedMessageField(value: &_storage._assets) }() - default: break - } - } - } - } - - func traverse(visitor: inout V) throws { - try withExtendedLifetime(_storage) { (_storage: _StorageClass) in - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !_storage._id.isEmpty { - try visitor.visitSingularStringField(value: _storage._id, fieldNumber: 1) - } - if !_storage._title.isEmpty { - try visitor.visitSingularStringField(value: _storage._title, fieldNumber: 2) - } - if !_storage._ownerID.isEmpty { - try visitor.visitSingularStringField(value: _storage._ownerID, fieldNumber: 3) - } - if _storage._access != .private { - try visitor.visitSingularEnumField(value: _storage._access, fieldNumber: 4) - } - if _storage._status != .inactive { - try visitor.visitSingularEnumField(value: _storage._status, fieldNumber: 5) - } - if _storage._size != 0 { - try visitor.visitSingularUInt64Field(value: _storage._size, fieldNumber: 6) - } - try { if let v = _storage._file { - try visitor.visitSingularMessageField(value: v, fieldNumber: 7) - } }() - if _storage._createdAt != 0 { - try visitor.visitSingularUInt64Field(value: _storage._createdAt, fieldNumber: 8) - } - if _storage._updatedAt != 0 { - try visitor.visitSingularUInt64Field(value: _storage._updatedAt, fieldNumber: 9) - } - if !_storage._assets.isEmpty { - try visitor.visitRepeatedMessageField(value: _storage._assets, fieldNumber: 10) - } - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Project_V1_Project, rhs: Stabilityai_Platformapis_Project_V1_Project) -> Bool { - if lhs._storage !== rhs._storage { - let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in - let _storage = _args.0 - let rhs_storage = _args.1 - if _storage._id != rhs_storage._id {return false} - if _storage._title != rhs_storage._title {return false} - if _storage._ownerID != rhs_storage._ownerID {return false} - if _storage._access != rhs_storage._access {return false} - if _storage._status != rhs_storage._status {return false} - if _storage._size != rhs_storage._size {return false} - if _storage._file != rhs_storage._file {return false} - if _storage._createdAt != rhs_storage._createdAt {return false} - if _storage._updatedAt != rhs_storage._updatedAt {return false} - if _storage._assets != rhs_storage._assets {return false} - return true - } - if !storagesAreEqual {return false} - } - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Project_V1_CreateProjectRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".CreateProjectRequest" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "title"), - 2: .standard(proto: "owner_id"), - 3: .same(proto: "access"), - 4: .same(proto: "status"), - 5: .same(proto: "file"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.title) }() - case 2: try { try decoder.decodeSingularStringField(value: &self._ownerID) }() - case 3: try { try decoder.decodeSingularEnumField(value: &self.access) }() - case 4: try { try decoder.decodeSingularEnumField(value: &self.status) }() - case 5: try { try decoder.decodeSingularMessageField(value: &self._file) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !self.title.isEmpty { - try visitor.visitSingularStringField(value: self.title, fieldNumber: 1) - } - try { if let v = self._ownerID { - try visitor.visitSingularStringField(value: v, fieldNumber: 2) - } }() - if self.access != .private { - try visitor.visitSingularEnumField(value: self.access, fieldNumber: 3) - } - if self.status != .inactive { - try visitor.visitSingularEnumField(value: self.status, fieldNumber: 4) - } - try { if let v = self._file { - try visitor.visitSingularMessageField(value: v, fieldNumber: 5) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Project_V1_CreateProjectRequest, rhs: Stabilityai_Platformapis_Project_V1_CreateProjectRequest) -> Bool { - if lhs.title != rhs.title {return false} - if lhs._ownerID != rhs._ownerID {return false} - if lhs.access != rhs.access {return false} - if lhs.status != rhs.status {return false} - if lhs._file != rhs._file {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Project_V1_UpdateProjectRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".UpdateProjectRequest" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "owner_id"), - 3: .same(proto: "title"), - 4: .same(proto: "access"), - 5: .same(proto: "status"), - 6: .same(proto: "file"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self._ownerID) }() - case 3: try { try decoder.decodeSingularStringField(value: &self._title) }() - case 4: try { try decoder.decodeSingularEnumField(value: &self._access) }() - case 5: try { try decoder.decodeSingularEnumField(value: &self._status) }() - case 6: try { try decoder.decodeSingularMessageField(value: &self._file) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - try { if let v = self._ownerID { - try visitor.visitSingularStringField(value: v, fieldNumber: 2) - } }() - try { if let v = self._title { - try visitor.visitSingularStringField(value: v, fieldNumber: 3) - } }() - try { if let v = self._access { - try visitor.visitSingularEnumField(value: v, fieldNumber: 4) - } }() - try { if let v = self._status { - try visitor.visitSingularEnumField(value: v, fieldNumber: 5) - } }() - try { if let v = self._file { - try visitor.visitSingularMessageField(value: v, fieldNumber: 6) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Project_V1_UpdateProjectRequest, rhs: Stabilityai_Platformapis_Project_V1_UpdateProjectRequest) -> Bool { - if lhs.id != rhs.id {return false} - if lhs._ownerID != rhs._ownerID {return false} - if lhs._title != rhs._title {return false} - if lhs._access != rhs._access {return false} - if lhs._status != rhs._status {return false} - if lhs._file != rhs._file {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Project_V1_ListProjectRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".ListProjectRequest" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .standard(proto: "owner_id"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self._ownerID) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - try { if let v = self._ownerID { - try visitor.visitSingularStringField(value: v, fieldNumber: 1) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Project_V1_ListProjectRequest, rhs: Stabilityai_Platformapis_Project_V1_ListProjectRequest) -> Bool { - if lhs._ownerID != rhs._ownerID {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Project_V1_GetProjectRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".GetProjectRequest" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "owner_id"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self._ownerID) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - try { if let v = self._ownerID { - try visitor.visitSingularStringField(value: v, fieldNumber: 2) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Project_V1_GetProjectRequest, rhs: Stabilityai_Platformapis_Project_V1_GetProjectRequest) -> Bool { - if lhs.id != rhs.id {return false} - if lhs._ownerID != rhs._ownerID {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Project_V1_DeleteProjectRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".DeleteProjectRequest" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "owner_id"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self._ownerID) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - try { if let v = self._ownerID { - try visitor.visitSingularStringField(value: v, fieldNumber: 2) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Project_V1_DeleteProjectRequest, rhs: Stabilityai_Platformapis_Project_V1_DeleteProjectRequest) -> Bool { - if lhs.id != rhs.id {return false} - if lhs._ownerID != rhs._ownerID {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Project_V1_QueryAssetsRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".QueryAssetsRequest" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "owner_id"), - 3: .same(proto: "since"), - 4: .same(proto: "until"), - 5: .same(proto: "limit"), - 6: .standard(proto: "start_key"), - 7: .same(proto: "use"), - 8: .standard(proto: "sort_dir"), - 9: .same(proto: "tags"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self._ownerID) }() - case 3: try { try decoder.decodeSingularUInt64Field(value: &self._since) }() - case 4: try { try decoder.decodeSingularUInt64Field(value: &self._until) }() - case 5: try { try decoder.decodeSingularUInt64Field(value: &self._limit) }() - case 6: try { try decoder.decodeSingularStringField(value: &self._startKey) }() - case 7: try { try decoder.decodeRepeatedEnumField(value: &self.use) }() - case 8: try { try decoder.decodeSingularEnumField(value: &self.sortDir) }() - case 9: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap.self, value: &self.tags) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - try { if let v = self._ownerID { - try visitor.visitSingularStringField(value: v, fieldNumber: 2) - } }() - try { if let v = self._since { - try visitor.visitSingularUInt64Field(value: v, fieldNumber: 3) - } }() - try { if let v = self._until { - try visitor.visitSingularUInt64Field(value: v, fieldNumber: 4) - } }() - try { if let v = self._limit { - try visitor.visitSingularUInt64Field(value: v, fieldNumber: 5) - } }() - try { if let v = self._startKey { - try visitor.visitSingularStringField(value: v, fieldNumber: 6) - } }() - if !self.use.isEmpty { - try visitor.visitPackedEnumField(value: self.use, fieldNumber: 7) - } - if self.sortDir != .unspecified { - try visitor.visitSingularEnumField(value: self.sortDir, fieldNumber: 8) - } - if !self.tags.isEmpty { - try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap.self, value: self.tags, fieldNumber: 9) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Project_V1_QueryAssetsRequest, rhs: Stabilityai_Platformapis_Project_V1_QueryAssetsRequest) -> Bool { - if lhs.id != rhs.id {return false} - if lhs._ownerID != rhs._ownerID {return false} - if lhs._since != rhs._since {return false} - if lhs._until != rhs._until {return false} - if lhs._limit != rhs._limit {return false} - if lhs._startKey != rhs._startKey {return false} - if lhs.use != rhs.use {return false} - if lhs.sortDir != rhs.sortDir {return false} - if lhs.tags != rhs.tags {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Project_V1_QueryAssetsResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".QueryAssetsResponse" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "assets"), - 2: .standard(proto: "last_key"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeRepeatedMessageField(value: &self.assets) }() - case 2: try { try decoder.decodeSingularStringField(value: &self._lastKey) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !self.assets.isEmpty { - try visitor.visitRepeatedMessageField(value: self.assets, fieldNumber: 1) - } - try { if let v = self._lastKey { - try visitor.visitSingularStringField(value: v, fieldNumber: 2) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Project_V1_QueryAssetsResponse, rhs: Stabilityai_Platformapis_Project_V1_QueryAssetsResponse) -> Bool { - if lhs.assets != rhs.assets {return false} - if lhs._lastKey != rhs._lastKey {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Project_V1_TagAssetsRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".TagAssetsRequest" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "owner_id"), - 3: .standard(proto: "asset_ids"), - 4: .same(proto: "tags"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self._ownerID) }() - case 3: try { try decoder.decodeRepeatedStringField(value: &self.assetIds) }() - case 4: try { try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap.self, value: &self.tags) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - try { if let v = self._ownerID { - try visitor.visitSingularStringField(value: v, fieldNumber: 2) - } }() - if !self.assetIds.isEmpty { - try visitor.visitRepeatedStringField(value: self.assetIds, fieldNumber: 3) - } - if !self.tags.isEmpty { - try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap.self, value: self.tags, fieldNumber: 4) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Project_V1_TagAssetsRequest, rhs: Stabilityai_Platformapis_Project_V1_TagAssetsRequest) -> Bool { - if lhs.id != rhs.id {return false} - if lhs._ownerID != rhs._ownerID {return false} - if lhs.assetIds != rhs.assetIds {return false} - if lhs.tags != rhs.tags {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Project_V1_TagAssetsResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".TagAssetsResponse" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "owner_id"), - 3: .standard(proto: "asset_ids"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.ownerID) }() - case 3: try { try decoder.decodeRepeatedStringField(value: &self.assetIds) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - if !self.ownerID.isEmpty { - try visitor.visitSingularStringField(value: self.ownerID, fieldNumber: 2) - } - if !self.assetIds.isEmpty { - try visitor.visitRepeatedStringField(value: self.assetIds, fieldNumber: 3) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Project_V1_TagAssetsResponse, rhs: Stabilityai_Platformapis_Project_V1_TagAssetsResponse) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.ownerID != rhs.ownerID {return false} - if lhs.assetIds != rhs.assetIds {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Project_V1_UntagAssetsRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".UntagAssetsRequest" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "owner_id"), - 3: .standard(proto: "asset_ids"), - 4: .standard(proto: "tag_keys"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self._ownerID) }() - case 3: try { try decoder.decodeRepeatedStringField(value: &self.assetIds) }() - case 4: try { try decoder.decodeRepeatedStringField(value: &self.tagKeys) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - try { if let v = self._ownerID { - try visitor.visitSingularStringField(value: v, fieldNumber: 2) - } }() - if !self.assetIds.isEmpty { - try visitor.visitRepeatedStringField(value: self.assetIds, fieldNumber: 3) - } - if !self.tagKeys.isEmpty { - try visitor.visitRepeatedStringField(value: self.tagKeys, fieldNumber: 4) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Project_V1_UntagAssetsRequest, rhs: Stabilityai_Platformapis_Project_V1_UntagAssetsRequest) -> Bool { - if lhs.id != rhs.id {return false} - if lhs._ownerID != rhs._ownerID {return false} - if lhs.assetIds != rhs.assetIds {return false} - if lhs.tagKeys != rhs.tagKeys {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Project_V1_UntagAssetsResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".UntagAssetsResponse" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "owner_id"), - 3: .standard(proto: "asset_ids"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.ownerID) }() - case 3: try { try decoder.decodeRepeatedStringField(value: &self.assetIds) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - if !self.ownerID.isEmpty { - try visitor.visitSingularStringField(value: self.ownerID, fieldNumber: 2) - } - if !self.assetIds.isEmpty { - try visitor.visitRepeatedStringField(value: self.assetIds, fieldNumber: 3) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Project_V1_UntagAssetsResponse, rhs: Stabilityai_Platformapis_Project_V1_UntagAssetsResponse) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.ownerID != rhs.ownerID {return false} - if lhs.assetIds != rhs.assetIds {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Project_V1_DeleteAssetsRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".DeleteAssetsRequest" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "owner_id"), - 3: .standard(proto: "asset_ids"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self._ownerID) }() - case 3: try { try decoder.decodeRepeatedStringField(value: &self.assetIds) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - try { if let v = self._ownerID { - try visitor.visitSingularStringField(value: v, fieldNumber: 2) - } }() - if !self.assetIds.isEmpty { - try visitor.visitRepeatedStringField(value: self.assetIds, fieldNumber: 3) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Project_V1_DeleteAssetsRequest, rhs: Stabilityai_Platformapis_Project_V1_DeleteAssetsRequest) -> Bool { - if lhs.id != rhs.id {return false} - if lhs._ownerID != rhs._ownerID {return false} - if lhs.assetIds != rhs.assetIds {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Stabilityai_Platformapis_Project_V1_DeleteAssetsResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".DeleteAssetsResponse" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "id"), - 2: .standard(proto: "owner_id"), - 3: .standard(proto: "asset_ids"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.id) }() - case 2: try { try decoder.decodeSingularStringField(value: &self.ownerID) }() - case 3: try { try decoder.decodeRepeatedStringField(value: &self.assetIds) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if !self.id.isEmpty { - try visitor.visitSingularStringField(value: self.id, fieldNumber: 1) - } - if !self.ownerID.isEmpty { - try visitor.visitSingularStringField(value: self.ownerID, fieldNumber: 2) - } - if !self.assetIds.isEmpty { - try visitor.visitRepeatedStringField(value: self.assetIds, fieldNumber: 3) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Stabilityai_Platformapis_Project_V1_DeleteAssetsResponse, rhs: Stabilityai_Platformapis_Project_V1_DeleteAssetsResponse) -> Bool { - if lhs.id != rhs.id {return false} - if lhs.ownerID != rhs.ownerID {return false} - if lhs.assetIds != rhs.assetIds {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} diff --git a/gen/proto/swift/stability_api/tensors/tensors.pb.swift b/gen/proto/swift/stability_api/tensors/tensors.pb.swift deleted file mode 100644 index 20028e3..0000000 --- a/gen/proto/swift/stability_api/tensors/tensors.pb.swift +++ /dev/null @@ -1,583 +0,0 @@ -// DO NOT EDIT. -// swift-format-ignore-file -// -// Generated by the Swift generator plugin for the protocol buffer compiler. -// Source: stability_api/tensors/tensors.proto -// -// For information on using the generated types, please see the documentation: -// https://github.com/apple/swift-protobuf/ - -import Foundation -import SwiftProtobuf - -// If the compiler emits an error on this type, it is because this file -// was generated by a version of the `protoc` Swift plug-in that is -// incompatible with the version of SwiftProtobuf to which you are linking. -// Please ensure that you are building against the same version of the API -// that was used to generate this file. -fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck { - struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {} - typealias Version = _2 -} - -enum Tensors_Dtype: SwiftProtobuf.Enum { - typealias RawValue = Int - case dtInvalid // = 0 - case dtFloat32 // = 1 - case dtFloat64 // = 2 - case dtFloat16 // = 3 - case dtBfloat16 // = 4 - case dtComplex32 // = 5 - case dtComplex64 // = 6 - case dtComplex128 // = 7 - case dtUint8 // = 8 - case dtInt8 // = 9 - case dtInt16 // = 10 - case dtInt32 // = 11 - case dtInt64 // = 12 - case dtBool // = 13 - case dtQuint8 // = 14 - case dtQint8 // = 15 - case dtQint32 // = 16 - case dtQuint42 // = 17 - case UNRECOGNIZED(Int) - - init() { - self = .dtInvalid - } - - init?(rawValue: Int) { - switch rawValue { - case 0: self = .dtInvalid - case 1: self = .dtFloat32 - case 2: self = .dtFloat64 - case 3: self = .dtFloat16 - case 4: self = .dtBfloat16 - case 5: self = .dtComplex32 - case 6: self = .dtComplex64 - case 7: self = .dtComplex128 - case 8: self = .dtUint8 - case 9: self = .dtInt8 - case 10: self = .dtInt16 - case 11: self = .dtInt32 - case 12: self = .dtInt64 - case 13: self = .dtBool - case 14: self = .dtQuint8 - case 15: self = .dtQint8 - case 16: self = .dtQint32 - case 17: self = .dtQuint42 - default: self = .UNRECOGNIZED(rawValue) - } - } - - var rawValue: Int { - switch self { - case .dtInvalid: return 0 - case .dtFloat32: return 1 - case .dtFloat64: return 2 - case .dtFloat16: return 3 - case .dtBfloat16: return 4 - case .dtComplex32: return 5 - case .dtComplex64: return 6 - case .dtComplex128: return 7 - case .dtUint8: return 8 - case .dtInt8: return 9 - case .dtInt16: return 10 - case .dtInt32: return 11 - case .dtInt64: return 12 - case .dtBool: return 13 - case .dtQuint8: return 14 - case .dtQint8: return 15 - case .dtQint32: return 16 - case .dtQuint42: return 17 - case .UNRECOGNIZED(let i): return i - } - } - -} - -#if swift(>=4.2) - -extension Tensors_Dtype: CaseIterable { - // The compiler won't synthesize support with the UNRECOGNIZED case. - static var allCases: [Tensors_Dtype] = [ - .dtInvalid, - .dtFloat32, - .dtFloat64, - .dtFloat16, - .dtBfloat16, - .dtComplex32, - .dtComplex64, - .dtComplex128, - .dtUint8, - .dtInt8, - .dtInt16, - .dtInt32, - .dtInt64, - .dtBool, - .dtQuint8, - .dtQint8, - .dtQint32, - .dtQuint42, - ] -} - -#endif // swift(>=4.2) - -enum Tensors_AttributeType: SwiftProtobuf.Enum { - typealias RawValue = Int - case atParameter // = 0 - case atBuffer // = 1 - case UNRECOGNIZED(Int) - - init() { - self = .atParameter - } - - init?(rawValue: Int) { - switch rawValue { - case 0: self = .atParameter - case 1: self = .atBuffer - default: self = .UNRECOGNIZED(rawValue) - } - } - - var rawValue: Int { - switch self { - case .atParameter: return 0 - case .atBuffer: return 1 - case .UNRECOGNIZED(let i): return i - } - } - -} - -#if swift(>=4.2) - -extension Tensors_AttributeType: CaseIterable { - // The compiler won't synthesize support with the UNRECOGNIZED case. - static var allCases: [Tensors_AttributeType] = [ - .atParameter, - .atBuffer, - ] -} - -#endif // swift(>=4.2) - -struct Tensors_Tensor { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var dtype: Tensors_Dtype = .dtInvalid - - var shape: [Int64] = [] - - var data: Data = Data() - - var attrType: Tensors_AttributeType { - get {return _attrType ?? .atParameter} - set {_attrType = newValue} - } - /// Returns true if `attrType` has been explicitly set. - var hasAttrType: Bool {return self._attrType != nil} - /// Clears the value of `attrType`. Subsequent reads from it will return its default value. - mutating func clearAttrType() {self._attrType = nil} - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} - - fileprivate var _attrType: Tensors_AttributeType? = nil -} - -struct Tensors_Attribute { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var name: String = String() - - var value: Tensors_Attribute.OneOf_Value? = nil - - var module: Tensors_Module { - get { - if case .module(let v)? = value {return v} - return Tensors_Module() - } - set {value = .module(newValue)} - } - - var tensor: Tensors_Tensor { - get { - if case .tensor(let v)? = value {return v} - return Tensors_Tensor() - } - set {value = .tensor(newValue)} - } - - var string: String { - get { - if case .string(let v)? = value {return v} - return String() - } - set {value = .string(newValue)} - } - - var int64: Int64 { - get { - if case .int64(let v)? = value {return v} - return 0 - } - set {value = .int64(newValue)} - } - - var float: Float { - get { - if case .float(let v)? = value {return v} - return 0 - } - set {value = .float(newValue)} - } - - var bool: Bool { - get { - if case .bool(let v)? = value {return v} - return false - } - set {value = .bool(newValue)} - } - - var unknownFields = SwiftProtobuf.UnknownStorage() - - enum OneOf_Value: Equatable { - case module(Tensors_Module) - case tensor(Tensors_Tensor) - case string(String) - case int64(Int64) - case float(Float) - case bool(Bool) - - #if !swift(>=4.1) - static func ==(lhs: Tensors_Attribute.OneOf_Value, rhs: Tensors_Attribute.OneOf_Value) -> Bool { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch (lhs, rhs) { - case (.module, .module): return { - guard case .module(let l) = lhs, case .module(let r) = rhs else { preconditionFailure() } - return l == r - }() - case (.tensor, .tensor): return { - guard case .tensor(let l) = lhs, case .tensor(let r) = rhs else { preconditionFailure() } - return l == r - }() - case (.string, .string): return { - guard case .string(let l) = lhs, case .string(let r) = rhs else { preconditionFailure() } - return l == r - }() - case (.int64, .int64): return { - guard case .int64(let l) = lhs, case .int64(let r) = rhs else { preconditionFailure() } - return l == r - }() - case (.float, .float): return { - guard case .float(let l) = lhs, case .float(let r) = rhs else { preconditionFailure() } - return l == r - }() - case (.bool, .bool): return { - guard case .bool(let l) = lhs, case .bool(let r) = rhs else { preconditionFailure() } - return l == r - }() - default: return false - } - } - #endif - } - - init() {} -} - -struct Tensors_Module { - // SwiftProtobuf.Message conformance is added in an extension below. See the - // `Message` and `Message+*Additions` files in the SwiftProtobuf library for - // methods supported on all messages. - - var name: String = String() - - var names: [String] = [] - - var attributes: [Tensors_Attribute] = [] - - var unknownFields = SwiftProtobuf.UnknownStorage() - - init() {} -} - -#if swift(>=5.5) && canImport(_Concurrency) -extension Tensors_Dtype: @unchecked Sendable {} -extension Tensors_AttributeType: @unchecked Sendable {} -extension Tensors_Tensor: @unchecked Sendable {} -extension Tensors_Attribute: @unchecked Sendable {} -extension Tensors_Attribute.OneOf_Value: @unchecked Sendable {} -extension Tensors_Module: @unchecked Sendable {} -#endif // swift(>=5.5) && canImport(_Concurrency) - -// MARK: - Code below here is support for the SwiftProtobuf runtime. - -fileprivate let _protobuf_package = "tensors" - -extension Tensors_Dtype: SwiftProtobuf._ProtoNameProviding { - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "DT_INVALID"), - 1: .same(proto: "DT_FLOAT32"), - 2: .same(proto: "DT_FLOAT64"), - 3: .same(proto: "DT_FLOAT16"), - 4: .same(proto: "DT_BFLOAT16"), - 5: .same(proto: "DT_COMPLEX32"), - 6: .same(proto: "DT_COMPLEX64"), - 7: .same(proto: "DT_COMPLEX128"), - 8: .same(proto: "DT_UINT8"), - 9: .same(proto: "DT_INT8"), - 10: .same(proto: "DT_INT16"), - 11: .same(proto: "DT_INT32"), - 12: .same(proto: "DT_INT64"), - 13: .same(proto: "DT_BOOL"), - 14: .same(proto: "DT_QUINT8"), - 15: .same(proto: "DT_QINT8"), - 16: .same(proto: "DT_QINT32"), - 17: .same(proto: "DT_QUINT4_2"), - ] -} - -extension Tensors_AttributeType: SwiftProtobuf._ProtoNameProviding { - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 0: .same(proto: "AT_PARAMETER"), - 1: .same(proto: "AT_BUFFER"), - ] -} - -extension Tensors_Tensor: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".Tensor" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "dtype"), - 2: .same(proto: "shape"), - 3: .same(proto: "data"), - 4: .standard(proto: "attr_type"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularEnumField(value: &self.dtype) }() - case 2: try { try decoder.decodeRepeatedInt64Field(value: &self.shape) }() - case 3: try { try decoder.decodeSingularBytesField(value: &self.data) }() - case 4: try { try decoder.decodeSingularEnumField(value: &self._attrType) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if self.dtype != .dtInvalid { - try visitor.visitSingularEnumField(value: self.dtype, fieldNumber: 1) - } - if !self.shape.isEmpty { - try visitor.visitPackedInt64Field(value: self.shape, fieldNumber: 2) - } - if !self.data.isEmpty { - try visitor.visitSingularBytesField(value: self.data, fieldNumber: 3) - } - try { if let v = self._attrType { - try visitor.visitSingularEnumField(value: v, fieldNumber: 4) - } }() - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Tensors_Tensor, rhs: Tensors_Tensor) -> Bool { - if lhs.dtype != rhs.dtype {return false} - if lhs.shape != rhs.shape {return false} - if lhs.data != rhs.data {return false} - if lhs._attrType != rhs._attrType {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Tensors_Attribute: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".Attribute" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "name"), - 3: .same(proto: "module"), - 4: .same(proto: "tensor"), - 5: .same(proto: "string"), - 6: .same(proto: "int64"), - 7: .same(proto: "float"), - 8: .same(proto: "bool"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.name) }() - case 3: try { - var v: Tensors_Module? - var hadOneofValue = false - if let current = self.value { - hadOneofValue = true - if case .module(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.value = .module(v) - } - }() - case 4: try { - var v: Tensors_Tensor? - var hadOneofValue = false - if let current = self.value { - hadOneofValue = true - if case .tensor(let m) = current {v = m} - } - try decoder.decodeSingularMessageField(value: &v) - if let v = v { - if hadOneofValue {try decoder.handleConflictingOneOf()} - self.value = .tensor(v) - } - }() - case 5: try { - var v: String? - try decoder.decodeSingularStringField(value: &v) - if let v = v { - if self.value != nil {try decoder.handleConflictingOneOf()} - self.value = .string(v) - } - }() - case 6: try { - var v: Int64? - try decoder.decodeSingularInt64Field(value: &v) - if let v = v { - if self.value != nil {try decoder.handleConflictingOneOf()} - self.value = .int64(v) - } - }() - case 7: try { - var v: Float? - try decoder.decodeSingularFloatField(value: &v) - if let v = v { - if self.value != nil {try decoder.handleConflictingOneOf()} - self.value = .float(v) - } - }() - case 8: try { - var v: Bool? - try decoder.decodeSingularBoolField(value: &v) - if let v = v { - if self.value != nil {try decoder.handleConflictingOneOf()} - self.value = .bool(v) - } - }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every if/case branch local when no optimizations - // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and - // https://github.com/apple/swift-protobuf/issues/1182 - if !self.name.isEmpty { - try visitor.visitSingularStringField(value: self.name, fieldNumber: 1) - } - switch self.value { - case .module?: try { - guard case .module(let v)? = self.value else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 3) - }() - case .tensor?: try { - guard case .tensor(let v)? = self.value else { preconditionFailure() } - try visitor.visitSingularMessageField(value: v, fieldNumber: 4) - }() - case .string?: try { - guard case .string(let v)? = self.value else { preconditionFailure() } - try visitor.visitSingularStringField(value: v, fieldNumber: 5) - }() - case .int64?: try { - guard case .int64(let v)? = self.value else { preconditionFailure() } - try visitor.visitSingularInt64Field(value: v, fieldNumber: 6) - }() - case .float?: try { - guard case .float(let v)? = self.value else { preconditionFailure() } - try visitor.visitSingularFloatField(value: v, fieldNumber: 7) - }() - case .bool?: try { - guard case .bool(let v)? = self.value else { preconditionFailure() } - try visitor.visitSingularBoolField(value: v, fieldNumber: 8) - }() - case nil: break - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Tensors_Attribute, rhs: Tensors_Attribute) -> Bool { - if lhs.name != rhs.name {return false} - if lhs.value != rhs.value {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} - -extension Tensors_Module: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { - static let protoMessageName: String = _protobuf_package + ".Module" - static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "name"), - 2: .same(proto: "names"), - 3: .same(proto: "attributes"), - ] - - mutating func decodeMessage(decoder: inout D) throws { - while let fieldNumber = try decoder.nextFieldNumber() { - // The use of inline closures is to circumvent an issue where the compiler - // allocates stack space for every case branch when no optimizations are - // enabled. https://github.com/apple/swift-protobuf/issues/1034 - switch fieldNumber { - case 1: try { try decoder.decodeSingularStringField(value: &self.name) }() - case 2: try { try decoder.decodeRepeatedStringField(value: &self.names) }() - case 3: try { try decoder.decodeRepeatedMessageField(value: &self.attributes) }() - default: break - } - } - } - - func traverse(visitor: inout V) throws { - if !self.name.isEmpty { - try visitor.visitSingularStringField(value: self.name, fieldNumber: 1) - } - if !self.names.isEmpty { - try visitor.visitRepeatedStringField(value: self.names, fieldNumber: 2) - } - if !self.attributes.isEmpty { - try visitor.visitRepeatedMessageField(value: self.attributes, fieldNumber: 3) - } - try unknownFields.traverse(visitor: &visitor) - } - - static func ==(lhs: Tensors_Module, rhs: Tensors_Module) -> Bool { - if lhs.name != rhs.name {return false} - if lhs.names != rhs.names {return false} - if lhs.attributes != rhs.attributes {return false} - if lhs.unknownFields != rhs.unknownFields {return false} - return true - } -} diff --git a/package-lock.json b/package-lock.json index 16a0a1a..298d1d8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,7 +7,8 @@ "": { "name": "api-interfaces", "version": "0.1.0", - "devDependencies": { + "hasInstallScript": true, + "dependencies": { "@bufbuild/buf": "^1.18.0-1" } }, @@ -15,7 +16,6 @@ "version": "1.18.0-1", "resolved": "https://registry.npmjs.org/@bufbuild/buf/-/buf-1.18.0-1.tgz", "integrity": "sha512-Js6BEbjsfM+aFo2bUxfTs0B4htDbjWCKZ8+FHV6YYqiVsin6NGGQsXblJxwt4+16HLfSnrf41RRnwUaBwHqBzQ==", - "dev": true, "hasInstallScript": true, "bin": { "buf": "bin/buf", @@ -41,7 +41,6 @@ "cpu": [ "arm64" ], - "dev": true, "optional": true, "os": [ "darwin" @@ -57,7 +56,6 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "darwin" @@ -73,7 +71,6 @@ "cpu": [ "arm64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -89,7 +86,6 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "linux" @@ -105,7 +101,6 @@ "cpu": [ "arm64" ], - "dev": true, "optional": true, "os": [ "win32" @@ -121,7 +116,6 @@ "cpu": [ "x64" ], - "dev": true, "optional": true, "os": [ "win32" @@ -136,7 +130,6 @@ "version": "1.18.0-1", "resolved": "https://registry.npmjs.org/@bufbuild/buf/-/buf-1.18.0-1.tgz", "integrity": "sha512-Js6BEbjsfM+aFo2bUxfTs0B4htDbjWCKZ8+FHV6YYqiVsin6NGGQsXblJxwt4+16HLfSnrf41RRnwUaBwHqBzQ==", - "dev": true, "requires": { "@bufbuild/buf-darwin-arm64": "1.18.0-1", "@bufbuild/buf-darwin-x64": "1.18.0-1", @@ -150,42 +143,36 @@ "version": "1.18.0-1", "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-arm64/-/buf-darwin-arm64-1.18.0-1.tgz", "integrity": "sha512-4iFChDoXAiuMZQoXpJoCSvCkcT7p1fmsY2N/+wTdODQbXAwqR8vQz19FPR2Jv5ukhd44LUi43nFsyQ2dWmeZeA==", - "dev": true, "optional": true }, "@bufbuild/buf-darwin-x64": { "version": "1.18.0-1", "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-x64/-/buf-darwin-x64-1.18.0-1.tgz", "integrity": "sha512-tuOnoCqFaUOj9dBuubEve5XGNkjL+zeCW7ETNgmArUlQobEkL2Fza5mi5Fqt90Ommfj1xpc4vaeNz1oSuU3dTw==", - "dev": true, "optional": true }, "@bufbuild/buf-linux-aarch64": { "version": "1.18.0-1", "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-aarch64/-/buf-linux-aarch64-1.18.0-1.tgz", "integrity": "sha512-QdYp89hlLVPPZYlaeVhE0swk5Ygncij1avVmvLQw99+lvaFlDu9zRQ0Jo7n1VjpZWdDhUd/thYWxSqSMJYLajA==", - "dev": true, "optional": true }, "@bufbuild/buf-linux-x64": { "version": "1.18.0-1", "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-x64/-/buf-linux-x64-1.18.0-1.tgz", "integrity": "sha512-9a6xv+OsYjhg5f1WHDtoXJVxG2j6awFi5cx9dkCPMODvFsll7skkwfkDngxKkibNU0aY6TxLoQXdf77eQwIWtQ==", - "dev": true, "optional": true }, "@bufbuild/buf-win32-arm64": { "version": "1.18.0-1", "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-arm64/-/buf-win32-arm64-1.18.0-1.tgz", "integrity": "sha512-UP6KevD0cdxa4IJcDy31KC9sIIgxCWBP/K9uW+gBDLg2cNQBtVqlN8o65PJhsl9HB+p0/Y4pDi4i/jU8dXGH8g==", - "dev": true, "optional": true }, "@bufbuild/buf-win32-x64": { "version": "1.18.0-1", "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-x64/-/buf-win32-x64-1.18.0-1.tgz", "integrity": "sha512-4OVbTwbQ1ZHGtITJw7hXYP2HinCWn3PN1ewCU+SCvynJTQ8vXQuVNlKZ2EmGl6aTUWdF3mSL/WPsRiG3fXhxfg==", - "dev": true, "optional": true } } diff --git a/package.json b/package.json index a8b7fe5..7d3a521 100644 --- a/package.json +++ b/package.json @@ -2,21 +2,20 @@ "name": "api-interfaces", "version": "0.1.0", "description": "", - "main": "index.js", + "main": "/src/stability_api/index.js", "scripts": { - "generate-go": "buf generate --template buf.gen.go.yaml", - "generate-js": "buf generate --template buf.gen.js.yaml", - "generate-kt": "buf generate --template buf.gen.kt.yaml", - "generate-py": "buf generate --template buf.gen.py.yaml", - "generate-swift": "buf generate --template buf.gen.swift.yaml", - "generate": "npm run generate-go && npm run generate-js && npm run generate-kt && npm run generate-py && npm run generate-swift" + "generate-go": "buf generate --template buf.gen.go.yaml --output=./src", + "generate-js": "buf generate --template buf.gen.js.yaml --output=./src", + "generate-kt": "buf generate --template buf.gen.kt.yaml --output=./src", + "generate-py": "buf generate --template buf.gen.py.yaml --output=./src", + "generate-swift": "buf generate --template buf.gen.swift.yaml -output=./src", + "generate": "npm run generate-go && npm run generate-js && npm run generate-kt && npm run generate-py && npm run generate-swift", + "postinstall": "buf generate --template buf.gen.js.yaml --output=./src" }, "keywords": [], "author": "", "license": "", "dependencies": { - }, - "devDependencies": { "@bufbuild/buf": "^1.18.0-1" } } diff --git a/pyproject.toml b/pyproject.toml index ad0d937..f1efd98 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,6 @@ path = "src/stability_api/__about__.py" [tool.hatch.build.targets.wheel.force-include] "src/stability_api" = "stability_api" -"gen/proto/py/stability_api" = "stability_api" [tool.hatch.envs.default] dependencies = [ diff --git a/src/js/main.js b/src/js/main.js new file mode 100644 index 0000000..e69de29 diff --git a/src/stability_api/index.js b/src/stability_api/index.js new file mode 100644 index 0000000..e69de29 diff --git a/gen/proto/go/stability_api/platform/dashboard/v1/dashboard.pb.go b/src/stability_api/platform/dashboard/v1/dashboard.pb.go similarity index 100% rename from gen/proto/go/stability_api/platform/dashboard/v1/dashboard.pb.go rename to src/stability_api/platform/dashboard/v1/dashboard.pb.go diff --git a/gen/proto/js/stability_api/platform/dashboard/v1/dashboard_connect.d.ts b/src/stability_api/platform/dashboard/v1/dashboard_connect.d.ts similarity index 100% rename from gen/proto/js/stability_api/platform/dashboard/v1/dashboard_connect.d.ts rename to src/stability_api/platform/dashboard/v1/dashboard_connect.d.ts diff --git a/gen/proto/js/stability_api/platform/dashboard/v1/dashboard_connect.js b/src/stability_api/platform/dashboard/v1/dashboard_connect.js similarity index 100% rename from gen/proto/js/stability_api/platform/dashboard/v1/dashboard_connect.js rename to src/stability_api/platform/dashboard/v1/dashboard_connect.js diff --git a/gen/proto/go/stability_api/platform/dashboard/v1/dashboard_grpc.pb.go b/src/stability_api/platform/dashboard/v1/dashboard_grpc.pb.go similarity index 100% rename from gen/proto/go/stability_api/platform/dashboard/v1/dashboard_grpc.pb.go rename to src/stability_api/platform/dashboard/v1/dashboard_grpc.pb.go diff --git a/gen/proto/js/stability_api/platform/dashboard/v1/dashboard_pb.d.ts b/src/stability_api/platform/dashboard/v1/dashboard_pb.d.ts similarity index 100% rename from gen/proto/js/stability_api/platform/dashboard/v1/dashboard_pb.d.ts rename to src/stability_api/platform/dashboard/v1/dashboard_pb.d.ts diff --git a/gen/proto/js/stability_api/platform/dashboard/v1/dashboard_pb.js b/src/stability_api/platform/dashboard/v1/dashboard_pb.js similarity index 100% rename from gen/proto/js/stability_api/platform/dashboard/v1/dashboard_pb.js rename to src/stability_api/platform/dashboard/v1/dashboard_pb.js diff --git a/gen/proto/py/stability_api/platform/dashboard/v1/dashboard_pb2.py b/src/stability_api/platform/dashboard/v1/dashboard_pb2.py similarity index 100% rename from gen/proto/py/stability_api/platform/dashboard/v1/dashboard_pb2.py rename to src/stability_api/platform/dashboard/v1/dashboard_pb2.py diff --git a/gen/proto/py/stability_api/platform/dashboard/v1/dashboard_pb2.pyi b/src/stability_api/platform/dashboard/v1/dashboard_pb2.pyi similarity index 100% rename from gen/proto/py/stability_api/platform/dashboard/v1/dashboard_pb2.pyi rename to src/stability_api/platform/dashboard/v1/dashboard_pb2.pyi diff --git a/gen/proto/py/stability_api/platform/dashboard/v1/dashboard_pb2_grpc.py b/src/stability_api/platform/dashboard/v1/dashboard_pb2_grpc.py similarity index 100% rename from gen/proto/py/stability_api/platform/dashboard/v1/dashboard_pb2_grpc.py rename to src/stability_api/platform/dashboard/v1/dashboard_pb2_grpc.py diff --git a/gen/proto/go/stability_api/platform/dashboard/v1/dashboardv1connect/dashboard.connect.go b/src/stability_api/platform/dashboard/v1/dashboardv1connect/dashboard.connect.go similarity index 100% rename from gen/proto/go/stability_api/platform/dashboard/v1/dashboardv1connect/dashboard.connect.go rename to src/stability_api/platform/dashboard/v1/dashboardv1connect/dashboard.connect.go diff --git a/gen/proto/go/stability_api/platform/engines/v1/engines.pb.go b/src/stability_api/platform/engines/v1/engines.pb.go similarity index 100% rename from gen/proto/go/stability_api/platform/engines/v1/engines.pb.go rename to src/stability_api/platform/engines/v1/engines.pb.go diff --git a/gen/proto/js/stability_api/platform/engines/v1/engines_connect.d.ts b/src/stability_api/platform/engines/v1/engines_connect.d.ts similarity index 100% rename from gen/proto/js/stability_api/platform/engines/v1/engines_connect.d.ts rename to src/stability_api/platform/engines/v1/engines_connect.d.ts diff --git a/gen/proto/js/stability_api/platform/engines/v1/engines_connect.js b/src/stability_api/platform/engines/v1/engines_connect.js similarity index 100% rename from gen/proto/js/stability_api/platform/engines/v1/engines_connect.js rename to src/stability_api/platform/engines/v1/engines_connect.js diff --git a/gen/proto/go/stability_api/platform/engines/v1/engines_grpc.pb.go b/src/stability_api/platform/engines/v1/engines_grpc.pb.go similarity index 100% rename from gen/proto/go/stability_api/platform/engines/v1/engines_grpc.pb.go rename to src/stability_api/platform/engines/v1/engines_grpc.pb.go diff --git a/gen/proto/js/stability_api/platform/engines/v1/engines_pb.d.ts b/src/stability_api/platform/engines/v1/engines_pb.d.ts similarity index 100% rename from gen/proto/js/stability_api/platform/engines/v1/engines_pb.d.ts rename to src/stability_api/platform/engines/v1/engines_pb.d.ts diff --git a/gen/proto/js/stability_api/platform/engines/v1/engines_pb.js b/src/stability_api/platform/engines/v1/engines_pb.js similarity index 100% rename from gen/proto/js/stability_api/platform/engines/v1/engines_pb.js rename to src/stability_api/platform/engines/v1/engines_pb.js diff --git a/gen/proto/py/stability_api/platform/engines/v1/engines_pb2.py b/src/stability_api/platform/engines/v1/engines_pb2.py similarity index 100% rename from gen/proto/py/stability_api/platform/engines/v1/engines_pb2.py rename to src/stability_api/platform/engines/v1/engines_pb2.py diff --git a/gen/proto/py/stability_api/platform/engines/v1/engines_pb2.pyi b/src/stability_api/platform/engines/v1/engines_pb2.pyi similarity index 100% rename from gen/proto/py/stability_api/platform/engines/v1/engines_pb2.pyi rename to src/stability_api/platform/engines/v1/engines_pb2.pyi diff --git a/gen/proto/py/stability_api/platform/engines/v1/engines_pb2_grpc.py b/src/stability_api/platform/engines/v1/engines_pb2_grpc.py similarity index 100% rename from gen/proto/py/stability_api/platform/engines/v1/engines_pb2_grpc.py rename to src/stability_api/platform/engines/v1/engines_pb2_grpc.py diff --git a/gen/proto/go/stability_api/platform/engines/v1/enginesv1connect/engines.connect.go b/src/stability_api/platform/engines/v1/enginesv1connect/engines.connect.go similarity index 100% rename from gen/proto/go/stability_api/platform/engines/v1/enginesv1connect/engines.connect.go rename to src/stability_api/platform/engines/v1/enginesv1connect/engines.connect.go diff --git a/gen/proto/go/stability_api/platform/generation/v1/generation.pb.go b/src/stability_api/platform/generation/v1/generation.pb.go similarity index 100% rename from gen/proto/go/stability_api/platform/generation/v1/generation.pb.go rename to src/stability_api/platform/generation/v1/generation.pb.go diff --git a/gen/proto/js/stability_api/platform/generation/v1/generation_connect.d.ts b/src/stability_api/platform/generation/v1/generation_connect.d.ts similarity index 100% rename from gen/proto/js/stability_api/platform/generation/v1/generation_connect.d.ts rename to src/stability_api/platform/generation/v1/generation_connect.d.ts diff --git a/gen/proto/js/stability_api/platform/generation/v1/generation_connect.js b/src/stability_api/platform/generation/v1/generation_connect.js similarity index 100% rename from gen/proto/js/stability_api/platform/generation/v1/generation_connect.js rename to src/stability_api/platform/generation/v1/generation_connect.js diff --git a/gen/proto/go/stability_api/platform/generation/v1/generation_grpc.pb.go b/src/stability_api/platform/generation/v1/generation_grpc.pb.go similarity index 100% rename from gen/proto/go/stability_api/platform/generation/v1/generation_grpc.pb.go rename to src/stability_api/platform/generation/v1/generation_grpc.pb.go diff --git a/gen/proto/js/stability_api/platform/generation/v1/generation_pb.d.ts b/src/stability_api/platform/generation/v1/generation_pb.d.ts similarity index 100% rename from gen/proto/js/stability_api/platform/generation/v1/generation_pb.d.ts rename to src/stability_api/platform/generation/v1/generation_pb.d.ts diff --git a/gen/proto/js/stability_api/platform/generation/v1/generation_pb.js b/src/stability_api/platform/generation/v1/generation_pb.js similarity index 100% rename from gen/proto/js/stability_api/platform/generation/v1/generation_pb.js rename to src/stability_api/platform/generation/v1/generation_pb.js diff --git a/gen/proto/py/stability_api/platform/generation/v1/generation_pb2.py b/src/stability_api/platform/generation/v1/generation_pb2.py similarity index 100% rename from gen/proto/py/stability_api/platform/generation/v1/generation_pb2.py rename to src/stability_api/platform/generation/v1/generation_pb2.py diff --git a/gen/proto/py/stability_api/platform/generation/v1/generation_pb2.pyi b/src/stability_api/platform/generation/v1/generation_pb2.pyi similarity index 100% rename from gen/proto/py/stability_api/platform/generation/v1/generation_pb2.pyi rename to src/stability_api/platform/generation/v1/generation_pb2.pyi diff --git a/gen/proto/py/stability_api/platform/generation/v1/generation_pb2_grpc.py b/src/stability_api/platform/generation/v1/generation_pb2_grpc.py similarity index 100% rename from gen/proto/py/stability_api/platform/generation/v1/generation_pb2_grpc.py rename to src/stability_api/platform/generation/v1/generation_pb2_grpc.py diff --git a/gen/proto/go/stability_api/platform/generation/v1/generationv1connect/generation.connect.go b/src/stability_api/platform/generation/v1/generationv1connect/generation.connect.go similarity index 100% rename from gen/proto/go/stability_api/platform/generation/v1/generationv1connect/generation.connect.go rename to src/stability_api/platform/generation/v1/generationv1connect/generation.connect.go diff --git a/gen/proto/go/stability_api/platform/project/v1/project.pb.go b/src/stability_api/platform/project/v1/project.pb.go similarity index 100% rename from gen/proto/go/stability_api/platform/project/v1/project.pb.go rename to src/stability_api/platform/project/v1/project.pb.go diff --git a/gen/proto/js/stability_api/platform/project/v1/project_connect.d.ts b/src/stability_api/platform/project/v1/project_connect.d.ts similarity index 100% rename from gen/proto/js/stability_api/platform/project/v1/project_connect.d.ts rename to src/stability_api/platform/project/v1/project_connect.d.ts diff --git a/gen/proto/js/stability_api/platform/project/v1/project_connect.js b/src/stability_api/platform/project/v1/project_connect.js similarity index 100% rename from gen/proto/js/stability_api/platform/project/v1/project_connect.js rename to src/stability_api/platform/project/v1/project_connect.js diff --git a/gen/proto/go/stability_api/platform/project/v1/project_grpc.pb.go b/src/stability_api/platform/project/v1/project_grpc.pb.go similarity index 100% rename from gen/proto/go/stability_api/platform/project/v1/project_grpc.pb.go rename to src/stability_api/platform/project/v1/project_grpc.pb.go diff --git a/gen/proto/js/stability_api/platform/project/v1/project_pb.d.ts b/src/stability_api/platform/project/v1/project_pb.d.ts similarity index 100% rename from gen/proto/js/stability_api/platform/project/v1/project_pb.d.ts rename to src/stability_api/platform/project/v1/project_pb.d.ts diff --git a/gen/proto/js/stability_api/platform/project/v1/project_pb.js b/src/stability_api/platform/project/v1/project_pb.js similarity index 100% rename from gen/proto/js/stability_api/platform/project/v1/project_pb.js rename to src/stability_api/platform/project/v1/project_pb.js diff --git a/gen/proto/py/stability_api/platform/project/v1/project_pb2.py b/src/stability_api/platform/project/v1/project_pb2.py similarity index 100% rename from gen/proto/py/stability_api/platform/project/v1/project_pb2.py rename to src/stability_api/platform/project/v1/project_pb2.py diff --git a/gen/proto/py/stability_api/platform/project/v1/project_pb2.pyi b/src/stability_api/platform/project/v1/project_pb2.pyi similarity index 100% rename from gen/proto/py/stability_api/platform/project/v1/project_pb2.pyi rename to src/stability_api/platform/project/v1/project_pb2.pyi diff --git a/gen/proto/py/stability_api/platform/project/v1/project_pb2_grpc.py b/src/stability_api/platform/project/v1/project_pb2_grpc.py similarity index 100% rename from gen/proto/py/stability_api/platform/project/v1/project_pb2_grpc.py rename to src/stability_api/platform/project/v1/project_pb2_grpc.py diff --git a/gen/proto/go/stability_api/platform/project/v1/projectv1connect/project.connect.go b/src/stability_api/platform/project/v1/projectv1connect/project.connect.go similarity index 100% rename from gen/proto/go/stability_api/platform/project/v1/projectv1connect/project.connect.go rename to src/stability_api/platform/project/v1/projectv1connect/project.connect.go diff --git a/gen/proto/go/stability_api/tensors/tensors.pb.go b/src/stability_api/tensors/tensors.pb.go similarity index 100% rename from gen/proto/go/stability_api/tensors/tensors.pb.go rename to src/stability_api/tensors/tensors.pb.go diff --git a/gen/proto/js/stability_api/tensors/tensors_pb.d.ts b/src/stability_api/tensors/tensors_pb.d.ts similarity index 100% rename from gen/proto/js/stability_api/tensors/tensors_pb.d.ts rename to src/stability_api/tensors/tensors_pb.d.ts diff --git a/gen/proto/js/stability_api/tensors/tensors_pb.js b/src/stability_api/tensors/tensors_pb.js similarity index 100% rename from gen/proto/js/stability_api/tensors/tensors_pb.js rename to src/stability_api/tensors/tensors_pb.js diff --git a/gen/proto/py/stability_api/tensors/tensors_pb2.py b/src/stability_api/tensors/tensors_pb2.py similarity index 100% rename from gen/proto/py/stability_api/tensors/tensors_pb2.py rename to src/stability_api/tensors/tensors_pb2.py diff --git a/gen/proto/py/stability_api/tensors/tensors_pb2.pyi b/src/stability_api/tensors/tensors_pb2.pyi similarity index 100% rename from gen/proto/py/stability_api/tensors/tensors_pb2.pyi rename to src/stability_api/tensors/tensors_pb2.pyi diff --git a/gen/proto/py/stability_api/tensors/tensors_pb2_grpc.py b/src/stability_api/tensors/tensors_pb2_grpc.py similarity index 100% rename from gen/proto/py/stability_api/tensors/tensors_pb2_grpc.py rename to src/stability_api/tensors/tensors_pb2_grpc.py From a83387bf68d828c630f7879c702f26d32ad6f84e Mon Sep 17 00:00:00 2001 From: Stephan Auerhahn Date: Thu, 11 May 2023 10:27:38 +0000 Subject: [PATCH 10/20] dev dep --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7d3a521..f0dce26 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "keywords": [], "author": "", "license": "", - "dependencies": { + "devDependencies": { "@bufbuild/buf": "^1.18.0-1" } } From 20f98f3647f1edf62efe39b567c21935b172b45a Mon Sep 17 00:00:00 2001 From: Stephan Auerhahn Date: Thu, 11 May 2023 10:28:33 +0000 Subject: [PATCH 11/20] remove install step --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index f0dce26..71b6758 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,7 @@ "generate-kt": "buf generate --template buf.gen.kt.yaml --output=./src", "generate-py": "buf generate --template buf.gen.py.yaml --output=./src", "generate-swift": "buf generate --template buf.gen.swift.yaml -output=./src", - "generate": "npm run generate-go && npm run generate-js && npm run generate-kt && npm run generate-py && npm run generate-swift", - "postinstall": "buf generate --template buf.gen.js.yaml --output=./src" + "generate": "npm run generate-go && npm run generate-js && npm run generate-kt && npm run generate-py && npm run generate-swift" }, "keywords": [], "author": "", From 1e21cc1733c0228076db32f6d4905f2e8b051a90 Mon Sep 17 00:00:00 2001 From: Stephan Auerhahn Date: Thu, 11 May 2023 10:47:27 +0000 Subject: [PATCH 12/20] add exports --- package-lock.json | 21 +++++++++++++++++---- package.json | 7 ++++++- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 298d1d8..09ba0dd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,14 +1,13 @@ { - "name": "api-interfaces", + "name": "stability_api", "version": "0.1.0", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "api-interfaces", + "name": "stability_api", "version": "0.1.0", - "hasInstallScript": true, - "dependencies": { + "devDependencies": { "@bufbuild/buf": "^1.18.0-1" } }, @@ -16,6 +15,7 @@ "version": "1.18.0-1", "resolved": "https://registry.npmjs.org/@bufbuild/buf/-/buf-1.18.0-1.tgz", "integrity": "sha512-Js6BEbjsfM+aFo2bUxfTs0B4htDbjWCKZ8+FHV6YYqiVsin6NGGQsXblJxwt4+16HLfSnrf41RRnwUaBwHqBzQ==", + "dev": true, "hasInstallScript": true, "bin": { "buf": "bin/buf", @@ -41,6 +41,7 @@ "cpu": [ "arm64" ], + "dev": true, "optional": true, "os": [ "darwin" @@ -56,6 +57,7 @@ "cpu": [ "x64" ], + "dev": true, "optional": true, "os": [ "darwin" @@ -71,6 +73,7 @@ "cpu": [ "arm64" ], + "dev": true, "optional": true, "os": [ "linux" @@ -86,6 +89,7 @@ "cpu": [ "x64" ], + "dev": true, "optional": true, "os": [ "linux" @@ -101,6 +105,7 @@ "cpu": [ "arm64" ], + "dev": true, "optional": true, "os": [ "win32" @@ -116,6 +121,7 @@ "cpu": [ "x64" ], + "dev": true, "optional": true, "os": [ "win32" @@ -130,6 +136,7 @@ "version": "1.18.0-1", "resolved": "https://registry.npmjs.org/@bufbuild/buf/-/buf-1.18.0-1.tgz", "integrity": "sha512-Js6BEbjsfM+aFo2bUxfTs0B4htDbjWCKZ8+FHV6YYqiVsin6NGGQsXblJxwt4+16HLfSnrf41RRnwUaBwHqBzQ==", + "dev": true, "requires": { "@bufbuild/buf-darwin-arm64": "1.18.0-1", "@bufbuild/buf-darwin-x64": "1.18.0-1", @@ -143,36 +150,42 @@ "version": "1.18.0-1", "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-arm64/-/buf-darwin-arm64-1.18.0-1.tgz", "integrity": "sha512-4iFChDoXAiuMZQoXpJoCSvCkcT7p1fmsY2N/+wTdODQbXAwqR8vQz19FPR2Jv5ukhd44LUi43nFsyQ2dWmeZeA==", + "dev": true, "optional": true }, "@bufbuild/buf-darwin-x64": { "version": "1.18.0-1", "resolved": "https://registry.npmjs.org/@bufbuild/buf-darwin-x64/-/buf-darwin-x64-1.18.0-1.tgz", "integrity": "sha512-tuOnoCqFaUOj9dBuubEve5XGNkjL+zeCW7ETNgmArUlQobEkL2Fza5mi5Fqt90Ommfj1xpc4vaeNz1oSuU3dTw==", + "dev": true, "optional": true }, "@bufbuild/buf-linux-aarch64": { "version": "1.18.0-1", "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-aarch64/-/buf-linux-aarch64-1.18.0-1.tgz", "integrity": "sha512-QdYp89hlLVPPZYlaeVhE0swk5Ygncij1avVmvLQw99+lvaFlDu9zRQ0Jo7n1VjpZWdDhUd/thYWxSqSMJYLajA==", + "dev": true, "optional": true }, "@bufbuild/buf-linux-x64": { "version": "1.18.0-1", "resolved": "https://registry.npmjs.org/@bufbuild/buf-linux-x64/-/buf-linux-x64-1.18.0-1.tgz", "integrity": "sha512-9a6xv+OsYjhg5f1WHDtoXJVxG2j6awFi5cx9dkCPMODvFsll7skkwfkDngxKkibNU0aY6TxLoQXdf77eQwIWtQ==", + "dev": true, "optional": true }, "@bufbuild/buf-win32-arm64": { "version": "1.18.0-1", "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-arm64/-/buf-win32-arm64-1.18.0-1.tgz", "integrity": "sha512-UP6KevD0cdxa4IJcDy31KC9sIIgxCWBP/K9uW+gBDLg2cNQBtVqlN8o65PJhsl9HB+p0/Y4pDi4i/jU8dXGH8g==", + "dev": true, "optional": true }, "@bufbuild/buf-win32-x64": { "version": "1.18.0-1", "resolved": "https://registry.npmjs.org/@bufbuild/buf-win32-x64/-/buf-win32-x64-1.18.0-1.tgz", "integrity": "sha512-4OVbTwbQ1ZHGtITJw7hXYP2HinCWn3PN1ewCU+SCvynJTQ8vXQuVNlKZ2EmGl6aTUWdF3mSL/WPsRiG3fXhxfg==", + "dev": true, "optional": true } } diff --git a/package.json b/package.json index 71b6758..428d883 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,13 @@ { - "name": "api-interfaces", + "name": "stability_api", "version": "0.1.0", "description": "", "main": "/src/stability_api/index.js", + "type": "module", + "exports": { + "./platform/*": "./src/stability_api/platform", + "./tensors/*": "./src/stability_api/tensors" + }, "scripts": { "generate-go": "buf generate --template buf.gen.go.yaml --output=./src", "generate-js": "buf generate --template buf.gen.js.yaml --output=./src", From f9f03930d80642cccdd4f956eca3e5898cda8381 Mon Sep 17 00:00:00 2001 From: Stephan Auerhahn Date: Thu, 11 May 2023 10:55:18 +0000 Subject: [PATCH 13/20] different approach --- package.json | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 428d883..8131473 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,11 @@ { "name": "stability_api", "version": "0.1.0", - "description": "", - "main": "/src/stability_api/index.js", + "description": "", "type": "module", "exports": { - "./platform/*": "./src/stability_api/platform", - "./tensors/*": "./src/stability_api/tensors" + "./*.js": "./src/*.js", + "./*.ts": "./src/*.ts" }, "scripts": { "generate-go": "buf generate --template buf.gen.go.yaml --output=./src", From 625861bc6d3b105db0c44114dccf67985df0fa89 Mon Sep 17 00:00:00 2001 From: Stephan Auerhahn Date: Sat, 27 May 2023 08:04:43 +0000 Subject: [PATCH 14/20] fix golang gen --- buf.gen.go.yaml | 2 +- src/stability_api/go.mod | 17 +++++++++ src/stability_api/go.sum | 22 +++++++++++ .../platform/dashboard/v1/dashboard.pb.go | 31 ++++++++-------- .../dashboardv1connect/dashboard.connect.go | 2 +- .../platform/engines/v1/engines.pb.go | 36 +++++++++--------- .../v1/enginesv1connect/engines.connect.go | 2 +- .../platform/generation/v1/generation.pb.go | 36 +++++++++--------- .../generationv1connect/generation.connect.go | 2 +- .../platform/project/v1/project.pb.go | 37 +++++++++---------- .../v1/projectv1connect/project.connect.go | 2 +- src/stability_api/tensors/tensors.pb.go | 18 ++++----- 12 files changed, 122 insertions(+), 85 deletions(-) create mode 100644 src/stability_api/go.mod create mode 100644 src/stability_api/go.sum diff --git a/buf.gen.go.yaml b/buf.gen.go.yaml index e77226d..ac11bef 100644 --- a/buf.gen.go.yaml +++ b/buf.gen.go.yaml @@ -4,7 +4,7 @@ managed: go_package_prefix: # : name in go.mod # : where generated code should be output - default: github.com/stability-ai/api-interfaces/gen/proto/go/ + default: github.com/stability-ai/api-interfaces/src # Remove `except` field if googleapis is not used except: - buf.build/googleapis/googleapis diff --git a/src/stability_api/go.mod b/src/stability_api/go.mod new file mode 100644 index 0000000..70c792c --- /dev/null +++ b/src/stability_api/go.mod @@ -0,0 +1,17 @@ +module github.com/stability-ai/api-interfaces/src/stability_api + +go 1.18 + +require ( + github.com/bufbuild/connect-go v1.7.0 + google.golang.org/grpc v1.54.0 + google.golang.org/protobuf v1.30.0 +) + +require ( + github.com/golang/protobuf v1.5.2 // indirect + golang.org/x/net v0.8.0 // indirect + golang.org/x/sys v0.6.0 // indirect + golang.org/x/text v0.8.0 // indirect + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect +) diff --git a/src/stability_api/go.sum b/src/stability_api/go.sum new file mode 100644 index 0000000..5289a28 --- /dev/null +++ b/src/stability_api/go.sum @@ -0,0 +1,22 @@ +github.com/bufbuild/connect-go v1.7.0 h1:MGp82v7SCza+3RhsVhV7aMikwxvI3ZfD72YiGt8FYJo= +github.com/bufbuild/connect-go v1.7.0/go.mod h1:GmMJYR6orFqD0Y6ZgX8pwQ8j9baizDrIQMm1/a6LnHk= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= +github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= +golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= +golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= +golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= +google.golang.org/grpc v1.54.0 h1:EhTqbhiYeixwWQtAEZAxmV9MGqcjEU2mFx52xCzNyag= +google.golang.org/grpc v1.54.0/go.mod h1:PUSEXI6iWghWaB6lXM4knEgpJNu2qUcKfDtNci3EC2g= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= +google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= diff --git a/src/stability_api/platform/dashboard/v1/dashboard.pb.go b/src/stability_api/platform/dashboard/v1/dashboard.pb.go index 5d9b49a..634ef1e 100644 --- a/src/stability_api/platform/dashboard/v1/dashboard.pb.go +++ b/src/stability_api/platform/dashboard/v1/dashboard.pb.go @@ -2171,26 +2171,25 @@ var file_stability_api_platform_dashboard_v1_dashboard_proto_rawDesc = []byte{ 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x6e, - 0x74, 0x42, 0xaa, 0x02, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x74, 0x42, 0xa1, 0x02, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x42, 0x0e, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x63, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x5a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, - 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x74, - 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x76, - 0x31, 0x3b, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x76, 0x31, 0xa2, 0x02, 0x03, - 0x53, 0x41, 0x44, 0xaa, 0x02, 0x1c, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, - 0x69, 0x2e, 0x41, 0x70, 0x69, 0x2e, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, - 0x56, 0x31, 0xca, 0x02, 0x1c, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, - 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5c, 0x56, - 0x31, 0xe2, 0x02, 0x28, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, - 0x41, 0x70, 0x69, 0x5c, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5c, 0x56, 0x31, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1f, 0x53, - 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, - 0x3a, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, + 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x64, 0x61, 0x73, 0x68, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x76, 0x31, 0x3b, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x41, 0x44, 0xaa, 0x02, 0x1c, 0x53, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x41, 0x70, 0x69, 0x2e, 0x44, 0x61, 0x73, + 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1c, 0x53, 0x74, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x44, 0x61, 0x73, 0x68, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x28, 0x53, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x44, 0x61, 0x73, 0x68, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x1f, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/src/stability_api/platform/dashboard/v1/dashboardv1connect/dashboard.connect.go b/src/stability_api/platform/dashboard/v1/dashboardv1connect/dashboard.connect.go index d22f824..d3130b9 100644 --- a/src/stability_api/platform/dashboard/v1/dashboardv1connect/dashboard.connect.go +++ b/src/stability_api/platform/dashboard/v1/dashboardv1connect/dashboard.connect.go @@ -8,7 +8,7 @@ import ( context "context" errors "errors" connect_go "github.com/bufbuild/connect-go" - v1 "github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/dashboard/v1" + v1 "github.com/stability-ai/api-interfaces/src/stability_api/platform/dashboard/v1" http "net/http" strings "strings" ) diff --git a/src/stability_api/platform/engines/v1/engines.pb.go b/src/stability_api/platform/engines/v1/engines.pb.go index bb4309d..bda1678 100644 --- a/src/stability_api/platform/engines/v1/engines.pb.go +++ b/src/stability_api/platform/engines/v1/engines.pb.go @@ -356,28 +356,28 @@ var file_stability_api_platform_engines_v1_engines_proto_rawDesc = []byte{ 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, - 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x22, 0x00, 0x42, 0xc7, 0x02, 0x0a, 0x27, 0x63, 0x6f, 0x6d, + 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x22, 0x00, 0x42, 0xbe, 0x02, 0x0a, 0x27, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x5f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x56, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, 0x61, 0x69, 0x2f, 0x61, 0x70, - 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x67, 0x65, 0x6e, - 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, - 0x69, 0x74, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x2f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, 0x45, 0xaa, 0x02, 0x23, 0x53, 0x74, - 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x56, - 0x31, 0xca, 0x02, 0x23, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, - 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x45, 0x6e, 0x67, - 0x69, 0x6e, 0x65, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x2f, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, - 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, - 0x69, 0x73, 0x5c, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, - 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, - 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x3a, 0x3a, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x61, 0x70, 0x69, 0x73, 0x3a, 0x3a, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x3a, 0x3a, - 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x73, 0x72, 0x63, + 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2f, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2f, + 0x76, 0x31, 0x3b, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, + 0x50, 0x45, 0xaa, 0x02, 0x23, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x45, 0x6e, + 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x23, 0x53, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x70, 0x69, 0x73, 0x5c, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, + 0x2f, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, + 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x3a, 0x3a, + 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x3a, 0x3a, 0x45, 0x6e, + 0x67, 0x69, 0x6e, 0x65, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( diff --git a/src/stability_api/platform/engines/v1/enginesv1connect/engines.connect.go b/src/stability_api/platform/engines/v1/enginesv1connect/engines.connect.go index 550f421..d7ddc1e 100644 --- a/src/stability_api/platform/engines/v1/enginesv1connect/engines.connect.go +++ b/src/stability_api/platform/engines/v1/enginesv1connect/engines.connect.go @@ -8,7 +8,7 @@ import ( context "context" errors "errors" connect_go "github.com/bufbuild/connect-go" - v1 "github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/engines/v1" + v1 "github.com/stability-ai/api-interfaces/src/stability_api/platform/engines/v1" http "net/http" strings "strings" ) diff --git a/src/stability_api/platform/generation/v1/generation.pb.go b/src/stability_api/platform/generation/v1/generation.pb.go index 55c2f6a..ceddd97 100644 --- a/src/stability_api/platform/generation/v1/generation.pb.go +++ b/src/stability_api/platform/generation/v1/generation.pb.go @@ -7,7 +7,7 @@ package generationv1 import ( - tensors "github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/tensors" + tensors "github.com/stability-ai/api-interfaces/src/stability_api/tensors" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" structpb "google.golang.org/protobuf/types/known/structpb" @@ -4546,29 +4546,29 @@ var file_stability_api_platform_generation_v1_generation_proto_rawDesc = []byte{ 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x22, 0x00, 0x30, 0x01, - 0x42, 0xdf, 0x02, 0x0a, 0x2a, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x42, 0xd6, 0x02, 0x0a, 0x2a, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x65, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, + 0x50, 0x01, 0x5a, 0x5c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, - 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x67, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, 0x47, 0xaa, - 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x50, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, 0x69, + 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x73, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2f, 0x76, 0x31, 0x3b, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, + 0xa2, 0x02, 0x03, 0x53, 0x50, 0x47, 0xaa, 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, + 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x47, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x32, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, - 0x31, 0xe2, 0x02, 0x32, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, - 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x47, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x29, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x61, 0x69, 0x3a, 0x3a, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, - 0x69, 0x73, 0x3a, 0x3a, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, - 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x29, + 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x3a, 0x3a, 0x50, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x3a, 0x3a, 0x47, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( diff --git a/src/stability_api/platform/generation/v1/generationv1connect/generation.connect.go b/src/stability_api/platform/generation/v1/generationv1connect/generation.connect.go index f1815c1..63da0e9 100644 --- a/src/stability_api/platform/generation/v1/generationv1connect/generation.connect.go +++ b/src/stability_api/platform/generation/v1/generationv1connect/generation.connect.go @@ -8,7 +8,7 @@ import ( context "context" errors "errors" connect_go "github.com/bufbuild/connect-go" - v1 "github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/generation/v1" + v1 "github.com/stability-ai/api-interfaces/src/stability_api/platform/generation/v1" http "net/http" strings "strings" ) diff --git a/src/stability_api/platform/project/v1/project.pb.go b/src/stability_api/platform/project/v1/project.pb.go index 29f3d0e..26bacb2 100644 --- a/src/stability_api/platform/project/v1/project.pb.go +++ b/src/stability_api/platform/project/v1/project.pb.go @@ -7,7 +7,7 @@ package projectv1 import ( - v1 "github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/generation/v1" + v1 "github.com/stability-ai/api-interfaces/src/stability_api/platform/generation/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -1651,28 +1651,27 @@ var file_stability_api_platform_project_v1_project_proto_rawDesc = []byte{ 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xc7, 0x02, 0x0a, 0x27, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xbe, 0x02, 0x0a, 0x27, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x5f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, + 0x01, 0x5a, 0x56, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x69, - 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, - 0x5f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, 0x50, 0xaa, 0x02, 0x23, 0x53, 0x74, 0x61, 0x62, 0x69, - 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, - 0x23, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x2f, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, - 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x61, 0x69, 0x3a, 0x3a, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, - 0x69, 0x73, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x73, 0x74, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x76, 0x31, 0x3b, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, 0x50, 0xaa, + 0x02, 0x23, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x50, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x23, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, + 0x5c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x2f, 0x53, 0x74, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5c, 0x56, + 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x26, + 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x3a, 0x3a, 0x50, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/src/stability_api/platform/project/v1/projectv1connect/project.connect.go b/src/stability_api/platform/project/v1/projectv1connect/project.connect.go index 7bb8f81..7033e09 100644 --- a/src/stability_api/platform/project/v1/projectv1connect/project.connect.go +++ b/src/stability_api/platform/project/v1/projectv1connect/project.connect.go @@ -8,7 +8,7 @@ import ( context "context" errors "errors" connect_go "github.com/bufbuild/connect-go" - v1 "github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/project/v1" + v1 "github.com/stability-ai/api-interfaces/src/stability_api/platform/project/v1" http "net/http" strings "strings" ) diff --git a/src/stability_api/tensors/tensors.pb.go b/src/stability_api/tensors/tensors.pb.go index 9fbe6c1..6559703 100644 --- a/src/stability_api/tensors/tensors.pb.go +++ b/src/stability_api/tensors/tensors.pb.go @@ -496,18 +496,18 @@ var file_stability_api_tensors_tensors_proto_rawDesc = []byte{ 0x5f, 0x51, 0x55, 0x49, 0x4e, 0x54, 0x34, 0x5f, 0x32, 0x10, 0x11, 0x2a, 0x30, 0x0a, 0x0d, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x54, 0x5f, 0x50, 0x41, 0x52, 0x41, 0x4d, 0x45, 0x54, 0x45, 0x52, 0x10, 0x00, 0x12, 0x0d, - 0x0a, 0x09, 0x41, 0x54, 0x5f, 0x42, 0x55, 0x46, 0x46, 0x45, 0x52, 0x10, 0x01, 0x42, 0xa2, 0x01, + 0x0a, 0x09, 0x41, 0x54, 0x5f, 0x42, 0x55, 0x46, 0x46, 0x45, 0x52, 0x10, 0x01, 0x42, 0x99, 0x01, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x42, 0x0c, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x49, 0x67, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x40, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, - 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, - 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x70, 0x69, - 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, - 0x07, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0xca, 0x02, 0x07, 0x54, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x73, 0xe2, 0x02, 0x13, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x07, 0x54, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0xa2, + 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, 0x07, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0xca, + 0x02, 0x07, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0xe2, 0x02, 0x13, 0x54, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x07, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( From fa6cb9bf4189c0c61fcfe9447ec1d477837f8f33 Mon Sep 17 00:00:00 2001 From: Stephan Auerhahn Date: Fri, 30 Jun 2023 23:19:38 -0700 Subject: [PATCH 15/20] add protobuf dependency --- pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f1efd98..99c94de 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,7 +24,9 @@ classifiers = [ "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ] -dependencies = [] +dependencies = [ + "protobuf>=3.17.3", +] [project.urls] Documentation = "https://github.com/Stability-AI/api-interfaces#readme" From 7971aebf4dd5f1cda6a25df7f2352cb843e4ea7d Mon Sep 17 00:00:00 2001 From: Stephan Auerhahn Date: Fri, 30 Jun 2023 23:28:27 -0700 Subject: [PATCH 16/20] regenerate stubs --- package.json | 4 +- .../platform/finetuning}/finetuning.proto | 0 .../platform/dashboard/v1/dashboard.pb.go | 2 +- .../platform/engines/v1/engines.pb.go | 104 +- .../platform/engines/v1/engines_pb.d.ts | 5 + .../platform/engines/v1/engines_pb.js | 1 + .../platform/engines/v1/engines_pb2.py | 24 +- .../platform/engines/v1/engines_pb2.pyi | 6 +- .../platform/finetuning/finetuning.pb.go | 1340 +++++++++++ .../finetuning/finetuning_connect.d.ts | 83 + .../platform/finetuning/finetuning_connect.js | 83 + .../platform/finetuning/finetuning_grpc.pb.go | 306 +++ .../platform/finetuning/finetuning_pb.d.ts | 549 +++++ .../platform/finetuning/finetuning_pb.js | 183 ++ .../platform/finetuning/finetuning_pb2.py | 58 + .../platform/finetuning/finetuning_pb2.pyi | 148 ++ .../finetuning/finetuning_pb2_grpc.py | 237 ++ .../finetuningconnect/finetuning.connect.go | 236 ++ .../platform/generation/v1/generation.pb.go | 1957 ++++++++++------- .../platform/generation/v1/generation_pb.d.ts | 188 ++ .../platform/generation/v1/generation_pb.js | 79 + .../platform/generation/v1/generation_pb2.py | 170 +- .../platform/generation/v1/generation_pb2.pyi | 58 +- .../platform/project/v1/project.pb.go | 468 ++-- .../platform/project/v1/project_pb.d.ts | 42 + .../platform/project/v1/project_pb.js | 16 + .../platform/project/v1/project_pb2.py | 78 +- .../platform/project/v1/project_pb2.pyi | 25 +- src/stability_api/tensors/tensors.pb.go | 2 +- 29 files changed, 5339 insertions(+), 1113 deletions(-) rename src/proto/{ => stability_api/platform/finetuning}/finetuning.proto (100%) create mode 100644 src/stability_api/platform/finetuning/finetuning.pb.go create mode 100644 src/stability_api/platform/finetuning/finetuning_connect.d.ts create mode 100644 src/stability_api/platform/finetuning/finetuning_connect.js create mode 100644 src/stability_api/platform/finetuning/finetuning_grpc.pb.go create mode 100644 src/stability_api/platform/finetuning/finetuning_pb.d.ts create mode 100644 src/stability_api/platform/finetuning/finetuning_pb.js create mode 100644 src/stability_api/platform/finetuning/finetuning_pb2.py create mode 100644 src/stability_api/platform/finetuning/finetuning_pb2.pyi create mode 100644 src/stability_api/platform/finetuning/finetuning_pb2_grpc.py create mode 100644 src/stability_api/platform/finetuning/finetuningconnect/finetuning.connect.go diff --git a/package.json b/package.json index 8131473..7d88081 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,8 @@ "generate-js": "buf generate --template buf.gen.js.yaml --output=./src", "generate-kt": "buf generate --template buf.gen.kt.yaml --output=./src", "generate-py": "buf generate --template buf.gen.py.yaml --output=./src", - "generate-swift": "buf generate --template buf.gen.swift.yaml -output=./src", - "generate": "npm run generate-go && npm run generate-js && npm run generate-kt && npm run generate-py && npm run generate-swift" + "generate-swift": "buf generate --template buf.gen.swift.yaml --output=./src", + "generate": "npm run generate-go && npm run generate-js && npm run generate-py" }, "keywords": [], "author": "", diff --git a/src/proto/finetuning.proto b/src/proto/stability_api/platform/finetuning/finetuning.proto similarity index 100% rename from src/proto/finetuning.proto rename to src/proto/stability_api/platform/finetuning/finetuning.proto diff --git a/src/stability_api/platform/dashboard/v1/dashboard.pb.go b/src/stability_api/platform/dashboard/v1/dashboard.pb.go index 634ef1e..0422600 100644 --- a/src/stability_api/platform/dashboard/v1/dashboard.pb.go +++ b/src/stability_api/platform/dashboard/v1/dashboard.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: stability_api/platform/dashboard/v1/dashboard.proto diff --git a/src/stability_api/platform/engines/v1/engines.pb.go b/src/stability_api/platform/engines/v1/engines.pb.go index bda1678..1edb27d 100644 --- a/src/stability_api/platform/engines/v1/engines.pb.go +++ b/src/stability_api/platform/engines/v1/engines.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: stability_api/platform/engines/v1/engines.proto @@ -138,6 +138,7 @@ type EngineInfo struct { Tokenizer EngineTokenizer `protobuf:"varint,5,opt,name=tokenizer,proto3,enum=stabilityai.platformapis.engines.v1.EngineTokenizer" json:"tokenizer,omitempty"` Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"` + CanFineTune bool `protobuf:"varint,8,opt,name=can_fine_tune,json=canFineTune,proto3" json:"can_fine_tune,omitempty"` } func (x *EngineInfo) Reset() { @@ -221,6 +222,13 @@ func (x *EngineInfo) GetDescription() string { return "" } +func (x *EngineInfo) GetCanFineTune() bool { + if x != nil { + return x.CanFineTune + } + return false +} + type ListEnginesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -315,7 +323,7 @@ var file_stability_api_platform_engines_v1_engines_proto_rawDesc = []byte{ 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x23, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x22, 0x97, 0x02, 0x0a, 0x0a, 0x45, 0x6e, 0x67, 0x69, 0x6e, + 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x22, 0xbb, 0x02, 0x0a, 0x0a, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x72, @@ -333,51 +341,53 @@ var file_stability_api_platform_engines_v1_engines_proto_rawDesc = []byte{ 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x22, 0x14, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x52, 0x0a, 0x07, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x73, 0x12, 0x47, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, - 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x49, 0x6e, - 0x66, 0x6f, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2a, 0x5a, 0x0a, 0x0a, 0x45, 0x6e, - 0x67, 0x69, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x45, 0x58, 0x54, - 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x49, 0x43, 0x54, 0x55, 0x52, 0x45, 0x10, 0x01, 0x12, - 0x09, 0x0a, 0x05, 0x41, 0x55, 0x44, 0x49, 0x4f, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x56, 0x49, - 0x44, 0x45, 0x4f, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4c, 0x41, 0x53, 0x53, 0x49, 0x46, - 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x54, 0x4f, - 0x52, 0x41, 0x47, 0x45, 0x10, 0x05, 0x2a, 0x25, 0x0a, 0x0f, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x08, 0x0a, 0x04, 0x47, 0x50, 0x54, - 0x32, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x50, 0x49, 0x4c, 0x45, 0x10, 0x01, 0x32, 0x88, 0x01, - 0x0a, 0x0e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x12, 0x76, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x12, - 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, 0x69, 0x6e, - 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, - 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, - 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x22, 0x00, 0x42, 0xbe, 0x02, 0x0a, 0x27, 0x63, 0x6f, 0x6d, - 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x56, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, 0x61, 0x69, 0x2f, 0x61, 0x70, - 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x73, 0x72, 0x63, - 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2f, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2f, - 0x76, 0x31, 0x3b, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, - 0x50, 0x45, 0xaa, 0x02, 0x23, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, - 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x45, 0x6e, - 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x23, 0x53, 0x74, 0x61, 0x62, 0x69, - 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, - 0x70, 0x69, 0x73, 0x5c, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, - 0x2f, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x3a, 0x3a, - 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x3a, 0x3a, 0x45, 0x6e, - 0x67, 0x69, 0x6e, 0x65, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x12, 0x22, 0x0a, 0x0d, 0x63, 0x61, 0x6e, 0x5f, 0x66, 0x69, 0x6e, 0x65, 0x5f, 0x74, 0x75, 0x6e, + 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x63, 0x61, 0x6e, 0x46, 0x69, 0x6e, 0x65, + 0x54, 0x75, 0x6e, 0x65, 0x22, 0x14, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x67, 0x69, + 0x6e, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x52, 0x0a, 0x07, 0x45, 0x6e, + 0x67, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, + 0x6e, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2a, 0x5a, + 0x0a, 0x0a, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, + 0x54, 0x45, 0x58, 0x54, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x49, 0x43, 0x54, 0x55, 0x52, + 0x45, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x55, 0x44, 0x49, 0x4f, 0x10, 0x02, 0x12, 0x09, + 0x0a, 0x05, 0x56, 0x49, 0x44, 0x45, 0x4f, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4c, 0x41, + 0x53, 0x53, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x12, 0x0b, 0x0a, + 0x07, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x10, 0x05, 0x2a, 0x25, 0x0a, 0x0f, 0x45, 0x6e, + 0x67, 0x69, 0x6e, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x08, 0x0a, + 0x04, 0x47, 0x50, 0x54, 0x32, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x50, 0x49, 0x4c, 0x45, 0x10, + 0x01, 0x32, 0x88, 0x01, 0x0a, 0x0e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x12, 0x76, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x67, 0x69, + 0x6e, 0x65, 0x73, 0x12, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, + 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, + 0x67, 0x69, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x22, 0x00, 0x42, 0xbe, 0x02, 0x0a, + 0x27, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, + 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, + 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x56, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, 0x61, + 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, + 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, + 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x65, 0x6e, 0x67, 0x69, + 0x6e, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x76, 0x31, + 0xa2, 0x02, 0x03, 0x53, 0x50, 0x45, 0xaa, 0x02, 0x23, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x23, 0x53, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x5c, + 0x56, 0x31, 0xe2, 0x02, 0x2f, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x45, 0x6e, + 0x67, 0x69, 0x6e, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x61, 0x69, 0x3a, 0x3a, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, + 0x3a, 0x3a, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/src/stability_api/platform/engines/v1/engines_pb.d.ts b/src/stability_api/platform/engines/v1/engines_pb.d.ts index 3ca1073..ad394d0 100644 --- a/src/stability_api/platform/engines/v1/engines_pb.d.ts +++ b/src/stability_api/platform/engines/v1/engines_pb.d.ts @@ -99,6 +99,11 @@ export declare class EngineInfo extends Message { */ description: string; + /** + * @generated from field: bool can_fine_tune = 8; + */ + canFineTune: boolean; + constructor(data?: PartialMessage); static readonly runtime: typeof proto3; diff --git a/src/stability_api/platform/engines/v1/engines_pb.js b/src/stability_api/platform/engines/v1/engines_pb.js index 877ebb9..987bf09 100644 --- a/src/stability_api/platform/engines/v1/engines_pb.js +++ b/src/stability_api/platform/engines/v1/engines_pb.js @@ -48,6 +48,7 @@ export const EngineInfo = proto3.makeMessageType( { no: 5, name: "tokenizer", kind: "enum", T: proto3.getEnumType(EngineTokenizer) }, { no: 6, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "can_fine_tune", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ], ); diff --git a/src/stability_api/platform/engines/v1/engines_pb2.py b/src/stability_api/platform/engines/v1/engines_pb2.py index b8eb78b..68273d7 100644 --- a/src/stability_api/platform/engines/v1/engines_pb2.py +++ b/src/stability_api/platform/engines/v1/engines_pb2.py @@ -13,7 +13,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n/stability_api/platform/engines/v1/engines.proto\x12#stabilityai.platformapis.engines.v1\"\x97\x02\n\nEngineInfo\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05owner\x18\x02 \x01(\tR\x05owner\x12\x14\n\x05ready\x18\x03 \x01(\x08R\x05ready\x12\x43\n\x04type\x18\x04 \x01(\x0e\x32/.stabilityai.platformapis.engines.v1.EngineTypeR\x04type\x12R\n\ttokenizer\x18\x05 \x01(\x0e\x32\x34.stabilityai.platformapis.engines.v1.EngineTokenizerR\ttokenizer\x12\x12\n\x04name\x18\x06 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x07 \x01(\tR\x0b\x64\x65scription\"\x14\n\x12ListEnginesRequest\"R\n\x07\x45ngines\x12G\n\x06\x65ngine\x18\x01 \x03(\x0b\x32/.stabilityai.platformapis.engines.v1.EngineInfoR\x06\x65ngine*Z\n\nEngineType\x12\x08\n\x04TEXT\x10\x00\x12\x0b\n\x07PICTURE\x10\x01\x12\t\n\x05\x41UDIO\x10\x02\x12\t\n\x05VIDEO\x10\x03\x12\x12\n\x0e\x43LASSIFICATION\x10\x04\x12\x0b\n\x07STORAGE\x10\x05*%\n\x0f\x45ngineTokenizer\x12\x08\n\x04GPT2\x10\x00\x12\x08\n\x04PILE\x10\x01\x32\x88\x01\n\x0e\x45nginesService\x12v\n\x0bListEngines\x12\x37.stabilityai.platformapis.engines.v1.ListEnginesRequest\x1a,.stabilityai.platformapis.engines.v1.Engines\"\x00\x42\xc7\x02\n\'com.stabilityai.platformapis.engines.v1B\x0c\x45nginesProtoP\x01Z_github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/engines/v1;enginesv1\xa2\x02\x03SPE\xaa\x02#Stabilityai.Platformapis.Engines.V1\xca\x02#Stabilityai\\Platformapis\\Engines\\V1\xe2\x02/Stabilityai\\Platformapis\\Engines\\V1\\GPBMetadata\xea\x02&Stabilityai::Platformapis::Engines::V1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n/stability_api/platform/engines/v1/engines.proto\x12#stabilityai.platformapis.engines.v1\"\xbb\x02\n\nEngineInfo\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05owner\x18\x02 \x01(\tR\x05owner\x12\x14\n\x05ready\x18\x03 \x01(\x08R\x05ready\x12\x43\n\x04type\x18\x04 \x01(\x0e\x32/.stabilityai.platformapis.engines.v1.EngineTypeR\x04type\x12R\n\ttokenizer\x18\x05 \x01(\x0e\x32\x34.stabilityai.platformapis.engines.v1.EngineTokenizerR\ttokenizer\x12\x12\n\x04name\x18\x06 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x07 \x01(\tR\x0b\x64\x65scription\x12\"\n\rcan_fine_tune\x18\x08 \x01(\x08R\x0b\x63\x61nFineTune\"\x14\n\x12ListEnginesRequest\"R\n\x07\x45ngines\x12G\n\x06\x65ngine\x18\x01 \x03(\x0b\x32/.stabilityai.platformapis.engines.v1.EngineInfoR\x06\x65ngine*Z\n\nEngineType\x12\x08\n\x04TEXT\x10\x00\x12\x0b\n\x07PICTURE\x10\x01\x12\t\n\x05\x41UDIO\x10\x02\x12\t\n\x05VIDEO\x10\x03\x12\x12\n\x0e\x43LASSIFICATION\x10\x04\x12\x0b\n\x07STORAGE\x10\x05*%\n\x0f\x45ngineTokenizer\x12\x08\n\x04GPT2\x10\x00\x12\x08\n\x04PILE\x10\x01\x32\x88\x01\n\x0e\x45nginesService\x12v\n\x0bListEngines\x12\x37.stabilityai.platformapis.engines.v1.ListEnginesRequest\x1a,.stabilityai.platformapis.engines.v1.Engines\"\x00\x42\xc7\x02\n\'com.stabilityai.platformapis.engines.v1B\x0c\x45nginesProtoP\x01Z_github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/engines/v1;enginesv1\xa2\x02\x03SPE\xaa\x02#Stabilityai.Platformapis.Engines.V1\xca\x02#Stabilityai\\Platformapis\\Engines\\V1\xe2\x02/Stabilityai\\Platformapis\\Engines\\V1\\GPBMetadata\xea\x02&Stabilityai::Platformapis::Engines::V1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -22,16 +22,16 @@ DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'\n\'com.stabilityai.platformapis.engines.v1B\014EnginesProtoP\001Z_github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/engines/v1;enginesv1\242\002\003SPE\252\002#Stabilityai.Platformapis.Engines.V1\312\002#Stabilityai\\Platformapis\\Engines\\V1\342\002/Stabilityai\\Platformapis\\Engines\\V1\\GPBMetadata\352\002&Stabilityai::Platformapis::Engines::V1' - _globals['_ENGINETYPE']._serialized_start=476 - _globals['_ENGINETYPE']._serialized_end=566 - _globals['_ENGINETOKENIZER']._serialized_start=568 - _globals['_ENGINETOKENIZER']._serialized_end=605 + _globals['_ENGINETYPE']._serialized_start=512 + _globals['_ENGINETYPE']._serialized_end=602 + _globals['_ENGINETOKENIZER']._serialized_start=604 + _globals['_ENGINETOKENIZER']._serialized_end=641 _globals['_ENGINEINFO']._serialized_start=89 - _globals['_ENGINEINFO']._serialized_end=368 - _globals['_LISTENGINESREQUEST']._serialized_start=370 - _globals['_LISTENGINESREQUEST']._serialized_end=390 - _globals['_ENGINES']._serialized_start=392 - _globals['_ENGINES']._serialized_end=474 - _globals['_ENGINESSERVICE']._serialized_start=608 - _globals['_ENGINESSERVICE']._serialized_end=744 + _globals['_ENGINEINFO']._serialized_end=404 + _globals['_LISTENGINESREQUEST']._serialized_start=406 + _globals['_LISTENGINESREQUEST']._serialized_end=426 + _globals['_ENGINES']._serialized_start=428 + _globals['_ENGINES']._serialized_end=510 + _globals['_ENGINESSERVICE']._serialized_start=644 + _globals['_ENGINESSERVICE']._serialized_end=780 # @@protoc_insertion_point(module_scope) diff --git a/src/stability_api/platform/engines/v1/engines_pb2.pyi b/src/stability_api/platform/engines/v1/engines_pb2.pyi index d9f5cc0..8e5c76e 100644 --- a/src/stability_api/platform/engines/v1/engines_pb2.pyi +++ b/src/stability_api/platform/engines/v1/engines_pb2.pyi @@ -29,7 +29,7 @@ GPT2: EngineTokenizer PILE: EngineTokenizer class EngineInfo(_message.Message): - __slots__ = ["id", "owner", "ready", "type", "tokenizer", "name", "description"] + __slots__ = ["id", "owner", "ready", "type", "tokenizer", "name", "description", "can_fine_tune"] ID_FIELD_NUMBER: _ClassVar[int] OWNER_FIELD_NUMBER: _ClassVar[int] READY_FIELD_NUMBER: _ClassVar[int] @@ -37,6 +37,7 @@ class EngineInfo(_message.Message): TOKENIZER_FIELD_NUMBER: _ClassVar[int] NAME_FIELD_NUMBER: _ClassVar[int] DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + CAN_FINE_TUNE_FIELD_NUMBER: _ClassVar[int] id: str owner: str ready: bool @@ -44,7 +45,8 @@ class EngineInfo(_message.Message): tokenizer: EngineTokenizer name: str description: str - def __init__(self, id: _Optional[str] = ..., owner: _Optional[str] = ..., ready: bool = ..., type: _Optional[_Union[EngineType, str]] = ..., tokenizer: _Optional[_Union[EngineTokenizer, str]] = ..., name: _Optional[str] = ..., description: _Optional[str] = ...) -> None: ... + can_fine_tune: bool + def __init__(self, id: _Optional[str] = ..., owner: _Optional[str] = ..., ready: bool = ..., type: _Optional[_Union[EngineType, str]] = ..., tokenizer: _Optional[_Union[EngineTokenizer, str]] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., can_fine_tune: bool = ...) -> None: ... class ListEnginesRequest(_message.Message): __slots__ = [] diff --git a/src/stability_api/platform/finetuning/finetuning.pb.go b/src/stability_api/platform/finetuning/finetuning.pb.go new file mode 100644 index 0000000..ea7a28f --- /dev/null +++ b/src/stability_api/platform/finetuning/finetuning.pb.go @@ -0,0 +1,1340 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.31.0 +// protoc (unknown) +// source: stability_api/platform/finetuning/finetuning.proto + +package finetuning + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + structpb "google.golang.org/protobuf/types/known/structpb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type FineTuningMode int32 + +const ( + FineTuningMode_FINE_TUNING_MODE_UNSPECIFIED FineTuningMode = 0 // No mode specified + FineTuningMode_FINE_TUNING_MODE_FACE FineTuningMode = 1 // Fine tuning a face model + FineTuningMode_FINE_TUNING_MODE_STYLE FineTuningMode = 2 // Fine tuning a style model + FineTuningMode_FINE_TUNING_MODE_OBJECT FineTuningMode = 3 // Fine tuning an object model +) + +// Enum value maps for FineTuningMode. +var ( + FineTuningMode_name = map[int32]string{ + 0: "FINE_TUNING_MODE_UNSPECIFIED", + 1: "FINE_TUNING_MODE_FACE", + 2: "FINE_TUNING_MODE_STYLE", + 3: "FINE_TUNING_MODE_OBJECT", + } + FineTuningMode_value = map[string]int32{ + "FINE_TUNING_MODE_UNSPECIFIED": 0, + "FINE_TUNING_MODE_FACE": 1, + "FINE_TUNING_MODE_STYLE": 2, + "FINE_TUNING_MODE_OBJECT": 3, + } +) + +func (x FineTuningMode) Enum() *FineTuningMode { + p := new(FineTuningMode) + *p = x + return p +} + +func (x FineTuningMode) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (FineTuningMode) Descriptor() protoreflect.EnumDescriptor { + return file_stability_api_platform_finetuning_finetuning_proto_enumTypes[0].Descriptor() +} + +func (FineTuningMode) Type() protoreflect.EnumType { + return &file_stability_api_platform_finetuning_finetuning_proto_enumTypes[0] +} + +func (x FineTuningMode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use FineTuningMode.Descriptor instead. +func (FineTuningMode) EnumDescriptor() ([]byte, []int) { + return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{0} +} + +type FineTuningStatus int32 + +const ( + FineTuningStatus_FINE_TUNING_STATUS_NOT_STARTED FineTuningStatus = 0 // Model not yet started + FineTuningStatus_FINE_TUNING_STATUS_RUNNING FineTuningStatus = 1 // Model is currently running + FineTuningStatus_FINE_TUNING_STATUS_COMPLETED FineTuningStatus = 2 // Model has completed successfully + FineTuningStatus_FINE_TUNING_STATUS_FAILED FineTuningStatus = 3 // Model has failed + FineTuningStatus_FINE_TUNING_STATUS_SUBMITTED FineTuningStatus = 4 // Model has been submitted +) + +// Enum value maps for FineTuningStatus. +var ( + FineTuningStatus_name = map[int32]string{ + 0: "FINE_TUNING_STATUS_NOT_STARTED", + 1: "FINE_TUNING_STATUS_RUNNING", + 2: "FINE_TUNING_STATUS_COMPLETED", + 3: "FINE_TUNING_STATUS_FAILED", + 4: "FINE_TUNING_STATUS_SUBMITTED", + } + FineTuningStatus_value = map[string]int32{ + "FINE_TUNING_STATUS_NOT_STARTED": 0, + "FINE_TUNING_STATUS_RUNNING": 1, + "FINE_TUNING_STATUS_COMPLETED": 2, + "FINE_TUNING_STATUS_FAILED": 3, + "FINE_TUNING_STATUS_SUBMITTED": 4, + } +) + +func (x FineTuningStatus) Enum() *FineTuningStatus { + p := new(FineTuningStatus) + *p = x + return p +} + +func (x FineTuningStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (FineTuningStatus) Descriptor() protoreflect.EnumDescriptor { + return file_stability_api_platform_finetuning_finetuning_proto_enumTypes[1].Descriptor() +} + +func (FineTuningStatus) Type() protoreflect.EnumType { + return &file_stability_api_platform_finetuning_finetuning_proto_enumTypes[1] +} + +func (x FineTuningStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use FineTuningStatus.Descriptor instead. +func (FineTuningStatus) EnumDescriptor() ([]byte, []int) { + return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{1} +} + +type FineTuningModel struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the model, UUIDv4 + UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // ID of user who created the model + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // a readable model name + Mode *FineTuningMode `protobuf:"varint,4,opt,name=mode,proto3,enum=gooseai.FineTuningMode,oneof" json:"mode,omitempty"` // the mode of the model + ObjectPrompt *string `protobuf:"bytes,5,opt,name=object_prompt,json=objectPrompt,proto3,oneof" json:"object_prompt,omitempty"` // freeform text description of object, should only be set when mode is OBJECT + ProjectId string `protobuf:"bytes,6,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` // project ID with assets to be used for fine tuning + Duration float64 `protobuf:"fixed64,7,opt,name=duration,proto3" json:"duration,omitempty"` // duration in seconds for how long the model took to train + Status FineTuningStatus `protobuf:"varint,8,opt,name=status,proto3,enum=gooseai.FineTuningStatus" json:"status,omitempty"` // the current status of the model + EngineId string `protobuf:"bytes,9,opt,name=engine_id,json=engineId,proto3" json:"engine_id,omitempty"` // the engineId of a fine-tuneable Stability model + FailureReason *string `protobuf:"bytes,10,opt,name=failure_reason,json=failureReason,proto3,oneof" json:"failure_reason,omitempty"` // If a model's training failed, this will contain the reason +} + +func (x *FineTuningModel) Reset() { + *x = FineTuningModel{} + if protoimpl.UnsafeEnabled { + mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FineTuningModel) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FineTuningModel) ProtoMessage() {} + +func (x *FineTuningModel) ProtoReflect() protoreflect.Message { + mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FineTuningModel.ProtoReflect.Descriptor instead. +func (*FineTuningModel) Descriptor() ([]byte, []int) { + return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{0} +} + +func (x *FineTuningModel) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *FineTuningModel) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +func (x *FineTuningModel) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *FineTuningModel) GetMode() FineTuningMode { + if x != nil && x.Mode != nil { + return *x.Mode + } + return FineTuningMode_FINE_TUNING_MODE_UNSPECIFIED +} + +func (x *FineTuningModel) GetObjectPrompt() string { + if x != nil && x.ObjectPrompt != nil { + return *x.ObjectPrompt + } + return "" +} + +func (x *FineTuningModel) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *FineTuningModel) GetDuration() float64 { + if x != nil { + return x.Duration + } + return 0 +} + +func (x *FineTuningModel) GetStatus() FineTuningStatus { + if x != nil { + return x.Status + } + return FineTuningStatus_FINE_TUNING_STATUS_NOT_STARTED +} + +func (x *FineTuningModel) GetEngineId() string { + if x != nil { + return x.EngineId + } + return "" +} + +func (x *FineTuningModel) GetFailureReason() string { + if x != nil && x.FailureReason != nil { + return *x.FailureReason + } + return "" +} + +type CreateModelRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // a readable model name + Mode *FineTuningMode `protobuf:"varint,2,opt,name=mode,proto3,enum=gooseai.FineTuningMode,oneof" json:"mode,omitempty"` // the mode of the model + ObjectPrompt *string `protobuf:"bytes,3,opt,name=object_prompt,json=objectPrompt,proto3,oneof" json:"object_prompt,omitempty"` // freeform text description of object, should only be set when mode is OBJECT + ProjectId string `protobuf:"bytes,4,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` // the project_id with assets to be used for fine tuning + EngineId string `protobuf:"bytes,5,opt,name=engine_id,json=engineId,proto3" json:"engine_id,omitempty"` // the engineId of an fine-tuneable Stability model + Extras *structpb.Struct `protobuf:"bytes,2047,opt,name=extras,proto3,oneof" json:"extras,omitempty"` // for development use +} + +func (x *CreateModelRequest) Reset() { + *x = CreateModelRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateModelRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateModelRequest) ProtoMessage() {} + +func (x *CreateModelRequest) ProtoReflect() protoreflect.Message { + mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateModelRequest.ProtoReflect.Descriptor instead. +func (*CreateModelRequest) Descriptor() ([]byte, []int) { + return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{1} +} + +func (x *CreateModelRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *CreateModelRequest) GetMode() FineTuningMode { + if x != nil && x.Mode != nil { + return *x.Mode + } + return FineTuningMode_FINE_TUNING_MODE_UNSPECIFIED +} + +func (x *CreateModelRequest) GetObjectPrompt() string { + if x != nil && x.ObjectPrompt != nil { + return *x.ObjectPrompt + } + return "" +} + +func (x *CreateModelRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *CreateModelRequest) GetEngineId() string { + if x != nil { + return x.EngineId + } + return "" +} + +func (x *CreateModelRequest) GetExtras() *structpb.Struct { + if x != nil { + return x.Extras + } + return nil +} + +type CreateModelResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Model *FineTuningModel `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"` +} + +func (x *CreateModelResponse) Reset() { + *x = CreateModelResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateModelResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateModelResponse) ProtoMessage() {} + +func (x *CreateModelResponse) ProtoReflect() protoreflect.Message { + mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateModelResponse.ProtoReflect.Descriptor instead. +func (*CreateModelResponse) Descriptor() ([]byte, []int) { + return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{2} +} + +func (x *CreateModelResponse) GetModel() *FineTuningModel { + if x != nil { + return x.Model + } + return nil +} + +type GetModelRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the model +} + +func (x *GetModelRequest) Reset() { + *x = GetModelRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetModelRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetModelRequest) ProtoMessage() {} + +func (x *GetModelRequest) ProtoReflect() protoreflect.Message { + mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetModelRequest.ProtoReflect.Descriptor instead. +func (*GetModelRequest) Descriptor() ([]byte, []int) { + return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{3} +} + +func (x *GetModelRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type GetModelResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Model *FineTuningModel `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"` +} + +func (x *GetModelResponse) Reset() { + *x = GetModelResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetModelResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetModelResponse) ProtoMessage() {} + +func (x *GetModelResponse) ProtoReflect() protoreflect.Message { + mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetModelResponse.ProtoReflect.Descriptor instead. +func (*GetModelResponse) Descriptor() ([]byte, []int) { + return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{4} +} + +func (x *GetModelResponse) GetModel() *FineTuningModel { + if x != nil { + return x.Model + } + return nil +} + +type UpdateModelRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // the id of the model + Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"` // a readable model name + Mode *FineTuningMode `protobuf:"varint,3,opt,name=mode,proto3,enum=gooseai.FineTuningMode,oneof" json:"mode,omitempty"` // the mode of the model + ObjectPrompt *string `protobuf:"bytes,4,opt,name=object_prompt,json=objectPrompt,proto3,oneof" json:"object_prompt,omitempty"` // freeform text description of object, should only be set when mode is OBJECT + EngineId *string `protobuf:"bytes,5,opt,name=engine_id,json=engineId,proto3,oneof" json:"engine_id,omitempty"` // the engineId of an fine-tuneable Stability model +} + +func (x *UpdateModelRequest) Reset() { + *x = UpdateModelRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateModelRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateModelRequest) ProtoMessage() {} + +func (x *UpdateModelRequest) ProtoReflect() protoreflect.Message { + mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateModelRequest.ProtoReflect.Descriptor instead. +func (*UpdateModelRequest) Descriptor() ([]byte, []int) { + return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{5} +} + +func (x *UpdateModelRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *UpdateModelRequest) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" +} + +func (x *UpdateModelRequest) GetMode() FineTuningMode { + if x != nil && x.Mode != nil { + return *x.Mode + } + return FineTuningMode_FINE_TUNING_MODE_UNSPECIFIED +} + +func (x *UpdateModelRequest) GetObjectPrompt() string { + if x != nil && x.ObjectPrompt != nil { + return *x.ObjectPrompt + } + return "" +} + +func (x *UpdateModelRequest) GetEngineId() string { + if x != nil && x.EngineId != nil { + return *x.EngineId + } + return "" +} + +type UpdateModelResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Model *FineTuningModel `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"` +} + +func (x *UpdateModelResponse) Reset() { + *x = UpdateModelResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateModelResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateModelResponse) ProtoMessage() {} + +func (x *UpdateModelResponse) ProtoReflect() protoreflect.Message { + mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateModelResponse.ProtoReflect.Descriptor instead. +func (*UpdateModelResponse) Descriptor() ([]byte, []int) { + return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{6} +} + +func (x *UpdateModelResponse) GetModel() *FineTuningModel { + if x != nil { + return x.Model + } + return nil +} + +type DeleteModelRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the model to delete +} + +func (x *DeleteModelRequest) Reset() { + *x = DeleteModelRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteModelRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteModelRequest) ProtoMessage() {} + +func (x *DeleteModelRequest) ProtoReflect() protoreflect.Message { + mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteModelRequest.ProtoReflect.Descriptor instead. +func (*DeleteModelRequest) Descriptor() ([]byte, []int) { + return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{7} +} + +func (x *DeleteModelRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type DeleteModelResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Model *FineTuningModel `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"` +} + +func (x *DeleteModelResponse) Reset() { + *x = DeleteModelResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteModelResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteModelResponse) ProtoMessage() {} + +func (x *DeleteModelResponse) ProtoReflect() protoreflect.Message { + mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteModelResponse.ProtoReflect.Descriptor instead. +func (*DeleteModelResponse) Descriptor() ([]byte, []int) { + return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{8} +} + +func (x *DeleteModelResponse) GetModel() *FineTuningModel { + if x != nil { + return x.Model + } + return nil +} + +type ResubmitModelRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the model to resubmit +} + +func (x *ResubmitModelRequest) Reset() { + *x = ResubmitModelRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResubmitModelRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResubmitModelRequest) ProtoMessage() {} + +func (x *ResubmitModelRequest) ProtoReflect() protoreflect.Message { + mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ResubmitModelRequest.ProtoReflect.Descriptor instead. +func (*ResubmitModelRequest) Descriptor() ([]byte, []int) { + return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{9} +} + +func (x *ResubmitModelRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type ResubmitModelResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Model *FineTuningModel `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"` +} + +func (x *ResubmitModelResponse) Reset() { + *x = ResubmitModelResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResubmitModelResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResubmitModelResponse) ProtoMessage() {} + +func (x *ResubmitModelResponse) ProtoReflect() protoreflect.Message { + mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ResubmitModelResponse.ProtoReflect.Descriptor instead. +func (*ResubmitModelResponse) Descriptor() ([]byte, []int) { + return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{10} +} + +func (x *ResubmitModelResponse) GetModel() *FineTuningModel { + if x != nil { + return x.Model + } + return nil +} + +type ListModelsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Id: + // + // *ListModelsRequest_OrgId + // *ListModelsRequest_UserId + Id isListModelsRequest_Id `protobuf_oneof:"id"` +} + +func (x *ListModelsRequest) Reset() { + *x = ListModelsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListModelsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListModelsRequest) ProtoMessage() {} + +func (x *ListModelsRequest) ProtoReflect() protoreflect.Message { + mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListModelsRequest.ProtoReflect.Descriptor instead. +func (*ListModelsRequest) Descriptor() ([]byte, []int) { + return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{11} +} + +func (m *ListModelsRequest) GetId() isListModelsRequest_Id { + if m != nil { + return m.Id + } + return nil +} + +func (x *ListModelsRequest) GetOrgId() string { + if x, ok := x.GetId().(*ListModelsRequest_OrgId); ok { + return x.OrgId + } + return "" +} + +func (x *ListModelsRequest) GetUserId() string { + if x, ok := x.GetId().(*ListModelsRequest_UserId); ok { + return x.UserId + } + return "" +} + +type isListModelsRequest_Id interface { + isListModelsRequest_Id() +} + +type ListModelsRequest_OrgId struct { + OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3,oneof"` // the organization's ID +} + +type ListModelsRequest_UserId struct { + UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3,oneof"` // or the user's ID +} + +func (*ListModelsRequest_OrgId) isListModelsRequest_Id() {} + +func (*ListModelsRequest_UserId) isListModelsRequest_Id() {} + +type ListModelsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Models []*FineTuningModel `protobuf:"bytes,1,rep,name=models,proto3" json:"models,omitempty"` // the list of models +} + +func (x *ListModelsResponse) Reset() { + *x = ListModelsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListModelsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListModelsResponse) ProtoMessage() {} + +func (x *ListModelsResponse) ProtoReflect() protoreflect.Message { + mi := &file_stability_api_platform_finetuning_finetuning_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListModelsResponse.ProtoReflect.Descriptor instead. +func (*ListModelsResponse) Descriptor() ([]byte, []int) { + return file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP(), []int{12} +} + +func (x *ListModelsResponse) GetModels() []*FineTuningModel { + if x != nil { + return x.Models + } + return nil +} + +var File_stability_api_platform_finetuning_finetuning_proto protoreflect.FileDescriptor + +var file_stability_api_platform_finetuning_finetuning_proto_rawDesc = []byte{ + 0x0a, 0x32, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2f, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x66, 0x69, 0x6e, 0x65, 0x74, 0x75, 0x6e, + 0x69, 0x6e, 0x67, 0x2f, 0x66, 0x69, 0x6e, 0x65, 0x74, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x1a, 0x1c, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, + 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8f, 0x03, 0x0a, 0x0f, + 0x46, 0x69, 0x6e, 0x65, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x04, + 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, + 0x73, 0x65, 0x61, 0x69, 0x2e, 0x46, 0x69, 0x6e, 0x65, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x4d, + 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x12, 0x28, + 0x0a, 0x0d, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0c, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, + 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x31, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x46, 0x69, + 0x6e, 0x65, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, + 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x67, 0x69, 0x6e, + 0x65, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x0e, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x72, + 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x0d, 0x66, + 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x42, + 0x07, 0x0a, 0x05, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x6f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x66, + 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x9d, 0x02, + 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, + 0x2e, 0x46, 0x69, 0x6e, 0x65, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x48, + 0x00, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x12, 0x28, 0x0a, 0x0d, 0x6f, 0x62, + 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x01, 0x52, 0x0c, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x6d, 0x70, + 0x74, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x49, 0x64, + 0x12, 0x35, 0x0a, 0x06, 0x65, 0x78, 0x74, 0x72, 0x61, 0x73, 0x18, 0xff, 0x0f, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x48, 0x02, 0x52, 0x06, 0x65, 0x78, + 0x74, 0x72, 0x61, 0x73, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6d, 0x6f, 0x64, 0x65, + 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6d, + 0x70, 0x74, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x73, 0x22, 0x45, 0x0a, + 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x46, 0x69, + 0x6e, 0x65, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x05, 0x6d, + 0x6f, 0x64, 0x65, 0x6c, 0x22, 0x21, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x42, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x4d, 0x6f, + 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x6d, + 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, + 0x73, 0x65, 0x61, 0x69, 0x2e, 0x46, 0x69, 0x6e, 0x65, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x4d, + 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x22, 0xed, 0x01, 0x0a, 0x12, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x00, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x30, 0x0a, 0x04, 0x6d, + 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x73, + 0x65, 0x61, 0x69, 0x2e, 0x46, 0x69, 0x6e, 0x65, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x4d, 0x6f, + 0x64, 0x65, 0x48, 0x01, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x12, 0x28, 0x0a, + 0x0d, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x0c, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, + 0x6f, 0x6d, 0x70, 0x74, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x09, 0x65, 0x6e, 0x67, 0x69, 0x6e, + 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x08, 0x65, 0x6e, + 0x67, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x42, 0x10, 0x0a, 0x0e, 0x5f, + 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x42, 0x0c, 0x0a, + 0x0a, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x45, 0x0a, 0x13, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x46, 0x69, 0x6e, 0x65, + 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x05, 0x6d, 0x6f, 0x64, + 0x65, 0x6c, 0x22, 0x24, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, + 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x45, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x2e, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, + 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x46, 0x69, 0x6e, 0x65, 0x54, 0x75, 0x6e, + 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x22, + 0x26, 0x0a, 0x14, 0x52, 0x65, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x47, 0x0a, 0x15, 0x52, 0x65, 0x73, 0x75, 0x62, + 0x6d, 0x69, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x2e, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x46, 0x69, 0x6e, 0x65, 0x54, 0x75, + 0x6e, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, + 0x22, 0x4d, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x06, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, 0x64, 0x12, 0x19, + 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x00, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x42, 0x04, 0x0a, 0x02, 0x69, 0x64, 0x22, + 0x46, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, + 0x46, 0x69, 0x6e, 0x65, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, + 0x06, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2a, 0x86, 0x01, 0x0a, 0x0e, 0x46, 0x69, 0x6e, 0x65, + 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x20, 0x0a, 0x1c, 0x46, 0x49, + 0x4e, 0x45, 0x5f, 0x54, 0x55, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55, + 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, + 0x46, 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x55, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x4d, 0x4f, 0x44, 0x45, + 0x5f, 0x46, 0x41, 0x43, 0x45, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x46, 0x49, 0x4e, 0x45, 0x5f, + 0x54, 0x55, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x53, 0x54, 0x59, 0x4c, + 0x45, 0x10, 0x02, 0x12, 0x1b, 0x0a, 0x17, 0x46, 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x55, 0x4e, 0x49, + 0x4e, 0x47, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x03, + 0x2a, 0xb9, 0x01, 0x0a, 0x10, 0x46, 0x69, 0x6e, 0x65, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x22, 0x0a, 0x1e, 0x46, 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x55, + 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, + 0x53, 0x54, 0x41, 0x52, 0x54, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x46, 0x49, 0x4e, + 0x45, 0x5f, 0x54, 0x55, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, + 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x20, 0x0a, 0x1c, 0x46, 0x49, 0x4e, + 0x45, 0x5f, 0x54, 0x55, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, + 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x46, + 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x55, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, + 0x53, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x20, 0x0a, 0x1c, 0x46, 0x49, + 0x4e, 0x45, 0x5f, 0x54, 0x55, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, + 0x5f, 0x53, 0x55, 0x42, 0x4d, 0x49, 0x54, 0x54, 0x45, 0x44, 0x10, 0x04, 0x32, 0xc9, 0x03, 0x0a, + 0x11, 0x46, 0x69, 0x6e, 0x65, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x12, 0x48, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, + 0x6c, 0x12, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, + 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, + 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x08, + 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, + 0x61, 0x69, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x47, 0x65, 0x74, + 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, + 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x1b, 0x2e, 0x67, + 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, + 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x73, + 0x65, 0x61, 0x69, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, + 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x4e, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4d, 0x6f, 0x64, + 0x65, 0x6c, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x52, 0x65, 0x73, + 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x75, + 0x62, 0x6d, 0x69, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x45, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x12, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, + 0x64, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x6f, + 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xa8, 0x01, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, + 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x42, 0x0f, 0x46, 0x69, 0x6e, 0x65, 0x74, 0x75, + 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4c, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x2d, 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, + 0x63, 0x65, 0x73, 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x66, + 0x69, 0x6e, 0x65, 0x74, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0xa2, 0x02, 0x03, 0x47, 0x58, 0x58, 0xaa, + 0x02, 0x07, 0x47, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0xca, 0x02, 0x07, 0x47, 0x6f, 0x6f, 0x73, + 0x65, 0x61, 0x69, 0xe2, 0x02, 0x13, 0x47, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x07, 0x47, 0x6f, 0x6f, 0x73, + 0x65, 0x61, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_stability_api_platform_finetuning_finetuning_proto_rawDescOnce sync.Once + file_stability_api_platform_finetuning_finetuning_proto_rawDescData = file_stability_api_platform_finetuning_finetuning_proto_rawDesc +) + +func file_stability_api_platform_finetuning_finetuning_proto_rawDescGZIP() []byte { + file_stability_api_platform_finetuning_finetuning_proto_rawDescOnce.Do(func() { + file_stability_api_platform_finetuning_finetuning_proto_rawDescData = protoimpl.X.CompressGZIP(file_stability_api_platform_finetuning_finetuning_proto_rawDescData) + }) + return file_stability_api_platform_finetuning_finetuning_proto_rawDescData +} + +var file_stability_api_platform_finetuning_finetuning_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_stability_api_platform_finetuning_finetuning_proto_msgTypes = make([]protoimpl.MessageInfo, 13) +var file_stability_api_platform_finetuning_finetuning_proto_goTypes = []interface{}{ + (FineTuningMode)(0), // 0: gooseai.FineTuningMode + (FineTuningStatus)(0), // 1: gooseai.FineTuningStatus + (*FineTuningModel)(nil), // 2: gooseai.FineTuningModel + (*CreateModelRequest)(nil), // 3: gooseai.CreateModelRequest + (*CreateModelResponse)(nil), // 4: gooseai.CreateModelResponse + (*GetModelRequest)(nil), // 5: gooseai.GetModelRequest + (*GetModelResponse)(nil), // 6: gooseai.GetModelResponse + (*UpdateModelRequest)(nil), // 7: gooseai.UpdateModelRequest + (*UpdateModelResponse)(nil), // 8: gooseai.UpdateModelResponse + (*DeleteModelRequest)(nil), // 9: gooseai.DeleteModelRequest + (*DeleteModelResponse)(nil), // 10: gooseai.DeleteModelResponse + (*ResubmitModelRequest)(nil), // 11: gooseai.ResubmitModelRequest + (*ResubmitModelResponse)(nil), // 12: gooseai.ResubmitModelResponse + (*ListModelsRequest)(nil), // 13: gooseai.ListModelsRequest + (*ListModelsResponse)(nil), // 14: gooseai.ListModelsResponse + (*structpb.Struct)(nil), // 15: google.protobuf.Struct +} +var file_stability_api_platform_finetuning_finetuning_proto_depIdxs = []int32{ + 0, // 0: gooseai.FineTuningModel.mode:type_name -> gooseai.FineTuningMode + 1, // 1: gooseai.FineTuningModel.status:type_name -> gooseai.FineTuningStatus + 0, // 2: gooseai.CreateModelRequest.mode:type_name -> gooseai.FineTuningMode + 15, // 3: gooseai.CreateModelRequest.extras:type_name -> google.protobuf.Struct + 2, // 4: gooseai.CreateModelResponse.model:type_name -> gooseai.FineTuningModel + 2, // 5: gooseai.GetModelResponse.model:type_name -> gooseai.FineTuningModel + 0, // 6: gooseai.UpdateModelRequest.mode:type_name -> gooseai.FineTuningMode + 2, // 7: gooseai.UpdateModelResponse.model:type_name -> gooseai.FineTuningModel + 2, // 8: gooseai.DeleteModelResponse.model:type_name -> gooseai.FineTuningModel + 2, // 9: gooseai.ResubmitModelResponse.model:type_name -> gooseai.FineTuningModel + 2, // 10: gooseai.ListModelsResponse.models:type_name -> gooseai.FineTuningModel + 3, // 11: gooseai.FineTuningService.CreateModel:input_type -> gooseai.CreateModelRequest + 5, // 12: gooseai.FineTuningService.GetModel:input_type -> gooseai.GetModelRequest + 7, // 13: gooseai.FineTuningService.UpdateModel:input_type -> gooseai.UpdateModelRequest + 9, // 14: gooseai.FineTuningService.DeleteModel:input_type -> gooseai.DeleteModelRequest + 11, // 15: gooseai.FineTuningService.ResubmitModel:input_type -> gooseai.ResubmitModelRequest + 13, // 16: gooseai.FineTuningService.ListModels:input_type -> gooseai.ListModelsRequest + 4, // 17: gooseai.FineTuningService.CreateModel:output_type -> gooseai.CreateModelResponse + 6, // 18: gooseai.FineTuningService.GetModel:output_type -> gooseai.GetModelResponse + 8, // 19: gooseai.FineTuningService.UpdateModel:output_type -> gooseai.UpdateModelResponse + 10, // 20: gooseai.FineTuningService.DeleteModel:output_type -> gooseai.DeleteModelResponse + 12, // 21: gooseai.FineTuningService.ResubmitModel:output_type -> gooseai.ResubmitModelResponse + 14, // 22: gooseai.FineTuningService.ListModels:output_type -> gooseai.ListModelsResponse + 17, // [17:23] is the sub-list for method output_type + 11, // [11:17] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name +} + +func init() { file_stability_api_platform_finetuning_finetuning_proto_init() } +func file_stability_api_platform_finetuning_finetuning_proto_init() { + if File_stability_api_platform_finetuning_finetuning_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_stability_api_platform_finetuning_finetuning_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FineTuningModel); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stability_api_platform_finetuning_finetuning_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateModelRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stability_api_platform_finetuning_finetuning_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateModelResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stability_api_platform_finetuning_finetuning_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetModelRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stability_api_platform_finetuning_finetuning_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetModelResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stability_api_platform_finetuning_finetuning_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateModelRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stability_api_platform_finetuning_finetuning_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateModelResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stability_api_platform_finetuning_finetuning_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteModelRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stability_api_platform_finetuning_finetuning_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteModelResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stability_api_platform_finetuning_finetuning_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResubmitModelRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stability_api_platform_finetuning_finetuning_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResubmitModelResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stability_api_platform_finetuning_finetuning_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListModelsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stability_api_platform_finetuning_finetuning_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListModelsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_stability_api_platform_finetuning_finetuning_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_stability_api_platform_finetuning_finetuning_proto_msgTypes[1].OneofWrappers = []interface{}{} + file_stability_api_platform_finetuning_finetuning_proto_msgTypes[5].OneofWrappers = []interface{}{} + file_stability_api_platform_finetuning_finetuning_proto_msgTypes[11].OneofWrappers = []interface{}{ + (*ListModelsRequest_OrgId)(nil), + (*ListModelsRequest_UserId)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_stability_api_platform_finetuning_finetuning_proto_rawDesc, + NumEnums: 2, + NumMessages: 13, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_stability_api_platform_finetuning_finetuning_proto_goTypes, + DependencyIndexes: file_stability_api_platform_finetuning_finetuning_proto_depIdxs, + EnumInfos: file_stability_api_platform_finetuning_finetuning_proto_enumTypes, + MessageInfos: file_stability_api_platform_finetuning_finetuning_proto_msgTypes, + }.Build() + File_stability_api_platform_finetuning_finetuning_proto = out.File + file_stability_api_platform_finetuning_finetuning_proto_rawDesc = nil + file_stability_api_platform_finetuning_finetuning_proto_goTypes = nil + file_stability_api_platform_finetuning_finetuning_proto_depIdxs = nil +} diff --git a/src/stability_api/platform/finetuning/finetuning_connect.d.ts b/src/stability_api/platform/finetuning/finetuning_connect.d.ts new file mode 100644 index 0000000..50034bf --- /dev/null +++ b/src/stability_api/platform/finetuning/finetuning_connect.d.ts @@ -0,0 +1,83 @@ +// @generated by protoc-gen-connect-es v0.8.6 +// @generated from file stability_api/platform/finetuning/finetuning.proto (package gooseai, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { CreateModelRequest, CreateModelResponse, DeleteModelRequest, DeleteModelResponse, GetModelRequest, GetModelResponse, ListModelsRequest, ListModelsResponse, ResubmitModelRequest, ResubmitModelResponse, UpdateModelRequest, UpdateModelResponse } from "./finetuning_pb.js"; +import { MethodKind } from "@bufbuild/protobuf"; + +/** + * @generated from service gooseai.FineTuningService + */ +export declare const FineTuningService: { + readonly typeName: "gooseai.FineTuningService", + readonly methods: { + /** + * Create a new model and begin the fine tuning process + * + * @generated from rpc gooseai.FineTuningService.CreateModel + */ + readonly createModel: { + readonly name: "CreateModel", + readonly I: typeof CreateModelRequest, + readonly O: typeof CreateModelResponse, + readonly kind: MethodKind.Unary, + }, + /** + * Get a FineTuningModel + * + * @generated from rpc gooseai.FineTuningService.GetModel + */ + readonly getModel: { + readonly name: "GetModel", + readonly I: typeof GetModelRequest, + readonly O: typeof GetModelResponse, + readonly kind: MethodKind.Unary, + }, + /** + * Update a FineTuningModel by id + * + * @generated from rpc gooseai.FineTuningService.UpdateModel + */ + readonly updateModel: { + readonly name: "UpdateModel", + readonly I: typeof UpdateModelRequest, + readonly O: typeof UpdateModelResponse, + readonly kind: MethodKind.Unary, + }, + /** + * Delete a fine tuned model + * + * @generated from rpc gooseai.FineTuningService.DeleteModel + */ + readonly deleteModel: { + readonly name: "DeleteModel", + readonly I: typeof DeleteModelRequest, + readonly O: typeof DeleteModelResponse, + readonly kind: MethodKind.Unary, + }, + /** + * Re-run training, does not create a new model + * + * @generated from rpc gooseai.FineTuningService.ResubmitModel + */ + readonly resubmitModel: { + readonly name: "ResubmitModel", + readonly I: typeof ResubmitModelRequest, + readonly O: typeof ResubmitModelResponse, + readonly kind: MethodKind.Unary, + }, + /** + * List all the fine tuned models for an organization or user + * + * @generated from rpc gooseai.FineTuningService.ListModels + */ + readonly listModels: { + readonly name: "ListModels", + readonly I: typeof ListModelsRequest, + readonly O: typeof ListModelsResponse, + readonly kind: MethodKind.Unary, + }, + } +}; + diff --git a/src/stability_api/platform/finetuning/finetuning_connect.js b/src/stability_api/platform/finetuning/finetuning_connect.js new file mode 100644 index 0000000..d59db29 --- /dev/null +++ b/src/stability_api/platform/finetuning/finetuning_connect.js @@ -0,0 +1,83 @@ +// @generated by protoc-gen-connect-es v0.8.6 +// @generated from file stability_api/platform/finetuning/finetuning.proto (package gooseai, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { CreateModelRequest, CreateModelResponse, DeleteModelRequest, DeleteModelResponse, GetModelRequest, GetModelResponse, ListModelsRequest, ListModelsResponse, ResubmitModelRequest, ResubmitModelResponse, UpdateModelRequest, UpdateModelResponse } from "./finetuning_pb.js"; +import { MethodKind } from "@bufbuild/protobuf"; + +/** + * @generated from service gooseai.FineTuningService + */ +export const FineTuningService = { + typeName: "gooseai.FineTuningService", + methods: { + /** + * Create a new model and begin the fine tuning process + * + * @generated from rpc gooseai.FineTuningService.CreateModel + */ + createModel: { + name: "CreateModel", + I: CreateModelRequest, + O: CreateModelResponse, + kind: MethodKind.Unary, + }, + /** + * Get a FineTuningModel + * + * @generated from rpc gooseai.FineTuningService.GetModel + */ + getModel: { + name: "GetModel", + I: GetModelRequest, + O: GetModelResponse, + kind: MethodKind.Unary, + }, + /** + * Update a FineTuningModel by id + * + * @generated from rpc gooseai.FineTuningService.UpdateModel + */ + updateModel: { + name: "UpdateModel", + I: UpdateModelRequest, + O: UpdateModelResponse, + kind: MethodKind.Unary, + }, + /** + * Delete a fine tuned model + * + * @generated from rpc gooseai.FineTuningService.DeleteModel + */ + deleteModel: { + name: "DeleteModel", + I: DeleteModelRequest, + O: DeleteModelResponse, + kind: MethodKind.Unary, + }, + /** + * Re-run training, does not create a new model + * + * @generated from rpc gooseai.FineTuningService.ResubmitModel + */ + resubmitModel: { + name: "ResubmitModel", + I: ResubmitModelRequest, + O: ResubmitModelResponse, + kind: MethodKind.Unary, + }, + /** + * List all the fine tuned models for an organization or user + * + * @generated from rpc gooseai.FineTuningService.ListModels + */ + listModels: { + name: "ListModels", + I: ListModelsRequest, + O: ListModelsResponse, + kind: MethodKind.Unary, + }, + } +}; + diff --git a/src/stability_api/platform/finetuning/finetuning_grpc.pb.go b/src/stability_api/platform/finetuning/finetuning_grpc.pb.go new file mode 100644 index 0000000..78255b6 --- /dev/null +++ b/src/stability_api/platform/finetuning/finetuning_grpc.pb.go @@ -0,0 +1,306 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: stability_api/platform/finetuning/finetuning.proto + +package finetuning + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + FineTuningService_CreateModel_FullMethodName = "/gooseai.FineTuningService/CreateModel" + FineTuningService_GetModel_FullMethodName = "/gooseai.FineTuningService/GetModel" + FineTuningService_UpdateModel_FullMethodName = "/gooseai.FineTuningService/UpdateModel" + FineTuningService_DeleteModel_FullMethodName = "/gooseai.FineTuningService/DeleteModel" + FineTuningService_ResubmitModel_FullMethodName = "/gooseai.FineTuningService/ResubmitModel" + FineTuningService_ListModels_FullMethodName = "/gooseai.FineTuningService/ListModels" +) + +// FineTuningServiceClient is the client API for FineTuningService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type FineTuningServiceClient interface { + // Create a new model and begin the fine tuning process + CreateModel(ctx context.Context, in *CreateModelRequest, opts ...grpc.CallOption) (*CreateModelResponse, error) + // Get a FineTuningModel + GetModel(ctx context.Context, in *GetModelRequest, opts ...grpc.CallOption) (*GetModelResponse, error) + // Update a FineTuningModel by id + UpdateModel(ctx context.Context, in *UpdateModelRequest, opts ...grpc.CallOption) (*UpdateModelResponse, error) + // Delete a fine tuned model + DeleteModel(ctx context.Context, in *DeleteModelRequest, opts ...grpc.CallOption) (*DeleteModelResponse, error) + // Re-run training, does not create a new model + ResubmitModel(ctx context.Context, in *ResubmitModelRequest, opts ...grpc.CallOption) (*ResubmitModelResponse, error) + // List all the fine tuned models for an organization or user + ListModels(ctx context.Context, in *ListModelsRequest, opts ...grpc.CallOption) (*ListModelsResponse, error) +} + +type fineTuningServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewFineTuningServiceClient(cc grpc.ClientConnInterface) FineTuningServiceClient { + return &fineTuningServiceClient{cc} +} + +func (c *fineTuningServiceClient) CreateModel(ctx context.Context, in *CreateModelRequest, opts ...grpc.CallOption) (*CreateModelResponse, error) { + out := new(CreateModelResponse) + err := c.cc.Invoke(ctx, FineTuningService_CreateModel_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *fineTuningServiceClient) GetModel(ctx context.Context, in *GetModelRequest, opts ...grpc.CallOption) (*GetModelResponse, error) { + out := new(GetModelResponse) + err := c.cc.Invoke(ctx, FineTuningService_GetModel_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *fineTuningServiceClient) UpdateModel(ctx context.Context, in *UpdateModelRequest, opts ...grpc.CallOption) (*UpdateModelResponse, error) { + out := new(UpdateModelResponse) + err := c.cc.Invoke(ctx, FineTuningService_UpdateModel_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *fineTuningServiceClient) DeleteModel(ctx context.Context, in *DeleteModelRequest, opts ...grpc.CallOption) (*DeleteModelResponse, error) { + out := new(DeleteModelResponse) + err := c.cc.Invoke(ctx, FineTuningService_DeleteModel_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *fineTuningServiceClient) ResubmitModel(ctx context.Context, in *ResubmitModelRequest, opts ...grpc.CallOption) (*ResubmitModelResponse, error) { + out := new(ResubmitModelResponse) + err := c.cc.Invoke(ctx, FineTuningService_ResubmitModel_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *fineTuningServiceClient) ListModels(ctx context.Context, in *ListModelsRequest, opts ...grpc.CallOption) (*ListModelsResponse, error) { + out := new(ListModelsResponse) + err := c.cc.Invoke(ctx, FineTuningService_ListModels_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// FineTuningServiceServer is the server API for FineTuningService service. +// All implementations must embed UnimplementedFineTuningServiceServer +// for forward compatibility +type FineTuningServiceServer interface { + // Create a new model and begin the fine tuning process + CreateModel(context.Context, *CreateModelRequest) (*CreateModelResponse, error) + // Get a FineTuningModel + GetModel(context.Context, *GetModelRequest) (*GetModelResponse, error) + // Update a FineTuningModel by id + UpdateModel(context.Context, *UpdateModelRequest) (*UpdateModelResponse, error) + // Delete a fine tuned model + DeleteModel(context.Context, *DeleteModelRequest) (*DeleteModelResponse, error) + // Re-run training, does not create a new model + ResubmitModel(context.Context, *ResubmitModelRequest) (*ResubmitModelResponse, error) + // List all the fine tuned models for an organization or user + ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error) + mustEmbedUnimplementedFineTuningServiceServer() +} + +// UnimplementedFineTuningServiceServer must be embedded to have forward compatible implementations. +type UnimplementedFineTuningServiceServer struct { +} + +func (UnimplementedFineTuningServiceServer) CreateModel(context.Context, *CreateModelRequest) (*CreateModelResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateModel not implemented") +} +func (UnimplementedFineTuningServiceServer) GetModel(context.Context, *GetModelRequest) (*GetModelResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetModel not implemented") +} +func (UnimplementedFineTuningServiceServer) UpdateModel(context.Context, *UpdateModelRequest) (*UpdateModelResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateModel not implemented") +} +func (UnimplementedFineTuningServiceServer) DeleteModel(context.Context, *DeleteModelRequest) (*DeleteModelResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteModel not implemented") +} +func (UnimplementedFineTuningServiceServer) ResubmitModel(context.Context, *ResubmitModelRequest) (*ResubmitModelResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ResubmitModel not implemented") +} +func (UnimplementedFineTuningServiceServer) ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListModels not implemented") +} +func (UnimplementedFineTuningServiceServer) mustEmbedUnimplementedFineTuningServiceServer() {} + +// UnsafeFineTuningServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to FineTuningServiceServer will +// result in compilation errors. +type UnsafeFineTuningServiceServer interface { + mustEmbedUnimplementedFineTuningServiceServer() +} + +func RegisterFineTuningServiceServer(s grpc.ServiceRegistrar, srv FineTuningServiceServer) { + s.RegisterService(&FineTuningService_ServiceDesc, srv) +} + +func _FineTuningService_CreateModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateModelRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FineTuningServiceServer).CreateModel(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: FineTuningService_CreateModel_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FineTuningServiceServer).CreateModel(ctx, req.(*CreateModelRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _FineTuningService_GetModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetModelRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FineTuningServiceServer).GetModel(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: FineTuningService_GetModel_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FineTuningServiceServer).GetModel(ctx, req.(*GetModelRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _FineTuningService_UpdateModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateModelRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FineTuningServiceServer).UpdateModel(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: FineTuningService_UpdateModel_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FineTuningServiceServer).UpdateModel(ctx, req.(*UpdateModelRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _FineTuningService_DeleteModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteModelRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FineTuningServiceServer).DeleteModel(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: FineTuningService_DeleteModel_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FineTuningServiceServer).DeleteModel(ctx, req.(*DeleteModelRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _FineTuningService_ResubmitModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ResubmitModelRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FineTuningServiceServer).ResubmitModel(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: FineTuningService_ResubmitModel_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FineTuningServiceServer).ResubmitModel(ctx, req.(*ResubmitModelRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _FineTuningService_ListModels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListModelsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FineTuningServiceServer).ListModels(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: FineTuningService_ListModels_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FineTuningServiceServer).ListModels(ctx, req.(*ListModelsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// FineTuningService_ServiceDesc is the grpc.ServiceDesc for FineTuningService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var FineTuningService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gooseai.FineTuningService", + HandlerType: (*FineTuningServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateModel", + Handler: _FineTuningService_CreateModel_Handler, + }, + { + MethodName: "GetModel", + Handler: _FineTuningService_GetModel_Handler, + }, + { + MethodName: "UpdateModel", + Handler: _FineTuningService_UpdateModel_Handler, + }, + { + MethodName: "DeleteModel", + Handler: _FineTuningService_DeleteModel_Handler, + }, + { + MethodName: "ResubmitModel", + Handler: _FineTuningService_ResubmitModel_Handler, + }, + { + MethodName: "ListModels", + Handler: _FineTuningService_ListModels_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "stability_api/platform/finetuning/finetuning.proto", +} diff --git a/src/stability_api/platform/finetuning/finetuning_pb.d.ts b/src/stability_api/platform/finetuning/finetuning_pb.d.ts new file mode 100644 index 0000000..454df9a --- /dev/null +++ b/src/stability_api/platform/finetuning/finetuning_pb.d.ts @@ -0,0 +1,549 @@ +// @generated by protoc-gen-es v1.2.0 +// @generated from file stability_api/platform/finetuning/finetuning.proto (package gooseai, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Struct } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from enum gooseai.FineTuningMode + */ +export declare enum FineTuningMode { + /** + * No mode specified + * + * @generated from enum value: FINE_TUNING_MODE_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * Fine tuning a face model + * + * @generated from enum value: FINE_TUNING_MODE_FACE = 1; + */ + FACE = 1, + + /** + * Fine tuning a style model + * + * @generated from enum value: FINE_TUNING_MODE_STYLE = 2; + */ + STYLE = 2, + + /** + * Fine tuning an object model + * + * @generated from enum value: FINE_TUNING_MODE_OBJECT = 3; + */ + OBJECT = 3, +} + +/** + * @generated from enum gooseai.FineTuningStatus + */ +export declare enum FineTuningStatus { + /** + * Model not yet started + * + * @generated from enum value: FINE_TUNING_STATUS_NOT_STARTED = 0; + */ + NOT_STARTED = 0, + + /** + * Model is currently running + * + * @generated from enum value: FINE_TUNING_STATUS_RUNNING = 1; + */ + RUNNING = 1, + + /** + * Model has completed successfully + * + * @generated from enum value: FINE_TUNING_STATUS_COMPLETED = 2; + */ + COMPLETED = 2, + + /** + * Model has failed + * + * @generated from enum value: FINE_TUNING_STATUS_FAILED = 3; + */ + FAILED = 3, + + /** + * Model has been submitted + * + * @generated from enum value: FINE_TUNING_STATUS_SUBMITTED = 4; + */ + SUBMITTED = 4, +} + +/** + * @generated from message gooseai.FineTuningModel + */ +export declare class FineTuningModel extends Message { + /** + * ID of the model, UUIDv4 + * + * @generated from field: string id = 1; + */ + id: string; + + /** + * ID of user who created the model + * + * @generated from field: string user_id = 2; + */ + userId: string; + + /** + * a readable model name + * + * @generated from field: string name = 3; + */ + name: string; + + /** + * the mode of the model + * + * @generated from field: optional gooseai.FineTuningMode mode = 4; + */ + mode?: FineTuningMode; + + /** + * freeform text description of object, should only be set when mode is OBJECT + * + * @generated from field: optional string object_prompt = 5; + */ + objectPrompt?: string; + + /** + * project ID with assets to be used for fine tuning + * + * @generated from field: string project_id = 6; + */ + projectId: string; + + /** + * duration in seconds for how long the model took to train + * + * @generated from field: double duration = 7; + */ + duration: number; + + /** + * the current status of the model + * + * @generated from field: gooseai.FineTuningStatus status = 8; + */ + status: FineTuningStatus; + + /** + * the engineId of a fine-tuneable Stability model + * + * @generated from field: string engine_id = 9; + */ + engineId: string; + + /** + * If a model's training failed, this will contain the reason + * + * @generated from field: optional string failure_reason = 10; + */ + failureReason?: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "gooseai.FineTuningModel"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): FineTuningModel; + + static fromJson(jsonValue: JsonValue, options?: Partial): FineTuningModel; + + static fromJsonString(jsonString: string, options?: Partial): FineTuningModel; + + static equals(a: FineTuningModel | PlainMessage | undefined, b: FineTuningModel | PlainMessage | undefined): boolean; +} + +/** + * @generated from message gooseai.CreateModelRequest + */ +export declare class CreateModelRequest extends Message { + /** + * a readable model name + * + * @generated from field: string name = 1; + */ + name: string; + + /** + * the mode of the model + * + * @generated from field: optional gooseai.FineTuningMode mode = 2; + */ + mode?: FineTuningMode; + + /** + * freeform text description of object, should only be set when mode is OBJECT + * + * @generated from field: optional string object_prompt = 3; + */ + objectPrompt?: string; + + /** + * the project_id with assets to be used for fine tuning + * + * @generated from field: string project_id = 4; + */ + projectId: string; + + /** + * the engineId of an fine-tuneable Stability model + * + * @generated from field: string engine_id = 5; + */ + engineId: string; + + /** + * for development use + * + * @generated from field: optional google.protobuf.Struct extras = 2047; + */ + extras?: Struct; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "gooseai.CreateModelRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateModelRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateModelRequest; + + static fromJsonString(jsonString: string, options?: Partial): CreateModelRequest; + + static equals(a: CreateModelRequest | PlainMessage | undefined, b: CreateModelRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message gooseai.CreateModelResponse + */ +export declare class CreateModelResponse extends Message { + /** + * @generated from field: gooseai.FineTuningModel model = 1; + */ + model?: FineTuningModel; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "gooseai.CreateModelResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateModelResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateModelResponse; + + static fromJsonString(jsonString: string, options?: Partial): CreateModelResponse; + + static equals(a: CreateModelResponse | PlainMessage | undefined, b: CreateModelResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message gooseai.GetModelRequest + */ +export declare class GetModelRequest extends Message { + /** + * ID of the model + * + * @generated from field: string id = 1; + */ + id: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "gooseai.GetModelRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): GetModelRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): GetModelRequest; + + static fromJsonString(jsonString: string, options?: Partial): GetModelRequest; + + static equals(a: GetModelRequest | PlainMessage | undefined, b: GetModelRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message gooseai.GetModelResponse + */ +export declare class GetModelResponse extends Message { + /** + * @generated from field: gooseai.FineTuningModel model = 1; + */ + model?: FineTuningModel; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "gooseai.GetModelResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): GetModelResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): GetModelResponse; + + static fromJsonString(jsonString: string, options?: Partial): GetModelResponse; + + static equals(a: GetModelResponse | PlainMessage | undefined, b: GetModelResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message gooseai.UpdateModelRequest + */ +export declare class UpdateModelRequest extends Message { + /** + * the id of the model + * + * @generated from field: string id = 1; + */ + id: string; + + /** + * a readable model name + * + * @generated from field: optional string name = 2; + */ + name?: string; + + /** + * the mode of the model + * + * @generated from field: optional gooseai.FineTuningMode mode = 3; + */ + mode?: FineTuningMode; + + /** + * freeform text description of object, should only be set when mode is OBJECT + * + * @generated from field: optional string object_prompt = 4; + */ + objectPrompt?: string; + + /** + * the engineId of an fine-tuneable Stability model + * + * @generated from field: optional string engine_id = 5; + */ + engineId?: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "gooseai.UpdateModelRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): UpdateModelRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): UpdateModelRequest; + + static fromJsonString(jsonString: string, options?: Partial): UpdateModelRequest; + + static equals(a: UpdateModelRequest | PlainMessage | undefined, b: UpdateModelRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message gooseai.UpdateModelResponse + */ +export declare class UpdateModelResponse extends Message { + /** + * @generated from field: gooseai.FineTuningModel model = 1; + */ + model?: FineTuningModel; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "gooseai.UpdateModelResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): UpdateModelResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): UpdateModelResponse; + + static fromJsonString(jsonString: string, options?: Partial): UpdateModelResponse; + + static equals(a: UpdateModelResponse | PlainMessage | undefined, b: UpdateModelResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message gooseai.DeleteModelRequest + */ +export declare class DeleteModelRequest extends Message { + /** + * ID of the model to delete + * + * @generated from field: string id = 1; + */ + id: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "gooseai.DeleteModelRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): DeleteModelRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): DeleteModelRequest; + + static fromJsonString(jsonString: string, options?: Partial): DeleteModelRequest; + + static equals(a: DeleteModelRequest | PlainMessage | undefined, b: DeleteModelRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message gooseai.DeleteModelResponse + */ +export declare class DeleteModelResponse extends Message { + /** + * @generated from field: gooseai.FineTuningModel model = 1; + */ + model?: FineTuningModel; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "gooseai.DeleteModelResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): DeleteModelResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): DeleteModelResponse; + + static fromJsonString(jsonString: string, options?: Partial): DeleteModelResponse; + + static equals(a: DeleteModelResponse | PlainMessage | undefined, b: DeleteModelResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message gooseai.ResubmitModelRequest + */ +export declare class ResubmitModelRequest extends Message { + /** + * ID of the model to resubmit + * + * @generated from field: string id = 1; + */ + id: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "gooseai.ResubmitModelRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): ResubmitModelRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): ResubmitModelRequest; + + static fromJsonString(jsonString: string, options?: Partial): ResubmitModelRequest; + + static equals(a: ResubmitModelRequest | PlainMessage | undefined, b: ResubmitModelRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message gooseai.ResubmitModelResponse + */ +export declare class ResubmitModelResponse extends Message { + /** + * @generated from field: gooseai.FineTuningModel model = 1; + */ + model?: FineTuningModel; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "gooseai.ResubmitModelResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): ResubmitModelResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): ResubmitModelResponse; + + static fromJsonString(jsonString: string, options?: Partial): ResubmitModelResponse; + + static equals(a: ResubmitModelResponse | PlainMessage | undefined, b: ResubmitModelResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message gooseai.ListModelsRequest + */ +export declare class ListModelsRequest extends Message { + /** + * @generated from oneof gooseai.ListModelsRequest.id + */ + id: { + /** + * the organization's ID + * + * @generated from field: string org_id = 1; + */ + value: string; + case: "orgId"; + } | { + /** + * or the user's ID + * + * @generated from field: string user_id = 2; + */ + value: string; + case: "userId"; + } | { case: undefined; value?: undefined }; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "gooseai.ListModelsRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): ListModelsRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): ListModelsRequest; + + static fromJsonString(jsonString: string, options?: Partial): ListModelsRequest; + + static equals(a: ListModelsRequest | PlainMessage | undefined, b: ListModelsRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message gooseai.ListModelsResponse + */ +export declare class ListModelsResponse extends Message { + /** + * the list of models + * + * @generated from field: repeated gooseai.FineTuningModel models = 1; + */ + models: FineTuningModel[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "gooseai.ListModelsResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): ListModelsResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): ListModelsResponse; + + static fromJsonString(jsonString: string, options?: Partial): ListModelsResponse; + + static equals(a: ListModelsResponse | PlainMessage | undefined, b: ListModelsResponse | PlainMessage | undefined): boolean; +} + diff --git a/src/stability_api/platform/finetuning/finetuning_pb.js b/src/stability_api/platform/finetuning/finetuning_pb.js new file mode 100644 index 0000000..b82f537 --- /dev/null +++ b/src/stability_api/platform/finetuning/finetuning_pb.js @@ -0,0 +1,183 @@ +// @generated by protoc-gen-es v1.2.0 +// @generated from file stability_api/platform/finetuning/finetuning.proto (package gooseai, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3, Struct } from "@bufbuild/protobuf"; + +/** + * @generated from enum gooseai.FineTuningMode + */ +export const FineTuningMode = proto3.makeEnum( + "gooseai.FineTuningMode", + [ + {no: 0, name: "FINE_TUNING_MODE_UNSPECIFIED", localName: "UNSPECIFIED"}, + {no: 1, name: "FINE_TUNING_MODE_FACE", localName: "FACE"}, + {no: 2, name: "FINE_TUNING_MODE_STYLE", localName: "STYLE"}, + {no: 3, name: "FINE_TUNING_MODE_OBJECT", localName: "OBJECT"}, + ], +); + +/** + * @generated from enum gooseai.FineTuningStatus + */ +export const FineTuningStatus = proto3.makeEnum( + "gooseai.FineTuningStatus", + [ + {no: 0, name: "FINE_TUNING_STATUS_NOT_STARTED", localName: "NOT_STARTED"}, + {no: 1, name: "FINE_TUNING_STATUS_RUNNING", localName: "RUNNING"}, + {no: 2, name: "FINE_TUNING_STATUS_COMPLETED", localName: "COMPLETED"}, + {no: 3, name: "FINE_TUNING_STATUS_FAILED", localName: "FAILED"}, + {no: 4, name: "FINE_TUNING_STATUS_SUBMITTED", localName: "SUBMITTED"}, + ], +); + +/** + * @generated from message gooseai.FineTuningModel + */ +export const FineTuningModel = proto3.makeMessageType( + "gooseai.FineTuningModel", + () => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "mode", kind: "enum", T: proto3.getEnumType(FineTuningMode), opt: true }, + { no: 5, name: "object_prompt", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 6, name: "project_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, + { no: 8, name: "status", kind: "enum", T: proto3.getEnumType(FineTuningStatus) }, + { no: 9, name: "engine_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "failure_reason", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + ], +); + +/** + * @generated from message gooseai.CreateModelRequest + */ +export const CreateModelRequest = proto3.makeMessageType( + "gooseai.CreateModelRequest", + () => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "mode", kind: "enum", T: proto3.getEnumType(FineTuningMode), opt: true }, + { no: 3, name: "object_prompt", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 4, name: "project_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "engine_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2047, name: "extras", kind: "message", T: Struct, opt: true }, + ], +); + +/** + * @generated from message gooseai.CreateModelResponse + */ +export const CreateModelResponse = proto3.makeMessageType( + "gooseai.CreateModelResponse", + () => [ + { no: 1, name: "model", kind: "message", T: FineTuningModel }, + ], +); + +/** + * @generated from message gooseai.GetModelRequest + */ +export const GetModelRequest = proto3.makeMessageType( + "gooseai.GetModelRequest", + () => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message gooseai.GetModelResponse + */ +export const GetModelResponse = proto3.makeMessageType( + "gooseai.GetModelResponse", + () => [ + { no: 1, name: "model", kind: "message", T: FineTuningModel }, + ], +); + +/** + * @generated from message gooseai.UpdateModelRequest + */ +export const UpdateModelRequest = proto3.makeMessageType( + "gooseai.UpdateModelRequest", + () => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 3, name: "mode", kind: "enum", T: proto3.getEnumType(FineTuningMode), opt: true }, + { no: 4, name: "object_prompt", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 5, name: "engine_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + ], +); + +/** + * @generated from message gooseai.UpdateModelResponse + */ +export const UpdateModelResponse = proto3.makeMessageType( + "gooseai.UpdateModelResponse", + () => [ + { no: 1, name: "model", kind: "message", T: FineTuningModel }, + ], +); + +/** + * @generated from message gooseai.DeleteModelRequest + */ +export const DeleteModelRequest = proto3.makeMessageType( + "gooseai.DeleteModelRequest", + () => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message gooseai.DeleteModelResponse + */ +export const DeleteModelResponse = proto3.makeMessageType( + "gooseai.DeleteModelResponse", + () => [ + { no: 1, name: "model", kind: "message", T: FineTuningModel }, + ], +); + +/** + * @generated from message gooseai.ResubmitModelRequest + */ +export const ResubmitModelRequest = proto3.makeMessageType( + "gooseai.ResubmitModelRequest", + () => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message gooseai.ResubmitModelResponse + */ +export const ResubmitModelResponse = proto3.makeMessageType( + "gooseai.ResubmitModelResponse", + () => [ + { no: 1, name: "model", kind: "message", T: FineTuningModel }, + ], +); + +/** + * @generated from message gooseai.ListModelsRequest + */ +export const ListModelsRequest = proto3.makeMessageType( + "gooseai.ListModelsRequest", + () => [ + { no: 1, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "id" }, + { no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "id" }, + ], +); + +/** + * @generated from message gooseai.ListModelsResponse + */ +export const ListModelsResponse = proto3.makeMessageType( + "gooseai.ListModelsResponse", + () => [ + { no: 1, name: "models", kind: "message", T: FineTuningModel, repeated: true }, + ], +); + diff --git a/src/stability_api/platform/finetuning/finetuning_pb2.py b/src/stability_api/platform/finetuning/finetuning_pb2.py new file mode 100644 index 0000000..b4f8650 --- /dev/null +++ b/src/stability_api/platform/finetuning/finetuning_pb2.py @@ -0,0 +1,58 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: stability_api/platform/finetuning/finetuning.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n2stability_api/platform/finetuning/finetuning.proto\x12\x07gooseai\x1a\x1cgoogle/protobuf/struct.proto\"\x8f\x03\n\x0f\x46ineTuningModel\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x17\n\x07user_id\x18\x02 \x01(\tR\x06userId\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\x30\n\x04mode\x18\x04 \x01(\x0e\x32\x17.gooseai.FineTuningModeH\x00R\x04mode\x88\x01\x01\x12(\n\robject_prompt\x18\x05 \x01(\tH\x01R\x0cobjectPrompt\x88\x01\x01\x12\x1d\n\nproject_id\x18\x06 \x01(\tR\tprojectId\x12\x1a\n\x08\x64uration\x18\x07 \x01(\x01R\x08\x64uration\x12\x31\n\x06status\x18\x08 \x01(\x0e\x32\x19.gooseai.FineTuningStatusR\x06status\x12\x1b\n\tengine_id\x18\t \x01(\tR\x08\x65ngineId\x12*\n\x0e\x66\x61ilure_reason\x18\n \x01(\tH\x02R\rfailureReason\x88\x01\x01\x42\x07\n\x05_modeB\x10\n\x0e_object_promptB\x11\n\x0f_failure_reason\"\x9d\x02\n\x12\x43reateModelRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x30\n\x04mode\x18\x02 \x01(\x0e\x32\x17.gooseai.FineTuningModeH\x00R\x04mode\x88\x01\x01\x12(\n\robject_prompt\x18\x03 \x01(\tH\x01R\x0cobjectPrompt\x88\x01\x01\x12\x1d\n\nproject_id\x18\x04 \x01(\tR\tprojectId\x12\x1b\n\tengine_id\x18\x05 \x01(\tR\x08\x65ngineId\x12\x35\n\x06\x65xtras\x18\xff\x0f \x01(\x0b\x32\x17.google.protobuf.StructH\x02R\x06\x65xtras\x88\x01\x01\x42\x07\n\x05_modeB\x10\n\x0e_object_promptB\t\n\x07_extras\"E\n\x13\x43reateModelResponse\x12.\n\x05model\x18\x01 \x01(\x0b\x32\x18.gooseai.FineTuningModelR\x05model\"!\n\x0fGetModelRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"B\n\x10GetModelResponse\x12.\n\x05model\x18\x01 \x01(\x0b\x32\x18.gooseai.FineTuningModelR\x05model\"\xed\x01\n\x12UpdateModelRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x17\n\x04name\x18\x02 \x01(\tH\x00R\x04name\x88\x01\x01\x12\x30\n\x04mode\x18\x03 \x01(\x0e\x32\x17.gooseai.FineTuningModeH\x01R\x04mode\x88\x01\x01\x12(\n\robject_prompt\x18\x04 \x01(\tH\x02R\x0cobjectPrompt\x88\x01\x01\x12 \n\tengine_id\x18\x05 \x01(\tH\x03R\x08\x65ngineId\x88\x01\x01\x42\x07\n\x05_nameB\x07\n\x05_modeB\x10\n\x0e_object_promptB\x0c\n\n_engine_id\"E\n\x13UpdateModelResponse\x12.\n\x05model\x18\x01 \x01(\x0b\x32\x18.gooseai.FineTuningModelR\x05model\"$\n\x12\x44\x65leteModelRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"E\n\x13\x44\x65leteModelResponse\x12.\n\x05model\x18\x01 \x01(\x0b\x32\x18.gooseai.FineTuningModelR\x05model\"&\n\x14ResubmitModelRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"G\n\x15ResubmitModelResponse\x12.\n\x05model\x18\x01 \x01(\x0b\x32\x18.gooseai.FineTuningModelR\x05model\"M\n\x11ListModelsRequest\x12\x17\n\x06org_id\x18\x01 \x01(\tH\x00R\x05orgId\x12\x19\n\x07user_id\x18\x02 \x01(\tH\x00R\x06userIdB\x04\n\x02id\"F\n\x12ListModelsResponse\x12\x30\n\x06models\x18\x01 \x03(\x0b\x32\x18.gooseai.FineTuningModelR\x06models*\x86\x01\n\x0e\x46ineTuningMode\x12 \n\x1c\x46INE_TUNING_MODE_UNSPECIFIED\x10\x00\x12\x19\n\x15\x46INE_TUNING_MODE_FACE\x10\x01\x12\x1a\n\x16\x46INE_TUNING_MODE_STYLE\x10\x02\x12\x1b\n\x17\x46INE_TUNING_MODE_OBJECT\x10\x03*\xb9\x01\n\x10\x46ineTuningStatus\x12\"\n\x1e\x46INE_TUNING_STATUS_NOT_STARTED\x10\x00\x12\x1e\n\x1a\x46INE_TUNING_STATUS_RUNNING\x10\x01\x12 \n\x1c\x46INE_TUNING_STATUS_COMPLETED\x10\x02\x12\x1d\n\x19\x46INE_TUNING_STATUS_FAILED\x10\x03\x12 \n\x1c\x46INE_TUNING_STATUS_SUBMITTED\x10\x04\x32\xc9\x03\n\x11\x46ineTuningService\x12H\n\x0b\x43reateModel\x12\x1b.gooseai.CreateModelRequest\x1a\x1c.gooseai.CreateModelResponse\x12?\n\x08GetModel\x12\x18.gooseai.GetModelRequest\x1a\x19.gooseai.GetModelResponse\x12H\n\x0bUpdateModel\x12\x1b.gooseai.UpdateModelRequest\x1a\x1c.gooseai.UpdateModelResponse\x12H\n\x0b\x44\x65leteModel\x12\x1b.gooseai.DeleteModelRequest\x1a\x1c.gooseai.DeleteModelResponse\x12N\n\rResubmitModel\x12\x1d.gooseai.ResubmitModelRequest\x1a\x1e.gooseai.ResubmitModelResponse\x12\x45\n\nListModels\x12\x1a.gooseai.ListModelsRequest\x1a\x1b.gooseai.ListModelsResponseB\x95\x01\n\x0b\x63om.gooseaiB\x0f\x46inetuningProtoP\x01Z9github.com/stability-ai/api-interfaces/gooseai/finetuning\xa2\x02\x03GXX\xaa\x02\x07Gooseai\xca\x02\x07Gooseai\xe2\x02\x13Gooseai\\GPBMetadata\xea\x02\x07Gooseaib\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'stability_api.platform.finetuning.finetuning_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\013com.gooseaiB\017FinetuningProtoP\001Z9github.com/stability-ai/api-interfaces/gooseai/finetuning\242\002\003GXX\252\002\007Gooseai\312\002\007Gooseai\342\002\023Gooseai\\GPBMetadata\352\002\007Gooseai' + _globals['_FINETUNINGMODE']._serialized_start=1642 + _globals['_FINETUNINGMODE']._serialized_end=1776 + _globals['_FINETUNINGSTATUS']._serialized_start=1779 + _globals['_FINETUNINGSTATUS']._serialized_end=1964 + _globals['_FINETUNINGMODEL']._serialized_start=94 + _globals['_FINETUNINGMODEL']._serialized_end=493 + _globals['_CREATEMODELREQUEST']._serialized_start=496 + _globals['_CREATEMODELREQUEST']._serialized_end=781 + _globals['_CREATEMODELRESPONSE']._serialized_start=783 + _globals['_CREATEMODELRESPONSE']._serialized_end=852 + _globals['_GETMODELREQUEST']._serialized_start=854 + _globals['_GETMODELREQUEST']._serialized_end=887 + _globals['_GETMODELRESPONSE']._serialized_start=889 + _globals['_GETMODELRESPONSE']._serialized_end=955 + _globals['_UPDATEMODELREQUEST']._serialized_start=958 + _globals['_UPDATEMODELREQUEST']._serialized_end=1195 + _globals['_UPDATEMODELRESPONSE']._serialized_start=1197 + _globals['_UPDATEMODELRESPONSE']._serialized_end=1266 + _globals['_DELETEMODELREQUEST']._serialized_start=1268 + _globals['_DELETEMODELREQUEST']._serialized_end=1304 + _globals['_DELETEMODELRESPONSE']._serialized_start=1306 + _globals['_DELETEMODELRESPONSE']._serialized_end=1375 + _globals['_RESUBMITMODELREQUEST']._serialized_start=1377 + _globals['_RESUBMITMODELREQUEST']._serialized_end=1415 + _globals['_RESUBMITMODELRESPONSE']._serialized_start=1417 + _globals['_RESUBMITMODELRESPONSE']._serialized_end=1488 + _globals['_LISTMODELSREQUEST']._serialized_start=1490 + _globals['_LISTMODELSREQUEST']._serialized_end=1567 + _globals['_LISTMODELSRESPONSE']._serialized_start=1569 + _globals['_LISTMODELSRESPONSE']._serialized_end=1639 + _globals['_FINETUNINGSERVICE']._serialized_start=1967 + _globals['_FINETUNINGSERVICE']._serialized_end=2424 +# @@protoc_insertion_point(module_scope) diff --git a/src/stability_api/platform/finetuning/finetuning_pb2.pyi b/src/stability_api/platform/finetuning/finetuning_pb2.pyi new file mode 100644 index 0000000..7dc3ddd --- /dev/null +++ b/src/stability_api/platform/finetuning/finetuning_pb2.pyi @@ -0,0 +1,148 @@ +from google.protobuf import struct_pb2 as _struct_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class FineTuningMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + FINE_TUNING_MODE_UNSPECIFIED: _ClassVar[FineTuningMode] + FINE_TUNING_MODE_FACE: _ClassVar[FineTuningMode] + FINE_TUNING_MODE_STYLE: _ClassVar[FineTuningMode] + FINE_TUNING_MODE_OBJECT: _ClassVar[FineTuningMode] + +class FineTuningStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + FINE_TUNING_STATUS_NOT_STARTED: _ClassVar[FineTuningStatus] + FINE_TUNING_STATUS_RUNNING: _ClassVar[FineTuningStatus] + FINE_TUNING_STATUS_COMPLETED: _ClassVar[FineTuningStatus] + FINE_TUNING_STATUS_FAILED: _ClassVar[FineTuningStatus] + FINE_TUNING_STATUS_SUBMITTED: _ClassVar[FineTuningStatus] +FINE_TUNING_MODE_UNSPECIFIED: FineTuningMode +FINE_TUNING_MODE_FACE: FineTuningMode +FINE_TUNING_MODE_STYLE: FineTuningMode +FINE_TUNING_MODE_OBJECT: FineTuningMode +FINE_TUNING_STATUS_NOT_STARTED: FineTuningStatus +FINE_TUNING_STATUS_RUNNING: FineTuningStatus +FINE_TUNING_STATUS_COMPLETED: FineTuningStatus +FINE_TUNING_STATUS_FAILED: FineTuningStatus +FINE_TUNING_STATUS_SUBMITTED: FineTuningStatus + +class FineTuningModel(_message.Message): + __slots__ = ["id", "user_id", "name", "mode", "object_prompt", "project_id", "duration", "status", "engine_id", "failure_reason"] + ID_FIELD_NUMBER: _ClassVar[int] + USER_ID_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + MODE_FIELD_NUMBER: _ClassVar[int] + OBJECT_PROMPT_FIELD_NUMBER: _ClassVar[int] + PROJECT_ID_FIELD_NUMBER: _ClassVar[int] + DURATION_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + ENGINE_ID_FIELD_NUMBER: _ClassVar[int] + FAILURE_REASON_FIELD_NUMBER: _ClassVar[int] + id: str + user_id: str + name: str + mode: FineTuningMode + object_prompt: str + project_id: str + duration: float + status: FineTuningStatus + engine_id: str + failure_reason: str + def __init__(self, id: _Optional[str] = ..., user_id: _Optional[str] = ..., name: _Optional[str] = ..., mode: _Optional[_Union[FineTuningMode, str]] = ..., object_prompt: _Optional[str] = ..., project_id: _Optional[str] = ..., duration: _Optional[float] = ..., status: _Optional[_Union[FineTuningStatus, str]] = ..., engine_id: _Optional[str] = ..., failure_reason: _Optional[str] = ...) -> None: ... + +class CreateModelRequest(_message.Message): + __slots__ = ["name", "mode", "object_prompt", "project_id", "engine_id", "extras"] + NAME_FIELD_NUMBER: _ClassVar[int] + MODE_FIELD_NUMBER: _ClassVar[int] + OBJECT_PROMPT_FIELD_NUMBER: _ClassVar[int] + PROJECT_ID_FIELD_NUMBER: _ClassVar[int] + ENGINE_ID_FIELD_NUMBER: _ClassVar[int] + EXTRAS_FIELD_NUMBER: _ClassVar[int] + name: str + mode: FineTuningMode + object_prompt: str + project_id: str + engine_id: str + extras: _struct_pb2.Struct + def __init__(self, name: _Optional[str] = ..., mode: _Optional[_Union[FineTuningMode, str]] = ..., object_prompt: _Optional[str] = ..., project_id: _Optional[str] = ..., engine_id: _Optional[str] = ..., extras: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...) -> None: ... + +class CreateModelResponse(_message.Message): + __slots__ = ["model"] + MODEL_FIELD_NUMBER: _ClassVar[int] + model: FineTuningModel + def __init__(self, model: _Optional[_Union[FineTuningModel, _Mapping]] = ...) -> None: ... + +class GetModelRequest(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: str + def __init__(self, id: _Optional[str] = ...) -> None: ... + +class GetModelResponse(_message.Message): + __slots__ = ["model"] + MODEL_FIELD_NUMBER: _ClassVar[int] + model: FineTuningModel + def __init__(self, model: _Optional[_Union[FineTuningModel, _Mapping]] = ...) -> None: ... + +class UpdateModelRequest(_message.Message): + __slots__ = ["id", "name", "mode", "object_prompt", "engine_id"] + ID_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + MODE_FIELD_NUMBER: _ClassVar[int] + OBJECT_PROMPT_FIELD_NUMBER: _ClassVar[int] + ENGINE_ID_FIELD_NUMBER: _ClassVar[int] + id: str + name: str + mode: FineTuningMode + object_prompt: str + engine_id: str + def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., mode: _Optional[_Union[FineTuningMode, str]] = ..., object_prompt: _Optional[str] = ..., engine_id: _Optional[str] = ...) -> None: ... + +class UpdateModelResponse(_message.Message): + __slots__ = ["model"] + MODEL_FIELD_NUMBER: _ClassVar[int] + model: FineTuningModel + def __init__(self, model: _Optional[_Union[FineTuningModel, _Mapping]] = ...) -> None: ... + +class DeleteModelRequest(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: str + def __init__(self, id: _Optional[str] = ...) -> None: ... + +class DeleteModelResponse(_message.Message): + __slots__ = ["model"] + MODEL_FIELD_NUMBER: _ClassVar[int] + model: FineTuningModel + def __init__(self, model: _Optional[_Union[FineTuningModel, _Mapping]] = ...) -> None: ... + +class ResubmitModelRequest(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: str + def __init__(self, id: _Optional[str] = ...) -> None: ... + +class ResubmitModelResponse(_message.Message): + __slots__ = ["model"] + MODEL_FIELD_NUMBER: _ClassVar[int] + model: FineTuningModel + def __init__(self, model: _Optional[_Union[FineTuningModel, _Mapping]] = ...) -> None: ... + +class ListModelsRequest(_message.Message): + __slots__ = ["org_id", "user_id"] + ORG_ID_FIELD_NUMBER: _ClassVar[int] + USER_ID_FIELD_NUMBER: _ClassVar[int] + org_id: str + user_id: str + def __init__(self, org_id: _Optional[str] = ..., user_id: _Optional[str] = ...) -> None: ... + +class ListModelsResponse(_message.Message): + __slots__ = ["models"] + MODELS_FIELD_NUMBER: _ClassVar[int] + models: _containers.RepeatedCompositeFieldContainer[FineTuningModel] + def __init__(self, models: _Optional[_Iterable[_Union[FineTuningModel, _Mapping]]] = ...) -> None: ... diff --git a/src/stability_api/platform/finetuning/finetuning_pb2_grpc.py b/src/stability_api/platform/finetuning/finetuning_pb2_grpc.py new file mode 100644 index 0000000..0f079d5 --- /dev/null +++ b/src/stability_api/platform/finetuning/finetuning_pb2_grpc.py @@ -0,0 +1,237 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from stability_api.platform.finetuning import finetuning_pb2 as stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2 + + +class FineTuningServiceStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateModel = channel.unary_unary( + '/gooseai.FineTuningService/CreateModel', + request_serializer=stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.CreateModelRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.CreateModelResponse.FromString, + ) + self.GetModel = channel.unary_unary( + '/gooseai.FineTuningService/GetModel', + request_serializer=stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.GetModelRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.GetModelResponse.FromString, + ) + self.UpdateModel = channel.unary_unary( + '/gooseai.FineTuningService/UpdateModel', + request_serializer=stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.UpdateModelRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.UpdateModelResponse.FromString, + ) + self.DeleteModel = channel.unary_unary( + '/gooseai.FineTuningService/DeleteModel', + request_serializer=stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.DeleteModelRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.DeleteModelResponse.FromString, + ) + self.ResubmitModel = channel.unary_unary( + '/gooseai.FineTuningService/ResubmitModel', + request_serializer=stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.ResubmitModelRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.ResubmitModelResponse.FromString, + ) + self.ListModels = channel.unary_unary( + '/gooseai.FineTuningService/ListModels', + request_serializer=stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.ListModelsRequest.SerializeToString, + response_deserializer=stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.ListModelsResponse.FromString, + ) + + +class FineTuningServiceServicer(object): + """Missing associated documentation comment in .proto file.""" + + def CreateModel(self, request, context): + """Create a new model and begin the fine tuning process + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetModel(self, request, context): + """Get a FineTuningModel + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateModel(self, request, context): + """Update a FineTuningModel by id + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteModel(self, request, context): + """Delete a fine tuned model + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ResubmitModel(self, request, context): + """Re-run training, does not create a new model + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListModels(self, request, context): + """List all the fine tuned models for an organization or user + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_FineTuningServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateModel': grpc.unary_unary_rpc_method_handler( + servicer.CreateModel, + request_deserializer=stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.CreateModelRequest.FromString, + response_serializer=stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.CreateModelResponse.SerializeToString, + ), + 'GetModel': grpc.unary_unary_rpc_method_handler( + servicer.GetModel, + request_deserializer=stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.GetModelRequest.FromString, + response_serializer=stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.GetModelResponse.SerializeToString, + ), + 'UpdateModel': grpc.unary_unary_rpc_method_handler( + servicer.UpdateModel, + request_deserializer=stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.UpdateModelRequest.FromString, + response_serializer=stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.UpdateModelResponse.SerializeToString, + ), + 'DeleteModel': grpc.unary_unary_rpc_method_handler( + servicer.DeleteModel, + request_deserializer=stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.DeleteModelRequest.FromString, + response_serializer=stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.DeleteModelResponse.SerializeToString, + ), + 'ResubmitModel': grpc.unary_unary_rpc_method_handler( + servicer.ResubmitModel, + request_deserializer=stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.ResubmitModelRequest.FromString, + response_serializer=stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.ResubmitModelResponse.SerializeToString, + ), + 'ListModels': grpc.unary_unary_rpc_method_handler( + servicer.ListModels, + request_deserializer=stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.ListModelsRequest.FromString, + response_serializer=stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.ListModelsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'gooseai.FineTuningService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class FineTuningService(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def CreateModel(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/gooseai.FineTuningService/CreateModel', + stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.CreateModelRequest.SerializeToString, + stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.CreateModelResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetModel(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/gooseai.FineTuningService/GetModel', + stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.GetModelRequest.SerializeToString, + stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.GetModelResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateModel(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/gooseai.FineTuningService/UpdateModel', + stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.UpdateModelRequest.SerializeToString, + stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.UpdateModelResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteModel(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/gooseai.FineTuningService/DeleteModel', + stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.DeleteModelRequest.SerializeToString, + stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.DeleteModelResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ResubmitModel(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/gooseai.FineTuningService/ResubmitModel', + stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.ResubmitModelRequest.SerializeToString, + stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.ResubmitModelResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListModels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/gooseai.FineTuningService/ListModels', + stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.ListModelsRequest.SerializeToString, + stability__api_dot_platform_dot_finetuning_dot_finetuning__pb2.ListModelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/src/stability_api/platform/finetuning/finetuningconnect/finetuning.connect.go b/src/stability_api/platform/finetuning/finetuningconnect/finetuning.connect.go new file mode 100644 index 0000000..4216e8e --- /dev/null +++ b/src/stability_api/platform/finetuning/finetuningconnect/finetuning.connect.go @@ -0,0 +1,236 @@ +// Code generated by protoc-gen-connect-go. DO NOT EDIT. +// +// Source: stability_api/platform/finetuning/finetuning.proto + +package finetuningconnect + +import ( + context "context" + errors "errors" + connect_go "github.com/bufbuild/connect-go" + finetuning "github.com/stability-ai/api-interfaces/src/stability_api/platform/finetuning" + http "net/http" + strings "strings" +) + +// This is a compile-time assertion to ensure that this generated file and the connect package are +// compatible. If you get a compiler error that this constant is not defined, this code was +// generated with a version of connect newer than the one compiled into your binary. You can fix the +// problem by either regenerating this code with an older version of connect or updating the connect +// version compiled into your binary. +const _ = connect_go.IsAtLeastVersion0_1_0 + +const ( + // FineTuningServiceName is the fully-qualified name of the FineTuningService service. + FineTuningServiceName = "gooseai.FineTuningService" +) + +// These constants are the fully-qualified names of the RPCs defined in this package. They're +// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route. +// +// Note that these are different from the fully-qualified method names used by +// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to +// reflection-formatted method names, remove the leading slash and convert the remaining slash to a +// period. +const ( + // FineTuningServiceCreateModelProcedure is the fully-qualified name of the FineTuningService's + // CreateModel RPC. + FineTuningServiceCreateModelProcedure = "/gooseai.FineTuningService/CreateModel" + // FineTuningServiceGetModelProcedure is the fully-qualified name of the FineTuningService's + // GetModel RPC. + FineTuningServiceGetModelProcedure = "/gooseai.FineTuningService/GetModel" + // FineTuningServiceUpdateModelProcedure is the fully-qualified name of the FineTuningService's + // UpdateModel RPC. + FineTuningServiceUpdateModelProcedure = "/gooseai.FineTuningService/UpdateModel" + // FineTuningServiceDeleteModelProcedure is the fully-qualified name of the FineTuningService's + // DeleteModel RPC. + FineTuningServiceDeleteModelProcedure = "/gooseai.FineTuningService/DeleteModel" + // FineTuningServiceResubmitModelProcedure is the fully-qualified name of the FineTuningService's + // ResubmitModel RPC. + FineTuningServiceResubmitModelProcedure = "/gooseai.FineTuningService/ResubmitModel" + // FineTuningServiceListModelsProcedure is the fully-qualified name of the FineTuningService's + // ListModels RPC. + FineTuningServiceListModelsProcedure = "/gooseai.FineTuningService/ListModels" +) + +// FineTuningServiceClient is a client for the gooseai.FineTuningService service. +type FineTuningServiceClient interface { + // Create a new model and begin the fine tuning process + CreateModel(context.Context, *connect_go.Request[finetuning.CreateModelRequest]) (*connect_go.Response[finetuning.CreateModelResponse], error) + // Get a FineTuningModel + GetModel(context.Context, *connect_go.Request[finetuning.GetModelRequest]) (*connect_go.Response[finetuning.GetModelResponse], error) + // Update a FineTuningModel by id + UpdateModel(context.Context, *connect_go.Request[finetuning.UpdateModelRequest]) (*connect_go.Response[finetuning.UpdateModelResponse], error) + // Delete a fine tuned model + DeleteModel(context.Context, *connect_go.Request[finetuning.DeleteModelRequest]) (*connect_go.Response[finetuning.DeleteModelResponse], error) + // Re-run training, does not create a new model + ResubmitModel(context.Context, *connect_go.Request[finetuning.ResubmitModelRequest]) (*connect_go.Response[finetuning.ResubmitModelResponse], error) + // List all the fine tuned models for an organization or user + ListModels(context.Context, *connect_go.Request[finetuning.ListModelsRequest]) (*connect_go.Response[finetuning.ListModelsResponse], error) +} + +// NewFineTuningServiceClient constructs a client for the gooseai.FineTuningService service. By +// default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, +// and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the +// connect.WithGRPC() or connect.WithGRPCWeb() options. +// +// The URL supplied here should be the base URL for the Connect or gRPC server (for example, +// http://api.acme.com or https://acme.com/grpc). +func NewFineTuningServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) FineTuningServiceClient { + baseURL = strings.TrimRight(baseURL, "/") + return &fineTuningServiceClient{ + createModel: connect_go.NewClient[finetuning.CreateModelRequest, finetuning.CreateModelResponse]( + httpClient, + baseURL+FineTuningServiceCreateModelProcedure, + opts..., + ), + getModel: connect_go.NewClient[finetuning.GetModelRequest, finetuning.GetModelResponse]( + httpClient, + baseURL+FineTuningServiceGetModelProcedure, + opts..., + ), + updateModel: connect_go.NewClient[finetuning.UpdateModelRequest, finetuning.UpdateModelResponse]( + httpClient, + baseURL+FineTuningServiceUpdateModelProcedure, + opts..., + ), + deleteModel: connect_go.NewClient[finetuning.DeleteModelRequest, finetuning.DeleteModelResponse]( + httpClient, + baseURL+FineTuningServiceDeleteModelProcedure, + opts..., + ), + resubmitModel: connect_go.NewClient[finetuning.ResubmitModelRequest, finetuning.ResubmitModelResponse]( + httpClient, + baseURL+FineTuningServiceResubmitModelProcedure, + opts..., + ), + listModels: connect_go.NewClient[finetuning.ListModelsRequest, finetuning.ListModelsResponse]( + httpClient, + baseURL+FineTuningServiceListModelsProcedure, + opts..., + ), + } +} + +// fineTuningServiceClient implements FineTuningServiceClient. +type fineTuningServiceClient struct { + createModel *connect_go.Client[finetuning.CreateModelRequest, finetuning.CreateModelResponse] + getModel *connect_go.Client[finetuning.GetModelRequest, finetuning.GetModelResponse] + updateModel *connect_go.Client[finetuning.UpdateModelRequest, finetuning.UpdateModelResponse] + deleteModel *connect_go.Client[finetuning.DeleteModelRequest, finetuning.DeleteModelResponse] + resubmitModel *connect_go.Client[finetuning.ResubmitModelRequest, finetuning.ResubmitModelResponse] + listModels *connect_go.Client[finetuning.ListModelsRequest, finetuning.ListModelsResponse] +} + +// CreateModel calls gooseai.FineTuningService.CreateModel. +func (c *fineTuningServiceClient) CreateModel(ctx context.Context, req *connect_go.Request[finetuning.CreateModelRequest]) (*connect_go.Response[finetuning.CreateModelResponse], error) { + return c.createModel.CallUnary(ctx, req) +} + +// GetModel calls gooseai.FineTuningService.GetModel. +func (c *fineTuningServiceClient) GetModel(ctx context.Context, req *connect_go.Request[finetuning.GetModelRequest]) (*connect_go.Response[finetuning.GetModelResponse], error) { + return c.getModel.CallUnary(ctx, req) +} + +// UpdateModel calls gooseai.FineTuningService.UpdateModel. +func (c *fineTuningServiceClient) UpdateModel(ctx context.Context, req *connect_go.Request[finetuning.UpdateModelRequest]) (*connect_go.Response[finetuning.UpdateModelResponse], error) { + return c.updateModel.CallUnary(ctx, req) +} + +// DeleteModel calls gooseai.FineTuningService.DeleteModel. +func (c *fineTuningServiceClient) DeleteModel(ctx context.Context, req *connect_go.Request[finetuning.DeleteModelRequest]) (*connect_go.Response[finetuning.DeleteModelResponse], error) { + return c.deleteModel.CallUnary(ctx, req) +} + +// ResubmitModel calls gooseai.FineTuningService.ResubmitModel. +func (c *fineTuningServiceClient) ResubmitModel(ctx context.Context, req *connect_go.Request[finetuning.ResubmitModelRequest]) (*connect_go.Response[finetuning.ResubmitModelResponse], error) { + return c.resubmitModel.CallUnary(ctx, req) +} + +// ListModels calls gooseai.FineTuningService.ListModels. +func (c *fineTuningServiceClient) ListModels(ctx context.Context, req *connect_go.Request[finetuning.ListModelsRequest]) (*connect_go.Response[finetuning.ListModelsResponse], error) { + return c.listModels.CallUnary(ctx, req) +} + +// FineTuningServiceHandler is an implementation of the gooseai.FineTuningService service. +type FineTuningServiceHandler interface { + // Create a new model and begin the fine tuning process + CreateModel(context.Context, *connect_go.Request[finetuning.CreateModelRequest]) (*connect_go.Response[finetuning.CreateModelResponse], error) + // Get a FineTuningModel + GetModel(context.Context, *connect_go.Request[finetuning.GetModelRequest]) (*connect_go.Response[finetuning.GetModelResponse], error) + // Update a FineTuningModel by id + UpdateModel(context.Context, *connect_go.Request[finetuning.UpdateModelRequest]) (*connect_go.Response[finetuning.UpdateModelResponse], error) + // Delete a fine tuned model + DeleteModel(context.Context, *connect_go.Request[finetuning.DeleteModelRequest]) (*connect_go.Response[finetuning.DeleteModelResponse], error) + // Re-run training, does not create a new model + ResubmitModel(context.Context, *connect_go.Request[finetuning.ResubmitModelRequest]) (*connect_go.Response[finetuning.ResubmitModelResponse], error) + // List all the fine tuned models for an organization or user + ListModels(context.Context, *connect_go.Request[finetuning.ListModelsRequest]) (*connect_go.Response[finetuning.ListModelsResponse], error) +} + +// NewFineTuningServiceHandler builds an HTTP handler from the service implementation. It returns +// the path on which to mount the handler and the handler itself. +// +// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf +// and JSON codecs. They also support gzip compression. +func NewFineTuningServiceHandler(svc FineTuningServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler) { + mux := http.NewServeMux() + mux.Handle(FineTuningServiceCreateModelProcedure, connect_go.NewUnaryHandler( + FineTuningServiceCreateModelProcedure, + svc.CreateModel, + opts..., + )) + mux.Handle(FineTuningServiceGetModelProcedure, connect_go.NewUnaryHandler( + FineTuningServiceGetModelProcedure, + svc.GetModel, + opts..., + )) + mux.Handle(FineTuningServiceUpdateModelProcedure, connect_go.NewUnaryHandler( + FineTuningServiceUpdateModelProcedure, + svc.UpdateModel, + opts..., + )) + mux.Handle(FineTuningServiceDeleteModelProcedure, connect_go.NewUnaryHandler( + FineTuningServiceDeleteModelProcedure, + svc.DeleteModel, + opts..., + )) + mux.Handle(FineTuningServiceResubmitModelProcedure, connect_go.NewUnaryHandler( + FineTuningServiceResubmitModelProcedure, + svc.ResubmitModel, + opts..., + )) + mux.Handle(FineTuningServiceListModelsProcedure, connect_go.NewUnaryHandler( + FineTuningServiceListModelsProcedure, + svc.ListModels, + opts..., + )) + return "/gooseai.FineTuningService/", mux +} + +// UnimplementedFineTuningServiceHandler returns CodeUnimplemented from all methods. +type UnimplementedFineTuningServiceHandler struct{} + +func (UnimplementedFineTuningServiceHandler) CreateModel(context.Context, *connect_go.Request[finetuning.CreateModelRequest]) (*connect_go.Response[finetuning.CreateModelResponse], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("gooseai.FineTuningService.CreateModel is not implemented")) +} + +func (UnimplementedFineTuningServiceHandler) GetModel(context.Context, *connect_go.Request[finetuning.GetModelRequest]) (*connect_go.Response[finetuning.GetModelResponse], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("gooseai.FineTuningService.GetModel is not implemented")) +} + +func (UnimplementedFineTuningServiceHandler) UpdateModel(context.Context, *connect_go.Request[finetuning.UpdateModelRequest]) (*connect_go.Response[finetuning.UpdateModelResponse], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("gooseai.FineTuningService.UpdateModel is not implemented")) +} + +func (UnimplementedFineTuningServiceHandler) DeleteModel(context.Context, *connect_go.Request[finetuning.DeleteModelRequest]) (*connect_go.Response[finetuning.DeleteModelResponse], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("gooseai.FineTuningService.DeleteModel is not implemented")) +} + +func (UnimplementedFineTuningServiceHandler) ResubmitModel(context.Context, *connect_go.Request[finetuning.ResubmitModelRequest]) (*connect_go.Response[finetuning.ResubmitModelResponse], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("gooseai.FineTuningService.ResubmitModel is not implemented")) +} + +func (UnimplementedFineTuningServiceHandler) ListModels(context.Context, *connect_go.Request[finetuning.ListModelsRequest]) (*connect_go.Response[finetuning.ListModelsResponse], error) { + return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("gooseai.FineTuningService.ListModels is not implemented")) +} diff --git a/src/stability_api/platform/generation/v1/generation.pb.go b/src/stability_api/platform/generation/v1/generation.pb.go index ceddd97..d46d6e2 100644 --- a/src/stability_api/platform/generation/v1/generation.pb.go +++ b/src/stability_api/platform/generation/v1/generation.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: stability_api/platform/generation/v1/generation.proto @@ -484,6 +484,109 @@ func (ModelArchitecture) EnumDescriptor() ([]byte, []int) { return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{7} } +type T2IAdapter int32 + +const ( + T2IAdapter_T2IADAPTER_NONE T2IAdapter = 0 + T2IAdapter_T2IADAPTER_SKETCH T2IAdapter = 1 // these are all compatible with SDXL. + T2IAdapter_T2IADAPTER_DEPTH T2IAdapter = 2 + T2IAdapter_T2IADAPTER_CANNY T2IAdapter = 3 +) + +// Enum value maps for T2IAdapter. +var ( + T2IAdapter_name = map[int32]string{ + 0: "T2IADAPTER_NONE", + 1: "T2IADAPTER_SKETCH", + 2: "T2IADAPTER_DEPTH", + 3: "T2IADAPTER_CANNY", + } + T2IAdapter_value = map[string]int32{ + "T2IADAPTER_NONE": 0, + "T2IADAPTER_SKETCH": 1, + "T2IADAPTER_DEPTH": 2, + "T2IADAPTER_CANNY": 3, + } +) + +func (x T2IAdapter) Enum() *T2IAdapter { + p := new(T2IAdapter) + *p = x + return p +} + +func (x T2IAdapter) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (T2IAdapter) Descriptor() protoreflect.EnumDescriptor { + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[8].Descriptor() +} + +func (T2IAdapter) Type() protoreflect.EnumType { + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[8] +} + +func (x T2IAdapter) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use T2IAdapter.Descriptor instead. +func (T2IAdapter) EnumDescriptor() ([]byte, []int) { + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{8} +} + +// If adapter_type is not None, then the user can choose what type of init_image to pass in: either an arbitrary image +// which will then be converted to a depth map, sketch, or canny edge for the sketch, depth and canny adapters respectively, +// or they can pass in their own depth map, sketch or canny edge. This field controls whether the init_image should +// be interpreted as an arbitrary image to be preprocessed ready for the t2i adapter, or whether it has already been +// preprocessed elsewhere +type T2IAdapterInit int32 + +const ( + T2IAdapterInit_T2IADAPTERINIT_IMAGE T2IAdapterInit = 0 // these are all compatible with SDXL. + T2IAdapterInit_T2IADAPTERINIT_ADAPTER_IMAGE T2IAdapterInit = 1 +) + +// Enum value maps for T2IAdapterInit. +var ( + T2IAdapterInit_name = map[int32]string{ + 0: "T2IADAPTERINIT_IMAGE", + 1: "T2IADAPTERINIT_ADAPTER_IMAGE", + } + T2IAdapterInit_value = map[string]int32{ + "T2IADAPTERINIT_IMAGE": 0, + "T2IADAPTERINIT_ADAPTER_IMAGE": 1, + } +) + +func (x T2IAdapterInit) Enum() *T2IAdapterInit { + p := new(T2IAdapterInit) + *p = x + return p +} + +func (x T2IAdapterInit) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (T2IAdapterInit) Descriptor() protoreflect.EnumDescriptor { + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[9].Descriptor() +} + +func (T2IAdapterInit) Type() protoreflect.EnumType { + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[9] +} + +func (x T2IAdapterInit) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use T2IAdapterInit.Descriptor instead. +func (T2IAdapterInit) EnumDescriptor() ([]byte, []int) { + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{9} +} + type Action int32 const ( @@ -526,11 +629,11 @@ func (x Action) String() string { } func (Action) Descriptor() protoreflect.EnumDescriptor { - return file_stability_api_platform_generation_v1_generation_proto_enumTypes[8].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[10].Descriptor() } func (Action) Type() protoreflect.EnumType { - return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[8] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[10] } func (x Action) Number() protoreflect.EnumNumber { @@ -539,7 +642,7 @@ func (x Action) Number() protoreflect.EnumNumber { // Deprecated: Use Action.Descriptor instead. func (Action) EnumDescriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{8} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{10} } type ClassifierMode int32 @@ -572,11 +675,11 @@ func (x ClassifierMode) String() string { } func (ClassifierMode) Descriptor() protoreflect.EnumDescriptor { - return file_stability_api_platform_generation_v1_generation_proto_enumTypes[9].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[11].Descriptor() } func (ClassifierMode) Type() protoreflect.EnumType { - return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[9] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[11] } func (x ClassifierMode) Number() protoreflect.EnumNumber { @@ -585,7 +688,7 @@ func (x ClassifierMode) Number() protoreflect.EnumNumber { // Deprecated: Use ClassifierMode.Descriptor instead. func (ClassifierMode) EnumDescriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{9} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{11} } type InterpolateMode int32 @@ -627,11 +730,11 @@ func (x InterpolateMode) String() string { } func (InterpolateMode) Descriptor() protoreflect.EnumDescriptor { - return file_stability_api_platform_generation_v1_generation_proto_enumTypes[10].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[12].Descriptor() } func (InterpolateMode) Type() protoreflect.EnumType { - return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[10] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[12] } func (x InterpolateMode) Number() protoreflect.EnumNumber { @@ -640,7 +743,7 @@ func (x InterpolateMode) Number() protoreflect.EnumNumber { // Deprecated: Use InterpolateMode.Descriptor instead. func (InterpolateMode) EnumDescriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{10} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{12} } type BorderMode int32 @@ -682,11 +785,11 @@ func (x BorderMode) String() string { } func (BorderMode) Descriptor() protoreflect.EnumDescriptor { - return file_stability_api_platform_generation_v1_generation_proto_enumTypes[11].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[13].Descriptor() } func (BorderMode) Type() protoreflect.EnumType { - return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[11] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[13] } func (x BorderMode) Number() protoreflect.EnumNumber { @@ -695,7 +798,7 @@ func (x BorderMode) Number() protoreflect.EnumNumber { // Deprecated: Use BorderMode.Descriptor instead. func (BorderMode) EnumDescriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{11} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{13} } type ColorMatchMode int32 @@ -731,11 +834,11 @@ func (x ColorMatchMode) String() string { } func (ColorMatchMode) Descriptor() protoreflect.EnumDescriptor { - return file_stability_api_platform_generation_v1_generation_proto_enumTypes[12].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[14].Descriptor() } func (ColorMatchMode) Type() protoreflect.EnumType { - return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[12] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[14] } func (x ColorMatchMode) Number() protoreflect.EnumNumber { @@ -744,7 +847,7 @@ func (x ColorMatchMode) Number() protoreflect.EnumNumber { // Deprecated: Use ColorMatchMode.Descriptor instead. func (ColorMatchMode) EnumDescriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{12} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{14} } type CameraType int32 @@ -777,11 +880,11 @@ func (x CameraType) String() string { } func (CameraType) Descriptor() protoreflect.EnumDescriptor { - return file_stability_api_platform_generation_v1_generation_proto_enumTypes[13].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[15].Descriptor() } func (CameraType) Type() protoreflect.EnumType { - return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[13] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[15] } func (x CameraType) Number() protoreflect.EnumNumber { @@ -790,7 +893,7 @@ func (x CameraType) Number() protoreflect.EnumNumber { // Deprecated: Use CameraType.Descriptor instead. func (CameraType) EnumDescriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{13} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{15} } type RenderMode int32 @@ -823,11 +926,11 @@ func (x RenderMode) String() string { } func (RenderMode) Descriptor() protoreflect.EnumDescriptor { - return file_stability_api_platform_generation_v1_generation_proto_enumTypes[14].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[16].Descriptor() } func (RenderMode) Type() protoreflect.EnumType { - return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[14] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[16] } func (x RenderMode) Number() protoreflect.EnumNumber { @@ -836,7 +939,7 @@ func (x RenderMode) Number() protoreflect.EnumNumber { // Deprecated: Use RenderMode.Descriptor instead. func (RenderMode) EnumDescriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{14} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{16} } type AssetAction int32 @@ -872,11 +975,11 @@ func (x AssetAction) String() string { } func (AssetAction) Descriptor() protoreflect.EnumDescriptor { - return file_stability_api_platform_generation_v1_generation_proto_enumTypes[15].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[17].Descriptor() } func (AssetAction) Type() protoreflect.EnumType { - return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[15] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[17] } func (x AssetAction) Number() protoreflect.EnumNumber { @@ -885,7 +988,7 @@ func (x AssetAction) Number() protoreflect.EnumNumber { // Deprecated: Use AssetAction.Descriptor instead. func (AssetAction) EnumDescriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{15} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{17} } // AssetUse defines how the asset is used within a project. This enum matches @@ -929,11 +1032,11 @@ func (x AssetUse) String() string { } func (AssetUse) Descriptor() protoreflect.EnumDescriptor { - return file_stability_api_platform_generation_v1_generation_proto_enumTypes[16].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[18].Descriptor() } func (AssetUse) Type() protoreflect.EnumType { - return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[16] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[18] } func (x AssetUse) Number() protoreflect.EnumNumber { @@ -942,7 +1045,7 @@ func (x AssetUse) Number() protoreflect.EnumNumber { // Deprecated: Use AssetUse.Descriptor instead. func (AssetUse) EnumDescriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{16} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{18} } type StageAction int32 @@ -978,11 +1081,11 @@ func (x StageAction) String() string { } func (StageAction) Descriptor() protoreflect.EnumDescriptor { - return file_stability_api_platform_generation_v1_generation_proto_enumTypes[17].Descriptor() + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[19].Descriptor() } func (StageAction) Type() protoreflect.EnumType { - return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[17] + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[19] } func (x StageAction) Number() protoreflect.EnumNumber { @@ -991,7 +1094,53 @@ func (x StageAction) Number() protoreflect.EnumNumber { // Deprecated: Use StageAction.Descriptor instead. func (StageAction) EnumDescriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{17} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{19} +} + +type CAIParameters_ModelMetadata int32 + +const ( + CAIParameters_MODEL_METADATA_UNSPECIFIED CAIParameters_ModelMetadata = 0 + CAIParameters_MODEL_METADATA_SIGN_WITH_ENGINE_ID CAIParameters_ModelMetadata = 1 +) + +// Enum value maps for CAIParameters_ModelMetadata. +var ( + CAIParameters_ModelMetadata_name = map[int32]string{ + 0: "MODEL_METADATA_UNSPECIFIED", + 1: "MODEL_METADATA_SIGN_WITH_ENGINE_ID", + } + CAIParameters_ModelMetadata_value = map[string]int32{ + "MODEL_METADATA_UNSPECIFIED": 0, + "MODEL_METADATA_SIGN_WITH_ENGINE_ID": 1, + } +) + +func (x CAIParameters_ModelMetadata) Enum() *CAIParameters_ModelMetadata { + p := new(CAIParameters_ModelMetadata) + *p = x + return p +} + +func (x CAIParameters_ModelMetadata) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (CAIParameters_ModelMetadata) Descriptor() protoreflect.EnumDescriptor { + return file_stability_api_platform_generation_v1_generation_proto_enumTypes[20].Descriptor() +} + +func (CAIParameters_ModelMetadata) Type() protoreflect.EnumType { + return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[20] +} + +func (x CAIParameters_ModelMetadata) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use CAIParameters_ModelMetadata.Descriptor instead. +func (CAIParameters_ModelMetadata) EnumDescriptor() ([]byte, []int) { + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{16, 0} } // Generally, a GPT BPE 16-bit token, paired with an optional string representation. @@ -2203,27 +2352,222 @@ func (*TransformType_Diffusion) isTransformType_Type() {} func (*TransformType_Upscaler) isTransformType_Type() {} +type T2IAdapterParameter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdapterType T2IAdapter `protobuf:"varint,1,opt,name=adapter_type,json=adapterType,proto3,enum=stabilityai.platformapis.generation.v1.T2IAdapter" json:"adapter_type,omitempty"` + AdapterStrength float32 `protobuf:"fixed32,2,opt,name=adapter_strength,json=adapterStrength,proto3" json:"adapter_strength,omitempty"` + AdapterInitType T2IAdapterInit `protobuf:"varint,3,opt,name=adapter_init_type,json=adapterInitType,proto3,enum=stabilityai.platformapis.generation.v1.T2IAdapterInit" json:"adapter_init_type,omitempty"` +} + +func (x *T2IAdapterParameter) Reset() { + *x = T2IAdapterParameter{} + if protoimpl.UnsafeEnabled { + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *T2IAdapterParameter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*T2IAdapterParameter) ProtoMessage() {} + +func (x *T2IAdapterParameter) ProtoReflect() protoreflect.Message { + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use T2IAdapterParameter.ProtoReflect.Descriptor instead. +func (*T2IAdapterParameter) Descriptor() ([]byte, []int) { + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{15} +} + +func (x *T2IAdapterParameter) GetAdapterType() T2IAdapter { + if x != nil { + return x.AdapterType + } + return T2IAdapter_T2IADAPTER_NONE +} + +func (x *T2IAdapterParameter) GetAdapterStrength() float32 { + if x != nil { + return x.AdapterStrength + } + return 0 +} + +func (x *T2IAdapterParameter) GetAdapterInitType() T2IAdapterInit { + if x != nil { + return x.AdapterInitType + } + return T2IAdapterInit_T2IADAPTERINIT_IMAGE +} + +type CAIParameters struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Parameters: + // + // *CAIParameters_ModelMetadata_ + Parameters isCAIParameters_Parameters `protobuf_oneof:"parameters"` +} + +func (x *CAIParameters) Reset() { + *x = CAIParameters{} + if protoimpl.UnsafeEnabled { + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CAIParameters) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CAIParameters) ProtoMessage() {} + +func (x *CAIParameters) ProtoReflect() protoreflect.Message { + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CAIParameters.ProtoReflect.Descriptor instead. +func (*CAIParameters) Descriptor() ([]byte, []int) { + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{16} +} + +func (m *CAIParameters) GetParameters() isCAIParameters_Parameters { + if m != nil { + return m.Parameters + } + return nil +} + +func (x *CAIParameters) GetModelMetadata() CAIParameters_ModelMetadata { + if x, ok := x.GetParameters().(*CAIParameters_ModelMetadata_); ok { + return x.ModelMetadata + } + return CAIParameters_MODEL_METADATA_UNSPECIFIED +} + +type isCAIParameters_Parameters interface { + isCAIParameters_Parameters() +} + +type CAIParameters_ModelMetadata_ struct { + ModelMetadata CAIParameters_ModelMetadata `protobuf:"varint,1,opt,name=model_metadata,json=modelMetadata,proto3,enum=stabilityai.platformapis.generation.v1.CAIParameters_ModelMetadata,oneof"` +} + +func (*CAIParameters_ModelMetadata_) isCAIParameters_Parameters() {} + +// FineTuningParameters specify which fine-tuned models to use for generation. +type FineTuningParameters struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The id of the fine-tuned model to generate content from. + // See FineTuningModel.id in finetuning.proto. + // Model Id is created upon invoking CreateFineTuningModel. + // When GetFineTuningModelStatus returns a FineTuningModelStatus of + // FINE_TUNING_MODEL_STATUS_COMPLETED, the model can be used + // for generating images. + ModelId string `protobuf:"bytes,1,opt,name=model_id,json=modelId,proto3" json:"model_id,omitempty"` + Weight *float32 `protobuf:"fixed32,2,opt,name=weight,proto3,oneof" json:"weight,omitempty"` // defaults to 1.0 +} + +func (x *FineTuningParameters) Reset() { + *x = FineTuningParameters{} + if protoimpl.UnsafeEnabled { + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FineTuningParameters) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FineTuningParameters) ProtoMessage() {} + +func (x *FineTuningParameters) ProtoReflect() protoreflect.Message { + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FineTuningParameters.ProtoReflect.Descriptor instead. +func (*FineTuningParameters) Descriptor() ([]byte, []int) { + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{17} +} + +func (x *FineTuningParameters) GetModelId() string { + if x != nil { + return x.ModelId + } + return "" +} + +func (x *FineTuningParameters) GetWeight() float32 { + if x != nil && x.Weight != nil { + return *x.Weight + } + return 0 +} + type ImageParameters struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Height *uint64 `protobuf:"varint,1,opt,name=height,proto3,oneof" json:"height,omitempty"` - Width *uint64 `protobuf:"varint,2,opt,name=width,proto3,oneof" json:"width,omitempty"` - Seed []uint32 `protobuf:"varint,3,rep,packed,name=seed,proto3" json:"seed,omitempty"` - Samples *uint64 `protobuf:"varint,4,opt,name=samples,proto3,oneof" json:"samples,omitempty"` - Steps *uint64 `protobuf:"varint,5,opt,name=steps,proto3,oneof" json:"steps,omitempty"` - Transform *TransformType `protobuf:"bytes,6,opt,name=transform,proto3,oneof" json:"transform,omitempty"` - Parameters []*StepParameter `protobuf:"bytes,7,rep,name=parameters,proto3" json:"parameters,omitempty"` - MaskedAreaInit *MaskedAreaInit `protobuf:"varint,8,opt,name=masked_area_init,json=maskedAreaInit,proto3,enum=stabilityai.platformapis.generation.v1.MaskedAreaInit,oneof" json:"masked_area_init,omitempty"` // defaults to MASKED_AREA_INIT_ZERO - WeightMethod *WeightMethod `protobuf:"varint,9,opt,name=weight_method,json=weightMethod,proto3,enum=stabilityai.platformapis.generation.v1.WeightMethod,oneof" json:"weight_method,omitempty"` //defaults to TEXT_ENCODER - Quantize *bool `protobuf:"varint,10,opt,name=quantize,proto3,oneof" json:"quantize,omitempty"` //defaults to true + Height *uint64 `protobuf:"varint,1,opt,name=height,proto3,oneof" json:"height,omitempty"` + Width *uint64 `protobuf:"varint,2,opt,name=width,proto3,oneof" json:"width,omitempty"` + Seed []uint32 `protobuf:"varint,3,rep,packed,name=seed,proto3" json:"seed,omitempty"` + Samples *uint64 `protobuf:"varint,4,opt,name=samples,proto3,oneof" json:"samples,omitempty"` + Steps *uint64 `protobuf:"varint,5,opt,name=steps,proto3,oneof" json:"steps,omitempty"` + Transform *TransformType `protobuf:"bytes,6,opt,name=transform,proto3,oneof" json:"transform,omitempty"` + Parameters []*StepParameter `protobuf:"bytes,7,rep,name=parameters,proto3" json:"parameters,omitempty"` + MaskedAreaInit *MaskedAreaInit `protobuf:"varint,8,opt,name=masked_area_init,json=maskedAreaInit,proto3,enum=stabilityai.platformapis.generation.v1.MaskedAreaInit,oneof" json:"masked_area_init,omitempty"` // defaults to MASKED_AREA_INIT_ZERO + WeightMethod *WeightMethod `protobuf:"varint,9,opt,name=weight_method,json=weightMethod,proto3,enum=stabilityai.platformapis.generation.v1.WeightMethod,oneof" json:"weight_method,omitempty"` //defaults to TEXT_ENCODER + Quantize *bool `protobuf:"varint,10,opt,name=quantize,proto3,oneof" json:"quantize,omitempty"` //defaults to true + CaiParameters *CAIParameters `protobuf:"bytes,11,opt,name=cai_parameters,json=caiParameters,proto3,oneof" json:"cai_parameters,omitempty"` // Set field to have image signed by C2PA + Adapter *T2IAdapterParameter `protobuf:"bytes,12,opt,name=adapter,proto3,oneof" json:"adapter,omitempty"` + FineTuningParameters []*FineTuningParameters `protobuf:"bytes,13,rep,name=fine_tuning_parameters,json=fineTuningParameters,proto3" json:"fine_tuning_parameters,omitempty"` // next available tag: 14 } func (x *ImageParameters) Reset() { *x = ImageParameters{} if protoimpl.UnsafeEnabled { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[15] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2236,7 +2580,7 @@ func (x *ImageParameters) String() string { func (*ImageParameters) ProtoMessage() {} func (x *ImageParameters) ProtoReflect() protoreflect.Message { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[15] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2249,7 +2593,7 @@ func (x *ImageParameters) ProtoReflect() protoreflect.Message { // Deprecated: Use ImageParameters.ProtoReflect.Descriptor instead. func (*ImageParameters) Descriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{15} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{18} } func (x *ImageParameters) GetHeight() uint64 { @@ -2322,6 +2666,27 @@ func (x *ImageParameters) GetQuantize() bool { return false } +func (x *ImageParameters) GetCaiParameters() *CAIParameters { + if x != nil { + return x.CaiParameters + } + return nil +} + +func (x *ImageParameters) GetAdapter() *T2IAdapterParameter { + if x != nil { + return x.Adapter + } + return nil +} + +func (x *ImageParameters) GetFineTuningParameters() []*FineTuningParameters { + if x != nil { + return x.FineTuningParameters + } + return nil +} + type ClassifierConcept struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2334,7 +2699,7 @@ type ClassifierConcept struct { func (x *ClassifierConcept) Reset() { *x = ClassifierConcept{} if protoimpl.UnsafeEnabled { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[16] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2347,7 +2712,7 @@ func (x *ClassifierConcept) String() string { func (*ClassifierConcept) ProtoMessage() {} func (x *ClassifierConcept) ProtoReflect() protoreflect.Message { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[16] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2360,7 +2725,7 @@ func (x *ClassifierConcept) ProtoReflect() protoreflect.Message { // Deprecated: Use ClassifierConcept.ProtoReflect.Descriptor instead. func (*ClassifierConcept) Descriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{16} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{19} } func (x *ClassifierConcept) GetConcept() string { @@ -2392,7 +2757,7 @@ type ClassifierCategory struct { func (x *ClassifierCategory) Reset() { *x = ClassifierCategory{} if protoimpl.UnsafeEnabled { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[17] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2405,7 +2770,7 @@ func (x *ClassifierCategory) String() string { func (*ClassifierCategory) ProtoMessage() {} func (x *ClassifierCategory) ProtoReflect() protoreflect.Message { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[17] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2418,7 +2783,7 @@ func (x *ClassifierCategory) ProtoReflect() protoreflect.Message { // Deprecated: Use ClassifierCategory.ProtoReflect.Descriptor instead. func (*ClassifierCategory) Descriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{17} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{20} } func (x *ClassifierCategory) GetName() string { @@ -2469,7 +2834,7 @@ type ClassifierParameters struct { func (x *ClassifierParameters) Reset() { *x = ClassifierParameters{} if protoimpl.UnsafeEnabled { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[18] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2482,7 +2847,7 @@ func (x *ClassifierParameters) String() string { func (*ClassifierParameters) ProtoMessage() {} func (x *ClassifierParameters) ProtoReflect() protoreflect.Message { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[18] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2495,7 +2860,7 @@ func (x *ClassifierParameters) ProtoReflect() protoreflect.Message { // Deprecated: Use ClassifierParameters.ProtoReflect.Descriptor instead. func (*ClassifierParameters) Descriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{18} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{21} } func (x *ClassifierParameters) GetCategories() []*ClassifierCategory { @@ -2532,7 +2897,7 @@ type InterpolateParameters struct { func (x *InterpolateParameters) Reset() { *x = InterpolateParameters{} if protoimpl.UnsafeEnabled { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[19] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2545,7 +2910,7 @@ func (x *InterpolateParameters) String() string { func (*InterpolateParameters) ProtoMessage() {} func (x *InterpolateParameters) ProtoReflect() protoreflect.Message { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[19] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2558,7 +2923,7 @@ func (x *InterpolateParameters) ProtoReflect() protoreflect.Message { // Deprecated: Use InterpolateParameters.ProtoReflect.Descriptor instead. func (*InterpolateParameters) Descriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{19} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{22} } func (x *InterpolateParameters) GetRatios() []float32 { @@ -2594,7 +2959,7 @@ type TransformColorAdjust struct { func (x *TransformColorAdjust) Reset() { *x = TransformColorAdjust{} if protoimpl.UnsafeEnabled { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[20] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2607,7 +2972,7 @@ func (x *TransformColorAdjust) String() string { func (*TransformColorAdjust) ProtoMessage() {} func (x *TransformColorAdjust) ProtoReflect() protoreflect.Message { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[20] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2620,7 +2985,7 @@ func (x *TransformColorAdjust) ProtoReflect() protoreflect.Message { // Deprecated: Use TransformColorAdjust.ProtoReflect.Descriptor instead. func (*TransformColorAdjust) Descriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{20} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{23} } func (x *TransformColorAdjust) GetBrightness() float32 { @@ -2699,7 +3064,7 @@ type TransformDepthCalc struct { func (x *TransformDepthCalc) Reset() { *x = TransformDepthCalc{} if protoimpl.UnsafeEnabled { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[21] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2712,7 +3077,7 @@ func (x *TransformDepthCalc) String() string { func (*TransformDepthCalc) ProtoMessage() {} func (x *TransformDepthCalc) ProtoReflect() protoreflect.Message { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[21] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2725,7 +3090,7 @@ func (x *TransformDepthCalc) ProtoReflect() protoreflect.Message { // Deprecated: Use TransformDepthCalc.ProtoReflect.Descriptor instead. func (*TransformDepthCalc) Descriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{21} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{24} } func (x *TransformDepthCalc) GetBlendWeight() float32 { @@ -2765,7 +3130,7 @@ type TransformMatrix struct { func (x *TransformMatrix) Reset() { *x = TransformMatrix{} if protoimpl.UnsafeEnabled { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[22] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2778,7 +3143,7 @@ func (x *TransformMatrix) String() string { func (*TransformMatrix) ProtoMessage() {} func (x *TransformMatrix) ProtoReflect() protoreflect.Message { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[22] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2791,7 +3156,7 @@ func (x *TransformMatrix) ProtoReflect() protoreflect.Message { // Deprecated: Use TransformMatrix.ProtoReflect.Descriptor instead. func (*TransformMatrix) Descriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{22} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{25} } func (x *TransformMatrix) GetData() []float32 { @@ -2816,7 +3181,7 @@ type TransformResample struct { func (x *TransformResample) Reset() { *x = TransformResample{} if protoimpl.UnsafeEnabled { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[23] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2829,7 +3194,7 @@ func (x *TransformResample) String() string { func (*TransformResample) ProtoMessage() {} func (x *TransformResample) ProtoReflect() protoreflect.Message { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[23] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2842,7 +3207,7 @@ func (x *TransformResample) ProtoReflect() protoreflect.Message { // Deprecated: Use TransformResample.ProtoReflect.Descriptor instead. func (*TransformResample) Descriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{23} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{26} } func (x *TransformResample) GetBorderMode() BorderMode { @@ -2894,7 +3259,7 @@ type CameraParameters struct { func (x *CameraParameters) Reset() { *x = CameraParameters{} if protoimpl.UnsafeEnabled { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[24] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2907,7 +3272,7 @@ func (x *CameraParameters) String() string { func (*CameraParameters) ProtoMessage() {} func (x *CameraParameters) ProtoReflect() protoreflect.Message { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[24] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2920,7 +3285,7 @@ func (x *CameraParameters) ProtoReflect() protoreflect.Message { // Deprecated: Use CameraParameters.ProtoReflect.Descriptor instead. func (*CameraParameters) Descriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{24} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{27} } func (x *CameraParameters) GetCameraType() CameraType { @@ -2965,7 +3330,7 @@ type TransformCameraPose struct { func (x *TransformCameraPose) Reset() { *x = TransformCameraPose{} if protoimpl.UnsafeEnabled { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[25] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2978,7 +3343,7 @@ func (x *TransformCameraPose) String() string { func (*TransformCameraPose) ProtoMessage() {} func (x *TransformCameraPose) ProtoReflect() protoreflect.Message { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[25] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2991,7 +3356,7 @@ func (x *TransformCameraPose) ProtoReflect() protoreflect.Message { // Deprecated: Use TransformCameraPose.ProtoReflect.Descriptor instead. func (*TransformCameraPose) Descriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{25} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{28} } func (x *TransformCameraPose) GetWorldToViewMatrix() *TransformMatrix { @@ -3039,7 +3404,7 @@ type TransformParameters struct { func (x *TransformParameters) Reset() { *x = TransformParameters{} if protoimpl.UnsafeEnabled { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[26] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3052,7 +3417,7 @@ func (x *TransformParameters) String() string { func (*TransformParameters) ProtoMessage() {} func (x *TransformParameters) ProtoReflect() protoreflect.Message { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[26] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3065,7 +3430,7 @@ func (x *TransformParameters) ProtoReflect() protoreflect.Message { // Deprecated: Use TransformParameters.ProtoReflect.Descriptor instead. func (*TransformParameters) Descriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{26} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{29} } func (m *TransformParameters) GetTransform() isTransformParameters_Transform { @@ -3144,7 +3509,7 @@ type AssetParameters struct { func (x *AssetParameters) Reset() { *x = AssetParameters{} if protoimpl.UnsafeEnabled { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[27] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3157,7 +3522,7 @@ func (x *AssetParameters) String() string { func (*AssetParameters) ProtoMessage() {} func (x *AssetParameters) ProtoReflect() protoreflect.Message { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[27] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3170,7 +3535,7 @@ func (x *AssetParameters) ProtoReflect() protoreflect.Message { // Deprecated: Use AssetParameters.ProtoReflect.Descriptor instead. func (*AssetParameters) Descriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{27} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{30} } func (x *AssetParameters) GetAction() AssetAction { @@ -3210,7 +3575,7 @@ type AnswerMeta struct { func (x *AnswerMeta) Reset() { *x = AnswerMeta{} if protoimpl.UnsafeEnabled { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[28] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3223,7 +3588,7 @@ func (x *AnswerMeta) String() string { func (*AnswerMeta) ProtoMessage() {} func (x *AnswerMeta) ProtoReflect() protoreflect.Message { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[28] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3236,7 +3601,7 @@ func (x *AnswerMeta) ProtoReflect() protoreflect.Message { // Deprecated: Use AnswerMeta.ProtoReflect.Descriptor instead. func (*AnswerMeta) Descriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{28} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{31} } func (x *AnswerMeta) GetGpuId() string { @@ -3285,7 +3650,7 @@ type Answer struct { func (x *Answer) Reset() { *x = Answer{} if protoimpl.UnsafeEnabled { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[29] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3298,7 +3663,7 @@ func (x *Answer) String() string { func (*Answer) ProtoMessage() {} func (x *Answer) ProtoReflect() protoreflect.Message { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[29] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3311,7 +3676,7 @@ func (x *Answer) ProtoReflect() protoreflect.Message { // Deprecated: Use Answer.ProtoReflect.Descriptor instead. func (*Answer) Descriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{29} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{32} } func (x *Answer) GetAnswerId() string { @@ -3370,7 +3735,7 @@ type AnswerBatch struct { func (x *AnswerBatch) Reset() { *x = AnswerBatch{} if protoimpl.UnsafeEnabled { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[30] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3383,7 +3748,7 @@ func (x *AnswerBatch) String() string { func (*AnswerBatch) ProtoMessage() {} func (x *AnswerBatch) ProtoReflect() protoreflect.Message { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[30] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3396,7 +3761,7 @@ func (x *AnswerBatch) ProtoReflect() protoreflect.Message { // Deprecated: Use AnswerBatch.ProtoReflect.Descriptor instead. func (*AnswerBatch) Descriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{30} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{33} } func (x *AnswerBatch) GetBatchId() string { @@ -3440,7 +3805,7 @@ type Request struct { func (x *Request) Reset() { *x = Request{} if protoimpl.UnsafeEnabled { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[31] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3453,7 +3818,7 @@ func (x *Request) String() string { func (*Request) ProtoMessage() {} func (x *Request) ProtoReflect() protoreflect.Message { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[31] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3466,7 +3831,7 @@ func (x *Request) ProtoReflect() protoreflect.Message { // Deprecated: Use Request.ProtoReflect.Descriptor instead. func (*Request) Descriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{31} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{34} } func (x *Request) GetEngineId() string { @@ -3600,7 +3965,7 @@ type OnStatus struct { func (x *OnStatus) Reset() { *x = OnStatus{} if protoimpl.UnsafeEnabled { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[32] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3613,7 +3978,7 @@ func (x *OnStatus) String() string { func (*OnStatus) ProtoMessage() {} func (x *OnStatus) ProtoReflect() protoreflect.Message { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[32] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3626,7 +3991,7 @@ func (x *OnStatus) ProtoReflect() protoreflect.Message { // Deprecated: Use OnStatus.ProtoReflect.Descriptor instead. func (*OnStatus) Descriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{32} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{35} } func (x *OnStatus) GetReason() []FinishReason { @@ -3663,7 +4028,7 @@ type Stage struct { func (x *Stage) Reset() { *x = Stage{} if protoimpl.UnsafeEnabled { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[33] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3676,7 +4041,7 @@ func (x *Stage) String() string { func (*Stage) ProtoMessage() {} func (x *Stage) ProtoReflect() protoreflect.Message { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[33] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3689,7 +4054,7 @@ func (x *Stage) ProtoReflect() protoreflect.Message { // Deprecated: Use Stage.ProtoReflect.Descriptor instead. func (*Stage) Descriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{33} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{36} } func (x *Stage) GetId() string { @@ -3725,7 +4090,7 @@ type ChainRequest struct { func (x *ChainRequest) Reset() { *x = ChainRequest{} if protoimpl.UnsafeEnabled { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[34] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3738,7 +4103,7 @@ func (x *ChainRequest) String() string { func (*ChainRequest) ProtoMessage() {} func (x *ChainRequest) ProtoReflect() protoreflect.Message { - mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[34] + mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3751,7 +4116,7 @@ func (x *ChainRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ChainRequest.ProtoReflect.Descriptor instead. func (*ChainRequest) Descriptor() ([]byte, []int) { - return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{34} + return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{37} } func (x *ChainRequest) GetRequestId() string { @@ -4019,7 +4384,43 @@ var file_stability_api_platform_generation_v1_generation_proto_rawDesc = []byte{ 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x48, 0x00, 0x52, 0x08, 0x75, 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, - 0x70, 0x65, 0x22, 0x9d, 0x05, 0x0a, 0x0f, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x61, 0x72, 0x61, + 0x70, 0x65, 0x22, 0xfb, 0x01, 0x0a, 0x13, 0x54, 0x32, 0x49, 0x41, 0x64, 0x61, 0x70, 0x74, 0x65, + 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x55, 0x0a, 0x0c, 0x61, 0x64, + 0x61, 0x70, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x32, 0x49, 0x41, 0x64, 0x61, + 0x70, 0x74, 0x65, 0x72, 0x52, 0x0b, 0x61, 0x64, 0x61, 0x70, 0x74, 0x65, 0x72, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x29, 0x0a, 0x10, 0x61, 0x64, 0x61, 0x70, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x72, + 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0f, 0x61, 0x64, 0x61, + 0x70, 0x74, 0x65, 0x72, 0x53, 0x74, 0x72, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x62, 0x0a, 0x11, + 0x61, 0x64, 0x61, 0x70, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x69, 0x74, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x54, 0x32, 0x49, 0x41, 0x64, 0x61, 0x70, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x52, + 0x0f, 0x61, 0x64, 0x61, 0x70, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x22, 0xe4, 0x01, 0x0a, 0x0d, 0x43, 0x41, 0x49, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, + 0x72, 0x73, 0x12, 0x6c, 0x0a, 0x0e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x43, 0x2e, 0x73, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x41, 0x49, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, + 0x73, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, + 0x00, 0x52, 0x0d, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x22, 0x57, 0x0a, 0x0d, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x12, 0x1e, 0x0a, 0x1a, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x4d, 0x45, 0x54, 0x41, 0x44, + 0x41, 0x54, 0x41, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, + 0x00, 0x12, 0x26, 0x0a, 0x22, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x4d, 0x45, 0x54, 0x41, 0x44, + 0x41, 0x54, 0x41, 0x5f, 0x53, 0x49, 0x47, 0x4e, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x5f, 0x45, 0x4e, + 0x47, 0x49, 0x4e, 0x45, 0x5f, 0x49, 0x44, 0x10, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x70, 0x61, 0x72, + 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x22, 0x59, 0x0a, 0x14, 0x46, 0x69, 0x6e, 0x65, 0x54, + 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, + 0x19, 0x0a, 0x08, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x06, 0x77, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x06, 0x77, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x77, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x22, 0xef, 0x07, 0x0a, 0x0f, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1b, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, @@ -4054,521 +4455,553 @@ var file_stability_api_platform_generation_v1_generation_proto_rawDesc = []byte{ 0x64, 0x48, 0x06, 0x52, 0x0c, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1f, 0x0a, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x7a, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x48, 0x07, 0x52, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, - 0x7a, 0x65, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x77, 0x69, 0x64, 0x74, 0x68, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x73, - 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x73, - 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x13, - 0x0a, 0x11, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x5f, 0x61, 0x72, 0x65, 0x61, 0x5f, 0x69, - 0x6e, 0x69, 0x74, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x6d, - 0x65, 0x74, 0x68, 0x6f, 0x64, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, - 0x7a, 0x65, 0x22, 0x5e, 0x0a, 0x11, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, - 0x43, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x63, 0x65, - 0x70, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x63, 0x65, 0x70, - 0x74, 0x12, 0x21, 0x0a, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, - 0x64, 0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, - 0x6c, 0x64, 0x22, 0x85, 0x03, 0x0a, 0x12, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, - 0x72, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x55, 0x0a, - 0x08, 0x63, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, - 0x69, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x63, - 0x65, 0x70, 0x74, 0x73, 0x12, 0x23, 0x0a, 0x0a, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x6d, 0x65, - 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x64, 0x6a, 0x75, - 0x73, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x4b, 0x0a, 0x06, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, + 0x7a, 0x65, 0x88, 0x01, 0x01, 0x12, 0x61, 0x0a, 0x0e, 0x63, 0x61, 0x69, 0x5f, 0x70, 0x61, 0x72, + 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, + 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x41, 0x49, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, + 0x74, 0x65, 0x72, 0x73, 0x48, 0x08, 0x52, 0x0d, 0x63, 0x61, 0x69, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x65, 0x74, 0x65, 0x72, 0x73, 0x88, 0x01, 0x01, 0x12, 0x5a, 0x0a, 0x07, 0x61, 0x64, 0x61, 0x70, + 0x74, 0x65, 0x72, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x01, 0x52, 0x06, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x64, 0x0a, 0x0f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, - 0x66, 0x69, 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x36, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, - 0x69, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x48, 0x02, 0x52, 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73, - 0x69, 0x66, 0x69, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0d, 0x0a, 0x0b, - 0x5f, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x09, 0x0a, 0x07, 0x5f, - 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, - 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0xba, 0x02, 0x0a, 0x14, 0x43, - 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, - 0x65, 0x72, 0x73, 0x12, 0x5a, 0x0a, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, - 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, - 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x43, 0x61, 0x74, 0x65, 0x67, - 0x6f, 0x72, 0x79, 0x52, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, - 0x54, 0x0a, 0x07, 0x65, 0x78, 0x63, 0x65, 0x65, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x3a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, + 0x76, 0x31, 0x2e, 0x54, 0x32, 0x49, 0x41, 0x64, 0x61, 0x70, 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x48, 0x09, 0x52, 0x07, 0x61, 0x64, 0x61, 0x70, 0x74, 0x65, + 0x72, 0x88, 0x01, 0x01, 0x12, 0x72, 0x0a, 0x16, 0x66, 0x69, 0x6e, 0x65, 0x5f, 0x74, 0x75, 0x6e, + 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x0d, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, + 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, + 0x6e, 0x65, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, + 0x72, 0x73, 0x52, 0x14, 0x66, 0x69, 0x6e, 0x65, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x68, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x77, 0x69, 0x64, 0x74, 0x68, 0x42, 0x0a, 0x0a, + 0x08, 0x5f, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x73, 0x74, + 0x65, 0x70, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, + 0x6d, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x5f, 0x61, 0x72, 0x65, + 0x61, 0x5f, 0x69, 0x6e, 0x69, 0x74, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x71, 0x75, 0x61, + 0x6e, 0x74, 0x69, 0x7a, 0x65, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x63, 0x61, 0x69, 0x5f, 0x70, 0x61, + 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x61, 0x64, 0x61, + 0x70, 0x74, 0x65, 0x72, 0x22, 0x5e, 0x0a, 0x11, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, + 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, + 0x63, 0x65, 0x70, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x63, + 0x65, 0x70, 0x74, 0x12, 0x21, 0x0a, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, + 0x6f, 0x6c, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, + 0x68, 0x6f, 0x6c, 0x64, 0x22, 0x85, 0x03, 0x0a, 0x12, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, + 0x69, 0x65, 0x72, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x55, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, + 0x69, 0x66, 0x69, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x52, 0x08, 0x63, 0x6f, + 0x6e, 0x63, 0x65, 0x70, 0x74, 0x73, 0x12, 0x23, 0x0a, 0x0a, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, + 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x64, + 0x6a, 0x75, 0x73, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x4b, 0x0a, 0x06, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x73, 0x74, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x01, 0x52, 0x06, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x64, 0x0a, 0x0f, 0x63, 0x6c, 0x61, 0x73, + 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x36, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, + 0x69, 0x66, 0x69, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x48, 0x02, 0x52, 0x0e, 0x63, 0x6c, 0x61, + 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0d, + 0x0a, 0x0b, 0x5f, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x09, 0x0a, + 0x07, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x63, 0x6c, 0x61, + 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0xba, 0x02, 0x0a, + 0x14, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x5a, 0x0a, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, + 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, 0x74, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x43, 0x61, 0x74, + 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, + 0x73, 0x12, 0x54, 0x0a, 0x07, 0x65, 0x78, 0x63, 0x65, 0x65, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, + 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x07, + 0x65, 0x78, 0x63, 0x65, 0x65, 0x64, 0x73, 0x12, 0x5c, 0x0a, 0x0f, 0x72, 0x65, 0x61, 0x6c, 0x69, + 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x48, 0x00, 0x52, 0x0e, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x7a, + 0x65, 0x64, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x8a, 0x01, 0x0a, 0x15, 0x49, 0x6e, + 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, + 0x65, 0x72, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x02, 0x52, 0x06, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x73, 0x12, 0x50, 0x0a, 0x04, 0x6d, + 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x4d, 0x6f, + 0x64, 0x65, 0x48, 0x00, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, + 0x05, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0xbb, 0x04, 0x0a, 0x14, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x66, 0x6f, 0x72, 0x6d, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x12, + 0x23, 0x0a, 0x0a, 0x62, 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x0a, 0x62, 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, + 0x73, 0x88, 0x01, 0x01, 0x12, 0x1f, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x73, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x48, 0x01, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, + 0x73, 0x74, 0x88, 0x01, 0x01, 0x12, 0x15, 0x0a, 0x03, 0x68, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x02, 0x48, 0x02, 0x52, 0x03, 0x68, 0x75, 0x65, 0x88, 0x01, 0x01, 0x12, 0x23, 0x0a, 0x0a, + 0x73, 0x61, 0x74, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, + 0x48, 0x03, 0x52, 0x0a, 0x73, 0x61, 0x74, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, + 0x01, 0x12, 0x21, 0x0a, 0x09, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x02, 0x48, 0x04, 0x52, 0x09, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, + 0x73, 0x88, 0x01, 0x01, 0x12, 0x56, 0x0a, 0x0b, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x69, 0x6d, + 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x48, 0x05, 0x52, 0x0a, 0x6d, + 0x61, 0x74, 0x63, 0x68, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x88, 0x01, 0x01, 0x12, 0x5a, 0x0a, 0x0a, + 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x36, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, - 0x66, 0x69, 0x65, 0x72, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x07, 0x65, 0x78, - 0x63, 0x65, 0x65, 0x64, 0x73, 0x12, 0x5c, 0x0a, 0x0f, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x7a, 0x65, - 0x64, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x4d, + 0x61, 0x74, 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x65, 0x48, 0x06, 0x52, 0x09, 0x6d, 0x61, 0x74, 0x63, + 0x68, 0x4d, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x12, 0x26, 0x0a, 0x0c, 0x6e, 0x6f, 0x69, 0x73, + 0x65, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x02, 0x48, 0x07, + 0x52, 0x0b, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x88, 0x01, 0x01, + 0x12, 0x22, 0x0a, 0x0a, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x65, 0x64, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x0d, 0x48, 0x08, 0x52, 0x09, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x53, 0x65, 0x65, + 0x64, 0x88, 0x01, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x62, 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, + 0x65, 0x73, 0x73, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x73, 0x74, + 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x68, 0x75, 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x73, 0x61, 0x74, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x6c, 0x69, 0x67, 0x68, + 0x74, 0x6e, 0x65, 0x73, 0x73, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, + 0x69, 0x6d, 0x61, 0x67, 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, + 0x6d, 0x6f, 0x64, 0x65, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x61, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, + 0x73, 0x65, 0x65, 0x64, 0x22, 0xae, 0x01, 0x0a, 0x12, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, + 0x72, 0x6d, 0x44, 0x65, 0x70, 0x74, 0x68, 0x43, 0x61, 0x6c, 0x63, 0x12, 0x26, 0x0a, 0x0c, 0x62, + 0x6c, 0x65, 0x6e, 0x64, 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x02, 0x48, 0x00, 0x52, 0x0b, 0x62, 0x6c, 0x65, 0x6e, 0x64, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x88, 0x01, 0x01, 0x12, 0x24, 0x0a, 0x0b, 0x62, 0x6c, 0x75, 0x72, 0x5f, 0x72, 0x61, 0x64, 0x69, + 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x01, 0x52, 0x0a, 0x62, 0x6c, 0x75, 0x72, + 0x52, 0x61, 0x64, 0x69, 0x75, 0x73, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x07, 0x72, 0x65, 0x76, + 0x65, 0x72, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x48, 0x02, 0x52, 0x07, 0x72, 0x65, + 0x76, 0x65, 0x72, 0x73, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x62, 0x6c, 0x65, + 0x6e, 0x64, 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x62, 0x6c, + 0x75, 0x72, 0x5f, 0x72, 0x61, 0x64, 0x69, 0x75, 0x73, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x72, 0x65, + 0x76, 0x65, 0x72, 0x73, 0x65, 0x22, 0x29, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, + 0x72, 0x6d, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x12, 0x16, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x02, 0x42, 0x02, 0x10, 0x01, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, + 0x22, 0xa0, 0x03, 0x0a, 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x65, + 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x53, 0x0a, 0x0b, 0x62, 0x6f, 0x72, 0x64, 0x65, 0x72, + 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x52, + 0x0a, 0x62, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x55, 0x0a, 0x09, 0x74, + 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, - 0x52, 0x0e, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x88, 0x01, 0x01, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, - 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x8a, 0x01, 0x0a, 0x15, 0x49, 0x6e, 0x74, 0x65, - 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, - 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x02, 0x52, 0x06, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x73, 0x12, 0x50, 0x0a, 0x04, 0x6d, 0x6f, 0x64, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, - 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, - 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, - 0x48, 0x00, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, - 0x6d, 0x6f, 0x64, 0x65, 0x22, 0xbb, 0x04, 0x0a, 0x14, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, - 0x72, 0x6d, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x12, 0x23, 0x0a, - 0x0a, 0x62, 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x02, 0x48, 0x00, 0x52, 0x0a, 0x62, 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x88, - 0x01, 0x01, 0x12, 0x1f, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x73, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x02, 0x48, 0x01, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x73, 0x74, - 0x88, 0x01, 0x01, 0x12, 0x15, 0x0a, 0x03, 0x68, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, - 0x48, 0x02, 0x52, 0x03, 0x68, 0x75, 0x65, 0x88, 0x01, 0x01, 0x12, 0x23, 0x0a, 0x0a, 0x73, 0x61, - 0x74, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x48, 0x03, - 0x52, 0x0a, 0x73, 0x61, 0x74, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, - 0x21, 0x0a, 0x09, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x02, 0x48, 0x04, 0x52, 0x09, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x88, - 0x01, 0x01, 0x12, 0x56, 0x0a, 0x0b, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x69, 0x6d, 0x61, 0x67, - 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, - 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, - 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x48, 0x05, 0x52, 0x0a, 0x6d, 0x61, 0x74, - 0x63, 0x68, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x88, 0x01, 0x01, 0x12, 0x5a, 0x0a, 0x0a, 0x6d, 0x61, - 0x74, 0x63, 0x68, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, + 0x6d, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, + 0x72, 0x6d, 0x12, 0x63, 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, + 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x74, + 0x72, 0x69, 0x78, 0x48, 0x00, 0x52, 0x0d, 0x70, 0x72, 0x65, 0x76, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x66, 0x6f, 0x72, 0x6d, 0x88, 0x01, 0x01, 0x12, 0x22, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x74, 0x68, + 0x5f, 0x77, 0x61, 0x72, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x48, 0x01, 0x52, 0x09, 0x64, + 0x65, 0x70, 0x74, 0x68, 0x57, 0x61, 0x72, 0x70, 0x88, 0x01, 0x01, 0x12, 0x24, 0x0a, 0x0b, 0x65, + 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, + 0x48, 0x02, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x61, 0x73, 0x6b, 0x88, 0x01, + 0x01, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, + 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x64, 0x65, 0x70, 0x74, 0x68, 0x5f, 0x77, + 0x61, 0x72, 0x70, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6d, + 0x61, 0x73, 0x6b, 0x22, 0xc2, 0x01, 0x0a, 0x10, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x53, 0x0a, 0x0b, 0x63, 0x61, 0x6d, 0x65, + 0x72, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, + 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x0a, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, + 0x0a, 0x6e, 0x65, 0x61, 0x72, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x02, 0x52, 0x09, 0x6e, 0x65, 0x61, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x12, 0x1b, 0x0a, 0x09, + 0x66, 0x61, 0x72, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, + 0x08, 0x66, 0x61, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x66, 0x6f, 0x76, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x03, 0x66, 0x6f, 0x76, 0x88, 0x01, 0x01, + 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x66, 0x6f, 0x76, 0x22, 0xf2, 0x02, 0x0a, 0x13, 0x54, 0x72, 0x61, + 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x6f, 0x73, 0x65, + 0x12, 0x68, 0x0a, 0x14, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x5f, 0x74, 0x6f, 0x5f, 0x76, 0x69, 0x65, + 0x77, 0x5f, 0x6d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x4d, 0x61, 0x74, - 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x65, 0x48, 0x06, 0x52, 0x09, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x4d, - 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x12, 0x26, 0x0a, 0x0c, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, - 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x02, 0x48, 0x07, 0x52, 0x0b, - 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x22, - 0x0a, 0x0a, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, - 0x28, 0x0d, 0x48, 0x08, 0x52, 0x09, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x53, 0x65, 0x65, 0x64, 0x88, - 0x01, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x62, 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, - 0x73, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x73, 0x74, 0x42, 0x06, - 0x0a, 0x04, 0x5f, 0x68, 0x75, 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x73, 0x61, 0x74, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, - 0x65, 0x73, 0x73, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x69, 0x6d, - 0x61, 0x67, 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x6d, 0x6f, - 0x64, 0x65, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x61, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x73, 0x65, - 0x65, 0x64, 0x22, 0xae, 0x01, 0x0a, 0x12, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, - 0x44, 0x65, 0x70, 0x74, 0x68, 0x43, 0x61, 0x6c, 0x63, 0x12, 0x26, 0x0a, 0x0c, 0x62, 0x6c, 0x65, - 0x6e, 0x64, 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x48, - 0x00, 0x52, 0x0b, 0x62, 0x6c, 0x65, 0x6e, 0x64, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x88, 0x01, - 0x01, 0x12, 0x24, 0x0a, 0x0b, 0x62, 0x6c, 0x75, 0x72, 0x5f, 0x72, 0x61, 0x64, 0x69, 0x75, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x01, 0x52, 0x0a, 0x62, 0x6c, 0x75, 0x72, 0x52, 0x61, - 0x64, 0x69, 0x75, 0x73, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, - 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x48, 0x02, 0x52, 0x07, 0x72, 0x65, 0x76, 0x65, - 0x72, 0x73, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x62, 0x6c, 0x65, 0x6e, 0x64, - 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x62, 0x6c, 0x75, 0x72, - 0x5f, 0x72, 0x61, 0x64, 0x69, 0x75, 0x73, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x72, 0x65, 0x76, 0x65, - 0x72, 0x73, 0x65, 0x22, 0x29, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, - 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x12, 0x16, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x02, 0x42, 0x02, 0x10, 0x01, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xa0, - 0x03, 0x0a, 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x65, 0x73, 0x61, - 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x53, 0x0a, 0x0b, 0x62, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x6d, - 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, - 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x62, - 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x55, 0x0a, 0x09, 0x74, 0x72, 0x61, - 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, - 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x4d, - 0x61, 0x74, 0x72, 0x69, 0x78, 0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, - 0x12, 0x63, 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, - 0x72, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, - 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x74, 0x72, 0x69, - 0x78, 0x48, 0x00, 0x52, 0x0d, 0x70, 0x72, 0x65, 0x76, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, - 0x72, 0x6d, 0x88, 0x01, 0x01, 0x12, 0x22, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x74, 0x68, 0x5f, 0x77, - 0x61, 0x72, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x48, 0x01, 0x52, 0x09, 0x64, 0x65, 0x70, - 0x74, 0x68, 0x57, 0x61, 0x72, 0x70, 0x88, 0x01, 0x01, 0x12, 0x24, 0x0a, 0x0b, 0x65, 0x78, 0x70, - 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x48, 0x02, - 0x52, 0x0a, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x61, 0x73, 0x6b, 0x88, 0x01, 0x01, 0x42, - 0x11, 0x0a, 0x0f, 0x5f, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, - 0x72, 0x6d, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x64, 0x65, 0x70, 0x74, 0x68, 0x5f, 0x77, 0x61, 0x72, - 0x70, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x61, 0x73, - 0x6b, 0x22, 0xc2, 0x01, 0x0a, 0x10, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x53, 0x0a, 0x0b, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, + 0x6d, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x54, 0x6f, + 0x56, 0x69, 0x65, 0x77, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x12, 0x65, 0x0a, 0x11, 0x63, 0x61, + 0x6d, 0x65, 0x72, 0x61, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, + 0x10, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, + 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x6f, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x6c, 0x6c, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x64, 0x6f, 0x50, 0x72, 0x65, 0x66, 0x69, 0x6c, 0x6c, + 0x12, 0x53, 0x0a, 0x0b, 0x72, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x72, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x4a, 0x04, 0x08, 0x04, 0x10, + 0x05, 0x4a, 0x04, 0x08, 0x06, 0x10, 0x07, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x22, 0x9b, 0x03, + 0x0a, 0x13, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x61, 0x0a, 0x0c, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x61, + 0x64, 0x6a, 0x75, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, - 0x0a, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, - 0x65, 0x61, 0x72, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, - 0x09, 0x6e, 0x65, 0x61, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x61, - 0x72, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x08, 0x66, - 0x61, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x66, 0x6f, 0x76, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x03, 0x66, 0x6f, 0x76, 0x88, 0x01, 0x01, 0x42, 0x06, - 0x0a, 0x04, 0x5f, 0x66, 0x6f, 0x76, 0x22, 0xf2, 0x02, 0x0a, 0x13, 0x54, 0x72, 0x61, 0x6e, 0x73, - 0x66, 0x6f, 0x72, 0x6d, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x6f, 0x73, 0x65, 0x12, 0x68, - 0x0a, 0x14, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x5f, 0x74, 0x6f, 0x5f, 0x76, 0x69, 0x65, 0x77, 0x5f, - 0x6d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x43, 0x6f, + 0x6c, 0x6f, 0x72, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x63, 0x6f, 0x6c, + 0x6f, 0x72, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x12, 0x5b, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x74, + 0x68, 0x5f, 0x63, 0x61, 0x6c, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x4d, - 0x61, 0x74, 0x72, 0x69, 0x78, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x54, 0x6f, 0x56, 0x69, - 0x65, 0x77, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x12, 0x65, 0x0a, 0x11, 0x63, 0x61, 0x6d, 0x65, - 0x72, 0x61, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x44, + 0x65, 0x70, 0x74, 0x68, 0x43, 0x61, 0x6c, 0x63, 0x48, 0x00, 0x52, 0x09, 0x64, 0x65, 0x70, 0x74, + 0x68, 0x43, 0x61, 0x6c, 0x63, 0x12, 0x57, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x61, 0x6d, 0x70, 0x6c, + 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x65, 0x73, 0x61, 0x6d, 0x70, + 0x6c, 0x65, 0x48, 0x00, 0x52, 0x08, 0x72, 0x65, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x5e, + 0x0a, 0x0b, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x5f, 0x70, 0x6f, 0x73, 0x65, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6d, - 0x65, 0x72, 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x10, 0x63, - 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, - 0x1d, 0x0a, 0x0a, 0x64, 0x6f, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x6c, 0x6c, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x09, 0x64, 0x6f, 0x50, 0x72, 0x65, 0x66, 0x69, 0x6c, 0x6c, 0x12, 0x53, - 0x0a, 0x0b, 0x72, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x08, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, + 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x6f, 0x73, 0x65, + 0x48, 0x00, 0x52, 0x0a, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x6f, 0x73, 0x65, 0x42, 0x0b, + 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x22, 0xc1, 0x01, 0x0a, 0x0f, + 0x41, 0x73, 0x73, 0x65, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, + 0x4b, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x33, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x41, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x03, 0x75, + 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x52, 0x03, 0x75, 0x73, 0x65, 0x22, + 0xb4, 0x01, 0x0a, 0x0a, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x1a, + 0x0a, 0x06, 0x67, 0x70, 0x75, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, + 0x52, 0x05, 0x67, 0x70, 0x75, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1a, 0x0a, 0x06, 0x63, 0x70, + 0x75, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x05, 0x63, 0x70, + 0x75, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1c, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, + 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, + 0x64, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x09, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x69, + 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x08, 0x65, 0x6e, 0x67, 0x69, 0x6e, + 0x65, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x67, 0x70, 0x75, 0x5f, 0x69, + 0x64, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x63, 0x70, 0x75, 0x5f, 0x69, 0x64, 0x42, 0x0a, 0x0a, 0x08, + 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x65, 0x6e, 0x67, + 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x22, 0xa0, 0x02, 0x0a, 0x06, 0x41, 0x6e, 0x73, 0x77, 0x65, + 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, + 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, + 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x64, 0x12, 0x4b, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, + 0x72, 0x4d, 0x65, 0x74, 0x61, 0x48, 0x00, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x88, 0x01, 0x01, + 0x12, 0x4e, 0x0a, 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x18, 0x07, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6e, - 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x72, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x4d, - 0x6f, 0x64, 0x65, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x4a, - 0x04, 0x08, 0x06, 0x10, 0x07, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x22, 0x9b, 0x03, 0x0a, 0x13, - 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, - 0x65, 0x72, 0x73, 0x12, 0x61, 0x0a, 0x0c, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x6a, - 0x75, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x73, 0x74, 0x61, 0x62, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, + 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, + 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x22, 0x72, 0x0a, 0x0b, 0x41, 0x6e, 0x73, + 0x77, 0x65, 0x72, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x61, 0x74, 0x63, + 0x68, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x61, 0x74, 0x63, + 0x68, 0x49, 0x64, 0x12, 0x48, 0x0a, 0x07, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, + 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, + 0x73, 0x77, 0x65, 0x72, 0x52, 0x07, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x22, 0xfa, 0x06, + 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x67, + 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, + 0x67, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x5b, 0x0a, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, + 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x46, 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x18, 0x04, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, + 0x70, 0x74, 0x52, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x12, 0x4f, 0x0a, 0x05, 0x69, 0x6d, + 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x43, 0x6f, 0x6c, 0x6f, - 0x72, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x63, 0x6f, 0x6c, 0x6f, 0x72, - 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x12, 0x5b, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x74, 0x68, 0x5f, - 0x63, 0x61, 0x6c, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, 0x74, 0x61, + 0x76, 0x31, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, + 0x72, 0x73, 0x48, 0x00, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x5e, 0x0a, 0x0a, 0x63, + 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x3c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, + 0x69, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, + 0x0a, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x4f, 0x0a, 0x05, 0x61, + 0x73, 0x73, 0x65, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x44, 0x65, 0x70, - 0x74, 0x68, 0x43, 0x61, 0x6c, 0x63, 0x48, 0x00, 0x52, 0x09, 0x64, 0x65, 0x70, 0x74, 0x68, 0x43, - 0x61, 0x6c, 0x63, 0x12, 0x57, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x65, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, - 0x48, 0x00, 0x52, 0x08, 0x72, 0x65, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x5e, 0x0a, 0x0b, - 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x5f, 0x70, 0x6f, 0x73, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x3b, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, - 0x66, 0x6f, 0x72, 0x6d, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x6f, 0x73, 0x65, 0x48, 0x00, - 0x52, 0x0a, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x6f, 0x73, 0x65, 0x42, 0x0b, 0x0a, 0x09, - 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x22, 0xc1, 0x01, 0x0a, 0x0f, 0x41, 0x73, - 0x73, 0x65, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x4b, 0x0a, - 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, - 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x03, 0x75, 0x73, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x41, 0x73, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x52, 0x03, 0x75, 0x73, 0x65, 0x22, 0xb4, 0x01, - 0x0a, 0x0a, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x06, - 0x67, 0x70, 0x75, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, - 0x67, 0x70, 0x75, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1a, 0x0a, 0x06, 0x63, 0x70, 0x75, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x05, 0x63, 0x70, 0x75, 0x49, - 0x64, 0x88, 0x01, 0x01, 0x12, 0x1c, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x88, - 0x01, 0x01, 0x12, 0x20, 0x0a, 0x09, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x08, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x49, - 0x64, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x67, 0x70, 0x75, 0x5f, 0x69, 0x64, 0x42, - 0x09, 0x0a, 0x07, 0x5f, 0x63, 0x70, 0x75, 0x5f, 0x69, 0x64, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x6e, - 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, - 0x65, 0x5f, 0x69, 0x64, 0x22, 0xa0, 0x02, 0x0a, 0x06, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, - 0x1b, 0x0a, 0x09, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, - 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x72, - 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, - 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x64, 0x12, 0x4b, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x4d, - 0x65, 0x74, 0x61, 0x48, 0x00, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x88, 0x01, 0x01, 0x12, 0x4e, - 0x0a, 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, + 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x61, 0x0a, 0x0b, + 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x3d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, - 0x61, 0x63, 0x74, 0x52, 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x42, 0x07, - 0x0a, 0x05, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x22, 0x72, 0x0a, 0x0b, 0x41, 0x6e, 0x73, 0x77, 0x65, - 0x72, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x61, 0x74, 0x63, 0x68, 0x49, - 0x64, 0x12, 0x48, 0x0a, 0x07, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, + 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, + 0x48, 0x00, 0x52, 0x0b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x12, + 0x5b, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x0c, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x73, 0x77, - 0x65, 0x72, 0x52, 0x07, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x22, 0xfa, 0x06, 0x0a, 0x07, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x67, 0x69, 0x6e, - 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x49, 0x64, 0x12, 0x5b, 0x0a, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, - 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x46, 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, - 0x52, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x12, 0x4f, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, - 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, + 0x00, 0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x64, 0x0a, 0x0b, + 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x3d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x64, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, + 0x48, 0x01, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x88, + 0x01, 0x01, 0x12, 0x35, 0x0a, 0x06, 0x65, 0x78, 0x74, 0x72, 0x61, 0x73, 0x18, 0xff, 0x0f, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x48, 0x02, 0x52, 0x06, + 0x65, 0x78, 0x74, 0x72, 0x61, 0x73, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x70, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x65, 0x72, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x73, 0x4a, 0x04, + 0x08, 0x09, 0x10, 0x0a, 0x4a, 0x04, 0x08, 0x0a, 0x10, 0x0b, 0x22, 0xcd, 0x01, 0x0a, 0x08, 0x4f, + 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x4c, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, + 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, - 0x48, 0x00, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x5e, 0x0a, 0x0a, 0x63, 0x6c, 0x61, - 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, - 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, - 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, 0x0a, 0x63, - 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x4f, 0x0a, 0x05, 0x61, 0x73, 0x73, - 0x65, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, - 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, - 0x73, 0x48, 0x00, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x61, 0x0a, 0x0b, 0x69, 0x6e, - 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x3d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, - 0x6c, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, - 0x52, 0x0b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x5b, 0x0a, - 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x3b, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, - 0x6f, 0x72, 0x6d, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, - 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x64, 0x0a, 0x0b, 0x63, 0x6f, - 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x3d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x01, - 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x88, 0x01, 0x01, - 0x12, 0x35, 0x0a, 0x06, 0x65, 0x78, 0x74, 0x72, 0x61, 0x73, 0x18, 0xff, 0x0f, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x48, 0x02, 0x52, 0x06, 0x65, 0x78, - 0x74, 0x72, 0x61, 0x73, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, - 0x72, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x73, 0x4a, 0x04, 0x08, 0x09, - 0x10, 0x0a, 0x4a, 0x04, 0x08, 0x0a, 0x10, 0x0b, 0x22, 0xcd, 0x01, 0x0a, 0x08, 0x4f, 0x6e, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x4c, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x2e, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x06, 0x72, + 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x88, + 0x01, 0x01, 0x12, 0x4b, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x67, + 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, + 0x09, 0x0a, 0x07, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, 0xb1, 0x01, 0x0a, 0x05, 0x53, + 0x74, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x49, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x46, - 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x06, 0x72, 0x65, 0x61, - 0x73, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x88, 0x01, 0x01, - 0x12, 0x4b, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0e, - 0x32, 0x33, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x67, 0x65, 0x41, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x09, 0x0a, - 0x07, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, 0xb1, 0x01, 0x0a, 0x05, 0x53, 0x74, 0x61, - 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x49, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, - 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4d, 0x0a, - 0x09, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x6e, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x08, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x72, 0x0a, 0x0c, - 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, - 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x43, 0x0a, 0x05, 0x73, - 0x74, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x74, 0x61, - 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x67, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x67, 0x65, - 0x2a, 0x45, 0x0a, 0x0c, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, - 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x55, 0x4c, 0x4c, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x45, - 0x4e, 0x47, 0x54, 0x48, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x53, 0x54, 0x4f, 0x50, 0x10, 0x02, - 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x46, - 0x49, 0x4c, 0x54, 0x45, 0x52, 0x10, 0x04, 0x2a, 0xf8, 0x01, 0x0a, 0x0c, 0x41, 0x72, 0x74, 0x69, - 0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x52, 0x54, 0x49, - 0x46, 0x41, 0x43, 0x54, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x41, - 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x10, 0x01, 0x12, - 0x12, 0x0a, 0x0e, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x56, 0x49, 0x44, 0x45, - 0x4f, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, - 0x54, 0x45, 0x58, 0x54, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, - 0x43, 0x54, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x53, 0x10, 0x04, 0x12, 0x16, 0x0a, 0x12, 0x41, - 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x45, 0x4d, 0x42, 0x45, 0x44, 0x44, 0x49, 0x4e, - 0x47, 0x10, 0x05, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, - 0x43, 0x4c, 0x41, 0x53, 0x53, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x10, - 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x4d, 0x41, - 0x53, 0x4b, 0x10, 0x07, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, - 0x5f, 0x4c, 0x41, 0x54, 0x45, 0x4e, 0x54, 0x10, 0x08, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x52, 0x54, - 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x54, 0x45, 0x4e, 0x53, 0x4f, 0x52, 0x10, 0x09, 0x12, 0x12, - 0x0a, 0x0e, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x44, 0x45, 0x50, 0x54, 0x48, - 0x10, 0x0a, 0x2a, 0x67, 0x0a, 0x0e, 0x4d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x41, 0x72, 0x65, 0x61, - 0x49, 0x6e, 0x69, 0x74, 0x12, 0x19, 0x0a, 0x15, 0x4d, 0x41, 0x53, 0x4b, 0x45, 0x44, 0x5f, 0x41, - 0x52, 0x45, 0x41, 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, - 0x1b, 0x0a, 0x17, 0x4d, 0x41, 0x53, 0x4b, 0x45, 0x44, 0x5f, 0x41, 0x52, 0x45, 0x41, 0x5f, 0x49, - 0x4e, 0x49, 0x54, 0x5f, 0x52, 0x41, 0x4e, 0x44, 0x4f, 0x4d, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, - 0x4d, 0x41, 0x53, 0x4b, 0x45, 0x44, 0x5f, 0x41, 0x52, 0x45, 0x41, 0x5f, 0x49, 0x4e, 0x49, 0x54, - 0x5f, 0x4f, 0x52, 0x49, 0x47, 0x49, 0x4e, 0x41, 0x4c, 0x10, 0x02, 0x2a, 0x35, 0x0a, 0x0c, 0x57, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x10, 0x0a, 0x0c, 0x54, - 0x45, 0x58, 0x54, 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x45, 0x52, 0x10, 0x00, 0x12, 0x13, 0x0a, - 0x0f, 0x43, 0x52, 0x4f, 0x53, 0x53, 0x5f, 0x41, 0x54, 0x54, 0x45, 0x4e, 0x54, 0x49, 0x4f, 0x4e, - 0x10, 0x01, 0x2a, 0x98, 0x02, 0x0a, 0x10, 0x44, 0x69, 0x66, 0x66, 0x75, 0x73, 0x69, 0x6f, 0x6e, - 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x41, 0x4d, 0x50, 0x4c, - 0x45, 0x52, 0x5f, 0x44, 0x44, 0x49, 0x4d, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x41, 0x4d, - 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x44, 0x44, 0x50, 0x4d, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x53, - 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x45, 0x55, 0x4c, 0x45, 0x52, 0x10, 0x02, - 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x45, 0x55, - 0x4c, 0x45, 0x52, 0x5f, 0x41, 0x4e, 0x43, 0x45, 0x53, 0x54, 0x52, 0x41, 0x4c, 0x10, 0x03, 0x12, - 0x12, 0x0a, 0x0e, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x48, 0x45, 0x55, - 0x4e, 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, - 0x5f, 0x44, 0x50, 0x4d, 0x5f, 0x32, 0x10, 0x05, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x41, 0x4d, 0x50, - 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x5f, 0x32, 0x5f, 0x41, 0x4e, 0x43, 0x45, - 0x53, 0x54, 0x52, 0x41, 0x4c, 0x10, 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x41, 0x4d, 0x50, 0x4c, - 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x4c, 0x4d, 0x53, 0x10, 0x07, 0x12, 0x20, 0x0a, 0x1c, 0x53, 0x41, - 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x50, 0x50, 0x5f, 0x32, 0x53, - 0x5f, 0x41, 0x4e, 0x43, 0x45, 0x53, 0x54, 0x52, 0x41, 0x4c, 0x10, 0x08, 0x12, 0x16, 0x0a, 0x12, + 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x4d, 0x0a, 0x09, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x6e, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x08, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x72, + 0x0a, 0x0c, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, + 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x43, 0x0a, + 0x05, 0x73, 0x74, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x67, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, + 0x67, 0x65, 0x2a, 0x45, 0x0a, 0x0c, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x61, 0x73, + 0x6f, 0x6e, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x55, 0x4c, 0x4c, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, + 0x4c, 0x45, 0x4e, 0x47, 0x54, 0x48, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x53, 0x54, 0x4f, 0x50, + 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x0a, 0x0a, + 0x06, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x10, 0x04, 0x2a, 0xf8, 0x01, 0x0a, 0x0c, 0x41, 0x72, + 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x52, + 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x12, 0x0a, + 0x0e, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x10, + 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x56, 0x49, + 0x44, 0x45, 0x4f, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, + 0x54, 0x5f, 0x54, 0x45, 0x58, 0x54, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x52, 0x54, 0x49, + 0x46, 0x41, 0x43, 0x54, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x53, 0x10, 0x04, 0x12, 0x16, 0x0a, + 0x12, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x45, 0x4d, 0x42, 0x45, 0x44, 0x44, + 0x49, 0x4e, 0x47, 0x10, 0x05, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, + 0x54, 0x5f, 0x43, 0x4c, 0x41, 0x53, 0x53, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, + 0x53, 0x10, 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, + 0x4d, 0x41, 0x53, 0x4b, 0x10, 0x07, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, + 0x43, 0x54, 0x5f, 0x4c, 0x41, 0x54, 0x45, 0x4e, 0x54, 0x10, 0x08, 0x12, 0x13, 0x0a, 0x0f, 0x41, + 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x54, 0x45, 0x4e, 0x53, 0x4f, 0x52, 0x10, 0x09, + 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x44, 0x45, 0x50, + 0x54, 0x48, 0x10, 0x0a, 0x2a, 0x67, 0x0a, 0x0e, 0x4d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x41, 0x72, + 0x65, 0x61, 0x49, 0x6e, 0x69, 0x74, 0x12, 0x19, 0x0a, 0x15, 0x4d, 0x41, 0x53, 0x4b, 0x45, 0x44, + 0x5f, 0x41, 0x52, 0x45, 0x41, 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, + 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x4d, 0x41, 0x53, 0x4b, 0x45, 0x44, 0x5f, 0x41, 0x52, 0x45, 0x41, + 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x5f, 0x52, 0x41, 0x4e, 0x44, 0x4f, 0x4d, 0x10, 0x01, 0x12, 0x1d, + 0x0a, 0x19, 0x4d, 0x41, 0x53, 0x4b, 0x45, 0x44, 0x5f, 0x41, 0x52, 0x45, 0x41, 0x5f, 0x49, 0x4e, + 0x49, 0x54, 0x5f, 0x4f, 0x52, 0x49, 0x47, 0x49, 0x4e, 0x41, 0x4c, 0x10, 0x02, 0x2a, 0x35, 0x0a, + 0x0c, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x10, 0x0a, + 0x0c, 0x54, 0x45, 0x58, 0x54, 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x45, 0x52, 0x10, 0x00, 0x12, + 0x13, 0x0a, 0x0f, 0x43, 0x52, 0x4f, 0x53, 0x53, 0x5f, 0x41, 0x54, 0x54, 0x45, 0x4e, 0x54, 0x49, + 0x4f, 0x4e, 0x10, 0x01, 0x2a, 0x98, 0x02, 0x0a, 0x10, 0x44, 0x69, 0x66, 0x66, 0x75, 0x73, 0x69, + 0x6f, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x41, 0x4d, + 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x44, 0x44, 0x49, 0x4d, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x53, + 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x44, 0x44, 0x50, 0x4d, 0x10, 0x01, 0x12, 0x13, 0x0a, + 0x0f, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x45, 0x55, 0x4c, 0x45, 0x52, + 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, + 0x45, 0x55, 0x4c, 0x45, 0x52, 0x5f, 0x41, 0x4e, 0x43, 0x45, 0x53, 0x54, 0x52, 0x41, 0x4c, 0x10, + 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x48, + 0x45, 0x55, 0x4e, 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, + 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x5f, 0x32, 0x10, 0x05, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x41, + 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x5f, 0x32, 0x5f, 0x41, 0x4e, + 0x43, 0x45, 0x53, 0x54, 0x52, 0x41, 0x4c, 0x10, 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x41, 0x4d, + 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x4c, 0x4d, 0x53, 0x10, 0x07, 0x12, 0x20, 0x0a, 0x1c, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x50, 0x50, 0x5f, - 0x32, 0x4d, 0x10, 0x09, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, - 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x50, 0x50, 0x5f, 0x53, 0x44, 0x45, 0x10, 0x0a, 0x2a, 0x46, 0x0a, - 0x08, 0x55, 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x0c, 0x55, 0x50, 0x53, - 0x43, 0x41, 0x4c, 0x45, 0x52, 0x5f, 0x52, 0x47, 0x42, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x55, - 0x50, 0x53, 0x43, 0x41, 0x4c, 0x45, 0x52, 0x5f, 0x47, 0x46, 0x50, 0x47, 0x41, 0x4e, 0x10, 0x01, - 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x50, 0x53, 0x43, 0x41, 0x4c, 0x45, 0x52, 0x5f, 0x45, 0x53, 0x52, - 0x47, 0x41, 0x4e, 0x10, 0x02, 0x2a, 0xd8, 0x01, 0x0a, 0x0e, 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, - 0x63, 0x65, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x14, 0x47, 0x55, 0x49, 0x44, - 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, - 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, - 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x53, 0x49, 0x4d, 0x50, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x1d, - 0x0a, 0x19, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, - 0x54, 0x5f, 0x46, 0x41, 0x53, 0x54, 0x5f, 0x42, 0x4c, 0x55, 0x45, 0x10, 0x02, 0x12, 0x1e, 0x0a, - 0x1a, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, - 0x5f, 0x46, 0x41, 0x53, 0x54, 0x5f, 0x47, 0x52, 0x45, 0x45, 0x4e, 0x10, 0x03, 0x12, 0x18, 0x0a, - 0x14, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, - 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x10, 0x04, 0x12, 0x1a, 0x0a, 0x16, 0x47, 0x55, 0x49, 0x44, 0x41, - 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x45, - 0x52, 0x10, 0x05, 0x12, 0x1b, 0x0a, 0x17, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, - 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x45, 0x53, 0x54, 0x10, 0x06, - 0x2a, 0x91, 0x01, 0x0a, 0x11, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x63, 0x68, 0x69, 0x74, - 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, - 0x41, 0x52, 0x43, 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x4e, 0x4f, 0x4e, - 0x45, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x41, 0x52, 0x43, - 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x43, 0x4c, 0x49, 0x50, 0x5f, 0x56, - 0x49, 0x54, 0x10, 0x01, 0x12, 0x22, 0x0a, 0x1e, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x41, 0x52, - 0x43, 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x43, 0x4c, 0x49, 0x50, 0x5f, - 0x52, 0x45, 0x53, 0x4e, 0x45, 0x54, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x4d, 0x4f, 0x44, 0x45, - 0x4c, 0x5f, 0x41, 0x52, 0x43, 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x4c, - 0x44, 0x4d, 0x10, 0x03, 0x2a, 0xa2, 0x01, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x16, 0x0a, 0x12, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x41, 0x53, 0x53, 0x54, 0x48, - 0x52, 0x4f, 0x55, 0x47, 0x48, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x41, 0x43, 0x54, 0x49, 0x4f, - 0x4e, 0x5f, 0x52, 0x45, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x44, 0x55, 0x50, - 0x4c, 0x49, 0x43, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x43, 0x54, 0x49, - 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, - 0x1e, 0x0a, 0x1a, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4f, 0x42, 0x46, 0x55, 0x53, 0x43, - 0x41, 0x54, 0x45, 0x5f, 0x44, 0x55, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x45, 0x10, 0x03, 0x12, - 0x14, 0x0a, 0x10, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4f, 0x42, 0x46, 0x55, 0x53, 0x43, - 0x41, 0x54, 0x45, 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, - 0x44, 0x49, 0x53, 0x43, 0x41, 0x52, 0x44, 0x10, 0x05, 0x2a, 0x44, 0x0a, 0x0e, 0x43, 0x6c, 0x61, - 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x43, - 0x4c, 0x53, 0x46, 0x52, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x53, 0x48, - 0x4f, 0x54, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x4c, 0x53, 0x46, 0x52, 0x5f, 0x4d, 0x4f, - 0x44, 0x45, 0x5f, 0x4d, 0x55, 0x4c, 0x54, 0x49, 0x43, 0x4c, 0x41, 0x53, 0x53, 0x10, 0x01, 0x2a, - 0x8c, 0x01, 0x0a, 0x0f, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x4d, - 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x50, 0x4f, 0x4c, 0x41, - 0x54, 0x45, 0x5f, 0x4c, 0x49, 0x4e, 0x45, 0x41, 0x52, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x49, - 0x4e, 0x54, 0x45, 0x52, 0x50, 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x52, 0x49, 0x46, 0x45, 0x10, - 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x50, 0x4f, 0x4c, 0x41, 0x54, 0x45, - 0x5f, 0x56, 0x41, 0x45, 0x5f, 0x4c, 0x49, 0x4e, 0x45, 0x41, 0x52, 0x10, 0x02, 0x12, 0x19, 0x0a, - 0x15, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x50, 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x56, 0x41, 0x45, - 0x5f, 0x53, 0x4c, 0x45, 0x52, 0x50, 0x10, 0x03, 0x12, 0x14, 0x0a, 0x10, 0x49, 0x4e, 0x54, 0x45, - 0x52, 0x50, 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x46, 0x49, 0x4c, 0x4d, 0x10, 0x04, 0x2a, 0x6c, - 0x0a, 0x0a, 0x42, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x0e, - 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x46, 0x4c, 0x45, 0x43, 0x54, 0x10, 0x00, - 0x12, 0x14, 0x0a, 0x10, 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x50, 0x4c, 0x49, - 0x43, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, - 0x5f, 0x57, 0x52, 0x41, 0x50, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x42, 0x4f, 0x52, 0x44, 0x45, - 0x52, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x42, 0x4f, 0x52, 0x44, - 0x45, 0x52, 0x5f, 0x50, 0x52, 0x45, 0x46, 0x49, 0x4c, 0x4c, 0x10, 0x04, 0x2a, 0x4f, 0x0a, 0x0e, - 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x13, - 0x0a, 0x0f, 0x43, 0x4f, 0x4c, 0x4f, 0x52, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x5f, 0x48, 0x53, - 0x56, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x4f, 0x4c, 0x4f, 0x52, 0x5f, 0x4d, 0x41, 0x54, - 0x43, 0x48, 0x5f, 0x4c, 0x41, 0x42, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x4f, 0x4c, 0x4f, - 0x52, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x5f, 0x52, 0x47, 0x42, 0x10, 0x02, 0x2a, 0x3d, 0x0a, - 0x0a, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x43, - 0x41, 0x4d, 0x45, 0x52, 0x41, 0x5f, 0x50, 0x45, 0x52, 0x53, 0x50, 0x45, 0x43, 0x54, 0x49, 0x56, - 0x45, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x41, 0x4d, 0x45, 0x52, 0x41, 0x5f, 0x4f, 0x52, - 0x54, 0x48, 0x4f, 0x47, 0x52, 0x41, 0x50, 0x48, 0x49, 0x43, 0x10, 0x01, 0x2a, 0x34, 0x0a, 0x0a, - 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x45, - 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x4d, 0x45, 0x53, 0x48, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x52, - 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x43, 0x4c, 0x4f, 0x55, 0x44, - 0x10, 0x01, 0x2a, 0x3d, 0x0a, 0x0b, 0x41, 0x73, 0x73, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x50, 0x55, 0x54, 0x10, 0x00, - 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x47, 0x45, 0x54, 0x10, 0x01, 0x12, - 0x10, 0x0a, 0x0c, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, - 0x02, 0x2a, 0x81, 0x01, 0x0a, 0x08, 0x41, 0x73, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x12, 0x17, - 0x0a, 0x13, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x55, 0x4e, 0x44, 0x45, - 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x53, 0x53, 0x45, 0x54, - 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x50, 0x55, 0x54, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, - 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, - 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, - 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x54, 0x45, 0x10, 0x03, 0x12, 0x15, - 0x0a, 0x11, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, - 0x45, 0x43, 0x54, 0x10, 0x04, 0x2a, 0x57, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x67, 0x65, 0x41, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x41, 0x43, - 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x41, 0x53, 0x53, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x53, - 0x54, 0x41, 0x47, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x49, 0x53, 0x43, - 0x41, 0x52, 0x44, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x41, - 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x54, 0x55, 0x52, 0x4e, 0x10, 0x02, 0x32, 0xff, - 0x01, 0x0a, 0x11, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x12, 0x6f, 0x0a, 0x08, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, - 0x12, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, - 0x72, 0x22, 0x00, 0x30, 0x01, 0x12, 0x79, 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x47, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x12, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x32, 0x53, 0x5f, 0x41, 0x4e, 0x43, 0x45, 0x53, 0x54, 0x52, 0x41, 0x4c, 0x10, 0x08, 0x12, 0x16, + 0x0a, 0x12, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x50, + 0x50, 0x5f, 0x32, 0x4d, 0x10, 0x09, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, + 0x52, 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x50, 0x50, 0x5f, 0x53, 0x44, 0x45, 0x10, 0x0a, 0x2a, + 0x46, 0x0a, 0x08, 0x55, 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x0c, 0x55, + 0x50, 0x53, 0x43, 0x41, 0x4c, 0x45, 0x52, 0x5f, 0x52, 0x47, 0x42, 0x10, 0x00, 0x12, 0x13, 0x0a, + 0x0f, 0x55, 0x50, 0x53, 0x43, 0x41, 0x4c, 0x45, 0x52, 0x5f, 0x47, 0x46, 0x50, 0x47, 0x41, 0x4e, + 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x50, 0x53, 0x43, 0x41, 0x4c, 0x45, 0x52, 0x5f, 0x45, + 0x53, 0x52, 0x47, 0x41, 0x4e, 0x10, 0x02, 0x2a, 0xd8, 0x01, 0x0a, 0x0e, 0x47, 0x75, 0x69, 0x64, + 0x61, 0x6e, 0x63, 0x65, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x14, 0x47, 0x55, + 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x4e, 0x4f, + 0x4e, 0x45, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, + 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x53, 0x49, 0x4d, 0x50, 0x4c, 0x45, 0x10, 0x01, + 0x12, 0x1d, 0x0a, 0x19, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, + 0x53, 0x45, 0x54, 0x5f, 0x46, 0x41, 0x53, 0x54, 0x5f, 0x42, 0x4c, 0x55, 0x45, 0x10, 0x02, 0x12, + 0x1e, 0x0a, 0x1a, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, + 0x45, 0x54, 0x5f, 0x46, 0x41, 0x53, 0x54, 0x5f, 0x47, 0x52, 0x45, 0x45, 0x4e, 0x10, 0x03, 0x12, + 0x18, 0x0a, 0x14, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, + 0x45, 0x54, 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x10, 0x04, 0x12, 0x1a, 0x0a, 0x16, 0x47, 0x55, 0x49, + 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x53, 0x4c, 0x4f, + 0x57, 0x45, 0x52, 0x10, 0x05, 0x12, 0x1b, 0x0a, 0x17, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, + 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x45, 0x53, 0x54, + 0x10, 0x06, 0x2a, 0x91, 0x01, 0x0a, 0x11, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x63, 0x68, + 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x4d, 0x4f, 0x44, 0x45, + 0x4c, 0x5f, 0x41, 0x52, 0x43, 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x4e, + 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x41, + 0x52, 0x43, 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x43, 0x4c, 0x49, 0x50, + 0x5f, 0x56, 0x49, 0x54, 0x10, 0x01, 0x12, 0x22, 0x0a, 0x1e, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, + 0x41, 0x52, 0x43, 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x43, 0x4c, 0x49, + 0x50, 0x5f, 0x52, 0x45, 0x53, 0x4e, 0x45, 0x54, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x4d, 0x4f, + 0x44, 0x45, 0x4c, 0x5f, 0x41, 0x52, 0x43, 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, + 0x5f, 0x4c, 0x44, 0x4d, 0x10, 0x03, 0x2a, 0x64, 0x0a, 0x0a, 0x54, 0x32, 0x49, 0x41, 0x64, 0x61, + 0x70, 0x74, 0x65, 0x72, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x32, 0x49, 0x41, 0x44, 0x41, 0x50, 0x54, + 0x45, 0x52, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x32, 0x49, + 0x41, 0x44, 0x41, 0x50, 0x54, 0x45, 0x52, 0x5f, 0x53, 0x4b, 0x45, 0x54, 0x43, 0x48, 0x10, 0x01, + 0x12, 0x14, 0x0a, 0x10, 0x54, 0x32, 0x49, 0x41, 0x44, 0x41, 0x50, 0x54, 0x45, 0x52, 0x5f, 0x44, + 0x45, 0x50, 0x54, 0x48, 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x32, 0x49, 0x41, 0x44, 0x41, + 0x50, 0x54, 0x45, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x4e, 0x59, 0x10, 0x03, 0x2a, 0x4c, 0x0a, 0x0e, + 0x54, 0x32, 0x49, 0x41, 0x64, 0x61, 0x70, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x12, 0x18, + 0x0a, 0x14, 0x54, 0x32, 0x49, 0x41, 0x44, 0x41, 0x50, 0x54, 0x45, 0x52, 0x49, 0x4e, 0x49, 0x54, + 0x5f, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x10, 0x00, 0x12, 0x20, 0x0a, 0x1c, 0x54, 0x32, 0x49, 0x41, + 0x44, 0x41, 0x50, 0x54, 0x45, 0x52, 0x49, 0x4e, 0x49, 0x54, 0x5f, 0x41, 0x44, 0x41, 0x50, 0x54, + 0x45, 0x52, 0x5f, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x10, 0x01, 0x2a, 0xa2, 0x01, 0x0a, 0x06, 0x41, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, + 0x50, 0x41, 0x53, 0x53, 0x54, 0x48, 0x52, 0x4f, 0x55, 0x47, 0x48, 0x10, 0x00, 0x12, 0x1f, 0x0a, + 0x1b, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, + 0x54, 0x45, 0x5f, 0x44, 0x55, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x15, + 0x0a, 0x11, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x47, 0x45, 0x4e, 0x45, 0x52, + 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, + 0x4f, 0x42, 0x46, 0x55, 0x53, 0x43, 0x41, 0x54, 0x45, 0x5f, 0x44, 0x55, 0x50, 0x4c, 0x49, 0x43, + 0x41, 0x54, 0x45, 0x10, 0x03, 0x12, 0x14, 0x0a, 0x10, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, + 0x4f, 0x42, 0x46, 0x55, 0x53, 0x43, 0x41, 0x54, 0x45, 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x41, + 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x49, 0x53, 0x43, 0x41, 0x52, 0x44, 0x10, 0x05, 0x2a, + 0x44, 0x0a, 0x0e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x4d, 0x6f, 0x64, + 0x65, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x4c, 0x53, 0x46, 0x52, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, + 0x5a, 0x45, 0x52, 0x4f, 0x53, 0x48, 0x4f, 0x54, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x4c, + 0x53, 0x46, 0x52, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x4d, 0x55, 0x4c, 0x54, 0x49, 0x43, 0x4c, + 0x41, 0x53, 0x53, 0x10, 0x01, 0x2a, 0x8c, 0x01, 0x0a, 0x0f, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x70, + 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x49, 0x4e, 0x54, + 0x45, 0x52, 0x50, 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x4c, 0x49, 0x4e, 0x45, 0x41, 0x52, 0x10, + 0x00, 0x12, 0x14, 0x0a, 0x10, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x50, 0x4f, 0x4c, 0x41, 0x54, 0x45, + 0x5f, 0x52, 0x49, 0x46, 0x45, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x49, 0x4e, 0x54, 0x45, 0x52, + 0x50, 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x56, 0x41, 0x45, 0x5f, 0x4c, 0x49, 0x4e, 0x45, 0x41, + 0x52, 0x10, 0x02, 0x12, 0x19, 0x0a, 0x15, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x50, 0x4f, 0x4c, 0x41, + 0x54, 0x45, 0x5f, 0x56, 0x41, 0x45, 0x5f, 0x53, 0x4c, 0x45, 0x52, 0x50, 0x10, 0x03, 0x12, 0x14, + 0x0a, 0x10, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x50, 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x46, 0x49, + 0x4c, 0x4d, 0x10, 0x04, 0x2a, 0x6c, 0x0a, 0x0a, 0x42, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x6f, + 0x64, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x46, + 0x4c, 0x45, 0x43, 0x54, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, + 0x5f, 0x52, 0x45, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, + 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x57, 0x52, 0x41, 0x50, 0x10, 0x02, 0x12, 0x0f, 0x0a, + 0x0b, 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x03, 0x12, 0x12, + 0x0a, 0x0e, 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x50, 0x52, 0x45, 0x46, 0x49, 0x4c, 0x4c, + 0x10, 0x04, 0x2a, 0x4f, 0x0a, 0x0e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x4d, 0x61, 0x74, 0x63, 0x68, + 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x4f, 0x4c, 0x4f, 0x52, 0x5f, 0x4d, 0x41, + 0x54, 0x43, 0x48, 0x5f, 0x48, 0x53, 0x56, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x4f, 0x4c, + 0x4f, 0x52, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x5f, 0x4c, 0x41, 0x42, 0x10, 0x01, 0x12, 0x13, + 0x0a, 0x0f, 0x43, 0x4f, 0x4c, 0x4f, 0x52, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x5f, 0x52, 0x47, + 0x42, 0x10, 0x02, 0x2a, 0x3d, 0x0a, 0x0a, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x41, 0x4d, 0x45, 0x52, 0x41, 0x5f, 0x50, 0x45, 0x52, 0x53, + 0x50, 0x45, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x41, 0x4d, + 0x45, 0x52, 0x41, 0x5f, 0x4f, 0x52, 0x54, 0x48, 0x4f, 0x47, 0x52, 0x41, 0x50, 0x48, 0x49, 0x43, + 0x10, 0x01, 0x2a, 0x34, 0x0a, 0x0a, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, + 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x4d, 0x45, 0x53, 0x48, 0x10, + 0x00, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x50, 0x4f, 0x49, 0x4e, + 0x54, 0x43, 0x4c, 0x4f, 0x55, 0x44, 0x10, 0x01, 0x2a, 0x3d, 0x0a, 0x0b, 0x41, 0x73, 0x73, 0x65, + 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x53, 0x53, 0x45, 0x54, + 0x5f, 0x50, 0x55, 0x54, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, + 0x47, 0x45, 0x54, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x44, + 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x02, 0x2a, 0x81, 0x01, 0x0a, 0x08, 0x41, 0x73, 0x73, 0x65, + 0x74, 0x55, 0x73, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, + 0x45, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, + 0x0f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x50, 0x55, 0x54, + 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, + 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x41, 0x53, 0x53, 0x45, + 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4d, 0x45, 0x44, 0x49, 0x41, + 0x54, 0x45, 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, + 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x04, 0x2a, 0x57, 0x0a, 0x0b, 0x53, + 0x74, 0x61, 0x67, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, + 0x41, 0x47, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x41, 0x53, 0x53, 0x10, + 0x00, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, + 0x4e, 0x5f, 0x44, 0x49, 0x53, 0x43, 0x41, 0x52, 0x44, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x53, + 0x54, 0x41, 0x47, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x54, 0x55, + 0x52, 0x4e, 0x10, 0x02, 0x32, 0xff, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6f, 0x0a, 0x08, 0x47, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x22, 0x00, 0x30, 0x01, 0x12, 0x79, 0x0a, 0x0d, 0x43, + 0x68, 0x61, 0x69, 0x6e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x12, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x22, 0x00, 0x30, 0x01, - 0x42, 0xd6, 0x02, 0x0a, 0x2a, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, - 0x0f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x5c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, - 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, - 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x73, - 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2f, 0x76, 0x31, 0x3b, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, - 0xa2, 0x02, 0x03, 0x53, 0x50, 0x47, 0xaa, 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x61, 0x69, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, - 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x47, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x32, 0x53, 0x74, 0x61, 0x62, 0x69, - 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, - 0x70, 0x69, 0x73, 0x5c, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, - 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x29, - 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x3a, 0x3a, 0x50, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x3a, 0x3a, 0x47, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x73, 0x77, + 0x65, 0x72, 0x22, 0x00, 0x30, 0x01, 0x42, 0xd6, 0x02, 0x0a, 0x2a, 0x63, 0x6f, 0x6d, 0x2e, 0x73, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x5c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, 0x61, + 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, + 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, + 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, 0x47, 0xaa, 0x02, 0x26, 0x53, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, + 0x5c, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0xe2, 0x02, + 0x32, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x29, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x3a, 0x3a, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x3a, + 0x3a, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -4583,8 +5016,8 @@ func file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP() [] return file_stability_api_platform_generation_v1_generation_proto_rawDescData } -var file_stability_api_platform_generation_v1_generation_proto_enumTypes = make([]protoimpl.EnumInfo, 18) -var file_stability_api_platform_generation_v1_generation_proto_msgTypes = make([]protoimpl.MessageInfo, 35) +var file_stability_api_platform_generation_v1_generation_proto_enumTypes = make([]protoimpl.EnumInfo, 21) +var file_stability_api_platform_generation_v1_generation_proto_msgTypes = make([]protoimpl.MessageInfo, 38) var file_stability_api_platform_generation_v1_generation_proto_goTypes = []interface{}{ (FinishReason)(0), // 0: stabilityai.platformapis.generation.v1.FinishReason (ArtifactType)(0), // 1: stabilityai.platformapis.generation.v1.ArtifactType @@ -4594,130 +5027,142 @@ var file_stability_api_platform_generation_v1_generation_proto_goTypes = []inter (Upscaler)(0), // 5: stabilityai.platformapis.generation.v1.Upscaler (GuidancePreset)(0), // 6: stabilityai.platformapis.generation.v1.GuidancePreset (ModelArchitecture)(0), // 7: stabilityai.platformapis.generation.v1.ModelArchitecture - (Action)(0), // 8: stabilityai.platformapis.generation.v1.Action - (ClassifierMode)(0), // 9: stabilityai.platformapis.generation.v1.ClassifierMode - (InterpolateMode)(0), // 10: stabilityai.platformapis.generation.v1.InterpolateMode - (BorderMode)(0), // 11: stabilityai.platformapis.generation.v1.BorderMode - (ColorMatchMode)(0), // 12: stabilityai.platformapis.generation.v1.ColorMatchMode - (CameraType)(0), // 13: stabilityai.platformapis.generation.v1.CameraType - (RenderMode)(0), // 14: stabilityai.platformapis.generation.v1.RenderMode - (AssetAction)(0), // 15: stabilityai.platformapis.generation.v1.AssetAction - (AssetUse)(0), // 16: stabilityai.platformapis.generation.v1.AssetUse - (StageAction)(0), // 17: stabilityai.platformapis.generation.v1.StageAction - (*Token)(nil), // 18: stabilityai.platformapis.generation.v1.Token - (*Tokens)(nil), // 19: stabilityai.platformapis.generation.v1.Tokens - (*Artifact)(nil), // 20: stabilityai.platformapis.generation.v1.Artifact - (*PromptParameters)(nil), // 21: stabilityai.platformapis.generation.v1.PromptParameters - (*Prompt)(nil), // 22: stabilityai.platformapis.generation.v1.Prompt - (*SamplerParameters)(nil), // 23: stabilityai.platformapis.generation.v1.SamplerParameters - (*ConditionerParameters)(nil), // 24: stabilityai.platformapis.generation.v1.ConditionerParameters - (*ScheduleParameters)(nil), // 25: stabilityai.platformapis.generation.v1.ScheduleParameters - (*StepParameter)(nil), // 26: stabilityai.platformapis.generation.v1.StepParameter - (*Model)(nil), // 27: stabilityai.platformapis.generation.v1.Model - (*CutoutParameters)(nil), // 28: stabilityai.platformapis.generation.v1.CutoutParameters - (*GuidanceScheduleParameters)(nil), // 29: stabilityai.platformapis.generation.v1.GuidanceScheduleParameters - (*GuidanceInstanceParameters)(nil), // 30: stabilityai.platformapis.generation.v1.GuidanceInstanceParameters - (*GuidanceParameters)(nil), // 31: stabilityai.platformapis.generation.v1.GuidanceParameters - (*TransformType)(nil), // 32: stabilityai.platformapis.generation.v1.TransformType - (*ImageParameters)(nil), // 33: stabilityai.platformapis.generation.v1.ImageParameters - (*ClassifierConcept)(nil), // 34: stabilityai.platformapis.generation.v1.ClassifierConcept - (*ClassifierCategory)(nil), // 35: stabilityai.platformapis.generation.v1.ClassifierCategory - (*ClassifierParameters)(nil), // 36: stabilityai.platformapis.generation.v1.ClassifierParameters - (*InterpolateParameters)(nil), // 37: stabilityai.platformapis.generation.v1.InterpolateParameters - (*TransformColorAdjust)(nil), // 38: stabilityai.platformapis.generation.v1.TransformColorAdjust - (*TransformDepthCalc)(nil), // 39: stabilityai.platformapis.generation.v1.TransformDepthCalc - (*TransformMatrix)(nil), // 40: stabilityai.platformapis.generation.v1.TransformMatrix - (*TransformResample)(nil), // 41: stabilityai.platformapis.generation.v1.TransformResample - (*CameraParameters)(nil), // 42: stabilityai.platformapis.generation.v1.CameraParameters - (*TransformCameraPose)(nil), // 43: stabilityai.platformapis.generation.v1.TransformCameraPose - (*TransformParameters)(nil), // 44: stabilityai.platformapis.generation.v1.TransformParameters - (*AssetParameters)(nil), // 45: stabilityai.platformapis.generation.v1.AssetParameters - (*AnswerMeta)(nil), // 46: stabilityai.platformapis.generation.v1.AnswerMeta - (*Answer)(nil), // 47: stabilityai.platformapis.generation.v1.Answer - (*AnswerBatch)(nil), // 48: stabilityai.platformapis.generation.v1.AnswerBatch - (*Request)(nil), // 49: stabilityai.platformapis.generation.v1.Request - (*OnStatus)(nil), // 50: stabilityai.platformapis.generation.v1.OnStatus - (*Stage)(nil), // 51: stabilityai.platformapis.generation.v1.Stage - (*ChainRequest)(nil), // 52: stabilityai.platformapis.generation.v1.ChainRequest - (*tensors.Tensor)(nil), // 53: tensors.Tensor - (*structpb.Struct)(nil), // 54: google.protobuf.Struct + (T2IAdapter)(0), // 8: stabilityai.platformapis.generation.v1.T2IAdapter + (T2IAdapterInit)(0), // 9: stabilityai.platformapis.generation.v1.T2IAdapterInit + (Action)(0), // 10: stabilityai.platformapis.generation.v1.Action + (ClassifierMode)(0), // 11: stabilityai.platformapis.generation.v1.ClassifierMode + (InterpolateMode)(0), // 12: stabilityai.platformapis.generation.v1.InterpolateMode + (BorderMode)(0), // 13: stabilityai.platformapis.generation.v1.BorderMode + (ColorMatchMode)(0), // 14: stabilityai.platformapis.generation.v1.ColorMatchMode + (CameraType)(0), // 15: stabilityai.platformapis.generation.v1.CameraType + (RenderMode)(0), // 16: stabilityai.platformapis.generation.v1.RenderMode + (AssetAction)(0), // 17: stabilityai.platformapis.generation.v1.AssetAction + (AssetUse)(0), // 18: stabilityai.platformapis.generation.v1.AssetUse + (StageAction)(0), // 19: stabilityai.platformapis.generation.v1.StageAction + (CAIParameters_ModelMetadata)(0), // 20: stabilityai.platformapis.generation.v1.CAIParameters.ModelMetadata + (*Token)(nil), // 21: stabilityai.platformapis.generation.v1.Token + (*Tokens)(nil), // 22: stabilityai.platformapis.generation.v1.Tokens + (*Artifact)(nil), // 23: stabilityai.platformapis.generation.v1.Artifact + (*PromptParameters)(nil), // 24: stabilityai.platformapis.generation.v1.PromptParameters + (*Prompt)(nil), // 25: stabilityai.platformapis.generation.v1.Prompt + (*SamplerParameters)(nil), // 26: stabilityai.platformapis.generation.v1.SamplerParameters + (*ConditionerParameters)(nil), // 27: stabilityai.platformapis.generation.v1.ConditionerParameters + (*ScheduleParameters)(nil), // 28: stabilityai.platformapis.generation.v1.ScheduleParameters + (*StepParameter)(nil), // 29: stabilityai.platformapis.generation.v1.StepParameter + (*Model)(nil), // 30: stabilityai.platformapis.generation.v1.Model + (*CutoutParameters)(nil), // 31: stabilityai.platformapis.generation.v1.CutoutParameters + (*GuidanceScheduleParameters)(nil), // 32: stabilityai.platformapis.generation.v1.GuidanceScheduleParameters + (*GuidanceInstanceParameters)(nil), // 33: stabilityai.platformapis.generation.v1.GuidanceInstanceParameters + (*GuidanceParameters)(nil), // 34: stabilityai.platformapis.generation.v1.GuidanceParameters + (*TransformType)(nil), // 35: stabilityai.platformapis.generation.v1.TransformType + (*T2IAdapterParameter)(nil), // 36: stabilityai.platformapis.generation.v1.T2IAdapterParameter + (*CAIParameters)(nil), // 37: stabilityai.platformapis.generation.v1.CAIParameters + (*FineTuningParameters)(nil), // 38: stabilityai.platformapis.generation.v1.FineTuningParameters + (*ImageParameters)(nil), // 39: stabilityai.platformapis.generation.v1.ImageParameters + (*ClassifierConcept)(nil), // 40: stabilityai.platformapis.generation.v1.ClassifierConcept + (*ClassifierCategory)(nil), // 41: stabilityai.platformapis.generation.v1.ClassifierCategory + (*ClassifierParameters)(nil), // 42: stabilityai.platformapis.generation.v1.ClassifierParameters + (*InterpolateParameters)(nil), // 43: stabilityai.platformapis.generation.v1.InterpolateParameters + (*TransformColorAdjust)(nil), // 44: stabilityai.platformapis.generation.v1.TransformColorAdjust + (*TransformDepthCalc)(nil), // 45: stabilityai.platformapis.generation.v1.TransformDepthCalc + (*TransformMatrix)(nil), // 46: stabilityai.platformapis.generation.v1.TransformMatrix + (*TransformResample)(nil), // 47: stabilityai.platformapis.generation.v1.TransformResample + (*CameraParameters)(nil), // 48: stabilityai.platformapis.generation.v1.CameraParameters + (*TransformCameraPose)(nil), // 49: stabilityai.platformapis.generation.v1.TransformCameraPose + (*TransformParameters)(nil), // 50: stabilityai.platformapis.generation.v1.TransformParameters + (*AssetParameters)(nil), // 51: stabilityai.platformapis.generation.v1.AssetParameters + (*AnswerMeta)(nil), // 52: stabilityai.platformapis.generation.v1.AnswerMeta + (*Answer)(nil), // 53: stabilityai.platformapis.generation.v1.Answer + (*AnswerBatch)(nil), // 54: stabilityai.platformapis.generation.v1.AnswerBatch + (*Request)(nil), // 55: stabilityai.platformapis.generation.v1.Request + (*OnStatus)(nil), // 56: stabilityai.platformapis.generation.v1.OnStatus + (*Stage)(nil), // 57: stabilityai.platformapis.generation.v1.Stage + (*ChainRequest)(nil), // 58: stabilityai.platformapis.generation.v1.ChainRequest + (*tensors.Tensor)(nil), // 59: tensors.Tensor + (*structpb.Struct)(nil), // 60: google.protobuf.Struct } var file_stability_api_platform_generation_v1_generation_proto_depIdxs = []int32{ - 18, // 0: stabilityai.platformapis.generation.v1.Tokens.tokens:type_name -> stabilityai.platformapis.generation.v1.Token + 21, // 0: stabilityai.platformapis.generation.v1.Tokens.tokens:type_name -> stabilityai.platformapis.generation.v1.Token 1, // 1: stabilityai.platformapis.generation.v1.Artifact.type:type_name -> stabilityai.platformapis.generation.v1.ArtifactType - 19, // 2: stabilityai.platformapis.generation.v1.Artifact.tokens:type_name -> stabilityai.platformapis.generation.v1.Tokens - 36, // 3: stabilityai.platformapis.generation.v1.Artifact.classifier:type_name -> stabilityai.platformapis.generation.v1.ClassifierParameters - 53, // 4: stabilityai.platformapis.generation.v1.Artifact.tensor:type_name -> tensors.Tensor + 22, // 2: stabilityai.platformapis.generation.v1.Artifact.tokens:type_name -> stabilityai.platformapis.generation.v1.Tokens + 42, // 3: stabilityai.platformapis.generation.v1.Artifact.classifier:type_name -> stabilityai.platformapis.generation.v1.ClassifierParameters + 59, // 4: stabilityai.platformapis.generation.v1.Artifact.tensor:type_name -> tensors.Tensor 0, // 5: stabilityai.platformapis.generation.v1.Artifact.finish_reason:type_name -> stabilityai.platformapis.generation.v1.FinishReason - 21, // 6: stabilityai.platformapis.generation.v1.Prompt.parameters:type_name -> stabilityai.platformapis.generation.v1.PromptParameters - 19, // 7: stabilityai.platformapis.generation.v1.Prompt.tokens:type_name -> stabilityai.platformapis.generation.v1.Tokens - 20, // 8: stabilityai.platformapis.generation.v1.Prompt.artifact:type_name -> stabilityai.platformapis.generation.v1.Artifact - 27, // 9: stabilityai.platformapis.generation.v1.ConditionerParameters.conditioner:type_name -> stabilityai.platformapis.generation.v1.Model - 23, // 10: stabilityai.platformapis.generation.v1.StepParameter.sampler:type_name -> stabilityai.platformapis.generation.v1.SamplerParameters - 25, // 11: stabilityai.platformapis.generation.v1.StepParameter.schedule:type_name -> stabilityai.platformapis.generation.v1.ScheduleParameters - 31, // 12: stabilityai.platformapis.generation.v1.StepParameter.guidance:type_name -> stabilityai.platformapis.generation.v1.GuidanceParameters + 24, // 6: stabilityai.platformapis.generation.v1.Prompt.parameters:type_name -> stabilityai.platformapis.generation.v1.PromptParameters + 22, // 7: stabilityai.platformapis.generation.v1.Prompt.tokens:type_name -> stabilityai.platformapis.generation.v1.Tokens + 23, // 8: stabilityai.platformapis.generation.v1.Prompt.artifact:type_name -> stabilityai.platformapis.generation.v1.Artifact + 30, // 9: stabilityai.platformapis.generation.v1.ConditionerParameters.conditioner:type_name -> stabilityai.platformapis.generation.v1.Model + 26, // 10: stabilityai.platformapis.generation.v1.StepParameter.sampler:type_name -> stabilityai.platformapis.generation.v1.SamplerParameters + 28, // 11: stabilityai.platformapis.generation.v1.StepParameter.schedule:type_name -> stabilityai.platformapis.generation.v1.ScheduleParameters + 34, // 12: stabilityai.platformapis.generation.v1.StepParameter.guidance:type_name -> stabilityai.platformapis.generation.v1.GuidanceParameters 7, // 13: stabilityai.platformapis.generation.v1.Model.architecture:type_name -> stabilityai.platformapis.generation.v1.ModelArchitecture - 28, // 14: stabilityai.platformapis.generation.v1.CutoutParameters.cutouts:type_name -> stabilityai.platformapis.generation.v1.CutoutParameters - 27, // 15: stabilityai.platformapis.generation.v1.GuidanceInstanceParameters.models:type_name -> stabilityai.platformapis.generation.v1.Model - 29, // 16: stabilityai.platformapis.generation.v1.GuidanceInstanceParameters.schedule:type_name -> stabilityai.platformapis.generation.v1.GuidanceScheduleParameters - 28, // 17: stabilityai.platformapis.generation.v1.GuidanceInstanceParameters.cutouts:type_name -> stabilityai.platformapis.generation.v1.CutoutParameters - 22, // 18: stabilityai.platformapis.generation.v1.GuidanceInstanceParameters.prompt:type_name -> stabilityai.platformapis.generation.v1.Prompt + 31, // 14: stabilityai.platformapis.generation.v1.CutoutParameters.cutouts:type_name -> stabilityai.platformapis.generation.v1.CutoutParameters + 30, // 15: stabilityai.platformapis.generation.v1.GuidanceInstanceParameters.models:type_name -> stabilityai.platformapis.generation.v1.Model + 32, // 16: stabilityai.platformapis.generation.v1.GuidanceInstanceParameters.schedule:type_name -> stabilityai.platformapis.generation.v1.GuidanceScheduleParameters + 31, // 17: stabilityai.platformapis.generation.v1.GuidanceInstanceParameters.cutouts:type_name -> stabilityai.platformapis.generation.v1.CutoutParameters + 25, // 18: stabilityai.platformapis.generation.v1.GuidanceInstanceParameters.prompt:type_name -> stabilityai.platformapis.generation.v1.Prompt 6, // 19: stabilityai.platformapis.generation.v1.GuidanceParameters.guidance_preset:type_name -> stabilityai.platformapis.generation.v1.GuidancePreset - 30, // 20: stabilityai.platformapis.generation.v1.GuidanceParameters.instances:type_name -> stabilityai.platformapis.generation.v1.GuidanceInstanceParameters + 33, // 20: stabilityai.platformapis.generation.v1.GuidanceParameters.instances:type_name -> stabilityai.platformapis.generation.v1.GuidanceInstanceParameters 4, // 21: stabilityai.platformapis.generation.v1.TransformType.diffusion:type_name -> stabilityai.platformapis.generation.v1.DiffusionSampler 5, // 22: stabilityai.platformapis.generation.v1.TransformType.upscaler:type_name -> stabilityai.platformapis.generation.v1.Upscaler - 32, // 23: stabilityai.platformapis.generation.v1.ImageParameters.transform:type_name -> stabilityai.platformapis.generation.v1.TransformType - 26, // 24: stabilityai.platformapis.generation.v1.ImageParameters.parameters:type_name -> stabilityai.platformapis.generation.v1.StepParameter - 2, // 25: stabilityai.platformapis.generation.v1.ImageParameters.masked_area_init:type_name -> stabilityai.platformapis.generation.v1.MaskedAreaInit - 3, // 26: stabilityai.platformapis.generation.v1.ImageParameters.weight_method:type_name -> stabilityai.platformapis.generation.v1.WeightMethod - 34, // 27: stabilityai.platformapis.generation.v1.ClassifierCategory.concepts:type_name -> stabilityai.platformapis.generation.v1.ClassifierConcept - 8, // 28: stabilityai.platformapis.generation.v1.ClassifierCategory.action:type_name -> stabilityai.platformapis.generation.v1.Action - 9, // 29: stabilityai.platformapis.generation.v1.ClassifierCategory.classifier_mode:type_name -> stabilityai.platformapis.generation.v1.ClassifierMode - 35, // 30: stabilityai.platformapis.generation.v1.ClassifierParameters.categories:type_name -> stabilityai.platformapis.generation.v1.ClassifierCategory - 35, // 31: stabilityai.platformapis.generation.v1.ClassifierParameters.exceeds:type_name -> stabilityai.platformapis.generation.v1.ClassifierCategory - 8, // 32: stabilityai.platformapis.generation.v1.ClassifierParameters.realized_action:type_name -> stabilityai.platformapis.generation.v1.Action - 10, // 33: stabilityai.platformapis.generation.v1.InterpolateParameters.mode:type_name -> stabilityai.platformapis.generation.v1.InterpolateMode - 20, // 34: stabilityai.platformapis.generation.v1.TransformColorAdjust.match_image:type_name -> stabilityai.platformapis.generation.v1.Artifact - 12, // 35: stabilityai.platformapis.generation.v1.TransformColorAdjust.match_mode:type_name -> stabilityai.platformapis.generation.v1.ColorMatchMode - 11, // 36: stabilityai.platformapis.generation.v1.TransformResample.border_mode:type_name -> stabilityai.platformapis.generation.v1.BorderMode - 40, // 37: stabilityai.platformapis.generation.v1.TransformResample.transform:type_name -> stabilityai.platformapis.generation.v1.TransformMatrix - 40, // 38: stabilityai.platformapis.generation.v1.TransformResample.prev_transform:type_name -> stabilityai.platformapis.generation.v1.TransformMatrix - 13, // 39: stabilityai.platformapis.generation.v1.CameraParameters.camera_type:type_name -> stabilityai.platformapis.generation.v1.CameraType - 40, // 40: stabilityai.platformapis.generation.v1.TransformCameraPose.world_to_view_matrix:type_name -> stabilityai.platformapis.generation.v1.TransformMatrix - 42, // 41: stabilityai.platformapis.generation.v1.TransformCameraPose.camera_parameters:type_name -> stabilityai.platformapis.generation.v1.CameraParameters - 14, // 42: stabilityai.platformapis.generation.v1.TransformCameraPose.render_mode:type_name -> stabilityai.platformapis.generation.v1.RenderMode - 38, // 43: stabilityai.platformapis.generation.v1.TransformParameters.color_adjust:type_name -> stabilityai.platformapis.generation.v1.TransformColorAdjust - 39, // 44: stabilityai.platformapis.generation.v1.TransformParameters.depth_calc:type_name -> stabilityai.platformapis.generation.v1.TransformDepthCalc - 41, // 45: stabilityai.platformapis.generation.v1.TransformParameters.resample:type_name -> stabilityai.platformapis.generation.v1.TransformResample - 43, // 46: stabilityai.platformapis.generation.v1.TransformParameters.camera_pose:type_name -> stabilityai.platformapis.generation.v1.TransformCameraPose - 15, // 47: stabilityai.platformapis.generation.v1.AssetParameters.action:type_name -> stabilityai.platformapis.generation.v1.AssetAction - 16, // 48: stabilityai.platformapis.generation.v1.AssetParameters.use:type_name -> stabilityai.platformapis.generation.v1.AssetUse - 46, // 49: stabilityai.platformapis.generation.v1.Answer.meta:type_name -> stabilityai.platformapis.generation.v1.AnswerMeta - 20, // 50: stabilityai.platformapis.generation.v1.Answer.artifacts:type_name -> stabilityai.platformapis.generation.v1.Artifact - 47, // 51: stabilityai.platformapis.generation.v1.AnswerBatch.answers:type_name -> stabilityai.platformapis.generation.v1.Answer - 1, // 52: stabilityai.platformapis.generation.v1.Request.requested_type:type_name -> stabilityai.platformapis.generation.v1.ArtifactType - 22, // 53: stabilityai.platformapis.generation.v1.Request.prompt:type_name -> stabilityai.platformapis.generation.v1.Prompt - 33, // 54: stabilityai.platformapis.generation.v1.Request.image:type_name -> stabilityai.platformapis.generation.v1.ImageParameters - 36, // 55: stabilityai.platformapis.generation.v1.Request.classifier:type_name -> stabilityai.platformapis.generation.v1.ClassifierParameters - 45, // 56: stabilityai.platformapis.generation.v1.Request.asset:type_name -> stabilityai.platformapis.generation.v1.AssetParameters - 37, // 57: stabilityai.platformapis.generation.v1.Request.interpolate:type_name -> stabilityai.platformapis.generation.v1.InterpolateParameters - 44, // 58: stabilityai.platformapis.generation.v1.Request.transform:type_name -> stabilityai.platformapis.generation.v1.TransformParameters - 24, // 59: stabilityai.platformapis.generation.v1.Request.conditioner:type_name -> stabilityai.platformapis.generation.v1.ConditionerParameters - 54, // 60: stabilityai.platformapis.generation.v1.Request.extras:type_name -> google.protobuf.Struct - 0, // 61: stabilityai.platformapis.generation.v1.OnStatus.reason:type_name -> stabilityai.platformapis.generation.v1.FinishReason - 17, // 62: stabilityai.platformapis.generation.v1.OnStatus.action:type_name -> stabilityai.platformapis.generation.v1.StageAction - 49, // 63: stabilityai.platformapis.generation.v1.Stage.request:type_name -> stabilityai.platformapis.generation.v1.Request - 50, // 64: stabilityai.platformapis.generation.v1.Stage.on_status:type_name -> stabilityai.platformapis.generation.v1.OnStatus - 51, // 65: stabilityai.platformapis.generation.v1.ChainRequest.stage:type_name -> stabilityai.platformapis.generation.v1.Stage - 49, // 66: stabilityai.platformapis.generation.v1.GenerationService.Generate:input_type -> stabilityai.platformapis.generation.v1.Request - 52, // 67: stabilityai.platformapis.generation.v1.GenerationService.ChainGenerate:input_type -> stabilityai.platformapis.generation.v1.ChainRequest - 47, // 68: stabilityai.platformapis.generation.v1.GenerationService.Generate:output_type -> stabilityai.platformapis.generation.v1.Answer - 47, // 69: stabilityai.platformapis.generation.v1.GenerationService.ChainGenerate:output_type -> stabilityai.platformapis.generation.v1.Answer - 68, // [68:70] is the sub-list for method output_type - 66, // [66:68] is the sub-list for method input_type - 66, // [66:66] is the sub-list for extension type_name - 66, // [66:66] is the sub-list for extension extendee - 0, // [0:66] is the sub-list for field type_name + 8, // 23: stabilityai.platformapis.generation.v1.T2IAdapterParameter.adapter_type:type_name -> stabilityai.platformapis.generation.v1.T2IAdapter + 9, // 24: stabilityai.platformapis.generation.v1.T2IAdapterParameter.adapter_init_type:type_name -> stabilityai.platformapis.generation.v1.T2IAdapterInit + 20, // 25: stabilityai.platformapis.generation.v1.CAIParameters.model_metadata:type_name -> stabilityai.platformapis.generation.v1.CAIParameters.ModelMetadata + 35, // 26: stabilityai.platformapis.generation.v1.ImageParameters.transform:type_name -> stabilityai.platformapis.generation.v1.TransformType + 29, // 27: stabilityai.platformapis.generation.v1.ImageParameters.parameters:type_name -> stabilityai.platformapis.generation.v1.StepParameter + 2, // 28: stabilityai.platformapis.generation.v1.ImageParameters.masked_area_init:type_name -> stabilityai.platformapis.generation.v1.MaskedAreaInit + 3, // 29: stabilityai.platformapis.generation.v1.ImageParameters.weight_method:type_name -> stabilityai.platformapis.generation.v1.WeightMethod + 37, // 30: stabilityai.platformapis.generation.v1.ImageParameters.cai_parameters:type_name -> stabilityai.platformapis.generation.v1.CAIParameters + 36, // 31: stabilityai.platformapis.generation.v1.ImageParameters.adapter:type_name -> stabilityai.platformapis.generation.v1.T2IAdapterParameter + 38, // 32: stabilityai.platformapis.generation.v1.ImageParameters.fine_tuning_parameters:type_name -> stabilityai.platformapis.generation.v1.FineTuningParameters + 40, // 33: stabilityai.platformapis.generation.v1.ClassifierCategory.concepts:type_name -> stabilityai.platformapis.generation.v1.ClassifierConcept + 10, // 34: stabilityai.platformapis.generation.v1.ClassifierCategory.action:type_name -> stabilityai.platformapis.generation.v1.Action + 11, // 35: stabilityai.platformapis.generation.v1.ClassifierCategory.classifier_mode:type_name -> stabilityai.platformapis.generation.v1.ClassifierMode + 41, // 36: stabilityai.platformapis.generation.v1.ClassifierParameters.categories:type_name -> stabilityai.platformapis.generation.v1.ClassifierCategory + 41, // 37: stabilityai.platformapis.generation.v1.ClassifierParameters.exceeds:type_name -> stabilityai.platformapis.generation.v1.ClassifierCategory + 10, // 38: stabilityai.platformapis.generation.v1.ClassifierParameters.realized_action:type_name -> stabilityai.platformapis.generation.v1.Action + 12, // 39: stabilityai.platformapis.generation.v1.InterpolateParameters.mode:type_name -> stabilityai.platformapis.generation.v1.InterpolateMode + 23, // 40: stabilityai.platformapis.generation.v1.TransformColorAdjust.match_image:type_name -> stabilityai.platformapis.generation.v1.Artifact + 14, // 41: stabilityai.platformapis.generation.v1.TransformColorAdjust.match_mode:type_name -> stabilityai.platformapis.generation.v1.ColorMatchMode + 13, // 42: stabilityai.platformapis.generation.v1.TransformResample.border_mode:type_name -> stabilityai.platformapis.generation.v1.BorderMode + 46, // 43: stabilityai.platformapis.generation.v1.TransformResample.transform:type_name -> stabilityai.platformapis.generation.v1.TransformMatrix + 46, // 44: stabilityai.platformapis.generation.v1.TransformResample.prev_transform:type_name -> stabilityai.platformapis.generation.v1.TransformMatrix + 15, // 45: stabilityai.platformapis.generation.v1.CameraParameters.camera_type:type_name -> stabilityai.platformapis.generation.v1.CameraType + 46, // 46: stabilityai.platformapis.generation.v1.TransformCameraPose.world_to_view_matrix:type_name -> stabilityai.platformapis.generation.v1.TransformMatrix + 48, // 47: stabilityai.platformapis.generation.v1.TransformCameraPose.camera_parameters:type_name -> stabilityai.platformapis.generation.v1.CameraParameters + 16, // 48: stabilityai.platformapis.generation.v1.TransformCameraPose.render_mode:type_name -> stabilityai.platformapis.generation.v1.RenderMode + 44, // 49: stabilityai.platformapis.generation.v1.TransformParameters.color_adjust:type_name -> stabilityai.platformapis.generation.v1.TransformColorAdjust + 45, // 50: stabilityai.platformapis.generation.v1.TransformParameters.depth_calc:type_name -> stabilityai.platformapis.generation.v1.TransformDepthCalc + 47, // 51: stabilityai.platformapis.generation.v1.TransformParameters.resample:type_name -> stabilityai.platformapis.generation.v1.TransformResample + 49, // 52: stabilityai.platformapis.generation.v1.TransformParameters.camera_pose:type_name -> stabilityai.platformapis.generation.v1.TransformCameraPose + 17, // 53: stabilityai.platformapis.generation.v1.AssetParameters.action:type_name -> stabilityai.platformapis.generation.v1.AssetAction + 18, // 54: stabilityai.platformapis.generation.v1.AssetParameters.use:type_name -> stabilityai.platformapis.generation.v1.AssetUse + 52, // 55: stabilityai.platformapis.generation.v1.Answer.meta:type_name -> stabilityai.platformapis.generation.v1.AnswerMeta + 23, // 56: stabilityai.platformapis.generation.v1.Answer.artifacts:type_name -> stabilityai.platformapis.generation.v1.Artifact + 53, // 57: stabilityai.platformapis.generation.v1.AnswerBatch.answers:type_name -> stabilityai.platformapis.generation.v1.Answer + 1, // 58: stabilityai.platformapis.generation.v1.Request.requested_type:type_name -> stabilityai.platformapis.generation.v1.ArtifactType + 25, // 59: stabilityai.platformapis.generation.v1.Request.prompt:type_name -> stabilityai.platformapis.generation.v1.Prompt + 39, // 60: stabilityai.platformapis.generation.v1.Request.image:type_name -> stabilityai.platformapis.generation.v1.ImageParameters + 42, // 61: stabilityai.platformapis.generation.v1.Request.classifier:type_name -> stabilityai.platformapis.generation.v1.ClassifierParameters + 51, // 62: stabilityai.platformapis.generation.v1.Request.asset:type_name -> stabilityai.platformapis.generation.v1.AssetParameters + 43, // 63: stabilityai.platformapis.generation.v1.Request.interpolate:type_name -> stabilityai.platformapis.generation.v1.InterpolateParameters + 50, // 64: stabilityai.platformapis.generation.v1.Request.transform:type_name -> stabilityai.platformapis.generation.v1.TransformParameters + 27, // 65: stabilityai.platformapis.generation.v1.Request.conditioner:type_name -> stabilityai.platformapis.generation.v1.ConditionerParameters + 60, // 66: stabilityai.platformapis.generation.v1.Request.extras:type_name -> google.protobuf.Struct + 0, // 67: stabilityai.platformapis.generation.v1.OnStatus.reason:type_name -> stabilityai.platformapis.generation.v1.FinishReason + 19, // 68: stabilityai.platformapis.generation.v1.OnStatus.action:type_name -> stabilityai.platformapis.generation.v1.StageAction + 55, // 69: stabilityai.platformapis.generation.v1.Stage.request:type_name -> stabilityai.platformapis.generation.v1.Request + 56, // 70: stabilityai.platformapis.generation.v1.Stage.on_status:type_name -> stabilityai.platformapis.generation.v1.OnStatus + 57, // 71: stabilityai.platformapis.generation.v1.ChainRequest.stage:type_name -> stabilityai.platformapis.generation.v1.Stage + 55, // 72: stabilityai.platformapis.generation.v1.GenerationService.Generate:input_type -> stabilityai.platformapis.generation.v1.Request + 58, // 73: stabilityai.platformapis.generation.v1.GenerationService.ChainGenerate:input_type -> stabilityai.platformapis.generation.v1.ChainRequest + 53, // 74: stabilityai.platformapis.generation.v1.GenerationService.Generate:output_type -> stabilityai.platformapis.generation.v1.Answer + 53, // 75: stabilityai.platformapis.generation.v1.GenerationService.ChainGenerate:output_type -> stabilityai.platformapis.generation.v1.Answer + 74, // [74:76] is the sub-list for method output_type + 72, // [72:74] is the sub-list for method input_type + 72, // [72:72] is the sub-list for extension type_name + 72, // [72:72] is the sub-list for extension extendee + 0, // [0:72] is the sub-list for field type_name } func init() { file_stability_api_platform_generation_v1_generation_proto_init() } @@ -4907,7 +5352,7 @@ func file_stability_api_platform_generation_v1_generation_proto_init() { } } file_stability_api_platform_generation_v1_generation_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImageParameters); i { + switch v := v.(*T2IAdapterParameter); i { case 0: return &v.state case 1: @@ -4919,7 +5364,7 @@ func file_stability_api_platform_generation_v1_generation_proto_init() { } } file_stability_api_platform_generation_v1_generation_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClassifierConcept); i { + switch v := v.(*CAIParameters); i { case 0: return &v.state case 1: @@ -4931,7 +5376,7 @@ func file_stability_api_platform_generation_v1_generation_proto_init() { } } file_stability_api_platform_generation_v1_generation_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClassifierCategory); i { + switch v := v.(*FineTuningParameters); i { case 0: return &v.state case 1: @@ -4943,7 +5388,7 @@ func file_stability_api_platform_generation_v1_generation_proto_init() { } } file_stability_api_platform_generation_v1_generation_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClassifierParameters); i { + switch v := v.(*ImageParameters); i { case 0: return &v.state case 1: @@ -4955,7 +5400,7 @@ func file_stability_api_platform_generation_v1_generation_proto_init() { } } file_stability_api_platform_generation_v1_generation_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InterpolateParameters); i { + switch v := v.(*ClassifierConcept); i { case 0: return &v.state case 1: @@ -4967,7 +5412,7 @@ func file_stability_api_platform_generation_v1_generation_proto_init() { } } file_stability_api_platform_generation_v1_generation_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransformColorAdjust); i { + switch v := v.(*ClassifierCategory); i { case 0: return &v.state case 1: @@ -4979,7 +5424,7 @@ func file_stability_api_platform_generation_v1_generation_proto_init() { } } file_stability_api_platform_generation_v1_generation_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransformDepthCalc); i { + switch v := v.(*ClassifierParameters); i { case 0: return &v.state case 1: @@ -4991,7 +5436,7 @@ func file_stability_api_platform_generation_v1_generation_proto_init() { } } file_stability_api_platform_generation_v1_generation_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransformMatrix); i { + switch v := v.(*InterpolateParameters); i { case 0: return &v.state case 1: @@ -5003,7 +5448,7 @@ func file_stability_api_platform_generation_v1_generation_proto_init() { } } file_stability_api_platform_generation_v1_generation_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransformResample); i { + switch v := v.(*TransformColorAdjust); i { case 0: return &v.state case 1: @@ -5015,7 +5460,7 @@ func file_stability_api_platform_generation_v1_generation_proto_init() { } } file_stability_api_platform_generation_v1_generation_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CameraParameters); i { + switch v := v.(*TransformDepthCalc); i { case 0: return &v.state case 1: @@ -5027,7 +5472,7 @@ func file_stability_api_platform_generation_v1_generation_proto_init() { } } file_stability_api_platform_generation_v1_generation_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransformCameraPose); i { + switch v := v.(*TransformMatrix); i { case 0: return &v.state case 1: @@ -5039,7 +5484,7 @@ func file_stability_api_platform_generation_v1_generation_proto_init() { } } file_stability_api_platform_generation_v1_generation_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransformParameters); i { + switch v := v.(*TransformResample); i { case 0: return &v.state case 1: @@ -5051,7 +5496,7 @@ func file_stability_api_platform_generation_v1_generation_proto_init() { } } file_stability_api_platform_generation_v1_generation_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AssetParameters); i { + switch v := v.(*CameraParameters); i { case 0: return &v.state case 1: @@ -5063,7 +5508,7 @@ func file_stability_api_platform_generation_v1_generation_proto_init() { } } file_stability_api_platform_generation_v1_generation_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AnswerMeta); i { + switch v := v.(*TransformCameraPose); i { case 0: return &v.state case 1: @@ -5075,7 +5520,7 @@ func file_stability_api_platform_generation_v1_generation_proto_init() { } } file_stability_api_platform_generation_v1_generation_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Answer); i { + switch v := v.(*TransformParameters); i { case 0: return &v.state case 1: @@ -5087,7 +5532,7 @@ func file_stability_api_platform_generation_v1_generation_proto_init() { } } file_stability_api_platform_generation_v1_generation_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AnswerBatch); i { + switch v := v.(*AssetParameters); i { case 0: return &v.state case 1: @@ -5099,7 +5544,7 @@ func file_stability_api_platform_generation_v1_generation_proto_init() { } } file_stability_api_platform_generation_v1_generation_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Request); i { + switch v := v.(*AnswerMeta); i { case 0: return &v.state case 1: @@ -5111,7 +5556,7 @@ func file_stability_api_platform_generation_v1_generation_proto_init() { } } file_stability_api_platform_generation_v1_generation_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OnStatus); i { + switch v := v.(*Answer); i { case 0: return &v.state case 1: @@ -5123,7 +5568,7 @@ func file_stability_api_platform_generation_v1_generation_proto_init() { } } file_stability_api_platform_generation_v1_generation_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Stage); i { + switch v := v.(*AnswerBatch); i { case 0: return &v.state case 1: @@ -5135,6 +5580,42 @@ func file_stability_api_platform_generation_v1_generation_proto_init() { } } file_stability_api_platform_generation_v1_generation_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stability_api_platform_generation_v1_generation_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OnStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stability_api_platform_generation_v1_generation_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Stage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stability_api_platform_generation_v1_generation_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ChainRequest); i { case 0: return &v.state @@ -5172,38 +5653,42 @@ func file_stability_api_platform_generation_v1_generation_proto_init() { (*TransformType_Diffusion)(nil), (*TransformType_Upscaler)(nil), } - file_stability_api_platform_generation_v1_generation_proto_msgTypes[15].OneofWrappers = []interface{}{} - file_stability_api_platform_generation_v1_generation_proto_msgTypes[16].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[16].OneofWrappers = []interface{}{ + (*CAIParameters_ModelMetadata_)(nil), + } file_stability_api_platform_generation_v1_generation_proto_msgTypes[17].OneofWrappers = []interface{}{} file_stability_api_platform_generation_v1_generation_proto_msgTypes[18].OneofWrappers = []interface{}{} file_stability_api_platform_generation_v1_generation_proto_msgTypes[19].OneofWrappers = []interface{}{} file_stability_api_platform_generation_v1_generation_proto_msgTypes[20].OneofWrappers = []interface{}{} file_stability_api_platform_generation_v1_generation_proto_msgTypes[21].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[22].OneofWrappers = []interface{}{} file_stability_api_platform_generation_v1_generation_proto_msgTypes[23].OneofWrappers = []interface{}{} file_stability_api_platform_generation_v1_generation_proto_msgTypes[24].OneofWrappers = []interface{}{} - file_stability_api_platform_generation_v1_generation_proto_msgTypes[26].OneofWrappers = []interface{}{ + file_stability_api_platform_generation_v1_generation_proto_msgTypes[26].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[27].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[29].OneofWrappers = []interface{}{ (*TransformParameters_ColorAdjust)(nil), (*TransformParameters_DepthCalc)(nil), (*TransformParameters_Resample)(nil), (*TransformParameters_CameraPose)(nil), } - file_stability_api_platform_generation_v1_generation_proto_msgTypes[28].OneofWrappers = []interface{}{} - file_stability_api_platform_generation_v1_generation_proto_msgTypes[29].OneofWrappers = []interface{}{} - file_stability_api_platform_generation_v1_generation_proto_msgTypes[31].OneofWrappers = []interface{}{ + file_stability_api_platform_generation_v1_generation_proto_msgTypes[31].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[32].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[34].OneofWrappers = []interface{}{ (*Request_Image)(nil), (*Request_Classifier)(nil), (*Request_Asset)(nil), (*Request_Interpolate)(nil), (*Request_Transform)(nil), } - file_stability_api_platform_generation_v1_generation_proto_msgTypes[32].OneofWrappers = []interface{}{} + file_stability_api_platform_generation_v1_generation_proto_msgTypes[35].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_stability_api_platform_generation_v1_generation_proto_rawDesc, - NumEnums: 18, - NumMessages: 35, + NumEnums: 21, + NumMessages: 38, NumExtensions: 0, NumServices: 1, }, diff --git a/src/stability_api/platform/generation/v1/generation_pb.d.ts b/src/stability_api/platform/generation/v1/generation_pb.d.ts index 3dfd700..03bf121 100644 --- a/src/stability_api/platform/generation/v1/generation_pb.d.ts +++ b/src/stability_api/platform/generation/v1/generation_pb.d.ts @@ -284,6 +284,56 @@ export declare enum ModelArchitecture { LDM = 3, } +/** + * @generated from enum stabilityai.platformapis.generation.v1.T2IAdapter + */ +export declare enum T2IAdapter { + /** + * @generated from enum value: T2IADAPTER_NONE = 0; + */ + T2IADAPTER_NONE = 0, + + /** + * these are all compatible with SDXL. + * + * @generated from enum value: T2IADAPTER_SKETCH = 1; + */ + T2IADAPTER_SKETCH = 1, + + /** + * @generated from enum value: T2IADAPTER_DEPTH = 2; + */ + T2IADAPTER_DEPTH = 2, + + /** + * @generated from enum value: T2IADAPTER_CANNY = 3; + */ + T2IADAPTER_CANNY = 3, +} + +/** + * If adapter_type is not None, then the user can choose what type of init_image to pass in: either an arbitrary image + * which will then be converted to a depth map, sketch, or canny edge for the sketch, depth and canny adapters respectively, + * or they can pass in their own depth map, sketch or canny edge. This field controls whether the init_image should + * be interpreted as an arbitrary image to be preprocessed ready for the t2i adapter, or whether it has already been + * preprocessed elsewhere + * + * @generated from enum stabilityai.platformapis.generation.v1.T2IAdapterInit + */ +export declare enum T2IAdapterInit { + /** + * these are all compatible with SDXL. + * + * @generated from enum value: T2IADAPTERINIT_IMAGE = 0; + */ + T2IADAPTERINIT_IMAGE = 0, + + /** + * @generated from enum value: T2IADAPTERINIT_ADAPTER_IMAGE = 1; + */ + T2IADAPTERINIT_ADAPTER_IMAGE = 1, +} + /** * @generated from enum stabilityai.platformapis.generation.v1.Action */ @@ -1265,6 +1315,125 @@ export declare class TransformType extends Message { static equals(a: TransformType | PlainMessage | undefined, b: TransformType | PlainMessage | undefined): boolean; } +/** + * @generated from message stabilityai.platformapis.generation.v1.T2IAdapterParameter + */ +export declare class T2IAdapterParameter extends Message { + /** + * @generated from field: stabilityai.platformapis.generation.v1.T2IAdapter adapter_type = 1; + */ + adapterType: T2IAdapter; + + /** + * @generated from field: float adapter_strength = 2; + */ + adapterStrength: number; + + /** + * @generated from field: stabilityai.platformapis.generation.v1.T2IAdapterInit adapter_init_type = 3; + */ + adapterInitType: T2IAdapterInit; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.T2IAdapterParameter"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): T2IAdapterParameter; + + static fromJson(jsonValue: JsonValue, options?: Partial): T2IAdapterParameter; + + static fromJsonString(jsonString: string, options?: Partial): T2IAdapterParameter; + + static equals(a: T2IAdapterParameter | PlainMessage | undefined, b: T2IAdapterParameter | PlainMessage | undefined): boolean; +} + +/** + * @generated from message stabilityai.platformapis.generation.v1.CAIParameters + */ +export declare class CAIParameters extends Message { + /** + * @generated from oneof stabilityai.platformapis.generation.v1.CAIParameters.parameters + */ + parameters: { + /** + * @generated from field: stabilityai.platformapis.generation.v1.CAIParameters.ModelMetadata model_metadata = 1; + */ + value: CAIParameters_ModelMetadata; + case: "modelMetadata"; + } | { case: undefined; value?: undefined }; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.CAIParameters"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): CAIParameters; + + static fromJson(jsonValue: JsonValue, options?: Partial): CAIParameters; + + static fromJsonString(jsonString: string, options?: Partial): CAIParameters; + + static equals(a: CAIParameters | PlainMessage | undefined, b: CAIParameters | PlainMessage | undefined): boolean; +} + +/** + * @generated from enum stabilityai.platformapis.generation.v1.CAIParameters.ModelMetadata + */ +export declare enum CAIParameters_ModelMetadata { + /** + * @generated from enum value: MODEL_METADATA_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * @generated from enum value: MODEL_METADATA_SIGN_WITH_ENGINE_ID = 1; + */ + SIGN_WITH_ENGINE_ID = 1, +} + +/** + * FineTuningParameters specify which fine-tuned models to use for generation. + * + * @generated from message stabilityai.platformapis.generation.v1.FineTuningParameters + */ +export declare class FineTuningParameters extends Message { + /** + * The id of the fine-tuned model to generate content from. + * See FineTuningModel.id in finetuning.proto. + * Model Id is created upon invoking CreateFineTuningModel. + * When GetFineTuningModelStatus returns a FineTuningModelStatus of + * FINE_TUNING_MODEL_STATUS_COMPLETED, the model can be used + * for generating images. + * + * @generated from field: string model_id = 1; + */ + modelId: string; + + /** + * defaults to 1.0 + * + * @generated from field: optional float weight = 2; + */ + weight?: number; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "stabilityai.platformapis.generation.v1.FineTuningParameters"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): FineTuningParameters; + + static fromJson(jsonValue: JsonValue, options?: Partial): FineTuningParameters; + + static fromJsonString(jsonString: string, options?: Partial): FineTuningParameters; + + static equals(a: FineTuningParameters | PlainMessage | undefined, b: FineTuningParameters | PlainMessage | undefined): boolean; +} + /** * @generated from message stabilityai.platformapis.generation.v1.ImageParameters */ @@ -1325,6 +1494,25 @@ export declare class ImageParameters extends Message { */ quantize?: boolean; + /** + * Set field to have image signed by C2PA + * + * @generated from field: optional stabilityai.platformapis.generation.v1.CAIParameters cai_parameters = 11; + */ + caiParameters?: CAIParameters; + + /** + * @generated from field: optional stabilityai.platformapis.generation.v1.T2IAdapterParameter adapter = 12; + */ + adapter?: T2IAdapterParameter; + + /** + * next available tag: 14 + * + * @generated from field: repeated stabilityai.platformapis.generation.v1.FineTuningParameters fine_tuning_parameters = 13; + */ + fineTuningParameters: FineTuningParameters[]; + constructor(data?: PartialMessage); static readonly runtime: typeof proto3; diff --git a/src/stability_api/platform/generation/v1/generation_pb.js b/src/stability_api/platform/generation/v1/generation_pb.js index e760545..8a946ed 100644 --- a/src/stability_api/platform/generation/v1/generation_pb.js +++ b/src/stability_api/platform/generation/v1/generation_pb.js @@ -131,6 +131,36 @@ export const ModelArchitecture = proto3.makeEnum( ], ); +/** + * @generated from enum stabilityai.platformapis.generation.v1.T2IAdapter + */ +export const T2IAdapter = proto3.makeEnum( + "stabilityai.platformapis.generation.v1.T2IAdapter", + [ + {no: 0, name: "T2IADAPTER_NONE"}, + {no: 1, name: "T2IADAPTER_SKETCH"}, + {no: 2, name: "T2IADAPTER_DEPTH"}, + {no: 3, name: "T2IADAPTER_CANNY"}, + ], +); + +/** + * If adapter_type is not None, then the user can choose what type of init_image to pass in: either an arbitrary image + * which will then be converted to a depth map, sketch, or canny edge for the sketch, depth and canny adapters respectively, + * or they can pass in their own depth map, sketch or canny edge. This field controls whether the init_image should + * be interpreted as an arbitrary image to be preprocessed ready for the t2i adapter, or whether it has already been + * preprocessed elsewhere + * + * @generated from enum stabilityai.platformapis.generation.v1.T2IAdapterInit + */ +export const T2IAdapterInit = proto3.makeEnum( + "stabilityai.platformapis.generation.v1.T2IAdapterInit", + [ + {no: 0, name: "T2IADAPTERINIT_IMAGE"}, + {no: 1, name: "T2IADAPTERINIT_ADAPTER_IMAGE"}, + ], +); + /** * @generated from enum stabilityai.platformapis.generation.v1.Action */ @@ -495,6 +525,52 @@ export const TransformType = proto3.makeMessageType( ], ); +/** + * @generated from message stabilityai.platformapis.generation.v1.T2IAdapterParameter + */ +export const T2IAdapterParameter = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.T2IAdapterParameter", + () => [ + { no: 1, name: "adapter_type", kind: "enum", T: proto3.getEnumType(T2IAdapter) }, + { no: 2, name: "adapter_strength", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, + { no: 3, name: "adapter_init_type", kind: "enum", T: proto3.getEnumType(T2IAdapterInit) }, + ], +); + +/** + * @generated from message stabilityai.platformapis.generation.v1.CAIParameters + */ +export const CAIParameters = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.CAIParameters", + () => [ + { no: 1, name: "model_metadata", kind: "enum", T: proto3.getEnumType(CAIParameters_ModelMetadata), oneof: "parameters" }, + ], +); + +/** + * @generated from enum stabilityai.platformapis.generation.v1.CAIParameters.ModelMetadata + */ +export const CAIParameters_ModelMetadata = proto3.makeEnum( + "stabilityai.platformapis.generation.v1.CAIParameters.ModelMetadata", + [ + {no: 0, name: "MODEL_METADATA_UNSPECIFIED", localName: "UNSPECIFIED"}, + {no: 1, name: "MODEL_METADATA_SIGN_WITH_ENGINE_ID", localName: "SIGN_WITH_ENGINE_ID"}, + ], +); + +/** + * FineTuningParameters specify which fine-tuned models to use for generation. + * + * @generated from message stabilityai.platformapis.generation.v1.FineTuningParameters + */ +export const FineTuningParameters = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.FineTuningParameters", + () => [ + { no: 1, name: "model_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "weight", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true }, + ], +); + /** * @generated from message stabilityai.platformapis.generation.v1.ImageParameters */ @@ -511,6 +587,9 @@ export const ImageParameters = proto3.makeMessageType( { no: 8, name: "masked_area_init", kind: "enum", T: proto3.getEnumType(MaskedAreaInit), opt: true }, { no: 9, name: "weight_method", kind: "enum", T: proto3.getEnumType(WeightMethod), opt: true }, { no: 10, name: "quantize", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, + { no: 11, name: "cai_parameters", kind: "message", T: CAIParameters, opt: true }, + { no: 12, name: "adapter", kind: "message", T: T2IAdapterParameter, opt: true }, + { no: 13, name: "fine_tuning_parameters", kind: "message", T: FineTuningParameters, repeated: true }, ], ); diff --git a/src/stability_api/platform/generation/v1/generation_pb2.py b/src/stability_api/platform/generation/v1/generation_pb2.py index 275283e..ca6ed90 100644 --- a/src/stability_api/platform/generation/v1/generation_pb2.py +++ b/src/stability_api/platform/generation/v1/generation_pb2.py @@ -15,7 +15,7 @@ from stability_api.tensors import tensors_pb2 as stability__api_dot_tensors_dot_tensors__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n5stability_api/platform/generation/v1/generation.proto\x12&stabilityai.platformapis.generation.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a#stability_api/tensors/tensors.proto\"9\n\x05Token\x12\x17\n\x04text\x18\x01 \x01(\tH\x00R\x04text\x88\x01\x01\x12\x0e\n\x02id\x18\x02 \x01(\rR\x02idB\x07\n\x05_text\"\x88\x01\n\x06Tokens\x12\x45\n\x06tokens\x18\x01 \x03(\x0b\x32-.stabilityai.platformapis.generation.v1.TokenR\x06tokens\x12&\n\x0ctokenizer_id\x18\x02 \x01(\tH\x00R\x0btokenizerId\x88\x01\x01\x42\x0f\n\r_tokenizer_id\"\xd7\x04\n\x08\x41rtifact\x12\x0e\n\x02id\x18\x01 \x01(\x04R\x02id\x12H\n\x04type\x18\x02 \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.ArtifactTypeR\x04type\x12\x12\n\x04mime\x18\x03 \x01(\tR\x04mime\x12\x19\n\x05magic\x18\x04 \x01(\tH\x01R\x05magic\x88\x01\x01\x12\x18\n\x06\x62inary\x18\x05 \x01(\x0cH\x00R\x06\x62inary\x12\x14\n\x04text\x18\x06 \x01(\tH\x00R\x04text\x12H\n\x06tokens\x18\x07 \x01(\x0b\x32..stabilityai.platformapis.generation.v1.TokensH\x00R\x06tokens\x12^\n\nclassifier\x18\x0b \x01(\x0b\x32<.stabilityai.platformapis.generation.v1.ClassifierParametersH\x00R\nclassifier\x12)\n\x06tensor\x18\x0e \x01(\x0b\x32\x0f.tensors.TensorH\x00R\x06tensor\x12\x14\n\x05index\x18\x08 \x01(\rR\x05index\x12Y\n\rfinish_reason\x18\t \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.FinishReasonR\x0c\x66inishReason\x12\x12\n\x04seed\x18\n \x01(\rR\x04seed\x12\x12\n\x04uuid\x18\x0c \x01(\tR\x04uuid\x12\x12\n\x04size\x18\r \x01(\x04R\x04sizeB\x06\n\x04\x64\x61taB\x08\n\x06_magic\"\\\n\x10PromptParameters\x12\x17\n\x04init\x18\x01 \x01(\x08H\x00R\x04init\x88\x01\x01\x12\x1b\n\x06weight\x18\x02 \x01(\x02H\x01R\x06weight\x88\x01\x01\x42\x07\n\x05_initB\t\n\x07_weight\"\xb0\x02\n\x06Prompt\x12]\n\nparameters\x18\x01 \x01(\x0b\x32\x38.stabilityai.platformapis.generation.v1.PromptParametersH\x01R\nparameters\x88\x01\x01\x12\x14\n\x04text\x18\x02 \x01(\tH\x00R\x04text\x12H\n\x06tokens\x18\x03 \x01(\x0b\x32..stabilityai.platformapis.generation.v1.TokensH\x00R\x06tokens\x12N\n\x08\x61rtifact\x18\x04 \x01(\x0b\x32\x30.stabilityai.platformapis.generation.v1.ArtifactH\x00R\x08\x61rtifactB\x08\n\x06promptB\r\n\x0b_parameters\"\xb9\x03\n\x11SamplerParameters\x12\x15\n\x03\x65ta\x18\x01 \x01(\x02H\x00R\x03\x65ta\x88\x01\x01\x12*\n\x0esampling_steps\x18\x02 \x01(\x04H\x01R\rsamplingSteps\x88\x01\x01\x12,\n\x0flatent_channels\x18\x03 \x01(\x04H\x02R\x0elatentChannels\x88\x01\x01\x12\x34\n\x13\x64ownsampling_factor\x18\x04 \x01(\x04H\x03R\x12\x64ownsamplingFactor\x88\x01\x01\x12 \n\tcfg_scale\x18\x05 \x01(\x02H\x04R\x08\x63\x66gScale\x88\x01\x01\x12-\n\x10init_noise_scale\x18\x06 \x01(\x02H\x05R\x0einitNoiseScale\x88\x01\x01\x12-\n\x10step_noise_scale\x18\x07 \x01(\x02H\x06R\x0estepNoiseScale\x88\x01\x01\x42\x06\n\x04_etaB\x11\n\x0f_sampling_stepsB\x12\n\x10_latent_channelsB\x16\n\x14_downsampling_factorB\x0c\n\n_cfg_scaleB\x13\n\x11_init_noise_scaleB\x13\n\x11_step_noise_scale\"\xca\x01\n\x15\x43onditionerParameters\x12\x33\n\x13vector_adjust_prior\x18\x01 \x01(\tH\x00R\x11vectorAdjustPrior\x88\x01\x01\x12T\n\x0b\x63onditioner\x18\x02 \x01(\x0b\x32-.stabilityai.platformapis.generation.v1.ModelH\x01R\x0b\x63onditioner\x88\x01\x01\x42\x16\n\x14_vector_adjust_priorB\x0e\n\x0c_conditioner\"}\n\x12ScheduleParameters\x12\x19\n\x05start\x18\x01 \x01(\x02H\x00R\x05start\x88\x01\x01\x12\x15\n\x03\x65nd\x18\x02 \x01(\x02H\x01R\x03\x65nd\x88\x01\x01\x12\x19\n\x05value\x18\x03 \x01(\x02H\x02R\x05value\x88\x01\x01\x42\x08\n\x06_startB\x06\n\x04_endB\x08\n\x06_value\"\xea\x02\n\rStepParameter\x12\x1f\n\x0bscaled_step\x18\x01 \x01(\x02R\nscaledStep\x12X\n\x07sampler\x18\x02 \x01(\x0b\x32\x39.stabilityai.platformapis.generation.v1.SamplerParametersH\x00R\x07sampler\x88\x01\x01\x12[\n\x08schedule\x18\x03 \x01(\x0b\x32:.stabilityai.platformapis.generation.v1.ScheduleParametersH\x01R\x08schedule\x88\x01\x01\x12[\n\x08guidance\x18\x04 \x01(\x0b\x32:.stabilityai.platformapis.generation.v1.GuidanceParametersH\x02R\x08guidance\x88\x01\x01\x42\n\n\x08_samplerB\x0b\n\t_scheduleB\x0b\n\t_guidance\"\xf9\x01\n\x05Model\x12]\n\x0c\x61rchitecture\x18\x01 \x01(\x0e\x32\x39.stabilityai.platformapis.generation.v1.ModelArchitectureR\x0c\x61rchitecture\x12\x1c\n\tpublisher\x18\x02 \x01(\tR\tpublisher\x12\x18\n\x07\x64\x61taset\x18\x03 \x01(\tR\x07\x64\x61taset\x12\x18\n\x07version\x18\x04 \x01(\x02R\x07version\x12)\n\x10semantic_version\x18\x05 \x01(\tR\x0fsemanticVersion\x12\x14\n\x05\x61lias\x18\x06 \x01(\tR\x05\x61lias\"\x82\x02\n\x10\x43utoutParameters\x12R\n\x07\x63utouts\x18\x01 \x03(\x0b\x32\x38.stabilityai.platformapis.generation.v1.CutoutParametersR\x07\x63utouts\x12\x19\n\x05\x63ount\x18\x02 \x01(\rH\x00R\x05\x63ount\x88\x01\x01\x12\x17\n\x04gray\x18\x03 \x01(\x02H\x01R\x04gray\x88\x01\x01\x12\x17\n\x04\x62lur\x18\x04 \x01(\x02H\x02R\x04\x62lur\x88\x01\x01\x12\"\n\nsize_power\x18\x05 \x01(\x02H\x03R\tsizePower\x88\x01\x01\x42\x08\n\x06_countB\x07\n\x05_grayB\x07\n\x05_blurB\r\n\x0b_size_power\"N\n\x1aGuidanceScheduleParameters\x12\x1a\n\x08\x64uration\x18\x01 \x01(\x02R\x08\x64uration\x12\x14\n\x05value\x18\x02 \x01(\x02R\x05value\"\xc8\x03\n\x1aGuidanceInstanceParameters\x12\x45\n\x06models\x18\x02 \x03(\x0b\x32-.stabilityai.platformapis.generation.v1.ModelR\x06models\x12\x30\n\x11guidance_strength\x18\x03 \x01(\x02H\x00R\x10guidanceStrength\x88\x01\x01\x12^\n\x08schedule\x18\x04 \x03(\x0b\x32\x42.stabilityai.platformapis.generation.v1.GuidanceScheduleParametersR\x08schedule\x12W\n\x07\x63utouts\x18\x05 \x01(\x0b\x32\x38.stabilityai.platformapis.generation.v1.CutoutParametersH\x01R\x07\x63utouts\x88\x01\x01\x12K\n\x06prompt\x18\x06 \x01(\x0b\x32..stabilityai.platformapis.generation.v1.PromptH\x02R\x06prompt\x88\x01\x01\x42\x14\n\x12_guidance_strengthB\n\n\x08_cutoutsB\t\n\x07_prompt\"\xd7\x01\n\x12GuidanceParameters\x12_\n\x0fguidance_preset\x18\x01 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.GuidancePresetR\x0eguidancePreset\x12`\n\tinstances\x18\x02 \x03(\x0b\x32\x42.stabilityai.platformapis.generation.v1.GuidanceInstanceParametersR\tinstances\"\xc1\x01\n\rTransformType\x12X\n\tdiffusion\x18\x01 \x01(\x0e\x32\x38.stabilityai.platformapis.generation.v1.DiffusionSamplerH\x00R\tdiffusion\x12N\n\x08upscaler\x18\x02 \x01(\x0e\x32\x30.stabilityai.platformapis.generation.v1.UpscalerH\x00R\x08upscalerB\x06\n\x04type\"\x9d\x05\n\x0fImageParameters\x12\x1b\n\x06height\x18\x01 \x01(\x04H\x00R\x06height\x88\x01\x01\x12\x19\n\x05width\x18\x02 \x01(\x04H\x01R\x05width\x88\x01\x01\x12\x12\n\x04seed\x18\x03 \x03(\rR\x04seed\x12\x1d\n\x07samples\x18\x04 \x01(\x04H\x02R\x07samples\x88\x01\x01\x12\x19\n\x05steps\x18\x05 \x01(\x04H\x03R\x05steps\x88\x01\x01\x12X\n\ttransform\x18\x06 \x01(\x0b\x32\x35.stabilityai.platformapis.generation.v1.TransformTypeH\x04R\ttransform\x88\x01\x01\x12U\n\nparameters\x18\x07 \x03(\x0b\x32\x35.stabilityai.platformapis.generation.v1.StepParameterR\nparameters\x12\x65\n\x10masked_area_init\x18\x08 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.MaskedAreaInitH\x05R\x0emaskedAreaInit\x88\x01\x01\x12^\n\rweight_method\x18\t \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.WeightMethodH\x06R\x0cweightMethod\x88\x01\x01\x12\x1f\n\x08quantize\x18\n \x01(\x08H\x07R\x08quantize\x88\x01\x01\x42\t\n\x07_heightB\x08\n\x06_widthB\n\n\x08_samplesB\x08\n\x06_stepsB\x0c\n\n_transformB\x13\n\x11_masked_area_initB\x10\n\x0e_weight_methodB\x0b\n\t_quantize\"^\n\x11\x43lassifierConcept\x12\x18\n\x07\x63oncept\x18\x01 \x01(\tR\x07\x63oncept\x12!\n\tthreshold\x18\x02 \x01(\x02H\x00R\tthreshold\x88\x01\x01\x42\x0c\n\n_threshold\"\x85\x03\n\x12\x43lassifierCategory\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12U\n\x08\x63oncepts\x18\x02 \x03(\x0b\x32\x39.stabilityai.platformapis.generation.v1.ClassifierConceptR\x08\x63oncepts\x12#\n\nadjustment\x18\x03 \x01(\x02H\x00R\nadjustment\x88\x01\x01\x12K\n\x06\x61\x63tion\x18\x04 \x01(\x0e\x32..stabilityai.platformapis.generation.v1.ActionH\x01R\x06\x61\x63tion\x88\x01\x01\x12\x64\n\x0f\x63lassifier_mode\x18\x05 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.ClassifierModeH\x02R\x0e\x63lassifierMode\x88\x01\x01\x42\r\n\x0b_adjustmentB\t\n\x07_actionB\x12\n\x10_classifier_mode\"\xba\x02\n\x14\x43lassifierParameters\x12Z\n\ncategories\x18\x01 \x03(\x0b\x32:.stabilityai.platformapis.generation.v1.ClassifierCategoryR\ncategories\x12T\n\x07\x65xceeds\x18\x02 \x03(\x0b\x32:.stabilityai.platformapis.generation.v1.ClassifierCategoryR\x07\x65xceeds\x12\\\n\x0frealized_action\x18\x03 \x01(\x0e\x32..stabilityai.platformapis.generation.v1.ActionH\x00R\x0erealizedAction\x88\x01\x01\x42\x12\n\x10_realized_action\"\x8a\x01\n\x15InterpolateParameters\x12\x16\n\x06ratios\x18\x01 \x03(\x02R\x06ratios\x12P\n\x04mode\x18\x02 \x01(\x0e\x32\x37.stabilityai.platformapis.generation.v1.InterpolateModeH\x00R\x04mode\x88\x01\x01\x42\x07\n\x05_mode\"\xbb\x04\n\x14TransformColorAdjust\x12#\n\nbrightness\x18\x01 \x01(\x02H\x00R\nbrightness\x88\x01\x01\x12\x1f\n\x08\x63ontrast\x18\x02 \x01(\x02H\x01R\x08\x63ontrast\x88\x01\x01\x12\x15\n\x03hue\x18\x03 \x01(\x02H\x02R\x03hue\x88\x01\x01\x12#\n\nsaturation\x18\x04 \x01(\x02H\x03R\nsaturation\x88\x01\x01\x12!\n\tlightness\x18\x05 \x01(\x02H\x04R\tlightness\x88\x01\x01\x12V\n\x0bmatch_image\x18\x06 \x01(\x0b\x32\x30.stabilityai.platformapis.generation.v1.ArtifactH\x05R\nmatchImage\x88\x01\x01\x12Z\n\nmatch_mode\x18\x07 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.ColorMatchModeH\x06R\tmatchMode\x88\x01\x01\x12&\n\x0cnoise_amount\x18\x08 \x01(\x02H\x07R\x0bnoiseAmount\x88\x01\x01\x12\"\n\nnoise_seed\x18\t \x01(\rH\x08R\tnoiseSeed\x88\x01\x01\x42\r\n\x0b_brightnessB\x0b\n\t_contrastB\x06\n\x04_hueB\r\n\x0b_saturationB\x0c\n\n_lightnessB\x0e\n\x0c_match_imageB\r\n\x0b_match_modeB\x0f\n\r_noise_amountB\r\n\x0b_noise_seed\"\xae\x01\n\x12TransformDepthCalc\x12&\n\x0c\x62lend_weight\x18\x01 \x01(\x02H\x00R\x0b\x62lendWeight\x88\x01\x01\x12$\n\x0b\x62lur_radius\x18\x02 \x01(\rH\x01R\nblurRadius\x88\x01\x01\x12\x1d\n\x07reverse\x18\x03 \x01(\x08H\x02R\x07reverse\x88\x01\x01\x42\x0f\n\r_blend_weightB\x0e\n\x0c_blur_radiusB\n\n\x08_reverse\")\n\x0fTransformMatrix\x12\x16\n\x04\x64\x61ta\x18\x01 \x03(\x02\x42\x02\x10\x01R\x04\x64\x61ta\"\xa0\x03\n\x11TransformResample\x12S\n\x0b\x62order_mode\x18\x01 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.BorderModeR\nborderMode\x12U\n\ttransform\x18\x02 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.TransformMatrixR\ttransform\x12\x63\n\x0eprev_transform\x18\x03 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.TransformMatrixH\x00R\rprevTransform\x88\x01\x01\x12\"\n\ndepth_warp\x18\x04 \x01(\x02H\x01R\tdepthWarp\x88\x01\x01\x12$\n\x0b\x65xport_mask\x18\x05 \x01(\x08H\x02R\nexportMask\x88\x01\x01\x42\x11\n\x0f_prev_transformB\r\n\x0b_depth_warpB\x0e\n\x0c_export_mask\"\xc2\x01\n\x10\x43\x61meraParameters\x12S\n\x0b\x63\x61mera_type\x18\x01 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.CameraTypeR\ncameraType\x12\x1d\n\nnear_plane\x18\x02 \x01(\x02R\tnearPlane\x12\x1b\n\tfar_plane\x18\x03 \x01(\x02R\x08\x66\x61rPlane\x12\x15\n\x03\x66ov\x18\x04 \x01(\x02H\x00R\x03\x66ov\x88\x01\x01\x42\x06\n\x04_fov\"\xf2\x02\n\x13TransformCameraPose\x12h\n\x14world_to_view_matrix\x18\x01 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.TransformMatrixR\x11worldToViewMatrix\x12\x65\n\x11\x63\x61mera_parameters\x18\x02 \x01(\x0b\x32\x38.stabilityai.platformapis.generation.v1.CameraParametersR\x10\x63\x61meraParameters\x12\x1d\n\ndo_prefill\x18\x05 \x01(\x08R\tdoPrefill\x12S\n\x0brender_mode\x18\x08 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.RenderModeR\nrenderModeJ\x04\x08\x03\x10\x04J\x04\x08\x04\x10\x05J\x04\x08\x06\x10\x07J\x04\x08\x07\x10\x08\"\x9b\x03\n\x13TransformParameters\x12\x61\n\x0c\x63olor_adjust\x18\x02 \x01(\x0b\x32<.stabilityai.platformapis.generation.v1.TransformColorAdjustH\x00R\x0b\x63olorAdjust\x12[\n\ndepth_calc\x18\x04 \x01(\x0b\x32:.stabilityai.platformapis.generation.v1.TransformDepthCalcH\x00R\tdepthCalc\x12W\n\x08resample\x18\x05 \x01(\x0b\x32\x39.stabilityai.platformapis.generation.v1.TransformResampleH\x00R\x08resample\x12^\n\x0b\x63\x61mera_pose\x18\x06 \x01(\x0b\x32;.stabilityai.platformapis.generation.v1.TransformCameraPoseH\x00R\ncameraPoseB\x0b\n\ttransform\"\xc1\x01\n\x0f\x41ssetParameters\x12K\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32\x33.stabilityai.platformapis.generation.v1.AssetActionR\x06\x61\x63tion\x12\x1d\n\nproject_id\x18\x02 \x01(\tR\tprojectId\x12\x42\n\x03use\x18\x03 \x01(\x0e\x32\x30.stabilityai.platformapis.generation.v1.AssetUseR\x03use\"\xb4\x01\n\nAnswerMeta\x12\x1a\n\x06gpu_id\x18\x01 \x01(\tH\x00R\x05gpuId\x88\x01\x01\x12\x1a\n\x06\x63pu_id\x18\x02 \x01(\tH\x01R\x05\x63puId\x88\x01\x01\x12\x1c\n\x07node_id\x18\x03 \x01(\tH\x02R\x06nodeId\x88\x01\x01\x12 \n\tengine_id\x18\x04 \x01(\tH\x03R\x08\x65ngineId\x88\x01\x01\x42\t\n\x07_gpu_idB\t\n\x07_cpu_idB\n\n\x08_node_idB\x0c\n\n_engine_id\"\xa0\x02\n\x06\x41nswer\x12\x1b\n\tanswer_id\x18\x01 \x01(\tR\x08\x61nswerId\x12\x1d\n\nrequest_id\x18\x02 \x01(\tR\trequestId\x12\x1a\n\x08received\x18\x03 \x01(\x04R\x08received\x12\x18\n\x07\x63reated\x18\x04 \x01(\x04R\x07\x63reated\x12K\n\x04meta\x18\x06 \x01(\x0b\x32\x32.stabilityai.platformapis.generation.v1.AnswerMetaH\x00R\x04meta\x88\x01\x01\x12N\n\tartifacts\x18\x07 \x03(\x0b\x32\x30.stabilityai.platformapis.generation.v1.ArtifactR\tartifactsB\x07\n\x05_meta\"r\n\x0b\x41nswerBatch\x12\x19\n\x08\x62\x61tch_id\x18\x01 \x01(\tR\x07\x62\x61tchId\x12H\n\x07\x61nswers\x18\x02 \x03(\x0b\x32..stabilityai.platformapis.generation.v1.AnswerR\x07\x61nswers\"\xfa\x06\n\x07Request\x12\x1b\n\tengine_id\x18\x01 \x01(\tR\x08\x65ngineId\x12\x1d\n\nrequest_id\x18\x02 \x01(\tR\trequestId\x12[\n\x0erequested_type\x18\x03 \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.ArtifactTypeR\rrequestedType\x12\x46\n\x06prompt\x18\x04 \x03(\x0b\x32..stabilityai.platformapis.generation.v1.PromptR\x06prompt\x12O\n\x05image\x18\x05 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.ImageParametersH\x00R\x05image\x12^\n\nclassifier\x18\x07 \x01(\x0b\x32<.stabilityai.platformapis.generation.v1.ClassifierParametersH\x00R\nclassifier\x12O\n\x05\x61sset\x18\x08 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.AssetParametersH\x00R\x05\x61sset\x12\x61\n\x0binterpolate\x18\x0b \x01(\x0b\x32=.stabilityai.platformapis.generation.v1.InterpolateParametersH\x00R\x0binterpolate\x12[\n\ttransform\x18\x0c \x01(\x0b\x32;.stabilityai.platformapis.generation.v1.TransformParametersH\x00R\ttransform\x12\x64\n\x0b\x63onditioner\x18\x06 \x01(\x0b\x32=.stabilityai.platformapis.generation.v1.ConditionerParametersH\x01R\x0b\x63onditioner\x88\x01\x01\x12\x35\n\x06\x65xtras\x18\xff\x0f \x01(\x0b\x32\x17.google.protobuf.StructH\x02R\x06\x65xtras\x88\x01\x01\x42\x08\n\x06paramsB\x0e\n\x0c_conditionerB\t\n\x07_extrasJ\x04\x08\t\x10\nJ\x04\x08\n\x10\x0b\"\xcd\x01\n\x08OnStatus\x12L\n\x06reason\x18\x01 \x03(\x0e\x32\x34.stabilityai.platformapis.generation.v1.FinishReasonR\x06reason\x12\x1b\n\x06target\x18\x02 \x01(\tH\x00R\x06target\x88\x01\x01\x12K\n\x06\x61\x63tion\x18\x03 \x03(\x0e\x32\x33.stabilityai.platformapis.generation.v1.StageActionR\x06\x61\x63tionB\t\n\x07_target\"\xb1\x01\n\x05Stage\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12I\n\x07request\x18\x02 \x01(\x0b\x32/.stabilityai.platformapis.generation.v1.RequestR\x07request\x12M\n\ton_status\x18\x03 \x03(\x0b\x32\x30.stabilityai.platformapis.generation.v1.OnStatusR\x08onStatus\"r\n\x0c\x43hainRequest\x12\x1d\n\nrequest_id\x18\x01 \x01(\tR\trequestId\x12\x43\n\x05stage\x18\x02 \x03(\x0b\x32-.stabilityai.platformapis.generation.v1.StageR\x05stage*E\n\x0c\x46inishReason\x12\x08\n\x04NULL\x10\x00\x12\n\n\x06LENGTH\x10\x01\x12\x08\n\x04STOP\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\n\n\x06\x46ILTER\x10\x04*\xf8\x01\n\x0c\x41rtifactType\x12\x11\n\rARTIFACT_NONE\x10\x00\x12\x12\n\x0e\x41RTIFACT_IMAGE\x10\x01\x12\x12\n\x0e\x41RTIFACT_VIDEO\x10\x02\x12\x11\n\rARTIFACT_TEXT\x10\x03\x12\x13\n\x0f\x41RTIFACT_TOKENS\x10\x04\x12\x16\n\x12\x41RTIFACT_EMBEDDING\x10\x05\x12\x1c\n\x18\x41RTIFACT_CLASSIFICATIONS\x10\x06\x12\x11\n\rARTIFACT_MASK\x10\x07\x12\x13\n\x0f\x41RTIFACT_LATENT\x10\x08\x12\x13\n\x0f\x41RTIFACT_TENSOR\x10\t\x12\x12\n\x0e\x41RTIFACT_DEPTH\x10\n*g\n\x0eMaskedAreaInit\x12\x19\n\x15MASKED_AREA_INIT_ZERO\x10\x00\x12\x1b\n\x17MASKED_AREA_INIT_RANDOM\x10\x01\x12\x1d\n\x19MASKED_AREA_INIT_ORIGINAL\x10\x02*5\n\x0cWeightMethod\x12\x10\n\x0cTEXT_ENCODER\x10\x00\x12\x13\n\x0f\x43ROSS_ATTENTION\x10\x01*\x98\x02\n\x10\x44iffusionSampler\x12\x10\n\x0cSAMPLER_DDIM\x10\x00\x12\x10\n\x0cSAMPLER_DDPM\x10\x01\x12\x13\n\x0fSAMPLER_K_EULER\x10\x02\x12\x1d\n\x19SAMPLER_K_EULER_ANCESTRAL\x10\x03\x12\x12\n\x0eSAMPLER_K_HEUN\x10\x04\x12\x13\n\x0fSAMPLER_K_DPM_2\x10\x05\x12\x1d\n\x19SAMPLER_K_DPM_2_ANCESTRAL\x10\x06\x12\x11\n\rSAMPLER_K_LMS\x10\x07\x12 \n\x1cSAMPLER_K_DPMPP_2S_ANCESTRAL\x10\x08\x12\x16\n\x12SAMPLER_K_DPMPP_2M\x10\t\x12\x17\n\x13SAMPLER_K_DPMPP_SDE\x10\n*F\n\x08Upscaler\x12\x10\n\x0cUPSCALER_RGB\x10\x00\x12\x13\n\x0fUPSCALER_GFPGAN\x10\x01\x12\x13\n\x0fUPSCALER_ESRGAN\x10\x02*\xd8\x01\n\x0eGuidancePreset\x12\x18\n\x14GUIDANCE_PRESET_NONE\x10\x00\x12\x1a\n\x16GUIDANCE_PRESET_SIMPLE\x10\x01\x12\x1d\n\x19GUIDANCE_PRESET_FAST_BLUE\x10\x02\x12\x1e\n\x1aGUIDANCE_PRESET_FAST_GREEN\x10\x03\x12\x18\n\x14GUIDANCE_PRESET_SLOW\x10\x04\x12\x1a\n\x16GUIDANCE_PRESET_SLOWER\x10\x05\x12\x1b\n\x17GUIDANCE_PRESET_SLOWEST\x10\x06*\x91\x01\n\x11ModelArchitecture\x12\x1b\n\x17MODEL_ARCHITECTURE_NONE\x10\x00\x12\x1f\n\x1bMODEL_ARCHITECTURE_CLIP_VIT\x10\x01\x12\"\n\x1eMODEL_ARCHITECTURE_CLIP_RESNET\x10\x02\x12\x1a\n\x16MODEL_ARCHITECTURE_LDM\x10\x03*\xa2\x01\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_PASSTHROUGH\x10\x00\x12\x1f\n\x1b\x41\x43TION_REGENERATE_DUPLICATE\x10\x01\x12\x15\n\x11\x41\x43TION_REGENERATE\x10\x02\x12\x1e\n\x1a\x41\x43TION_OBFUSCATE_DUPLICATE\x10\x03\x12\x14\n\x10\x41\x43TION_OBFUSCATE\x10\x04\x12\x12\n\x0e\x41\x43TION_DISCARD\x10\x05*D\n\x0e\x43lassifierMode\x12\x17\n\x13\x43LSFR_MODE_ZEROSHOT\x10\x00\x12\x19\n\x15\x43LSFR_MODE_MULTICLASS\x10\x01*\x8c\x01\n\x0fInterpolateMode\x12\x16\n\x12INTERPOLATE_LINEAR\x10\x00\x12\x14\n\x10INTERPOLATE_RIFE\x10\x01\x12\x1a\n\x16INTERPOLATE_VAE_LINEAR\x10\x02\x12\x19\n\x15INTERPOLATE_VAE_SLERP\x10\x03\x12\x14\n\x10INTERPOLATE_FILM\x10\x04*l\n\nBorderMode\x12\x12\n\x0e\x42ORDER_REFLECT\x10\x00\x12\x14\n\x10\x42ORDER_REPLICATE\x10\x01\x12\x0f\n\x0b\x42ORDER_WRAP\x10\x02\x12\x0f\n\x0b\x42ORDER_ZERO\x10\x03\x12\x12\n\x0e\x42ORDER_PREFILL\x10\x04*O\n\x0e\x43olorMatchMode\x12\x13\n\x0f\x43OLOR_MATCH_HSV\x10\x00\x12\x13\n\x0f\x43OLOR_MATCH_LAB\x10\x01\x12\x13\n\x0f\x43OLOR_MATCH_RGB\x10\x02*=\n\nCameraType\x12\x16\n\x12\x43\x41MERA_PERSPECTIVE\x10\x00\x12\x17\n\x13\x43\x41MERA_ORTHOGRAPHIC\x10\x01*4\n\nRenderMode\x12\x0f\n\x0bRENDER_MESH\x10\x00\x12\x15\n\x11RENDER_POINTCLOUD\x10\x01*=\n\x0b\x41ssetAction\x12\r\n\tASSET_PUT\x10\x00\x12\r\n\tASSET_GET\x10\x01\x12\x10\n\x0c\x41SSET_DELETE\x10\x02*\x81\x01\n\x08\x41ssetUse\x12\x17\n\x13\x41SSET_USE_UNDEFINED\x10\x00\x12\x13\n\x0f\x41SSET_USE_INPUT\x10\x01\x12\x14\n\x10\x41SSET_USE_OUTPUT\x10\x02\x12\x1a\n\x16\x41SSET_USE_INTERMEDIATE\x10\x03\x12\x15\n\x11\x41SSET_USE_PROJECT\x10\x04*W\n\x0bStageAction\x12\x15\n\x11STAGE_ACTION_PASS\x10\x00\x12\x18\n\x14STAGE_ACTION_DISCARD\x10\x01\x12\x17\n\x13STAGE_ACTION_RETURN\x10\x02\x32\xff\x01\n\x11GenerationService\x12o\n\x08Generate\x12/.stabilityai.platformapis.generation.v1.Request\x1a..stabilityai.platformapis.generation.v1.Answer\"\x00\x30\x01\x12y\n\rChainGenerate\x12\x34.stabilityai.platformapis.generation.v1.ChainRequest\x1a..stabilityai.platformapis.generation.v1.Answer\"\x00\x30\x01\x42\xdf\x02\n*com.stabilityai.platformapis.generation.v1B\x0fGenerationProtoP\x01Zegithub.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/generation/v1;generationv1\xa2\x02\x03SPG\xaa\x02&Stabilityai.Platformapis.Generation.V1\xca\x02&Stabilityai\\Platformapis\\Generation\\V1\xe2\x02\x32Stabilityai\\Platformapis\\Generation\\V1\\GPBMetadata\xea\x02)Stabilityai::Platformapis::Generation::V1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n5stability_api/platform/generation/v1/generation.proto\x12&stabilityai.platformapis.generation.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a#stability_api/tensors/tensors.proto\"9\n\x05Token\x12\x17\n\x04text\x18\x01 \x01(\tH\x00R\x04text\x88\x01\x01\x12\x0e\n\x02id\x18\x02 \x01(\rR\x02idB\x07\n\x05_text\"\x88\x01\n\x06Tokens\x12\x45\n\x06tokens\x18\x01 \x03(\x0b\x32-.stabilityai.platformapis.generation.v1.TokenR\x06tokens\x12&\n\x0ctokenizer_id\x18\x02 \x01(\tH\x00R\x0btokenizerId\x88\x01\x01\x42\x0f\n\r_tokenizer_id\"\xd7\x04\n\x08\x41rtifact\x12\x0e\n\x02id\x18\x01 \x01(\x04R\x02id\x12H\n\x04type\x18\x02 \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.ArtifactTypeR\x04type\x12\x12\n\x04mime\x18\x03 \x01(\tR\x04mime\x12\x19\n\x05magic\x18\x04 \x01(\tH\x01R\x05magic\x88\x01\x01\x12\x18\n\x06\x62inary\x18\x05 \x01(\x0cH\x00R\x06\x62inary\x12\x14\n\x04text\x18\x06 \x01(\tH\x00R\x04text\x12H\n\x06tokens\x18\x07 \x01(\x0b\x32..stabilityai.platformapis.generation.v1.TokensH\x00R\x06tokens\x12^\n\nclassifier\x18\x0b \x01(\x0b\x32<.stabilityai.platformapis.generation.v1.ClassifierParametersH\x00R\nclassifier\x12)\n\x06tensor\x18\x0e \x01(\x0b\x32\x0f.tensors.TensorH\x00R\x06tensor\x12\x14\n\x05index\x18\x08 \x01(\rR\x05index\x12Y\n\rfinish_reason\x18\t \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.FinishReasonR\x0c\x66inishReason\x12\x12\n\x04seed\x18\n \x01(\rR\x04seed\x12\x12\n\x04uuid\x18\x0c \x01(\tR\x04uuid\x12\x12\n\x04size\x18\r \x01(\x04R\x04sizeB\x06\n\x04\x64\x61taB\x08\n\x06_magic\"\\\n\x10PromptParameters\x12\x17\n\x04init\x18\x01 \x01(\x08H\x00R\x04init\x88\x01\x01\x12\x1b\n\x06weight\x18\x02 \x01(\x02H\x01R\x06weight\x88\x01\x01\x42\x07\n\x05_initB\t\n\x07_weight\"\xb0\x02\n\x06Prompt\x12]\n\nparameters\x18\x01 \x01(\x0b\x32\x38.stabilityai.platformapis.generation.v1.PromptParametersH\x01R\nparameters\x88\x01\x01\x12\x14\n\x04text\x18\x02 \x01(\tH\x00R\x04text\x12H\n\x06tokens\x18\x03 \x01(\x0b\x32..stabilityai.platformapis.generation.v1.TokensH\x00R\x06tokens\x12N\n\x08\x61rtifact\x18\x04 \x01(\x0b\x32\x30.stabilityai.platformapis.generation.v1.ArtifactH\x00R\x08\x61rtifactB\x08\n\x06promptB\r\n\x0b_parameters\"\xb9\x03\n\x11SamplerParameters\x12\x15\n\x03\x65ta\x18\x01 \x01(\x02H\x00R\x03\x65ta\x88\x01\x01\x12*\n\x0esampling_steps\x18\x02 \x01(\x04H\x01R\rsamplingSteps\x88\x01\x01\x12,\n\x0flatent_channels\x18\x03 \x01(\x04H\x02R\x0elatentChannels\x88\x01\x01\x12\x34\n\x13\x64ownsampling_factor\x18\x04 \x01(\x04H\x03R\x12\x64ownsamplingFactor\x88\x01\x01\x12 \n\tcfg_scale\x18\x05 \x01(\x02H\x04R\x08\x63\x66gScale\x88\x01\x01\x12-\n\x10init_noise_scale\x18\x06 \x01(\x02H\x05R\x0einitNoiseScale\x88\x01\x01\x12-\n\x10step_noise_scale\x18\x07 \x01(\x02H\x06R\x0estepNoiseScale\x88\x01\x01\x42\x06\n\x04_etaB\x11\n\x0f_sampling_stepsB\x12\n\x10_latent_channelsB\x16\n\x14_downsampling_factorB\x0c\n\n_cfg_scaleB\x13\n\x11_init_noise_scaleB\x13\n\x11_step_noise_scale\"\xca\x01\n\x15\x43onditionerParameters\x12\x33\n\x13vector_adjust_prior\x18\x01 \x01(\tH\x00R\x11vectorAdjustPrior\x88\x01\x01\x12T\n\x0b\x63onditioner\x18\x02 \x01(\x0b\x32-.stabilityai.platformapis.generation.v1.ModelH\x01R\x0b\x63onditioner\x88\x01\x01\x42\x16\n\x14_vector_adjust_priorB\x0e\n\x0c_conditioner\"}\n\x12ScheduleParameters\x12\x19\n\x05start\x18\x01 \x01(\x02H\x00R\x05start\x88\x01\x01\x12\x15\n\x03\x65nd\x18\x02 \x01(\x02H\x01R\x03\x65nd\x88\x01\x01\x12\x19\n\x05value\x18\x03 \x01(\x02H\x02R\x05value\x88\x01\x01\x42\x08\n\x06_startB\x06\n\x04_endB\x08\n\x06_value\"\xea\x02\n\rStepParameter\x12\x1f\n\x0bscaled_step\x18\x01 \x01(\x02R\nscaledStep\x12X\n\x07sampler\x18\x02 \x01(\x0b\x32\x39.stabilityai.platformapis.generation.v1.SamplerParametersH\x00R\x07sampler\x88\x01\x01\x12[\n\x08schedule\x18\x03 \x01(\x0b\x32:.stabilityai.platformapis.generation.v1.ScheduleParametersH\x01R\x08schedule\x88\x01\x01\x12[\n\x08guidance\x18\x04 \x01(\x0b\x32:.stabilityai.platformapis.generation.v1.GuidanceParametersH\x02R\x08guidance\x88\x01\x01\x42\n\n\x08_samplerB\x0b\n\t_scheduleB\x0b\n\t_guidance\"\xf9\x01\n\x05Model\x12]\n\x0c\x61rchitecture\x18\x01 \x01(\x0e\x32\x39.stabilityai.platformapis.generation.v1.ModelArchitectureR\x0c\x61rchitecture\x12\x1c\n\tpublisher\x18\x02 \x01(\tR\tpublisher\x12\x18\n\x07\x64\x61taset\x18\x03 \x01(\tR\x07\x64\x61taset\x12\x18\n\x07version\x18\x04 \x01(\x02R\x07version\x12)\n\x10semantic_version\x18\x05 \x01(\tR\x0fsemanticVersion\x12\x14\n\x05\x61lias\x18\x06 \x01(\tR\x05\x61lias\"\x82\x02\n\x10\x43utoutParameters\x12R\n\x07\x63utouts\x18\x01 \x03(\x0b\x32\x38.stabilityai.platformapis.generation.v1.CutoutParametersR\x07\x63utouts\x12\x19\n\x05\x63ount\x18\x02 \x01(\rH\x00R\x05\x63ount\x88\x01\x01\x12\x17\n\x04gray\x18\x03 \x01(\x02H\x01R\x04gray\x88\x01\x01\x12\x17\n\x04\x62lur\x18\x04 \x01(\x02H\x02R\x04\x62lur\x88\x01\x01\x12\"\n\nsize_power\x18\x05 \x01(\x02H\x03R\tsizePower\x88\x01\x01\x42\x08\n\x06_countB\x07\n\x05_grayB\x07\n\x05_blurB\r\n\x0b_size_power\"N\n\x1aGuidanceScheduleParameters\x12\x1a\n\x08\x64uration\x18\x01 \x01(\x02R\x08\x64uration\x12\x14\n\x05value\x18\x02 \x01(\x02R\x05value\"\xc8\x03\n\x1aGuidanceInstanceParameters\x12\x45\n\x06models\x18\x02 \x03(\x0b\x32-.stabilityai.platformapis.generation.v1.ModelR\x06models\x12\x30\n\x11guidance_strength\x18\x03 \x01(\x02H\x00R\x10guidanceStrength\x88\x01\x01\x12^\n\x08schedule\x18\x04 \x03(\x0b\x32\x42.stabilityai.platformapis.generation.v1.GuidanceScheduleParametersR\x08schedule\x12W\n\x07\x63utouts\x18\x05 \x01(\x0b\x32\x38.stabilityai.platformapis.generation.v1.CutoutParametersH\x01R\x07\x63utouts\x88\x01\x01\x12K\n\x06prompt\x18\x06 \x01(\x0b\x32..stabilityai.platformapis.generation.v1.PromptH\x02R\x06prompt\x88\x01\x01\x42\x14\n\x12_guidance_strengthB\n\n\x08_cutoutsB\t\n\x07_prompt\"\xd7\x01\n\x12GuidanceParameters\x12_\n\x0fguidance_preset\x18\x01 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.GuidancePresetR\x0eguidancePreset\x12`\n\tinstances\x18\x02 \x03(\x0b\x32\x42.stabilityai.platformapis.generation.v1.GuidanceInstanceParametersR\tinstances\"\xc1\x01\n\rTransformType\x12X\n\tdiffusion\x18\x01 \x01(\x0e\x32\x38.stabilityai.platformapis.generation.v1.DiffusionSamplerH\x00R\tdiffusion\x12N\n\x08upscaler\x18\x02 \x01(\x0e\x32\x30.stabilityai.platformapis.generation.v1.UpscalerH\x00R\x08upscalerB\x06\n\x04type\"\xfb\x01\n\x13T2IAdapterParameter\x12U\n\x0c\x61\x64\x61pter_type\x18\x01 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.T2IAdapterR\x0b\x61\x64\x61pterType\x12)\n\x10\x61\x64\x61pter_strength\x18\x02 \x01(\x02R\x0f\x61\x64\x61pterStrength\x12\x62\n\x11\x61\x64\x61pter_init_type\x18\x03 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.T2IAdapterInitR\x0f\x61\x64\x61pterInitType\"\xe4\x01\n\rCAIParameters\x12l\n\x0emodel_metadata\x18\x01 \x01(\x0e\x32\x43.stabilityai.platformapis.generation.v1.CAIParameters.ModelMetadataH\x00R\rmodelMetadata\"W\n\rModelMetadata\x12\x1e\n\x1aMODEL_METADATA_UNSPECIFIED\x10\x00\x12&\n\"MODEL_METADATA_SIGN_WITH_ENGINE_ID\x10\x01\x42\x0c\n\nparameters\"Y\n\x14\x46ineTuningParameters\x12\x19\n\x08model_id\x18\x01 \x01(\tR\x07modelId\x12\x1b\n\x06weight\x18\x02 \x01(\x02H\x00R\x06weight\x88\x01\x01\x42\t\n\x07_weight\"\xef\x07\n\x0fImageParameters\x12\x1b\n\x06height\x18\x01 \x01(\x04H\x00R\x06height\x88\x01\x01\x12\x19\n\x05width\x18\x02 \x01(\x04H\x01R\x05width\x88\x01\x01\x12\x12\n\x04seed\x18\x03 \x03(\rR\x04seed\x12\x1d\n\x07samples\x18\x04 \x01(\x04H\x02R\x07samples\x88\x01\x01\x12\x19\n\x05steps\x18\x05 \x01(\x04H\x03R\x05steps\x88\x01\x01\x12X\n\ttransform\x18\x06 \x01(\x0b\x32\x35.stabilityai.platformapis.generation.v1.TransformTypeH\x04R\ttransform\x88\x01\x01\x12U\n\nparameters\x18\x07 \x03(\x0b\x32\x35.stabilityai.platformapis.generation.v1.StepParameterR\nparameters\x12\x65\n\x10masked_area_init\x18\x08 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.MaskedAreaInitH\x05R\x0emaskedAreaInit\x88\x01\x01\x12^\n\rweight_method\x18\t \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.WeightMethodH\x06R\x0cweightMethod\x88\x01\x01\x12\x1f\n\x08quantize\x18\n \x01(\x08H\x07R\x08quantize\x88\x01\x01\x12\x61\n\x0e\x63\x61i_parameters\x18\x0b \x01(\x0b\x32\x35.stabilityai.platformapis.generation.v1.CAIParametersH\x08R\rcaiParameters\x88\x01\x01\x12Z\n\x07\x61\x64\x61pter\x18\x0c \x01(\x0b\x32;.stabilityai.platformapis.generation.v1.T2IAdapterParameterH\tR\x07\x61\x64\x61pter\x88\x01\x01\x12r\n\x16\x66ine_tuning_parameters\x18\r \x03(\x0b\x32<.stabilityai.platformapis.generation.v1.FineTuningParametersR\x14\x66ineTuningParametersB\t\n\x07_heightB\x08\n\x06_widthB\n\n\x08_samplesB\x08\n\x06_stepsB\x0c\n\n_transformB\x13\n\x11_masked_area_initB\x10\n\x0e_weight_methodB\x0b\n\t_quantizeB\x11\n\x0f_cai_parametersB\n\n\x08_adapter\"^\n\x11\x43lassifierConcept\x12\x18\n\x07\x63oncept\x18\x01 \x01(\tR\x07\x63oncept\x12!\n\tthreshold\x18\x02 \x01(\x02H\x00R\tthreshold\x88\x01\x01\x42\x0c\n\n_threshold\"\x85\x03\n\x12\x43lassifierCategory\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12U\n\x08\x63oncepts\x18\x02 \x03(\x0b\x32\x39.stabilityai.platformapis.generation.v1.ClassifierConceptR\x08\x63oncepts\x12#\n\nadjustment\x18\x03 \x01(\x02H\x00R\nadjustment\x88\x01\x01\x12K\n\x06\x61\x63tion\x18\x04 \x01(\x0e\x32..stabilityai.platformapis.generation.v1.ActionH\x01R\x06\x61\x63tion\x88\x01\x01\x12\x64\n\x0f\x63lassifier_mode\x18\x05 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.ClassifierModeH\x02R\x0e\x63lassifierMode\x88\x01\x01\x42\r\n\x0b_adjustmentB\t\n\x07_actionB\x12\n\x10_classifier_mode\"\xba\x02\n\x14\x43lassifierParameters\x12Z\n\ncategories\x18\x01 \x03(\x0b\x32:.stabilityai.platformapis.generation.v1.ClassifierCategoryR\ncategories\x12T\n\x07\x65xceeds\x18\x02 \x03(\x0b\x32:.stabilityai.platformapis.generation.v1.ClassifierCategoryR\x07\x65xceeds\x12\\\n\x0frealized_action\x18\x03 \x01(\x0e\x32..stabilityai.platformapis.generation.v1.ActionH\x00R\x0erealizedAction\x88\x01\x01\x42\x12\n\x10_realized_action\"\x8a\x01\n\x15InterpolateParameters\x12\x16\n\x06ratios\x18\x01 \x03(\x02R\x06ratios\x12P\n\x04mode\x18\x02 \x01(\x0e\x32\x37.stabilityai.platformapis.generation.v1.InterpolateModeH\x00R\x04mode\x88\x01\x01\x42\x07\n\x05_mode\"\xbb\x04\n\x14TransformColorAdjust\x12#\n\nbrightness\x18\x01 \x01(\x02H\x00R\nbrightness\x88\x01\x01\x12\x1f\n\x08\x63ontrast\x18\x02 \x01(\x02H\x01R\x08\x63ontrast\x88\x01\x01\x12\x15\n\x03hue\x18\x03 \x01(\x02H\x02R\x03hue\x88\x01\x01\x12#\n\nsaturation\x18\x04 \x01(\x02H\x03R\nsaturation\x88\x01\x01\x12!\n\tlightness\x18\x05 \x01(\x02H\x04R\tlightness\x88\x01\x01\x12V\n\x0bmatch_image\x18\x06 \x01(\x0b\x32\x30.stabilityai.platformapis.generation.v1.ArtifactH\x05R\nmatchImage\x88\x01\x01\x12Z\n\nmatch_mode\x18\x07 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.ColorMatchModeH\x06R\tmatchMode\x88\x01\x01\x12&\n\x0cnoise_amount\x18\x08 \x01(\x02H\x07R\x0bnoiseAmount\x88\x01\x01\x12\"\n\nnoise_seed\x18\t \x01(\rH\x08R\tnoiseSeed\x88\x01\x01\x42\r\n\x0b_brightnessB\x0b\n\t_contrastB\x06\n\x04_hueB\r\n\x0b_saturationB\x0c\n\n_lightnessB\x0e\n\x0c_match_imageB\r\n\x0b_match_modeB\x0f\n\r_noise_amountB\r\n\x0b_noise_seed\"\xae\x01\n\x12TransformDepthCalc\x12&\n\x0c\x62lend_weight\x18\x01 \x01(\x02H\x00R\x0b\x62lendWeight\x88\x01\x01\x12$\n\x0b\x62lur_radius\x18\x02 \x01(\rH\x01R\nblurRadius\x88\x01\x01\x12\x1d\n\x07reverse\x18\x03 \x01(\x08H\x02R\x07reverse\x88\x01\x01\x42\x0f\n\r_blend_weightB\x0e\n\x0c_blur_radiusB\n\n\x08_reverse\")\n\x0fTransformMatrix\x12\x16\n\x04\x64\x61ta\x18\x01 \x03(\x02\x42\x02\x10\x01R\x04\x64\x61ta\"\xa0\x03\n\x11TransformResample\x12S\n\x0b\x62order_mode\x18\x01 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.BorderModeR\nborderMode\x12U\n\ttransform\x18\x02 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.TransformMatrixR\ttransform\x12\x63\n\x0eprev_transform\x18\x03 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.TransformMatrixH\x00R\rprevTransform\x88\x01\x01\x12\"\n\ndepth_warp\x18\x04 \x01(\x02H\x01R\tdepthWarp\x88\x01\x01\x12$\n\x0b\x65xport_mask\x18\x05 \x01(\x08H\x02R\nexportMask\x88\x01\x01\x42\x11\n\x0f_prev_transformB\r\n\x0b_depth_warpB\x0e\n\x0c_export_mask\"\xc2\x01\n\x10\x43\x61meraParameters\x12S\n\x0b\x63\x61mera_type\x18\x01 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.CameraTypeR\ncameraType\x12\x1d\n\nnear_plane\x18\x02 \x01(\x02R\tnearPlane\x12\x1b\n\tfar_plane\x18\x03 \x01(\x02R\x08\x66\x61rPlane\x12\x15\n\x03\x66ov\x18\x04 \x01(\x02H\x00R\x03\x66ov\x88\x01\x01\x42\x06\n\x04_fov\"\xf2\x02\n\x13TransformCameraPose\x12h\n\x14world_to_view_matrix\x18\x01 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.TransformMatrixR\x11worldToViewMatrix\x12\x65\n\x11\x63\x61mera_parameters\x18\x02 \x01(\x0b\x32\x38.stabilityai.platformapis.generation.v1.CameraParametersR\x10\x63\x61meraParameters\x12\x1d\n\ndo_prefill\x18\x05 \x01(\x08R\tdoPrefill\x12S\n\x0brender_mode\x18\x08 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.RenderModeR\nrenderModeJ\x04\x08\x03\x10\x04J\x04\x08\x04\x10\x05J\x04\x08\x06\x10\x07J\x04\x08\x07\x10\x08\"\x9b\x03\n\x13TransformParameters\x12\x61\n\x0c\x63olor_adjust\x18\x02 \x01(\x0b\x32<.stabilityai.platformapis.generation.v1.TransformColorAdjustH\x00R\x0b\x63olorAdjust\x12[\n\ndepth_calc\x18\x04 \x01(\x0b\x32:.stabilityai.platformapis.generation.v1.TransformDepthCalcH\x00R\tdepthCalc\x12W\n\x08resample\x18\x05 \x01(\x0b\x32\x39.stabilityai.platformapis.generation.v1.TransformResampleH\x00R\x08resample\x12^\n\x0b\x63\x61mera_pose\x18\x06 \x01(\x0b\x32;.stabilityai.platformapis.generation.v1.TransformCameraPoseH\x00R\ncameraPoseB\x0b\n\ttransform\"\xc1\x01\n\x0f\x41ssetParameters\x12K\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32\x33.stabilityai.platformapis.generation.v1.AssetActionR\x06\x61\x63tion\x12\x1d\n\nproject_id\x18\x02 \x01(\tR\tprojectId\x12\x42\n\x03use\x18\x03 \x01(\x0e\x32\x30.stabilityai.platformapis.generation.v1.AssetUseR\x03use\"\xb4\x01\n\nAnswerMeta\x12\x1a\n\x06gpu_id\x18\x01 \x01(\tH\x00R\x05gpuId\x88\x01\x01\x12\x1a\n\x06\x63pu_id\x18\x02 \x01(\tH\x01R\x05\x63puId\x88\x01\x01\x12\x1c\n\x07node_id\x18\x03 \x01(\tH\x02R\x06nodeId\x88\x01\x01\x12 \n\tengine_id\x18\x04 \x01(\tH\x03R\x08\x65ngineId\x88\x01\x01\x42\t\n\x07_gpu_idB\t\n\x07_cpu_idB\n\n\x08_node_idB\x0c\n\n_engine_id\"\xa0\x02\n\x06\x41nswer\x12\x1b\n\tanswer_id\x18\x01 \x01(\tR\x08\x61nswerId\x12\x1d\n\nrequest_id\x18\x02 \x01(\tR\trequestId\x12\x1a\n\x08received\x18\x03 \x01(\x04R\x08received\x12\x18\n\x07\x63reated\x18\x04 \x01(\x04R\x07\x63reated\x12K\n\x04meta\x18\x06 \x01(\x0b\x32\x32.stabilityai.platformapis.generation.v1.AnswerMetaH\x00R\x04meta\x88\x01\x01\x12N\n\tartifacts\x18\x07 \x03(\x0b\x32\x30.stabilityai.platformapis.generation.v1.ArtifactR\tartifactsB\x07\n\x05_meta\"r\n\x0b\x41nswerBatch\x12\x19\n\x08\x62\x61tch_id\x18\x01 \x01(\tR\x07\x62\x61tchId\x12H\n\x07\x61nswers\x18\x02 \x03(\x0b\x32..stabilityai.platformapis.generation.v1.AnswerR\x07\x61nswers\"\xfa\x06\n\x07Request\x12\x1b\n\tengine_id\x18\x01 \x01(\tR\x08\x65ngineId\x12\x1d\n\nrequest_id\x18\x02 \x01(\tR\trequestId\x12[\n\x0erequested_type\x18\x03 \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.ArtifactTypeR\rrequestedType\x12\x46\n\x06prompt\x18\x04 \x03(\x0b\x32..stabilityai.platformapis.generation.v1.PromptR\x06prompt\x12O\n\x05image\x18\x05 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.ImageParametersH\x00R\x05image\x12^\n\nclassifier\x18\x07 \x01(\x0b\x32<.stabilityai.platformapis.generation.v1.ClassifierParametersH\x00R\nclassifier\x12O\n\x05\x61sset\x18\x08 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.AssetParametersH\x00R\x05\x61sset\x12\x61\n\x0binterpolate\x18\x0b \x01(\x0b\x32=.stabilityai.platformapis.generation.v1.InterpolateParametersH\x00R\x0binterpolate\x12[\n\ttransform\x18\x0c \x01(\x0b\x32;.stabilityai.platformapis.generation.v1.TransformParametersH\x00R\ttransform\x12\x64\n\x0b\x63onditioner\x18\x06 \x01(\x0b\x32=.stabilityai.platformapis.generation.v1.ConditionerParametersH\x01R\x0b\x63onditioner\x88\x01\x01\x12\x35\n\x06\x65xtras\x18\xff\x0f \x01(\x0b\x32\x17.google.protobuf.StructH\x02R\x06\x65xtras\x88\x01\x01\x42\x08\n\x06paramsB\x0e\n\x0c_conditionerB\t\n\x07_extrasJ\x04\x08\t\x10\nJ\x04\x08\n\x10\x0b\"\xcd\x01\n\x08OnStatus\x12L\n\x06reason\x18\x01 \x03(\x0e\x32\x34.stabilityai.platformapis.generation.v1.FinishReasonR\x06reason\x12\x1b\n\x06target\x18\x02 \x01(\tH\x00R\x06target\x88\x01\x01\x12K\n\x06\x61\x63tion\x18\x03 \x03(\x0e\x32\x33.stabilityai.platformapis.generation.v1.StageActionR\x06\x61\x63tionB\t\n\x07_target\"\xb1\x01\n\x05Stage\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12I\n\x07request\x18\x02 \x01(\x0b\x32/.stabilityai.platformapis.generation.v1.RequestR\x07request\x12M\n\ton_status\x18\x03 \x03(\x0b\x32\x30.stabilityai.platformapis.generation.v1.OnStatusR\x08onStatus\"r\n\x0c\x43hainRequest\x12\x1d\n\nrequest_id\x18\x01 \x01(\tR\trequestId\x12\x43\n\x05stage\x18\x02 \x03(\x0b\x32-.stabilityai.platformapis.generation.v1.StageR\x05stage*E\n\x0c\x46inishReason\x12\x08\n\x04NULL\x10\x00\x12\n\n\x06LENGTH\x10\x01\x12\x08\n\x04STOP\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\n\n\x06\x46ILTER\x10\x04*\xf8\x01\n\x0c\x41rtifactType\x12\x11\n\rARTIFACT_NONE\x10\x00\x12\x12\n\x0e\x41RTIFACT_IMAGE\x10\x01\x12\x12\n\x0e\x41RTIFACT_VIDEO\x10\x02\x12\x11\n\rARTIFACT_TEXT\x10\x03\x12\x13\n\x0f\x41RTIFACT_TOKENS\x10\x04\x12\x16\n\x12\x41RTIFACT_EMBEDDING\x10\x05\x12\x1c\n\x18\x41RTIFACT_CLASSIFICATIONS\x10\x06\x12\x11\n\rARTIFACT_MASK\x10\x07\x12\x13\n\x0f\x41RTIFACT_LATENT\x10\x08\x12\x13\n\x0f\x41RTIFACT_TENSOR\x10\t\x12\x12\n\x0e\x41RTIFACT_DEPTH\x10\n*g\n\x0eMaskedAreaInit\x12\x19\n\x15MASKED_AREA_INIT_ZERO\x10\x00\x12\x1b\n\x17MASKED_AREA_INIT_RANDOM\x10\x01\x12\x1d\n\x19MASKED_AREA_INIT_ORIGINAL\x10\x02*5\n\x0cWeightMethod\x12\x10\n\x0cTEXT_ENCODER\x10\x00\x12\x13\n\x0f\x43ROSS_ATTENTION\x10\x01*\x98\x02\n\x10\x44iffusionSampler\x12\x10\n\x0cSAMPLER_DDIM\x10\x00\x12\x10\n\x0cSAMPLER_DDPM\x10\x01\x12\x13\n\x0fSAMPLER_K_EULER\x10\x02\x12\x1d\n\x19SAMPLER_K_EULER_ANCESTRAL\x10\x03\x12\x12\n\x0eSAMPLER_K_HEUN\x10\x04\x12\x13\n\x0fSAMPLER_K_DPM_2\x10\x05\x12\x1d\n\x19SAMPLER_K_DPM_2_ANCESTRAL\x10\x06\x12\x11\n\rSAMPLER_K_LMS\x10\x07\x12 \n\x1cSAMPLER_K_DPMPP_2S_ANCESTRAL\x10\x08\x12\x16\n\x12SAMPLER_K_DPMPP_2M\x10\t\x12\x17\n\x13SAMPLER_K_DPMPP_SDE\x10\n*F\n\x08Upscaler\x12\x10\n\x0cUPSCALER_RGB\x10\x00\x12\x13\n\x0fUPSCALER_GFPGAN\x10\x01\x12\x13\n\x0fUPSCALER_ESRGAN\x10\x02*\xd8\x01\n\x0eGuidancePreset\x12\x18\n\x14GUIDANCE_PRESET_NONE\x10\x00\x12\x1a\n\x16GUIDANCE_PRESET_SIMPLE\x10\x01\x12\x1d\n\x19GUIDANCE_PRESET_FAST_BLUE\x10\x02\x12\x1e\n\x1aGUIDANCE_PRESET_FAST_GREEN\x10\x03\x12\x18\n\x14GUIDANCE_PRESET_SLOW\x10\x04\x12\x1a\n\x16GUIDANCE_PRESET_SLOWER\x10\x05\x12\x1b\n\x17GUIDANCE_PRESET_SLOWEST\x10\x06*\x91\x01\n\x11ModelArchitecture\x12\x1b\n\x17MODEL_ARCHITECTURE_NONE\x10\x00\x12\x1f\n\x1bMODEL_ARCHITECTURE_CLIP_VIT\x10\x01\x12\"\n\x1eMODEL_ARCHITECTURE_CLIP_RESNET\x10\x02\x12\x1a\n\x16MODEL_ARCHITECTURE_LDM\x10\x03*d\n\nT2IAdapter\x12\x13\n\x0fT2IADAPTER_NONE\x10\x00\x12\x15\n\x11T2IADAPTER_SKETCH\x10\x01\x12\x14\n\x10T2IADAPTER_DEPTH\x10\x02\x12\x14\n\x10T2IADAPTER_CANNY\x10\x03*L\n\x0eT2IAdapterInit\x12\x18\n\x14T2IADAPTERINIT_IMAGE\x10\x00\x12 \n\x1cT2IADAPTERINIT_ADAPTER_IMAGE\x10\x01*\xa2\x01\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_PASSTHROUGH\x10\x00\x12\x1f\n\x1b\x41\x43TION_REGENERATE_DUPLICATE\x10\x01\x12\x15\n\x11\x41\x43TION_REGENERATE\x10\x02\x12\x1e\n\x1a\x41\x43TION_OBFUSCATE_DUPLICATE\x10\x03\x12\x14\n\x10\x41\x43TION_OBFUSCATE\x10\x04\x12\x12\n\x0e\x41\x43TION_DISCARD\x10\x05*D\n\x0e\x43lassifierMode\x12\x17\n\x13\x43LSFR_MODE_ZEROSHOT\x10\x00\x12\x19\n\x15\x43LSFR_MODE_MULTICLASS\x10\x01*\x8c\x01\n\x0fInterpolateMode\x12\x16\n\x12INTERPOLATE_LINEAR\x10\x00\x12\x14\n\x10INTERPOLATE_RIFE\x10\x01\x12\x1a\n\x16INTERPOLATE_VAE_LINEAR\x10\x02\x12\x19\n\x15INTERPOLATE_VAE_SLERP\x10\x03\x12\x14\n\x10INTERPOLATE_FILM\x10\x04*l\n\nBorderMode\x12\x12\n\x0e\x42ORDER_REFLECT\x10\x00\x12\x14\n\x10\x42ORDER_REPLICATE\x10\x01\x12\x0f\n\x0b\x42ORDER_WRAP\x10\x02\x12\x0f\n\x0b\x42ORDER_ZERO\x10\x03\x12\x12\n\x0e\x42ORDER_PREFILL\x10\x04*O\n\x0e\x43olorMatchMode\x12\x13\n\x0f\x43OLOR_MATCH_HSV\x10\x00\x12\x13\n\x0f\x43OLOR_MATCH_LAB\x10\x01\x12\x13\n\x0f\x43OLOR_MATCH_RGB\x10\x02*=\n\nCameraType\x12\x16\n\x12\x43\x41MERA_PERSPECTIVE\x10\x00\x12\x17\n\x13\x43\x41MERA_ORTHOGRAPHIC\x10\x01*4\n\nRenderMode\x12\x0f\n\x0bRENDER_MESH\x10\x00\x12\x15\n\x11RENDER_POINTCLOUD\x10\x01*=\n\x0b\x41ssetAction\x12\r\n\tASSET_PUT\x10\x00\x12\r\n\tASSET_GET\x10\x01\x12\x10\n\x0c\x41SSET_DELETE\x10\x02*\x81\x01\n\x08\x41ssetUse\x12\x17\n\x13\x41SSET_USE_UNDEFINED\x10\x00\x12\x13\n\x0f\x41SSET_USE_INPUT\x10\x01\x12\x14\n\x10\x41SSET_USE_OUTPUT\x10\x02\x12\x1a\n\x16\x41SSET_USE_INTERMEDIATE\x10\x03\x12\x15\n\x11\x41SSET_USE_PROJECT\x10\x04*W\n\x0bStageAction\x12\x15\n\x11STAGE_ACTION_PASS\x10\x00\x12\x18\n\x14STAGE_ACTION_DISCARD\x10\x01\x12\x17\n\x13STAGE_ACTION_RETURN\x10\x02\x32\xff\x01\n\x11GenerationService\x12o\n\x08Generate\x12/.stabilityai.platformapis.generation.v1.Request\x1a..stabilityai.platformapis.generation.v1.Answer\"\x00\x30\x01\x12y\n\rChainGenerate\x12\x34.stabilityai.platformapis.generation.v1.ChainRequest\x1a..stabilityai.platformapis.generation.v1.Answer\"\x00\x30\x01\x42\xdf\x02\n*com.stabilityai.platformapis.generation.v1B\x0fGenerationProtoP\x01Zegithub.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/generation/v1;generationv1\xa2\x02\x03SPG\xaa\x02&Stabilityai.Platformapis.Generation.V1\xca\x02&Stabilityai\\Platformapis\\Generation\\V1\xe2\x02\x32Stabilityai\\Platformapis\\Generation\\V1\\GPBMetadata\xea\x02)Stabilityai::Platformapis::Generation::V1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -26,42 +26,46 @@ DESCRIPTOR._serialized_options = b'\n*com.stabilityai.platformapis.generation.v1B\017GenerationProtoP\001Zegithub.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/generation/v1;generationv1\242\002\003SPG\252\002&Stabilityai.Platformapis.Generation.V1\312\002&Stabilityai\\Platformapis\\Generation\\V1\342\0022Stabilityai\\Platformapis\\Generation\\V1\\GPBMetadata\352\002)Stabilityai::Platformapis::Generation::V1' _TRANSFORMMATRIX.fields_by_name['data']._options = None _TRANSFORMMATRIX.fields_by_name['data']._serialized_options = b'\020\001' - _globals['_FINISHREASON']._serialized_start=9970 - _globals['_FINISHREASON']._serialized_end=10039 - _globals['_ARTIFACTTYPE']._serialized_start=10042 - _globals['_ARTIFACTTYPE']._serialized_end=10290 - _globals['_MASKEDAREAINIT']._serialized_start=10292 - _globals['_MASKEDAREAINIT']._serialized_end=10395 - _globals['_WEIGHTMETHOD']._serialized_start=10397 - _globals['_WEIGHTMETHOD']._serialized_end=10450 - _globals['_DIFFUSIONSAMPLER']._serialized_start=10453 - _globals['_DIFFUSIONSAMPLER']._serialized_end=10733 - _globals['_UPSCALER']._serialized_start=10735 - _globals['_UPSCALER']._serialized_end=10805 - _globals['_GUIDANCEPRESET']._serialized_start=10808 - _globals['_GUIDANCEPRESET']._serialized_end=11024 - _globals['_MODELARCHITECTURE']._serialized_start=11027 - _globals['_MODELARCHITECTURE']._serialized_end=11172 - _globals['_ACTION']._serialized_start=11175 - _globals['_ACTION']._serialized_end=11337 - _globals['_CLASSIFIERMODE']._serialized_start=11339 - _globals['_CLASSIFIERMODE']._serialized_end=11407 - _globals['_INTERPOLATEMODE']._serialized_start=11410 - _globals['_INTERPOLATEMODE']._serialized_end=11550 - _globals['_BORDERMODE']._serialized_start=11552 - _globals['_BORDERMODE']._serialized_end=11660 - _globals['_COLORMATCHMODE']._serialized_start=11662 - _globals['_COLORMATCHMODE']._serialized_end=11741 - _globals['_CAMERATYPE']._serialized_start=11743 - _globals['_CAMERATYPE']._serialized_end=11804 - _globals['_RENDERMODE']._serialized_start=11806 - _globals['_RENDERMODE']._serialized_end=11858 - _globals['_ASSETACTION']._serialized_start=11860 - _globals['_ASSETACTION']._serialized_end=11921 - _globals['_ASSETUSE']._serialized_start=11924 - _globals['_ASSETUSE']._serialized_end=12053 - _globals['_STAGEACTION']._serialized_start=12055 - _globals['_STAGEACTION']._serialized_end=12142 + _globals['_FINISHREASON']._serialized_start=10884 + _globals['_FINISHREASON']._serialized_end=10953 + _globals['_ARTIFACTTYPE']._serialized_start=10956 + _globals['_ARTIFACTTYPE']._serialized_end=11204 + _globals['_MASKEDAREAINIT']._serialized_start=11206 + _globals['_MASKEDAREAINIT']._serialized_end=11309 + _globals['_WEIGHTMETHOD']._serialized_start=11311 + _globals['_WEIGHTMETHOD']._serialized_end=11364 + _globals['_DIFFUSIONSAMPLER']._serialized_start=11367 + _globals['_DIFFUSIONSAMPLER']._serialized_end=11647 + _globals['_UPSCALER']._serialized_start=11649 + _globals['_UPSCALER']._serialized_end=11719 + _globals['_GUIDANCEPRESET']._serialized_start=11722 + _globals['_GUIDANCEPRESET']._serialized_end=11938 + _globals['_MODELARCHITECTURE']._serialized_start=11941 + _globals['_MODELARCHITECTURE']._serialized_end=12086 + _globals['_T2IADAPTER']._serialized_start=12088 + _globals['_T2IADAPTER']._serialized_end=12188 + _globals['_T2IADAPTERINIT']._serialized_start=12190 + _globals['_T2IADAPTERINIT']._serialized_end=12266 + _globals['_ACTION']._serialized_start=12269 + _globals['_ACTION']._serialized_end=12431 + _globals['_CLASSIFIERMODE']._serialized_start=12433 + _globals['_CLASSIFIERMODE']._serialized_end=12501 + _globals['_INTERPOLATEMODE']._serialized_start=12504 + _globals['_INTERPOLATEMODE']._serialized_end=12644 + _globals['_BORDERMODE']._serialized_start=12646 + _globals['_BORDERMODE']._serialized_end=12754 + _globals['_COLORMATCHMODE']._serialized_start=12756 + _globals['_COLORMATCHMODE']._serialized_end=12835 + _globals['_CAMERATYPE']._serialized_start=12837 + _globals['_CAMERATYPE']._serialized_end=12898 + _globals['_RENDERMODE']._serialized_start=12900 + _globals['_RENDERMODE']._serialized_end=12952 + _globals['_ASSETACTION']._serialized_start=12954 + _globals['_ASSETACTION']._serialized_end=13015 + _globals['_ASSETUSE']._serialized_start=13018 + _globals['_ASSETUSE']._serialized_end=13147 + _globals['_STAGEACTION']._serialized_start=13149 + _globals['_STAGEACTION']._serialized_end=13236 _globals['_TOKEN']._serialized_start=164 _globals['_TOKEN']._serialized_end=221 _globals['_TOKENS']._serialized_start=224 @@ -92,46 +96,54 @@ _globals['_GUIDANCEPARAMETERS']._serialized_end=3774 _globals['_TRANSFORMTYPE']._serialized_start=3777 _globals['_TRANSFORMTYPE']._serialized_end=3970 - _globals['_IMAGEPARAMETERS']._serialized_start=3973 - _globals['_IMAGEPARAMETERS']._serialized_end=4642 - _globals['_CLASSIFIERCONCEPT']._serialized_start=4644 - _globals['_CLASSIFIERCONCEPT']._serialized_end=4738 - _globals['_CLASSIFIERCATEGORY']._serialized_start=4741 - _globals['_CLASSIFIERCATEGORY']._serialized_end=5130 - _globals['_CLASSIFIERPARAMETERS']._serialized_start=5133 - _globals['_CLASSIFIERPARAMETERS']._serialized_end=5447 - _globals['_INTERPOLATEPARAMETERS']._serialized_start=5450 - _globals['_INTERPOLATEPARAMETERS']._serialized_end=5588 - _globals['_TRANSFORMCOLORADJUST']._serialized_start=5591 - _globals['_TRANSFORMCOLORADJUST']._serialized_end=6162 - _globals['_TRANSFORMDEPTHCALC']._serialized_start=6165 - _globals['_TRANSFORMDEPTHCALC']._serialized_end=6339 - _globals['_TRANSFORMMATRIX']._serialized_start=6341 - _globals['_TRANSFORMMATRIX']._serialized_end=6382 - _globals['_TRANSFORMRESAMPLE']._serialized_start=6385 - _globals['_TRANSFORMRESAMPLE']._serialized_end=6801 - _globals['_CAMERAPARAMETERS']._serialized_start=6804 - _globals['_CAMERAPARAMETERS']._serialized_end=6998 - _globals['_TRANSFORMCAMERAPOSE']._serialized_start=7001 - _globals['_TRANSFORMCAMERAPOSE']._serialized_end=7371 - _globals['_TRANSFORMPARAMETERS']._serialized_start=7374 - _globals['_TRANSFORMPARAMETERS']._serialized_end=7785 - _globals['_ASSETPARAMETERS']._serialized_start=7788 - _globals['_ASSETPARAMETERS']._serialized_end=7981 - _globals['_ANSWERMETA']._serialized_start=7984 - _globals['_ANSWERMETA']._serialized_end=8164 - _globals['_ANSWER']._serialized_start=8167 - _globals['_ANSWER']._serialized_end=8455 - _globals['_ANSWERBATCH']._serialized_start=8457 - _globals['_ANSWERBATCH']._serialized_end=8571 - _globals['_REQUEST']._serialized_start=8574 - _globals['_REQUEST']._serialized_end=9464 - _globals['_ONSTATUS']._serialized_start=9467 - _globals['_ONSTATUS']._serialized_end=9672 - _globals['_STAGE']._serialized_start=9675 - _globals['_STAGE']._serialized_end=9852 - _globals['_CHAINREQUEST']._serialized_start=9854 - _globals['_CHAINREQUEST']._serialized_end=9968 - _globals['_GENERATIONSERVICE']._serialized_start=12145 - _globals['_GENERATIONSERVICE']._serialized_end=12400 + _globals['_T2IADAPTERPARAMETER']._serialized_start=3973 + _globals['_T2IADAPTERPARAMETER']._serialized_end=4224 + _globals['_CAIPARAMETERS']._serialized_start=4227 + _globals['_CAIPARAMETERS']._serialized_end=4455 + _globals['_CAIPARAMETERS_MODELMETADATA']._serialized_start=4354 + _globals['_CAIPARAMETERS_MODELMETADATA']._serialized_end=4441 + _globals['_FINETUNINGPARAMETERS']._serialized_start=4457 + _globals['_FINETUNINGPARAMETERS']._serialized_end=4546 + _globals['_IMAGEPARAMETERS']._serialized_start=4549 + _globals['_IMAGEPARAMETERS']._serialized_end=5556 + _globals['_CLASSIFIERCONCEPT']._serialized_start=5558 + _globals['_CLASSIFIERCONCEPT']._serialized_end=5652 + _globals['_CLASSIFIERCATEGORY']._serialized_start=5655 + _globals['_CLASSIFIERCATEGORY']._serialized_end=6044 + _globals['_CLASSIFIERPARAMETERS']._serialized_start=6047 + _globals['_CLASSIFIERPARAMETERS']._serialized_end=6361 + _globals['_INTERPOLATEPARAMETERS']._serialized_start=6364 + _globals['_INTERPOLATEPARAMETERS']._serialized_end=6502 + _globals['_TRANSFORMCOLORADJUST']._serialized_start=6505 + _globals['_TRANSFORMCOLORADJUST']._serialized_end=7076 + _globals['_TRANSFORMDEPTHCALC']._serialized_start=7079 + _globals['_TRANSFORMDEPTHCALC']._serialized_end=7253 + _globals['_TRANSFORMMATRIX']._serialized_start=7255 + _globals['_TRANSFORMMATRIX']._serialized_end=7296 + _globals['_TRANSFORMRESAMPLE']._serialized_start=7299 + _globals['_TRANSFORMRESAMPLE']._serialized_end=7715 + _globals['_CAMERAPARAMETERS']._serialized_start=7718 + _globals['_CAMERAPARAMETERS']._serialized_end=7912 + _globals['_TRANSFORMCAMERAPOSE']._serialized_start=7915 + _globals['_TRANSFORMCAMERAPOSE']._serialized_end=8285 + _globals['_TRANSFORMPARAMETERS']._serialized_start=8288 + _globals['_TRANSFORMPARAMETERS']._serialized_end=8699 + _globals['_ASSETPARAMETERS']._serialized_start=8702 + _globals['_ASSETPARAMETERS']._serialized_end=8895 + _globals['_ANSWERMETA']._serialized_start=8898 + _globals['_ANSWERMETA']._serialized_end=9078 + _globals['_ANSWER']._serialized_start=9081 + _globals['_ANSWER']._serialized_end=9369 + _globals['_ANSWERBATCH']._serialized_start=9371 + _globals['_ANSWERBATCH']._serialized_end=9485 + _globals['_REQUEST']._serialized_start=9488 + _globals['_REQUEST']._serialized_end=10378 + _globals['_ONSTATUS']._serialized_start=10381 + _globals['_ONSTATUS']._serialized_end=10586 + _globals['_STAGE']._serialized_start=10589 + _globals['_STAGE']._serialized_end=10766 + _globals['_CHAINREQUEST']._serialized_start=10768 + _globals['_CHAINREQUEST']._serialized_end=10882 + _globals['_GENERATIONSERVICE']._serialized_start=13239 + _globals['_GENERATIONSERVICE']._serialized_end=13494 # @@protoc_insertion_point(module_scope) diff --git a/src/stability_api/platform/generation/v1/generation_pb2.pyi b/src/stability_api/platform/generation/v1/generation_pb2.pyi index 52506e0..8f77dc9 100644 --- a/src/stability_api/platform/generation/v1/generation_pb2.pyi +++ b/src/stability_api/platform/generation/v1/generation_pb2.pyi @@ -78,6 +78,18 @@ class ModelArchitecture(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): MODEL_ARCHITECTURE_CLIP_RESNET: _ClassVar[ModelArchitecture] MODEL_ARCHITECTURE_LDM: _ClassVar[ModelArchitecture] +class T2IAdapter(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + T2IADAPTER_NONE: _ClassVar[T2IAdapter] + T2IADAPTER_SKETCH: _ClassVar[T2IAdapter] + T2IADAPTER_DEPTH: _ClassVar[T2IAdapter] + T2IADAPTER_CANNY: _ClassVar[T2IAdapter] + +class T2IAdapterInit(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + T2IADAPTERINIT_IMAGE: _ClassVar[T2IAdapterInit] + T2IADAPTERINIT_ADAPTER_IMAGE: _ClassVar[T2IAdapterInit] + class Action(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): __slots__ = [] ACTION_PASSTHROUGH: _ClassVar[Action] @@ -189,6 +201,12 @@ MODEL_ARCHITECTURE_NONE: ModelArchitecture MODEL_ARCHITECTURE_CLIP_VIT: ModelArchitecture MODEL_ARCHITECTURE_CLIP_RESNET: ModelArchitecture MODEL_ARCHITECTURE_LDM: ModelArchitecture +T2IADAPTER_NONE: T2IAdapter +T2IADAPTER_SKETCH: T2IAdapter +T2IADAPTER_DEPTH: T2IAdapter +T2IADAPTER_CANNY: T2IAdapter +T2IADAPTERINIT_IMAGE: T2IAdapterInit +T2IADAPTERINIT_ADAPTER_IMAGE: T2IAdapterInit ACTION_PASSTHROUGH: Action ACTION_REGENERATE_DUPLICATE: Action ACTION_REGENERATE: Action @@ -410,8 +428,38 @@ class TransformType(_message.Message): upscaler: Upscaler def __init__(self, diffusion: _Optional[_Union[DiffusionSampler, str]] = ..., upscaler: _Optional[_Union[Upscaler, str]] = ...) -> None: ... +class T2IAdapterParameter(_message.Message): + __slots__ = ["adapter_type", "adapter_strength", "adapter_init_type"] + ADAPTER_TYPE_FIELD_NUMBER: _ClassVar[int] + ADAPTER_STRENGTH_FIELD_NUMBER: _ClassVar[int] + ADAPTER_INIT_TYPE_FIELD_NUMBER: _ClassVar[int] + adapter_type: T2IAdapter + adapter_strength: float + adapter_init_type: T2IAdapterInit + def __init__(self, adapter_type: _Optional[_Union[T2IAdapter, str]] = ..., adapter_strength: _Optional[float] = ..., adapter_init_type: _Optional[_Union[T2IAdapterInit, str]] = ...) -> None: ... + +class CAIParameters(_message.Message): + __slots__ = ["model_metadata"] + class ModelMetadata(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + MODEL_METADATA_UNSPECIFIED: _ClassVar[CAIParameters.ModelMetadata] + MODEL_METADATA_SIGN_WITH_ENGINE_ID: _ClassVar[CAIParameters.ModelMetadata] + MODEL_METADATA_UNSPECIFIED: CAIParameters.ModelMetadata + MODEL_METADATA_SIGN_WITH_ENGINE_ID: CAIParameters.ModelMetadata + MODEL_METADATA_FIELD_NUMBER: _ClassVar[int] + model_metadata: CAIParameters.ModelMetadata + def __init__(self, model_metadata: _Optional[_Union[CAIParameters.ModelMetadata, str]] = ...) -> None: ... + +class FineTuningParameters(_message.Message): + __slots__ = ["model_id", "weight"] + MODEL_ID_FIELD_NUMBER: _ClassVar[int] + WEIGHT_FIELD_NUMBER: _ClassVar[int] + model_id: str + weight: float + def __init__(self, model_id: _Optional[str] = ..., weight: _Optional[float] = ...) -> None: ... + class ImageParameters(_message.Message): - __slots__ = ["height", "width", "seed", "samples", "steps", "transform", "parameters", "masked_area_init", "weight_method", "quantize"] + __slots__ = ["height", "width", "seed", "samples", "steps", "transform", "parameters", "masked_area_init", "weight_method", "quantize", "cai_parameters", "adapter", "fine_tuning_parameters"] HEIGHT_FIELD_NUMBER: _ClassVar[int] WIDTH_FIELD_NUMBER: _ClassVar[int] SEED_FIELD_NUMBER: _ClassVar[int] @@ -422,6 +470,9 @@ class ImageParameters(_message.Message): MASKED_AREA_INIT_FIELD_NUMBER: _ClassVar[int] WEIGHT_METHOD_FIELD_NUMBER: _ClassVar[int] QUANTIZE_FIELD_NUMBER: _ClassVar[int] + CAI_PARAMETERS_FIELD_NUMBER: _ClassVar[int] + ADAPTER_FIELD_NUMBER: _ClassVar[int] + FINE_TUNING_PARAMETERS_FIELD_NUMBER: _ClassVar[int] height: int width: int seed: _containers.RepeatedScalarFieldContainer[int] @@ -432,7 +483,10 @@ class ImageParameters(_message.Message): masked_area_init: MaskedAreaInit weight_method: WeightMethod quantize: bool - def __init__(self, height: _Optional[int] = ..., width: _Optional[int] = ..., seed: _Optional[_Iterable[int]] = ..., samples: _Optional[int] = ..., steps: _Optional[int] = ..., transform: _Optional[_Union[TransformType, _Mapping]] = ..., parameters: _Optional[_Iterable[_Union[StepParameter, _Mapping]]] = ..., masked_area_init: _Optional[_Union[MaskedAreaInit, str]] = ..., weight_method: _Optional[_Union[WeightMethod, str]] = ..., quantize: bool = ...) -> None: ... + cai_parameters: CAIParameters + adapter: T2IAdapterParameter + fine_tuning_parameters: _containers.RepeatedCompositeFieldContainer[FineTuningParameters] + def __init__(self, height: _Optional[int] = ..., width: _Optional[int] = ..., seed: _Optional[_Iterable[int]] = ..., samples: _Optional[int] = ..., steps: _Optional[int] = ..., transform: _Optional[_Union[TransformType, _Mapping]] = ..., parameters: _Optional[_Iterable[_Union[StepParameter, _Mapping]]] = ..., masked_area_init: _Optional[_Union[MaskedAreaInit, str]] = ..., weight_method: _Optional[_Union[WeightMethod, str]] = ..., quantize: bool = ..., cai_parameters: _Optional[_Union[CAIParameters, _Mapping]] = ..., adapter: _Optional[_Union[T2IAdapterParameter, _Mapping]] = ..., fine_tuning_parameters: _Optional[_Iterable[_Union[FineTuningParameters, _Mapping]]] = ...) -> None: ... class ClassifierConcept(_message.Message): __slots__ = ["concept", "threshold"] diff --git a/src/stability_api/platform/project/v1/project.pb.go b/src/stability_api/platform/project/v1/project.pb.go index 26bacb2..08244ed 100644 --- a/src/stability_api/platform/project/v1/project.pb.go +++ b/src/stability_api/platform/project/v1/project.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: stability_api/platform/project/v1/project.proto @@ -220,6 +220,53 @@ func (ProjectSortDir) EnumDescriptor() ([]byte, []int) { return file_stability_api_platform_project_v1_project_proto_rawDescGZIP(), []int{3} } +// The Type of Project being created +type ProjectType int32 + +const ( + ProjectType_PROJECT_TYPE_UNSPECIFIED ProjectType = 0 // Zero-value, unspecified + ProjectType_PROJECT_TYPE_TRAINING ProjectType = 1 // Training project, used for Fine-Tuning models +) + +// Enum value maps for ProjectType. +var ( + ProjectType_name = map[int32]string{ + 0: "PROJECT_TYPE_UNSPECIFIED", + 1: "PROJECT_TYPE_TRAINING", + } + ProjectType_value = map[string]int32{ + "PROJECT_TYPE_UNSPECIFIED": 0, + "PROJECT_TYPE_TRAINING": 1, + } +) + +func (x ProjectType) Enum() *ProjectType { + p := new(ProjectType) + *p = x + return p +} + +func (x ProjectType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ProjectType) Descriptor() protoreflect.EnumDescriptor { + return file_stability_api_platform_project_v1_project_proto_enumTypes[4].Descriptor() +} + +func (ProjectType) Type() protoreflect.EnumType { + return &file_stability_api_platform_project_v1_project_proto_enumTypes[4] +} + +func (x ProjectType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ProjectType.Descriptor instead. +func (ProjectType) EnumDescriptor() ([]byte, []int) { + return file_stability_api_platform_project_v1_project_proto_rawDescGZIP(), []int{4} +} + type ProjectAsset struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -346,6 +393,7 @@ type Project struct { CreatedAt uint64 `protobuf:"varint,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Time of project creation (UTC seconds epoch) UpdatedAt uint64 `protobuf:"varint,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Time of last project update (UTC seconds epoch) Assets []*ProjectAsset `protobuf:"bytes,10,rep,name=assets,proto3" json:"assets,omitempty"` // The listing of all assets associated with the project + Type ProjectType `protobuf:"varint,11,opt,name=type,proto3,enum=stabilityai.platformapis.project.v1.ProjectType" json:"type,omitempty"` // The type of project } func (x *Project) Reset() { @@ -450,6 +498,13 @@ func (x *Project) GetAssets() []*ProjectAsset { return nil } +func (x *Project) GetType() ProjectType { + if x != nil { + return x.Type + } + return ProjectType_PROJECT_TYPE_UNSPECIFIED +} + type CreateProjectRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -460,6 +515,7 @@ type CreateProjectRequest struct { Access ProjectAccess `protobuf:"varint,3,opt,name=access,proto3,enum=stabilityai.platformapis.project.v1.ProjectAccess" json:"access,omitempty"` // The access of the project (such as public vs private) Status ProjectStatus `protobuf:"varint,4,opt,name=status,proto3,enum=stabilityai.platformapis.project.v1.ProjectStatus" json:"status,omitempty"` // The status of the project (such as active vs inactive) File *ProjectAsset `protobuf:"bytes,5,opt,name=file,proto3,oneof" json:"file,omitempty"` // Project file for the project (if existing, else will create) + Type ProjectType `protobuf:"varint,6,opt,name=type,proto3,enum=stabilityai.platformapis.project.v1.ProjectType" json:"type,omitempty"` // The type of project } func (x *CreateProjectRequest) Reset() { @@ -529,6 +585,13 @@ func (x *CreateProjectRequest) GetFile() *ProjectAsset { return nil } +func (x *CreateProjectRequest) GetType() ProjectType { + if x != nil { + return x.Type + } + return ProjectType_PROJECT_TYPE_UNSPECIFIED +} + type UpdateProjectRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -540,6 +603,7 @@ type UpdateProjectRequest struct { Access *ProjectAccess `protobuf:"varint,4,opt,name=access,proto3,enum=stabilityai.platformapis.project.v1.ProjectAccess,oneof" json:"access,omitempty"` // The access of the project (such as public vs private) Status *ProjectStatus `protobuf:"varint,5,opt,name=status,proto3,enum=stabilityai.platformapis.project.v1.ProjectStatus,oneof" json:"status,omitempty"` // The status of the project (such as active vs inactive) File *ProjectAsset `protobuf:"bytes,6,opt,name=file,proto3,oneof" json:"file,omitempty"` // Project file for the project + Type *ProjectType `protobuf:"varint,7,opt,name=type,proto3,enum=stabilityai.platformapis.project.v1.ProjectType,oneof" json:"type,omitempty"` // The type of project } func (x *UpdateProjectRequest) Reset() { @@ -616,6 +680,13 @@ func (x *UpdateProjectRequest) GetFile() *ProjectAsset { return nil } +func (x *UpdateProjectRequest) GetType() ProjectType { + if x != nil && x.Type != nil { + return *x.Type + } + return ProjectType_PROJECT_TYPE_UNSPECIFIED +} + type ListProjectRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1372,7 +1443,7 @@ var file_stability_api_platform_project_v1_project_proto_rawDesc = []byte{ 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x22, 0xc6, 0x03, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, + 0x02, 0x38, 0x01, 0x22, 0x8c, 0x04, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, @@ -1400,52 +1471,66 @@ var file_stability_api_platform_project_v1_project_proto_rawDesc = []byte{ 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, - 0x73, 0x73, 0x65, 0x74, 0x52, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x22, 0xc6, 0x02, 0x0a, - 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x08, 0x6f, - 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, - 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x4a, 0x0a, 0x06, 0x61, - 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, - 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, - 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x4a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x73, 0x73, 0x65, 0x74, 0x52, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x44, 0x0a, 0x04, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x22, 0x8c, 0x03, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, + 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, + 0x65, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, + 0x01, 0x12, 0x4a, 0x0a, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, + 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x4a, 0x0a, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, + 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x4a, 0x0a, 0x04, 0x66, 0x69, 0x6c, + 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x12, 0x4a, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x48, 0x01, 0x52, 0x04, 0x66, 0x69, + 0x6c, 0x65, 0x88, 0x01, 0x01, 0x12, 0x44, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x42, 0x0b, 0x0a, 0x09, 0x5f, + 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x66, 0x69, 0x6c, + 0x65, 0x22, 0xd9, 0x03, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, + 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x74, 0x69, + 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x05, 0x74, 0x69, 0x74, + 0x6c, 0x65, 0x88, 0x01, 0x01, 0x12, 0x4f, 0x0a, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x48, 0x02, 0x52, 0x06, 0x61, 0x63, 0x63, + 0x65, 0x73, 0x73, 0x88, 0x01, 0x01, 0x12, 0x4f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x03, 0x52, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x88, 0x01, 0x01, 0x12, 0x4a, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x48, 0x04, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, + 0x88, 0x01, 0x01, 0x12, 0x49, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, - 0x73, 0x73, 0x65, 0x74, 0x48, 0x01, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x42, - 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x42, 0x07, 0x0a, 0x05, - 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0x85, 0x03, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, - 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x19, - 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, - 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x12, 0x4f, 0x0a, 0x06, 0x61, 0x63, 0x63, - 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, - 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x48, 0x02, 0x52, - 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x88, 0x01, 0x01, 0x12, 0x4f, 0x0a, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, - 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, - 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x03, - 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x88, 0x01, 0x01, 0x12, 0x4a, 0x0a, 0x04, 0x66, - 0x69, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x62, - 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x48, 0x04, 0x52, 0x04, - 0x66, 0x69, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, - 0x72, 0x5f, 0x69, 0x64, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x42, 0x09, - 0x0a, 0x07, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0x41, 0x0a, + 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x54, + 0x79, 0x70, 0x65, 0x48, 0x05, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0b, + 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x42, 0x08, 0x0a, 0x06, 0x5f, + 0x74, 0x69, 0x74, 0x6c, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x07, 0x0a, 0x05, 0x5f, + 0x66, 0x69, 0x6c, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x41, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, @@ -1581,97 +1666,102 @@ var file_stability_api_platform_project_v1_project_proto_rawDesc = []byte{ 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x53, 0x4f, 0x52, 0x54, 0x5f, 0x44, 0x49, 0x52, 0x5f, 0x41, 0x53, 0x43, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x53, 0x4f, 0x52, 0x54, 0x5f, 0x44, 0x49, 0x52, 0x5f, 0x44, 0x45, 0x53, 0x43, 0x10, - 0x02, 0x32, 0xe1, 0x08, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x12, 0x73, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x39, - 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x61, 0x62, - 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x00, 0x12, 0x73, 0x0a, 0x06, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x12, 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, - 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, + 0x02, 0x2a, 0x46, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x1c, 0x0a, 0x18, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, + 0x0a, 0x15, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, + 0x52, 0x41, 0x49, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x32, 0xe1, 0x08, 0x0a, 0x0e, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x73, 0x0a, 0x06, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, + 0x00, 0x12, 0x73, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x39, 0x2e, 0x73, 0x74, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x22, 0x00, 0x12, 0x71, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x00, 0x12, 0x71, - 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, - 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x00, 0x30, - 0x01, 0x12, 0x6d, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x36, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, - 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x00, 0x30, 0x01, 0x12, 0x6d, 0x0a, 0x03, 0x47, 0x65, 0x74, + 0x12, 0x36, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x00, - 0x12, 0x73, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x39, 0x2e, 0x73, 0x74, 0x61, + 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x00, 0x12, 0x73, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x12, 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, + 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x00, 0x12, 0x7c, 0x0a, + 0x09, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x35, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, - 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x22, 0x00, 0x12, 0x7c, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, - 0x74, 0x73, 0x12, 0x35, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, - 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, - 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x73, 0x74, 0x61, 0x62, - 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x82, 0x01, 0x0a, 0x0b, 0x55, 0x6e, 0x74, 0x61, 0x67, 0x41, 0x73, 0x73, - 0x65, 0x74, 0x73, 0x12, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, - 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x74, 0x61, 0x67, 0x41, - 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x73, - 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, - 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x74, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x82, 0x01, 0x0a, 0x0b, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, - 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x2e, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x36, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x73, 0x73, - 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x85, 0x01, - 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x38, - 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, - 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xbe, 0x02, 0x0a, 0x27, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, + 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x82, 0x01, 0x0a, 0x0b, + 0x55, 0x6e, 0x74, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, - 0x31, 0x42, 0x0c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x56, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, - 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x69, - 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x73, 0x74, - 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x76, 0x31, 0x3b, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, 0x50, 0xaa, - 0x02, 0x23, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x50, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x23, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, - 0x5c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x2f, 0x53, 0x74, - 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5c, 0x56, - 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x26, - 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x3a, 0x3a, 0x50, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x31, 0x2e, 0x55, 0x6e, 0x74, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x74, 0x61, 0x67, + 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x82, 0x01, 0x0a, 0x0b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, + 0x12, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x73, 0x73, 0x65, + 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x85, 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x73, 0x73, + 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xbe, 0x02, + 0x0a, 0x27, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x56, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, + 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, + 0x73, 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, + 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x76, + 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, 0x50, 0xaa, 0x02, 0x23, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x23, + 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x2f, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x3a, 0x3a, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, + 0x73, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1686,75 +1776,79 @@ func file_stability_api_platform_project_v1_project_proto_rawDescGZIP() []byte { return file_stability_api_platform_project_v1_project_proto_rawDescData } -var file_stability_api_platform_project_v1_project_proto_enumTypes = make([]protoimpl.EnumInfo, 4) +var file_stability_api_platform_project_v1_project_proto_enumTypes = make([]protoimpl.EnumInfo, 5) var file_stability_api_platform_project_v1_project_proto_msgTypes = make([]protoimpl.MessageInfo, 18) var file_stability_api_platform_project_v1_project_proto_goTypes = []interface{}{ (ProjectAccess)(0), // 0: stabilityai.platformapis.project.v1.ProjectAccess (ProjectStatus)(0), // 1: stabilityai.platformapis.project.v1.ProjectStatus (ProjectAssetUse)(0), // 2: stabilityai.platformapis.project.v1.ProjectAssetUse (ProjectSortDir)(0), // 3: stabilityai.platformapis.project.v1.ProjectSortDir - (*ProjectAsset)(nil), // 4: stabilityai.platformapis.project.v1.ProjectAsset - (*Project)(nil), // 5: stabilityai.platformapis.project.v1.Project - (*CreateProjectRequest)(nil), // 6: stabilityai.platformapis.project.v1.CreateProjectRequest - (*UpdateProjectRequest)(nil), // 7: stabilityai.platformapis.project.v1.UpdateProjectRequest - (*ListProjectRequest)(nil), // 8: stabilityai.platformapis.project.v1.ListProjectRequest - (*GetProjectRequest)(nil), // 9: stabilityai.platformapis.project.v1.GetProjectRequest - (*DeleteProjectRequest)(nil), // 10: stabilityai.platformapis.project.v1.DeleteProjectRequest - (*QueryAssetsRequest)(nil), // 11: stabilityai.platformapis.project.v1.QueryAssetsRequest - (*QueryAssetsResponse)(nil), // 12: stabilityai.platformapis.project.v1.QueryAssetsResponse - (*TagAssetsRequest)(nil), // 13: stabilityai.platformapis.project.v1.TagAssetsRequest - (*TagAssetsResponse)(nil), // 14: stabilityai.platformapis.project.v1.TagAssetsResponse - (*UntagAssetsRequest)(nil), // 15: stabilityai.platformapis.project.v1.UntagAssetsRequest - (*UntagAssetsResponse)(nil), // 16: stabilityai.platformapis.project.v1.UntagAssetsResponse - (*DeleteAssetsRequest)(nil), // 17: stabilityai.platformapis.project.v1.DeleteAssetsRequest - (*DeleteAssetsResponse)(nil), // 18: stabilityai.platformapis.project.v1.DeleteAssetsResponse - nil, // 19: stabilityai.platformapis.project.v1.ProjectAsset.TagsEntry - nil, // 20: stabilityai.platformapis.project.v1.QueryAssetsRequest.TagsEntry - nil, // 21: stabilityai.platformapis.project.v1.TagAssetsRequest.TagsEntry - (*v1.Request)(nil), // 22: stabilityai.platformapis.generation.v1.Request + (ProjectType)(0), // 4: stabilityai.platformapis.project.v1.ProjectType + (*ProjectAsset)(nil), // 5: stabilityai.platformapis.project.v1.ProjectAsset + (*Project)(nil), // 6: stabilityai.platformapis.project.v1.Project + (*CreateProjectRequest)(nil), // 7: stabilityai.platformapis.project.v1.CreateProjectRequest + (*UpdateProjectRequest)(nil), // 8: stabilityai.platformapis.project.v1.UpdateProjectRequest + (*ListProjectRequest)(nil), // 9: stabilityai.platformapis.project.v1.ListProjectRequest + (*GetProjectRequest)(nil), // 10: stabilityai.platformapis.project.v1.GetProjectRequest + (*DeleteProjectRequest)(nil), // 11: stabilityai.platformapis.project.v1.DeleteProjectRequest + (*QueryAssetsRequest)(nil), // 12: stabilityai.platformapis.project.v1.QueryAssetsRequest + (*QueryAssetsResponse)(nil), // 13: stabilityai.platformapis.project.v1.QueryAssetsResponse + (*TagAssetsRequest)(nil), // 14: stabilityai.platformapis.project.v1.TagAssetsRequest + (*TagAssetsResponse)(nil), // 15: stabilityai.platformapis.project.v1.TagAssetsResponse + (*UntagAssetsRequest)(nil), // 16: stabilityai.platformapis.project.v1.UntagAssetsRequest + (*UntagAssetsResponse)(nil), // 17: stabilityai.platformapis.project.v1.UntagAssetsResponse + (*DeleteAssetsRequest)(nil), // 18: stabilityai.platformapis.project.v1.DeleteAssetsRequest + (*DeleteAssetsResponse)(nil), // 19: stabilityai.platformapis.project.v1.DeleteAssetsResponse + nil, // 20: stabilityai.platformapis.project.v1.ProjectAsset.TagsEntry + nil, // 21: stabilityai.platformapis.project.v1.QueryAssetsRequest.TagsEntry + nil, // 22: stabilityai.platformapis.project.v1.TagAssetsRequest.TagsEntry + (*v1.Request)(nil), // 23: stabilityai.platformapis.generation.v1.Request } var file_stability_api_platform_project_v1_project_proto_depIdxs = []int32{ 2, // 0: stabilityai.platformapis.project.v1.ProjectAsset.use:type_name -> stabilityai.platformapis.project.v1.ProjectAssetUse - 22, // 1: stabilityai.platformapis.project.v1.ProjectAsset.request:type_name -> stabilityai.platformapis.generation.v1.Request - 19, // 2: stabilityai.platformapis.project.v1.ProjectAsset.tags:type_name -> stabilityai.platformapis.project.v1.ProjectAsset.TagsEntry + 23, // 1: stabilityai.platformapis.project.v1.ProjectAsset.request:type_name -> stabilityai.platformapis.generation.v1.Request + 20, // 2: stabilityai.platformapis.project.v1.ProjectAsset.tags:type_name -> stabilityai.platformapis.project.v1.ProjectAsset.TagsEntry 0, // 3: stabilityai.platformapis.project.v1.Project.access:type_name -> stabilityai.platformapis.project.v1.ProjectAccess 1, // 4: stabilityai.platformapis.project.v1.Project.status:type_name -> stabilityai.platformapis.project.v1.ProjectStatus - 4, // 5: stabilityai.platformapis.project.v1.Project.file:type_name -> stabilityai.platformapis.project.v1.ProjectAsset - 4, // 6: stabilityai.platformapis.project.v1.Project.assets:type_name -> stabilityai.platformapis.project.v1.ProjectAsset - 0, // 7: stabilityai.platformapis.project.v1.CreateProjectRequest.access:type_name -> stabilityai.platformapis.project.v1.ProjectAccess - 1, // 8: stabilityai.platformapis.project.v1.CreateProjectRequest.status:type_name -> stabilityai.platformapis.project.v1.ProjectStatus - 4, // 9: stabilityai.platformapis.project.v1.CreateProjectRequest.file:type_name -> stabilityai.platformapis.project.v1.ProjectAsset - 0, // 10: stabilityai.platformapis.project.v1.UpdateProjectRequest.access:type_name -> stabilityai.platformapis.project.v1.ProjectAccess - 1, // 11: stabilityai.platformapis.project.v1.UpdateProjectRequest.status:type_name -> stabilityai.platformapis.project.v1.ProjectStatus - 4, // 12: stabilityai.platformapis.project.v1.UpdateProjectRequest.file:type_name -> stabilityai.platformapis.project.v1.ProjectAsset - 2, // 13: stabilityai.platformapis.project.v1.QueryAssetsRequest.use:type_name -> stabilityai.platformapis.project.v1.ProjectAssetUse - 3, // 14: stabilityai.platformapis.project.v1.QueryAssetsRequest.sort_dir:type_name -> stabilityai.platformapis.project.v1.ProjectSortDir - 20, // 15: stabilityai.platformapis.project.v1.QueryAssetsRequest.tags:type_name -> stabilityai.platformapis.project.v1.QueryAssetsRequest.TagsEntry - 4, // 16: stabilityai.platformapis.project.v1.QueryAssetsResponse.assets:type_name -> stabilityai.platformapis.project.v1.ProjectAsset - 21, // 17: stabilityai.platformapis.project.v1.TagAssetsRequest.tags:type_name -> stabilityai.platformapis.project.v1.TagAssetsRequest.TagsEntry - 6, // 18: stabilityai.platformapis.project.v1.ProjectService.Create:input_type -> stabilityai.platformapis.project.v1.CreateProjectRequest - 7, // 19: stabilityai.platformapis.project.v1.ProjectService.Update:input_type -> stabilityai.platformapis.project.v1.UpdateProjectRequest - 8, // 20: stabilityai.platformapis.project.v1.ProjectService.List:input_type -> stabilityai.platformapis.project.v1.ListProjectRequest - 9, // 21: stabilityai.platformapis.project.v1.ProjectService.Get:input_type -> stabilityai.platformapis.project.v1.GetProjectRequest - 10, // 22: stabilityai.platformapis.project.v1.ProjectService.Delete:input_type -> stabilityai.platformapis.project.v1.DeleteProjectRequest - 13, // 23: stabilityai.platformapis.project.v1.ProjectService.TagAssets:input_type -> stabilityai.platformapis.project.v1.TagAssetsRequest - 15, // 24: stabilityai.platformapis.project.v1.ProjectService.UntagAssets:input_type -> stabilityai.platformapis.project.v1.UntagAssetsRequest - 11, // 25: stabilityai.platformapis.project.v1.ProjectService.QueryAssets:input_type -> stabilityai.platformapis.project.v1.QueryAssetsRequest - 17, // 26: stabilityai.platformapis.project.v1.ProjectService.DeleteAssets:input_type -> stabilityai.platformapis.project.v1.DeleteAssetsRequest - 5, // 27: stabilityai.platformapis.project.v1.ProjectService.Create:output_type -> stabilityai.platformapis.project.v1.Project - 5, // 28: stabilityai.platformapis.project.v1.ProjectService.Update:output_type -> stabilityai.platformapis.project.v1.Project - 5, // 29: stabilityai.platformapis.project.v1.ProjectService.List:output_type -> stabilityai.platformapis.project.v1.Project - 5, // 30: stabilityai.platformapis.project.v1.ProjectService.Get:output_type -> stabilityai.platformapis.project.v1.Project - 5, // 31: stabilityai.platformapis.project.v1.ProjectService.Delete:output_type -> stabilityai.platformapis.project.v1.Project - 14, // 32: stabilityai.platformapis.project.v1.ProjectService.TagAssets:output_type -> stabilityai.platformapis.project.v1.TagAssetsResponse - 16, // 33: stabilityai.platformapis.project.v1.ProjectService.UntagAssets:output_type -> stabilityai.platformapis.project.v1.UntagAssetsResponse - 12, // 34: stabilityai.platformapis.project.v1.ProjectService.QueryAssets:output_type -> stabilityai.platformapis.project.v1.QueryAssetsResponse - 18, // 35: stabilityai.platformapis.project.v1.ProjectService.DeleteAssets:output_type -> stabilityai.platformapis.project.v1.DeleteAssetsResponse - 27, // [27:36] is the sub-list for method output_type - 18, // [18:27] is the sub-list for method input_type - 18, // [18:18] is the sub-list for extension type_name - 18, // [18:18] is the sub-list for extension extendee - 0, // [0:18] is the sub-list for field type_name + 5, // 5: stabilityai.platformapis.project.v1.Project.file:type_name -> stabilityai.platformapis.project.v1.ProjectAsset + 5, // 6: stabilityai.platformapis.project.v1.Project.assets:type_name -> stabilityai.platformapis.project.v1.ProjectAsset + 4, // 7: stabilityai.platformapis.project.v1.Project.type:type_name -> stabilityai.platformapis.project.v1.ProjectType + 0, // 8: stabilityai.platformapis.project.v1.CreateProjectRequest.access:type_name -> stabilityai.platformapis.project.v1.ProjectAccess + 1, // 9: stabilityai.platformapis.project.v1.CreateProjectRequest.status:type_name -> stabilityai.platformapis.project.v1.ProjectStatus + 5, // 10: stabilityai.platformapis.project.v1.CreateProjectRequest.file:type_name -> stabilityai.platformapis.project.v1.ProjectAsset + 4, // 11: stabilityai.platformapis.project.v1.CreateProjectRequest.type:type_name -> stabilityai.platformapis.project.v1.ProjectType + 0, // 12: stabilityai.platformapis.project.v1.UpdateProjectRequest.access:type_name -> stabilityai.platformapis.project.v1.ProjectAccess + 1, // 13: stabilityai.platformapis.project.v1.UpdateProjectRequest.status:type_name -> stabilityai.platformapis.project.v1.ProjectStatus + 5, // 14: stabilityai.platformapis.project.v1.UpdateProjectRequest.file:type_name -> stabilityai.platformapis.project.v1.ProjectAsset + 4, // 15: stabilityai.platformapis.project.v1.UpdateProjectRequest.type:type_name -> stabilityai.platformapis.project.v1.ProjectType + 2, // 16: stabilityai.platformapis.project.v1.QueryAssetsRequest.use:type_name -> stabilityai.platformapis.project.v1.ProjectAssetUse + 3, // 17: stabilityai.platformapis.project.v1.QueryAssetsRequest.sort_dir:type_name -> stabilityai.platformapis.project.v1.ProjectSortDir + 21, // 18: stabilityai.platformapis.project.v1.QueryAssetsRequest.tags:type_name -> stabilityai.platformapis.project.v1.QueryAssetsRequest.TagsEntry + 5, // 19: stabilityai.platformapis.project.v1.QueryAssetsResponse.assets:type_name -> stabilityai.platformapis.project.v1.ProjectAsset + 22, // 20: stabilityai.platformapis.project.v1.TagAssetsRequest.tags:type_name -> stabilityai.platformapis.project.v1.TagAssetsRequest.TagsEntry + 7, // 21: stabilityai.platformapis.project.v1.ProjectService.Create:input_type -> stabilityai.platformapis.project.v1.CreateProjectRequest + 8, // 22: stabilityai.platformapis.project.v1.ProjectService.Update:input_type -> stabilityai.platformapis.project.v1.UpdateProjectRequest + 9, // 23: stabilityai.platformapis.project.v1.ProjectService.List:input_type -> stabilityai.platformapis.project.v1.ListProjectRequest + 10, // 24: stabilityai.platformapis.project.v1.ProjectService.Get:input_type -> stabilityai.platformapis.project.v1.GetProjectRequest + 11, // 25: stabilityai.platformapis.project.v1.ProjectService.Delete:input_type -> stabilityai.platformapis.project.v1.DeleteProjectRequest + 14, // 26: stabilityai.platformapis.project.v1.ProjectService.TagAssets:input_type -> stabilityai.platformapis.project.v1.TagAssetsRequest + 16, // 27: stabilityai.platformapis.project.v1.ProjectService.UntagAssets:input_type -> stabilityai.platformapis.project.v1.UntagAssetsRequest + 12, // 28: stabilityai.platformapis.project.v1.ProjectService.QueryAssets:input_type -> stabilityai.platformapis.project.v1.QueryAssetsRequest + 18, // 29: stabilityai.platformapis.project.v1.ProjectService.DeleteAssets:input_type -> stabilityai.platformapis.project.v1.DeleteAssetsRequest + 6, // 30: stabilityai.platformapis.project.v1.ProjectService.Create:output_type -> stabilityai.platformapis.project.v1.Project + 6, // 31: stabilityai.platformapis.project.v1.ProjectService.Update:output_type -> stabilityai.platformapis.project.v1.Project + 6, // 32: stabilityai.platformapis.project.v1.ProjectService.List:output_type -> stabilityai.platformapis.project.v1.Project + 6, // 33: stabilityai.platformapis.project.v1.ProjectService.Get:output_type -> stabilityai.platformapis.project.v1.Project + 6, // 34: stabilityai.platformapis.project.v1.ProjectService.Delete:output_type -> stabilityai.platformapis.project.v1.Project + 15, // 35: stabilityai.platformapis.project.v1.ProjectService.TagAssets:output_type -> stabilityai.platformapis.project.v1.TagAssetsResponse + 17, // 36: stabilityai.platformapis.project.v1.ProjectService.UntagAssets:output_type -> stabilityai.platformapis.project.v1.UntagAssetsResponse + 13, // 37: stabilityai.platformapis.project.v1.ProjectService.QueryAssets:output_type -> stabilityai.platformapis.project.v1.QueryAssetsResponse + 19, // 38: stabilityai.platformapis.project.v1.ProjectService.DeleteAssets:output_type -> stabilityai.platformapis.project.v1.DeleteAssetsResponse + 30, // [30:39] is the sub-list for method output_type + 21, // [21:30] is the sub-list for method input_type + 21, // [21:21] is the sub-list for extension type_name + 21, // [21:21] is the sub-list for extension extendee + 0, // [0:21] is the sub-list for field type_name } func init() { file_stability_api_platform_project_v1_project_proto_init() } @@ -1959,7 +2053,7 @@ func file_stability_api_platform_project_v1_project_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_stability_api_platform_project_v1_project_proto_rawDesc, - NumEnums: 4, + NumEnums: 5, NumMessages: 18, NumExtensions: 0, NumServices: 1, diff --git a/src/stability_api/platform/project/v1/project_pb.d.ts b/src/stability_api/platform/project/v1/project_pb.d.ts index 87be729..6b529a9 100644 --- a/src/stability_api/platform/project/v1/project_pb.d.ts +++ b/src/stability_api/platform/project/v1/project_pb.d.ts @@ -118,6 +118,27 @@ export declare enum ProjectSortDir { DESC = 2, } +/** + * The Type of Project being created + * + * @generated from enum stabilityai.platformapis.project.v1.ProjectType + */ +export declare enum ProjectType { + /** + * Zero-value, unspecified + * + * @generated from enum value: PROJECT_TYPE_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * Training project, used for Fine-Tuning models + * + * @generated from enum value: PROJECT_TYPE_TRAINING = 1; + */ + TRAINING = 1, +} + /** * @generated from message stabilityai.platformapis.project.v1.ProjectAsset */ @@ -274,6 +295,13 @@ export declare class Project extends Message { */ assets: ProjectAsset[]; + /** + * The type of project + * + * @generated from field: stabilityai.platformapis.project.v1.ProjectType type = 11; + */ + type: ProjectType; + constructor(data?: PartialMessage); static readonly runtime: typeof proto3; @@ -328,6 +356,13 @@ export declare class CreateProjectRequest extends Message */ file?: ProjectAsset; + /** + * The type of project + * + * @generated from field: stabilityai.platformapis.project.v1.ProjectType type = 6; + */ + type: ProjectType; + constructor(data?: PartialMessage); static readonly runtime: typeof proto3; @@ -389,6 +424,13 @@ export declare class UpdateProjectRequest extends Message */ file?: ProjectAsset; + /** + * The type of project + * + * @generated from field: optional stabilityai.platformapis.project.v1.ProjectType type = 7; + */ + type?: ProjectType; + constructor(data?: PartialMessage); static readonly runtime: typeof proto3; diff --git a/src/stability_api/platform/project/v1/project_pb.js b/src/stability_api/platform/project/v1/project_pb.js index ffe14b4..1f85ec2 100644 --- a/src/stability_api/platform/project/v1/project_pb.js +++ b/src/stability_api/platform/project/v1/project_pb.js @@ -55,6 +55,19 @@ export const ProjectSortDir = proto3.makeEnum( ], ); +/** + * The Type of Project being created + * + * @generated from enum stabilityai.platformapis.project.v1.ProjectType + */ +export const ProjectType = proto3.makeEnum( + "stabilityai.platformapis.project.v1.ProjectType", + [ + {no: 0, name: "PROJECT_TYPE_UNSPECIFIED", localName: "UNSPECIFIED"}, + {no: 1, name: "PROJECT_TYPE_TRAINING", localName: "TRAINING"}, + ], +); + /** * @generated from message stabilityai.platformapis.project.v1.ProjectAsset */ @@ -89,6 +102,7 @@ export const Project = proto3.makeMessageType( { no: 8, name: "created_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 9, name: "updated_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 10, name: "assets", kind: "message", T: ProjectAsset, repeated: true }, + { no: 11, name: "type", kind: "enum", T: proto3.getEnumType(ProjectType) }, ], ); @@ -103,6 +117,7 @@ export const CreateProjectRequest = proto3.makeMessageType( { no: 3, name: "access", kind: "enum", T: proto3.getEnumType(ProjectAccess) }, { no: 4, name: "status", kind: "enum", T: proto3.getEnumType(ProjectStatus) }, { no: 5, name: "file", kind: "message", T: ProjectAsset, opt: true }, + { no: 6, name: "type", kind: "enum", T: proto3.getEnumType(ProjectType) }, ], ); @@ -118,6 +133,7 @@ export const UpdateProjectRequest = proto3.makeMessageType( { no: 4, name: "access", kind: "enum", T: proto3.getEnumType(ProjectAccess), opt: true }, { no: 5, name: "status", kind: "enum", T: proto3.getEnumType(ProjectStatus), opt: true }, { no: 6, name: "file", kind: "message", T: ProjectAsset, opt: true }, + { no: 7, name: "type", kind: "enum", T: proto3.getEnumType(ProjectType), opt: true }, ], ); diff --git a/src/stability_api/platform/project/v1/project_pb2.py b/src/stability_api/platform/project/v1/project_pb2.py index ab85964..979e82d 100644 --- a/src/stability_api/platform/project/v1/project_pb2.py +++ b/src/stability_api/platform/project/v1/project_pb2.py @@ -14,7 +14,7 @@ from stability_api.platform.generation.v1 import generation_pb2 as stability__api_dot_platform_dot_generation_dot_v1_dot_generation__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n/stability_api/platform/project/v1/project.proto\x12#stabilityai.platformapis.project.v1\x1a\x35stability_api/platform/generation/v1/generation.proto\"\xb3\x03\n\x0cProjectAsset\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x10\n\x03uri\x18\x02 \x01(\tR\x03uri\x12\x46\n\x03use\x18\x03 \x01(\x0e\x32\x34.stabilityai.platformapis.project.v1.ProjectAssetUseR\x03use\x12\x12\n\x04name\x18\x04 \x01(\tR\x04name\x12\x12\n\x04size\x18\x05 \x01(\x04R\x04size\x12\x1d\n\ncreated_at\x18\x06 \x01(\x04R\tcreatedAt\x12\x1d\n\nupdated_at\x18\x07 \x01(\x04R\tupdatedAt\x12I\n\x07request\x18\x08 \x01(\x0b\x32/.stabilityai.platformapis.generation.v1.RequestR\x07request\x12O\n\x04tags\x18\t \x03(\x0b\x32;.stabilityai.platformapis.project.v1.ProjectAsset.TagsEntryR\x04tags\x1a\x37\n\tTagsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xc6\x03\n\x07Project\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05title\x18\x02 \x01(\tR\x05title\x12\x19\n\x08owner_id\x18\x03 \x01(\tR\x07ownerId\x12J\n\x06\x61\x63\x63\x65ss\x18\x04 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectAccessR\x06\x61\x63\x63\x65ss\x12J\n\x06status\x18\x05 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectStatusR\x06status\x12\x12\n\x04size\x18\x06 \x01(\x04R\x04size\x12\x45\n\x04\x66ile\x18\x07 \x01(\x0b\x32\x31.stabilityai.platformapis.project.v1.ProjectAssetR\x04\x66ile\x12\x1d\n\ncreated_at\x18\x08 \x01(\x04R\tcreatedAt\x12\x1d\n\nupdated_at\x18\t \x01(\x04R\tupdatedAt\x12I\n\x06\x61ssets\x18\n \x03(\x0b\x32\x31.stabilityai.platformapis.project.v1.ProjectAssetR\x06\x61ssets\"\xc6\x02\n\x14\x43reateProjectRequest\x12\x14\n\x05title\x18\x01 \x01(\tR\x05title\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12J\n\x06\x61\x63\x63\x65ss\x18\x03 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectAccessR\x06\x61\x63\x63\x65ss\x12J\n\x06status\x18\x04 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectStatusR\x06status\x12J\n\x04\x66ile\x18\x05 \x01(\x0b\x32\x31.stabilityai.platformapis.project.v1.ProjectAssetH\x01R\x04\x66ile\x88\x01\x01\x42\x0b\n\t_owner_idB\x07\n\x05_file\"\x85\x03\n\x14UpdateProjectRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12\x19\n\x05title\x18\x03 \x01(\tH\x01R\x05title\x88\x01\x01\x12O\n\x06\x61\x63\x63\x65ss\x18\x04 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectAccessH\x02R\x06\x61\x63\x63\x65ss\x88\x01\x01\x12O\n\x06status\x18\x05 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectStatusH\x03R\x06status\x88\x01\x01\x12J\n\x04\x66ile\x18\x06 \x01(\x0b\x32\x31.stabilityai.platformapis.project.v1.ProjectAssetH\x04R\x04\x66ile\x88\x01\x01\x42\x0b\n\t_owner_idB\x08\n\x06_titleB\t\n\x07_accessB\t\n\x07_statusB\x07\n\x05_file\"A\n\x12ListProjectRequest\x12\x1e\n\x08owner_id\x18\x01 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x42\x0b\n\t_owner_id\"P\n\x11GetProjectRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x42\x0b\n\t_owner_id\"S\n\x14\x44\x65leteProjectRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x42\x0b\n\t_owner_id\"\x98\x04\n\x12QueryAssetsRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12\x19\n\x05since\x18\x03 \x01(\x04H\x01R\x05since\x88\x01\x01\x12\x19\n\x05until\x18\x04 \x01(\x04H\x02R\x05until\x88\x01\x01\x12\x19\n\x05limit\x18\x05 \x01(\x04H\x03R\x05limit\x88\x01\x01\x12 \n\tstart_key\x18\x06 \x01(\tH\x04R\x08startKey\x88\x01\x01\x12\x46\n\x03use\x18\x07 \x03(\x0e\x32\x34.stabilityai.platformapis.project.v1.ProjectAssetUseR\x03use\x12N\n\x08sort_dir\x18\x08 \x01(\x0e\x32\x33.stabilityai.platformapis.project.v1.ProjectSortDirR\x07sortDir\x12U\n\x04tags\x18\t \x03(\x0b\x32\x41.stabilityai.platformapis.project.v1.QueryAssetsRequest.TagsEntryR\x04tags\x1a\x37\n\tTagsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x0b\n\t_owner_idB\x08\n\x06_sinceB\x08\n\x06_untilB\x08\n\x06_limitB\x0c\n\n_start_key\"\x8d\x01\n\x13QueryAssetsResponse\x12I\n\x06\x61ssets\x18\x01 \x03(\x0b\x32\x31.stabilityai.platformapis.project.v1.ProjectAssetR\x06\x61ssets\x12\x1e\n\x08last_key\x18\x02 \x01(\tH\x00R\x07lastKey\x88\x01\x01\x42\x0b\n\t_last_key\"\xfa\x01\n\x10TagAssetsRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIds\x12S\n\x04tags\x18\x04 \x03(\x0b\x32?.stabilityai.platformapis.project.v1.TagAssetsRequest.TagsEntryR\x04tags\x1a\x37\n\tTagsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x0b\n\t_owner_id\"[\n\x11TagAssetsResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIds\"\x89\x01\n\x12UntagAssetsRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIds\x12\x19\n\x08tag_keys\x18\x04 \x03(\tR\x07tagKeysB\x0b\n\t_owner_id\"]\n\x13UntagAssetsResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIds\"o\n\x13\x44\x65leteAssetsRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIdsB\x0b\n\t_owner_id\"^\n\x14\x44\x65leteAssetsResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIds*F\n\rProjectAccess\x12\x1a\n\x16PROJECT_ACCESS_PRIVATE\x10\x00\x12\x19\n\x15PROJECT_ACCESS_PUBLIC\x10\x01*c\n\rProjectStatus\x12\x1b\n\x17PROJECT_STATUS_INACTIVE\x10\x00\x12\x19\n\x15PROJECT_STATUS_ACTIVE\x10\x01\x12\x1a\n\x16PROJECT_STATUS_DELETED\x10\x02*\xb0\x01\n\x0fProjectAssetUse\x12\x1f\n\x1bPROJECT_ASSET_USE_UNDEFINED\x10\x00\x12\x1b\n\x17PROJECT_ASSET_USE_INPUT\x10\x01\x12\x1c\n\x18PROJECT_ASSET_USE_OUTPUT\x10\x02\x12\"\n\x1ePROJECT_ASSET_USE_INTERMEDIATE\x10\x03\x12\x1d\n\x19PROJECT_ASSET_USE_PROJECT\x10\x04*g\n\x0eProjectSortDir\x12 \n\x1cPROJECT_SORT_DIR_UNSPECIFIED\x10\x00\x12\x18\n\x14PROJECT_SORT_DIR_ASC\x10\x01\x12\x19\n\x15PROJECT_SORT_DIR_DESC\x10\x02\x32\xe1\x08\n\x0eProjectService\x12s\n\x06\x43reate\x12\x39.stabilityai.platformapis.project.v1.CreateProjectRequest\x1a,.stabilityai.platformapis.project.v1.Project\"\x00\x12s\n\x06Update\x12\x39.stabilityai.platformapis.project.v1.UpdateProjectRequest\x1a,.stabilityai.platformapis.project.v1.Project\"\x00\x12q\n\x04List\x12\x37.stabilityai.platformapis.project.v1.ListProjectRequest\x1a,.stabilityai.platformapis.project.v1.Project\"\x00\x30\x01\x12m\n\x03Get\x12\x36.stabilityai.platformapis.project.v1.GetProjectRequest\x1a,.stabilityai.platformapis.project.v1.Project\"\x00\x12s\n\x06\x44\x65lete\x12\x39.stabilityai.platformapis.project.v1.DeleteProjectRequest\x1a,.stabilityai.platformapis.project.v1.Project\"\x00\x12|\n\tTagAssets\x12\x35.stabilityai.platformapis.project.v1.TagAssetsRequest\x1a\x36.stabilityai.platformapis.project.v1.TagAssetsResponse\"\x00\x12\x82\x01\n\x0bUntagAssets\x12\x37.stabilityai.platformapis.project.v1.UntagAssetsRequest\x1a\x38.stabilityai.platformapis.project.v1.UntagAssetsResponse\"\x00\x12\x82\x01\n\x0bQueryAssets\x12\x37.stabilityai.platformapis.project.v1.QueryAssetsRequest\x1a\x38.stabilityai.platformapis.project.v1.QueryAssetsResponse\"\x00\x12\x85\x01\n\x0c\x44\x65leteAssets\x12\x38.stabilityai.platformapis.project.v1.DeleteAssetsRequest\x1a\x39.stabilityai.platformapis.project.v1.DeleteAssetsResponse\"\x00\x42\xc7\x02\n\'com.stabilityai.platformapis.project.v1B\x0cProjectProtoP\x01Z_github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/project/v1;projectv1\xa2\x02\x03SPP\xaa\x02#Stabilityai.Platformapis.Project.V1\xca\x02#Stabilityai\\Platformapis\\Project\\V1\xe2\x02/Stabilityai\\Platformapis\\Project\\V1\\GPBMetadata\xea\x02&Stabilityai::Platformapis::Project::V1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n/stability_api/platform/project/v1/project.proto\x12#stabilityai.platformapis.project.v1\x1a\x35stability_api/platform/generation/v1/generation.proto\"\xb3\x03\n\x0cProjectAsset\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x10\n\x03uri\x18\x02 \x01(\tR\x03uri\x12\x46\n\x03use\x18\x03 \x01(\x0e\x32\x34.stabilityai.platformapis.project.v1.ProjectAssetUseR\x03use\x12\x12\n\x04name\x18\x04 \x01(\tR\x04name\x12\x12\n\x04size\x18\x05 \x01(\x04R\x04size\x12\x1d\n\ncreated_at\x18\x06 \x01(\x04R\tcreatedAt\x12\x1d\n\nupdated_at\x18\x07 \x01(\x04R\tupdatedAt\x12I\n\x07request\x18\x08 \x01(\x0b\x32/.stabilityai.platformapis.generation.v1.RequestR\x07request\x12O\n\x04tags\x18\t \x03(\x0b\x32;.stabilityai.platformapis.project.v1.ProjectAsset.TagsEntryR\x04tags\x1a\x37\n\tTagsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x8c\x04\n\x07Project\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05title\x18\x02 \x01(\tR\x05title\x12\x19\n\x08owner_id\x18\x03 \x01(\tR\x07ownerId\x12J\n\x06\x61\x63\x63\x65ss\x18\x04 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectAccessR\x06\x61\x63\x63\x65ss\x12J\n\x06status\x18\x05 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectStatusR\x06status\x12\x12\n\x04size\x18\x06 \x01(\x04R\x04size\x12\x45\n\x04\x66ile\x18\x07 \x01(\x0b\x32\x31.stabilityai.platformapis.project.v1.ProjectAssetR\x04\x66ile\x12\x1d\n\ncreated_at\x18\x08 \x01(\x04R\tcreatedAt\x12\x1d\n\nupdated_at\x18\t \x01(\x04R\tupdatedAt\x12I\n\x06\x61ssets\x18\n \x03(\x0b\x32\x31.stabilityai.platformapis.project.v1.ProjectAssetR\x06\x61ssets\x12\x44\n\x04type\x18\x0b \x01(\x0e\x32\x30.stabilityai.platformapis.project.v1.ProjectTypeR\x04type\"\x8c\x03\n\x14\x43reateProjectRequest\x12\x14\n\x05title\x18\x01 \x01(\tR\x05title\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12J\n\x06\x61\x63\x63\x65ss\x18\x03 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectAccessR\x06\x61\x63\x63\x65ss\x12J\n\x06status\x18\x04 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectStatusR\x06status\x12J\n\x04\x66ile\x18\x05 \x01(\x0b\x32\x31.stabilityai.platformapis.project.v1.ProjectAssetH\x01R\x04\x66ile\x88\x01\x01\x12\x44\n\x04type\x18\x06 \x01(\x0e\x32\x30.stabilityai.platformapis.project.v1.ProjectTypeR\x04typeB\x0b\n\t_owner_idB\x07\n\x05_file\"\xd9\x03\n\x14UpdateProjectRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12\x19\n\x05title\x18\x03 \x01(\tH\x01R\x05title\x88\x01\x01\x12O\n\x06\x61\x63\x63\x65ss\x18\x04 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectAccessH\x02R\x06\x61\x63\x63\x65ss\x88\x01\x01\x12O\n\x06status\x18\x05 \x01(\x0e\x32\x32.stabilityai.platformapis.project.v1.ProjectStatusH\x03R\x06status\x88\x01\x01\x12J\n\x04\x66ile\x18\x06 \x01(\x0b\x32\x31.stabilityai.platformapis.project.v1.ProjectAssetH\x04R\x04\x66ile\x88\x01\x01\x12I\n\x04type\x18\x07 \x01(\x0e\x32\x30.stabilityai.platformapis.project.v1.ProjectTypeH\x05R\x04type\x88\x01\x01\x42\x0b\n\t_owner_idB\x08\n\x06_titleB\t\n\x07_accessB\t\n\x07_statusB\x07\n\x05_fileB\x07\n\x05_type\"A\n\x12ListProjectRequest\x12\x1e\n\x08owner_id\x18\x01 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x42\x0b\n\t_owner_id\"P\n\x11GetProjectRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x42\x0b\n\t_owner_id\"S\n\x14\x44\x65leteProjectRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x42\x0b\n\t_owner_id\"\x98\x04\n\x12QueryAssetsRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12\x19\n\x05since\x18\x03 \x01(\x04H\x01R\x05since\x88\x01\x01\x12\x19\n\x05until\x18\x04 \x01(\x04H\x02R\x05until\x88\x01\x01\x12\x19\n\x05limit\x18\x05 \x01(\x04H\x03R\x05limit\x88\x01\x01\x12 \n\tstart_key\x18\x06 \x01(\tH\x04R\x08startKey\x88\x01\x01\x12\x46\n\x03use\x18\x07 \x03(\x0e\x32\x34.stabilityai.platformapis.project.v1.ProjectAssetUseR\x03use\x12N\n\x08sort_dir\x18\x08 \x01(\x0e\x32\x33.stabilityai.platformapis.project.v1.ProjectSortDirR\x07sortDir\x12U\n\x04tags\x18\t \x03(\x0b\x32\x41.stabilityai.platformapis.project.v1.QueryAssetsRequest.TagsEntryR\x04tags\x1a\x37\n\tTagsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x0b\n\t_owner_idB\x08\n\x06_sinceB\x08\n\x06_untilB\x08\n\x06_limitB\x0c\n\n_start_key\"\x8d\x01\n\x13QueryAssetsResponse\x12I\n\x06\x61ssets\x18\x01 \x03(\x0b\x32\x31.stabilityai.platformapis.project.v1.ProjectAssetR\x06\x61ssets\x12\x1e\n\x08last_key\x18\x02 \x01(\tH\x00R\x07lastKey\x88\x01\x01\x42\x0b\n\t_last_key\"\xfa\x01\n\x10TagAssetsRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIds\x12S\n\x04tags\x18\x04 \x03(\x0b\x32?.stabilityai.platformapis.project.v1.TagAssetsRequest.TagsEntryR\x04tags\x1a\x37\n\tTagsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x0b\n\t_owner_id\"[\n\x11TagAssetsResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIds\"\x89\x01\n\x12UntagAssetsRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIds\x12\x19\n\x08tag_keys\x18\x04 \x03(\tR\x07tagKeysB\x0b\n\t_owner_id\"]\n\x13UntagAssetsResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIds\"o\n\x13\x44\x65leteAssetsRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1e\n\x08owner_id\x18\x02 \x01(\tH\x00R\x07ownerId\x88\x01\x01\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIdsB\x0b\n\t_owner_id\"^\n\x14\x44\x65leteAssetsResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\x12\x1b\n\tasset_ids\x18\x03 \x03(\tR\x08\x61ssetIds*F\n\rProjectAccess\x12\x1a\n\x16PROJECT_ACCESS_PRIVATE\x10\x00\x12\x19\n\x15PROJECT_ACCESS_PUBLIC\x10\x01*c\n\rProjectStatus\x12\x1b\n\x17PROJECT_STATUS_INACTIVE\x10\x00\x12\x19\n\x15PROJECT_STATUS_ACTIVE\x10\x01\x12\x1a\n\x16PROJECT_STATUS_DELETED\x10\x02*\xb0\x01\n\x0fProjectAssetUse\x12\x1f\n\x1bPROJECT_ASSET_USE_UNDEFINED\x10\x00\x12\x1b\n\x17PROJECT_ASSET_USE_INPUT\x10\x01\x12\x1c\n\x18PROJECT_ASSET_USE_OUTPUT\x10\x02\x12\"\n\x1ePROJECT_ASSET_USE_INTERMEDIATE\x10\x03\x12\x1d\n\x19PROJECT_ASSET_USE_PROJECT\x10\x04*g\n\x0eProjectSortDir\x12 \n\x1cPROJECT_SORT_DIR_UNSPECIFIED\x10\x00\x12\x18\n\x14PROJECT_SORT_DIR_ASC\x10\x01\x12\x19\n\x15PROJECT_SORT_DIR_DESC\x10\x02*F\n\x0bProjectType\x12\x1c\n\x18PROJECT_TYPE_UNSPECIFIED\x10\x00\x12\x19\n\x15PROJECT_TYPE_TRAINING\x10\x01\x32\xe1\x08\n\x0eProjectService\x12s\n\x06\x43reate\x12\x39.stabilityai.platformapis.project.v1.CreateProjectRequest\x1a,.stabilityai.platformapis.project.v1.Project\"\x00\x12s\n\x06Update\x12\x39.stabilityai.platformapis.project.v1.UpdateProjectRequest\x1a,.stabilityai.platformapis.project.v1.Project\"\x00\x12q\n\x04List\x12\x37.stabilityai.platformapis.project.v1.ListProjectRequest\x1a,.stabilityai.platformapis.project.v1.Project\"\x00\x30\x01\x12m\n\x03Get\x12\x36.stabilityai.platformapis.project.v1.GetProjectRequest\x1a,.stabilityai.platformapis.project.v1.Project\"\x00\x12s\n\x06\x44\x65lete\x12\x39.stabilityai.platformapis.project.v1.DeleteProjectRequest\x1a,.stabilityai.platformapis.project.v1.Project\"\x00\x12|\n\tTagAssets\x12\x35.stabilityai.platformapis.project.v1.TagAssetsRequest\x1a\x36.stabilityai.platformapis.project.v1.TagAssetsResponse\"\x00\x12\x82\x01\n\x0bUntagAssets\x12\x37.stabilityai.platformapis.project.v1.UntagAssetsRequest\x1a\x38.stabilityai.platformapis.project.v1.UntagAssetsResponse\"\x00\x12\x82\x01\n\x0bQueryAssets\x12\x37.stabilityai.platformapis.project.v1.QueryAssetsRequest\x1a\x38.stabilityai.platformapis.project.v1.QueryAssetsResponse\"\x00\x12\x85\x01\n\x0c\x44\x65leteAssets\x12\x38.stabilityai.platformapis.project.v1.DeleteAssetsRequest\x1a\x39.stabilityai.platformapis.project.v1.DeleteAssetsResponse\"\x00\x42\xc7\x02\n\'com.stabilityai.platformapis.project.v1B\x0cProjectProtoP\x01Z_github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/project/v1;projectv1\xa2\x02\x03SPP\xaa\x02#Stabilityai.Platformapis.Project.V1\xca\x02#Stabilityai\\Platformapis\\Project\\V1\xe2\x02/Stabilityai\\Platformapis\\Project\\V1\\GPBMetadata\xea\x02&Stabilityai::Platformapis::Project::V1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -29,50 +29,52 @@ _QUERYASSETSREQUEST_TAGSENTRY._serialized_options = b'8\001' _TAGASSETSREQUEST_TAGSENTRY._options = None _TAGASSETSREQUEST_TAGSENTRY._serialized_options = b'8\001' - _globals['_PROJECTACCESS']._serialized_start=3466 - _globals['_PROJECTACCESS']._serialized_end=3536 - _globals['_PROJECTSTATUS']._serialized_start=3538 - _globals['_PROJECTSTATUS']._serialized_end=3637 - _globals['_PROJECTASSETUSE']._serialized_start=3640 - _globals['_PROJECTASSETUSE']._serialized_end=3816 - _globals['_PROJECTSORTDIR']._serialized_start=3818 - _globals['_PROJECTSORTDIR']._serialized_end=3921 + _globals['_PROJECTACCESS']._serialized_start=3690 + _globals['_PROJECTACCESS']._serialized_end=3760 + _globals['_PROJECTSTATUS']._serialized_start=3762 + _globals['_PROJECTSTATUS']._serialized_end=3861 + _globals['_PROJECTASSETUSE']._serialized_start=3864 + _globals['_PROJECTASSETUSE']._serialized_end=4040 + _globals['_PROJECTSORTDIR']._serialized_start=4042 + _globals['_PROJECTSORTDIR']._serialized_end=4145 + _globals['_PROJECTTYPE']._serialized_start=4147 + _globals['_PROJECTTYPE']._serialized_end=4217 _globals['_PROJECTASSET']._serialized_start=144 _globals['_PROJECTASSET']._serialized_end=579 _globals['_PROJECTASSET_TAGSENTRY']._serialized_start=524 _globals['_PROJECTASSET_TAGSENTRY']._serialized_end=579 _globals['_PROJECT']._serialized_start=582 - _globals['_PROJECT']._serialized_end=1036 - _globals['_CREATEPROJECTREQUEST']._serialized_start=1039 - _globals['_CREATEPROJECTREQUEST']._serialized_end=1365 - _globals['_UPDATEPROJECTREQUEST']._serialized_start=1368 - _globals['_UPDATEPROJECTREQUEST']._serialized_end=1757 - _globals['_LISTPROJECTREQUEST']._serialized_start=1759 - _globals['_LISTPROJECTREQUEST']._serialized_end=1824 - _globals['_GETPROJECTREQUEST']._serialized_start=1826 - _globals['_GETPROJECTREQUEST']._serialized_end=1906 - _globals['_DELETEPROJECTREQUEST']._serialized_start=1908 - _globals['_DELETEPROJECTREQUEST']._serialized_end=1991 - _globals['_QUERYASSETSREQUEST']._serialized_start=1994 - _globals['_QUERYASSETSREQUEST']._serialized_end=2530 + _globals['_PROJECT']._serialized_end=1106 + _globals['_CREATEPROJECTREQUEST']._serialized_start=1109 + _globals['_CREATEPROJECTREQUEST']._serialized_end=1505 + _globals['_UPDATEPROJECTREQUEST']._serialized_start=1508 + _globals['_UPDATEPROJECTREQUEST']._serialized_end=1981 + _globals['_LISTPROJECTREQUEST']._serialized_start=1983 + _globals['_LISTPROJECTREQUEST']._serialized_end=2048 + _globals['_GETPROJECTREQUEST']._serialized_start=2050 + _globals['_GETPROJECTREQUEST']._serialized_end=2130 + _globals['_DELETEPROJECTREQUEST']._serialized_start=2132 + _globals['_DELETEPROJECTREQUEST']._serialized_end=2215 + _globals['_QUERYASSETSREQUEST']._serialized_start=2218 + _globals['_QUERYASSETSREQUEST']._serialized_end=2754 _globals['_QUERYASSETSREQUEST_TAGSENTRY']._serialized_start=524 _globals['_QUERYASSETSREQUEST_TAGSENTRY']._serialized_end=579 - _globals['_QUERYASSETSRESPONSE']._serialized_start=2533 - _globals['_QUERYASSETSRESPONSE']._serialized_end=2674 - _globals['_TAGASSETSREQUEST']._serialized_start=2677 - _globals['_TAGASSETSREQUEST']._serialized_end=2927 + _globals['_QUERYASSETSRESPONSE']._serialized_start=2757 + _globals['_QUERYASSETSRESPONSE']._serialized_end=2898 + _globals['_TAGASSETSREQUEST']._serialized_start=2901 + _globals['_TAGASSETSREQUEST']._serialized_end=3151 _globals['_TAGASSETSREQUEST_TAGSENTRY']._serialized_start=524 _globals['_TAGASSETSREQUEST_TAGSENTRY']._serialized_end=579 - _globals['_TAGASSETSRESPONSE']._serialized_start=2929 - _globals['_TAGASSETSRESPONSE']._serialized_end=3020 - _globals['_UNTAGASSETSREQUEST']._serialized_start=3023 - _globals['_UNTAGASSETSREQUEST']._serialized_end=3160 - _globals['_UNTAGASSETSRESPONSE']._serialized_start=3162 - _globals['_UNTAGASSETSRESPONSE']._serialized_end=3255 - _globals['_DELETEASSETSREQUEST']._serialized_start=3257 - _globals['_DELETEASSETSREQUEST']._serialized_end=3368 - _globals['_DELETEASSETSRESPONSE']._serialized_start=3370 - _globals['_DELETEASSETSRESPONSE']._serialized_end=3464 - _globals['_PROJECTSERVICE']._serialized_start=3924 - _globals['_PROJECTSERVICE']._serialized_end=5045 + _globals['_TAGASSETSRESPONSE']._serialized_start=3153 + _globals['_TAGASSETSRESPONSE']._serialized_end=3244 + _globals['_UNTAGASSETSREQUEST']._serialized_start=3247 + _globals['_UNTAGASSETSREQUEST']._serialized_end=3384 + _globals['_UNTAGASSETSRESPONSE']._serialized_start=3386 + _globals['_UNTAGASSETSRESPONSE']._serialized_end=3479 + _globals['_DELETEASSETSREQUEST']._serialized_start=3481 + _globals['_DELETEASSETSREQUEST']._serialized_end=3592 + _globals['_DELETEASSETSRESPONSE']._serialized_start=3594 + _globals['_DELETEASSETSRESPONSE']._serialized_end=3688 + _globals['_PROJECTSERVICE']._serialized_start=4220 + _globals['_PROJECTSERVICE']._serialized_end=5341 # @@protoc_insertion_point(module_scope) diff --git a/src/stability_api/platform/project/v1/project_pb2.pyi b/src/stability_api/platform/project/v1/project_pb2.pyi index 510aa9c..29aaafa 100644 --- a/src/stability_api/platform/project/v1/project_pb2.pyi +++ b/src/stability_api/platform/project/v1/project_pb2.pyi @@ -31,6 +31,11 @@ class ProjectSortDir(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): PROJECT_SORT_DIR_UNSPECIFIED: _ClassVar[ProjectSortDir] PROJECT_SORT_DIR_ASC: _ClassVar[ProjectSortDir] PROJECT_SORT_DIR_DESC: _ClassVar[ProjectSortDir] + +class ProjectType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + PROJECT_TYPE_UNSPECIFIED: _ClassVar[ProjectType] + PROJECT_TYPE_TRAINING: _ClassVar[ProjectType] PROJECT_ACCESS_PRIVATE: ProjectAccess PROJECT_ACCESS_PUBLIC: ProjectAccess PROJECT_STATUS_INACTIVE: ProjectStatus @@ -44,6 +49,8 @@ PROJECT_ASSET_USE_PROJECT: ProjectAssetUse PROJECT_SORT_DIR_UNSPECIFIED: ProjectSortDir PROJECT_SORT_DIR_ASC: ProjectSortDir PROJECT_SORT_DIR_DESC: ProjectSortDir +PROJECT_TYPE_UNSPECIFIED: ProjectType +PROJECT_TYPE_TRAINING: ProjectType class ProjectAsset(_message.Message): __slots__ = ["id", "uri", "use", "name", "size", "created_at", "updated_at", "request", "tags"] @@ -75,7 +82,7 @@ class ProjectAsset(_message.Message): def __init__(self, id: _Optional[str] = ..., uri: _Optional[str] = ..., use: _Optional[_Union[ProjectAssetUse, str]] = ..., name: _Optional[str] = ..., size: _Optional[int] = ..., created_at: _Optional[int] = ..., updated_at: _Optional[int] = ..., request: _Optional[_Union[_generation_pb2.Request, _Mapping]] = ..., tags: _Optional[_Mapping[str, str]] = ...) -> None: ... class Project(_message.Message): - __slots__ = ["id", "title", "owner_id", "access", "status", "size", "file", "created_at", "updated_at", "assets"] + __slots__ = ["id", "title", "owner_id", "access", "status", "size", "file", "created_at", "updated_at", "assets", "type"] ID_FIELD_NUMBER: _ClassVar[int] TITLE_FIELD_NUMBER: _ClassVar[int] OWNER_ID_FIELD_NUMBER: _ClassVar[int] @@ -86,6 +93,7 @@ class Project(_message.Message): CREATED_AT_FIELD_NUMBER: _ClassVar[int] UPDATED_AT_FIELD_NUMBER: _ClassVar[int] ASSETS_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] id: str title: str owner_id: str @@ -96,37 +104,42 @@ class Project(_message.Message): created_at: int updated_at: int assets: _containers.RepeatedCompositeFieldContainer[ProjectAsset] - def __init__(self, id: _Optional[str] = ..., title: _Optional[str] = ..., owner_id: _Optional[str] = ..., access: _Optional[_Union[ProjectAccess, str]] = ..., status: _Optional[_Union[ProjectStatus, str]] = ..., size: _Optional[int] = ..., file: _Optional[_Union[ProjectAsset, _Mapping]] = ..., created_at: _Optional[int] = ..., updated_at: _Optional[int] = ..., assets: _Optional[_Iterable[_Union[ProjectAsset, _Mapping]]] = ...) -> None: ... + type: ProjectType + def __init__(self, id: _Optional[str] = ..., title: _Optional[str] = ..., owner_id: _Optional[str] = ..., access: _Optional[_Union[ProjectAccess, str]] = ..., status: _Optional[_Union[ProjectStatus, str]] = ..., size: _Optional[int] = ..., file: _Optional[_Union[ProjectAsset, _Mapping]] = ..., created_at: _Optional[int] = ..., updated_at: _Optional[int] = ..., assets: _Optional[_Iterable[_Union[ProjectAsset, _Mapping]]] = ..., type: _Optional[_Union[ProjectType, str]] = ...) -> None: ... class CreateProjectRequest(_message.Message): - __slots__ = ["title", "owner_id", "access", "status", "file"] + __slots__ = ["title", "owner_id", "access", "status", "file", "type"] TITLE_FIELD_NUMBER: _ClassVar[int] OWNER_ID_FIELD_NUMBER: _ClassVar[int] ACCESS_FIELD_NUMBER: _ClassVar[int] STATUS_FIELD_NUMBER: _ClassVar[int] FILE_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] title: str owner_id: str access: ProjectAccess status: ProjectStatus file: ProjectAsset - def __init__(self, title: _Optional[str] = ..., owner_id: _Optional[str] = ..., access: _Optional[_Union[ProjectAccess, str]] = ..., status: _Optional[_Union[ProjectStatus, str]] = ..., file: _Optional[_Union[ProjectAsset, _Mapping]] = ...) -> None: ... + type: ProjectType + def __init__(self, title: _Optional[str] = ..., owner_id: _Optional[str] = ..., access: _Optional[_Union[ProjectAccess, str]] = ..., status: _Optional[_Union[ProjectStatus, str]] = ..., file: _Optional[_Union[ProjectAsset, _Mapping]] = ..., type: _Optional[_Union[ProjectType, str]] = ...) -> None: ... class UpdateProjectRequest(_message.Message): - __slots__ = ["id", "owner_id", "title", "access", "status", "file"] + __slots__ = ["id", "owner_id", "title", "access", "status", "file", "type"] ID_FIELD_NUMBER: _ClassVar[int] OWNER_ID_FIELD_NUMBER: _ClassVar[int] TITLE_FIELD_NUMBER: _ClassVar[int] ACCESS_FIELD_NUMBER: _ClassVar[int] STATUS_FIELD_NUMBER: _ClassVar[int] FILE_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] id: str owner_id: str title: str access: ProjectAccess status: ProjectStatus file: ProjectAsset - def __init__(self, id: _Optional[str] = ..., owner_id: _Optional[str] = ..., title: _Optional[str] = ..., access: _Optional[_Union[ProjectAccess, str]] = ..., status: _Optional[_Union[ProjectStatus, str]] = ..., file: _Optional[_Union[ProjectAsset, _Mapping]] = ...) -> None: ... + type: ProjectType + def __init__(self, id: _Optional[str] = ..., owner_id: _Optional[str] = ..., title: _Optional[str] = ..., access: _Optional[_Union[ProjectAccess, str]] = ..., status: _Optional[_Union[ProjectStatus, str]] = ..., file: _Optional[_Union[ProjectAsset, _Mapping]] = ..., type: _Optional[_Union[ProjectType, str]] = ...) -> None: ... class ListProjectRequest(_message.Message): __slots__ = ["owner_id"] diff --git a/src/stability_api/tensors/tensors.pb.go b/src/stability_api/tensors/tensors.pb.go index 6559703..cfcaa29 100644 --- a/src/stability_api/tensors/tensors.pb.go +++ b/src/stability_api/tensors/tensors.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: stability_api/tensors/tensors.proto From 8b5eb37308c20b638519b2505bfa22733c1e308a Mon Sep 17 00:00:00 2001 From: Stephan Auerhahn Date: Mon, 7 Aug 2023 04:56:36 +0000 Subject: [PATCH 17/20] merge in latest --- .../platform/engines/v1/engines.pb.go | 100 +- .../platform/engines/v1/engines_pb.d.ts | 7 + .../platform/engines/v1/engines_pb.js | 1 + .../platform/engines/v1/engines_pb2.py | 24 +- .../platform/engines/v1/engines_pb2.pyi | 6 +- .../platform/generation/v1/generation.pb.go | 1394 +++++++++-------- .../platform/generation/v1/generation_pb.d.ts | 42 +- .../platform/generation/v1/generation_pb.js | 16 +- .../platform/generation/v1/generation_pb2.py | 178 +-- .../platform/generation/v1/generation_pb2.pyi | 22 +- 10 files changed, 907 insertions(+), 883 deletions(-) diff --git a/src/stability_api/platform/engines/v1/engines.pb.go b/src/stability_api/platform/engines/v1/engines.pb.go index 1edb27d..1b91a91 100644 --- a/src/stability_api/platform/engines/v1/engines.pb.go +++ b/src/stability_api/platform/engines/v1/engines.pb.go @@ -139,6 +139,7 @@ type EngineInfo struct { Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"` CanFineTune bool `protobuf:"varint,8,opt,name=can_fine_tune,json=canFineTune,proto3" json:"can_fine_tune,omitempty"` + IsAdaptive bool `protobuf:"varint,9,opt,name=is_adaptive,json=isAdaptive,proto3" json:"is_adaptive,omitempty"` // Whether this Engine supports T2I Adapters } func (x *EngineInfo) Reset() { @@ -229,6 +230,13 @@ func (x *EngineInfo) GetCanFineTune() bool { return false } +func (x *EngineInfo) GetIsAdaptive() bool { + if x != nil { + return x.IsAdaptive + } + return false +} + type ListEnginesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -323,7 +331,7 @@ var file_stability_api_platform_engines_v1_engines_proto_rawDesc = []byte{ 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x23, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x22, 0xbb, 0x02, 0x0a, 0x0a, 0x45, 0x6e, 0x67, 0x69, 0x6e, + 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x22, 0xdc, 0x02, 0x0a, 0x0a, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x72, @@ -343,51 +351,53 @@ var file_stability_api_platform_engines_v1_engines_proto_rawDesc = []byte{ 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x0d, 0x63, 0x61, 0x6e, 0x5f, 0x66, 0x69, 0x6e, 0x65, 0x5f, 0x74, 0x75, 0x6e, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x63, 0x61, 0x6e, 0x46, 0x69, 0x6e, 0x65, - 0x54, 0x75, 0x6e, 0x65, 0x22, 0x14, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x52, 0x0a, 0x07, 0x45, 0x6e, - 0x67, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2a, 0x5a, - 0x0a, 0x0a, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, - 0x54, 0x45, 0x58, 0x54, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x49, 0x43, 0x54, 0x55, 0x52, - 0x45, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x55, 0x44, 0x49, 0x4f, 0x10, 0x02, 0x12, 0x09, - 0x0a, 0x05, 0x56, 0x49, 0x44, 0x45, 0x4f, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4c, 0x41, - 0x53, 0x53, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x12, 0x0b, 0x0a, - 0x07, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x10, 0x05, 0x2a, 0x25, 0x0a, 0x0f, 0x45, 0x6e, - 0x67, 0x69, 0x6e, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x08, 0x0a, - 0x04, 0x47, 0x50, 0x54, 0x32, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x50, 0x49, 0x4c, 0x45, 0x10, - 0x01, 0x32, 0x88, 0x01, 0x0a, 0x0e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x12, 0x76, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x73, 0x12, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x54, 0x75, 0x6e, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x61, 0x64, 0x61, 0x70, 0x74, + 0x69, 0x76, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x41, 0x64, 0x61, + 0x70, 0x74, 0x69, 0x76, 0x65, 0x22, 0x14, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x67, + 0x69, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x52, 0x0a, 0x07, 0x45, + 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, + 0x69, 0x6e, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2a, + 0x5a, 0x0a, 0x0a, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, + 0x04, 0x54, 0x45, 0x58, 0x54, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x49, 0x43, 0x54, 0x55, + 0x52, 0x45, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x55, 0x44, 0x49, 0x4f, 0x10, 0x02, 0x12, + 0x09, 0x0a, 0x05, 0x56, 0x49, 0x44, 0x45, 0x4f, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4c, + 0x41, 0x53, 0x53, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x12, 0x0b, + 0x0a, 0x07, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x10, 0x05, 0x2a, 0x25, 0x0a, 0x0f, 0x45, + 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x08, + 0x0a, 0x04, 0x47, 0x50, 0x54, 0x32, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x50, 0x49, 0x4c, 0x45, + 0x10, 0x01, 0x32, 0x88, 0x01, 0x0a, 0x0e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x76, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x67, + 0x69, 0x6e, 0x65, 0x73, 0x12, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, + 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, + 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, + 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x22, 0x00, 0x42, 0xbe, 0x02, + 0x0a, 0x27, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, - 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, - 0x67, 0x69, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, - 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x22, 0x00, 0x42, 0xbe, 0x02, 0x0a, - 0x27, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, - 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x65, 0x6e, - 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x56, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, 0x61, - 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, - 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, - 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x65, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x76, 0x31, - 0xa2, 0x02, 0x03, 0x53, 0x50, 0x45, 0xaa, 0x02, 0x23, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x61, 0x69, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x23, 0x53, - 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x5c, - 0x56, 0x31, 0xe2, 0x02, 0x2f, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, - 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x45, 0x6e, - 0x67, 0x69, 0x6e, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, - 0x61, 0x69, 0x3a, 0x3a, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, - 0x3a, 0x3a, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x45, 0x6e, 0x67, 0x69, 0x6e, + 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x56, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, + 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, + 0x73, 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, + 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x65, 0x6e, 0x67, + 0x69, 0x6e, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x76, + 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, 0x45, 0xaa, 0x02, 0x23, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x23, + 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, + 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x2f, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x45, + 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x3a, 0x3a, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, + 0x73, 0x3a, 0x3a, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/src/stability_api/platform/engines/v1/engines_pb.d.ts b/src/stability_api/platform/engines/v1/engines_pb.d.ts index ad394d0..81dff58 100644 --- a/src/stability_api/platform/engines/v1/engines_pb.d.ts +++ b/src/stability_api/platform/engines/v1/engines_pb.d.ts @@ -104,6 +104,13 @@ export declare class EngineInfo extends Message { */ canFineTune: boolean; + /** + * Whether this Engine supports T2I Adapters + * + * @generated from field: bool is_adaptive = 9; + */ + isAdaptive: boolean; + constructor(data?: PartialMessage); static readonly runtime: typeof proto3; diff --git a/src/stability_api/platform/engines/v1/engines_pb.js b/src/stability_api/platform/engines/v1/engines_pb.js index 987bf09..b0116fe 100644 --- a/src/stability_api/platform/engines/v1/engines_pb.js +++ b/src/stability_api/platform/engines/v1/engines_pb.js @@ -49,6 +49,7 @@ export const EngineInfo = proto3.makeMessageType( { no: 6, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 8, name: "can_fine_tune", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 9, name: "is_adaptive", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ], ); diff --git a/src/stability_api/platform/engines/v1/engines_pb2.py b/src/stability_api/platform/engines/v1/engines_pb2.py index 68273d7..b0de325 100644 --- a/src/stability_api/platform/engines/v1/engines_pb2.py +++ b/src/stability_api/platform/engines/v1/engines_pb2.py @@ -13,7 +13,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n/stability_api/platform/engines/v1/engines.proto\x12#stabilityai.platformapis.engines.v1\"\xbb\x02\n\nEngineInfo\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05owner\x18\x02 \x01(\tR\x05owner\x12\x14\n\x05ready\x18\x03 \x01(\x08R\x05ready\x12\x43\n\x04type\x18\x04 \x01(\x0e\x32/.stabilityai.platformapis.engines.v1.EngineTypeR\x04type\x12R\n\ttokenizer\x18\x05 \x01(\x0e\x32\x34.stabilityai.platformapis.engines.v1.EngineTokenizerR\ttokenizer\x12\x12\n\x04name\x18\x06 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x07 \x01(\tR\x0b\x64\x65scription\x12\"\n\rcan_fine_tune\x18\x08 \x01(\x08R\x0b\x63\x61nFineTune\"\x14\n\x12ListEnginesRequest\"R\n\x07\x45ngines\x12G\n\x06\x65ngine\x18\x01 \x03(\x0b\x32/.stabilityai.platformapis.engines.v1.EngineInfoR\x06\x65ngine*Z\n\nEngineType\x12\x08\n\x04TEXT\x10\x00\x12\x0b\n\x07PICTURE\x10\x01\x12\t\n\x05\x41UDIO\x10\x02\x12\t\n\x05VIDEO\x10\x03\x12\x12\n\x0e\x43LASSIFICATION\x10\x04\x12\x0b\n\x07STORAGE\x10\x05*%\n\x0f\x45ngineTokenizer\x12\x08\n\x04GPT2\x10\x00\x12\x08\n\x04PILE\x10\x01\x32\x88\x01\n\x0e\x45nginesService\x12v\n\x0bListEngines\x12\x37.stabilityai.platformapis.engines.v1.ListEnginesRequest\x1a,.stabilityai.platformapis.engines.v1.Engines\"\x00\x42\xc7\x02\n\'com.stabilityai.platformapis.engines.v1B\x0c\x45nginesProtoP\x01Z_github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/engines/v1;enginesv1\xa2\x02\x03SPE\xaa\x02#Stabilityai.Platformapis.Engines.V1\xca\x02#Stabilityai\\Platformapis\\Engines\\V1\xe2\x02/Stabilityai\\Platformapis\\Engines\\V1\\GPBMetadata\xea\x02&Stabilityai::Platformapis::Engines::V1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n/stability_api/platform/engines/v1/engines.proto\x12#stabilityai.platformapis.engines.v1\"\xdc\x02\n\nEngineInfo\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05owner\x18\x02 \x01(\tR\x05owner\x12\x14\n\x05ready\x18\x03 \x01(\x08R\x05ready\x12\x43\n\x04type\x18\x04 \x01(\x0e\x32/.stabilityai.platformapis.engines.v1.EngineTypeR\x04type\x12R\n\ttokenizer\x18\x05 \x01(\x0e\x32\x34.stabilityai.platformapis.engines.v1.EngineTokenizerR\ttokenizer\x12\x12\n\x04name\x18\x06 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x07 \x01(\tR\x0b\x64\x65scription\x12\"\n\rcan_fine_tune\x18\x08 \x01(\x08R\x0b\x63\x61nFineTune\x12\x1f\n\x0bis_adaptive\x18\t \x01(\x08R\nisAdaptive\"\x14\n\x12ListEnginesRequest\"R\n\x07\x45ngines\x12G\n\x06\x65ngine\x18\x01 \x03(\x0b\x32/.stabilityai.platformapis.engines.v1.EngineInfoR\x06\x65ngine*Z\n\nEngineType\x12\x08\n\x04TEXT\x10\x00\x12\x0b\n\x07PICTURE\x10\x01\x12\t\n\x05\x41UDIO\x10\x02\x12\t\n\x05VIDEO\x10\x03\x12\x12\n\x0e\x43LASSIFICATION\x10\x04\x12\x0b\n\x07STORAGE\x10\x05*%\n\x0f\x45ngineTokenizer\x12\x08\n\x04GPT2\x10\x00\x12\x08\n\x04PILE\x10\x01\x32\x88\x01\n\x0e\x45nginesService\x12v\n\x0bListEngines\x12\x37.stabilityai.platformapis.engines.v1.ListEnginesRequest\x1a,.stabilityai.platformapis.engines.v1.Engines\"\x00\x42\xc7\x02\n\'com.stabilityai.platformapis.engines.v1B\x0c\x45nginesProtoP\x01Z_github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/engines/v1;enginesv1\xa2\x02\x03SPE\xaa\x02#Stabilityai.Platformapis.Engines.V1\xca\x02#Stabilityai\\Platformapis\\Engines\\V1\xe2\x02/Stabilityai\\Platformapis\\Engines\\V1\\GPBMetadata\xea\x02&Stabilityai::Platformapis::Engines::V1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -22,16 +22,16 @@ DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'\n\'com.stabilityai.platformapis.engines.v1B\014EnginesProtoP\001Z_github.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/engines/v1;enginesv1\242\002\003SPE\252\002#Stabilityai.Platformapis.Engines.V1\312\002#Stabilityai\\Platformapis\\Engines\\V1\342\002/Stabilityai\\Platformapis\\Engines\\V1\\GPBMetadata\352\002&Stabilityai::Platformapis::Engines::V1' - _globals['_ENGINETYPE']._serialized_start=512 - _globals['_ENGINETYPE']._serialized_end=602 - _globals['_ENGINETOKENIZER']._serialized_start=604 - _globals['_ENGINETOKENIZER']._serialized_end=641 + _globals['_ENGINETYPE']._serialized_start=545 + _globals['_ENGINETYPE']._serialized_end=635 + _globals['_ENGINETOKENIZER']._serialized_start=637 + _globals['_ENGINETOKENIZER']._serialized_end=674 _globals['_ENGINEINFO']._serialized_start=89 - _globals['_ENGINEINFO']._serialized_end=404 - _globals['_LISTENGINESREQUEST']._serialized_start=406 - _globals['_LISTENGINESREQUEST']._serialized_end=426 - _globals['_ENGINES']._serialized_start=428 - _globals['_ENGINES']._serialized_end=510 - _globals['_ENGINESSERVICE']._serialized_start=644 - _globals['_ENGINESSERVICE']._serialized_end=780 + _globals['_ENGINEINFO']._serialized_end=437 + _globals['_LISTENGINESREQUEST']._serialized_start=439 + _globals['_LISTENGINESREQUEST']._serialized_end=459 + _globals['_ENGINES']._serialized_start=461 + _globals['_ENGINES']._serialized_end=543 + _globals['_ENGINESSERVICE']._serialized_start=677 + _globals['_ENGINESSERVICE']._serialized_end=813 # @@protoc_insertion_point(module_scope) diff --git a/src/stability_api/platform/engines/v1/engines_pb2.pyi b/src/stability_api/platform/engines/v1/engines_pb2.pyi index 8e5c76e..e8a3cbd 100644 --- a/src/stability_api/platform/engines/v1/engines_pb2.pyi +++ b/src/stability_api/platform/engines/v1/engines_pb2.pyi @@ -29,7 +29,7 @@ GPT2: EngineTokenizer PILE: EngineTokenizer class EngineInfo(_message.Message): - __slots__ = ["id", "owner", "ready", "type", "tokenizer", "name", "description", "can_fine_tune"] + __slots__ = ["id", "owner", "ready", "type", "tokenizer", "name", "description", "can_fine_tune", "is_adaptive"] ID_FIELD_NUMBER: _ClassVar[int] OWNER_FIELD_NUMBER: _ClassVar[int] READY_FIELD_NUMBER: _ClassVar[int] @@ -38,6 +38,7 @@ class EngineInfo(_message.Message): NAME_FIELD_NUMBER: _ClassVar[int] DESCRIPTION_FIELD_NUMBER: _ClassVar[int] CAN_FINE_TUNE_FIELD_NUMBER: _ClassVar[int] + IS_ADAPTIVE_FIELD_NUMBER: _ClassVar[int] id: str owner: str ready: bool @@ -46,7 +47,8 @@ class EngineInfo(_message.Message): name: str description: str can_fine_tune: bool - def __init__(self, id: _Optional[str] = ..., owner: _Optional[str] = ..., ready: bool = ..., type: _Optional[_Union[EngineType, str]] = ..., tokenizer: _Optional[_Union[EngineTokenizer, str]] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., can_fine_tune: bool = ...) -> None: ... + is_adaptive: bool + def __init__(self, id: _Optional[str] = ..., owner: _Optional[str] = ..., ready: bool = ..., type: _Optional[_Union[EngineType, str]] = ..., tokenizer: _Optional[_Union[EngineTokenizer, str]] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., can_fine_tune: bool = ..., is_adaptive: bool = ...) -> None: ... class ListEnginesRequest(_message.Message): __slots__ = [] diff --git a/src/stability_api/platform/generation/v1/generation.pb.go b/src/stability_api/platform/generation/v1/generation.pb.go index d46d6e2..c925cc8 100644 --- a/src/stability_api/platform/generation/v1/generation.pb.go +++ b/src/stability_api/platform/generation/v1/generation.pb.go @@ -1097,49 +1097,49 @@ func (StageAction) EnumDescriptor() ([]byte, []int) { return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{19} } -type CAIParameters_ModelMetadata int32 +type ContentCredentialsParameters_ModelMetadata int32 const ( - CAIParameters_MODEL_METADATA_UNSPECIFIED CAIParameters_ModelMetadata = 0 - CAIParameters_MODEL_METADATA_SIGN_WITH_ENGINE_ID CAIParameters_ModelMetadata = 1 + ContentCredentialsParameters_MODEL_METADATA_UNSPECIFIED ContentCredentialsParameters_ModelMetadata = 0 + ContentCredentialsParameters_MODEL_METADATA_SIGN_WITH_ENGINE_ID ContentCredentialsParameters_ModelMetadata = 1 ) -// Enum value maps for CAIParameters_ModelMetadata. +// Enum value maps for ContentCredentialsParameters_ModelMetadata. var ( - CAIParameters_ModelMetadata_name = map[int32]string{ + ContentCredentialsParameters_ModelMetadata_name = map[int32]string{ 0: "MODEL_METADATA_UNSPECIFIED", 1: "MODEL_METADATA_SIGN_WITH_ENGINE_ID", } - CAIParameters_ModelMetadata_value = map[string]int32{ + ContentCredentialsParameters_ModelMetadata_value = map[string]int32{ "MODEL_METADATA_UNSPECIFIED": 0, "MODEL_METADATA_SIGN_WITH_ENGINE_ID": 1, } ) -func (x CAIParameters_ModelMetadata) Enum() *CAIParameters_ModelMetadata { - p := new(CAIParameters_ModelMetadata) +func (x ContentCredentialsParameters_ModelMetadata) Enum() *ContentCredentialsParameters_ModelMetadata { + p := new(ContentCredentialsParameters_ModelMetadata) *p = x return p } -func (x CAIParameters_ModelMetadata) String() string { +func (x ContentCredentialsParameters_ModelMetadata) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (CAIParameters_ModelMetadata) Descriptor() protoreflect.EnumDescriptor { +func (ContentCredentialsParameters_ModelMetadata) Descriptor() protoreflect.EnumDescriptor { return file_stability_api_platform_generation_v1_generation_proto_enumTypes[20].Descriptor() } -func (CAIParameters_ModelMetadata) Type() protoreflect.EnumType { +func (ContentCredentialsParameters_ModelMetadata) Type() protoreflect.EnumType { return &file_stability_api_platform_generation_v1_generation_proto_enumTypes[20] } -func (x CAIParameters_ModelMetadata) Number() protoreflect.EnumNumber { +func (x ContentCredentialsParameters_ModelMetadata) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use CAIParameters_ModelMetadata.Descriptor instead. -func (CAIParameters_ModelMetadata) EnumDescriptor() ([]byte, []int) { +// Deprecated: Use ContentCredentialsParameters_ModelMetadata.Descriptor instead. +func (ContentCredentialsParameters_ModelMetadata) EnumDescriptor() ([]byte, []int) { return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{16, 0} } @@ -2415,19 +2415,19 @@ func (x *T2IAdapterParameter) GetAdapterInitType() T2IAdapterInit { return T2IAdapterInit_T2IADAPTERINIT_IMAGE } -type CAIParameters struct { +type ContentCredentialsParameters struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Types that are assignable to Parameters: // - // *CAIParameters_ModelMetadata_ - Parameters isCAIParameters_Parameters `protobuf_oneof:"parameters"` + // *ContentCredentialsParameters_ModelMetadata_ + Parameters isContentCredentialsParameters_Parameters `protobuf_oneof:"parameters"` } -func (x *CAIParameters) Reset() { - *x = CAIParameters{} +func (x *ContentCredentialsParameters) Reset() { + *x = ContentCredentialsParameters{} if protoimpl.UnsafeEnabled { mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2435,13 +2435,13 @@ func (x *CAIParameters) Reset() { } } -func (x *CAIParameters) String() string { +func (x *ContentCredentialsParameters) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CAIParameters) ProtoMessage() {} +func (*ContentCredentialsParameters) ProtoMessage() {} -func (x *CAIParameters) ProtoReflect() protoreflect.Message { +func (x *ContentCredentialsParameters) ProtoReflect() protoreflect.Message { mi := &file_stability_api_platform_generation_v1_generation_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2453,34 +2453,34 @@ func (x *CAIParameters) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CAIParameters.ProtoReflect.Descriptor instead. -func (*CAIParameters) Descriptor() ([]byte, []int) { +// Deprecated: Use ContentCredentialsParameters.ProtoReflect.Descriptor instead. +func (*ContentCredentialsParameters) Descriptor() ([]byte, []int) { return file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP(), []int{16} } -func (m *CAIParameters) GetParameters() isCAIParameters_Parameters { +func (m *ContentCredentialsParameters) GetParameters() isContentCredentialsParameters_Parameters { if m != nil { return m.Parameters } return nil } -func (x *CAIParameters) GetModelMetadata() CAIParameters_ModelMetadata { - if x, ok := x.GetParameters().(*CAIParameters_ModelMetadata_); ok { +func (x *ContentCredentialsParameters) GetModelMetadata() ContentCredentialsParameters_ModelMetadata { + if x, ok := x.GetParameters().(*ContentCredentialsParameters_ModelMetadata_); ok { return x.ModelMetadata } - return CAIParameters_MODEL_METADATA_UNSPECIFIED + return ContentCredentialsParameters_MODEL_METADATA_UNSPECIFIED } -type isCAIParameters_Parameters interface { - isCAIParameters_Parameters() +type isContentCredentialsParameters_Parameters interface { + isContentCredentialsParameters_Parameters() } -type CAIParameters_ModelMetadata_ struct { - ModelMetadata CAIParameters_ModelMetadata `protobuf:"varint,1,opt,name=model_metadata,json=modelMetadata,proto3,enum=stabilityai.platformapis.generation.v1.CAIParameters_ModelMetadata,oneof"` +type ContentCredentialsParameters_ModelMetadata_ struct { + ModelMetadata ContentCredentialsParameters_ModelMetadata `protobuf:"varint,1,opt,name=model_metadata,json=modelMetadata,proto3,enum=stabilityai.platformapis.generation.v1.ContentCredentialsParameters_ModelMetadata,oneof"` } -func (*CAIParameters_ModelMetadata_) isCAIParameters_Parameters() {} +func (*ContentCredentialsParameters_ModelMetadata_) isContentCredentialsParameters_Parameters() {} // FineTuningParameters specify which fine-tuned models to use for generation. type FineTuningParameters struct { @@ -2549,19 +2549,19 @@ type ImageParameters struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Height *uint64 `protobuf:"varint,1,opt,name=height,proto3,oneof" json:"height,omitempty"` - Width *uint64 `protobuf:"varint,2,opt,name=width,proto3,oneof" json:"width,omitempty"` - Seed []uint32 `protobuf:"varint,3,rep,packed,name=seed,proto3" json:"seed,omitempty"` - Samples *uint64 `protobuf:"varint,4,opt,name=samples,proto3,oneof" json:"samples,omitempty"` - Steps *uint64 `protobuf:"varint,5,opt,name=steps,proto3,oneof" json:"steps,omitempty"` - Transform *TransformType `protobuf:"bytes,6,opt,name=transform,proto3,oneof" json:"transform,omitempty"` - Parameters []*StepParameter `protobuf:"bytes,7,rep,name=parameters,proto3" json:"parameters,omitempty"` - MaskedAreaInit *MaskedAreaInit `protobuf:"varint,8,opt,name=masked_area_init,json=maskedAreaInit,proto3,enum=stabilityai.platformapis.generation.v1.MaskedAreaInit,oneof" json:"masked_area_init,omitempty"` // defaults to MASKED_AREA_INIT_ZERO - WeightMethod *WeightMethod `protobuf:"varint,9,opt,name=weight_method,json=weightMethod,proto3,enum=stabilityai.platformapis.generation.v1.WeightMethod,oneof" json:"weight_method,omitempty"` //defaults to TEXT_ENCODER - Quantize *bool `protobuf:"varint,10,opt,name=quantize,proto3,oneof" json:"quantize,omitempty"` //defaults to true - CaiParameters *CAIParameters `protobuf:"bytes,11,opt,name=cai_parameters,json=caiParameters,proto3,oneof" json:"cai_parameters,omitempty"` // Set field to have image signed by C2PA - Adapter *T2IAdapterParameter `protobuf:"bytes,12,opt,name=adapter,proto3,oneof" json:"adapter,omitempty"` - FineTuningParameters []*FineTuningParameters `protobuf:"bytes,13,rep,name=fine_tuning_parameters,json=fineTuningParameters,proto3" json:"fine_tuning_parameters,omitempty"` // next available tag: 14 + Height *uint64 `protobuf:"varint,1,opt,name=height,proto3,oneof" json:"height,omitempty"` + Width *uint64 `protobuf:"varint,2,opt,name=width,proto3,oneof" json:"width,omitempty"` + Seed []uint32 `protobuf:"varint,3,rep,packed,name=seed,proto3" json:"seed,omitempty"` + Samples *uint64 `protobuf:"varint,4,opt,name=samples,proto3,oneof" json:"samples,omitempty"` + Steps *uint64 `protobuf:"varint,5,opt,name=steps,proto3,oneof" json:"steps,omitempty"` + Transform *TransformType `protobuf:"bytes,6,opt,name=transform,proto3,oneof" json:"transform,omitempty"` + Parameters []*StepParameter `protobuf:"bytes,7,rep,name=parameters,proto3" json:"parameters,omitempty"` + MaskedAreaInit *MaskedAreaInit `protobuf:"varint,8,opt,name=masked_area_init,json=maskedAreaInit,proto3,enum=stabilityai.platformapis.generation.v1.MaskedAreaInit,oneof" json:"masked_area_init,omitempty"` // defaults to MASKED_AREA_INIT_ZERO + WeightMethod *WeightMethod `protobuf:"varint,9,opt,name=weight_method,json=weightMethod,proto3,enum=stabilityai.platformapis.generation.v1.WeightMethod,oneof" json:"weight_method,omitempty"` //defaults to TEXT_ENCODER + Quantize *bool `protobuf:"varint,10,opt,name=quantize,proto3,oneof" json:"quantize,omitempty"` //defaults to true + Adapter *T2IAdapterParameter `protobuf:"bytes,12,opt,name=adapter,proto3,oneof" json:"adapter,omitempty"` + FineTuningParameters []*FineTuningParameters `protobuf:"bytes,13,rep,name=fine_tuning_parameters,json=fineTuningParameters,proto3" json:"fine_tuning_parameters,omitempty"` + ContentCredentialsParameters *ContentCredentialsParameters `protobuf:"bytes,14,opt,name=content_credentials_parameters,json=contentCredentialsParameters,proto3,oneof" json:"content_credentials_parameters,omitempty"` // Set field to have image signed by C2PA } func (x *ImageParameters) Reset() { @@ -2666,23 +2666,23 @@ func (x *ImageParameters) GetQuantize() bool { return false } -func (x *ImageParameters) GetCaiParameters() *CAIParameters { +func (x *ImageParameters) GetAdapter() *T2IAdapterParameter { if x != nil { - return x.CaiParameters + return x.Adapter } return nil } -func (x *ImageParameters) GetAdapter() *T2IAdapterParameter { +func (x *ImageParameters) GetFineTuningParameters() []*FineTuningParameters { if x != nil { - return x.Adapter + return x.FineTuningParameters } return nil } -func (x *ImageParameters) GetFineTuningParameters() []*FineTuningParameters { +func (x *ImageParameters) GetContentCredentialsParameters() *ContentCredentialsParameters { if x != nil { - return x.FineTuningParameters + return x.ContentCredentialsParameters } return nil } @@ -4400,608 +4400,614 @@ var file_stability_api_platform_generation_v1_generation_proto_rawDesc = []byte{ 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x32, 0x49, 0x41, 0x64, 0x61, 0x70, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x0f, 0x61, 0x64, 0x61, 0x70, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, - 0x22, 0xe4, 0x01, 0x0a, 0x0d, 0x43, 0x41, 0x49, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, - 0x72, 0x73, 0x12, 0x6c, 0x0a, 0x0e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x43, 0x2e, 0x73, 0x74, 0x61, - 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x41, 0x49, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, - 0x73, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, - 0x00, 0x52, 0x0d, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x22, 0x57, 0x0a, 0x0d, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x12, 0x1e, 0x0a, 0x1a, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x4d, 0x45, 0x54, 0x41, 0x44, - 0x41, 0x54, 0x41, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, - 0x00, 0x12, 0x26, 0x0a, 0x22, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x4d, 0x45, 0x54, 0x41, 0x44, - 0x41, 0x54, 0x41, 0x5f, 0x53, 0x49, 0x47, 0x4e, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x5f, 0x45, 0x4e, - 0x47, 0x49, 0x4e, 0x45, 0x5f, 0x49, 0x44, 0x10, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x70, 0x61, 0x72, - 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x22, 0x59, 0x0a, 0x14, 0x46, 0x69, 0x6e, 0x65, 0x54, - 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, - 0x19, 0x0a, 0x08, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x06, 0x77, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x06, 0x77, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x77, 0x65, 0x69, 0x67, - 0x68, 0x74, 0x22, 0xef, 0x07, 0x0a, 0x0f, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1b, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x04, 0x48, 0x01, 0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x12, - 0x0a, 0x04, 0x73, 0x65, 0x65, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x65, - 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x04, 0x48, 0x02, 0x52, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x88, 0x01, - 0x01, 0x12, 0x19, 0x0a, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, - 0x48, 0x03, 0x52, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x88, 0x01, 0x01, 0x12, 0x58, 0x0a, 0x09, - 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x35, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, - 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x48, 0x04, 0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, - 0x6f, 0x72, 0x6d, 0x88, 0x01, 0x01, 0x12, 0x55, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, - 0x74, 0x65, 0x72, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x74, 0x61, - 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x65, 0x70, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, - 0x72, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x65, 0x0a, - 0x10, 0x6d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x5f, 0x61, 0x72, 0x65, 0x61, 0x5f, 0x69, 0x6e, 0x69, - 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, - 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, - 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x41, 0x72, 0x65, 0x61, 0x49, 0x6e, 0x69, 0x74, 0x48, - 0x05, 0x52, 0x0e, 0x6d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x41, 0x72, 0x65, 0x61, 0x49, 0x6e, 0x69, - 0x74, 0x88, 0x01, 0x01, 0x12, 0x5e, 0x0a, 0x0d, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x6d, - 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, - 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, - 0x64, 0x48, 0x06, 0x52, 0x0c, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, - 0x64, 0x88, 0x01, 0x01, 0x12, 0x1f, 0x0a, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x7a, 0x65, - 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x48, 0x07, 0x52, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, - 0x7a, 0x65, 0x88, 0x01, 0x01, 0x12, 0x61, 0x0a, 0x0e, 0x63, 0x61, 0x69, 0x5f, 0x70, 0x61, 0x72, - 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, + 0x22, 0x82, 0x02, 0x0a, 0x1c, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, + 0x73, 0x12, 0x7b, 0x0a, 0x0e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x52, 0x2e, 0x73, 0x74, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x61, 0x6c, 0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x2e, + 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, + 0x0d, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x57, + 0x0a, 0x0d, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, + 0x1e, 0x0a, 0x1a, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x4d, 0x45, 0x54, 0x41, 0x44, 0x41, 0x54, + 0x41, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, + 0x26, 0x0a, 0x22, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x4d, 0x45, 0x54, 0x41, 0x44, 0x41, 0x54, + 0x41, 0x5f, 0x53, 0x49, 0x47, 0x4e, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x5f, 0x45, 0x4e, 0x47, 0x49, + 0x4e, 0x45, 0x5f, 0x49, 0x44, 0x10, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, + 0x65, 0x74, 0x65, 0x72, 0x73, 0x22, 0x59, 0x0a, 0x14, 0x46, 0x69, 0x6e, 0x65, 0x54, 0x75, 0x6e, + 0x69, 0x6e, 0x67, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x19, 0x0a, + 0x08, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x06, 0x77, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x06, 0x77, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x22, 0xb4, 0x08, 0x0a, 0x0f, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, + 0x74, 0x65, 0x72, 0x73, 0x12, 0x1b, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x88, 0x01, + 0x01, 0x12, 0x19, 0x0a, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, + 0x48, 0x01, 0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x12, 0x0a, 0x04, + 0x73, 0x65, 0x65, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, + 0x12, 0x1d, 0x0a, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x04, 0x48, 0x02, 0x52, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, + 0x19, 0x0a, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x48, 0x03, + 0x52, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x88, 0x01, 0x01, 0x12, 0x58, 0x0a, 0x09, 0x74, 0x72, + 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x41, 0x49, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, - 0x74, 0x65, 0x72, 0x73, 0x48, 0x08, 0x52, 0x0d, 0x63, 0x61, 0x69, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x65, 0x74, 0x65, 0x72, 0x73, 0x88, 0x01, 0x01, 0x12, 0x5a, 0x0a, 0x07, 0x61, 0x64, 0x61, 0x70, - 0x74, 0x65, 0x72, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x73, 0x74, 0x61, 0x62, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, + 0x54, 0x79, 0x70, 0x65, 0x48, 0x04, 0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, + 0x6d, 0x88, 0x01, 0x01, 0x12, 0x55, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, + 0x72, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x53, 0x74, 0x65, 0x70, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, + 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x65, 0x0a, 0x10, 0x6d, + 0x61, 0x73, 0x6b, 0x65, 0x64, 0x5f, 0x61, 0x72, 0x65, 0x61, 0x5f, 0x69, 0x6e, 0x69, 0x74, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, + 0x61, 0x73, 0x6b, 0x65, 0x64, 0x41, 0x72, 0x65, 0x61, 0x49, 0x6e, 0x69, 0x74, 0x48, 0x05, 0x52, + 0x0e, 0x6d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x41, 0x72, 0x65, 0x61, 0x49, 0x6e, 0x69, 0x74, 0x88, + 0x01, 0x01, 0x12, 0x5e, 0x0a, 0x0d, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x6d, 0x65, 0x74, + 0x68, 0x6f, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x54, 0x32, 0x49, 0x41, 0x64, 0x61, 0x70, 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x48, 0x09, 0x52, 0x07, 0x61, 0x64, 0x61, 0x70, 0x74, 0x65, - 0x72, 0x88, 0x01, 0x01, 0x12, 0x72, 0x0a, 0x16, 0x66, 0x69, 0x6e, 0x65, 0x5f, 0x74, 0x75, 0x6e, - 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x0d, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x76, 0x31, 0x2e, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x48, + 0x06, 0x52, 0x0c, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x88, + 0x01, 0x01, 0x12, 0x1f, 0x0a, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x7a, 0x65, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x08, 0x48, 0x07, 0x52, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x7a, 0x65, + 0x88, 0x01, 0x01, 0x12, 0x5a, 0x0a, 0x07, 0x61, 0x64, 0x61, 0x70, 0x74, 0x65, 0x72, 0x18, 0x0c, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, - 0x6e, 0x65, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, - 0x72, 0x73, 0x52, 0x14, 0x66, 0x69, 0x6e, 0x65, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x68, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x77, 0x69, 0x64, 0x74, 0x68, 0x42, 0x0a, 0x0a, - 0x08, 0x5f, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x73, 0x74, - 0x65, 0x70, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, - 0x6d, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x5f, 0x61, 0x72, 0x65, - 0x61, 0x5f, 0x69, 0x6e, 0x69, 0x74, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, - 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x71, 0x75, 0x61, - 0x6e, 0x74, 0x69, 0x7a, 0x65, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x63, 0x61, 0x69, 0x5f, 0x70, 0x61, - 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x61, 0x64, 0x61, - 0x70, 0x74, 0x65, 0x72, 0x22, 0x5e, 0x0a, 0x11, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, - 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, - 0x63, 0x65, 0x70, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x63, - 0x65, 0x70, 0x74, 0x12, 0x21, 0x0a, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, - 0x6f, 0x6c, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, - 0x68, 0x6f, 0x6c, 0x64, 0x22, 0x85, 0x03, 0x0a, 0x12, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, - 0x69, 0x65, 0x72, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x55, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, - 0x69, 0x66, 0x69, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x52, 0x08, 0x63, 0x6f, - 0x6e, 0x63, 0x65, 0x70, 0x74, 0x73, 0x12, 0x23, 0x0a, 0x0a, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, - 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x64, - 0x6a, 0x75, 0x73, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x4b, 0x0a, 0x06, 0x61, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x73, 0x74, - 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x01, 0x52, 0x06, 0x61, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x64, 0x0a, 0x0f, 0x63, 0x6c, 0x61, 0x73, - 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x36, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, - 0x69, 0x66, 0x69, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x48, 0x02, 0x52, 0x0e, 0x63, 0x6c, 0x61, - 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0d, - 0x0a, 0x0b, 0x5f, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x09, 0x0a, - 0x07, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x63, 0x6c, 0x61, - 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0xba, 0x02, 0x0a, - 0x14, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x5a, 0x0a, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, - 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, 0x74, 0x61, 0x62, - 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x43, 0x61, 0x74, - 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, - 0x73, 0x12, 0x54, 0x0a, 0x07, 0x65, 0x78, 0x63, 0x65, 0x65, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, - 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, - 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x07, - 0x65, 0x78, 0x63, 0x65, 0x65, 0x64, 0x73, 0x12, 0x5c, 0x0a, 0x0f, 0x72, 0x65, 0x61, 0x6c, 0x69, - 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x48, 0x00, 0x52, 0x0e, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x7a, - 0x65, 0x64, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x8a, 0x01, 0x0a, 0x15, 0x49, 0x6e, - 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, - 0x65, 0x72, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x02, 0x52, 0x06, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x73, 0x12, 0x50, 0x0a, 0x04, 0x6d, - 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, - 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x4d, 0x6f, - 0x64, 0x65, 0x48, 0x00, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, - 0x05, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0xbb, 0x04, 0x0a, 0x14, 0x54, 0x72, 0x61, 0x6e, 0x73, - 0x66, 0x6f, 0x72, 0x6d, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x12, - 0x23, 0x0a, 0x0a, 0x62, 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x0a, 0x62, 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, - 0x73, 0x88, 0x01, 0x01, 0x12, 0x1f, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x73, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x48, 0x01, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x73, 0x74, 0x88, 0x01, 0x01, 0x12, 0x15, 0x0a, 0x03, 0x68, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x02, 0x48, 0x02, 0x52, 0x03, 0x68, 0x75, 0x65, 0x88, 0x01, 0x01, 0x12, 0x23, 0x0a, 0x0a, - 0x73, 0x61, 0x74, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, - 0x48, 0x03, 0x52, 0x0a, 0x73, 0x61, 0x74, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, - 0x01, 0x12, 0x21, 0x0a, 0x09, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x02, 0x48, 0x04, 0x52, 0x09, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, - 0x73, 0x88, 0x01, 0x01, 0x12, 0x56, 0x0a, 0x0b, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x69, 0x6d, - 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, - 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x48, 0x05, 0x52, 0x0a, 0x6d, - 0x61, 0x74, 0x63, 0x68, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x88, 0x01, 0x01, 0x12, 0x5a, 0x0a, 0x0a, - 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x36, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x4d, - 0x61, 0x74, 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x65, 0x48, 0x06, 0x52, 0x09, 0x6d, 0x61, 0x74, 0x63, - 0x68, 0x4d, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x12, 0x26, 0x0a, 0x0c, 0x6e, 0x6f, 0x69, 0x73, - 0x65, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x02, 0x48, 0x07, - 0x52, 0x0b, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x88, 0x01, 0x01, - 0x12, 0x22, 0x0a, 0x0a, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x65, 0x64, 0x18, 0x09, - 0x20, 0x01, 0x28, 0x0d, 0x48, 0x08, 0x52, 0x09, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x53, 0x65, 0x65, - 0x64, 0x88, 0x01, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x62, 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, - 0x65, 0x73, 0x73, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x73, 0x74, - 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x68, 0x75, 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x73, 0x61, 0x74, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x6c, 0x69, 0x67, 0x68, - 0x74, 0x6e, 0x65, 0x73, 0x73, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, - 0x69, 0x6d, 0x61, 0x67, 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, - 0x6d, 0x6f, 0x64, 0x65, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x61, - 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, - 0x73, 0x65, 0x65, 0x64, 0x22, 0xae, 0x01, 0x0a, 0x12, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, - 0x72, 0x6d, 0x44, 0x65, 0x70, 0x74, 0x68, 0x43, 0x61, 0x6c, 0x63, 0x12, 0x26, 0x0a, 0x0c, 0x62, - 0x6c, 0x65, 0x6e, 0x64, 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x02, 0x48, 0x00, 0x52, 0x0b, 0x62, 0x6c, 0x65, 0x6e, 0x64, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x88, 0x01, 0x01, 0x12, 0x24, 0x0a, 0x0b, 0x62, 0x6c, 0x75, 0x72, 0x5f, 0x72, 0x61, 0x64, 0x69, - 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x01, 0x52, 0x0a, 0x62, 0x6c, 0x75, 0x72, - 0x52, 0x61, 0x64, 0x69, 0x75, 0x73, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x07, 0x72, 0x65, 0x76, - 0x65, 0x72, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x48, 0x02, 0x52, 0x07, 0x72, 0x65, - 0x76, 0x65, 0x72, 0x73, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x62, 0x6c, 0x65, - 0x6e, 0x64, 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x62, 0x6c, - 0x75, 0x72, 0x5f, 0x72, 0x61, 0x64, 0x69, 0x75, 0x73, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x72, 0x65, - 0x76, 0x65, 0x72, 0x73, 0x65, 0x22, 0x29, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, - 0x72, 0x6d, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x12, 0x16, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x02, 0x42, 0x02, 0x10, 0x01, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, - 0x22, 0xa0, 0x03, 0x0a, 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x65, - 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x53, 0x0a, 0x0b, 0x62, 0x6f, 0x72, 0x64, 0x65, 0x72, - 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, - 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x52, - 0x0a, 0x62, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x55, 0x0a, 0x09, 0x74, - 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, - 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, - 0x6d, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, - 0x72, 0x6d, 0x12, 0x63, 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, - 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, - 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x74, - 0x72, 0x69, 0x78, 0x48, 0x00, 0x52, 0x0d, 0x70, 0x72, 0x65, 0x76, 0x54, 0x72, 0x61, 0x6e, 0x73, - 0x66, 0x6f, 0x72, 0x6d, 0x88, 0x01, 0x01, 0x12, 0x22, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x74, 0x68, - 0x5f, 0x77, 0x61, 0x72, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x48, 0x01, 0x52, 0x09, 0x64, - 0x65, 0x70, 0x74, 0x68, 0x57, 0x61, 0x72, 0x70, 0x88, 0x01, 0x01, 0x12, 0x24, 0x0a, 0x0b, 0x65, - 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, - 0x48, 0x02, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x61, 0x73, 0x6b, 0x88, 0x01, - 0x01, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, - 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x64, 0x65, 0x70, 0x74, 0x68, 0x5f, 0x77, - 0x61, 0x72, 0x70, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6d, - 0x61, 0x73, 0x6b, 0x22, 0xc2, 0x01, 0x0a, 0x10, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x53, 0x0a, 0x0b, 0x63, 0x61, 0x6d, 0x65, - 0x72, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, - 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x0a, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, - 0x0a, 0x6e, 0x65, 0x61, 0x72, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x02, 0x52, 0x09, 0x6e, 0x65, 0x61, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x12, 0x1b, 0x0a, 0x09, - 0x66, 0x61, 0x72, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, - 0x08, 0x66, 0x61, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x66, 0x6f, 0x76, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x03, 0x66, 0x6f, 0x76, 0x88, 0x01, 0x01, - 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x66, 0x6f, 0x76, 0x22, 0xf2, 0x02, 0x0a, 0x13, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x6f, 0x73, 0x65, - 0x12, 0x68, 0x0a, 0x14, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x5f, 0x74, 0x6f, 0x5f, 0x76, 0x69, 0x65, - 0x77, 0x5f, 0x6d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, + 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x32, + 0x49, 0x41, 0x64, 0x61, 0x70, 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, + 0x72, 0x48, 0x08, 0x52, 0x07, 0x61, 0x64, 0x61, 0x70, 0x74, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, + 0x72, 0x0a, 0x16, 0x66, 0x69, 0x6e, 0x65, 0x5f, 0x74, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x70, + 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x3c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x65, 0x54, 0x75, 0x6e, + 0x69, 0x6e, 0x67, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x14, 0x66, + 0x69, 0x6e, 0x65, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, + 0x65, 0x72, 0x73, 0x12, 0x8f, 0x01, 0x0a, 0x1e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, + 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x5f, 0x70, 0x61, 0x72, 0x61, + 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x44, 0x2e, 0x73, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, + 0x72, 0x73, 0x48, 0x09, 0x52, 0x1c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, + 0x72, 0x73, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x77, 0x69, 0x64, 0x74, 0x68, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x73, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x73, + 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x13, + 0x0a, 0x11, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x5f, 0x61, 0x72, 0x65, 0x61, 0x5f, 0x69, + 0x6e, 0x69, 0x74, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x6d, + 0x65, 0x74, 0x68, 0x6f, 0x64, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, + 0x7a, 0x65, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x61, 0x64, 0x61, 0x70, 0x74, 0x65, 0x72, 0x42, 0x21, + 0x0a, 0x1f, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, + 0x73, 0x4a, 0x04, 0x08, 0x0b, 0x10, 0x0c, 0x22, 0x5e, 0x0a, 0x11, 0x43, 0x6c, 0x61, 0x73, 0x73, + 0x69, 0x66, 0x69, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x12, 0x18, 0x0a, 0x07, + 0x63, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, + 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x12, 0x21, 0x0a, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, + 0x6f, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x09, 0x74, 0x68, 0x72, + 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x74, 0x68, + 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x22, 0x85, 0x03, 0x0a, 0x12, 0x43, 0x6c, 0x61, 0x73, + 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x55, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, + 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, + 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x52, + 0x08, 0x63, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x73, 0x12, 0x23, 0x0a, 0x0a, 0x61, 0x64, 0x6a, + 0x75, 0x73, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, + 0x0a, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x4b, + 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, - 0x6d, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x54, 0x6f, - 0x56, 0x69, 0x65, 0x77, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x12, 0x65, 0x0a, 0x11, 0x63, 0x61, - 0x6d, 0x65, 0x72, 0x61, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x01, + 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x64, 0x0a, 0x0f, 0x63, + 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, + 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, + 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x48, 0x02, 0x52, 0x0e, + 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x88, 0x01, + 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x6d, 0x65, 0x6e, 0x74, + 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x12, 0x0a, 0x10, 0x5f, + 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x22, + 0xba, 0x02, 0x0a, 0x14, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x5a, 0x0a, 0x0a, 0x63, 0x61, 0x74, 0x65, + 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, + 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, + 0x72, 0x69, 0x65, 0x73, 0x12, 0x54, 0x0a, 0x07, 0x65, 0x78, 0x63, 0x65, 0x65, 0x64, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, - 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, - 0x10, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, - 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x6f, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x6c, 0x6c, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x64, 0x6f, 0x50, 0x72, 0x65, 0x66, 0x69, 0x6c, 0x6c, - 0x12, 0x53, 0x0a, 0x0b, 0x72, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, - 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, - 0x65, 0x6e, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x72, 0x65, 0x6e, 0x64, 0x65, - 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x4a, 0x04, 0x08, 0x04, 0x10, - 0x05, 0x4a, 0x04, 0x08, 0x06, 0x10, 0x07, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x22, 0x9b, 0x03, - 0x0a, 0x13, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x61, 0x0a, 0x0c, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x61, - 0x64, 0x6a, 0x75, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x73, 0x74, - 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x43, 0x6f, - 0x6c, 0x6f, 0x72, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x63, 0x6f, 0x6c, - 0x6f, 0x72, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x12, 0x5b, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x74, - 0x68, 0x5f, 0x63, 0x61, 0x6c, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, + 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, + 0x79, 0x52, 0x07, 0x65, 0x78, 0x63, 0x65, 0x65, 0x64, 0x73, 0x12, 0x5c, 0x0a, 0x0f, 0x72, 0x65, + 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0e, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x41, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x72, 0x65, 0x61, + 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x8a, 0x01, 0x0a, + 0x15, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x02, 0x52, 0x06, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x73, 0x12, 0x50, + 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x44, - 0x65, 0x70, 0x74, 0x68, 0x43, 0x61, 0x6c, 0x63, 0x48, 0x00, 0x52, 0x09, 0x64, 0x65, 0x70, 0x74, - 0x68, 0x43, 0x61, 0x6c, 0x63, 0x12, 0x57, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x61, 0x6d, 0x70, 0x6c, - 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, - 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, - 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x65, 0x73, 0x61, 0x6d, 0x70, - 0x6c, 0x65, 0x48, 0x00, 0x52, 0x08, 0x72, 0x65, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x5e, - 0x0a, 0x0b, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x5f, 0x70, 0x6f, 0x73, 0x65, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, + 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, + 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0xbb, 0x04, 0x0a, 0x14, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x41, 0x64, 0x6a, 0x75, + 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0a, 0x62, 0x72, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x0a, 0x62, 0x72, 0x69, 0x67, 0x68, 0x74, + 0x6e, 0x65, 0x73, 0x73, 0x88, 0x01, 0x01, 0x12, 0x1f, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x72, + 0x61, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x48, 0x01, 0x52, 0x08, 0x63, 0x6f, 0x6e, + 0x74, 0x72, 0x61, 0x73, 0x74, 0x88, 0x01, 0x01, 0x12, 0x15, 0x0a, 0x03, 0x68, 0x75, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x02, 0x48, 0x02, 0x52, 0x03, 0x68, 0x75, 0x65, 0x88, 0x01, 0x01, 0x12, + 0x23, 0x0a, 0x0a, 0x73, 0x61, 0x74, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x02, 0x48, 0x03, 0x52, 0x0a, 0x73, 0x61, 0x74, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x88, 0x01, 0x01, 0x12, 0x21, 0x0a, 0x09, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, + 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x48, 0x04, 0x52, 0x09, 0x6c, 0x69, 0x67, 0x68, 0x74, + 0x6e, 0x65, 0x73, 0x73, 0x88, 0x01, 0x01, 0x12, 0x56, 0x0a, 0x0b, 0x6d, 0x61, 0x74, 0x63, 0x68, + 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, + 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x48, 0x05, + 0x52, 0x0a, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x88, 0x01, 0x01, 0x12, + 0x5a, 0x0a, 0x0a, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x6f, 0x73, 0x65, - 0x48, 0x00, 0x52, 0x0a, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x6f, 0x73, 0x65, 0x42, 0x0b, - 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x22, 0xc1, 0x01, 0x0a, 0x0f, - 0x41, 0x73, 0x73, 0x65, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, - 0x4b, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x33, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x41, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x03, 0x75, - 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, - 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x52, 0x03, 0x75, 0x73, 0x65, 0x22, - 0xb4, 0x01, 0x0a, 0x0a, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x1a, - 0x0a, 0x06, 0x67, 0x70, 0x75, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, - 0x52, 0x05, 0x67, 0x70, 0x75, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1a, 0x0a, 0x06, 0x63, 0x70, - 0x75, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x05, 0x63, 0x70, - 0x75, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1c, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, - 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, - 0x64, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x09, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x69, - 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x08, 0x65, 0x6e, 0x67, 0x69, 0x6e, - 0x65, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x67, 0x70, 0x75, 0x5f, 0x69, - 0x64, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x63, 0x70, 0x75, 0x5f, 0x69, 0x64, 0x42, 0x0a, 0x0a, 0x08, - 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x65, 0x6e, 0x67, - 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x22, 0xa0, 0x02, 0x0a, 0x06, 0x41, 0x6e, 0x73, 0x77, 0x65, - 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, - 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, - 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x64, 0x12, 0x4b, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, + 0x6f, 0x72, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x65, 0x48, 0x06, 0x52, 0x09, 0x6d, + 0x61, 0x74, 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x12, 0x26, 0x0a, 0x0c, 0x6e, + 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x02, 0x48, 0x07, 0x52, 0x0b, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, + 0x88, 0x01, 0x01, 0x12, 0x22, 0x0a, 0x0a, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x65, + 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x08, 0x52, 0x09, 0x6e, 0x6f, 0x69, 0x73, 0x65, + 0x53, 0x65, 0x65, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x62, 0x72, 0x69, 0x67, + 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, + 0x61, 0x73, 0x74, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x68, 0x75, 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, + 0x73, 0x61, 0x74, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x6c, + 0x69, 0x67, 0x68, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x6d, 0x61, 0x74, + 0x63, 0x68, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x6d, 0x61, 0x74, + 0x63, 0x68, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x6e, 0x6f, 0x69, 0x73, + 0x65, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x6e, 0x6f, 0x69, + 0x73, 0x65, 0x5f, 0x73, 0x65, 0x65, 0x64, 0x22, 0xae, 0x01, 0x0a, 0x12, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x44, 0x65, 0x70, 0x74, 0x68, 0x43, 0x61, 0x6c, 0x63, 0x12, 0x26, + 0x0a, 0x0c, 0x62, 0x6c, 0x65, 0x6e, 0x64, 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x0b, 0x62, 0x6c, 0x65, 0x6e, 0x64, 0x57, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x88, 0x01, 0x01, 0x12, 0x24, 0x0a, 0x0b, 0x62, 0x6c, 0x75, 0x72, 0x5f, 0x72, + 0x61, 0x64, 0x69, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x01, 0x52, 0x0a, 0x62, + 0x6c, 0x75, 0x72, 0x52, 0x61, 0x64, 0x69, 0x75, 0x73, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x07, + 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x48, 0x02, 0x52, + 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, + 0x62, 0x6c, 0x65, 0x6e, 0x64, 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x42, 0x0e, 0x0a, 0x0c, + 0x5f, 0x62, 0x6c, 0x75, 0x72, 0x5f, 0x72, 0x61, 0x64, 0x69, 0x75, 0x73, 0x42, 0x0a, 0x0a, 0x08, + 0x5f, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x22, 0x29, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x12, 0x16, 0x0a, 0x04, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x02, 0x42, 0x02, 0x10, 0x01, 0x52, 0x04, 0x64, + 0x61, 0x74, 0x61, 0x22, 0xa0, 0x03, 0x0a, 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, + 0x6d, 0x52, 0x65, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x53, 0x0a, 0x0b, 0x62, 0x6f, 0x72, + 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, + 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x6f, + 0x64, 0x65, 0x52, 0x0a, 0x62, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x55, + 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, - 0x72, 0x4d, 0x65, 0x74, 0x61, 0x48, 0x00, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x88, 0x01, 0x01, - 0x12, 0x4e, 0x0a, 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x18, 0x07, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, - 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, - 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, - 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x22, 0x72, 0x0a, 0x0b, 0x41, 0x6e, 0x73, - 0x77, 0x65, 0x72, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x61, 0x74, 0x63, - 0x68, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x61, 0x74, 0x63, - 0x68, 0x49, 0x64, 0x12, 0x48, 0x0a, 0x07, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, - 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, - 0x73, 0x77, 0x65, 0x72, 0x52, 0x07, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, 0x22, 0xfa, 0x06, - 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x67, - 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, - 0x67, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x5b, 0x0a, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, + 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x63, 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x74, 0x72, + 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, - 0x79, 0x70, 0x65, 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x46, 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x18, 0x04, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, - 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, - 0x70, 0x74, 0x52, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x12, 0x4f, 0x0a, 0x05, 0x69, 0x6d, - 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, - 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, - 0x72, 0x73, 0x48, 0x00, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x5e, 0x0a, 0x0a, 0x63, - 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x3c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, + 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x48, 0x00, 0x52, 0x0d, 0x70, 0x72, 0x65, 0x76, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x88, 0x01, 0x01, 0x12, 0x22, 0x0a, 0x0a, 0x64, 0x65, + 0x70, 0x74, 0x68, 0x5f, 0x77, 0x61, 0x72, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x48, 0x01, + 0x52, 0x09, 0x64, 0x65, 0x70, 0x74, 0x68, 0x57, 0x61, 0x72, 0x70, 0x88, 0x01, 0x01, 0x12, 0x24, + 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x08, 0x48, 0x02, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x61, 0x73, + 0x6b, 0x88, 0x01, 0x01, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x74, 0x72, + 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x64, 0x65, 0x70, 0x74, + 0x68, 0x5f, 0x77, 0x61, 0x72, 0x70, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, + 0x74, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x22, 0xc2, 0x01, 0x0a, 0x10, 0x43, 0x61, 0x6d, 0x65, 0x72, + 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x53, 0x0a, 0x0b, 0x63, + 0x61, 0x6d, 0x65, 0x72, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x61, 0x72, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x02, 0x52, 0x09, 0x6e, 0x65, 0x61, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x12, + 0x1b, 0x0a, 0x09, 0x66, 0x61, 0x72, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x02, 0x52, 0x08, 0x66, 0x61, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x12, 0x15, 0x0a, 0x03, + 0x66, 0x6f, 0x76, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x03, 0x66, 0x6f, 0x76, + 0x88, 0x01, 0x01, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x66, 0x6f, 0x76, 0x22, 0xf2, 0x02, 0x0a, 0x13, + 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, + 0x6f, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x14, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x5f, 0x74, 0x6f, 0x5f, + 0x76, 0x69, 0x65, 0x77, 0x5f, 0x6d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6c, + 0x64, 0x54, 0x6f, 0x56, 0x69, 0x65, 0x77, 0x4d, 0x61, 0x74, 0x72, 0x69, 0x78, 0x12, 0x65, 0x0a, + 0x11, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, + 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, + 0x72, 0x73, 0x52, 0x10, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, + 0x74, 0x65, 0x72, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x6f, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, + 0x6c, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x64, 0x6f, 0x50, 0x72, 0x65, 0x66, + 0x69, 0x6c, 0x6c, 0x12, 0x53, 0x0a, 0x0b, 0x72, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x6f, + 0x64, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x72, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x4a, 0x04, + 0x08, 0x04, 0x10, 0x05, 0x4a, 0x04, 0x08, 0x06, 0x10, 0x07, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, + 0x22, 0x9b, 0x03, 0x0a, 0x13, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x61, 0x0a, 0x0c, 0x63, 0x6f, 0x6c, 0x6f, + 0x72, 0x5f, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, + 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, + 0x6d, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, + 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x12, 0x5b, 0x0a, 0x0a, 0x64, + 0x65, 0x70, 0x74, 0x68, 0x5f, 0x63, 0x61, 0x6c, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x3a, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, - 0x69, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, - 0x0a, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x4f, 0x0a, 0x05, 0x61, - 0x73, 0x73, 0x65, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, + 0x72, 0x6d, 0x44, 0x65, 0x70, 0x74, 0x68, 0x43, 0x61, 0x6c, 0x63, 0x48, 0x00, 0x52, 0x09, 0x64, + 0x65, 0x70, 0x74, 0x68, 0x43, 0x61, 0x6c, 0x63, 0x12, 0x57, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x61, + 0x6d, 0x70, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, - 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x61, 0x0a, 0x0b, - 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x3d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, - 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, - 0x48, 0x00, 0x52, 0x0b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x12, - 0x5b, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x0c, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, - 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, - 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, - 0x00, 0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x64, 0x0a, 0x0b, - 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x3d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x64, 0x69, - 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, - 0x48, 0x01, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x88, - 0x01, 0x01, 0x12, 0x35, 0x0a, 0x06, 0x65, 0x78, 0x74, 0x72, 0x61, 0x73, 0x18, 0xff, 0x0f, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x48, 0x02, 0x52, 0x06, - 0x65, 0x78, 0x74, 0x72, 0x61, 0x73, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x70, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, - 0x6e, 0x65, 0x72, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x73, 0x4a, 0x04, - 0x08, 0x09, 0x10, 0x0a, 0x4a, 0x04, 0x08, 0x0a, 0x10, 0x0b, 0x22, 0xcd, 0x01, 0x0a, 0x08, 0x4f, - 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x4c, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, - 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, - 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, - 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x06, 0x72, - 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x88, - 0x01, 0x01, 0x12, 0x4b, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x03, + 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x65, 0x73, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x08, 0x72, 0x65, 0x73, 0x61, 0x6d, 0x70, 0x6c, + 0x65, 0x12, 0x5e, 0x0a, 0x0b, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x5f, 0x70, 0x6f, 0x73, 0x65, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, + 0x6f, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x50, 0x6f, 0x73, + 0x65, 0x42, 0x0b, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x22, 0xc1, + 0x01, 0x0a, 0x0f, 0x41, 0x73, 0x73, 0x65, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, + 0x72, 0x73, 0x12, 0x4b, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x67, - 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, - 0x09, 0x0a, 0x07, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, 0xb1, 0x01, 0x0a, 0x05, 0x53, - 0x74, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x49, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x4d, 0x0a, 0x09, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, - 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x6e, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x08, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x72, - 0x0a, 0x0c, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, - 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x43, 0x0a, - 0x05, 0x73, 0x74, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, - 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x67, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, - 0x67, 0x65, 0x2a, 0x45, 0x0a, 0x0c, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x61, 0x73, - 0x6f, 0x6e, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x55, 0x4c, 0x4c, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, - 0x4c, 0x45, 0x4e, 0x47, 0x54, 0x48, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x53, 0x54, 0x4f, 0x50, - 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x0a, 0x0a, - 0x06, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x10, 0x04, 0x2a, 0xf8, 0x01, 0x0a, 0x0c, 0x41, 0x72, - 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x52, - 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x12, 0x0a, - 0x0e, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x10, - 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x56, 0x49, - 0x44, 0x45, 0x4f, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, - 0x54, 0x5f, 0x54, 0x45, 0x58, 0x54, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x52, 0x54, 0x49, - 0x46, 0x41, 0x43, 0x54, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x53, 0x10, 0x04, 0x12, 0x16, 0x0a, - 0x12, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x45, 0x4d, 0x42, 0x45, 0x44, 0x44, - 0x49, 0x4e, 0x47, 0x10, 0x05, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, - 0x54, 0x5f, 0x43, 0x4c, 0x41, 0x53, 0x53, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, - 0x53, 0x10, 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, - 0x4d, 0x41, 0x53, 0x4b, 0x10, 0x07, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, - 0x43, 0x54, 0x5f, 0x4c, 0x41, 0x54, 0x45, 0x4e, 0x54, 0x10, 0x08, 0x12, 0x13, 0x0a, 0x0f, 0x41, - 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x54, 0x45, 0x4e, 0x53, 0x4f, 0x52, 0x10, 0x09, - 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x44, 0x45, 0x50, - 0x54, 0x48, 0x10, 0x0a, 0x2a, 0x67, 0x0a, 0x0e, 0x4d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x41, 0x72, - 0x65, 0x61, 0x49, 0x6e, 0x69, 0x74, 0x12, 0x19, 0x0a, 0x15, 0x4d, 0x41, 0x53, 0x4b, 0x45, 0x44, - 0x5f, 0x41, 0x52, 0x45, 0x41, 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, - 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x4d, 0x41, 0x53, 0x4b, 0x45, 0x44, 0x5f, 0x41, 0x52, 0x45, 0x41, - 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x5f, 0x52, 0x41, 0x4e, 0x44, 0x4f, 0x4d, 0x10, 0x01, 0x12, 0x1d, - 0x0a, 0x19, 0x4d, 0x41, 0x53, 0x4b, 0x45, 0x44, 0x5f, 0x41, 0x52, 0x45, 0x41, 0x5f, 0x49, 0x4e, - 0x49, 0x54, 0x5f, 0x4f, 0x52, 0x49, 0x47, 0x49, 0x4e, 0x41, 0x4c, 0x10, 0x02, 0x2a, 0x35, 0x0a, - 0x0c, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x10, 0x0a, - 0x0c, 0x54, 0x45, 0x58, 0x54, 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x45, 0x52, 0x10, 0x00, 0x12, - 0x13, 0x0a, 0x0f, 0x43, 0x52, 0x4f, 0x53, 0x53, 0x5f, 0x41, 0x54, 0x54, 0x45, 0x4e, 0x54, 0x49, - 0x4f, 0x4e, 0x10, 0x01, 0x2a, 0x98, 0x02, 0x0a, 0x10, 0x44, 0x69, 0x66, 0x66, 0x75, 0x73, 0x69, - 0x6f, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x41, 0x4d, - 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x44, 0x44, 0x49, 0x4d, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x53, - 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x44, 0x44, 0x50, 0x4d, 0x10, 0x01, 0x12, 0x13, 0x0a, - 0x0f, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x45, 0x55, 0x4c, 0x45, 0x52, - 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, - 0x45, 0x55, 0x4c, 0x45, 0x52, 0x5f, 0x41, 0x4e, 0x43, 0x45, 0x53, 0x54, 0x52, 0x41, 0x4c, 0x10, - 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x48, - 0x45, 0x55, 0x4e, 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, - 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x5f, 0x32, 0x10, 0x05, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x41, - 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x5f, 0x32, 0x5f, 0x41, 0x4e, - 0x43, 0x45, 0x53, 0x54, 0x52, 0x41, 0x4c, 0x10, 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x41, 0x4d, - 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x4c, 0x4d, 0x53, 0x10, 0x07, 0x12, 0x20, 0x0a, 0x1c, - 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x50, 0x50, 0x5f, - 0x32, 0x53, 0x5f, 0x41, 0x4e, 0x43, 0x45, 0x53, 0x54, 0x52, 0x41, 0x4c, 0x10, 0x08, 0x12, 0x16, - 0x0a, 0x12, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x50, - 0x50, 0x5f, 0x32, 0x4d, 0x10, 0x09, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, - 0x52, 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x50, 0x50, 0x5f, 0x53, 0x44, 0x45, 0x10, 0x0a, 0x2a, - 0x46, 0x0a, 0x08, 0x55, 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x0c, 0x55, - 0x50, 0x53, 0x43, 0x41, 0x4c, 0x45, 0x52, 0x5f, 0x52, 0x47, 0x42, 0x10, 0x00, 0x12, 0x13, 0x0a, - 0x0f, 0x55, 0x50, 0x53, 0x43, 0x41, 0x4c, 0x45, 0x52, 0x5f, 0x47, 0x46, 0x50, 0x47, 0x41, 0x4e, - 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x50, 0x53, 0x43, 0x41, 0x4c, 0x45, 0x52, 0x5f, 0x45, - 0x53, 0x52, 0x47, 0x41, 0x4e, 0x10, 0x02, 0x2a, 0xd8, 0x01, 0x0a, 0x0e, 0x47, 0x75, 0x69, 0x64, - 0x61, 0x6e, 0x63, 0x65, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x14, 0x47, 0x55, - 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x4e, 0x4f, - 0x4e, 0x45, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, - 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x53, 0x49, 0x4d, 0x50, 0x4c, 0x45, 0x10, 0x01, - 0x12, 0x1d, 0x0a, 0x19, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, - 0x53, 0x45, 0x54, 0x5f, 0x46, 0x41, 0x53, 0x54, 0x5f, 0x42, 0x4c, 0x55, 0x45, 0x10, 0x02, 0x12, - 0x1e, 0x0a, 0x1a, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, - 0x45, 0x54, 0x5f, 0x46, 0x41, 0x53, 0x54, 0x5f, 0x47, 0x52, 0x45, 0x45, 0x4e, 0x10, 0x03, 0x12, - 0x18, 0x0a, 0x14, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, - 0x45, 0x54, 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x10, 0x04, 0x12, 0x1a, 0x0a, 0x16, 0x47, 0x55, 0x49, - 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x53, 0x4c, 0x4f, - 0x57, 0x45, 0x52, 0x10, 0x05, 0x12, 0x1b, 0x0a, 0x17, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, - 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x45, 0x53, 0x54, - 0x10, 0x06, 0x2a, 0x91, 0x01, 0x0a, 0x11, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x63, 0x68, - 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x4d, 0x4f, 0x44, 0x45, - 0x4c, 0x5f, 0x41, 0x52, 0x43, 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x4e, - 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x41, - 0x52, 0x43, 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x43, 0x4c, 0x49, 0x50, - 0x5f, 0x56, 0x49, 0x54, 0x10, 0x01, 0x12, 0x22, 0x0a, 0x1e, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, - 0x41, 0x52, 0x43, 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x43, 0x4c, 0x49, - 0x50, 0x5f, 0x52, 0x45, 0x53, 0x4e, 0x45, 0x54, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x4d, 0x4f, - 0x44, 0x45, 0x4c, 0x5f, 0x41, 0x52, 0x43, 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, - 0x5f, 0x4c, 0x44, 0x4d, 0x10, 0x03, 0x2a, 0x64, 0x0a, 0x0a, 0x54, 0x32, 0x49, 0x41, 0x64, 0x61, - 0x70, 0x74, 0x65, 0x72, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x32, 0x49, 0x41, 0x44, 0x41, 0x50, 0x54, - 0x45, 0x52, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x32, 0x49, - 0x41, 0x44, 0x41, 0x50, 0x54, 0x45, 0x52, 0x5f, 0x53, 0x4b, 0x45, 0x54, 0x43, 0x48, 0x10, 0x01, - 0x12, 0x14, 0x0a, 0x10, 0x54, 0x32, 0x49, 0x41, 0x44, 0x41, 0x50, 0x54, 0x45, 0x52, 0x5f, 0x44, - 0x45, 0x50, 0x54, 0x48, 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x32, 0x49, 0x41, 0x44, 0x41, - 0x50, 0x54, 0x45, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x4e, 0x59, 0x10, 0x03, 0x2a, 0x4c, 0x0a, 0x0e, - 0x54, 0x32, 0x49, 0x41, 0x64, 0x61, 0x70, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x12, 0x18, - 0x0a, 0x14, 0x54, 0x32, 0x49, 0x41, 0x44, 0x41, 0x50, 0x54, 0x45, 0x52, 0x49, 0x4e, 0x49, 0x54, - 0x5f, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x10, 0x00, 0x12, 0x20, 0x0a, 0x1c, 0x54, 0x32, 0x49, 0x41, - 0x44, 0x41, 0x50, 0x54, 0x45, 0x52, 0x49, 0x4e, 0x49, 0x54, 0x5f, 0x41, 0x44, 0x41, 0x50, 0x54, - 0x45, 0x52, 0x5f, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x10, 0x01, 0x2a, 0xa2, 0x01, 0x0a, 0x06, 0x41, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, - 0x50, 0x41, 0x53, 0x53, 0x54, 0x48, 0x52, 0x4f, 0x55, 0x47, 0x48, 0x10, 0x00, 0x12, 0x1f, 0x0a, - 0x1b, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, - 0x54, 0x45, 0x5f, 0x44, 0x55, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x15, - 0x0a, 0x11, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x47, 0x45, 0x4e, 0x45, 0x52, - 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, - 0x4f, 0x42, 0x46, 0x55, 0x53, 0x43, 0x41, 0x54, 0x45, 0x5f, 0x44, 0x55, 0x50, 0x4c, 0x49, 0x43, - 0x41, 0x54, 0x45, 0x10, 0x03, 0x12, 0x14, 0x0a, 0x10, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, - 0x4f, 0x42, 0x46, 0x55, 0x53, 0x43, 0x41, 0x54, 0x45, 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x41, - 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x49, 0x53, 0x43, 0x41, 0x52, 0x44, 0x10, 0x05, 0x2a, - 0x44, 0x0a, 0x0e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x4d, 0x6f, 0x64, - 0x65, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x4c, 0x53, 0x46, 0x52, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, - 0x5a, 0x45, 0x52, 0x4f, 0x53, 0x48, 0x4f, 0x54, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x4c, - 0x53, 0x46, 0x52, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x4d, 0x55, 0x4c, 0x54, 0x49, 0x43, 0x4c, - 0x41, 0x53, 0x53, 0x10, 0x01, 0x2a, 0x8c, 0x01, 0x0a, 0x0f, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x70, - 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x49, 0x4e, 0x54, - 0x45, 0x52, 0x50, 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x4c, 0x49, 0x4e, 0x45, 0x41, 0x52, 0x10, - 0x00, 0x12, 0x14, 0x0a, 0x10, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x50, 0x4f, 0x4c, 0x41, 0x54, 0x45, - 0x5f, 0x52, 0x49, 0x46, 0x45, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x49, 0x4e, 0x54, 0x45, 0x52, - 0x50, 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x56, 0x41, 0x45, 0x5f, 0x4c, 0x49, 0x4e, 0x45, 0x41, - 0x52, 0x10, 0x02, 0x12, 0x19, 0x0a, 0x15, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x50, 0x4f, 0x4c, 0x41, - 0x54, 0x45, 0x5f, 0x56, 0x41, 0x45, 0x5f, 0x53, 0x4c, 0x45, 0x52, 0x50, 0x10, 0x03, 0x12, 0x14, - 0x0a, 0x10, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x50, 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x46, 0x49, - 0x4c, 0x4d, 0x10, 0x04, 0x2a, 0x6c, 0x0a, 0x0a, 0x42, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x6f, - 0x64, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x46, - 0x4c, 0x45, 0x43, 0x54, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, - 0x5f, 0x52, 0x45, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, - 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x57, 0x52, 0x41, 0x50, 0x10, 0x02, 0x12, 0x0f, 0x0a, - 0x0b, 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x03, 0x12, 0x12, - 0x0a, 0x0e, 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x50, 0x52, 0x45, 0x46, 0x49, 0x4c, 0x4c, - 0x10, 0x04, 0x2a, 0x4f, 0x0a, 0x0e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x4d, 0x61, 0x74, 0x63, 0x68, - 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x4f, 0x4c, 0x4f, 0x52, 0x5f, 0x4d, 0x41, - 0x54, 0x43, 0x48, 0x5f, 0x48, 0x53, 0x56, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x4f, 0x4c, - 0x4f, 0x52, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x5f, 0x4c, 0x41, 0x42, 0x10, 0x01, 0x12, 0x13, - 0x0a, 0x0f, 0x43, 0x4f, 0x4c, 0x4f, 0x52, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x5f, 0x52, 0x47, - 0x42, 0x10, 0x02, 0x2a, 0x3d, 0x0a, 0x0a, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x41, 0x4d, 0x45, 0x52, 0x41, 0x5f, 0x50, 0x45, 0x52, 0x53, - 0x50, 0x45, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x41, 0x4d, - 0x45, 0x52, 0x41, 0x5f, 0x4f, 0x52, 0x54, 0x48, 0x4f, 0x47, 0x52, 0x41, 0x50, 0x48, 0x49, 0x43, - 0x10, 0x01, 0x2a, 0x34, 0x0a, 0x0a, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, - 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x4d, 0x45, 0x53, 0x48, 0x10, - 0x00, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x50, 0x4f, 0x49, 0x4e, - 0x54, 0x43, 0x4c, 0x4f, 0x55, 0x44, 0x10, 0x01, 0x2a, 0x3d, 0x0a, 0x0b, 0x41, 0x73, 0x73, 0x65, - 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x53, 0x53, 0x45, 0x54, - 0x5f, 0x50, 0x55, 0x54, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, - 0x47, 0x45, 0x54, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x44, - 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x02, 0x2a, 0x81, 0x01, 0x0a, 0x08, 0x41, 0x73, 0x73, 0x65, - 0x74, 0x55, 0x73, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, - 0x45, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, - 0x0f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x50, 0x55, 0x54, - 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, - 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x41, 0x53, 0x53, 0x45, - 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4d, 0x45, 0x44, 0x49, 0x41, - 0x54, 0x45, 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, - 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x04, 0x2a, 0x57, 0x0a, 0x0b, 0x53, - 0x74, 0x61, 0x67, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, - 0x41, 0x47, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x41, 0x53, 0x53, 0x10, - 0x00, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, - 0x4e, 0x5f, 0x44, 0x49, 0x53, 0x43, 0x41, 0x52, 0x44, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x53, - 0x54, 0x41, 0x47, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x54, 0x55, - 0x52, 0x4e, 0x10, 0x02, 0x32, 0xff, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6f, 0x0a, 0x08, 0x47, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x65, + 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x42, + 0x0a, 0x03, 0x75, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x73, 0x74, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x52, 0x03, 0x75, + 0x73, 0x65, 0x22, 0xb4, 0x01, 0x0a, 0x0a, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x4d, 0x65, 0x74, + 0x61, 0x12, 0x1a, 0x0a, 0x06, 0x67, 0x70, 0x75, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x00, 0x52, 0x05, 0x67, 0x70, 0x75, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1a, 0x0a, + 0x06, 0x63, 0x70, 0x75, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, + 0x05, 0x63, 0x70, 0x75, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1c, 0x0a, 0x07, 0x6e, 0x6f, 0x64, + 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x06, 0x6e, 0x6f, + 0x64, 0x65, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x09, 0x65, 0x6e, 0x67, 0x69, 0x6e, + 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x08, 0x65, 0x6e, + 0x67, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x67, 0x70, + 0x75, 0x5f, 0x69, 0x64, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x63, 0x70, 0x75, 0x5f, 0x69, 0x64, 0x42, + 0x0a, 0x0a, 0x08, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, + 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x22, 0xa0, 0x02, 0x0a, 0x06, 0x41, 0x6e, + 0x73, 0x77, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x49, + 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, + 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x4b, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, + 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, + 0x73, 0x77, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x48, 0x00, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, + 0x88, 0x01, 0x01, 0x12, 0x4e, 0x0a, 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, + 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, + 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, + 0x63, 0x74, 0x73, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x22, 0x72, 0x0a, 0x0b, + 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x19, 0x0a, 0x08, 0x62, + 0x61, 0x74, 0x63, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, + 0x61, 0x74, 0x63, 0x68, 0x49, 0x64, 0x12, 0x48, 0x0a, 0x07, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x22, 0x00, 0x30, 0x01, 0x12, 0x79, 0x0a, 0x0d, 0x43, - 0x68, 0x61, 0x69, 0x6e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x12, 0x34, 0x2e, 0x73, + 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x52, 0x07, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x73, + 0x22, 0xfa, 0x06, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, + 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x5b, 0x0a, 0x0e, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, + 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, + 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x46, 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x18, + 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, + 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x52, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x12, 0x4f, 0x0a, + 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x5e, + 0x0a, 0x0a, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x73, 0x77, - 0x65, 0x72, 0x22, 0x00, 0x30, 0x01, 0x42, 0xd6, 0x02, 0x0a, 0x2a, 0x63, 0x6f, 0x6d, 0x2e, 0x73, - 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x5c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2d, 0x61, - 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, - 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, - 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x67, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, 0x47, 0xaa, 0x02, 0x26, 0x53, - 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, - 0x5c, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0xe2, 0x02, - 0x32, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x29, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, - 0x69, 0x3a, 0x3a, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x3a, - 0x3a, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x73, + 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, + 0x48, 0x00, 0x52, 0x0a, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x4f, + 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, + 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, + 0x61, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, + 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, + 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, + 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, 0x0b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, + 0x74, 0x65, 0x12, 0x5b, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x18, + 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, + 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, + 0x72, 0x73, 0x48, 0x00, 0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x12, + 0x64, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, + 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, + 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, + 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, + 0x65, 0x72, 0x73, 0x48, 0x01, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x35, 0x0a, 0x06, 0x65, 0x78, 0x74, 0x72, 0x61, 0x73, 0x18, + 0xff, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x48, + 0x02, 0x52, 0x06, 0x65, 0x78, 0x74, 0x72, 0x61, 0x73, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, + 0x73, 0x4a, 0x04, 0x08, 0x09, 0x10, 0x0a, 0x4a, 0x04, 0x08, 0x0a, 0x10, 0x0b, 0x22, 0xcd, 0x01, + 0x0a, 0x08, 0x4f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x4c, 0x0a, 0x06, 0x72, 0x65, + 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, + 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x88, 0x01, 0x01, 0x12, 0x4b, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x03, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x74, 0x61, 0x67, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, 0xb1, 0x01, + 0x0a, 0x05, 0x53, 0x74, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x49, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x4d, 0x0a, 0x09, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, + 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4f, + 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x08, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x22, 0x72, 0x0a, 0x0c, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, + 0x12, 0x43, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x2d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x67, 0x65, 0x52, 0x05, + 0x73, 0x74, 0x61, 0x67, 0x65, 0x2a, 0x45, 0x0a, 0x0c, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, + 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x55, 0x4c, 0x4c, 0x10, 0x00, 0x12, + 0x0a, 0x0a, 0x06, 0x4c, 0x45, 0x4e, 0x47, 0x54, 0x48, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x53, + 0x54, 0x4f, 0x50, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, + 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x10, 0x04, 0x2a, 0xf8, 0x01, 0x0a, + 0x0c, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x11, 0x0a, + 0x0d, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, + 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x49, 0x4d, 0x41, + 0x47, 0x45, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, + 0x5f, 0x56, 0x49, 0x44, 0x45, 0x4f, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x52, 0x54, 0x49, + 0x46, 0x41, 0x43, 0x54, 0x5f, 0x54, 0x45, 0x58, 0x54, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x41, + 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x53, 0x10, 0x04, + 0x12, 0x16, 0x0a, 0x12, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x45, 0x4d, 0x42, + 0x45, 0x44, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x05, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x52, 0x54, 0x49, + 0x46, 0x41, 0x43, 0x54, 0x5f, 0x43, 0x4c, 0x41, 0x53, 0x53, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, + 0x49, 0x4f, 0x4e, 0x53, 0x10, 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, + 0x43, 0x54, 0x5f, 0x4d, 0x41, 0x53, 0x4b, 0x10, 0x07, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x52, 0x54, + 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x4c, 0x41, 0x54, 0x45, 0x4e, 0x54, 0x10, 0x08, 0x12, 0x13, + 0x0a, 0x0f, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x54, 0x45, 0x4e, 0x53, 0x4f, + 0x52, 0x10, 0x09, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, + 0x44, 0x45, 0x50, 0x54, 0x48, 0x10, 0x0a, 0x2a, 0x67, 0x0a, 0x0e, 0x4d, 0x61, 0x73, 0x6b, 0x65, + 0x64, 0x41, 0x72, 0x65, 0x61, 0x49, 0x6e, 0x69, 0x74, 0x12, 0x19, 0x0a, 0x15, 0x4d, 0x41, 0x53, + 0x4b, 0x45, 0x44, 0x5f, 0x41, 0x52, 0x45, 0x41, 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x5f, 0x5a, 0x45, + 0x52, 0x4f, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x4d, 0x41, 0x53, 0x4b, 0x45, 0x44, 0x5f, 0x41, + 0x52, 0x45, 0x41, 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x5f, 0x52, 0x41, 0x4e, 0x44, 0x4f, 0x4d, 0x10, + 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x4d, 0x41, 0x53, 0x4b, 0x45, 0x44, 0x5f, 0x41, 0x52, 0x45, 0x41, + 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x5f, 0x4f, 0x52, 0x49, 0x47, 0x49, 0x4e, 0x41, 0x4c, 0x10, 0x02, + 0x2a, 0x35, 0x0a, 0x0c, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, + 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x45, 0x58, 0x54, 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x45, 0x52, + 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x52, 0x4f, 0x53, 0x53, 0x5f, 0x41, 0x54, 0x54, 0x45, + 0x4e, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x2a, 0x98, 0x02, 0x0a, 0x10, 0x44, 0x69, 0x66, 0x66, + 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x0c, + 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x44, 0x44, 0x49, 0x4d, 0x10, 0x00, 0x12, 0x10, + 0x0a, 0x0c, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x44, 0x44, 0x50, 0x4d, 0x10, 0x01, + 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x45, 0x55, + 0x4c, 0x45, 0x52, 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, + 0x5f, 0x4b, 0x5f, 0x45, 0x55, 0x4c, 0x45, 0x52, 0x5f, 0x41, 0x4e, 0x43, 0x45, 0x53, 0x54, 0x52, + 0x41, 0x4c, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, + 0x4b, 0x5f, 0x48, 0x45, 0x55, 0x4e, 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x41, 0x4d, 0x50, + 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x5f, 0x32, 0x10, 0x05, 0x12, 0x1d, 0x0a, + 0x19, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x5f, 0x32, + 0x5f, 0x41, 0x4e, 0x43, 0x45, 0x53, 0x54, 0x52, 0x41, 0x4c, 0x10, 0x06, 0x12, 0x11, 0x0a, 0x0d, + 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x4c, 0x4d, 0x53, 0x10, 0x07, 0x12, + 0x20, 0x0a, 0x1c, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, + 0x50, 0x50, 0x5f, 0x32, 0x53, 0x5f, 0x41, 0x4e, 0x43, 0x45, 0x53, 0x54, 0x52, 0x41, 0x4c, 0x10, + 0x08, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x44, + 0x50, 0x4d, 0x50, 0x50, 0x5f, 0x32, 0x4d, 0x10, 0x09, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x41, 0x4d, + 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x50, 0x50, 0x5f, 0x53, 0x44, 0x45, + 0x10, 0x0a, 0x2a, 0x46, 0x0a, 0x08, 0x55, 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x12, 0x10, + 0x0a, 0x0c, 0x55, 0x50, 0x53, 0x43, 0x41, 0x4c, 0x45, 0x52, 0x5f, 0x52, 0x47, 0x42, 0x10, 0x00, + 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x50, 0x53, 0x43, 0x41, 0x4c, 0x45, 0x52, 0x5f, 0x47, 0x46, 0x50, + 0x47, 0x41, 0x4e, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x50, 0x53, 0x43, 0x41, 0x4c, 0x45, + 0x52, 0x5f, 0x45, 0x53, 0x52, 0x47, 0x41, 0x4e, 0x10, 0x02, 0x2a, 0xd8, 0x01, 0x0a, 0x0e, 0x47, + 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x12, 0x18, 0x0a, + 0x14, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, + 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x47, 0x55, 0x49, 0x44, 0x41, + 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x53, 0x49, 0x4d, 0x50, 0x4c, + 0x45, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, + 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x46, 0x41, 0x53, 0x54, 0x5f, 0x42, 0x4c, 0x55, 0x45, + 0x10, 0x02, 0x12, 0x1e, 0x0a, 0x1a, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, + 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x46, 0x41, 0x53, 0x54, 0x5f, 0x47, 0x52, 0x45, 0x45, 0x4e, + 0x10, 0x03, 0x12, 0x18, 0x0a, 0x14, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, + 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x10, 0x04, 0x12, 0x1a, 0x0a, 0x16, + 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, + 0x53, 0x4c, 0x4f, 0x57, 0x45, 0x52, 0x10, 0x05, 0x12, 0x1b, 0x0a, 0x17, 0x47, 0x55, 0x49, 0x44, + 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x53, 0x4c, 0x4f, 0x57, + 0x45, 0x53, 0x54, 0x10, 0x06, 0x2a, 0x91, 0x01, 0x0a, 0x11, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, + 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x4d, + 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x41, 0x52, 0x43, 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, + 0x45, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x4d, 0x4f, 0x44, 0x45, + 0x4c, 0x5f, 0x41, 0x52, 0x43, 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x43, + 0x4c, 0x49, 0x50, 0x5f, 0x56, 0x49, 0x54, 0x10, 0x01, 0x12, 0x22, 0x0a, 0x1e, 0x4d, 0x4f, 0x44, + 0x45, 0x4c, 0x5f, 0x41, 0x52, 0x43, 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, + 0x43, 0x4c, 0x49, 0x50, 0x5f, 0x52, 0x45, 0x53, 0x4e, 0x45, 0x54, 0x10, 0x02, 0x12, 0x1a, 0x0a, + 0x16, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x41, 0x52, 0x43, 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, + 0x55, 0x52, 0x45, 0x5f, 0x4c, 0x44, 0x4d, 0x10, 0x03, 0x2a, 0x64, 0x0a, 0x0a, 0x54, 0x32, 0x49, + 0x41, 0x64, 0x61, 0x70, 0x74, 0x65, 0x72, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x32, 0x49, 0x41, 0x44, + 0x41, 0x50, 0x54, 0x45, 0x52, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, + 0x54, 0x32, 0x49, 0x41, 0x44, 0x41, 0x50, 0x54, 0x45, 0x52, 0x5f, 0x53, 0x4b, 0x45, 0x54, 0x43, + 0x48, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x32, 0x49, 0x41, 0x44, 0x41, 0x50, 0x54, 0x45, + 0x52, 0x5f, 0x44, 0x45, 0x50, 0x54, 0x48, 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x32, 0x49, + 0x41, 0x44, 0x41, 0x50, 0x54, 0x45, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x4e, 0x59, 0x10, 0x03, 0x2a, + 0x4c, 0x0a, 0x0e, 0x54, 0x32, 0x49, 0x41, 0x64, 0x61, 0x70, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x69, + 0x74, 0x12, 0x18, 0x0a, 0x14, 0x54, 0x32, 0x49, 0x41, 0x44, 0x41, 0x50, 0x54, 0x45, 0x52, 0x49, + 0x4e, 0x49, 0x54, 0x5f, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x10, 0x00, 0x12, 0x20, 0x0a, 0x1c, 0x54, + 0x32, 0x49, 0x41, 0x44, 0x41, 0x50, 0x54, 0x45, 0x52, 0x49, 0x4e, 0x49, 0x54, 0x5f, 0x41, 0x44, + 0x41, 0x50, 0x54, 0x45, 0x52, 0x5f, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x10, 0x01, 0x2a, 0xa2, 0x01, + 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x43, 0x54, 0x49, + 0x4f, 0x4e, 0x5f, 0x50, 0x41, 0x53, 0x53, 0x54, 0x48, 0x52, 0x4f, 0x55, 0x47, 0x48, 0x10, 0x00, + 0x12, 0x1f, 0x0a, 0x1b, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x47, 0x45, 0x4e, + 0x45, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x44, 0x55, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x45, 0x10, + 0x01, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x47, 0x45, + 0x4e, 0x45, 0x52, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x43, 0x54, 0x49, + 0x4f, 0x4e, 0x5f, 0x4f, 0x42, 0x46, 0x55, 0x53, 0x43, 0x41, 0x54, 0x45, 0x5f, 0x44, 0x55, 0x50, + 0x4c, 0x49, 0x43, 0x41, 0x54, 0x45, 0x10, 0x03, 0x12, 0x14, 0x0a, 0x10, 0x41, 0x43, 0x54, 0x49, + 0x4f, 0x4e, 0x5f, 0x4f, 0x42, 0x46, 0x55, 0x53, 0x43, 0x41, 0x54, 0x45, 0x10, 0x04, 0x12, 0x12, + 0x0a, 0x0e, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x49, 0x53, 0x43, 0x41, 0x52, 0x44, + 0x10, 0x05, 0x2a, 0x44, 0x0a, 0x0e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, + 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x4c, 0x53, 0x46, 0x52, 0x5f, 0x4d, 0x4f, + 0x44, 0x45, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x53, 0x48, 0x4f, 0x54, 0x10, 0x00, 0x12, 0x19, 0x0a, + 0x15, 0x43, 0x4c, 0x53, 0x46, 0x52, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x4d, 0x55, 0x4c, 0x54, + 0x49, 0x43, 0x4c, 0x41, 0x53, 0x53, 0x10, 0x01, 0x2a, 0x8c, 0x01, 0x0a, 0x0f, 0x49, 0x6e, 0x74, + 0x65, 0x72, 0x70, 0x6f, 0x6c, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x12, + 0x49, 0x4e, 0x54, 0x45, 0x52, 0x50, 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x4c, 0x49, 0x4e, 0x45, + 0x41, 0x52, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x50, 0x4f, 0x4c, + 0x41, 0x54, 0x45, 0x5f, 0x52, 0x49, 0x46, 0x45, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x49, 0x4e, + 0x54, 0x45, 0x52, 0x50, 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x56, 0x41, 0x45, 0x5f, 0x4c, 0x49, + 0x4e, 0x45, 0x41, 0x52, 0x10, 0x02, 0x12, 0x19, 0x0a, 0x15, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x50, + 0x4f, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x56, 0x41, 0x45, 0x5f, 0x53, 0x4c, 0x45, 0x52, 0x50, 0x10, + 0x03, 0x12, 0x14, 0x0a, 0x10, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x50, 0x4f, 0x4c, 0x41, 0x54, 0x45, + 0x5f, 0x46, 0x49, 0x4c, 0x4d, 0x10, 0x04, 0x2a, 0x6c, 0x0a, 0x0a, 0x42, 0x6f, 0x72, 0x64, 0x65, + 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, + 0x52, 0x45, 0x46, 0x4c, 0x45, 0x43, 0x54, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x42, 0x4f, 0x52, + 0x44, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, + 0x0f, 0x0a, 0x0b, 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x57, 0x52, 0x41, 0x50, 0x10, 0x02, + 0x12, 0x0f, 0x0a, 0x0b, 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, + 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x42, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x50, 0x52, 0x45, 0x46, + 0x49, 0x4c, 0x4c, 0x10, 0x04, 0x2a, 0x4f, 0x0a, 0x0e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x4d, 0x61, + 0x74, 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x4f, 0x4c, 0x4f, 0x52, + 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x5f, 0x48, 0x53, 0x56, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, + 0x43, 0x4f, 0x4c, 0x4f, 0x52, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x5f, 0x4c, 0x41, 0x42, 0x10, + 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x4f, 0x4c, 0x4f, 0x52, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, + 0x5f, 0x52, 0x47, 0x42, 0x10, 0x02, 0x2a, 0x3d, 0x0a, 0x0a, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x41, 0x4d, 0x45, 0x52, 0x41, 0x5f, 0x50, + 0x45, 0x52, 0x53, 0x50, 0x45, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, + 0x43, 0x41, 0x4d, 0x45, 0x52, 0x41, 0x5f, 0x4f, 0x52, 0x54, 0x48, 0x4f, 0x47, 0x52, 0x41, 0x50, + 0x48, 0x49, 0x43, 0x10, 0x01, 0x2a, 0x34, 0x0a, 0x0a, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x4d, + 0x6f, 0x64, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x4d, 0x45, + 0x53, 0x48, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x50, + 0x4f, 0x49, 0x4e, 0x54, 0x43, 0x4c, 0x4f, 0x55, 0x44, 0x10, 0x01, 0x2a, 0x3d, 0x0a, 0x0b, 0x41, + 0x73, 0x73, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x53, + 0x53, 0x45, 0x54, 0x5f, 0x50, 0x55, 0x54, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x53, 0x53, + 0x45, 0x54, 0x5f, 0x47, 0x45, 0x54, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x53, 0x53, 0x45, + 0x54, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x02, 0x2a, 0x81, 0x01, 0x0a, 0x08, 0x41, + 0x73, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x41, 0x53, 0x53, 0x45, 0x54, + 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, + 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x4e, + 0x50, 0x55, 0x54, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, + 0x53, 0x45, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x41, + 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4d, 0x45, + 0x44, 0x49, 0x41, 0x54, 0x45, 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x53, 0x53, 0x45, 0x54, + 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x04, 0x2a, 0x57, + 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x67, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x15, 0x0a, + 0x11, 0x53, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x41, + 0x53, 0x53, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x41, 0x43, + 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x49, 0x53, 0x43, 0x41, 0x52, 0x44, 0x10, 0x01, 0x12, 0x17, + 0x0a, 0x13, 0x53, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, + 0x45, 0x54, 0x55, 0x52, 0x4e, 0x10, 0x02, 0x32, 0xff, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6f, 0x0a, + 0x08, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x2e, 0x73, 0x74, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x22, 0x00, 0x30, 0x01, 0x12, 0x79, + 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x12, + 0x34, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, + 0x6e, 0x73, 0x77, 0x65, 0x72, 0x22, 0x00, 0x30, 0x01, 0x42, 0xd6, 0x02, 0x0a, 0x2a, 0x63, 0x6f, + 0x6d, 0x2e, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x5c, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x2d, 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, + 0x63, 0x65, 0x73, 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x5f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, 0x47, 0xaa, + 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x2e, 0x50, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x26, 0x53, 0x74, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x70, 0x69, 0x73, 0x5c, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, + 0x31, 0xe2, 0x02, 0x32, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x61, 0x69, 0x5c, + 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, 0x69, 0x73, 0x5c, 0x47, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x29, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x61, 0x69, 0x3a, 0x3a, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x70, + 0x69, 0x73, 0x3a, 0x3a, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, + 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -5019,67 +5025,67 @@ func file_stability_api_platform_generation_v1_generation_proto_rawDescGZIP() [] var file_stability_api_platform_generation_v1_generation_proto_enumTypes = make([]protoimpl.EnumInfo, 21) var file_stability_api_platform_generation_v1_generation_proto_msgTypes = make([]protoimpl.MessageInfo, 38) var file_stability_api_platform_generation_v1_generation_proto_goTypes = []interface{}{ - (FinishReason)(0), // 0: stabilityai.platformapis.generation.v1.FinishReason - (ArtifactType)(0), // 1: stabilityai.platformapis.generation.v1.ArtifactType - (MaskedAreaInit)(0), // 2: stabilityai.platformapis.generation.v1.MaskedAreaInit - (WeightMethod)(0), // 3: stabilityai.platformapis.generation.v1.WeightMethod - (DiffusionSampler)(0), // 4: stabilityai.platformapis.generation.v1.DiffusionSampler - (Upscaler)(0), // 5: stabilityai.platformapis.generation.v1.Upscaler - (GuidancePreset)(0), // 6: stabilityai.platformapis.generation.v1.GuidancePreset - (ModelArchitecture)(0), // 7: stabilityai.platformapis.generation.v1.ModelArchitecture - (T2IAdapter)(0), // 8: stabilityai.platformapis.generation.v1.T2IAdapter - (T2IAdapterInit)(0), // 9: stabilityai.platformapis.generation.v1.T2IAdapterInit - (Action)(0), // 10: stabilityai.platformapis.generation.v1.Action - (ClassifierMode)(0), // 11: stabilityai.platformapis.generation.v1.ClassifierMode - (InterpolateMode)(0), // 12: stabilityai.platformapis.generation.v1.InterpolateMode - (BorderMode)(0), // 13: stabilityai.platformapis.generation.v1.BorderMode - (ColorMatchMode)(0), // 14: stabilityai.platformapis.generation.v1.ColorMatchMode - (CameraType)(0), // 15: stabilityai.platformapis.generation.v1.CameraType - (RenderMode)(0), // 16: stabilityai.platformapis.generation.v1.RenderMode - (AssetAction)(0), // 17: stabilityai.platformapis.generation.v1.AssetAction - (AssetUse)(0), // 18: stabilityai.platformapis.generation.v1.AssetUse - (StageAction)(0), // 19: stabilityai.platformapis.generation.v1.StageAction - (CAIParameters_ModelMetadata)(0), // 20: stabilityai.platformapis.generation.v1.CAIParameters.ModelMetadata - (*Token)(nil), // 21: stabilityai.platformapis.generation.v1.Token - (*Tokens)(nil), // 22: stabilityai.platformapis.generation.v1.Tokens - (*Artifact)(nil), // 23: stabilityai.platformapis.generation.v1.Artifact - (*PromptParameters)(nil), // 24: stabilityai.platformapis.generation.v1.PromptParameters - (*Prompt)(nil), // 25: stabilityai.platformapis.generation.v1.Prompt - (*SamplerParameters)(nil), // 26: stabilityai.platformapis.generation.v1.SamplerParameters - (*ConditionerParameters)(nil), // 27: stabilityai.platformapis.generation.v1.ConditionerParameters - (*ScheduleParameters)(nil), // 28: stabilityai.platformapis.generation.v1.ScheduleParameters - (*StepParameter)(nil), // 29: stabilityai.platformapis.generation.v1.StepParameter - (*Model)(nil), // 30: stabilityai.platformapis.generation.v1.Model - (*CutoutParameters)(nil), // 31: stabilityai.platformapis.generation.v1.CutoutParameters - (*GuidanceScheduleParameters)(nil), // 32: stabilityai.platformapis.generation.v1.GuidanceScheduleParameters - (*GuidanceInstanceParameters)(nil), // 33: stabilityai.platformapis.generation.v1.GuidanceInstanceParameters - (*GuidanceParameters)(nil), // 34: stabilityai.platformapis.generation.v1.GuidanceParameters - (*TransformType)(nil), // 35: stabilityai.platformapis.generation.v1.TransformType - (*T2IAdapterParameter)(nil), // 36: stabilityai.platformapis.generation.v1.T2IAdapterParameter - (*CAIParameters)(nil), // 37: stabilityai.platformapis.generation.v1.CAIParameters - (*FineTuningParameters)(nil), // 38: stabilityai.platformapis.generation.v1.FineTuningParameters - (*ImageParameters)(nil), // 39: stabilityai.platformapis.generation.v1.ImageParameters - (*ClassifierConcept)(nil), // 40: stabilityai.platformapis.generation.v1.ClassifierConcept - (*ClassifierCategory)(nil), // 41: stabilityai.platformapis.generation.v1.ClassifierCategory - (*ClassifierParameters)(nil), // 42: stabilityai.platformapis.generation.v1.ClassifierParameters - (*InterpolateParameters)(nil), // 43: stabilityai.platformapis.generation.v1.InterpolateParameters - (*TransformColorAdjust)(nil), // 44: stabilityai.platformapis.generation.v1.TransformColorAdjust - (*TransformDepthCalc)(nil), // 45: stabilityai.platformapis.generation.v1.TransformDepthCalc - (*TransformMatrix)(nil), // 46: stabilityai.platformapis.generation.v1.TransformMatrix - (*TransformResample)(nil), // 47: stabilityai.platformapis.generation.v1.TransformResample - (*CameraParameters)(nil), // 48: stabilityai.platformapis.generation.v1.CameraParameters - (*TransformCameraPose)(nil), // 49: stabilityai.platformapis.generation.v1.TransformCameraPose - (*TransformParameters)(nil), // 50: stabilityai.platformapis.generation.v1.TransformParameters - (*AssetParameters)(nil), // 51: stabilityai.platformapis.generation.v1.AssetParameters - (*AnswerMeta)(nil), // 52: stabilityai.platformapis.generation.v1.AnswerMeta - (*Answer)(nil), // 53: stabilityai.platformapis.generation.v1.Answer - (*AnswerBatch)(nil), // 54: stabilityai.platformapis.generation.v1.AnswerBatch - (*Request)(nil), // 55: stabilityai.platformapis.generation.v1.Request - (*OnStatus)(nil), // 56: stabilityai.platformapis.generation.v1.OnStatus - (*Stage)(nil), // 57: stabilityai.platformapis.generation.v1.Stage - (*ChainRequest)(nil), // 58: stabilityai.platformapis.generation.v1.ChainRequest - (*tensors.Tensor)(nil), // 59: tensors.Tensor - (*structpb.Struct)(nil), // 60: google.protobuf.Struct + (FinishReason)(0), // 0: stabilityai.platformapis.generation.v1.FinishReason + (ArtifactType)(0), // 1: stabilityai.platformapis.generation.v1.ArtifactType + (MaskedAreaInit)(0), // 2: stabilityai.platformapis.generation.v1.MaskedAreaInit + (WeightMethod)(0), // 3: stabilityai.platformapis.generation.v1.WeightMethod + (DiffusionSampler)(0), // 4: stabilityai.platformapis.generation.v1.DiffusionSampler + (Upscaler)(0), // 5: stabilityai.platformapis.generation.v1.Upscaler + (GuidancePreset)(0), // 6: stabilityai.platformapis.generation.v1.GuidancePreset + (ModelArchitecture)(0), // 7: stabilityai.platformapis.generation.v1.ModelArchitecture + (T2IAdapter)(0), // 8: stabilityai.platformapis.generation.v1.T2IAdapter + (T2IAdapterInit)(0), // 9: stabilityai.platformapis.generation.v1.T2IAdapterInit + (Action)(0), // 10: stabilityai.platformapis.generation.v1.Action + (ClassifierMode)(0), // 11: stabilityai.platformapis.generation.v1.ClassifierMode + (InterpolateMode)(0), // 12: stabilityai.platformapis.generation.v1.InterpolateMode + (BorderMode)(0), // 13: stabilityai.platformapis.generation.v1.BorderMode + (ColorMatchMode)(0), // 14: stabilityai.platformapis.generation.v1.ColorMatchMode + (CameraType)(0), // 15: stabilityai.platformapis.generation.v1.CameraType + (RenderMode)(0), // 16: stabilityai.platformapis.generation.v1.RenderMode + (AssetAction)(0), // 17: stabilityai.platformapis.generation.v1.AssetAction + (AssetUse)(0), // 18: stabilityai.platformapis.generation.v1.AssetUse + (StageAction)(0), // 19: stabilityai.platformapis.generation.v1.StageAction + (ContentCredentialsParameters_ModelMetadata)(0), // 20: stabilityai.platformapis.generation.v1.ContentCredentialsParameters.ModelMetadata + (*Token)(nil), // 21: stabilityai.platformapis.generation.v1.Token + (*Tokens)(nil), // 22: stabilityai.platformapis.generation.v1.Tokens + (*Artifact)(nil), // 23: stabilityai.platformapis.generation.v1.Artifact + (*PromptParameters)(nil), // 24: stabilityai.platformapis.generation.v1.PromptParameters + (*Prompt)(nil), // 25: stabilityai.platformapis.generation.v1.Prompt + (*SamplerParameters)(nil), // 26: stabilityai.platformapis.generation.v1.SamplerParameters + (*ConditionerParameters)(nil), // 27: stabilityai.platformapis.generation.v1.ConditionerParameters + (*ScheduleParameters)(nil), // 28: stabilityai.platformapis.generation.v1.ScheduleParameters + (*StepParameter)(nil), // 29: stabilityai.platformapis.generation.v1.StepParameter + (*Model)(nil), // 30: stabilityai.platformapis.generation.v1.Model + (*CutoutParameters)(nil), // 31: stabilityai.platformapis.generation.v1.CutoutParameters + (*GuidanceScheduleParameters)(nil), // 32: stabilityai.platformapis.generation.v1.GuidanceScheduleParameters + (*GuidanceInstanceParameters)(nil), // 33: stabilityai.platformapis.generation.v1.GuidanceInstanceParameters + (*GuidanceParameters)(nil), // 34: stabilityai.platformapis.generation.v1.GuidanceParameters + (*TransformType)(nil), // 35: stabilityai.platformapis.generation.v1.TransformType + (*T2IAdapterParameter)(nil), // 36: stabilityai.platformapis.generation.v1.T2IAdapterParameter + (*ContentCredentialsParameters)(nil), // 37: stabilityai.platformapis.generation.v1.ContentCredentialsParameters + (*FineTuningParameters)(nil), // 38: stabilityai.platformapis.generation.v1.FineTuningParameters + (*ImageParameters)(nil), // 39: stabilityai.platformapis.generation.v1.ImageParameters + (*ClassifierConcept)(nil), // 40: stabilityai.platformapis.generation.v1.ClassifierConcept + (*ClassifierCategory)(nil), // 41: stabilityai.platformapis.generation.v1.ClassifierCategory + (*ClassifierParameters)(nil), // 42: stabilityai.platformapis.generation.v1.ClassifierParameters + (*InterpolateParameters)(nil), // 43: stabilityai.platformapis.generation.v1.InterpolateParameters + (*TransformColorAdjust)(nil), // 44: stabilityai.platformapis.generation.v1.TransformColorAdjust + (*TransformDepthCalc)(nil), // 45: stabilityai.platformapis.generation.v1.TransformDepthCalc + (*TransformMatrix)(nil), // 46: stabilityai.platformapis.generation.v1.TransformMatrix + (*TransformResample)(nil), // 47: stabilityai.platformapis.generation.v1.TransformResample + (*CameraParameters)(nil), // 48: stabilityai.platformapis.generation.v1.CameraParameters + (*TransformCameraPose)(nil), // 49: stabilityai.platformapis.generation.v1.TransformCameraPose + (*TransformParameters)(nil), // 50: stabilityai.platformapis.generation.v1.TransformParameters + (*AssetParameters)(nil), // 51: stabilityai.platformapis.generation.v1.AssetParameters + (*AnswerMeta)(nil), // 52: stabilityai.platformapis.generation.v1.AnswerMeta + (*Answer)(nil), // 53: stabilityai.platformapis.generation.v1.Answer + (*AnswerBatch)(nil), // 54: stabilityai.platformapis.generation.v1.AnswerBatch + (*Request)(nil), // 55: stabilityai.platformapis.generation.v1.Request + (*OnStatus)(nil), // 56: stabilityai.platformapis.generation.v1.OnStatus + (*Stage)(nil), // 57: stabilityai.platformapis.generation.v1.Stage + (*ChainRequest)(nil), // 58: stabilityai.platformapis.generation.v1.ChainRequest + (*tensors.Tensor)(nil), // 59: tensors.Tensor + (*structpb.Struct)(nil), // 60: google.protobuf.Struct } var file_stability_api_platform_generation_v1_generation_proto_depIdxs = []int32{ 21, // 0: stabilityai.platformapis.generation.v1.Tokens.tokens:type_name -> stabilityai.platformapis.generation.v1.Token @@ -5107,14 +5113,14 @@ var file_stability_api_platform_generation_v1_generation_proto_depIdxs = []int32 5, // 22: stabilityai.platformapis.generation.v1.TransformType.upscaler:type_name -> stabilityai.platformapis.generation.v1.Upscaler 8, // 23: stabilityai.platformapis.generation.v1.T2IAdapterParameter.adapter_type:type_name -> stabilityai.platformapis.generation.v1.T2IAdapter 9, // 24: stabilityai.platformapis.generation.v1.T2IAdapterParameter.adapter_init_type:type_name -> stabilityai.platformapis.generation.v1.T2IAdapterInit - 20, // 25: stabilityai.platformapis.generation.v1.CAIParameters.model_metadata:type_name -> stabilityai.platformapis.generation.v1.CAIParameters.ModelMetadata + 20, // 25: stabilityai.platformapis.generation.v1.ContentCredentialsParameters.model_metadata:type_name -> stabilityai.platformapis.generation.v1.ContentCredentialsParameters.ModelMetadata 35, // 26: stabilityai.platformapis.generation.v1.ImageParameters.transform:type_name -> stabilityai.platformapis.generation.v1.TransformType 29, // 27: stabilityai.platformapis.generation.v1.ImageParameters.parameters:type_name -> stabilityai.platformapis.generation.v1.StepParameter 2, // 28: stabilityai.platformapis.generation.v1.ImageParameters.masked_area_init:type_name -> stabilityai.platformapis.generation.v1.MaskedAreaInit 3, // 29: stabilityai.platformapis.generation.v1.ImageParameters.weight_method:type_name -> stabilityai.platformapis.generation.v1.WeightMethod - 37, // 30: stabilityai.platformapis.generation.v1.ImageParameters.cai_parameters:type_name -> stabilityai.platformapis.generation.v1.CAIParameters - 36, // 31: stabilityai.platformapis.generation.v1.ImageParameters.adapter:type_name -> stabilityai.platformapis.generation.v1.T2IAdapterParameter - 38, // 32: stabilityai.platformapis.generation.v1.ImageParameters.fine_tuning_parameters:type_name -> stabilityai.platformapis.generation.v1.FineTuningParameters + 36, // 30: stabilityai.platformapis.generation.v1.ImageParameters.adapter:type_name -> stabilityai.platformapis.generation.v1.T2IAdapterParameter + 38, // 31: stabilityai.platformapis.generation.v1.ImageParameters.fine_tuning_parameters:type_name -> stabilityai.platformapis.generation.v1.FineTuningParameters + 37, // 32: stabilityai.platformapis.generation.v1.ImageParameters.content_credentials_parameters:type_name -> stabilityai.platformapis.generation.v1.ContentCredentialsParameters 40, // 33: stabilityai.platformapis.generation.v1.ClassifierCategory.concepts:type_name -> stabilityai.platformapis.generation.v1.ClassifierConcept 10, // 34: stabilityai.platformapis.generation.v1.ClassifierCategory.action:type_name -> stabilityai.platformapis.generation.v1.Action 11, // 35: stabilityai.platformapis.generation.v1.ClassifierCategory.classifier_mode:type_name -> stabilityai.platformapis.generation.v1.ClassifierMode @@ -5364,7 +5370,7 @@ func file_stability_api_platform_generation_v1_generation_proto_init() { } } file_stability_api_platform_generation_v1_generation_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CAIParameters); i { + switch v := v.(*ContentCredentialsParameters); i { case 0: return &v.state case 1: @@ -5654,7 +5660,7 @@ func file_stability_api_platform_generation_v1_generation_proto_init() { (*TransformType_Upscaler)(nil), } file_stability_api_platform_generation_v1_generation_proto_msgTypes[16].OneofWrappers = []interface{}{ - (*CAIParameters_ModelMetadata_)(nil), + (*ContentCredentialsParameters_ModelMetadata_)(nil), } file_stability_api_platform_generation_v1_generation_proto_msgTypes[17].OneofWrappers = []interface{}{} file_stability_api_platform_generation_v1_generation_proto_msgTypes[18].OneofWrappers = []interface{}{} diff --git a/src/stability_api/platform/generation/v1/generation_pb.d.ts b/src/stability_api/platform/generation/v1/generation_pb.d.ts index 03bf121..04fbe49 100644 --- a/src/stability_api/platform/generation/v1/generation_pb.d.ts +++ b/src/stability_api/platform/generation/v1/generation_pb.d.ts @@ -1350,39 +1350,39 @@ export declare class T2IAdapterParameter extends Message { } /** - * @generated from message stabilityai.platformapis.generation.v1.CAIParameters + * @generated from message stabilityai.platformapis.generation.v1.ContentCredentialsParameters */ -export declare class CAIParameters extends Message { +export declare class ContentCredentialsParameters extends Message { /** - * @generated from oneof stabilityai.platformapis.generation.v1.CAIParameters.parameters + * @generated from oneof stabilityai.platformapis.generation.v1.ContentCredentialsParameters.parameters */ parameters: { /** - * @generated from field: stabilityai.platformapis.generation.v1.CAIParameters.ModelMetadata model_metadata = 1; + * @generated from field: stabilityai.platformapis.generation.v1.ContentCredentialsParameters.ModelMetadata model_metadata = 1; */ - value: CAIParameters_ModelMetadata; + value: ContentCredentialsParameters_ModelMetadata; case: "modelMetadata"; } | { case: undefined; value?: undefined }; - constructor(data?: PartialMessage); + constructor(data?: PartialMessage); static readonly runtime: typeof proto3; - static readonly typeName = "stabilityai.platformapis.generation.v1.CAIParameters"; + static readonly typeName = "stabilityai.platformapis.generation.v1.ContentCredentialsParameters"; static readonly fields: FieldList; - static fromBinary(bytes: Uint8Array, options?: Partial): CAIParameters; + static fromBinary(bytes: Uint8Array, options?: Partial): ContentCredentialsParameters; - static fromJson(jsonValue: JsonValue, options?: Partial): CAIParameters; + static fromJson(jsonValue: JsonValue, options?: Partial): ContentCredentialsParameters; - static fromJsonString(jsonString: string, options?: Partial): CAIParameters; + static fromJsonString(jsonString: string, options?: Partial): ContentCredentialsParameters; - static equals(a: CAIParameters | PlainMessage | undefined, b: CAIParameters | PlainMessage | undefined): boolean; + static equals(a: ContentCredentialsParameters | PlainMessage | undefined, b: ContentCredentialsParameters | PlainMessage | undefined): boolean; } /** - * @generated from enum stabilityai.platformapis.generation.v1.CAIParameters.ModelMetadata + * @generated from enum stabilityai.platformapis.generation.v1.ContentCredentialsParameters.ModelMetadata */ -export declare enum CAIParameters_ModelMetadata { +export declare enum ContentCredentialsParameters_ModelMetadata { /** * @generated from enum value: MODEL_METADATA_UNSPECIFIED = 0; */ @@ -1494,25 +1494,23 @@ export declare class ImageParameters extends Message { */ quantize?: boolean; - /** - * Set field to have image signed by C2PA - * - * @generated from field: optional stabilityai.platformapis.generation.v1.CAIParameters cai_parameters = 11; - */ - caiParameters?: CAIParameters; - /** * @generated from field: optional stabilityai.platformapis.generation.v1.T2IAdapterParameter adapter = 12; */ adapter?: T2IAdapterParameter; /** - * next available tag: 14 - * * @generated from field: repeated stabilityai.platformapis.generation.v1.FineTuningParameters fine_tuning_parameters = 13; */ fineTuningParameters: FineTuningParameters[]; + /** + * Set field to have image signed by C2PA + * + * @generated from field: optional stabilityai.platformapis.generation.v1.ContentCredentialsParameters content_credentials_parameters = 14; + */ + contentCredentialsParameters?: ContentCredentialsParameters; + constructor(data?: PartialMessage); static readonly runtime: typeof proto3; diff --git a/src/stability_api/platform/generation/v1/generation_pb.js b/src/stability_api/platform/generation/v1/generation_pb.js index 8a946ed..81532b1 100644 --- a/src/stability_api/platform/generation/v1/generation_pb.js +++ b/src/stability_api/platform/generation/v1/generation_pb.js @@ -538,20 +538,20 @@ export const T2IAdapterParameter = proto3.makeMessageType( ); /** - * @generated from message stabilityai.platformapis.generation.v1.CAIParameters + * @generated from message stabilityai.platformapis.generation.v1.ContentCredentialsParameters */ -export const CAIParameters = proto3.makeMessageType( - "stabilityai.platformapis.generation.v1.CAIParameters", +export const ContentCredentialsParameters = proto3.makeMessageType( + "stabilityai.platformapis.generation.v1.ContentCredentialsParameters", () => [ - { no: 1, name: "model_metadata", kind: "enum", T: proto3.getEnumType(CAIParameters_ModelMetadata), oneof: "parameters" }, + { no: 1, name: "model_metadata", kind: "enum", T: proto3.getEnumType(ContentCredentialsParameters_ModelMetadata), oneof: "parameters" }, ], ); /** - * @generated from enum stabilityai.platformapis.generation.v1.CAIParameters.ModelMetadata + * @generated from enum stabilityai.platformapis.generation.v1.ContentCredentialsParameters.ModelMetadata */ -export const CAIParameters_ModelMetadata = proto3.makeEnum( - "stabilityai.platformapis.generation.v1.CAIParameters.ModelMetadata", +export const ContentCredentialsParameters_ModelMetadata = proto3.makeEnum( + "stabilityai.platformapis.generation.v1.ContentCredentialsParameters.ModelMetadata", [ {no: 0, name: "MODEL_METADATA_UNSPECIFIED", localName: "UNSPECIFIED"}, {no: 1, name: "MODEL_METADATA_SIGN_WITH_ENGINE_ID", localName: "SIGN_WITH_ENGINE_ID"}, @@ -587,9 +587,9 @@ export const ImageParameters = proto3.makeMessageType( { no: 8, name: "masked_area_init", kind: "enum", T: proto3.getEnumType(MaskedAreaInit), opt: true }, { no: 9, name: "weight_method", kind: "enum", T: proto3.getEnumType(WeightMethod), opt: true }, { no: 10, name: "quantize", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - { no: 11, name: "cai_parameters", kind: "message", T: CAIParameters, opt: true }, { no: 12, name: "adapter", kind: "message", T: T2IAdapterParameter, opt: true }, { no: 13, name: "fine_tuning_parameters", kind: "message", T: FineTuningParameters, repeated: true }, + { no: 14, name: "content_credentials_parameters", kind: "message", T: ContentCredentialsParameters, opt: true }, ], ); diff --git a/src/stability_api/platform/generation/v1/generation_pb2.py b/src/stability_api/platform/generation/v1/generation_pb2.py index ca6ed90..a9aaf23 100644 --- a/src/stability_api/platform/generation/v1/generation_pb2.py +++ b/src/stability_api/platform/generation/v1/generation_pb2.py @@ -15,7 +15,7 @@ from stability_api.tensors import tensors_pb2 as stability__api_dot_tensors_dot_tensors__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n5stability_api/platform/generation/v1/generation.proto\x12&stabilityai.platformapis.generation.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a#stability_api/tensors/tensors.proto\"9\n\x05Token\x12\x17\n\x04text\x18\x01 \x01(\tH\x00R\x04text\x88\x01\x01\x12\x0e\n\x02id\x18\x02 \x01(\rR\x02idB\x07\n\x05_text\"\x88\x01\n\x06Tokens\x12\x45\n\x06tokens\x18\x01 \x03(\x0b\x32-.stabilityai.platformapis.generation.v1.TokenR\x06tokens\x12&\n\x0ctokenizer_id\x18\x02 \x01(\tH\x00R\x0btokenizerId\x88\x01\x01\x42\x0f\n\r_tokenizer_id\"\xd7\x04\n\x08\x41rtifact\x12\x0e\n\x02id\x18\x01 \x01(\x04R\x02id\x12H\n\x04type\x18\x02 \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.ArtifactTypeR\x04type\x12\x12\n\x04mime\x18\x03 \x01(\tR\x04mime\x12\x19\n\x05magic\x18\x04 \x01(\tH\x01R\x05magic\x88\x01\x01\x12\x18\n\x06\x62inary\x18\x05 \x01(\x0cH\x00R\x06\x62inary\x12\x14\n\x04text\x18\x06 \x01(\tH\x00R\x04text\x12H\n\x06tokens\x18\x07 \x01(\x0b\x32..stabilityai.platformapis.generation.v1.TokensH\x00R\x06tokens\x12^\n\nclassifier\x18\x0b \x01(\x0b\x32<.stabilityai.platformapis.generation.v1.ClassifierParametersH\x00R\nclassifier\x12)\n\x06tensor\x18\x0e \x01(\x0b\x32\x0f.tensors.TensorH\x00R\x06tensor\x12\x14\n\x05index\x18\x08 \x01(\rR\x05index\x12Y\n\rfinish_reason\x18\t \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.FinishReasonR\x0c\x66inishReason\x12\x12\n\x04seed\x18\n \x01(\rR\x04seed\x12\x12\n\x04uuid\x18\x0c \x01(\tR\x04uuid\x12\x12\n\x04size\x18\r \x01(\x04R\x04sizeB\x06\n\x04\x64\x61taB\x08\n\x06_magic\"\\\n\x10PromptParameters\x12\x17\n\x04init\x18\x01 \x01(\x08H\x00R\x04init\x88\x01\x01\x12\x1b\n\x06weight\x18\x02 \x01(\x02H\x01R\x06weight\x88\x01\x01\x42\x07\n\x05_initB\t\n\x07_weight\"\xb0\x02\n\x06Prompt\x12]\n\nparameters\x18\x01 \x01(\x0b\x32\x38.stabilityai.platformapis.generation.v1.PromptParametersH\x01R\nparameters\x88\x01\x01\x12\x14\n\x04text\x18\x02 \x01(\tH\x00R\x04text\x12H\n\x06tokens\x18\x03 \x01(\x0b\x32..stabilityai.platformapis.generation.v1.TokensH\x00R\x06tokens\x12N\n\x08\x61rtifact\x18\x04 \x01(\x0b\x32\x30.stabilityai.platformapis.generation.v1.ArtifactH\x00R\x08\x61rtifactB\x08\n\x06promptB\r\n\x0b_parameters\"\xb9\x03\n\x11SamplerParameters\x12\x15\n\x03\x65ta\x18\x01 \x01(\x02H\x00R\x03\x65ta\x88\x01\x01\x12*\n\x0esampling_steps\x18\x02 \x01(\x04H\x01R\rsamplingSteps\x88\x01\x01\x12,\n\x0flatent_channels\x18\x03 \x01(\x04H\x02R\x0elatentChannels\x88\x01\x01\x12\x34\n\x13\x64ownsampling_factor\x18\x04 \x01(\x04H\x03R\x12\x64ownsamplingFactor\x88\x01\x01\x12 \n\tcfg_scale\x18\x05 \x01(\x02H\x04R\x08\x63\x66gScale\x88\x01\x01\x12-\n\x10init_noise_scale\x18\x06 \x01(\x02H\x05R\x0einitNoiseScale\x88\x01\x01\x12-\n\x10step_noise_scale\x18\x07 \x01(\x02H\x06R\x0estepNoiseScale\x88\x01\x01\x42\x06\n\x04_etaB\x11\n\x0f_sampling_stepsB\x12\n\x10_latent_channelsB\x16\n\x14_downsampling_factorB\x0c\n\n_cfg_scaleB\x13\n\x11_init_noise_scaleB\x13\n\x11_step_noise_scale\"\xca\x01\n\x15\x43onditionerParameters\x12\x33\n\x13vector_adjust_prior\x18\x01 \x01(\tH\x00R\x11vectorAdjustPrior\x88\x01\x01\x12T\n\x0b\x63onditioner\x18\x02 \x01(\x0b\x32-.stabilityai.platformapis.generation.v1.ModelH\x01R\x0b\x63onditioner\x88\x01\x01\x42\x16\n\x14_vector_adjust_priorB\x0e\n\x0c_conditioner\"}\n\x12ScheduleParameters\x12\x19\n\x05start\x18\x01 \x01(\x02H\x00R\x05start\x88\x01\x01\x12\x15\n\x03\x65nd\x18\x02 \x01(\x02H\x01R\x03\x65nd\x88\x01\x01\x12\x19\n\x05value\x18\x03 \x01(\x02H\x02R\x05value\x88\x01\x01\x42\x08\n\x06_startB\x06\n\x04_endB\x08\n\x06_value\"\xea\x02\n\rStepParameter\x12\x1f\n\x0bscaled_step\x18\x01 \x01(\x02R\nscaledStep\x12X\n\x07sampler\x18\x02 \x01(\x0b\x32\x39.stabilityai.platformapis.generation.v1.SamplerParametersH\x00R\x07sampler\x88\x01\x01\x12[\n\x08schedule\x18\x03 \x01(\x0b\x32:.stabilityai.platformapis.generation.v1.ScheduleParametersH\x01R\x08schedule\x88\x01\x01\x12[\n\x08guidance\x18\x04 \x01(\x0b\x32:.stabilityai.platformapis.generation.v1.GuidanceParametersH\x02R\x08guidance\x88\x01\x01\x42\n\n\x08_samplerB\x0b\n\t_scheduleB\x0b\n\t_guidance\"\xf9\x01\n\x05Model\x12]\n\x0c\x61rchitecture\x18\x01 \x01(\x0e\x32\x39.stabilityai.platformapis.generation.v1.ModelArchitectureR\x0c\x61rchitecture\x12\x1c\n\tpublisher\x18\x02 \x01(\tR\tpublisher\x12\x18\n\x07\x64\x61taset\x18\x03 \x01(\tR\x07\x64\x61taset\x12\x18\n\x07version\x18\x04 \x01(\x02R\x07version\x12)\n\x10semantic_version\x18\x05 \x01(\tR\x0fsemanticVersion\x12\x14\n\x05\x61lias\x18\x06 \x01(\tR\x05\x61lias\"\x82\x02\n\x10\x43utoutParameters\x12R\n\x07\x63utouts\x18\x01 \x03(\x0b\x32\x38.stabilityai.platformapis.generation.v1.CutoutParametersR\x07\x63utouts\x12\x19\n\x05\x63ount\x18\x02 \x01(\rH\x00R\x05\x63ount\x88\x01\x01\x12\x17\n\x04gray\x18\x03 \x01(\x02H\x01R\x04gray\x88\x01\x01\x12\x17\n\x04\x62lur\x18\x04 \x01(\x02H\x02R\x04\x62lur\x88\x01\x01\x12\"\n\nsize_power\x18\x05 \x01(\x02H\x03R\tsizePower\x88\x01\x01\x42\x08\n\x06_countB\x07\n\x05_grayB\x07\n\x05_blurB\r\n\x0b_size_power\"N\n\x1aGuidanceScheduleParameters\x12\x1a\n\x08\x64uration\x18\x01 \x01(\x02R\x08\x64uration\x12\x14\n\x05value\x18\x02 \x01(\x02R\x05value\"\xc8\x03\n\x1aGuidanceInstanceParameters\x12\x45\n\x06models\x18\x02 \x03(\x0b\x32-.stabilityai.platformapis.generation.v1.ModelR\x06models\x12\x30\n\x11guidance_strength\x18\x03 \x01(\x02H\x00R\x10guidanceStrength\x88\x01\x01\x12^\n\x08schedule\x18\x04 \x03(\x0b\x32\x42.stabilityai.platformapis.generation.v1.GuidanceScheduleParametersR\x08schedule\x12W\n\x07\x63utouts\x18\x05 \x01(\x0b\x32\x38.stabilityai.platformapis.generation.v1.CutoutParametersH\x01R\x07\x63utouts\x88\x01\x01\x12K\n\x06prompt\x18\x06 \x01(\x0b\x32..stabilityai.platformapis.generation.v1.PromptH\x02R\x06prompt\x88\x01\x01\x42\x14\n\x12_guidance_strengthB\n\n\x08_cutoutsB\t\n\x07_prompt\"\xd7\x01\n\x12GuidanceParameters\x12_\n\x0fguidance_preset\x18\x01 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.GuidancePresetR\x0eguidancePreset\x12`\n\tinstances\x18\x02 \x03(\x0b\x32\x42.stabilityai.platformapis.generation.v1.GuidanceInstanceParametersR\tinstances\"\xc1\x01\n\rTransformType\x12X\n\tdiffusion\x18\x01 \x01(\x0e\x32\x38.stabilityai.platformapis.generation.v1.DiffusionSamplerH\x00R\tdiffusion\x12N\n\x08upscaler\x18\x02 \x01(\x0e\x32\x30.stabilityai.platformapis.generation.v1.UpscalerH\x00R\x08upscalerB\x06\n\x04type\"\xfb\x01\n\x13T2IAdapterParameter\x12U\n\x0c\x61\x64\x61pter_type\x18\x01 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.T2IAdapterR\x0b\x61\x64\x61pterType\x12)\n\x10\x61\x64\x61pter_strength\x18\x02 \x01(\x02R\x0f\x61\x64\x61pterStrength\x12\x62\n\x11\x61\x64\x61pter_init_type\x18\x03 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.T2IAdapterInitR\x0f\x61\x64\x61pterInitType\"\xe4\x01\n\rCAIParameters\x12l\n\x0emodel_metadata\x18\x01 \x01(\x0e\x32\x43.stabilityai.platformapis.generation.v1.CAIParameters.ModelMetadataH\x00R\rmodelMetadata\"W\n\rModelMetadata\x12\x1e\n\x1aMODEL_METADATA_UNSPECIFIED\x10\x00\x12&\n\"MODEL_METADATA_SIGN_WITH_ENGINE_ID\x10\x01\x42\x0c\n\nparameters\"Y\n\x14\x46ineTuningParameters\x12\x19\n\x08model_id\x18\x01 \x01(\tR\x07modelId\x12\x1b\n\x06weight\x18\x02 \x01(\x02H\x00R\x06weight\x88\x01\x01\x42\t\n\x07_weight\"\xef\x07\n\x0fImageParameters\x12\x1b\n\x06height\x18\x01 \x01(\x04H\x00R\x06height\x88\x01\x01\x12\x19\n\x05width\x18\x02 \x01(\x04H\x01R\x05width\x88\x01\x01\x12\x12\n\x04seed\x18\x03 \x03(\rR\x04seed\x12\x1d\n\x07samples\x18\x04 \x01(\x04H\x02R\x07samples\x88\x01\x01\x12\x19\n\x05steps\x18\x05 \x01(\x04H\x03R\x05steps\x88\x01\x01\x12X\n\ttransform\x18\x06 \x01(\x0b\x32\x35.stabilityai.platformapis.generation.v1.TransformTypeH\x04R\ttransform\x88\x01\x01\x12U\n\nparameters\x18\x07 \x03(\x0b\x32\x35.stabilityai.platformapis.generation.v1.StepParameterR\nparameters\x12\x65\n\x10masked_area_init\x18\x08 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.MaskedAreaInitH\x05R\x0emaskedAreaInit\x88\x01\x01\x12^\n\rweight_method\x18\t \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.WeightMethodH\x06R\x0cweightMethod\x88\x01\x01\x12\x1f\n\x08quantize\x18\n \x01(\x08H\x07R\x08quantize\x88\x01\x01\x12\x61\n\x0e\x63\x61i_parameters\x18\x0b \x01(\x0b\x32\x35.stabilityai.platformapis.generation.v1.CAIParametersH\x08R\rcaiParameters\x88\x01\x01\x12Z\n\x07\x61\x64\x61pter\x18\x0c \x01(\x0b\x32;.stabilityai.platformapis.generation.v1.T2IAdapterParameterH\tR\x07\x61\x64\x61pter\x88\x01\x01\x12r\n\x16\x66ine_tuning_parameters\x18\r \x03(\x0b\x32<.stabilityai.platformapis.generation.v1.FineTuningParametersR\x14\x66ineTuningParametersB\t\n\x07_heightB\x08\n\x06_widthB\n\n\x08_samplesB\x08\n\x06_stepsB\x0c\n\n_transformB\x13\n\x11_masked_area_initB\x10\n\x0e_weight_methodB\x0b\n\t_quantizeB\x11\n\x0f_cai_parametersB\n\n\x08_adapter\"^\n\x11\x43lassifierConcept\x12\x18\n\x07\x63oncept\x18\x01 \x01(\tR\x07\x63oncept\x12!\n\tthreshold\x18\x02 \x01(\x02H\x00R\tthreshold\x88\x01\x01\x42\x0c\n\n_threshold\"\x85\x03\n\x12\x43lassifierCategory\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12U\n\x08\x63oncepts\x18\x02 \x03(\x0b\x32\x39.stabilityai.platformapis.generation.v1.ClassifierConceptR\x08\x63oncepts\x12#\n\nadjustment\x18\x03 \x01(\x02H\x00R\nadjustment\x88\x01\x01\x12K\n\x06\x61\x63tion\x18\x04 \x01(\x0e\x32..stabilityai.platformapis.generation.v1.ActionH\x01R\x06\x61\x63tion\x88\x01\x01\x12\x64\n\x0f\x63lassifier_mode\x18\x05 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.ClassifierModeH\x02R\x0e\x63lassifierMode\x88\x01\x01\x42\r\n\x0b_adjustmentB\t\n\x07_actionB\x12\n\x10_classifier_mode\"\xba\x02\n\x14\x43lassifierParameters\x12Z\n\ncategories\x18\x01 \x03(\x0b\x32:.stabilityai.platformapis.generation.v1.ClassifierCategoryR\ncategories\x12T\n\x07\x65xceeds\x18\x02 \x03(\x0b\x32:.stabilityai.platformapis.generation.v1.ClassifierCategoryR\x07\x65xceeds\x12\\\n\x0frealized_action\x18\x03 \x01(\x0e\x32..stabilityai.platformapis.generation.v1.ActionH\x00R\x0erealizedAction\x88\x01\x01\x42\x12\n\x10_realized_action\"\x8a\x01\n\x15InterpolateParameters\x12\x16\n\x06ratios\x18\x01 \x03(\x02R\x06ratios\x12P\n\x04mode\x18\x02 \x01(\x0e\x32\x37.stabilityai.platformapis.generation.v1.InterpolateModeH\x00R\x04mode\x88\x01\x01\x42\x07\n\x05_mode\"\xbb\x04\n\x14TransformColorAdjust\x12#\n\nbrightness\x18\x01 \x01(\x02H\x00R\nbrightness\x88\x01\x01\x12\x1f\n\x08\x63ontrast\x18\x02 \x01(\x02H\x01R\x08\x63ontrast\x88\x01\x01\x12\x15\n\x03hue\x18\x03 \x01(\x02H\x02R\x03hue\x88\x01\x01\x12#\n\nsaturation\x18\x04 \x01(\x02H\x03R\nsaturation\x88\x01\x01\x12!\n\tlightness\x18\x05 \x01(\x02H\x04R\tlightness\x88\x01\x01\x12V\n\x0bmatch_image\x18\x06 \x01(\x0b\x32\x30.stabilityai.platformapis.generation.v1.ArtifactH\x05R\nmatchImage\x88\x01\x01\x12Z\n\nmatch_mode\x18\x07 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.ColorMatchModeH\x06R\tmatchMode\x88\x01\x01\x12&\n\x0cnoise_amount\x18\x08 \x01(\x02H\x07R\x0bnoiseAmount\x88\x01\x01\x12\"\n\nnoise_seed\x18\t \x01(\rH\x08R\tnoiseSeed\x88\x01\x01\x42\r\n\x0b_brightnessB\x0b\n\t_contrastB\x06\n\x04_hueB\r\n\x0b_saturationB\x0c\n\n_lightnessB\x0e\n\x0c_match_imageB\r\n\x0b_match_modeB\x0f\n\r_noise_amountB\r\n\x0b_noise_seed\"\xae\x01\n\x12TransformDepthCalc\x12&\n\x0c\x62lend_weight\x18\x01 \x01(\x02H\x00R\x0b\x62lendWeight\x88\x01\x01\x12$\n\x0b\x62lur_radius\x18\x02 \x01(\rH\x01R\nblurRadius\x88\x01\x01\x12\x1d\n\x07reverse\x18\x03 \x01(\x08H\x02R\x07reverse\x88\x01\x01\x42\x0f\n\r_blend_weightB\x0e\n\x0c_blur_radiusB\n\n\x08_reverse\")\n\x0fTransformMatrix\x12\x16\n\x04\x64\x61ta\x18\x01 \x03(\x02\x42\x02\x10\x01R\x04\x64\x61ta\"\xa0\x03\n\x11TransformResample\x12S\n\x0b\x62order_mode\x18\x01 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.BorderModeR\nborderMode\x12U\n\ttransform\x18\x02 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.TransformMatrixR\ttransform\x12\x63\n\x0eprev_transform\x18\x03 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.TransformMatrixH\x00R\rprevTransform\x88\x01\x01\x12\"\n\ndepth_warp\x18\x04 \x01(\x02H\x01R\tdepthWarp\x88\x01\x01\x12$\n\x0b\x65xport_mask\x18\x05 \x01(\x08H\x02R\nexportMask\x88\x01\x01\x42\x11\n\x0f_prev_transformB\r\n\x0b_depth_warpB\x0e\n\x0c_export_mask\"\xc2\x01\n\x10\x43\x61meraParameters\x12S\n\x0b\x63\x61mera_type\x18\x01 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.CameraTypeR\ncameraType\x12\x1d\n\nnear_plane\x18\x02 \x01(\x02R\tnearPlane\x12\x1b\n\tfar_plane\x18\x03 \x01(\x02R\x08\x66\x61rPlane\x12\x15\n\x03\x66ov\x18\x04 \x01(\x02H\x00R\x03\x66ov\x88\x01\x01\x42\x06\n\x04_fov\"\xf2\x02\n\x13TransformCameraPose\x12h\n\x14world_to_view_matrix\x18\x01 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.TransformMatrixR\x11worldToViewMatrix\x12\x65\n\x11\x63\x61mera_parameters\x18\x02 \x01(\x0b\x32\x38.stabilityai.platformapis.generation.v1.CameraParametersR\x10\x63\x61meraParameters\x12\x1d\n\ndo_prefill\x18\x05 \x01(\x08R\tdoPrefill\x12S\n\x0brender_mode\x18\x08 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.RenderModeR\nrenderModeJ\x04\x08\x03\x10\x04J\x04\x08\x04\x10\x05J\x04\x08\x06\x10\x07J\x04\x08\x07\x10\x08\"\x9b\x03\n\x13TransformParameters\x12\x61\n\x0c\x63olor_adjust\x18\x02 \x01(\x0b\x32<.stabilityai.platformapis.generation.v1.TransformColorAdjustH\x00R\x0b\x63olorAdjust\x12[\n\ndepth_calc\x18\x04 \x01(\x0b\x32:.stabilityai.platformapis.generation.v1.TransformDepthCalcH\x00R\tdepthCalc\x12W\n\x08resample\x18\x05 \x01(\x0b\x32\x39.stabilityai.platformapis.generation.v1.TransformResampleH\x00R\x08resample\x12^\n\x0b\x63\x61mera_pose\x18\x06 \x01(\x0b\x32;.stabilityai.platformapis.generation.v1.TransformCameraPoseH\x00R\ncameraPoseB\x0b\n\ttransform\"\xc1\x01\n\x0f\x41ssetParameters\x12K\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32\x33.stabilityai.platformapis.generation.v1.AssetActionR\x06\x61\x63tion\x12\x1d\n\nproject_id\x18\x02 \x01(\tR\tprojectId\x12\x42\n\x03use\x18\x03 \x01(\x0e\x32\x30.stabilityai.platformapis.generation.v1.AssetUseR\x03use\"\xb4\x01\n\nAnswerMeta\x12\x1a\n\x06gpu_id\x18\x01 \x01(\tH\x00R\x05gpuId\x88\x01\x01\x12\x1a\n\x06\x63pu_id\x18\x02 \x01(\tH\x01R\x05\x63puId\x88\x01\x01\x12\x1c\n\x07node_id\x18\x03 \x01(\tH\x02R\x06nodeId\x88\x01\x01\x12 \n\tengine_id\x18\x04 \x01(\tH\x03R\x08\x65ngineId\x88\x01\x01\x42\t\n\x07_gpu_idB\t\n\x07_cpu_idB\n\n\x08_node_idB\x0c\n\n_engine_id\"\xa0\x02\n\x06\x41nswer\x12\x1b\n\tanswer_id\x18\x01 \x01(\tR\x08\x61nswerId\x12\x1d\n\nrequest_id\x18\x02 \x01(\tR\trequestId\x12\x1a\n\x08received\x18\x03 \x01(\x04R\x08received\x12\x18\n\x07\x63reated\x18\x04 \x01(\x04R\x07\x63reated\x12K\n\x04meta\x18\x06 \x01(\x0b\x32\x32.stabilityai.platformapis.generation.v1.AnswerMetaH\x00R\x04meta\x88\x01\x01\x12N\n\tartifacts\x18\x07 \x03(\x0b\x32\x30.stabilityai.platformapis.generation.v1.ArtifactR\tartifactsB\x07\n\x05_meta\"r\n\x0b\x41nswerBatch\x12\x19\n\x08\x62\x61tch_id\x18\x01 \x01(\tR\x07\x62\x61tchId\x12H\n\x07\x61nswers\x18\x02 \x03(\x0b\x32..stabilityai.platformapis.generation.v1.AnswerR\x07\x61nswers\"\xfa\x06\n\x07Request\x12\x1b\n\tengine_id\x18\x01 \x01(\tR\x08\x65ngineId\x12\x1d\n\nrequest_id\x18\x02 \x01(\tR\trequestId\x12[\n\x0erequested_type\x18\x03 \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.ArtifactTypeR\rrequestedType\x12\x46\n\x06prompt\x18\x04 \x03(\x0b\x32..stabilityai.platformapis.generation.v1.PromptR\x06prompt\x12O\n\x05image\x18\x05 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.ImageParametersH\x00R\x05image\x12^\n\nclassifier\x18\x07 \x01(\x0b\x32<.stabilityai.platformapis.generation.v1.ClassifierParametersH\x00R\nclassifier\x12O\n\x05\x61sset\x18\x08 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.AssetParametersH\x00R\x05\x61sset\x12\x61\n\x0binterpolate\x18\x0b \x01(\x0b\x32=.stabilityai.platformapis.generation.v1.InterpolateParametersH\x00R\x0binterpolate\x12[\n\ttransform\x18\x0c \x01(\x0b\x32;.stabilityai.platformapis.generation.v1.TransformParametersH\x00R\ttransform\x12\x64\n\x0b\x63onditioner\x18\x06 \x01(\x0b\x32=.stabilityai.platformapis.generation.v1.ConditionerParametersH\x01R\x0b\x63onditioner\x88\x01\x01\x12\x35\n\x06\x65xtras\x18\xff\x0f \x01(\x0b\x32\x17.google.protobuf.StructH\x02R\x06\x65xtras\x88\x01\x01\x42\x08\n\x06paramsB\x0e\n\x0c_conditionerB\t\n\x07_extrasJ\x04\x08\t\x10\nJ\x04\x08\n\x10\x0b\"\xcd\x01\n\x08OnStatus\x12L\n\x06reason\x18\x01 \x03(\x0e\x32\x34.stabilityai.platformapis.generation.v1.FinishReasonR\x06reason\x12\x1b\n\x06target\x18\x02 \x01(\tH\x00R\x06target\x88\x01\x01\x12K\n\x06\x61\x63tion\x18\x03 \x03(\x0e\x32\x33.stabilityai.platformapis.generation.v1.StageActionR\x06\x61\x63tionB\t\n\x07_target\"\xb1\x01\n\x05Stage\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12I\n\x07request\x18\x02 \x01(\x0b\x32/.stabilityai.platformapis.generation.v1.RequestR\x07request\x12M\n\ton_status\x18\x03 \x03(\x0b\x32\x30.stabilityai.platformapis.generation.v1.OnStatusR\x08onStatus\"r\n\x0c\x43hainRequest\x12\x1d\n\nrequest_id\x18\x01 \x01(\tR\trequestId\x12\x43\n\x05stage\x18\x02 \x03(\x0b\x32-.stabilityai.platformapis.generation.v1.StageR\x05stage*E\n\x0c\x46inishReason\x12\x08\n\x04NULL\x10\x00\x12\n\n\x06LENGTH\x10\x01\x12\x08\n\x04STOP\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\n\n\x06\x46ILTER\x10\x04*\xf8\x01\n\x0c\x41rtifactType\x12\x11\n\rARTIFACT_NONE\x10\x00\x12\x12\n\x0e\x41RTIFACT_IMAGE\x10\x01\x12\x12\n\x0e\x41RTIFACT_VIDEO\x10\x02\x12\x11\n\rARTIFACT_TEXT\x10\x03\x12\x13\n\x0f\x41RTIFACT_TOKENS\x10\x04\x12\x16\n\x12\x41RTIFACT_EMBEDDING\x10\x05\x12\x1c\n\x18\x41RTIFACT_CLASSIFICATIONS\x10\x06\x12\x11\n\rARTIFACT_MASK\x10\x07\x12\x13\n\x0f\x41RTIFACT_LATENT\x10\x08\x12\x13\n\x0f\x41RTIFACT_TENSOR\x10\t\x12\x12\n\x0e\x41RTIFACT_DEPTH\x10\n*g\n\x0eMaskedAreaInit\x12\x19\n\x15MASKED_AREA_INIT_ZERO\x10\x00\x12\x1b\n\x17MASKED_AREA_INIT_RANDOM\x10\x01\x12\x1d\n\x19MASKED_AREA_INIT_ORIGINAL\x10\x02*5\n\x0cWeightMethod\x12\x10\n\x0cTEXT_ENCODER\x10\x00\x12\x13\n\x0f\x43ROSS_ATTENTION\x10\x01*\x98\x02\n\x10\x44iffusionSampler\x12\x10\n\x0cSAMPLER_DDIM\x10\x00\x12\x10\n\x0cSAMPLER_DDPM\x10\x01\x12\x13\n\x0fSAMPLER_K_EULER\x10\x02\x12\x1d\n\x19SAMPLER_K_EULER_ANCESTRAL\x10\x03\x12\x12\n\x0eSAMPLER_K_HEUN\x10\x04\x12\x13\n\x0fSAMPLER_K_DPM_2\x10\x05\x12\x1d\n\x19SAMPLER_K_DPM_2_ANCESTRAL\x10\x06\x12\x11\n\rSAMPLER_K_LMS\x10\x07\x12 \n\x1cSAMPLER_K_DPMPP_2S_ANCESTRAL\x10\x08\x12\x16\n\x12SAMPLER_K_DPMPP_2M\x10\t\x12\x17\n\x13SAMPLER_K_DPMPP_SDE\x10\n*F\n\x08Upscaler\x12\x10\n\x0cUPSCALER_RGB\x10\x00\x12\x13\n\x0fUPSCALER_GFPGAN\x10\x01\x12\x13\n\x0fUPSCALER_ESRGAN\x10\x02*\xd8\x01\n\x0eGuidancePreset\x12\x18\n\x14GUIDANCE_PRESET_NONE\x10\x00\x12\x1a\n\x16GUIDANCE_PRESET_SIMPLE\x10\x01\x12\x1d\n\x19GUIDANCE_PRESET_FAST_BLUE\x10\x02\x12\x1e\n\x1aGUIDANCE_PRESET_FAST_GREEN\x10\x03\x12\x18\n\x14GUIDANCE_PRESET_SLOW\x10\x04\x12\x1a\n\x16GUIDANCE_PRESET_SLOWER\x10\x05\x12\x1b\n\x17GUIDANCE_PRESET_SLOWEST\x10\x06*\x91\x01\n\x11ModelArchitecture\x12\x1b\n\x17MODEL_ARCHITECTURE_NONE\x10\x00\x12\x1f\n\x1bMODEL_ARCHITECTURE_CLIP_VIT\x10\x01\x12\"\n\x1eMODEL_ARCHITECTURE_CLIP_RESNET\x10\x02\x12\x1a\n\x16MODEL_ARCHITECTURE_LDM\x10\x03*d\n\nT2IAdapter\x12\x13\n\x0fT2IADAPTER_NONE\x10\x00\x12\x15\n\x11T2IADAPTER_SKETCH\x10\x01\x12\x14\n\x10T2IADAPTER_DEPTH\x10\x02\x12\x14\n\x10T2IADAPTER_CANNY\x10\x03*L\n\x0eT2IAdapterInit\x12\x18\n\x14T2IADAPTERINIT_IMAGE\x10\x00\x12 \n\x1cT2IADAPTERINIT_ADAPTER_IMAGE\x10\x01*\xa2\x01\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_PASSTHROUGH\x10\x00\x12\x1f\n\x1b\x41\x43TION_REGENERATE_DUPLICATE\x10\x01\x12\x15\n\x11\x41\x43TION_REGENERATE\x10\x02\x12\x1e\n\x1a\x41\x43TION_OBFUSCATE_DUPLICATE\x10\x03\x12\x14\n\x10\x41\x43TION_OBFUSCATE\x10\x04\x12\x12\n\x0e\x41\x43TION_DISCARD\x10\x05*D\n\x0e\x43lassifierMode\x12\x17\n\x13\x43LSFR_MODE_ZEROSHOT\x10\x00\x12\x19\n\x15\x43LSFR_MODE_MULTICLASS\x10\x01*\x8c\x01\n\x0fInterpolateMode\x12\x16\n\x12INTERPOLATE_LINEAR\x10\x00\x12\x14\n\x10INTERPOLATE_RIFE\x10\x01\x12\x1a\n\x16INTERPOLATE_VAE_LINEAR\x10\x02\x12\x19\n\x15INTERPOLATE_VAE_SLERP\x10\x03\x12\x14\n\x10INTERPOLATE_FILM\x10\x04*l\n\nBorderMode\x12\x12\n\x0e\x42ORDER_REFLECT\x10\x00\x12\x14\n\x10\x42ORDER_REPLICATE\x10\x01\x12\x0f\n\x0b\x42ORDER_WRAP\x10\x02\x12\x0f\n\x0b\x42ORDER_ZERO\x10\x03\x12\x12\n\x0e\x42ORDER_PREFILL\x10\x04*O\n\x0e\x43olorMatchMode\x12\x13\n\x0f\x43OLOR_MATCH_HSV\x10\x00\x12\x13\n\x0f\x43OLOR_MATCH_LAB\x10\x01\x12\x13\n\x0f\x43OLOR_MATCH_RGB\x10\x02*=\n\nCameraType\x12\x16\n\x12\x43\x41MERA_PERSPECTIVE\x10\x00\x12\x17\n\x13\x43\x41MERA_ORTHOGRAPHIC\x10\x01*4\n\nRenderMode\x12\x0f\n\x0bRENDER_MESH\x10\x00\x12\x15\n\x11RENDER_POINTCLOUD\x10\x01*=\n\x0b\x41ssetAction\x12\r\n\tASSET_PUT\x10\x00\x12\r\n\tASSET_GET\x10\x01\x12\x10\n\x0c\x41SSET_DELETE\x10\x02*\x81\x01\n\x08\x41ssetUse\x12\x17\n\x13\x41SSET_USE_UNDEFINED\x10\x00\x12\x13\n\x0f\x41SSET_USE_INPUT\x10\x01\x12\x14\n\x10\x41SSET_USE_OUTPUT\x10\x02\x12\x1a\n\x16\x41SSET_USE_INTERMEDIATE\x10\x03\x12\x15\n\x11\x41SSET_USE_PROJECT\x10\x04*W\n\x0bStageAction\x12\x15\n\x11STAGE_ACTION_PASS\x10\x00\x12\x18\n\x14STAGE_ACTION_DISCARD\x10\x01\x12\x17\n\x13STAGE_ACTION_RETURN\x10\x02\x32\xff\x01\n\x11GenerationService\x12o\n\x08Generate\x12/.stabilityai.platformapis.generation.v1.Request\x1a..stabilityai.platformapis.generation.v1.Answer\"\x00\x30\x01\x12y\n\rChainGenerate\x12\x34.stabilityai.platformapis.generation.v1.ChainRequest\x1a..stabilityai.platformapis.generation.v1.Answer\"\x00\x30\x01\x42\xdf\x02\n*com.stabilityai.platformapis.generation.v1B\x0fGenerationProtoP\x01Zegithub.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/generation/v1;generationv1\xa2\x02\x03SPG\xaa\x02&Stabilityai.Platformapis.Generation.V1\xca\x02&Stabilityai\\Platformapis\\Generation\\V1\xe2\x02\x32Stabilityai\\Platformapis\\Generation\\V1\\GPBMetadata\xea\x02)Stabilityai::Platformapis::Generation::V1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n5stability_api/platform/generation/v1/generation.proto\x12&stabilityai.platformapis.generation.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a#stability_api/tensors/tensors.proto\"9\n\x05Token\x12\x17\n\x04text\x18\x01 \x01(\tH\x00R\x04text\x88\x01\x01\x12\x0e\n\x02id\x18\x02 \x01(\rR\x02idB\x07\n\x05_text\"\x88\x01\n\x06Tokens\x12\x45\n\x06tokens\x18\x01 \x03(\x0b\x32-.stabilityai.platformapis.generation.v1.TokenR\x06tokens\x12&\n\x0ctokenizer_id\x18\x02 \x01(\tH\x00R\x0btokenizerId\x88\x01\x01\x42\x0f\n\r_tokenizer_id\"\xd7\x04\n\x08\x41rtifact\x12\x0e\n\x02id\x18\x01 \x01(\x04R\x02id\x12H\n\x04type\x18\x02 \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.ArtifactTypeR\x04type\x12\x12\n\x04mime\x18\x03 \x01(\tR\x04mime\x12\x19\n\x05magic\x18\x04 \x01(\tH\x01R\x05magic\x88\x01\x01\x12\x18\n\x06\x62inary\x18\x05 \x01(\x0cH\x00R\x06\x62inary\x12\x14\n\x04text\x18\x06 \x01(\tH\x00R\x04text\x12H\n\x06tokens\x18\x07 \x01(\x0b\x32..stabilityai.platformapis.generation.v1.TokensH\x00R\x06tokens\x12^\n\nclassifier\x18\x0b \x01(\x0b\x32<.stabilityai.platformapis.generation.v1.ClassifierParametersH\x00R\nclassifier\x12)\n\x06tensor\x18\x0e \x01(\x0b\x32\x0f.tensors.TensorH\x00R\x06tensor\x12\x14\n\x05index\x18\x08 \x01(\rR\x05index\x12Y\n\rfinish_reason\x18\t \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.FinishReasonR\x0c\x66inishReason\x12\x12\n\x04seed\x18\n \x01(\rR\x04seed\x12\x12\n\x04uuid\x18\x0c \x01(\tR\x04uuid\x12\x12\n\x04size\x18\r \x01(\x04R\x04sizeB\x06\n\x04\x64\x61taB\x08\n\x06_magic\"\\\n\x10PromptParameters\x12\x17\n\x04init\x18\x01 \x01(\x08H\x00R\x04init\x88\x01\x01\x12\x1b\n\x06weight\x18\x02 \x01(\x02H\x01R\x06weight\x88\x01\x01\x42\x07\n\x05_initB\t\n\x07_weight\"\xb0\x02\n\x06Prompt\x12]\n\nparameters\x18\x01 \x01(\x0b\x32\x38.stabilityai.platformapis.generation.v1.PromptParametersH\x01R\nparameters\x88\x01\x01\x12\x14\n\x04text\x18\x02 \x01(\tH\x00R\x04text\x12H\n\x06tokens\x18\x03 \x01(\x0b\x32..stabilityai.platformapis.generation.v1.TokensH\x00R\x06tokens\x12N\n\x08\x61rtifact\x18\x04 \x01(\x0b\x32\x30.stabilityai.platformapis.generation.v1.ArtifactH\x00R\x08\x61rtifactB\x08\n\x06promptB\r\n\x0b_parameters\"\xb9\x03\n\x11SamplerParameters\x12\x15\n\x03\x65ta\x18\x01 \x01(\x02H\x00R\x03\x65ta\x88\x01\x01\x12*\n\x0esampling_steps\x18\x02 \x01(\x04H\x01R\rsamplingSteps\x88\x01\x01\x12,\n\x0flatent_channels\x18\x03 \x01(\x04H\x02R\x0elatentChannels\x88\x01\x01\x12\x34\n\x13\x64ownsampling_factor\x18\x04 \x01(\x04H\x03R\x12\x64ownsamplingFactor\x88\x01\x01\x12 \n\tcfg_scale\x18\x05 \x01(\x02H\x04R\x08\x63\x66gScale\x88\x01\x01\x12-\n\x10init_noise_scale\x18\x06 \x01(\x02H\x05R\x0einitNoiseScale\x88\x01\x01\x12-\n\x10step_noise_scale\x18\x07 \x01(\x02H\x06R\x0estepNoiseScale\x88\x01\x01\x42\x06\n\x04_etaB\x11\n\x0f_sampling_stepsB\x12\n\x10_latent_channelsB\x16\n\x14_downsampling_factorB\x0c\n\n_cfg_scaleB\x13\n\x11_init_noise_scaleB\x13\n\x11_step_noise_scale\"\xca\x01\n\x15\x43onditionerParameters\x12\x33\n\x13vector_adjust_prior\x18\x01 \x01(\tH\x00R\x11vectorAdjustPrior\x88\x01\x01\x12T\n\x0b\x63onditioner\x18\x02 \x01(\x0b\x32-.stabilityai.platformapis.generation.v1.ModelH\x01R\x0b\x63onditioner\x88\x01\x01\x42\x16\n\x14_vector_adjust_priorB\x0e\n\x0c_conditioner\"}\n\x12ScheduleParameters\x12\x19\n\x05start\x18\x01 \x01(\x02H\x00R\x05start\x88\x01\x01\x12\x15\n\x03\x65nd\x18\x02 \x01(\x02H\x01R\x03\x65nd\x88\x01\x01\x12\x19\n\x05value\x18\x03 \x01(\x02H\x02R\x05value\x88\x01\x01\x42\x08\n\x06_startB\x06\n\x04_endB\x08\n\x06_value\"\xea\x02\n\rStepParameter\x12\x1f\n\x0bscaled_step\x18\x01 \x01(\x02R\nscaledStep\x12X\n\x07sampler\x18\x02 \x01(\x0b\x32\x39.stabilityai.platformapis.generation.v1.SamplerParametersH\x00R\x07sampler\x88\x01\x01\x12[\n\x08schedule\x18\x03 \x01(\x0b\x32:.stabilityai.platformapis.generation.v1.ScheduleParametersH\x01R\x08schedule\x88\x01\x01\x12[\n\x08guidance\x18\x04 \x01(\x0b\x32:.stabilityai.platformapis.generation.v1.GuidanceParametersH\x02R\x08guidance\x88\x01\x01\x42\n\n\x08_samplerB\x0b\n\t_scheduleB\x0b\n\t_guidance\"\xf9\x01\n\x05Model\x12]\n\x0c\x61rchitecture\x18\x01 \x01(\x0e\x32\x39.stabilityai.platformapis.generation.v1.ModelArchitectureR\x0c\x61rchitecture\x12\x1c\n\tpublisher\x18\x02 \x01(\tR\tpublisher\x12\x18\n\x07\x64\x61taset\x18\x03 \x01(\tR\x07\x64\x61taset\x12\x18\n\x07version\x18\x04 \x01(\x02R\x07version\x12)\n\x10semantic_version\x18\x05 \x01(\tR\x0fsemanticVersion\x12\x14\n\x05\x61lias\x18\x06 \x01(\tR\x05\x61lias\"\x82\x02\n\x10\x43utoutParameters\x12R\n\x07\x63utouts\x18\x01 \x03(\x0b\x32\x38.stabilityai.platformapis.generation.v1.CutoutParametersR\x07\x63utouts\x12\x19\n\x05\x63ount\x18\x02 \x01(\rH\x00R\x05\x63ount\x88\x01\x01\x12\x17\n\x04gray\x18\x03 \x01(\x02H\x01R\x04gray\x88\x01\x01\x12\x17\n\x04\x62lur\x18\x04 \x01(\x02H\x02R\x04\x62lur\x88\x01\x01\x12\"\n\nsize_power\x18\x05 \x01(\x02H\x03R\tsizePower\x88\x01\x01\x42\x08\n\x06_countB\x07\n\x05_grayB\x07\n\x05_blurB\r\n\x0b_size_power\"N\n\x1aGuidanceScheduleParameters\x12\x1a\n\x08\x64uration\x18\x01 \x01(\x02R\x08\x64uration\x12\x14\n\x05value\x18\x02 \x01(\x02R\x05value\"\xc8\x03\n\x1aGuidanceInstanceParameters\x12\x45\n\x06models\x18\x02 \x03(\x0b\x32-.stabilityai.platformapis.generation.v1.ModelR\x06models\x12\x30\n\x11guidance_strength\x18\x03 \x01(\x02H\x00R\x10guidanceStrength\x88\x01\x01\x12^\n\x08schedule\x18\x04 \x03(\x0b\x32\x42.stabilityai.platformapis.generation.v1.GuidanceScheduleParametersR\x08schedule\x12W\n\x07\x63utouts\x18\x05 \x01(\x0b\x32\x38.stabilityai.platformapis.generation.v1.CutoutParametersH\x01R\x07\x63utouts\x88\x01\x01\x12K\n\x06prompt\x18\x06 \x01(\x0b\x32..stabilityai.platformapis.generation.v1.PromptH\x02R\x06prompt\x88\x01\x01\x42\x14\n\x12_guidance_strengthB\n\n\x08_cutoutsB\t\n\x07_prompt\"\xd7\x01\n\x12GuidanceParameters\x12_\n\x0fguidance_preset\x18\x01 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.GuidancePresetR\x0eguidancePreset\x12`\n\tinstances\x18\x02 \x03(\x0b\x32\x42.stabilityai.platformapis.generation.v1.GuidanceInstanceParametersR\tinstances\"\xc1\x01\n\rTransformType\x12X\n\tdiffusion\x18\x01 \x01(\x0e\x32\x38.stabilityai.platformapis.generation.v1.DiffusionSamplerH\x00R\tdiffusion\x12N\n\x08upscaler\x18\x02 \x01(\x0e\x32\x30.stabilityai.platformapis.generation.v1.UpscalerH\x00R\x08upscalerB\x06\n\x04type\"\xfb\x01\n\x13T2IAdapterParameter\x12U\n\x0c\x61\x64\x61pter_type\x18\x01 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.T2IAdapterR\x0b\x61\x64\x61pterType\x12)\n\x10\x61\x64\x61pter_strength\x18\x02 \x01(\x02R\x0f\x61\x64\x61pterStrength\x12\x62\n\x11\x61\x64\x61pter_init_type\x18\x03 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.T2IAdapterInitR\x0f\x61\x64\x61pterInitType\"\x82\x02\n\x1c\x43ontentCredentialsParameters\x12{\n\x0emodel_metadata\x18\x01 \x01(\x0e\x32R.stabilityai.platformapis.generation.v1.ContentCredentialsParameters.ModelMetadataH\x00R\rmodelMetadata\"W\n\rModelMetadata\x12\x1e\n\x1aMODEL_METADATA_UNSPECIFIED\x10\x00\x12&\n\"MODEL_METADATA_SIGN_WITH_ENGINE_ID\x10\x01\x42\x0c\n\nparameters\"Y\n\x14\x46ineTuningParameters\x12\x19\n\x08model_id\x18\x01 \x01(\tR\x07modelId\x12\x1b\n\x06weight\x18\x02 \x01(\x02H\x00R\x06weight\x88\x01\x01\x42\t\n\x07_weight\"\xb4\x08\n\x0fImageParameters\x12\x1b\n\x06height\x18\x01 \x01(\x04H\x00R\x06height\x88\x01\x01\x12\x19\n\x05width\x18\x02 \x01(\x04H\x01R\x05width\x88\x01\x01\x12\x12\n\x04seed\x18\x03 \x03(\rR\x04seed\x12\x1d\n\x07samples\x18\x04 \x01(\x04H\x02R\x07samples\x88\x01\x01\x12\x19\n\x05steps\x18\x05 \x01(\x04H\x03R\x05steps\x88\x01\x01\x12X\n\ttransform\x18\x06 \x01(\x0b\x32\x35.stabilityai.platformapis.generation.v1.TransformTypeH\x04R\ttransform\x88\x01\x01\x12U\n\nparameters\x18\x07 \x03(\x0b\x32\x35.stabilityai.platformapis.generation.v1.StepParameterR\nparameters\x12\x65\n\x10masked_area_init\x18\x08 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.MaskedAreaInitH\x05R\x0emaskedAreaInit\x88\x01\x01\x12^\n\rweight_method\x18\t \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.WeightMethodH\x06R\x0cweightMethod\x88\x01\x01\x12\x1f\n\x08quantize\x18\n \x01(\x08H\x07R\x08quantize\x88\x01\x01\x12Z\n\x07\x61\x64\x61pter\x18\x0c \x01(\x0b\x32;.stabilityai.platformapis.generation.v1.T2IAdapterParameterH\x08R\x07\x61\x64\x61pter\x88\x01\x01\x12r\n\x16\x66ine_tuning_parameters\x18\r \x03(\x0b\x32<.stabilityai.platformapis.generation.v1.FineTuningParametersR\x14\x66ineTuningParameters\x12\x8f\x01\n\x1e\x63ontent_credentials_parameters\x18\x0e \x01(\x0b\x32\x44.stabilityai.platformapis.generation.v1.ContentCredentialsParametersH\tR\x1c\x63ontentCredentialsParameters\x88\x01\x01\x42\t\n\x07_heightB\x08\n\x06_widthB\n\n\x08_samplesB\x08\n\x06_stepsB\x0c\n\n_transformB\x13\n\x11_masked_area_initB\x10\n\x0e_weight_methodB\x0b\n\t_quantizeB\n\n\x08_adapterB!\n\x1f_content_credentials_parametersJ\x04\x08\x0b\x10\x0c\"^\n\x11\x43lassifierConcept\x12\x18\n\x07\x63oncept\x18\x01 \x01(\tR\x07\x63oncept\x12!\n\tthreshold\x18\x02 \x01(\x02H\x00R\tthreshold\x88\x01\x01\x42\x0c\n\n_threshold\"\x85\x03\n\x12\x43lassifierCategory\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12U\n\x08\x63oncepts\x18\x02 \x03(\x0b\x32\x39.stabilityai.platformapis.generation.v1.ClassifierConceptR\x08\x63oncepts\x12#\n\nadjustment\x18\x03 \x01(\x02H\x00R\nadjustment\x88\x01\x01\x12K\n\x06\x61\x63tion\x18\x04 \x01(\x0e\x32..stabilityai.platformapis.generation.v1.ActionH\x01R\x06\x61\x63tion\x88\x01\x01\x12\x64\n\x0f\x63lassifier_mode\x18\x05 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.ClassifierModeH\x02R\x0e\x63lassifierMode\x88\x01\x01\x42\r\n\x0b_adjustmentB\t\n\x07_actionB\x12\n\x10_classifier_mode\"\xba\x02\n\x14\x43lassifierParameters\x12Z\n\ncategories\x18\x01 \x03(\x0b\x32:.stabilityai.platformapis.generation.v1.ClassifierCategoryR\ncategories\x12T\n\x07\x65xceeds\x18\x02 \x03(\x0b\x32:.stabilityai.platformapis.generation.v1.ClassifierCategoryR\x07\x65xceeds\x12\\\n\x0frealized_action\x18\x03 \x01(\x0e\x32..stabilityai.platformapis.generation.v1.ActionH\x00R\x0erealizedAction\x88\x01\x01\x42\x12\n\x10_realized_action\"\x8a\x01\n\x15InterpolateParameters\x12\x16\n\x06ratios\x18\x01 \x03(\x02R\x06ratios\x12P\n\x04mode\x18\x02 \x01(\x0e\x32\x37.stabilityai.platformapis.generation.v1.InterpolateModeH\x00R\x04mode\x88\x01\x01\x42\x07\n\x05_mode\"\xbb\x04\n\x14TransformColorAdjust\x12#\n\nbrightness\x18\x01 \x01(\x02H\x00R\nbrightness\x88\x01\x01\x12\x1f\n\x08\x63ontrast\x18\x02 \x01(\x02H\x01R\x08\x63ontrast\x88\x01\x01\x12\x15\n\x03hue\x18\x03 \x01(\x02H\x02R\x03hue\x88\x01\x01\x12#\n\nsaturation\x18\x04 \x01(\x02H\x03R\nsaturation\x88\x01\x01\x12!\n\tlightness\x18\x05 \x01(\x02H\x04R\tlightness\x88\x01\x01\x12V\n\x0bmatch_image\x18\x06 \x01(\x0b\x32\x30.stabilityai.platformapis.generation.v1.ArtifactH\x05R\nmatchImage\x88\x01\x01\x12Z\n\nmatch_mode\x18\x07 \x01(\x0e\x32\x36.stabilityai.platformapis.generation.v1.ColorMatchModeH\x06R\tmatchMode\x88\x01\x01\x12&\n\x0cnoise_amount\x18\x08 \x01(\x02H\x07R\x0bnoiseAmount\x88\x01\x01\x12\"\n\nnoise_seed\x18\t \x01(\rH\x08R\tnoiseSeed\x88\x01\x01\x42\r\n\x0b_brightnessB\x0b\n\t_contrastB\x06\n\x04_hueB\r\n\x0b_saturationB\x0c\n\n_lightnessB\x0e\n\x0c_match_imageB\r\n\x0b_match_modeB\x0f\n\r_noise_amountB\r\n\x0b_noise_seed\"\xae\x01\n\x12TransformDepthCalc\x12&\n\x0c\x62lend_weight\x18\x01 \x01(\x02H\x00R\x0b\x62lendWeight\x88\x01\x01\x12$\n\x0b\x62lur_radius\x18\x02 \x01(\rH\x01R\nblurRadius\x88\x01\x01\x12\x1d\n\x07reverse\x18\x03 \x01(\x08H\x02R\x07reverse\x88\x01\x01\x42\x0f\n\r_blend_weightB\x0e\n\x0c_blur_radiusB\n\n\x08_reverse\")\n\x0fTransformMatrix\x12\x16\n\x04\x64\x61ta\x18\x01 \x03(\x02\x42\x02\x10\x01R\x04\x64\x61ta\"\xa0\x03\n\x11TransformResample\x12S\n\x0b\x62order_mode\x18\x01 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.BorderModeR\nborderMode\x12U\n\ttransform\x18\x02 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.TransformMatrixR\ttransform\x12\x63\n\x0eprev_transform\x18\x03 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.TransformMatrixH\x00R\rprevTransform\x88\x01\x01\x12\"\n\ndepth_warp\x18\x04 \x01(\x02H\x01R\tdepthWarp\x88\x01\x01\x12$\n\x0b\x65xport_mask\x18\x05 \x01(\x08H\x02R\nexportMask\x88\x01\x01\x42\x11\n\x0f_prev_transformB\r\n\x0b_depth_warpB\x0e\n\x0c_export_mask\"\xc2\x01\n\x10\x43\x61meraParameters\x12S\n\x0b\x63\x61mera_type\x18\x01 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.CameraTypeR\ncameraType\x12\x1d\n\nnear_plane\x18\x02 \x01(\x02R\tnearPlane\x12\x1b\n\tfar_plane\x18\x03 \x01(\x02R\x08\x66\x61rPlane\x12\x15\n\x03\x66ov\x18\x04 \x01(\x02H\x00R\x03\x66ov\x88\x01\x01\x42\x06\n\x04_fov\"\xf2\x02\n\x13TransformCameraPose\x12h\n\x14world_to_view_matrix\x18\x01 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.TransformMatrixR\x11worldToViewMatrix\x12\x65\n\x11\x63\x61mera_parameters\x18\x02 \x01(\x0b\x32\x38.stabilityai.platformapis.generation.v1.CameraParametersR\x10\x63\x61meraParameters\x12\x1d\n\ndo_prefill\x18\x05 \x01(\x08R\tdoPrefill\x12S\n\x0brender_mode\x18\x08 \x01(\x0e\x32\x32.stabilityai.platformapis.generation.v1.RenderModeR\nrenderModeJ\x04\x08\x03\x10\x04J\x04\x08\x04\x10\x05J\x04\x08\x06\x10\x07J\x04\x08\x07\x10\x08\"\x9b\x03\n\x13TransformParameters\x12\x61\n\x0c\x63olor_adjust\x18\x02 \x01(\x0b\x32<.stabilityai.platformapis.generation.v1.TransformColorAdjustH\x00R\x0b\x63olorAdjust\x12[\n\ndepth_calc\x18\x04 \x01(\x0b\x32:.stabilityai.platformapis.generation.v1.TransformDepthCalcH\x00R\tdepthCalc\x12W\n\x08resample\x18\x05 \x01(\x0b\x32\x39.stabilityai.platformapis.generation.v1.TransformResampleH\x00R\x08resample\x12^\n\x0b\x63\x61mera_pose\x18\x06 \x01(\x0b\x32;.stabilityai.platformapis.generation.v1.TransformCameraPoseH\x00R\ncameraPoseB\x0b\n\ttransform\"\xc1\x01\n\x0f\x41ssetParameters\x12K\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32\x33.stabilityai.platformapis.generation.v1.AssetActionR\x06\x61\x63tion\x12\x1d\n\nproject_id\x18\x02 \x01(\tR\tprojectId\x12\x42\n\x03use\x18\x03 \x01(\x0e\x32\x30.stabilityai.platformapis.generation.v1.AssetUseR\x03use\"\xb4\x01\n\nAnswerMeta\x12\x1a\n\x06gpu_id\x18\x01 \x01(\tH\x00R\x05gpuId\x88\x01\x01\x12\x1a\n\x06\x63pu_id\x18\x02 \x01(\tH\x01R\x05\x63puId\x88\x01\x01\x12\x1c\n\x07node_id\x18\x03 \x01(\tH\x02R\x06nodeId\x88\x01\x01\x12 \n\tengine_id\x18\x04 \x01(\tH\x03R\x08\x65ngineId\x88\x01\x01\x42\t\n\x07_gpu_idB\t\n\x07_cpu_idB\n\n\x08_node_idB\x0c\n\n_engine_id\"\xa0\x02\n\x06\x41nswer\x12\x1b\n\tanswer_id\x18\x01 \x01(\tR\x08\x61nswerId\x12\x1d\n\nrequest_id\x18\x02 \x01(\tR\trequestId\x12\x1a\n\x08received\x18\x03 \x01(\x04R\x08received\x12\x18\n\x07\x63reated\x18\x04 \x01(\x04R\x07\x63reated\x12K\n\x04meta\x18\x06 \x01(\x0b\x32\x32.stabilityai.platformapis.generation.v1.AnswerMetaH\x00R\x04meta\x88\x01\x01\x12N\n\tartifacts\x18\x07 \x03(\x0b\x32\x30.stabilityai.platformapis.generation.v1.ArtifactR\tartifactsB\x07\n\x05_meta\"r\n\x0b\x41nswerBatch\x12\x19\n\x08\x62\x61tch_id\x18\x01 \x01(\tR\x07\x62\x61tchId\x12H\n\x07\x61nswers\x18\x02 \x03(\x0b\x32..stabilityai.platformapis.generation.v1.AnswerR\x07\x61nswers\"\xfa\x06\n\x07Request\x12\x1b\n\tengine_id\x18\x01 \x01(\tR\x08\x65ngineId\x12\x1d\n\nrequest_id\x18\x02 \x01(\tR\trequestId\x12[\n\x0erequested_type\x18\x03 \x01(\x0e\x32\x34.stabilityai.platformapis.generation.v1.ArtifactTypeR\rrequestedType\x12\x46\n\x06prompt\x18\x04 \x03(\x0b\x32..stabilityai.platformapis.generation.v1.PromptR\x06prompt\x12O\n\x05image\x18\x05 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.ImageParametersH\x00R\x05image\x12^\n\nclassifier\x18\x07 \x01(\x0b\x32<.stabilityai.platformapis.generation.v1.ClassifierParametersH\x00R\nclassifier\x12O\n\x05\x61sset\x18\x08 \x01(\x0b\x32\x37.stabilityai.platformapis.generation.v1.AssetParametersH\x00R\x05\x61sset\x12\x61\n\x0binterpolate\x18\x0b \x01(\x0b\x32=.stabilityai.platformapis.generation.v1.InterpolateParametersH\x00R\x0binterpolate\x12[\n\ttransform\x18\x0c \x01(\x0b\x32;.stabilityai.platformapis.generation.v1.TransformParametersH\x00R\ttransform\x12\x64\n\x0b\x63onditioner\x18\x06 \x01(\x0b\x32=.stabilityai.platformapis.generation.v1.ConditionerParametersH\x01R\x0b\x63onditioner\x88\x01\x01\x12\x35\n\x06\x65xtras\x18\xff\x0f \x01(\x0b\x32\x17.google.protobuf.StructH\x02R\x06\x65xtras\x88\x01\x01\x42\x08\n\x06paramsB\x0e\n\x0c_conditionerB\t\n\x07_extrasJ\x04\x08\t\x10\nJ\x04\x08\n\x10\x0b\"\xcd\x01\n\x08OnStatus\x12L\n\x06reason\x18\x01 \x03(\x0e\x32\x34.stabilityai.platformapis.generation.v1.FinishReasonR\x06reason\x12\x1b\n\x06target\x18\x02 \x01(\tH\x00R\x06target\x88\x01\x01\x12K\n\x06\x61\x63tion\x18\x03 \x03(\x0e\x32\x33.stabilityai.platformapis.generation.v1.StageActionR\x06\x61\x63tionB\t\n\x07_target\"\xb1\x01\n\x05Stage\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12I\n\x07request\x18\x02 \x01(\x0b\x32/.stabilityai.platformapis.generation.v1.RequestR\x07request\x12M\n\ton_status\x18\x03 \x03(\x0b\x32\x30.stabilityai.platformapis.generation.v1.OnStatusR\x08onStatus\"r\n\x0c\x43hainRequest\x12\x1d\n\nrequest_id\x18\x01 \x01(\tR\trequestId\x12\x43\n\x05stage\x18\x02 \x03(\x0b\x32-.stabilityai.platformapis.generation.v1.StageR\x05stage*E\n\x0c\x46inishReason\x12\x08\n\x04NULL\x10\x00\x12\n\n\x06LENGTH\x10\x01\x12\x08\n\x04STOP\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\n\n\x06\x46ILTER\x10\x04*\xf8\x01\n\x0c\x41rtifactType\x12\x11\n\rARTIFACT_NONE\x10\x00\x12\x12\n\x0e\x41RTIFACT_IMAGE\x10\x01\x12\x12\n\x0e\x41RTIFACT_VIDEO\x10\x02\x12\x11\n\rARTIFACT_TEXT\x10\x03\x12\x13\n\x0f\x41RTIFACT_TOKENS\x10\x04\x12\x16\n\x12\x41RTIFACT_EMBEDDING\x10\x05\x12\x1c\n\x18\x41RTIFACT_CLASSIFICATIONS\x10\x06\x12\x11\n\rARTIFACT_MASK\x10\x07\x12\x13\n\x0f\x41RTIFACT_LATENT\x10\x08\x12\x13\n\x0f\x41RTIFACT_TENSOR\x10\t\x12\x12\n\x0e\x41RTIFACT_DEPTH\x10\n*g\n\x0eMaskedAreaInit\x12\x19\n\x15MASKED_AREA_INIT_ZERO\x10\x00\x12\x1b\n\x17MASKED_AREA_INIT_RANDOM\x10\x01\x12\x1d\n\x19MASKED_AREA_INIT_ORIGINAL\x10\x02*5\n\x0cWeightMethod\x12\x10\n\x0cTEXT_ENCODER\x10\x00\x12\x13\n\x0f\x43ROSS_ATTENTION\x10\x01*\x98\x02\n\x10\x44iffusionSampler\x12\x10\n\x0cSAMPLER_DDIM\x10\x00\x12\x10\n\x0cSAMPLER_DDPM\x10\x01\x12\x13\n\x0fSAMPLER_K_EULER\x10\x02\x12\x1d\n\x19SAMPLER_K_EULER_ANCESTRAL\x10\x03\x12\x12\n\x0eSAMPLER_K_HEUN\x10\x04\x12\x13\n\x0fSAMPLER_K_DPM_2\x10\x05\x12\x1d\n\x19SAMPLER_K_DPM_2_ANCESTRAL\x10\x06\x12\x11\n\rSAMPLER_K_LMS\x10\x07\x12 \n\x1cSAMPLER_K_DPMPP_2S_ANCESTRAL\x10\x08\x12\x16\n\x12SAMPLER_K_DPMPP_2M\x10\t\x12\x17\n\x13SAMPLER_K_DPMPP_SDE\x10\n*F\n\x08Upscaler\x12\x10\n\x0cUPSCALER_RGB\x10\x00\x12\x13\n\x0fUPSCALER_GFPGAN\x10\x01\x12\x13\n\x0fUPSCALER_ESRGAN\x10\x02*\xd8\x01\n\x0eGuidancePreset\x12\x18\n\x14GUIDANCE_PRESET_NONE\x10\x00\x12\x1a\n\x16GUIDANCE_PRESET_SIMPLE\x10\x01\x12\x1d\n\x19GUIDANCE_PRESET_FAST_BLUE\x10\x02\x12\x1e\n\x1aGUIDANCE_PRESET_FAST_GREEN\x10\x03\x12\x18\n\x14GUIDANCE_PRESET_SLOW\x10\x04\x12\x1a\n\x16GUIDANCE_PRESET_SLOWER\x10\x05\x12\x1b\n\x17GUIDANCE_PRESET_SLOWEST\x10\x06*\x91\x01\n\x11ModelArchitecture\x12\x1b\n\x17MODEL_ARCHITECTURE_NONE\x10\x00\x12\x1f\n\x1bMODEL_ARCHITECTURE_CLIP_VIT\x10\x01\x12\"\n\x1eMODEL_ARCHITECTURE_CLIP_RESNET\x10\x02\x12\x1a\n\x16MODEL_ARCHITECTURE_LDM\x10\x03*d\n\nT2IAdapter\x12\x13\n\x0fT2IADAPTER_NONE\x10\x00\x12\x15\n\x11T2IADAPTER_SKETCH\x10\x01\x12\x14\n\x10T2IADAPTER_DEPTH\x10\x02\x12\x14\n\x10T2IADAPTER_CANNY\x10\x03*L\n\x0eT2IAdapterInit\x12\x18\n\x14T2IADAPTERINIT_IMAGE\x10\x00\x12 \n\x1cT2IADAPTERINIT_ADAPTER_IMAGE\x10\x01*\xa2\x01\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_PASSTHROUGH\x10\x00\x12\x1f\n\x1b\x41\x43TION_REGENERATE_DUPLICATE\x10\x01\x12\x15\n\x11\x41\x43TION_REGENERATE\x10\x02\x12\x1e\n\x1a\x41\x43TION_OBFUSCATE_DUPLICATE\x10\x03\x12\x14\n\x10\x41\x43TION_OBFUSCATE\x10\x04\x12\x12\n\x0e\x41\x43TION_DISCARD\x10\x05*D\n\x0e\x43lassifierMode\x12\x17\n\x13\x43LSFR_MODE_ZEROSHOT\x10\x00\x12\x19\n\x15\x43LSFR_MODE_MULTICLASS\x10\x01*\x8c\x01\n\x0fInterpolateMode\x12\x16\n\x12INTERPOLATE_LINEAR\x10\x00\x12\x14\n\x10INTERPOLATE_RIFE\x10\x01\x12\x1a\n\x16INTERPOLATE_VAE_LINEAR\x10\x02\x12\x19\n\x15INTERPOLATE_VAE_SLERP\x10\x03\x12\x14\n\x10INTERPOLATE_FILM\x10\x04*l\n\nBorderMode\x12\x12\n\x0e\x42ORDER_REFLECT\x10\x00\x12\x14\n\x10\x42ORDER_REPLICATE\x10\x01\x12\x0f\n\x0b\x42ORDER_WRAP\x10\x02\x12\x0f\n\x0b\x42ORDER_ZERO\x10\x03\x12\x12\n\x0e\x42ORDER_PREFILL\x10\x04*O\n\x0e\x43olorMatchMode\x12\x13\n\x0f\x43OLOR_MATCH_HSV\x10\x00\x12\x13\n\x0f\x43OLOR_MATCH_LAB\x10\x01\x12\x13\n\x0f\x43OLOR_MATCH_RGB\x10\x02*=\n\nCameraType\x12\x16\n\x12\x43\x41MERA_PERSPECTIVE\x10\x00\x12\x17\n\x13\x43\x41MERA_ORTHOGRAPHIC\x10\x01*4\n\nRenderMode\x12\x0f\n\x0bRENDER_MESH\x10\x00\x12\x15\n\x11RENDER_POINTCLOUD\x10\x01*=\n\x0b\x41ssetAction\x12\r\n\tASSET_PUT\x10\x00\x12\r\n\tASSET_GET\x10\x01\x12\x10\n\x0c\x41SSET_DELETE\x10\x02*\x81\x01\n\x08\x41ssetUse\x12\x17\n\x13\x41SSET_USE_UNDEFINED\x10\x00\x12\x13\n\x0f\x41SSET_USE_INPUT\x10\x01\x12\x14\n\x10\x41SSET_USE_OUTPUT\x10\x02\x12\x1a\n\x16\x41SSET_USE_INTERMEDIATE\x10\x03\x12\x15\n\x11\x41SSET_USE_PROJECT\x10\x04*W\n\x0bStageAction\x12\x15\n\x11STAGE_ACTION_PASS\x10\x00\x12\x18\n\x14STAGE_ACTION_DISCARD\x10\x01\x12\x17\n\x13STAGE_ACTION_RETURN\x10\x02\x32\xff\x01\n\x11GenerationService\x12o\n\x08Generate\x12/.stabilityai.platformapis.generation.v1.Request\x1a..stabilityai.platformapis.generation.v1.Answer\"\x00\x30\x01\x12y\n\rChainGenerate\x12\x34.stabilityai.platformapis.generation.v1.ChainRequest\x1a..stabilityai.platformapis.generation.v1.Answer\"\x00\x30\x01\x42\xdf\x02\n*com.stabilityai.platformapis.generation.v1B\x0fGenerationProtoP\x01Zegithub.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/generation/v1;generationv1\xa2\x02\x03SPG\xaa\x02&Stabilityai.Platformapis.Generation.V1\xca\x02&Stabilityai\\Platformapis\\Generation\\V1\xe2\x02\x32Stabilityai\\Platformapis\\Generation\\V1\\GPBMetadata\xea\x02)Stabilityai::Platformapis::Generation::V1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -26,46 +26,46 @@ DESCRIPTOR._serialized_options = b'\n*com.stabilityai.platformapis.generation.v1B\017GenerationProtoP\001Zegithub.com/stability-ai/api-interfaces/gen/proto/go/stability_api/platform/generation/v1;generationv1\242\002\003SPG\252\002&Stabilityai.Platformapis.Generation.V1\312\002&Stabilityai\\Platformapis\\Generation\\V1\342\0022Stabilityai\\Platformapis\\Generation\\V1\\GPBMetadata\352\002)Stabilityai::Platformapis::Generation::V1' _TRANSFORMMATRIX.fields_by_name['data']._options = None _TRANSFORMMATRIX.fields_by_name['data']._serialized_options = b'\020\001' - _globals['_FINISHREASON']._serialized_start=10884 - _globals['_FINISHREASON']._serialized_end=10953 - _globals['_ARTIFACTTYPE']._serialized_start=10956 - _globals['_ARTIFACTTYPE']._serialized_end=11204 - _globals['_MASKEDAREAINIT']._serialized_start=11206 - _globals['_MASKEDAREAINIT']._serialized_end=11309 - _globals['_WEIGHTMETHOD']._serialized_start=11311 - _globals['_WEIGHTMETHOD']._serialized_end=11364 - _globals['_DIFFUSIONSAMPLER']._serialized_start=11367 - _globals['_DIFFUSIONSAMPLER']._serialized_end=11647 - _globals['_UPSCALER']._serialized_start=11649 - _globals['_UPSCALER']._serialized_end=11719 - _globals['_GUIDANCEPRESET']._serialized_start=11722 - _globals['_GUIDANCEPRESET']._serialized_end=11938 - _globals['_MODELARCHITECTURE']._serialized_start=11941 - _globals['_MODELARCHITECTURE']._serialized_end=12086 - _globals['_T2IADAPTER']._serialized_start=12088 - _globals['_T2IADAPTER']._serialized_end=12188 - _globals['_T2IADAPTERINIT']._serialized_start=12190 - _globals['_T2IADAPTERINIT']._serialized_end=12266 - _globals['_ACTION']._serialized_start=12269 - _globals['_ACTION']._serialized_end=12431 - _globals['_CLASSIFIERMODE']._serialized_start=12433 - _globals['_CLASSIFIERMODE']._serialized_end=12501 - _globals['_INTERPOLATEMODE']._serialized_start=12504 - _globals['_INTERPOLATEMODE']._serialized_end=12644 - _globals['_BORDERMODE']._serialized_start=12646 - _globals['_BORDERMODE']._serialized_end=12754 - _globals['_COLORMATCHMODE']._serialized_start=12756 - _globals['_COLORMATCHMODE']._serialized_end=12835 - _globals['_CAMERATYPE']._serialized_start=12837 - _globals['_CAMERATYPE']._serialized_end=12898 - _globals['_RENDERMODE']._serialized_start=12900 - _globals['_RENDERMODE']._serialized_end=12952 - _globals['_ASSETACTION']._serialized_start=12954 - _globals['_ASSETACTION']._serialized_end=13015 - _globals['_ASSETUSE']._serialized_start=13018 - _globals['_ASSETUSE']._serialized_end=13147 - _globals['_STAGEACTION']._serialized_start=13149 - _globals['_STAGEACTION']._serialized_end=13236 + _globals['_FINISHREASON']._serialized_start=10983 + _globals['_FINISHREASON']._serialized_end=11052 + _globals['_ARTIFACTTYPE']._serialized_start=11055 + _globals['_ARTIFACTTYPE']._serialized_end=11303 + _globals['_MASKEDAREAINIT']._serialized_start=11305 + _globals['_MASKEDAREAINIT']._serialized_end=11408 + _globals['_WEIGHTMETHOD']._serialized_start=11410 + _globals['_WEIGHTMETHOD']._serialized_end=11463 + _globals['_DIFFUSIONSAMPLER']._serialized_start=11466 + _globals['_DIFFUSIONSAMPLER']._serialized_end=11746 + _globals['_UPSCALER']._serialized_start=11748 + _globals['_UPSCALER']._serialized_end=11818 + _globals['_GUIDANCEPRESET']._serialized_start=11821 + _globals['_GUIDANCEPRESET']._serialized_end=12037 + _globals['_MODELARCHITECTURE']._serialized_start=12040 + _globals['_MODELARCHITECTURE']._serialized_end=12185 + _globals['_T2IADAPTER']._serialized_start=12187 + _globals['_T2IADAPTER']._serialized_end=12287 + _globals['_T2IADAPTERINIT']._serialized_start=12289 + _globals['_T2IADAPTERINIT']._serialized_end=12365 + _globals['_ACTION']._serialized_start=12368 + _globals['_ACTION']._serialized_end=12530 + _globals['_CLASSIFIERMODE']._serialized_start=12532 + _globals['_CLASSIFIERMODE']._serialized_end=12600 + _globals['_INTERPOLATEMODE']._serialized_start=12603 + _globals['_INTERPOLATEMODE']._serialized_end=12743 + _globals['_BORDERMODE']._serialized_start=12745 + _globals['_BORDERMODE']._serialized_end=12853 + _globals['_COLORMATCHMODE']._serialized_start=12855 + _globals['_COLORMATCHMODE']._serialized_end=12934 + _globals['_CAMERATYPE']._serialized_start=12936 + _globals['_CAMERATYPE']._serialized_end=12997 + _globals['_RENDERMODE']._serialized_start=12999 + _globals['_RENDERMODE']._serialized_end=13051 + _globals['_ASSETACTION']._serialized_start=13053 + _globals['_ASSETACTION']._serialized_end=13114 + _globals['_ASSETUSE']._serialized_start=13117 + _globals['_ASSETUSE']._serialized_end=13246 + _globals['_STAGEACTION']._serialized_start=13248 + _globals['_STAGEACTION']._serialized_end=13335 _globals['_TOKEN']._serialized_start=164 _globals['_TOKEN']._serialized_end=221 _globals['_TOKENS']._serialized_start=224 @@ -98,52 +98,52 @@ _globals['_TRANSFORMTYPE']._serialized_end=3970 _globals['_T2IADAPTERPARAMETER']._serialized_start=3973 _globals['_T2IADAPTERPARAMETER']._serialized_end=4224 - _globals['_CAIPARAMETERS']._serialized_start=4227 - _globals['_CAIPARAMETERS']._serialized_end=4455 - _globals['_CAIPARAMETERS_MODELMETADATA']._serialized_start=4354 - _globals['_CAIPARAMETERS_MODELMETADATA']._serialized_end=4441 - _globals['_FINETUNINGPARAMETERS']._serialized_start=4457 - _globals['_FINETUNINGPARAMETERS']._serialized_end=4546 - _globals['_IMAGEPARAMETERS']._serialized_start=4549 - _globals['_IMAGEPARAMETERS']._serialized_end=5556 - _globals['_CLASSIFIERCONCEPT']._serialized_start=5558 - _globals['_CLASSIFIERCONCEPT']._serialized_end=5652 - _globals['_CLASSIFIERCATEGORY']._serialized_start=5655 - _globals['_CLASSIFIERCATEGORY']._serialized_end=6044 - _globals['_CLASSIFIERPARAMETERS']._serialized_start=6047 - _globals['_CLASSIFIERPARAMETERS']._serialized_end=6361 - _globals['_INTERPOLATEPARAMETERS']._serialized_start=6364 - _globals['_INTERPOLATEPARAMETERS']._serialized_end=6502 - _globals['_TRANSFORMCOLORADJUST']._serialized_start=6505 - _globals['_TRANSFORMCOLORADJUST']._serialized_end=7076 - _globals['_TRANSFORMDEPTHCALC']._serialized_start=7079 - _globals['_TRANSFORMDEPTHCALC']._serialized_end=7253 - _globals['_TRANSFORMMATRIX']._serialized_start=7255 - _globals['_TRANSFORMMATRIX']._serialized_end=7296 - _globals['_TRANSFORMRESAMPLE']._serialized_start=7299 - _globals['_TRANSFORMRESAMPLE']._serialized_end=7715 - _globals['_CAMERAPARAMETERS']._serialized_start=7718 - _globals['_CAMERAPARAMETERS']._serialized_end=7912 - _globals['_TRANSFORMCAMERAPOSE']._serialized_start=7915 - _globals['_TRANSFORMCAMERAPOSE']._serialized_end=8285 - _globals['_TRANSFORMPARAMETERS']._serialized_start=8288 - _globals['_TRANSFORMPARAMETERS']._serialized_end=8699 - _globals['_ASSETPARAMETERS']._serialized_start=8702 - _globals['_ASSETPARAMETERS']._serialized_end=8895 - _globals['_ANSWERMETA']._serialized_start=8898 - _globals['_ANSWERMETA']._serialized_end=9078 - _globals['_ANSWER']._serialized_start=9081 - _globals['_ANSWER']._serialized_end=9369 - _globals['_ANSWERBATCH']._serialized_start=9371 - _globals['_ANSWERBATCH']._serialized_end=9485 - _globals['_REQUEST']._serialized_start=9488 - _globals['_REQUEST']._serialized_end=10378 - _globals['_ONSTATUS']._serialized_start=10381 - _globals['_ONSTATUS']._serialized_end=10586 - _globals['_STAGE']._serialized_start=10589 - _globals['_STAGE']._serialized_end=10766 - _globals['_CHAINREQUEST']._serialized_start=10768 - _globals['_CHAINREQUEST']._serialized_end=10882 - _globals['_GENERATIONSERVICE']._serialized_start=13239 - _globals['_GENERATIONSERVICE']._serialized_end=13494 + _globals['_CONTENTCREDENTIALSPARAMETERS']._serialized_start=4227 + _globals['_CONTENTCREDENTIALSPARAMETERS']._serialized_end=4485 + _globals['_CONTENTCREDENTIALSPARAMETERS_MODELMETADATA']._serialized_start=4384 + _globals['_CONTENTCREDENTIALSPARAMETERS_MODELMETADATA']._serialized_end=4471 + _globals['_FINETUNINGPARAMETERS']._serialized_start=4487 + _globals['_FINETUNINGPARAMETERS']._serialized_end=4576 + _globals['_IMAGEPARAMETERS']._serialized_start=4579 + _globals['_IMAGEPARAMETERS']._serialized_end=5655 + _globals['_CLASSIFIERCONCEPT']._serialized_start=5657 + _globals['_CLASSIFIERCONCEPT']._serialized_end=5751 + _globals['_CLASSIFIERCATEGORY']._serialized_start=5754 + _globals['_CLASSIFIERCATEGORY']._serialized_end=6143 + _globals['_CLASSIFIERPARAMETERS']._serialized_start=6146 + _globals['_CLASSIFIERPARAMETERS']._serialized_end=6460 + _globals['_INTERPOLATEPARAMETERS']._serialized_start=6463 + _globals['_INTERPOLATEPARAMETERS']._serialized_end=6601 + _globals['_TRANSFORMCOLORADJUST']._serialized_start=6604 + _globals['_TRANSFORMCOLORADJUST']._serialized_end=7175 + _globals['_TRANSFORMDEPTHCALC']._serialized_start=7178 + _globals['_TRANSFORMDEPTHCALC']._serialized_end=7352 + _globals['_TRANSFORMMATRIX']._serialized_start=7354 + _globals['_TRANSFORMMATRIX']._serialized_end=7395 + _globals['_TRANSFORMRESAMPLE']._serialized_start=7398 + _globals['_TRANSFORMRESAMPLE']._serialized_end=7814 + _globals['_CAMERAPARAMETERS']._serialized_start=7817 + _globals['_CAMERAPARAMETERS']._serialized_end=8011 + _globals['_TRANSFORMCAMERAPOSE']._serialized_start=8014 + _globals['_TRANSFORMCAMERAPOSE']._serialized_end=8384 + _globals['_TRANSFORMPARAMETERS']._serialized_start=8387 + _globals['_TRANSFORMPARAMETERS']._serialized_end=8798 + _globals['_ASSETPARAMETERS']._serialized_start=8801 + _globals['_ASSETPARAMETERS']._serialized_end=8994 + _globals['_ANSWERMETA']._serialized_start=8997 + _globals['_ANSWERMETA']._serialized_end=9177 + _globals['_ANSWER']._serialized_start=9180 + _globals['_ANSWER']._serialized_end=9468 + _globals['_ANSWERBATCH']._serialized_start=9470 + _globals['_ANSWERBATCH']._serialized_end=9584 + _globals['_REQUEST']._serialized_start=9587 + _globals['_REQUEST']._serialized_end=10477 + _globals['_ONSTATUS']._serialized_start=10480 + _globals['_ONSTATUS']._serialized_end=10685 + _globals['_STAGE']._serialized_start=10688 + _globals['_STAGE']._serialized_end=10865 + _globals['_CHAINREQUEST']._serialized_start=10867 + _globals['_CHAINREQUEST']._serialized_end=10981 + _globals['_GENERATIONSERVICE']._serialized_start=13338 + _globals['_GENERATIONSERVICE']._serialized_end=13593 # @@protoc_insertion_point(module_scope) diff --git a/src/stability_api/platform/generation/v1/generation_pb2.pyi b/src/stability_api/platform/generation/v1/generation_pb2.pyi index 8f77dc9..9a00773 100644 --- a/src/stability_api/platform/generation/v1/generation_pb2.pyi +++ b/src/stability_api/platform/generation/v1/generation_pb2.pyi @@ -438,17 +438,17 @@ class T2IAdapterParameter(_message.Message): adapter_init_type: T2IAdapterInit def __init__(self, adapter_type: _Optional[_Union[T2IAdapter, str]] = ..., adapter_strength: _Optional[float] = ..., adapter_init_type: _Optional[_Union[T2IAdapterInit, str]] = ...) -> None: ... -class CAIParameters(_message.Message): +class ContentCredentialsParameters(_message.Message): __slots__ = ["model_metadata"] class ModelMetadata(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): __slots__ = [] - MODEL_METADATA_UNSPECIFIED: _ClassVar[CAIParameters.ModelMetadata] - MODEL_METADATA_SIGN_WITH_ENGINE_ID: _ClassVar[CAIParameters.ModelMetadata] - MODEL_METADATA_UNSPECIFIED: CAIParameters.ModelMetadata - MODEL_METADATA_SIGN_WITH_ENGINE_ID: CAIParameters.ModelMetadata + MODEL_METADATA_UNSPECIFIED: _ClassVar[ContentCredentialsParameters.ModelMetadata] + MODEL_METADATA_SIGN_WITH_ENGINE_ID: _ClassVar[ContentCredentialsParameters.ModelMetadata] + MODEL_METADATA_UNSPECIFIED: ContentCredentialsParameters.ModelMetadata + MODEL_METADATA_SIGN_WITH_ENGINE_ID: ContentCredentialsParameters.ModelMetadata MODEL_METADATA_FIELD_NUMBER: _ClassVar[int] - model_metadata: CAIParameters.ModelMetadata - def __init__(self, model_metadata: _Optional[_Union[CAIParameters.ModelMetadata, str]] = ...) -> None: ... + model_metadata: ContentCredentialsParameters.ModelMetadata + def __init__(self, model_metadata: _Optional[_Union[ContentCredentialsParameters.ModelMetadata, str]] = ...) -> None: ... class FineTuningParameters(_message.Message): __slots__ = ["model_id", "weight"] @@ -459,7 +459,7 @@ class FineTuningParameters(_message.Message): def __init__(self, model_id: _Optional[str] = ..., weight: _Optional[float] = ...) -> None: ... class ImageParameters(_message.Message): - __slots__ = ["height", "width", "seed", "samples", "steps", "transform", "parameters", "masked_area_init", "weight_method", "quantize", "cai_parameters", "adapter", "fine_tuning_parameters"] + __slots__ = ["height", "width", "seed", "samples", "steps", "transform", "parameters", "masked_area_init", "weight_method", "quantize", "adapter", "fine_tuning_parameters", "content_credentials_parameters"] HEIGHT_FIELD_NUMBER: _ClassVar[int] WIDTH_FIELD_NUMBER: _ClassVar[int] SEED_FIELD_NUMBER: _ClassVar[int] @@ -470,9 +470,9 @@ class ImageParameters(_message.Message): MASKED_AREA_INIT_FIELD_NUMBER: _ClassVar[int] WEIGHT_METHOD_FIELD_NUMBER: _ClassVar[int] QUANTIZE_FIELD_NUMBER: _ClassVar[int] - CAI_PARAMETERS_FIELD_NUMBER: _ClassVar[int] ADAPTER_FIELD_NUMBER: _ClassVar[int] FINE_TUNING_PARAMETERS_FIELD_NUMBER: _ClassVar[int] + CONTENT_CREDENTIALS_PARAMETERS_FIELD_NUMBER: _ClassVar[int] height: int width: int seed: _containers.RepeatedScalarFieldContainer[int] @@ -483,10 +483,10 @@ class ImageParameters(_message.Message): masked_area_init: MaskedAreaInit weight_method: WeightMethod quantize: bool - cai_parameters: CAIParameters adapter: T2IAdapterParameter fine_tuning_parameters: _containers.RepeatedCompositeFieldContainer[FineTuningParameters] - def __init__(self, height: _Optional[int] = ..., width: _Optional[int] = ..., seed: _Optional[_Iterable[int]] = ..., samples: _Optional[int] = ..., steps: _Optional[int] = ..., transform: _Optional[_Union[TransformType, _Mapping]] = ..., parameters: _Optional[_Iterable[_Union[StepParameter, _Mapping]]] = ..., masked_area_init: _Optional[_Union[MaskedAreaInit, str]] = ..., weight_method: _Optional[_Union[WeightMethod, str]] = ..., quantize: bool = ..., cai_parameters: _Optional[_Union[CAIParameters, _Mapping]] = ..., adapter: _Optional[_Union[T2IAdapterParameter, _Mapping]] = ..., fine_tuning_parameters: _Optional[_Iterable[_Union[FineTuningParameters, _Mapping]]] = ...) -> None: ... + content_credentials_parameters: ContentCredentialsParameters + def __init__(self, height: _Optional[int] = ..., width: _Optional[int] = ..., seed: _Optional[_Iterable[int]] = ..., samples: _Optional[int] = ..., steps: _Optional[int] = ..., transform: _Optional[_Union[TransformType, _Mapping]] = ..., parameters: _Optional[_Iterable[_Union[StepParameter, _Mapping]]] = ..., masked_area_init: _Optional[_Union[MaskedAreaInit, str]] = ..., weight_method: _Optional[_Union[WeightMethod, str]] = ..., quantize: bool = ..., adapter: _Optional[_Union[T2IAdapterParameter, _Mapping]] = ..., fine_tuning_parameters: _Optional[_Iterable[_Union[FineTuningParameters, _Mapping]]] = ..., content_credentials_parameters: _Optional[_Union[ContentCredentialsParameters, _Mapping]] = ...) -> None: ... class ClassifierConcept(_message.Message): __slots__ = ["concept", "threshold"] From f486e326ef3b47f8e83b6df71f3dfa4cc9c70528 Mon Sep 17 00:00:00 2001 From: Stephan Auerhahn Date: Mon, 7 Aug 2023 05:43:37 +0000 Subject: [PATCH 18/20] update generators --- buf.gen.go.yaml | 2 +- buf.gen.js.yaml | 4 +- buf.gen.py.yaml | 4 +- .../dashboard/v1/dashboard_connect.d.ts | 2 +- .../dashboard/v1/dashboard_connect.js | 2 +- .../platform/dashboard/v1/dashboard_pb.d.ts | 2 +- .../platform/dashboard/v1/dashboard_pb.js | 2 +- .../dashboardv1connect/dashboard.connect.go | 104 ++++++++++++------ .../platform/engines/v1/engines_connect.d.ts | 2 +- .../platform/engines/v1/engines_connect.js | 2 +- .../platform/engines/v1/engines_pb.d.ts | 2 +- .../platform/engines/v1/engines_pb.js | 2 +- .../v1/enginesv1connect/engines.connect.go | 14 ++- .../finetuning/finetuning_connect.d.ts | 2 +- .../platform/finetuning/finetuning_connect.js | 2 +- .../platform/finetuning/finetuning_pb.d.ts | 2 +- .../platform/finetuning/finetuning_pb.js | 2 +- .../finetuningconnect/finetuning.connect.go | 44 +++++--- .../generation/v1/generation_connect.d.ts | 2 +- .../generation/v1/generation_connect.js | 2 +- .../platform/generation/v1/generation_pb.d.ts | 2 +- .../platform/generation/v1/generation_pb.js | 2 +- .../generationv1connect/generation.connect.go | 20 +++- .../platform/project/v1/project_connect.d.ts | 2 +- .../platform/project/v1/project_connect.js | 2 +- .../platform/project/v1/project_pb.d.ts | 2 +- .../platform/project/v1/project_pb.js | 2 +- .../v1/projectv1connect/project.connect.go | 62 +++++++---- src/stability_api/tensors/tensors_pb.d.ts | 2 +- src/stability_api/tensors/tensors_pb.js | 2 +- 30 files changed, 193 insertions(+), 105 deletions(-) diff --git a/buf.gen.go.yaml b/buf.gen.go.yaml index ac11bef..b2f6b3f 100644 --- a/buf.gen.go.yaml +++ b/buf.gen.go.yaml @@ -9,7 +9,7 @@ managed: except: - buf.build/googleapis/googleapis plugins: - - plugin: buf.build/bufbuild/connect-go:v1.7.0 + - plugin: buf.build/bufbuild/connect-go:v1.10.0 out: '.' opt: - paths=source_relative diff --git a/buf.gen.js.yaml b/buf.gen.js.yaml index 50c2991..c4705a1 100644 --- a/buf.gen.js.yaml +++ b/buf.gen.js.yaml @@ -2,7 +2,7 @@ version: v1 managed: enabled: true plugins: - - plugin: buf.build/bufbuild/connect-es:v0.8.6 + - plugin: buf.build/bufbuild/connect-es:v0.12.0 out: '.' - - plugin: buf.build/bufbuild/es:v1.2.0 + - plugin: buf.build/bufbuild/es out: '.' \ No newline at end of file diff --git a/buf.gen.py.yaml b/buf.gen.py.yaml index cafa8bd..72a06e7 100644 --- a/buf.gen.py.yaml +++ b/buf.gen.py.yaml @@ -2,9 +2,9 @@ version: v1 managed: enabled: true plugins: - - plugin: buf.build/grpc/python:v1.54.1 + - plugin: buf.build/grpc/python:v1.56.2 out: '.' - plugin: buf.build/protocolbuffers/python out: '.' - - plugin: buf.build/protocolbuffers/pyi:v23.0 + - plugin: buf.build/protocolbuffers/pyi:v23.4 out: '.' diff --git a/src/stability_api/platform/dashboard/v1/dashboard_connect.d.ts b/src/stability_api/platform/dashboard/v1/dashboard_connect.d.ts index 275b228..b4cde11 100644 --- a/src/stability_api/platform/dashboard/v1/dashboard_connect.d.ts +++ b/src/stability_api/platform/dashboard/v1/dashboard_connect.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-connect-es v0.8.6 +// @generated by protoc-gen-connect-es v0.12.0 // @generated from file stability_api/platform/dashboard/v1/dashboard.proto (package stabilityai.api.dashboard.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/stability_api/platform/dashboard/v1/dashboard_connect.js b/src/stability_api/platform/dashboard/v1/dashboard_connect.js index f1dc051..38b4260 100644 --- a/src/stability_api/platform/dashboard/v1/dashboard_connect.js +++ b/src/stability_api/platform/dashboard/v1/dashboard_connect.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-connect-es v0.8.6 +// @generated by protoc-gen-connect-es v0.12.0 // @generated from file stability_api/platform/dashboard/v1/dashboard.proto (package stabilityai.api.dashboard.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/stability_api/platform/dashboard/v1/dashboard_pb.d.ts b/src/stability_api/platform/dashboard/v1/dashboard_pb.d.ts index 97d1257..6ffe2a2 100644 --- a/src/stability_api/platform/dashboard/v1/dashboard_pb.d.ts +++ b/src/stability_api/platform/dashboard/v1/dashboard_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.2.0 +// @generated by protoc-gen-es v1.3.0 // @generated from file stability_api/platform/dashboard/v1/dashboard.proto (package stabilityai.api.dashboard.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/stability_api/platform/dashboard/v1/dashboard_pb.js b/src/stability_api/platform/dashboard/v1/dashboard_pb.js index 822113b..6799971 100644 --- a/src/stability_api/platform/dashboard/v1/dashboard_pb.js +++ b/src/stability_api/platform/dashboard/v1/dashboard_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.2.0 +// @generated by protoc-gen-es v1.3.0 // @generated from file stability_api/platform/dashboard/v1/dashboard.proto (package stabilityai.api.dashboard.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/stability_api/platform/dashboard/v1/dashboardv1connect/dashboard.connect.go b/src/stability_api/platform/dashboard/v1/dashboardv1connect/dashboard.connect.go index d3130b9..514f6a0 100644 --- a/src/stability_api/platform/dashboard/v1/dashboardv1connect/dashboard.connect.go +++ b/src/stability_api/platform/dashboard/v1/dashboardv1connect/dashboard.connect.go @@ -335,88 +335,124 @@ type DashboardServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewDashboardServiceHandler(svc DashboardServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler) { - mux := http.NewServeMux() - mux.Handle(DashboardServiceGetMeProcedure, connect_go.NewUnaryHandler( + dashboardServiceGetMeHandler := connect_go.NewUnaryHandler( DashboardServiceGetMeProcedure, svc.GetMe, opts..., - )) - mux.Handle(DashboardServiceGetOrganizationProcedure, connect_go.NewUnaryHandler( + ) + dashboardServiceGetOrganizationHandler := connect_go.NewUnaryHandler( DashboardServiceGetOrganizationProcedure, svc.GetOrganization, opts..., - )) - mux.Handle(DashboardServiceGetMetricsProcedure, connect_go.NewUnaryHandler( + ) + dashboardServiceGetMetricsHandler := connect_go.NewUnaryHandler( DashboardServiceGetMetricsProcedure, svc.GetMetrics, opts..., - )) - mux.Handle(DashboardServiceCreateAPIKeyProcedure, connect_go.NewUnaryHandler( + ) + dashboardServiceCreateAPIKeyHandler := connect_go.NewUnaryHandler( DashboardServiceCreateAPIKeyProcedure, svc.CreateAPIKey, opts..., - )) - mux.Handle(DashboardServiceDeleteAPIKeyProcedure, connect_go.NewUnaryHandler( + ) + dashboardServiceDeleteAPIKeyHandler := connect_go.NewUnaryHandler( DashboardServiceDeleteAPIKeyProcedure, svc.DeleteAPIKey, opts..., - )) - mux.Handle(DashboardServiceUpdateDefaultOrganizationProcedure, connect_go.NewUnaryHandler( + ) + dashboardServiceUpdateDefaultOrganizationHandler := connect_go.NewUnaryHandler( DashboardServiceUpdateDefaultOrganizationProcedure, svc.UpdateDefaultOrganization, opts..., - )) - mux.Handle(DashboardServiceGetClientSettingsProcedure, connect_go.NewUnaryHandler( + ) + dashboardServiceGetClientSettingsHandler := connect_go.NewUnaryHandler( DashboardServiceGetClientSettingsProcedure, svc.GetClientSettings, opts..., - )) - mux.Handle(DashboardServiceSetClientSettingsProcedure, connect_go.NewUnaryHandler( + ) + dashboardServiceSetClientSettingsHandler := connect_go.NewUnaryHandler( DashboardServiceSetClientSettingsProcedure, svc.SetClientSettings, opts..., - )) - mux.Handle(DashboardServiceUpdateUserInfoProcedure, connect_go.NewUnaryHandler( + ) + dashboardServiceUpdateUserInfoHandler := connect_go.NewUnaryHandler( DashboardServiceUpdateUserInfoProcedure, svc.UpdateUserInfo, opts..., - )) - mux.Handle(DashboardServiceCreatePasswordChangeTicketProcedure, connect_go.NewUnaryHandler( + ) + dashboardServiceCreatePasswordChangeTicketHandler := connect_go.NewUnaryHandler( DashboardServiceCreatePasswordChangeTicketProcedure, svc.CreatePasswordChangeTicket, opts..., - )) - mux.Handle(DashboardServiceDeleteAccountProcedure, connect_go.NewUnaryHandler( + ) + dashboardServiceDeleteAccountHandler := connect_go.NewUnaryHandler( DashboardServiceDeleteAccountProcedure, svc.DeleteAccount, opts..., - )) - mux.Handle(DashboardServiceCreateChargeProcedure, connect_go.NewUnaryHandler( + ) + dashboardServiceCreateChargeHandler := connect_go.NewUnaryHandler( DashboardServiceCreateChargeProcedure, svc.CreateCharge, opts..., - )) - mux.Handle(DashboardServiceGetChargesProcedure, connect_go.NewUnaryHandler( + ) + dashboardServiceGetChargesHandler := connect_go.NewUnaryHandler( DashboardServiceGetChargesProcedure, svc.GetCharges, opts..., - )) - mux.Handle(DashboardServiceCreateAutoChargeIntentProcedure, connect_go.NewUnaryHandler( + ) + dashboardServiceCreateAutoChargeIntentHandler := connect_go.NewUnaryHandler( DashboardServiceCreateAutoChargeIntentProcedure, svc.CreateAutoChargeIntent, opts..., - )) - mux.Handle(DashboardServiceUpdateAutoChargeIntentProcedure, connect_go.NewUnaryHandler( + ) + dashboardServiceUpdateAutoChargeIntentHandler := connect_go.NewUnaryHandler( DashboardServiceUpdateAutoChargeIntentProcedure, svc.UpdateAutoChargeIntent, opts..., - )) - mux.Handle(DashboardServiceGetAutoChargeIntentProcedure, connect_go.NewUnaryHandler( + ) + dashboardServiceGetAutoChargeIntentHandler := connect_go.NewUnaryHandler( DashboardServiceGetAutoChargeIntentProcedure, svc.GetAutoChargeIntent, opts..., - )) - return "/stabilityai.api.dashboard.v1.DashboardService/", mux + ) + return "/stabilityai.api.dashboard.v1.DashboardService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + switch r.URL.Path { + case DashboardServiceGetMeProcedure: + dashboardServiceGetMeHandler.ServeHTTP(w, r) + case DashboardServiceGetOrganizationProcedure: + dashboardServiceGetOrganizationHandler.ServeHTTP(w, r) + case DashboardServiceGetMetricsProcedure: + dashboardServiceGetMetricsHandler.ServeHTTP(w, r) + case DashboardServiceCreateAPIKeyProcedure: + dashboardServiceCreateAPIKeyHandler.ServeHTTP(w, r) + case DashboardServiceDeleteAPIKeyProcedure: + dashboardServiceDeleteAPIKeyHandler.ServeHTTP(w, r) + case DashboardServiceUpdateDefaultOrganizationProcedure: + dashboardServiceUpdateDefaultOrganizationHandler.ServeHTTP(w, r) + case DashboardServiceGetClientSettingsProcedure: + dashboardServiceGetClientSettingsHandler.ServeHTTP(w, r) + case DashboardServiceSetClientSettingsProcedure: + dashboardServiceSetClientSettingsHandler.ServeHTTP(w, r) + case DashboardServiceUpdateUserInfoProcedure: + dashboardServiceUpdateUserInfoHandler.ServeHTTP(w, r) + case DashboardServiceCreatePasswordChangeTicketProcedure: + dashboardServiceCreatePasswordChangeTicketHandler.ServeHTTP(w, r) + case DashboardServiceDeleteAccountProcedure: + dashboardServiceDeleteAccountHandler.ServeHTTP(w, r) + case DashboardServiceCreateChargeProcedure: + dashboardServiceCreateChargeHandler.ServeHTTP(w, r) + case DashboardServiceGetChargesProcedure: + dashboardServiceGetChargesHandler.ServeHTTP(w, r) + case DashboardServiceCreateAutoChargeIntentProcedure: + dashboardServiceCreateAutoChargeIntentHandler.ServeHTTP(w, r) + case DashboardServiceUpdateAutoChargeIntentProcedure: + dashboardServiceUpdateAutoChargeIntentHandler.ServeHTTP(w, r) + case DashboardServiceGetAutoChargeIntentProcedure: + dashboardServiceGetAutoChargeIntentHandler.ServeHTTP(w, r) + default: + http.NotFound(w, r) + } + }) } // UnimplementedDashboardServiceHandler returns CodeUnimplemented from all methods. diff --git a/src/stability_api/platform/engines/v1/engines_connect.d.ts b/src/stability_api/platform/engines/v1/engines_connect.d.ts index 798389d..7905661 100644 --- a/src/stability_api/platform/engines/v1/engines_connect.d.ts +++ b/src/stability_api/platform/engines/v1/engines_connect.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-connect-es v0.8.6 +// @generated by protoc-gen-connect-es v0.12.0 // @generated from file stability_api/platform/engines/v1/engines.proto (package stabilityai.platformapis.engines.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/stability_api/platform/engines/v1/engines_connect.js b/src/stability_api/platform/engines/v1/engines_connect.js index 6045412..b8f4259 100644 --- a/src/stability_api/platform/engines/v1/engines_connect.js +++ b/src/stability_api/platform/engines/v1/engines_connect.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-connect-es v0.8.6 +// @generated by protoc-gen-connect-es v0.12.0 // @generated from file stability_api/platform/engines/v1/engines.proto (package stabilityai.platformapis.engines.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/stability_api/platform/engines/v1/engines_pb.d.ts b/src/stability_api/platform/engines/v1/engines_pb.d.ts index 81dff58..13c0d17 100644 --- a/src/stability_api/platform/engines/v1/engines_pb.d.ts +++ b/src/stability_api/platform/engines/v1/engines_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.2.0 +// @generated by protoc-gen-es v1.3.0 // @generated from file stability_api/platform/engines/v1/engines.proto (package stabilityai.platformapis.engines.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/stability_api/platform/engines/v1/engines_pb.js b/src/stability_api/platform/engines/v1/engines_pb.js index b0116fe..2c9f820 100644 --- a/src/stability_api/platform/engines/v1/engines_pb.js +++ b/src/stability_api/platform/engines/v1/engines_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.2.0 +// @generated by protoc-gen-es v1.3.0 // @generated from file stability_api/platform/engines/v1/engines.proto (package stabilityai.platformapis.engines.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/stability_api/platform/engines/v1/enginesv1connect/engines.connect.go b/src/stability_api/platform/engines/v1/enginesv1connect/engines.connect.go index d7ddc1e..3908b7c 100644 --- a/src/stability_api/platform/engines/v1/enginesv1connect/engines.connect.go +++ b/src/stability_api/platform/engines/v1/enginesv1connect/engines.connect.go @@ -85,13 +85,19 @@ type EnginesServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewEnginesServiceHandler(svc EnginesServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler) { - mux := http.NewServeMux() - mux.Handle(EnginesServiceListEnginesProcedure, connect_go.NewUnaryHandler( + enginesServiceListEnginesHandler := connect_go.NewUnaryHandler( EnginesServiceListEnginesProcedure, svc.ListEngines, opts..., - )) - return "/stabilityai.platformapis.engines.v1.EnginesService/", mux + ) + return "/stabilityai.platformapis.engines.v1.EnginesService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + switch r.URL.Path { + case EnginesServiceListEnginesProcedure: + enginesServiceListEnginesHandler.ServeHTTP(w, r) + default: + http.NotFound(w, r) + } + }) } // UnimplementedEnginesServiceHandler returns CodeUnimplemented from all methods. diff --git a/src/stability_api/platform/finetuning/finetuning_connect.d.ts b/src/stability_api/platform/finetuning/finetuning_connect.d.ts index 50034bf..f238172 100644 --- a/src/stability_api/platform/finetuning/finetuning_connect.d.ts +++ b/src/stability_api/platform/finetuning/finetuning_connect.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-connect-es v0.8.6 +// @generated by protoc-gen-connect-es v0.12.0 // @generated from file stability_api/platform/finetuning/finetuning.proto (package gooseai, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/stability_api/platform/finetuning/finetuning_connect.js b/src/stability_api/platform/finetuning/finetuning_connect.js index d59db29..b2215db 100644 --- a/src/stability_api/platform/finetuning/finetuning_connect.js +++ b/src/stability_api/platform/finetuning/finetuning_connect.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-connect-es v0.8.6 +// @generated by protoc-gen-connect-es v0.12.0 // @generated from file stability_api/platform/finetuning/finetuning.proto (package gooseai, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/stability_api/platform/finetuning/finetuning_pb.d.ts b/src/stability_api/platform/finetuning/finetuning_pb.d.ts index 454df9a..edee9b4 100644 --- a/src/stability_api/platform/finetuning/finetuning_pb.d.ts +++ b/src/stability_api/platform/finetuning/finetuning_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.2.0 +// @generated by protoc-gen-es v1.3.0 // @generated from file stability_api/platform/finetuning/finetuning.proto (package gooseai, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/stability_api/platform/finetuning/finetuning_pb.js b/src/stability_api/platform/finetuning/finetuning_pb.js index b82f537..9ce129f 100644 --- a/src/stability_api/platform/finetuning/finetuning_pb.js +++ b/src/stability_api/platform/finetuning/finetuning_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.2.0 +// @generated by protoc-gen-es v1.3.0 // @generated from file stability_api/platform/finetuning/finetuning.proto (package gooseai, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/stability_api/platform/finetuning/finetuningconnect/finetuning.connect.go b/src/stability_api/platform/finetuning/finetuningconnect/finetuning.connect.go index 4216e8e..860ee9c 100644 --- a/src/stability_api/platform/finetuning/finetuningconnect/finetuning.connect.go +++ b/src/stability_api/platform/finetuning/finetuningconnect/finetuning.connect.go @@ -174,38 +174,54 @@ type FineTuningServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewFineTuningServiceHandler(svc FineTuningServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler) { - mux := http.NewServeMux() - mux.Handle(FineTuningServiceCreateModelProcedure, connect_go.NewUnaryHandler( + fineTuningServiceCreateModelHandler := connect_go.NewUnaryHandler( FineTuningServiceCreateModelProcedure, svc.CreateModel, opts..., - )) - mux.Handle(FineTuningServiceGetModelProcedure, connect_go.NewUnaryHandler( + ) + fineTuningServiceGetModelHandler := connect_go.NewUnaryHandler( FineTuningServiceGetModelProcedure, svc.GetModel, opts..., - )) - mux.Handle(FineTuningServiceUpdateModelProcedure, connect_go.NewUnaryHandler( + ) + fineTuningServiceUpdateModelHandler := connect_go.NewUnaryHandler( FineTuningServiceUpdateModelProcedure, svc.UpdateModel, opts..., - )) - mux.Handle(FineTuningServiceDeleteModelProcedure, connect_go.NewUnaryHandler( + ) + fineTuningServiceDeleteModelHandler := connect_go.NewUnaryHandler( FineTuningServiceDeleteModelProcedure, svc.DeleteModel, opts..., - )) - mux.Handle(FineTuningServiceResubmitModelProcedure, connect_go.NewUnaryHandler( + ) + fineTuningServiceResubmitModelHandler := connect_go.NewUnaryHandler( FineTuningServiceResubmitModelProcedure, svc.ResubmitModel, opts..., - )) - mux.Handle(FineTuningServiceListModelsProcedure, connect_go.NewUnaryHandler( + ) + fineTuningServiceListModelsHandler := connect_go.NewUnaryHandler( FineTuningServiceListModelsProcedure, svc.ListModels, opts..., - )) - return "/gooseai.FineTuningService/", mux + ) + return "/gooseai.FineTuningService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + switch r.URL.Path { + case FineTuningServiceCreateModelProcedure: + fineTuningServiceCreateModelHandler.ServeHTTP(w, r) + case FineTuningServiceGetModelProcedure: + fineTuningServiceGetModelHandler.ServeHTTP(w, r) + case FineTuningServiceUpdateModelProcedure: + fineTuningServiceUpdateModelHandler.ServeHTTP(w, r) + case FineTuningServiceDeleteModelProcedure: + fineTuningServiceDeleteModelHandler.ServeHTTP(w, r) + case FineTuningServiceResubmitModelProcedure: + fineTuningServiceResubmitModelHandler.ServeHTTP(w, r) + case FineTuningServiceListModelsProcedure: + fineTuningServiceListModelsHandler.ServeHTTP(w, r) + default: + http.NotFound(w, r) + } + }) } // UnimplementedFineTuningServiceHandler returns CodeUnimplemented from all methods. diff --git a/src/stability_api/platform/generation/v1/generation_connect.d.ts b/src/stability_api/platform/generation/v1/generation_connect.d.ts index 57c1880..0a24dfb 100644 --- a/src/stability_api/platform/generation/v1/generation_connect.d.ts +++ b/src/stability_api/platform/generation/v1/generation_connect.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-connect-es v0.8.6 +// @generated by protoc-gen-connect-es v0.12.0 // @generated from file stability_api/platform/generation/v1/generation.proto (package stabilityai.platformapis.generation.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/stability_api/platform/generation/v1/generation_connect.js b/src/stability_api/platform/generation/v1/generation_connect.js index c0528c1..df9bc85 100644 --- a/src/stability_api/platform/generation/v1/generation_connect.js +++ b/src/stability_api/platform/generation/v1/generation_connect.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-connect-es v0.8.6 +// @generated by protoc-gen-connect-es v0.12.0 // @generated from file stability_api/platform/generation/v1/generation.proto (package stabilityai.platformapis.generation.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/stability_api/platform/generation/v1/generation_pb.d.ts b/src/stability_api/platform/generation/v1/generation_pb.d.ts index 04fbe49..9e03b82 100644 --- a/src/stability_api/platform/generation/v1/generation_pb.d.ts +++ b/src/stability_api/platform/generation/v1/generation_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.2.0 +// @generated by protoc-gen-es v1.3.0 // @generated from file stability_api/platform/generation/v1/generation.proto (package stabilityai.platformapis.generation.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/stability_api/platform/generation/v1/generation_pb.js b/src/stability_api/platform/generation/v1/generation_pb.js index 81532b1..f30d5b1 100644 --- a/src/stability_api/platform/generation/v1/generation_pb.js +++ b/src/stability_api/platform/generation/v1/generation_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.2.0 +// @generated by protoc-gen-es v1.3.0 // @generated from file stability_api/platform/generation/v1/generation.proto (package stabilityai.platformapis.generation.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/stability_api/platform/generation/v1/generationv1connect/generation.connect.go b/src/stability_api/platform/generation/v1/generationv1connect/generation.connect.go index 63da0e9..2284c05 100644 --- a/src/stability_api/platform/generation/v1/generationv1connect/generation.connect.go +++ b/src/stability_api/platform/generation/v1/generationv1connect/generation.connect.go @@ -101,18 +101,26 @@ type GenerationServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewGenerationServiceHandler(svc GenerationServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler) { - mux := http.NewServeMux() - mux.Handle(GenerationServiceGenerateProcedure, connect_go.NewServerStreamHandler( + generationServiceGenerateHandler := connect_go.NewServerStreamHandler( GenerationServiceGenerateProcedure, svc.Generate, opts..., - )) - mux.Handle(GenerationServiceChainGenerateProcedure, connect_go.NewServerStreamHandler( + ) + generationServiceChainGenerateHandler := connect_go.NewServerStreamHandler( GenerationServiceChainGenerateProcedure, svc.ChainGenerate, opts..., - )) - return "/stabilityai.platformapis.generation.v1.GenerationService/", mux + ) + return "/stabilityai.platformapis.generation.v1.GenerationService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + switch r.URL.Path { + case GenerationServiceGenerateProcedure: + generationServiceGenerateHandler.ServeHTTP(w, r) + case GenerationServiceChainGenerateProcedure: + generationServiceChainGenerateHandler.ServeHTTP(w, r) + default: + http.NotFound(w, r) + } + }) } // UnimplementedGenerationServiceHandler returns CodeUnimplemented from all methods. diff --git a/src/stability_api/platform/project/v1/project_connect.d.ts b/src/stability_api/platform/project/v1/project_connect.d.ts index 711a7aa..d697fe7 100644 --- a/src/stability_api/platform/project/v1/project_connect.d.ts +++ b/src/stability_api/platform/project/v1/project_connect.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-connect-es v0.8.6 +// @generated by protoc-gen-connect-es v0.12.0 // @generated from file stability_api/platform/project/v1/project.proto (package stabilityai.platformapis.project.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/stability_api/platform/project/v1/project_connect.js b/src/stability_api/platform/project/v1/project_connect.js index 3873155..95952d5 100644 --- a/src/stability_api/platform/project/v1/project_connect.js +++ b/src/stability_api/platform/project/v1/project_connect.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-connect-es v0.8.6 +// @generated by protoc-gen-connect-es v0.12.0 // @generated from file stability_api/platform/project/v1/project.proto (package stabilityai.platformapis.project.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/stability_api/platform/project/v1/project_pb.d.ts b/src/stability_api/platform/project/v1/project_pb.d.ts index 6b529a9..0ea5617 100644 --- a/src/stability_api/platform/project/v1/project_pb.d.ts +++ b/src/stability_api/platform/project/v1/project_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.2.0 +// @generated by protoc-gen-es v1.3.0 // @generated from file stability_api/platform/project/v1/project.proto (package stabilityai.platformapis.project.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/stability_api/platform/project/v1/project_pb.js b/src/stability_api/platform/project/v1/project_pb.js index 1f85ec2..3b1d68c 100644 --- a/src/stability_api/platform/project/v1/project_pb.js +++ b/src/stability_api/platform/project/v1/project_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.2.0 +// @generated by protoc-gen-es v1.3.0 // @generated from file stability_api/platform/project/v1/project.proto (package stabilityai.platformapis.project.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/stability_api/platform/project/v1/projectv1connect/project.connect.go b/src/stability_api/platform/project/v1/projectv1connect/project.connect.go index 7033e09..7ab958a 100644 --- a/src/stability_api/platform/project/v1/projectv1connect/project.connect.go +++ b/src/stability_api/platform/project/v1/projectv1connect/project.connect.go @@ -224,53 +224,75 @@ type ProjectServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewProjectServiceHandler(svc ProjectServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler) { - mux := http.NewServeMux() - mux.Handle(ProjectServiceCreateProcedure, connect_go.NewUnaryHandler( + projectServiceCreateHandler := connect_go.NewUnaryHandler( ProjectServiceCreateProcedure, svc.Create, opts..., - )) - mux.Handle(ProjectServiceUpdateProcedure, connect_go.NewUnaryHandler( + ) + projectServiceUpdateHandler := connect_go.NewUnaryHandler( ProjectServiceUpdateProcedure, svc.Update, opts..., - )) - mux.Handle(ProjectServiceListProcedure, connect_go.NewServerStreamHandler( + ) + projectServiceListHandler := connect_go.NewServerStreamHandler( ProjectServiceListProcedure, svc.List, opts..., - )) - mux.Handle(ProjectServiceGetProcedure, connect_go.NewUnaryHandler( + ) + projectServiceGetHandler := connect_go.NewUnaryHandler( ProjectServiceGetProcedure, svc.Get, opts..., - )) - mux.Handle(ProjectServiceDeleteProcedure, connect_go.NewUnaryHandler( + ) + projectServiceDeleteHandler := connect_go.NewUnaryHandler( ProjectServiceDeleteProcedure, svc.Delete, opts..., - )) - mux.Handle(ProjectServiceTagAssetsProcedure, connect_go.NewUnaryHandler( + ) + projectServiceTagAssetsHandler := connect_go.NewUnaryHandler( ProjectServiceTagAssetsProcedure, svc.TagAssets, opts..., - )) - mux.Handle(ProjectServiceUntagAssetsProcedure, connect_go.NewUnaryHandler( + ) + projectServiceUntagAssetsHandler := connect_go.NewUnaryHandler( ProjectServiceUntagAssetsProcedure, svc.UntagAssets, opts..., - )) - mux.Handle(ProjectServiceQueryAssetsProcedure, connect_go.NewUnaryHandler( + ) + projectServiceQueryAssetsHandler := connect_go.NewUnaryHandler( ProjectServiceQueryAssetsProcedure, svc.QueryAssets, opts..., - )) - mux.Handle(ProjectServiceDeleteAssetsProcedure, connect_go.NewUnaryHandler( + ) + projectServiceDeleteAssetsHandler := connect_go.NewUnaryHandler( ProjectServiceDeleteAssetsProcedure, svc.DeleteAssets, opts..., - )) - return "/stabilityai.platformapis.project.v1.ProjectService/", mux + ) + return "/stabilityai.platformapis.project.v1.ProjectService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + switch r.URL.Path { + case ProjectServiceCreateProcedure: + projectServiceCreateHandler.ServeHTTP(w, r) + case ProjectServiceUpdateProcedure: + projectServiceUpdateHandler.ServeHTTP(w, r) + case ProjectServiceListProcedure: + projectServiceListHandler.ServeHTTP(w, r) + case ProjectServiceGetProcedure: + projectServiceGetHandler.ServeHTTP(w, r) + case ProjectServiceDeleteProcedure: + projectServiceDeleteHandler.ServeHTTP(w, r) + case ProjectServiceTagAssetsProcedure: + projectServiceTagAssetsHandler.ServeHTTP(w, r) + case ProjectServiceUntagAssetsProcedure: + projectServiceUntagAssetsHandler.ServeHTTP(w, r) + case ProjectServiceQueryAssetsProcedure: + projectServiceQueryAssetsHandler.ServeHTTP(w, r) + case ProjectServiceDeleteAssetsProcedure: + projectServiceDeleteAssetsHandler.ServeHTTP(w, r) + default: + http.NotFound(w, r) + } + }) } // UnimplementedProjectServiceHandler returns CodeUnimplemented from all methods. diff --git a/src/stability_api/tensors/tensors_pb.d.ts b/src/stability_api/tensors/tensors_pb.d.ts index 8242f49..4504da2 100644 --- a/src/stability_api/tensors/tensors_pb.d.ts +++ b/src/stability_api/tensors/tensors_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.2.0 +// @generated by protoc-gen-es v1.3.0 // @generated from file stability_api/tensors/tensors.proto (package tensors, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/src/stability_api/tensors/tensors_pb.js b/src/stability_api/tensors/tensors_pb.js index 6ee16e9..ced7130 100644 --- a/src/stability_api/tensors/tensors_pb.js +++ b/src/stability_api/tensors/tensors_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.2.0 +// @generated by protoc-gen-es v1.3.0 // @generated from file stability_api/tensors/tensors.proto (package tensors, syntax proto3) /* eslint-disable */ // @ts-nocheck From 694c9f4d0f7455ada898c0ce6acfa47ce155356d Mon Sep 17 00:00:00 2001 From: Stephan Auerhahn Date: Mon, 7 Aug 2023 06:31:58 +0000 Subject: [PATCH 19/20] update connect package source --- buf.gen.go.yaml | 2 +- src/stability_api/go.mod | 2 +- .../dashboardv1connect/dashboard.connect.go | 264 +++++++++--------- .../v1/enginesv1connect/engines.connect.go | 24 +- .../finetuningconnect/finetuning.connect.go | 104 +++---- .../generationv1connect/generation.connect.go | 40 +-- .../v1/projectv1connect/project.connect.go | 152 +++++----- 7 files changed, 294 insertions(+), 294 deletions(-) diff --git a/buf.gen.go.yaml b/buf.gen.go.yaml index b2f6b3f..4a15528 100644 --- a/buf.gen.go.yaml +++ b/buf.gen.go.yaml @@ -9,7 +9,7 @@ managed: except: - buf.build/googleapis/googleapis plugins: - - plugin: buf.build/bufbuild/connect-go:v1.10.0 + - plugin: buf.build/connectrpc/go:v1.11.0 out: '.' opt: - paths=source_relative diff --git a/src/stability_api/go.mod b/src/stability_api/go.mod index 70c792c..136f93b 100644 --- a/src/stability_api/go.mod +++ b/src/stability_api/go.mod @@ -3,7 +3,7 @@ module github.com/stability-ai/api-interfaces/src/stability_api go 1.18 require ( - github.com/bufbuild/connect-go v1.7.0 + connectrpc.com/connect v1.11.0 google.golang.org/grpc v1.54.0 google.golang.org/protobuf v1.30.0 ) diff --git a/src/stability_api/platform/dashboard/v1/dashboardv1connect/dashboard.connect.go b/src/stability_api/platform/dashboard/v1/dashboardv1connect/dashboard.connect.go index 514f6a0..f983bd7 100644 --- a/src/stability_api/platform/dashboard/v1/dashboardv1connect/dashboard.connect.go +++ b/src/stability_api/platform/dashboard/v1/dashboardv1connect/dashboard.connect.go @@ -5,9 +5,9 @@ package dashboardv1connect import ( + connect "connectrpc.com/connect" context "context" errors "errors" - connect_go "github.com/bufbuild/connect-go" v1 "github.com/stability-ai/api-interfaces/src/stability_api/platform/dashboard/v1" http "net/http" strings "strings" @@ -18,7 +18,7 @@ import ( // generated with a version of connect newer than the one compiled into your binary. You can fix the // problem by either regenerating this code with an older version of connect or updating the connect // version compiled into your binary. -const _ = connect_go.IsAtLeastVersion0_1_0 +const _ = connect.IsAtLeastVersion0_1_0 const ( // DashboardServiceName is the fully-qualified name of the DashboardService service. @@ -85,25 +85,25 @@ const ( // DashboardServiceClient is a client for the stabilityai.api.dashboard.v1.DashboardService service. type DashboardServiceClient interface { // Get info - GetMe(context.Context, *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.User], error) - GetOrganization(context.Context, *connect_go.Request[v1.GetOrganizationRequest]) (*connect_go.Response[v1.Organization], error) - GetMetrics(context.Context, *connect_go.Request[v1.GetMetricsRequest]) (*connect_go.Response[v1.Metrics], error) + GetMe(context.Context, *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.User], error) + GetOrganization(context.Context, *connect.Request[v1.GetOrganizationRequest]) (*connect.Response[v1.Organization], error) + GetMetrics(context.Context, *connect.Request[v1.GetMetricsRequest]) (*connect.Response[v1.Metrics], error) // API key management - CreateAPIKey(context.Context, *connect_go.Request[v1.APIKeyRequest]) (*connect_go.Response[v1.APIKey], error) - DeleteAPIKey(context.Context, *connect_go.Request[v1.APIKeyFindRequest]) (*connect_go.Response[v1.APIKey], error) + CreateAPIKey(context.Context, *connect.Request[v1.APIKeyRequest]) (*connect.Response[v1.APIKey], error) + DeleteAPIKey(context.Context, *connect.Request[v1.APIKeyFindRequest]) (*connect.Response[v1.APIKey], error) // User settings - UpdateDefaultOrganization(context.Context, *connect_go.Request[v1.UpdateDefaultOrganizationRequest]) (*connect_go.Response[v1.User], error) - GetClientSettings(context.Context, *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.ClientSettings], error) - SetClientSettings(context.Context, *connect_go.Request[v1.ClientSettings]) (*connect_go.Response[v1.ClientSettings], error) - UpdateUserInfo(context.Context, *connect_go.Request[v1.UpdateUserInfoRequest]) (*connect_go.Response[v1.User], error) - CreatePasswordChangeTicket(context.Context, *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.UserPasswordChangeTicket], error) - DeleteAccount(context.Context, *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.User], error) + UpdateDefaultOrganization(context.Context, *connect.Request[v1.UpdateDefaultOrganizationRequest]) (*connect.Response[v1.User], error) + GetClientSettings(context.Context, *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.ClientSettings], error) + SetClientSettings(context.Context, *connect.Request[v1.ClientSettings]) (*connect.Response[v1.ClientSettings], error) + UpdateUserInfo(context.Context, *connect.Request[v1.UpdateUserInfoRequest]) (*connect.Response[v1.User], error) + CreatePasswordChangeTicket(context.Context, *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.UserPasswordChangeTicket], error) + DeleteAccount(context.Context, *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.User], error) // Payment functions - CreateCharge(context.Context, *connect_go.Request[v1.CreateChargeRequest]) (*connect_go.Response[v1.Charge], error) - GetCharges(context.Context, *connect_go.Request[v1.GetChargesRequest]) (*connect_go.Response[v1.Charges], error) - CreateAutoChargeIntent(context.Context, *connect_go.Request[v1.CreateAutoChargeIntentRequest]) (*connect_go.Response[v1.AutoChargeIntent], error) - UpdateAutoChargeIntent(context.Context, *connect_go.Request[v1.CreateAutoChargeIntentRequest]) (*connect_go.Response[v1.AutoChargeIntent], error) - GetAutoChargeIntent(context.Context, *connect_go.Request[v1.GetAutoChargeRequest]) (*connect_go.Response[v1.AutoChargeIntent], error) + CreateCharge(context.Context, *connect.Request[v1.CreateChargeRequest]) (*connect.Response[v1.Charge], error) + GetCharges(context.Context, *connect.Request[v1.GetChargesRequest]) (*connect.Response[v1.Charges], error) + CreateAutoChargeIntent(context.Context, *connect.Request[v1.CreateAutoChargeIntentRequest]) (*connect.Response[v1.AutoChargeIntent], error) + UpdateAutoChargeIntent(context.Context, *connect.Request[v1.CreateAutoChargeIntentRequest]) (*connect.Response[v1.AutoChargeIntent], error) + GetAutoChargeIntent(context.Context, *connect.Request[v1.GetAutoChargeRequest]) (*connect.Response[v1.AutoChargeIntent], error) } // NewDashboardServiceClient constructs a client for the @@ -114,85 +114,85 @@ type DashboardServiceClient interface { // // The URL supplied here should be the base URL for the Connect or gRPC server (for example, // http://api.acme.com or https://acme.com/grpc). -func NewDashboardServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) DashboardServiceClient { +func NewDashboardServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) DashboardServiceClient { baseURL = strings.TrimRight(baseURL, "/") return &dashboardServiceClient{ - getMe: connect_go.NewClient[v1.EmptyRequest, v1.User]( + getMe: connect.NewClient[v1.EmptyRequest, v1.User]( httpClient, baseURL+DashboardServiceGetMeProcedure, opts..., ), - getOrganization: connect_go.NewClient[v1.GetOrganizationRequest, v1.Organization]( + getOrganization: connect.NewClient[v1.GetOrganizationRequest, v1.Organization]( httpClient, baseURL+DashboardServiceGetOrganizationProcedure, opts..., ), - getMetrics: connect_go.NewClient[v1.GetMetricsRequest, v1.Metrics]( + getMetrics: connect.NewClient[v1.GetMetricsRequest, v1.Metrics]( httpClient, baseURL+DashboardServiceGetMetricsProcedure, opts..., ), - createAPIKey: connect_go.NewClient[v1.APIKeyRequest, v1.APIKey]( + createAPIKey: connect.NewClient[v1.APIKeyRequest, v1.APIKey]( httpClient, baseURL+DashboardServiceCreateAPIKeyProcedure, opts..., ), - deleteAPIKey: connect_go.NewClient[v1.APIKeyFindRequest, v1.APIKey]( + deleteAPIKey: connect.NewClient[v1.APIKeyFindRequest, v1.APIKey]( httpClient, baseURL+DashboardServiceDeleteAPIKeyProcedure, opts..., ), - updateDefaultOrganization: connect_go.NewClient[v1.UpdateDefaultOrganizationRequest, v1.User]( + updateDefaultOrganization: connect.NewClient[v1.UpdateDefaultOrganizationRequest, v1.User]( httpClient, baseURL+DashboardServiceUpdateDefaultOrganizationProcedure, opts..., ), - getClientSettings: connect_go.NewClient[v1.EmptyRequest, v1.ClientSettings]( + getClientSettings: connect.NewClient[v1.EmptyRequest, v1.ClientSettings]( httpClient, baseURL+DashboardServiceGetClientSettingsProcedure, opts..., ), - setClientSettings: connect_go.NewClient[v1.ClientSettings, v1.ClientSettings]( + setClientSettings: connect.NewClient[v1.ClientSettings, v1.ClientSettings]( httpClient, baseURL+DashboardServiceSetClientSettingsProcedure, opts..., ), - updateUserInfo: connect_go.NewClient[v1.UpdateUserInfoRequest, v1.User]( + updateUserInfo: connect.NewClient[v1.UpdateUserInfoRequest, v1.User]( httpClient, baseURL+DashboardServiceUpdateUserInfoProcedure, opts..., ), - createPasswordChangeTicket: connect_go.NewClient[v1.EmptyRequest, v1.UserPasswordChangeTicket]( + createPasswordChangeTicket: connect.NewClient[v1.EmptyRequest, v1.UserPasswordChangeTicket]( httpClient, baseURL+DashboardServiceCreatePasswordChangeTicketProcedure, opts..., ), - deleteAccount: connect_go.NewClient[v1.EmptyRequest, v1.User]( + deleteAccount: connect.NewClient[v1.EmptyRequest, v1.User]( httpClient, baseURL+DashboardServiceDeleteAccountProcedure, opts..., ), - createCharge: connect_go.NewClient[v1.CreateChargeRequest, v1.Charge]( + createCharge: connect.NewClient[v1.CreateChargeRequest, v1.Charge]( httpClient, baseURL+DashboardServiceCreateChargeProcedure, opts..., ), - getCharges: connect_go.NewClient[v1.GetChargesRequest, v1.Charges]( + getCharges: connect.NewClient[v1.GetChargesRequest, v1.Charges]( httpClient, baseURL+DashboardServiceGetChargesProcedure, opts..., ), - createAutoChargeIntent: connect_go.NewClient[v1.CreateAutoChargeIntentRequest, v1.AutoChargeIntent]( + createAutoChargeIntent: connect.NewClient[v1.CreateAutoChargeIntentRequest, v1.AutoChargeIntent]( httpClient, baseURL+DashboardServiceCreateAutoChargeIntentProcedure, opts..., ), - updateAutoChargeIntent: connect_go.NewClient[v1.CreateAutoChargeIntentRequest, v1.AutoChargeIntent]( + updateAutoChargeIntent: connect.NewClient[v1.CreateAutoChargeIntentRequest, v1.AutoChargeIntent]( httpClient, baseURL+DashboardServiceUpdateAutoChargeIntentProcedure, opts..., ), - getAutoChargeIntent: connect_go.NewClient[v1.GetAutoChargeRequest, v1.AutoChargeIntent]( + getAutoChargeIntent: connect.NewClient[v1.GetAutoChargeRequest, v1.AutoChargeIntent]( httpClient, baseURL+DashboardServiceGetAutoChargeIntentProcedure, opts..., @@ -202,105 +202,105 @@ func NewDashboardServiceClient(httpClient connect_go.HTTPClient, baseURL string, // dashboardServiceClient implements DashboardServiceClient. type dashboardServiceClient struct { - getMe *connect_go.Client[v1.EmptyRequest, v1.User] - getOrganization *connect_go.Client[v1.GetOrganizationRequest, v1.Organization] - getMetrics *connect_go.Client[v1.GetMetricsRequest, v1.Metrics] - createAPIKey *connect_go.Client[v1.APIKeyRequest, v1.APIKey] - deleteAPIKey *connect_go.Client[v1.APIKeyFindRequest, v1.APIKey] - updateDefaultOrganization *connect_go.Client[v1.UpdateDefaultOrganizationRequest, v1.User] - getClientSettings *connect_go.Client[v1.EmptyRequest, v1.ClientSettings] - setClientSettings *connect_go.Client[v1.ClientSettings, v1.ClientSettings] - updateUserInfo *connect_go.Client[v1.UpdateUserInfoRequest, v1.User] - createPasswordChangeTicket *connect_go.Client[v1.EmptyRequest, v1.UserPasswordChangeTicket] - deleteAccount *connect_go.Client[v1.EmptyRequest, v1.User] - createCharge *connect_go.Client[v1.CreateChargeRequest, v1.Charge] - getCharges *connect_go.Client[v1.GetChargesRequest, v1.Charges] - createAutoChargeIntent *connect_go.Client[v1.CreateAutoChargeIntentRequest, v1.AutoChargeIntent] - updateAutoChargeIntent *connect_go.Client[v1.CreateAutoChargeIntentRequest, v1.AutoChargeIntent] - getAutoChargeIntent *connect_go.Client[v1.GetAutoChargeRequest, v1.AutoChargeIntent] + getMe *connect.Client[v1.EmptyRequest, v1.User] + getOrganization *connect.Client[v1.GetOrganizationRequest, v1.Organization] + getMetrics *connect.Client[v1.GetMetricsRequest, v1.Metrics] + createAPIKey *connect.Client[v1.APIKeyRequest, v1.APIKey] + deleteAPIKey *connect.Client[v1.APIKeyFindRequest, v1.APIKey] + updateDefaultOrganization *connect.Client[v1.UpdateDefaultOrganizationRequest, v1.User] + getClientSettings *connect.Client[v1.EmptyRequest, v1.ClientSettings] + setClientSettings *connect.Client[v1.ClientSettings, v1.ClientSettings] + updateUserInfo *connect.Client[v1.UpdateUserInfoRequest, v1.User] + createPasswordChangeTicket *connect.Client[v1.EmptyRequest, v1.UserPasswordChangeTicket] + deleteAccount *connect.Client[v1.EmptyRequest, v1.User] + createCharge *connect.Client[v1.CreateChargeRequest, v1.Charge] + getCharges *connect.Client[v1.GetChargesRequest, v1.Charges] + createAutoChargeIntent *connect.Client[v1.CreateAutoChargeIntentRequest, v1.AutoChargeIntent] + updateAutoChargeIntent *connect.Client[v1.CreateAutoChargeIntentRequest, v1.AutoChargeIntent] + getAutoChargeIntent *connect.Client[v1.GetAutoChargeRequest, v1.AutoChargeIntent] } // GetMe calls stabilityai.api.dashboard.v1.DashboardService.GetMe. -func (c *dashboardServiceClient) GetMe(ctx context.Context, req *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.User], error) { +func (c *dashboardServiceClient) GetMe(ctx context.Context, req *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.User], error) { return c.getMe.CallUnary(ctx, req) } // GetOrganization calls stabilityai.api.dashboard.v1.DashboardService.GetOrganization. -func (c *dashboardServiceClient) GetOrganization(ctx context.Context, req *connect_go.Request[v1.GetOrganizationRequest]) (*connect_go.Response[v1.Organization], error) { +func (c *dashboardServiceClient) GetOrganization(ctx context.Context, req *connect.Request[v1.GetOrganizationRequest]) (*connect.Response[v1.Organization], error) { return c.getOrganization.CallUnary(ctx, req) } // GetMetrics calls stabilityai.api.dashboard.v1.DashboardService.GetMetrics. -func (c *dashboardServiceClient) GetMetrics(ctx context.Context, req *connect_go.Request[v1.GetMetricsRequest]) (*connect_go.Response[v1.Metrics], error) { +func (c *dashboardServiceClient) GetMetrics(ctx context.Context, req *connect.Request[v1.GetMetricsRequest]) (*connect.Response[v1.Metrics], error) { return c.getMetrics.CallUnary(ctx, req) } // CreateAPIKey calls stabilityai.api.dashboard.v1.DashboardService.CreateAPIKey. -func (c *dashboardServiceClient) CreateAPIKey(ctx context.Context, req *connect_go.Request[v1.APIKeyRequest]) (*connect_go.Response[v1.APIKey], error) { +func (c *dashboardServiceClient) CreateAPIKey(ctx context.Context, req *connect.Request[v1.APIKeyRequest]) (*connect.Response[v1.APIKey], error) { return c.createAPIKey.CallUnary(ctx, req) } // DeleteAPIKey calls stabilityai.api.dashboard.v1.DashboardService.DeleteAPIKey. -func (c *dashboardServiceClient) DeleteAPIKey(ctx context.Context, req *connect_go.Request[v1.APIKeyFindRequest]) (*connect_go.Response[v1.APIKey], error) { +func (c *dashboardServiceClient) DeleteAPIKey(ctx context.Context, req *connect.Request[v1.APIKeyFindRequest]) (*connect.Response[v1.APIKey], error) { return c.deleteAPIKey.CallUnary(ctx, req) } // UpdateDefaultOrganization calls // stabilityai.api.dashboard.v1.DashboardService.UpdateDefaultOrganization. -func (c *dashboardServiceClient) UpdateDefaultOrganization(ctx context.Context, req *connect_go.Request[v1.UpdateDefaultOrganizationRequest]) (*connect_go.Response[v1.User], error) { +func (c *dashboardServiceClient) UpdateDefaultOrganization(ctx context.Context, req *connect.Request[v1.UpdateDefaultOrganizationRequest]) (*connect.Response[v1.User], error) { return c.updateDefaultOrganization.CallUnary(ctx, req) } // GetClientSettings calls stabilityai.api.dashboard.v1.DashboardService.GetClientSettings. -func (c *dashboardServiceClient) GetClientSettings(ctx context.Context, req *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.ClientSettings], error) { +func (c *dashboardServiceClient) GetClientSettings(ctx context.Context, req *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.ClientSettings], error) { return c.getClientSettings.CallUnary(ctx, req) } // SetClientSettings calls stabilityai.api.dashboard.v1.DashboardService.SetClientSettings. -func (c *dashboardServiceClient) SetClientSettings(ctx context.Context, req *connect_go.Request[v1.ClientSettings]) (*connect_go.Response[v1.ClientSettings], error) { +func (c *dashboardServiceClient) SetClientSettings(ctx context.Context, req *connect.Request[v1.ClientSettings]) (*connect.Response[v1.ClientSettings], error) { return c.setClientSettings.CallUnary(ctx, req) } // UpdateUserInfo calls stabilityai.api.dashboard.v1.DashboardService.UpdateUserInfo. -func (c *dashboardServiceClient) UpdateUserInfo(ctx context.Context, req *connect_go.Request[v1.UpdateUserInfoRequest]) (*connect_go.Response[v1.User], error) { +func (c *dashboardServiceClient) UpdateUserInfo(ctx context.Context, req *connect.Request[v1.UpdateUserInfoRequest]) (*connect.Response[v1.User], error) { return c.updateUserInfo.CallUnary(ctx, req) } // CreatePasswordChangeTicket calls // stabilityai.api.dashboard.v1.DashboardService.CreatePasswordChangeTicket. -func (c *dashboardServiceClient) CreatePasswordChangeTicket(ctx context.Context, req *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.UserPasswordChangeTicket], error) { +func (c *dashboardServiceClient) CreatePasswordChangeTicket(ctx context.Context, req *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.UserPasswordChangeTicket], error) { return c.createPasswordChangeTicket.CallUnary(ctx, req) } // DeleteAccount calls stabilityai.api.dashboard.v1.DashboardService.DeleteAccount. -func (c *dashboardServiceClient) DeleteAccount(ctx context.Context, req *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.User], error) { +func (c *dashboardServiceClient) DeleteAccount(ctx context.Context, req *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.User], error) { return c.deleteAccount.CallUnary(ctx, req) } // CreateCharge calls stabilityai.api.dashboard.v1.DashboardService.CreateCharge. -func (c *dashboardServiceClient) CreateCharge(ctx context.Context, req *connect_go.Request[v1.CreateChargeRequest]) (*connect_go.Response[v1.Charge], error) { +func (c *dashboardServiceClient) CreateCharge(ctx context.Context, req *connect.Request[v1.CreateChargeRequest]) (*connect.Response[v1.Charge], error) { return c.createCharge.CallUnary(ctx, req) } // GetCharges calls stabilityai.api.dashboard.v1.DashboardService.GetCharges. -func (c *dashboardServiceClient) GetCharges(ctx context.Context, req *connect_go.Request[v1.GetChargesRequest]) (*connect_go.Response[v1.Charges], error) { +func (c *dashboardServiceClient) GetCharges(ctx context.Context, req *connect.Request[v1.GetChargesRequest]) (*connect.Response[v1.Charges], error) { return c.getCharges.CallUnary(ctx, req) } // CreateAutoChargeIntent calls // stabilityai.api.dashboard.v1.DashboardService.CreateAutoChargeIntent. -func (c *dashboardServiceClient) CreateAutoChargeIntent(ctx context.Context, req *connect_go.Request[v1.CreateAutoChargeIntentRequest]) (*connect_go.Response[v1.AutoChargeIntent], error) { +func (c *dashboardServiceClient) CreateAutoChargeIntent(ctx context.Context, req *connect.Request[v1.CreateAutoChargeIntentRequest]) (*connect.Response[v1.AutoChargeIntent], error) { return c.createAutoChargeIntent.CallUnary(ctx, req) } // UpdateAutoChargeIntent calls // stabilityai.api.dashboard.v1.DashboardService.UpdateAutoChargeIntent. -func (c *dashboardServiceClient) UpdateAutoChargeIntent(ctx context.Context, req *connect_go.Request[v1.CreateAutoChargeIntentRequest]) (*connect_go.Response[v1.AutoChargeIntent], error) { +func (c *dashboardServiceClient) UpdateAutoChargeIntent(ctx context.Context, req *connect.Request[v1.CreateAutoChargeIntentRequest]) (*connect.Response[v1.AutoChargeIntent], error) { return c.updateAutoChargeIntent.CallUnary(ctx, req) } // GetAutoChargeIntent calls stabilityai.api.dashboard.v1.DashboardService.GetAutoChargeIntent. -func (c *dashboardServiceClient) GetAutoChargeIntent(ctx context.Context, req *connect_go.Request[v1.GetAutoChargeRequest]) (*connect_go.Response[v1.AutoChargeIntent], error) { +func (c *dashboardServiceClient) GetAutoChargeIntent(ctx context.Context, req *connect.Request[v1.GetAutoChargeRequest]) (*connect.Response[v1.AutoChargeIntent], error) { return c.getAutoChargeIntent.CallUnary(ctx, req) } @@ -308,25 +308,25 @@ func (c *dashboardServiceClient) GetAutoChargeIntent(ctx context.Context, req *c // service. type DashboardServiceHandler interface { // Get info - GetMe(context.Context, *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.User], error) - GetOrganization(context.Context, *connect_go.Request[v1.GetOrganizationRequest]) (*connect_go.Response[v1.Organization], error) - GetMetrics(context.Context, *connect_go.Request[v1.GetMetricsRequest]) (*connect_go.Response[v1.Metrics], error) + GetMe(context.Context, *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.User], error) + GetOrganization(context.Context, *connect.Request[v1.GetOrganizationRequest]) (*connect.Response[v1.Organization], error) + GetMetrics(context.Context, *connect.Request[v1.GetMetricsRequest]) (*connect.Response[v1.Metrics], error) // API key management - CreateAPIKey(context.Context, *connect_go.Request[v1.APIKeyRequest]) (*connect_go.Response[v1.APIKey], error) - DeleteAPIKey(context.Context, *connect_go.Request[v1.APIKeyFindRequest]) (*connect_go.Response[v1.APIKey], error) + CreateAPIKey(context.Context, *connect.Request[v1.APIKeyRequest]) (*connect.Response[v1.APIKey], error) + DeleteAPIKey(context.Context, *connect.Request[v1.APIKeyFindRequest]) (*connect.Response[v1.APIKey], error) // User settings - UpdateDefaultOrganization(context.Context, *connect_go.Request[v1.UpdateDefaultOrganizationRequest]) (*connect_go.Response[v1.User], error) - GetClientSettings(context.Context, *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.ClientSettings], error) - SetClientSettings(context.Context, *connect_go.Request[v1.ClientSettings]) (*connect_go.Response[v1.ClientSettings], error) - UpdateUserInfo(context.Context, *connect_go.Request[v1.UpdateUserInfoRequest]) (*connect_go.Response[v1.User], error) - CreatePasswordChangeTicket(context.Context, *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.UserPasswordChangeTicket], error) - DeleteAccount(context.Context, *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.User], error) + UpdateDefaultOrganization(context.Context, *connect.Request[v1.UpdateDefaultOrganizationRequest]) (*connect.Response[v1.User], error) + GetClientSettings(context.Context, *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.ClientSettings], error) + SetClientSettings(context.Context, *connect.Request[v1.ClientSettings]) (*connect.Response[v1.ClientSettings], error) + UpdateUserInfo(context.Context, *connect.Request[v1.UpdateUserInfoRequest]) (*connect.Response[v1.User], error) + CreatePasswordChangeTicket(context.Context, *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.UserPasswordChangeTicket], error) + DeleteAccount(context.Context, *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.User], error) // Payment functions - CreateCharge(context.Context, *connect_go.Request[v1.CreateChargeRequest]) (*connect_go.Response[v1.Charge], error) - GetCharges(context.Context, *connect_go.Request[v1.GetChargesRequest]) (*connect_go.Response[v1.Charges], error) - CreateAutoChargeIntent(context.Context, *connect_go.Request[v1.CreateAutoChargeIntentRequest]) (*connect_go.Response[v1.AutoChargeIntent], error) - UpdateAutoChargeIntent(context.Context, *connect_go.Request[v1.CreateAutoChargeIntentRequest]) (*connect_go.Response[v1.AutoChargeIntent], error) - GetAutoChargeIntent(context.Context, *connect_go.Request[v1.GetAutoChargeRequest]) (*connect_go.Response[v1.AutoChargeIntent], error) + CreateCharge(context.Context, *connect.Request[v1.CreateChargeRequest]) (*connect.Response[v1.Charge], error) + GetCharges(context.Context, *connect.Request[v1.GetChargesRequest]) (*connect.Response[v1.Charges], error) + CreateAutoChargeIntent(context.Context, *connect.Request[v1.CreateAutoChargeIntentRequest]) (*connect.Response[v1.AutoChargeIntent], error) + UpdateAutoChargeIntent(context.Context, *connect.Request[v1.CreateAutoChargeIntentRequest]) (*connect.Response[v1.AutoChargeIntent], error) + GetAutoChargeIntent(context.Context, *connect.Request[v1.GetAutoChargeRequest]) (*connect.Response[v1.AutoChargeIntent], error) } // NewDashboardServiceHandler builds an HTTP handler from the service implementation. It returns the @@ -334,83 +334,83 @@ type DashboardServiceHandler interface { // // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. -func NewDashboardServiceHandler(svc DashboardServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler) { - dashboardServiceGetMeHandler := connect_go.NewUnaryHandler( +func NewDashboardServiceHandler(svc DashboardServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + dashboardServiceGetMeHandler := connect.NewUnaryHandler( DashboardServiceGetMeProcedure, svc.GetMe, opts..., ) - dashboardServiceGetOrganizationHandler := connect_go.NewUnaryHandler( + dashboardServiceGetOrganizationHandler := connect.NewUnaryHandler( DashboardServiceGetOrganizationProcedure, svc.GetOrganization, opts..., ) - dashboardServiceGetMetricsHandler := connect_go.NewUnaryHandler( + dashboardServiceGetMetricsHandler := connect.NewUnaryHandler( DashboardServiceGetMetricsProcedure, svc.GetMetrics, opts..., ) - dashboardServiceCreateAPIKeyHandler := connect_go.NewUnaryHandler( + dashboardServiceCreateAPIKeyHandler := connect.NewUnaryHandler( DashboardServiceCreateAPIKeyProcedure, svc.CreateAPIKey, opts..., ) - dashboardServiceDeleteAPIKeyHandler := connect_go.NewUnaryHandler( + dashboardServiceDeleteAPIKeyHandler := connect.NewUnaryHandler( DashboardServiceDeleteAPIKeyProcedure, svc.DeleteAPIKey, opts..., ) - dashboardServiceUpdateDefaultOrganizationHandler := connect_go.NewUnaryHandler( + dashboardServiceUpdateDefaultOrganizationHandler := connect.NewUnaryHandler( DashboardServiceUpdateDefaultOrganizationProcedure, svc.UpdateDefaultOrganization, opts..., ) - dashboardServiceGetClientSettingsHandler := connect_go.NewUnaryHandler( + dashboardServiceGetClientSettingsHandler := connect.NewUnaryHandler( DashboardServiceGetClientSettingsProcedure, svc.GetClientSettings, opts..., ) - dashboardServiceSetClientSettingsHandler := connect_go.NewUnaryHandler( + dashboardServiceSetClientSettingsHandler := connect.NewUnaryHandler( DashboardServiceSetClientSettingsProcedure, svc.SetClientSettings, opts..., ) - dashboardServiceUpdateUserInfoHandler := connect_go.NewUnaryHandler( + dashboardServiceUpdateUserInfoHandler := connect.NewUnaryHandler( DashboardServiceUpdateUserInfoProcedure, svc.UpdateUserInfo, opts..., ) - dashboardServiceCreatePasswordChangeTicketHandler := connect_go.NewUnaryHandler( + dashboardServiceCreatePasswordChangeTicketHandler := connect.NewUnaryHandler( DashboardServiceCreatePasswordChangeTicketProcedure, svc.CreatePasswordChangeTicket, opts..., ) - dashboardServiceDeleteAccountHandler := connect_go.NewUnaryHandler( + dashboardServiceDeleteAccountHandler := connect.NewUnaryHandler( DashboardServiceDeleteAccountProcedure, svc.DeleteAccount, opts..., ) - dashboardServiceCreateChargeHandler := connect_go.NewUnaryHandler( + dashboardServiceCreateChargeHandler := connect.NewUnaryHandler( DashboardServiceCreateChargeProcedure, svc.CreateCharge, opts..., ) - dashboardServiceGetChargesHandler := connect_go.NewUnaryHandler( + dashboardServiceGetChargesHandler := connect.NewUnaryHandler( DashboardServiceGetChargesProcedure, svc.GetCharges, opts..., ) - dashboardServiceCreateAutoChargeIntentHandler := connect_go.NewUnaryHandler( + dashboardServiceCreateAutoChargeIntentHandler := connect.NewUnaryHandler( DashboardServiceCreateAutoChargeIntentProcedure, svc.CreateAutoChargeIntent, opts..., ) - dashboardServiceUpdateAutoChargeIntentHandler := connect_go.NewUnaryHandler( + dashboardServiceUpdateAutoChargeIntentHandler := connect.NewUnaryHandler( DashboardServiceUpdateAutoChargeIntentProcedure, svc.UpdateAutoChargeIntent, opts..., ) - dashboardServiceGetAutoChargeIntentHandler := connect_go.NewUnaryHandler( + dashboardServiceGetAutoChargeIntentHandler := connect.NewUnaryHandler( DashboardServiceGetAutoChargeIntentProcedure, svc.GetAutoChargeIntent, opts..., @@ -458,66 +458,66 @@ func NewDashboardServiceHandler(svc DashboardServiceHandler, opts ...connect_go. // UnimplementedDashboardServiceHandler returns CodeUnimplemented from all methods. type UnimplementedDashboardServiceHandler struct{} -func (UnimplementedDashboardServiceHandler) GetMe(context.Context, *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.User], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.GetMe is not implemented")) +func (UnimplementedDashboardServiceHandler) GetMe(context.Context, *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.User], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.GetMe is not implemented")) } -func (UnimplementedDashboardServiceHandler) GetOrganization(context.Context, *connect_go.Request[v1.GetOrganizationRequest]) (*connect_go.Response[v1.Organization], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.GetOrganization is not implemented")) +func (UnimplementedDashboardServiceHandler) GetOrganization(context.Context, *connect.Request[v1.GetOrganizationRequest]) (*connect.Response[v1.Organization], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.GetOrganization is not implemented")) } -func (UnimplementedDashboardServiceHandler) GetMetrics(context.Context, *connect_go.Request[v1.GetMetricsRequest]) (*connect_go.Response[v1.Metrics], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.GetMetrics is not implemented")) +func (UnimplementedDashboardServiceHandler) GetMetrics(context.Context, *connect.Request[v1.GetMetricsRequest]) (*connect.Response[v1.Metrics], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.GetMetrics is not implemented")) } -func (UnimplementedDashboardServiceHandler) CreateAPIKey(context.Context, *connect_go.Request[v1.APIKeyRequest]) (*connect_go.Response[v1.APIKey], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.CreateAPIKey is not implemented")) +func (UnimplementedDashboardServiceHandler) CreateAPIKey(context.Context, *connect.Request[v1.APIKeyRequest]) (*connect.Response[v1.APIKey], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.CreateAPIKey is not implemented")) } -func (UnimplementedDashboardServiceHandler) DeleteAPIKey(context.Context, *connect_go.Request[v1.APIKeyFindRequest]) (*connect_go.Response[v1.APIKey], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.DeleteAPIKey is not implemented")) +func (UnimplementedDashboardServiceHandler) DeleteAPIKey(context.Context, *connect.Request[v1.APIKeyFindRequest]) (*connect.Response[v1.APIKey], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.DeleteAPIKey is not implemented")) } -func (UnimplementedDashboardServiceHandler) UpdateDefaultOrganization(context.Context, *connect_go.Request[v1.UpdateDefaultOrganizationRequest]) (*connect_go.Response[v1.User], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.UpdateDefaultOrganization is not implemented")) +func (UnimplementedDashboardServiceHandler) UpdateDefaultOrganization(context.Context, *connect.Request[v1.UpdateDefaultOrganizationRequest]) (*connect.Response[v1.User], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.UpdateDefaultOrganization is not implemented")) } -func (UnimplementedDashboardServiceHandler) GetClientSettings(context.Context, *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.ClientSettings], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.GetClientSettings is not implemented")) +func (UnimplementedDashboardServiceHandler) GetClientSettings(context.Context, *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.ClientSettings], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.GetClientSettings is not implemented")) } -func (UnimplementedDashboardServiceHandler) SetClientSettings(context.Context, *connect_go.Request[v1.ClientSettings]) (*connect_go.Response[v1.ClientSettings], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.SetClientSettings is not implemented")) +func (UnimplementedDashboardServiceHandler) SetClientSettings(context.Context, *connect.Request[v1.ClientSettings]) (*connect.Response[v1.ClientSettings], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.SetClientSettings is not implemented")) } -func (UnimplementedDashboardServiceHandler) UpdateUserInfo(context.Context, *connect_go.Request[v1.UpdateUserInfoRequest]) (*connect_go.Response[v1.User], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.UpdateUserInfo is not implemented")) +func (UnimplementedDashboardServiceHandler) UpdateUserInfo(context.Context, *connect.Request[v1.UpdateUserInfoRequest]) (*connect.Response[v1.User], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.UpdateUserInfo is not implemented")) } -func (UnimplementedDashboardServiceHandler) CreatePasswordChangeTicket(context.Context, *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.UserPasswordChangeTicket], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.CreatePasswordChangeTicket is not implemented")) +func (UnimplementedDashboardServiceHandler) CreatePasswordChangeTicket(context.Context, *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.UserPasswordChangeTicket], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.CreatePasswordChangeTicket is not implemented")) } -func (UnimplementedDashboardServiceHandler) DeleteAccount(context.Context, *connect_go.Request[v1.EmptyRequest]) (*connect_go.Response[v1.User], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.DeleteAccount is not implemented")) +func (UnimplementedDashboardServiceHandler) DeleteAccount(context.Context, *connect.Request[v1.EmptyRequest]) (*connect.Response[v1.User], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.DeleteAccount is not implemented")) } -func (UnimplementedDashboardServiceHandler) CreateCharge(context.Context, *connect_go.Request[v1.CreateChargeRequest]) (*connect_go.Response[v1.Charge], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.CreateCharge is not implemented")) +func (UnimplementedDashboardServiceHandler) CreateCharge(context.Context, *connect.Request[v1.CreateChargeRequest]) (*connect.Response[v1.Charge], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.CreateCharge is not implemented")) } -func (UnimplementedDashboardServiceHandler) GetCharges(context.Context, *connect_go.Request[v1.GetChargesRequest]) (*connect_go.Response[v1.Charges], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.GetCharges is not implemented")) +func (UnimplementedDashboardServiceHandler) GetCharges(context.Context, *connect.Request[v1.GetChargesRequest]) (*connect.Response[v1.Charges], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.GetCharges is not implemented")) } -func (UnimplementedDashboardServiceHandler) CreateAutoChargeIntent(context.Context, *connect_go.Request[v1.CreateAutoChargeIntentRequest]) (*connect_go.Response[v1.AutoChargeIntent], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.CreateAutoChargeIntent is not implemented")) +func (UnimplementedDashboardServiceHandler) CreateAutoChargeIntent(context.Context, *connect.Request[v1.CreateAutoChargeIntentRequest]) (*connect.Response[v1.AutoChargeIntent], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.CreateAutoChargeIntent is not implemented")) } -func (UnimplementedDashboardServiceHandler) UpdateAutoChargeIntent(context.Context, *connect_go.Request[v1.CreateAutoChargeIntentRequest]) (*connect_go.Response[v1.AutoChargeIntent], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.UpdateAutoChargeIntent is not implemented")) +func (UnimplementedDashboardServiceHandler) UpdateAutoChargeIntent(context.Context, *connect.Request[v1.CreateAutoChargeIntentRequest]) (*connect.Response[v1.AutoChargeIntent], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.UpdateAutoChargeIntent is not implemented")) } -func (UnimplementedDashboardServiceHandler) GetAutoChargeIntent(context.Context, *connect_go.Request[v1.GetAutoChargeRequest]) (*connect_go.Response[v1.AutoChargeIntent], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.GetAutoChargeIntent is not implemented")) +func (UnimplementedDashboardServiceHandler) GetAutoChargeIntent(context.Context, *connect.Request[v1.GetAutoChargeRequest]) (*connect.Response[v1.AutoChargeIntent], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.api.dashboard.v1.DashboardService.GetAutoChargeIntent is not implemented")) } diff --git a/src/stability_api/platform/engines/v1/enginesv1connect/engines.connect.go b/src/stability_api/platform/engines/v1/enginesv1connect/engines.connect.go index 3908b7c..9883075 100644 --- a/src/stability_api/platform/engines/v1/enginesv1connect/engines.connect.go +++ b/src/stability_api/platform/engines/v1/enginesv1connect/engines.connect.go @@ -5,9 +5,9 @@ package enginesv1connect import ( + connect "connectrpc.com/connect" context "context" errors "errors" - connect_go "github.com/bufbuild/connect-go" v1 "github.com/stability-ai/api-interfaces/src/stability_api/platform/engines/v1" http "net/http" strings "strings" @@ -18,7 +18,7 @@ import ( // generated with a version of connect newer than the one compiled into your binary. You can fix the // problem by either regenerating this code with an older version of connect or updating the connect // version compiled into your binary. -const _ = connect_go.IsAtLeastVersion0_1_0 +const _ = connect.IsAtLeastVersion0_1_0 const ( // EnginesServiceName is the fully-qualified name of the EnginesService service. @@ -41,7 +41,7 @@ const ( // EnginesServiceClient is a client for the stabilityai.platformapis.engines.v1.EnginesService // service. type EnginesServiceClient interface { - ListEngines(context.Context, *connect_go.Request[v1.ListEnginesRequest]) (*connect_go.Response[v1.Engines], error) + ListEngines(context.Context, *connect.Request[v1.ListEnginesRequest]) (*connect.Response[v1.Engines], error) } // NewEnginesServiceClient constructs a client for the @@ -52,10 +52,10 @@ type EnginesServiceClient interface { // // The URL supplied here should be the base URL for the Connect or gRPC server (for example, // http://api.acme.com or https://acme.com/grpc). -func NewEnginesServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) EnginesServiceClient { +func NewEnginesServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) EnginesServiceClient { baseURL = strings.TrimRight(baseURL, "/") return &enginesServiceClient{ - listEngines: connect_go.NewClient[v1.ListEnginesRequest, v1.Engines]( + listEngines: connect.NewClient[v1.ListEnginesRequest, v1.Engines]( httpClient, baseURL+EnginesServiceListEnginesProcedure, opts..., @@ -65,18 +65,18 @@ func NewEnginesServiceClient(httpClient connect_go.HTTPClient, baseURL string, o // enginesServiceClient implements EnginesServiceClient. type enginesServiceClient struct { - listEngines *connect_go.Client[v1.ListEnginesRequest, v1.Engines] + listEngines *connect.Client[v1.ListEnginesRequest, v1.Engines] } // ListEngines calls stabilityai.platformapis.engines.v1.EnginesService.ListEngines. -func (c *enginesServiceClient) ListEngines(ctx context.Context, req *connect_go.Request[v1.ListEnginesRequest]) (*connect_go.Response[v1.Engines], error) { +func (c *enginesServiceClient) ListEngines(ctx context.Context, req *connect.Request[v1.ListEnginesRequest]) (*connect.Response[v1.Engines], error) { return c.listEngines.CallUnary(ctx, req) } // EnginesServiceHandler is an implementation of the // stabilityai.platformapis.engines.v1.EnginesService service. type EnginesServiceHandler interface { - ListEngines(context.Context, *connect_go.Request[v1.ListEnginesRequest]) (*connect_go.Response[v1.Engines], error) + ListEngines(context.Context, *connect.Request[v1.ListEnginesRequest]) (*connect.Response[v1.Engines], error) } // NewEnginesServiceHandler builds an HTTP handler from the service implementation. It returns the @@ -84,8 +84,8 @@ type EnginesServiceHandler interface { // // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. -func NewEnginesServiceHandler(svc EnginesServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler) { - enginesServiceListEnginesHandler := connect_go.NewUnaryHandler( +func NewEnginesServiceHandler(svc EnginesServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + enginesServiceListEnginesHandler := connect.NewUnaryHandler( EnginesServiceListEnginesProcedure, svc.ListEngines, opts..., @@ -103,6 +103,6 @@ func NewEnginesServiceHandler(svc EnginesServiceHandler, opts ...connect_go.Hand // UnimplementedEnginesServiceHandler returns CodeUnimplemented from all methods. type UnimplementedEnginesServiceHandler struct{} -func (UnimplementedEnginesServiceHandler) ListEngines(context.Context, *connect_go.Request[v1.ListEnginesRequest]) (*connect_go.Response[v1.Engines], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.platformapis.engines.v1.EnginesService.ListEngines is not implemented")) +func (UnimplementedEnginesServiceHandler) ListEngines(context.Context, *connect.Request[v1.ListEnginesRequest]) (*connect.Response[v1.Engines], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.platformapis.engines.v1.EnginesService.ListEngines is not implemented")) } diff --git a/src/stability_api/platform/finetuning/finetuningconnect/finetuning.connect.go b/src/stability_api/platform/finetuning/finetuningconnect/finetuning.connect.go index 860ee9c..f435626 100644 --- a/src/stability_api/platform/finetuning/finetuningconnect/finetuning.connect.go +++ b/src/stability_api/platform/finetuning/finetuningconnect/finetuning.connect.go @@ -5,9 +5,9 @@ package finetuningconnect import ( + connect "connectrpc.com/connect" context "context" errors "errors" - connect_go "github.com/bufbuild/connect-go" finetuning "github.com/stability-ai/api-interfaces/src/stability_api/platform/finetuning" http "net/http" strings "strings" @@ -18,7 +18,7 @@ import ( // generated with a version of connect newer than the one compiled into your binary. You can fix the // problem by either regenerating this code with an older version of connect or updating the connect // version compiled into your binary. -const _ = connect_go.IsAtLeastVersion0_1_0 +const _ = connect.IsAtLeastVersion0_1_0 const ( // FineTuningServiceName is the fully-qualified name of the FineTuningService service. @@ -56,17 +56,17 @@ const ( // FineTuningServiceClient is a client for the gooseai.FineTuningService service. type FineTuningServiceClient interface { // Create a new model and begin the fine tuning process - CreateModel(context.Context, *connect_go.Request[finetuning.CreateModelRequest]) (*connect_go.Response[finetuning.CreateModelResponse], error) + CreateModel(context.Context, *connect.Request[finetuning.CreateModelRequest]) (*connect.Response[finetuning.CreateModelResponse], error) // Get a FineTuningModel - GetModel(context.Context, *connect_go.Request[finetuning.GetModelRequest]) (*connect_go.Response[finetuning.GetModelResponse], error) + GetModel(context.Context, *connect.Request[finetuning.GetModelRequest]) (*connect.Response[finetuning.GetModelResponse], error) // Update a FineTuningModel by id - UpdateModel(context.Context, *connect_go.Request[finetuning.UpdateModelRequest]) (*connect_go.Response[finetuning.UpdateModelResponse], error) + UpdateModel(context.Context, *connect.Request[finetuning.UpdateModelRequest]) (*connect.Response[finetuning.UpdateModelResponse], error) // Delete a fine tuned model - DeleteModel(context.Context, *connect_go.Request[finetuning.DeleteModelRequest]) (*connect_go.Response[finetuning.DeleteModelResponse], error) + DeleteModel(context.Context, *connect.Request[finetuning.DeleteModelRequest]) (*connect.Response[finetuning.DeleteModelResponse], error) // Re-run training, does not create a new model - ResubmitModel(context.Context, *connect_go.Request[finetuning.ResubmitModelRequest]) (*connect_go.Response[finetuning.ResubmitModelResponse], error) + ResubmitModel(context.Context, *connect.Request[finetuning.ResubmitModelRequest]) (*connect.Response[finetuning.ResubmitModelResponse], error) // List all the fine tuned models for an organization or user - ListModels(context.Context, *connect_go.Request[finetuning.ListModelsRequest]) (*connect_go.Response[finetuning.ListModelsResponse], error) + ListModels(context.Context, *connect.Request[finetuning.ListModelsRequest]) (*connect.Response[finetuning.ListModelsResponse], error) } // NewFineTuningServiceClient constructs a client for the gooseai.FineTuningService service. By @@ -76,35 +76,35 @@ type FineTuningServiceClient interface { // // The URL supplied here should be the base URL for the Connect or gRPC server (for example, // http://api.acme.com or https://acme.com/grpc). -func NewFineTuningServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) FineTuningServiceClient { +func NewFineTuningServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) FineTuningServiceClient { baseURL = strings.TrimRight(baseURL, "/") return &fineTuningServiceClient{ - createModel: connect_go.NewClient[finetuning.CreateModelRequest, finetuning.CreateModelResponse]( + createModel: connect.NewClient[finetuning.CreateModelRequest, finetuning.CreateModelResponse]( httpClient, baseURL+FineTuningServiceCreateModelProcedure, opts..., ), - getModel: connect_go.NewClient[finetuning.GetModelRequest, finetuning.GetModelResponse]( + getModel: connect.NewClient[finetuning.GetModelRequest, finetuning.GetModelResponse]( httpClient, baseURL+FineTuningServiceGetModelProcedure, opts..., ), - updateModel: connect_go.NewClient[finetuning.UpdateModelRequest, finetuning.UpdateModelResponse]( + updateModel: connect.NewClient[finetuning.UpdateModelRequest, finetuning.UpdateModelResponse]( httpClient, baseURL+FineTuningServiceUpdateModelProcedure, opts..., ), - deleteModel: connect_go.NewClient[finetuning.DeleteModelRequest, finetuning.DeleteModelResponse]( + deleteModel: connect.NewClient[finetuning.DeleteModelRequest, finetuning.DeleteModelResponse]( httpClient, baseURL+FineTuningServiceDeleteModelProcedure, opts..., ), - resubmitModel: connect_go.NewClient[finetuning.ResubmitModelRequest, finetuning.ResubmitModelResponse]( + resubmitModel: connect.NewClient[finetuning.ResubmitModelRequest, finetuning.ResubmitModelResponse]( httpClient, baseURL+FineTuningServiceResubmitModelProcedure, opts..., ), - listModels: connect_go.NewClient[finetuning.ListModelsRequest, finetuning.ListModelsResponse]( + listModels: connect.NewClient[finetuning.ListModelsRequest, finetuning.ListModelsResponse]( httpClient, baseURL+FineTuningServiceListModelsProcedure, opts..., @@ -114,58 +114,58 @@ func NewFineTuningServiceClient(httpClient connect_go.HTTPClient, baseURL string // fineTuningServiceClient implements FineTuningServiceClient. type fineTuningServiceClient struct { - createModel *connect_go.Client[finetuning.CreateModelRequest, finetuning.CreateModelResponse] - getModel *connect_go.Client[finetuning.GetModelRequest, finetuning.GetModelResponse] - updateModel *connect_go.Client[finetuning.UpdateModelRequest, finetuning.UpdateModelResponse] - deleteModel *connect_go.Client[finetuning.DeleteModelRequest, finetuning.DeleteModelResponse] - resubmitModel *connect_go.Client[finetuning.ResubmitModelRequest, finetuning.ResubmitModelResponse] - listModels *connect_go.Client[finetuning.ListModelsRequest, finetuning.ListModelsResponse] + createModel *connect.Client[finetuning.CreateModelRequest, finetuning.CreateModelResponse] + getModel *connect.Client[finetuning.GetModelRequest, finetuning.GetModelResponse] + updateModel *connect.Client[finetuning.UpdateModelRequest, finetuning.UpdateModelResponse] + deleteModel *connect.Client[finetuning.DeleteModelRequest, finetuning.DeleteModelResponse] + resubmitModel *connect.Client[finetuning.ResubmitModelRequest, finetuning.ResubmitModelResponse] + listModels *connect.Client[finetuning.ListModelsRequest, finetuning.ListModelsResponse] } // CreateModel calls gooseai.FineTuningService.CreateModel. -func (c *fineTuningServiceClient) CreateModel(ctx context.Context, req *connect_go.Request[finetuning.CreateModelRequest]) (*connect_go.Response[finetuning.CreateModelResponse], error) { +func (c *fineTuningServiceClient) CreateModel(ctx context.Context, req *connect.Request[finetuning.CreateModelRequest]) (*connect.Response[finetuning.CreateModelResponse], error) { return c.createModel.CallUnary(ctx, req) } // GetModel calls gooseai.FineTuningService.GetModel. -func (c *fineTuningServiceClient) GetModel(ctx context.Context, req *connect_go.Request[finetuning.GetModelRequest]) (*connect_go.Response[finetuning.GetModelResponse], error) { +func (c *fineTuningServiceClient) GetModel(ctx context.Context, req *connect.Request[finetuning.GetModelRequest]) (*connect.Response[finetuning.GetModelResponse], error) { return c.getModel.CallUnary(ctx, req) } // UpdateModel calls gooseai.FineTuningService.UpdateModel. -func (c *fineTuningServiceClient) UpdateModel(ctx context.Context, req *connect_go.Request[finetuning.UpdateModelRequest]) (*connect_go.Response[finetuning.UpdateModelResponse], error) { +func (c *fineTuningServiceClient) UpdateModel(ctx context.Context, req *connect.Request[finetuning.UpdateModelRequest]) (*connect.Response[finetuning.UpdateModelResponse], error) { return c.updateModel.CallUnary(ctx, req) } // DeleteModel calls gooseai.FineTuningService.DeleteModel. -func (c *fineTuningServiceClient) DeleteModel(ctx context.Context, req *connect_go.Request[finetuning.DeleteModelRequest]) (*connect_go.Response[finetuning.DeleteModelResponse], error) { +func (c *fineTuningServiceClient) DeleteModel(ctx context.Context, req *connect.Request[finetuning.DeleteModelRequest]) (*connect.Response[finetuning.DeleteModelResponse], error) { return c.deleteModel.CallUnary(ctx, req) } // ResubmitModel calls gooseai.FineTuningService.ResubmitModel. -func (c *fineTuningServiceClient) ResubmitModel(ctx context.Context, req *connect_go.Request[finetuning.ResubmitModelRequest]) (*connect_go.Response[finetuning.ResubmitModelResponse], error) { +func (c *fineTuningServiceClient) ResubmitModel(ctx context.Context, req *connect.Request[finetuning.ResubmitModelRequest]) (*connect.Response[finetuning.ResubmitModelResponse], error) { return c.resubmitModel.CallUnary(ctx, req) } // ListModels calls gooseai.FineTuningService.ListModels. -func (c *fineTuningServiceClient) ListModels(ctx context.Context, req *connect_go.Request[finetuning.ListModelsRequest]) (*connect_go.Response[finetuning.ListModelsResponse], error) { +func (c *fineTuningServiceClient) ListModels(ctx context.Context, req *connect.Request[finetuning.ListModelsRequest]) (*connect.Response[finetuning.ListModelsResponse], error) { return c.listModels.CallUnary(ctx, req) } // FineTuningServiceHandler is an implementation of the gooseai.FineTuningService service. type FineTuningServiceHandler interface { // Create a new model and begin the fine tuning process - CreateModel(context.Context, *connect_go.Request[finetuning.CreateModelRequest]) (*connect_go.Response[finetuning.CreateModelResponse], error) + CreateModel(context.Context, *connect.Request[finetuning.CreateModelRequest]) (*connect.Response[finetuning.CreateModelResponse], error) // Get a FineTuningModel - GetModel(context.Context, *connect_go.Request[finetuning.GetModelRequest]) (*connect_go.Response[finetuning.GetModelResponse], error) + GetModel(context.Context, *connect.Request[finetuning.GetModelRequest]) (*connect.Response[finetuning.GetModelResponse], error) // Update a FineTuningModel by id - UpdateModel(context.Context, *connect_go.Request[finetuning.UpdateModelRequest]) (*connect_go.Response[finetuning.UpdateModelResponse], error) + UpdateModel(context.Context, *connect.Request[finetuning.UpdateModelRequest]) (*connect.Response[finetuning.UpdateModelResponse], error) // Delete a fine tuned model - DeleteModel(context.Context, *connect_go.Request[finetuning.DeleteModelRequest]) (*connect_go.Response[finetuning.DeleteModelResponse], error) + DeleteModel(context.Context, *connect.Request[finetuning.DeleteModelRequest]) (*connect.Response[finetuning.DeleteModelResponse], error) // Re-run training, does not create a new model - ResubmitModel(context.Context, *connect_go.Request[finetuning.ResubmitModelRequest]) (*connect_go.Response[finetuning.ResubmitModelResponse], error) + ResubmitModel(context.Context, *connect.Request[finetuning.ResubmitModelRequest]) (*connect.Response[finetuning.ResubmitModelResponse], error) // List all the fine tuned models for an organization or user - ListModels(context.Context, *connect_go.Request[finetuning.ListModelsRequest]) (*connect_go.Response[finetuning.ListModelsResponse], error) + ListModels(context.Context, *connect.Request[finetuning.ListModelsRequest]) (*connect.Response[finetuning.ListModelsResponse], error) } // NewFineTuningServiceHandler builds an HTTP handler from the service implementation. It returns @@ -173,33 +173,33 @@ type FineTuningServiceHandler interface { // // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. -func NewFineTuningServiceHandler(svc FineTuningServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler) { - fineTuningServiceCreateModelHandler := connect_go.NewUnaryHandler( +func NewFineTuningServiceHandler(svc FineTuningServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + fineTuningServiceCreateModelHandler := connect.NewUnaryHandler( FineTuningServiceCreateModelProcedure, svc.CreateModel, opts..., ) - fineTuningServiceGetModelHandler := connect_go.NewUnaryHandler( + fineTuningServiceGetModelHandler := connect.NewUnaryHandler( FineTuningServiceGetModelProcedure, svc.GetModel, opts..., ) - fineTuningServiceUpdateModelHandler := connect_go.NewUnaryHandler( + fineTuningServiceUpdateModelHandler := connect.NewUnaryHandler( FineTuningServiceUpdateModelProcedure, svc.UpdateModel, opts..., ) - fineTuningServiceDeleteModelHandler := connect_go.NewUnaryHandler( + fineTuningServiceDeleteModelHandler := connect.NewUnaryHandler( FineTuningServiceDeleteModelProcedure, svc.DeleteModel, opts..., ) - fineTuningServiceResubmitModelHandler := connect_go.NewUnaryHandler( + fineTuningServiceResubmitModelHandler := connect.NewUnaryHandler( FineTuningServiceResubmitModelProcedure, svc.ResubmitModel, opts..., ) - fineTuningServiceListModelsHandler := connect_go.NewUnaryHandler( + fineTuningServiceListModelsHandler := connect.NewUnaryHandler( FineTuningServiceListModelsProcedure, svc.ListModels, opts..., @@ -227,26 +227,26 @@ func NewFineTuningServiceHandler(svc FineTuningServiceHandler, opts ...connect_g // UnimplementedFineTuningServiceHandler returns CodeUnimplemented from all methods. type UnimplementedFineTuningServiceHandler struct{} -func (UnimplementedFineTuningServiceHandler) CreateModel(context.Context, *connect_go.Request[finetuning.CreateModelRequest]) (*connect_go.Response[finetuning.CreateModelResponse], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("gooseai.FineTuningService.CreateModel is not implemented")) +func (UnimplementedFineTuningServiceHandler) CreateModel(context.Context, *connect.Request[finetuning.CreateModelRequest]) (*connect.Response[finetuning.CreateModelResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("gooseai.FineTuningService.CreateModel is not implemented")) } -func (UnimplementedFineTuningServiceHandler) GetModel(context.Context, *connect_go.Request[finetuning.GetModelRequest]) (*connect_go.Response[finetuning.GetModelResponse], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("gooseai.FineTuningService.GetModel is not implemented")) +func (UnimplementedFineTuningServiceHandler) GetModel(context.Context, *connect.Request[finetuning.GetModelRequest]) (*connect.Response[finetuning.GetModelResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("gooseai.FineTuningService.GetModel is not implemented")) } -func (UnimplementedFineTuningServiceHandler) UpdateModel(context.Context, *connect_go.Request[finetuning.UpdateModelRequest]) (*connect_go.Response[finetuning.UpdateModelResponse], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("gooseai.FineTuningService.UpdateModel is not implemented")) +func (UnimplementedFineTuningServiceHandler) UpdateModel(context.Context, *connect.Request[finetuning.UpdateModelRequest]) (*connect.Response[finetuning.UpdateModelResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("gooseai.FineTuningService.UpdateModel is not implemented")) } -func (UnimplementedFineTuningServiceHandler) DeleteModel(context.Context, *connect_go.Request[finetuning.DeleteModelRequest]) (*connect_go.Response[finetuning.DeleteModelResponse], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("gooseai.FineTuningService.DeleteModel is not implemented")) +func (UnimplementedFineTuningServiceHandler) DeleteModel(context.Context, *connect.Request[finetuning.DeleteModelRequest]) (*connect.Response[finetuning.DeleteModelResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("gooseai.FineTuningService.DeleteModel is not implemented")) } -func (UnimplementedFineTuningServiceHandler) ResubmitModel(context.Context, *connect_go.Request[finetuning.ResubmitModelRequest]) (*connect_go.Response[finetuning.ResubmitModelResponse], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("gooseai.FineTuningService.ResubmitModel is not implemented")) +func (UnimplementedFineTuningServiceHandler) ResubmitModel(context.Context, *connect.Request[finetuning.ResubmitModelRequest]) (*connect.Response[finetuning.ResubmitModelResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("gooseai.FineTuningService.ResubmitModel is not implemented")) } -func (UnimplementedFineTuningServiceHandler) ListModels(context.Context, *connect_go.Request[finetuning.ListModelsRequest]) (*connect_go.Response[finetuning.ListModelsResponse], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("gooseai.FineTuningService.ListModels is not implemented")) +func (UnimplementedFineTuningServiceHandler) ListModels(context.Context, *connect.Request[finetuning.ListModelsRequest]) (*connect.Response[finetuning.ListModelsResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("gooseai.FineTuningService.ListModels is not implemented")) } diff --git a/src/stability_api/platform/generation/v1/generationv1connect/generation.connect.go b/src/stability_api/platform/generation/v1/generationv1connect/generation.connect.go index 2284c05..cd29b0f 100644 --- a/src/stability_api/platform/generation/v1/generationv1connect/generation.connect.go +++ b/src/stability_api/platform/generation/v1/generationv1connect/generation.connect.go @@ -5,9 +5,9 @@ package generationv1connect import ( + connect "connectrpc.com/connect" context "context" errors "errors" - connect_go "github.com/bufbuild/connect-go" v1 "github.com/stability-ai/api-interfaces/src/stability_api/platform/generation/v1" http "net/http" strings "strings" @@ -18,7 +18,7 @@ import ( // generated with a version of connect newer than the one compiled into your binary. You can fix the // problem by either regenerating this code with an older version of connect or updating the connect // version compiled into your binary. -const _ = connect_go.IsAtLeastVersion0_1_0 +const _ = connect.IsAtLeastVersion0_1_0 const ( // GenerationServiceName is the fully-qualified name of the GenerationService service. @@ -44,8 +44,8 @@ const ( // GenerationServiceClient is a client for the // stabilityai.platformapis.generation.v1.GenerationService service. type GenerationServiceClient interface { - Generate(context.Context, *connect_go.Request[v1.Request]) (*connect_go.ServerStreamForClient[v1.Answer], error) - ChainGenerate(context.Context, *connect_go.Request[v1.ChainRequest]) (*connect_go.ServerStreamForClient[v1.Answer], error) + Generate(context.Context, *connect.Request[v1.Request]) (*connect.ServerStreamForClient[v1.Answer], error) + ChainGenerate(context.Context, *connect.Request[v1.ChainRequest]) (*connect.ServerStreamForClient[v1.Answer], error) } // NewGenerationServiceClient constructs a client for the @@ -56,15 +56,15 @@ type GenerationServiceClient interface { // // The URL supplied here should be the base URL for the Connect or gRPC server (for example, // http://api.acme.com or https://acme.com/grpc). -func NewGenerationServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) GenerationServiceClient { +func NewGenerationServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) GenerationServiceClient { baseURL = strings.TrimRight(baseURL, "/") return &generationServiceClient{ - generate: connect_go.NewClient[v1.Request, v1.Answer]( + generate: connect.NewClient[v1.Request, v1.Answer]( httpClient, baseURL+GenerationServiceGenerateProcedure, opts..., ), - chainGenerate: connect_go.NewClient[v1.ChainRequest, v1.Answer]( + chainGenerate: connect.NewClient[v1.ChainRequest, v1.Answer]( httpClient, baseURL+GenerationServiceChainGenerateProcedure, opts..., @@ -74,25 +74,25 @@ func NewGenerationServiceClient(httpClient connect_go.HTTPClient, baseURL string // generationServiceClient implements GenerationServiceClient. type generationServiceClient struct { - generate *connect_go.Client[v1.Request, v1.Answer] - chainGenerate *connect_go.Client[v1.ChainRequest, v1.Answer] + generate *connect.Client[v1.Request, v1.Answer] + chainGenerate *connect.Client[v1.ChainRequest, v1.Answer] } // Generate calls stabilityai.platformapis.generation.v1.GenerationService.Generate. -func (c *generationServiceClient) Generate(ctx context.Context, req *connect_go.Request[v1.Request]) (*connect_go.ServerStreamForClient[v1.Answer], error) { +func (c *generationServiceClient) Generate(ctx context.Context, req *connect.Request[v1.Request]) (*connect.ServerStreamForClient[v1.Answer], error) { return c.generate.CallServerStream(ctx, req) } // ChainGenerate calls stabilityai.platformapis.generation.v1.GenerationService.ChainGenerate. -func (c *generationServiceClient) ChainGenerate(ctx context.Context, req *connect_go.Request[v1.ChainRequest]) (*connect_go.ServerStreamForClient[v1.Answer], error) { +func (c *generationServiceClient) ChainGenerate(ctx context.Context, req *connect.Request[v1.ChainRequest]) (*connect.ServerStreamForClient[v1.Answer], error) { return c.chainGenerate.CallServerStream(ctx, req) } // GenerationServiceHandler is an implementation of the // stabilityai.platformapis.generation.v1.GenerationService service. type GenerationServiceHandler interface { - Generate(context.Context, *connect_go.Request[v1.Request], *connect_go.ServerStream[v1.Answer]) error - ChainGenerate(context.Context, *connect_go.Request[v1.ChainRequest], *connect_go.ServerStream[v1.Answer]) error + Generate(context.Context, *connect.Request[v1.Request], *connect.ServerStream[v1.Answer]) error + ChainGenerate(context.Context, *connect.Request[v1.ChainRequest], *connect.ServerStream[v1.Answer]) error } // NewGenerationServiceHandler builds an HTTP handler from the service implementation. It returns @@ -100,13 +100,13 @@ type GenerationServiceHandler interface { // // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. -func NewGenerationServiceHandler(svc GenerationServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler) { - generationServiceGenerateHandler := connect_go.NewServerStreamHandler( +func NewGenerationServiceHandler(svc GenerationServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + generationServiceGenerateHandler := connect.NewServerStreamHandler( GenerationServiceGenerateProcedure, svc.Generate, opts..., ) - generationServiceChainGenerateHandler := connect_go.NewServerStreamHandler( + generationServiceChainGenerateHandler := connect.NewServerStreamHandler( GenerationServiceChainGenerateProcedure, svc.ChainGenerate, opts..., @@ -126,10 +126,10 @@ func NewGenerationServiceHandler(svc GenerationServiceHandler, opts ...connect_g // UnimplementedGenerationServiceHandler returns CodeUnimplemented from all methods. type UnimplementedGenerationServiceHandler struct{} -func (UnimplementedGenerationServiceHandler) Generate(context.Context, *connect_go.Request[v1.Request], *connect_go.ServerStream[v1.Answer]) error { - return connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.platformapis.generation.v1.GenerationService.Generate is not implemented")) +func (UnimplementedGenerationServiceHandler) Generate(context.Context, *connect.Request[v1.Request], *connect.ServerStream[v1.Answer]) error { + return connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.platformapis.generation.v1.GenerationService.Generate is not implemented")) } -func (UnimplementedGenerationServiceHandler) ChainGenerate(context.Context, *connect_go.Request[v1.ChainRequest], *connect_go.ServerStream[v1.Answer]) error { - return connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.platformapis.generation.v1.GenerationService.ChainGenerate is not implemented")) +func (UnimplementedGenerationServiceHandler) ChainGenerate(context.Context, *connect.Request[v1.ChainRequest], *connect.ServerStream[v1.Answer]) error { + return connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.platformapis.generation.v1.GenerationService.ChainGenerate is not implemented")) } diff --git a/src/stability_api/platform/project/v1/projectv1connect/project.connect.go b/src/stability_api/platform/project/v1/projectv1connect/project.connect.go index 7ab958a..8c808cc 100644 --- a/src/stability_api/platform/project/v1/projectv1connect/project.connect.go +++ b/src/stability_api/platform/project/v1/projectv1connect/project.connect.go @@ -5,9 +5,9 @@ package projectv1connect import ( + connect "connectrpc.com/connect" context "context" errors "errors" - connect_go "github.com/bufbuild/connect-go" v1 "github.com/stability-ai/api-interfaces/src/stability_api/platform/project/v1" http "net/http" strings "strings" @@ -18,7 +18,7 @@ import ( // generated with a version of connect newer than the one compiled into your binary. You can fix the // problem by either regenerating this code with an older version of connect or updating the connect // version compiled into your binary. -const _ = connect_go.IsAtLeastVersion0_1_0 +const _ = connect.IsAtLeastVersion0_1_0 const ( // ProjectServiceName is the fully-qualified name of the ProjectService service. @@ -61,22 +61,22 @@ const ( // service. type ProjectServiceClient interface { // Create a new project if it does not exist - Create(context.Context, *connect_go.Request[v1.CreateProjectRequest]) (*connect_go.Response[v1.Project], error) + Create(context.Context, *connect.Request[v1.CreateProjectRequest]) (*connect.Response[v1.Project], error) // Update an existing project - Update(context.Context, *connect_go.Request[v1.UpdateProjectRequest]) (*connect_go.Response[v1.Project], error) + Update(context.Context, *connect.Request[v1.UpdateProjectRequest]) (*connect.Response[v1.Project], error) // List all the projects for an organization - List(context.Context, *connect_go.Request[v1.ListProjectRequest]) (*connect_go.ServerStreamForClient[v1.Project], error) + List(context.Context, *connect.Request[v1.ListProjectRequest]) (*connect.ServerStreamForClient[v1.Project], error) // Get a project - Get(context.Context, *connect_go.Request[v1.GetProjectRequest]) (*connect_go.Response[v1.Project], error) + Get(context.Context, *connect.Request[v1.GetProjectRequest]) (*connect.Response[v1.Project], error) // Delete a project - Delete(context.Context, *connect_go.Request[v1.DeleteProjectRequest]) (*connect_go.Response[v1.Project], error) + Delete(context.Context, *connect.Request[v1.DeleteProjectRequest]) (*connect.Response[v1.Project], error) // Add or remove tags from an asset - TagAssets(context.Context, *connect_go.Request[v1.TagAssetsRequest]) (*connect_go.Response[v1.TagAssetsResponse], error) - UntagAssets(context.Context, *connect_go.Request[v1.UntagAssetsRequest]) (*connect_go.Response[v1.UntagAssetsResponse], error) + TagAssets(context.Context, *connect.Request[v1.TagAssetsRequest]) (*connect.Response[v1.TagAssetsResponse], error) + UntagAssets(context.Context, *connect.Request[v1.UntagAssetsRequest]) (*connect.Response[v1.UntagAssetsResponse], error) // Query the assets of a project, with additional filtering - QueryAssets(context.Context, *connect_go.Request[v1.QueryAssetsRequest]) (*connect_go.Response[v1.QueryAssetsResponse], error) + QueryAssets(context.Context, *connect.Request[v1.QueryAssetsRequest]) (*connect.Response[v1.QueryAssetsResponse], error) // Delete one or more assets of a project - DeleteAssets(context.Context, *connect_go.Request[v1.DeleteAssetsRequest]) (*connect_go.Response[v1.DeleteAssetsResponse], error) + DeleteAssets(context.Context, *connect.Request[v1.DeleteAssetsRequest]) (*connect.Response[v1.DeleteAssetsResponse], error) } // NewProjectServiceClient constructs a client for the @@ -87,50 +87,50 @@ type ProjectServiceClient interface { // // The URL supplied here should be the base URL for the Connect or gRPC server (for example, // http://api.acme.com or https://acme.com/grpc). -func NewProjectServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) ProjectServiceClient { +func NewProjectServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ProjectServiceClient { baseURL = strings.TrimRight(baseURL, "/") return &projectServiceClient{ - create: connect_go.NewClient[v1.CreateProjectRequest, v1.Project]( + create: connect.NewClient[v1.CreateProjectRequest, v1.Project]( httpClient, baseURL+ProjectServiceCreateProcedure, opts..., ), - update: connect_go.NewClient[v1.UpdateProjectRequest, v1.Project]( + update: connect.NewClient[v1.UpdateProjectRequest, v1.Project]( httpClient, baseURL+ProjectServiceUpdateProcedure, opts..., ), - list: connect_go.NewClient[v1.ListProjectRequest, v1.Project]( + list: connect.NewClient[v1.ListProjectRequest, v1.Project]( httpClient, baseURL+ProjectServiceListProcedure, opts..., ), - get: connect_go.NewClient[v1.GetProjectRequest, v1.Project]( + get: connect.NewClient[v1.GetProjectRequest, v1.Project]( httpClient, baseURL+ProjectServiceGetProcedure, opts..., ), - delete: connect_go.NewClient[v1.DeleteProjectRequest, v1.Project]( + delete: connect.NewClient[v1.DeleteProjectRequest, v1.Project]( httpClient, baseURL+ProjectServiceDeleteProcedure, opts..., ), - tagAssets: connect_go.NewClient[v1.TagAssetsRequest, v1.TagAssetsResponse]( + tagAssets: connect.NewClient[v1.TagAssetsRequest, v1.TagAssetsResponse]( httpClient, baseURL+ProjectServiceTagAssetsProcedure, opts..., ), - untagAssets: connect_go.NewClient[v1.UntagAssetsRequest, v1.UntagAssetsResponse]( + untagAssets: connect.NewClient[v1.UntagAssetsRequest, v1.UntagAssetsResponse]( httpClient, baseURL+ProjectServiceUntagAssetsProcedure, opts..., ), - queryAssets: connect_go.NewClient[v1.QueryAssetsRequest, v1.QueryAssetsResponse]( + queryAssets: connect.NewClient[v1.QueryAssetsRequest, v1.QueryAssetsResponse]( httpClient, baseURL+ProjectServiceQueryAssetsProcedure, opts..., ), - deleteAssets: connect_go.NewClient[v1.DeleteAssetsRequest, v1.DeleteAssetsResponse]( + deleteAssets: connect.NewClient[v1.DeleteAssetsRequest, v1.DeleteAssetsResponse]( httpClient, baseURL+ProjectServiceDeleteAssetsProcedure, opts..., @@ -140,59 +140,59 @@ func NewProjectServiceClient(httpClient connect_go.HTTPClient, baseURL string, o // projectServiceClient implements ProjectServiceClient. type projectServiceClient struct { - create *connect_go.Client[v1.CreateProjectRequest, v1.Project] - update *connect_go.Client[v1.UpdateProjectRequest, v1.Project] - list *connect_go.Client[v1.ListProjectRequest, v1.Project] - get *connect_go.Client[v1.GetProjectRequest, v1.Project] - delete *connect_go.Client[v1.DeleteProjectRequest, v1.Project] - tagAssets *connect_go.Client[v1.TagAssetsRequest, v1.TagAssetsResponse] - untagAssets *connect_go.Client[v1.UntagAssetsRequest, v1.UntagAssetsResponse] - queryAssets *connect_go.Client[v1.QueryAssetsRequest, v1.QueryAssetsResponse] - deleteAssets *connect_go.Client[v1.DeleteAssetsRequest, v1.DeleteAssetsResponse] + create *connect.Client[v1.CreateProjectRequest, v1.Project] + update *connect.Client[v1.UpdateProjectRequest, v1.Project] + list *connect.Client[v1.ListProjectRequest, v1.Project] + get *connect.Client[v1.GetProjectRequest, v1.Project] + delete *connect.Client[v1.DeleteProjectRequest, v1.Project] + tagAssets *connect.Client[v1.TagAssetsRequest, v1.TagAssetsResponse] + untagAssets *connect.Client[v1.UntagAssetsRequest, v1.UntagAssetsResponse] + queryAssets *connect.Client[v1.QueryAssetsRequest, v1.QueryAssetsResponse] + deleteAssets *connect.Client[v1.DeleteAssetsRequest, v1.DeleteAssetsResponse] } // Create calls stabilityai.platformapis.project.v1.ProjectService.Create. -func (c *projectServiceClient) Create(ctx context.Context, req *connect_go.Request[v1.CreateProjectRequest]) (*connect_go.Response[v1.Project], error) { +func (c *projectServiceClient) Create(ctx context.Context, req *connect.Request[v1.CreateProjectRequest]) (*connect.Response[v1.Project], error) { return c.create.CallUnary(ctx, req) } // Update calls stabilityai.platformapis.project.v1.ProjectService.Update. -func (c *projectServiceClient) Update(ctx context.Context, req *connect_go.Request[v1.UpdateProjectRequest]) (*connect_go.Response[v1.Project], error) { +func (c *projectServiceClient) Update(ctx context.Context, req *connect.Request[v1.UpdateProjectRequest]) (*connect.Response[v1.Project], error) { return c.update.CallUnary(ctx, req) } // List calls stabilityai.platformapis.project.v1.ProjectService.List. -func (c *projectServiceClient) List(ctx context.Context, req *connect_go.Request[v1.ListProjectRequest]) (*connect_go.ServerStreamForClient[v1.Project], error) { +func (c *projectServiceClient) List(ctx context.Context, req *connect.Request[v1.ListProjectRequest]) (*connect.ServerStreamForClient[v1.Project], error) { return c.list.CallServerStream(ctx, req) } // Get calls stabilityai.platformapis.project.v1.ProjectService.Get. -func (c *projectServiceClient) Get(ctx context.Context, req *connect_go.Request[v1.GetProjectRequest]) (*connect_go.Response[v1.Project], error) { +func (c *projectServiceClient) Get(ctx context.Context, req *connect.Request[v1.GetProjectRequest]) (*connect.Response[v1.Project], error) { return c.get.CallUnary(ctx, req) } // Delete calls stabilityai.platformapis.project.v1.ProjectService.Delete. -func (c *projectServiceClient) Delete(ctx context.Context, req *connect_go.Request[v1.DeleteProjectRequest]) (*connect_go.Response[v1.Project], error) { +func (c *projectServiceClient) Delete(ctx context.Context, req *connect.Request[v1.DeleteProjectRequest]) (*connect.Response[v1.Project], error) { return c.delete.CallUnary(ctx, req) } // TagAssets calls stabilityai.platformapis.project.v1.ProjectService.TagAssets. -func (c *projectServiceClient) TagAssets(ctx context.Context, req *connect_go.Request[v1.TagAssetsRequest]) (*connect_go.Response[v1.TagAssetsResponse], error) { +func (c *projectServiceClient) TagAssets(ctx context.Context, req *connect.Request[v1.TagAssetsRequest]) (*connect.Response[v1.TagAssetsResponse], error) { return c.tagAssets.CallUnary(ctx, req) } // UntagAssets calls stabilityai.platformapis.project.v1.ProjectService.UntagAssets. -func (c *projectServiceClient) UntagAssets(ctx context.Context, req *connect_go.Request[v1.UntagAssetsRequest]) (*connect_go.Response[v1.UntagAssetsResponse], error) { +func (c *projectServiceClient) UntagAssets(ctx context.Context, req *connect.Request[v1.UntagAssetsRequest]) (*connect.Response[v1.UntagAssetsResponse], error) { return c.untagAssets.CallUnary(ctx, req) } // QueryAssets calls stabilityai.platformapis.project.v1.ProjectService.QueryAssets. -func (c *projectServiceClient) QueryAssets(ctx context.Context, req *connect_go.Request[v1.QueryAssetsRequest]) (*connect_go.Response[v1.QueryAssetsResponse], error) { +func (c *projectServiceClient) QueryAssets(ctx context.Context, req *connect.Request[v1.QueryAssetsRequest]) (*connect.Response[v1.QueryAssetsResponse], error) { return c.queryAssets.CallUnary(ctx, req) } // DeleteAssets calls stabilityai.platformapis.project.v1.ProjectService.DeleteAssets. -func (c *projectServiceClient) DeleteAssets(ctx context.Context, req *connect_go.Request[v1.DeleteAssetsRequest]) (*connect_go.Response[v1.DeleteAssetsResponse], error) { +func (c *projectServiceClient) DeleteAssets(ctx context.Context, req *connect.Request[v1.DeleteAssetsRequest]) (*connect.Response[v1.DeleteAssetsResponse], error) { return c.deleteAssets.CallUnary(ctx, req) } @@ -200,22 +200,22 @@ func (c *projectServiceClient) DeleteAssets(ctx context.Context, req *connect_go // stabilityai.platformapis.project.v1.ProjectService service. type ProjectServiceHandler interface { // Create a new project if it does not exist - Create(context.Context, *connect_go.Request[v1.CreateProjectRequest]) (*connect_go.Response[v1.Project], error) + Create(context.Context, *connect.Request[v1.CreateProjectRequest]) (*connect.Response[v1.Project], error) // Update an existing project - Update(context.Context, *connect_go.Request[v1.UpdateProjectRequest]) (*connect_go.Response[v1.Project], error) + Update(context.Context, *connect.Request[v1.UpdateProjectRequest]) (*connect.Response[v1.Project], error) // List all the projects for an organization - List(context.Context, *connect_go.Request[v1.ListProjectRequest], *connect_go.ServerStream[v1.Project]) error + List(context.Context, *connect.Request[v1.ListProjectRequest], *connect.ServerStream[v1.Project]) error // Get a project - Get(context.Context, *connect_go.Request[v1.GetProjectRequest]) (*connect_go.Response[v1.Project], error) + Get(context.Context, *connect.Request[v1.GetProjectRequest]) (*connect.Response[v1.Project], error) // Delete a project - Delete(context.Context, *connect_go.Request[v1.DeleteProjectRequest]) (*connect_go.Response[v1.Project], error) + Delete(context.Context, *connect.Request[v1.DeleteProjectRequest]) (*connect.Response[v1.Project], error) // Add or remove tags from an asset - TagAssets(context.Context, *connect_go.Request[v1.TagAssetsRequest]) (*connect_go.Response[v1.TagAssetsResponse], error) - UntagAssets(context.Context, *connect_go.Request[v1.UntagAssetsRequest]) (*connect_go.Response[v1.UntagAssetsResponse], error) + TagAssets(context.Context, *connect.Request[v1.TagAssetsRequest]) (*connect.Response[v1.TagAssetsResponse], error) + UntagAssets(context.Context, *connect.Request[v1.UntagAssetsRequest]) (*connect.Response[v1.UntagAssetsResponse], error) // Query the assets of a project, with additional filtering - QueryAssets(context.Context, *connect_go.Request[v1.QueryAssetsRequest]) (*connect_go.Response[v1.QueryAssetsResponse], error) + QueryAssets(context.Context, *connect.Request[v1.QueryAssetsRequest]) (*connect.Response[v1.QueryAssetsResponse], error) // Delete one or more assets of a project - DeleteAssets(context.Context, *connect_go.Request[v1.DeleteAssetsRequest]) (*connect_go.Response[v1.DeleteAssetsResponse], error) + DeleteAssets(context.Context, *connect.Request[v1.DeleteAssetsRequest]) (*connect.Response[v1.DeleteAssetsResponse], error) } // NewProjectServiceHandler builds an HTTP handler from the service implementation. It returns the @@ -223,48 +223,48 @@ type ProjectServiceHandler interface { // // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. -func NewProjectServiceHandler(svc ProjectServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler) { - projectServiceCreateHandler := connect_go.NewUnaryHandler( +func NewProjectServiceHandler(svc ProjectServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + projectServiceCreateHandler := connect.NewUnaryHandler( ProjectServiceCreateProcedure, svc.Create, opts..., ) - projectServiceUpdateHandler := connect_go.NewUnaryHandler( + projectServiceUpdateHandler := connect.NewUnaryHandler( ProjectServiceUpdateProcedure, svc.Update, opts..., ) - projectServiceListHandler := connect_go.NewServerStreamHandler( + projectServiceListHandler := connect.NewServerStreamHandler( ProjectServiceListProcedure, svc.List, opts..., ) - projectServiceGetHandler := connect_go.NewUnaryHandler( + projectServiceGetHandler := connect.NewUnaryHandler( ProjectServiceGetProcedure, svc.Get, opts..., ) - projectServiceDeleteHandler := connect_go.NewUnaryHandler( + projectServiceDeleteHandler := connect.NewUnaryHandler( ProjectServiceDeleteProcedure, svc.Delete, opts..., ) - projectServiceTagAssetsHandler := connect_go.NewUnaryHandler( + projectServiceTagAssetsHandler := connect.NewUnaryHandler( ProjectServiceTagAssetsProcedure, svc.TagAssets, opts..., ) - projectServiceUntagAssetsHandler := connect_go.NewUnaryHandler( + projectServiceUntagAssetsHandler := connect.NewUnaryHandler( ProjectServiceUntagAssetsProcedure, svc.UntagAssets, opts..., ) - projectServiceQueryAssetsHandler := connect_go.NewUnaryHandler( + projectServiceQueryAssetsHandler := connect.NewUnaryHandler( ProjectServiceQueryAssetsProcedure, svc.QueryAssets, opts..., ) - projectServiceDeleteAssetsHandler := connect_go.NewUnaryHandler( + projectServiceDeleteAssetsHandler := connect.NewUnaryHandler( ProjectServiceDeleteAssetsProcedure, svc.DeleteAssets, opts..., @@ -298,38 +298,38 @@ func NewProjectServiceHandler(svc ProjectServiceHandler, opts ...connect_go.Hand // UnimplementedProjectServiceHandler returns CodeUnimplemented from all methods. type UnimplementedProjectServiceHandler struct{} -func (UnimplementedProjectServiceHandler) Create(context.Context, *connect_go.Request[v1.CreateProjectRequest]) (*connect_go.Response[v1.Project], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.platformapis.project.v1.ProjectService.Create is not implemented")) +func (UnimplementedProjectServiceHandler) Create(context.Context, *connect.Request[v1.CreateProjectRequest]) (*connect.Response[v1.Project], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.platformapis.project.v1.ProjectService.Create is not implemented")) } -func (UnimplementedProjectServiceHandler) Update(context.Context, *connect_go.Request[v1.UpdateProjectRequest]) (*connect_go.Response[v1.Project], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.platformapis.project.v1.ProjectService.Update is not implemented")) +func (UnimplementedProjectServiceHandler) Update(context.Context, *connect.Request[v1.UpdateProjectRequest]) (*connect.Response[v1.Project], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.platformapis.project.v1.ProjectService.Update is not implemented")) } -func (UnimplementedProjectServiceHandler) List(context.Context, *connect_go.Request[v1.ListProjectRequest], *connect_go.ServerStream[v1.Project]) error { - return connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.platformapis.project.v1.ProjectService.List is not implemented")) +func (UnimplementedProjectServiceHandler) List(context.Context, *connect.Request[v1.ListProjectRequest], *connect.ServerStream[v1.Project]) error { + return connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.platformapis.project.v1.ProjectService.List is not implemented")) } -func (UnimplementedProjectServiceHandler) Get(context.Context, *connect_go.Request[v1.GetProjectRequest]) (*connect_go.Response[v1.Project], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.platformapis.project.v1.ProjectService.Get is not implemented")) +func (UnimplementedProjectServiceHandler) Get(context.Context, *connect.Request[v1.GetProjectRequest]) (*connect.Response[v1.Project], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.platformapis.project.v1.ProjectService.Get is not implemented")) } -func (UnimplementedProjectServiceHandler) Delete(context.Context, *connect_go.Request[v1.DeleteProjectRequest]) (*connect_go.Response[v1.Project], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.platformapis.project.v1.ProjectService.Delete is not implemented")) +func (UnimplementedProjectServiceHandler) Delete(context.Context, *connect.Request[v1.DeleteProjectRequest]) (*connect.Response[v1.Project], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.platformapis.project.v1.ProjectService.Delete is not implemented")) } -func (UnimplementedProjectServiceHandler) TagAssets(context.Context, *connect_go.Request[v1.TagAssetsRequest]) (*connect_go.Response[v1.TagAssetsResponse], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.platformapis.project.v1.ProjectService.TagAssets is not implemented")) +func (UnimplementedProjectServiceHandler) TagAssets(context.Context, *connect.Request[v1.TagAssetsRequest]) (*connect.Response[v1.TagAssetsResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.platformapis.project.v1.ProjectService.TagAssets is not implemented")) } -func (UnimplementedProjectServiceHandler) UntagAssets(context.Context, *connect_go.Request[v1.UntagAssetsRequest]) (*connect_go.Response[v1.UntagAssetsResponse], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.platformapis.project.v1.ProjectService.UntagAssets is not implemented")) +func (UnimplementedProjectServiceHandler) UntagAssets(context.Context, *connect.Request[v1.UntagAssetsRequest]) (*connect.Response[v1.UntagAssetsResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.platformapis.project.v1.ProjectService.UntagAssets is not implemented")) } -func (UnimplementedProjectServiceHandler) QueryAssets(context.Context, *connect_go.Request[v1.QueryAssetsRequest]) (*connect_go.Response[v1.QueryAssetsResponse], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.platformapis.project.v1.ProjectService.QueryAssets is not implemented")) +func (UnimplementedProjectServiceHandler) QueryAssets(context.Context, *connect.Request[v1.QueryAssetsRequest]) (*connect.Response[v1.QueryAssetsResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.platformapis.project.v1.ProjectService.QueryAssets is not implemented")) } -func (UnimplementedProjectServiceHandler) DeleteAssets(context.Context, *connect_go.Request[v1.DeleteAssetsRequest]) (*connect_go.Response[v1.DeleteAssetsResponse], error) { - return nil, connect_go.NewError(connect_go.CodeUnimplemented, errors.New("stabilityai.platformapis.project.v1.ProjectService.DeleteAssets is not implemented")) +func (UnimplementedProjectServiceHandler) DeleteAssets(context.Context, *connect.Request[v1.DeleteAssetsRequest]) (*connect.Response[v1.DeleteAssetsResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("stabilityai.platformapis.project.v1.ProjectService.DeleteAssets is not implemented")) } From e3feafb45e5106505de41ecf6c196a57546443f6 Mon Sep 17 00:00:00 2001 From: Stephan Auerhahn Date: Mon, 11 Dec 2023 15:19:17 +0000 Subject: [PATCH 20/20] fix hatch build --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 99c94de..5c1f747 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,6 +36,9 @@ Source = "https://github.com/Stability-AI/api-interfaces" [tool.hatch.version] path = "src/stability_api/__about__.py" +[tool.hatch.build.targets.wheel] +include = ["src/stability_api"] + [tool.hatch.build.targets.wheel.force-include] "src/stability_api" = "stability_api"