@devvit/protos 0.11.4 → 0.11.5-next-2024-12-09-8401a61d8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/meta.min.json +7814 -0
- package/package.json +4 -4
- package/protos.min.js +2 -0
- package/protos.min.js.map +7 -0
- package/schema/.snootobuf/deps/buf/validate/expression.proto +92 -0
- package/schema/.snootobuf/deps/buf/validate/priv/private.proto +41 -0
- package/schema/.snootobuf/deps/buf/validate/validate.proto +4130 -0
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/audit.proto +72 -0
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/auth.proto +49 -0
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/organization.proto +54 -0
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/service.proto +46 -0
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/subscription.proto +72 -0
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/ui.proto +20 -0
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/user.proto +45 -0
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/admin.proto +54 -0
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/delivery.proto +773 -0
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/filter.proto +66 -0
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/firehose.proto +100 -0
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/intake.proto +19 -0
- package/schema/.snootobuf/deps/devvit/events/v1alpha/events.proto +446 -0
- package/schema/.snootobuf/deps/devvit/gateway/v1alpha/payments.proto +24 -0
- package/schema/.snootobuf/deps/devvit/options/options.proto +98 -0
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/commentv2.proto +29 -0
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/flair.proto +25 -0
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/modaction.proto +53 -0
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/modmail.proto +56 -0
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/postv2.proto +107 -0
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/subredditv2.proto +41 -0
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/userv2.proto +23 -0
- package/schema/.snootobuf/deps/devvit/triggers/v1alpha/triggers.proto +162 -0
- package/schema/.snootobuf/deps/enum/account_gender_category.proto +14 -0
- package/schema/.snootobuf/deps/enum/approval_status.proto +15 -0
- package/schema/.snootobuf/deps/enum/automated_reporting_level.proto +12 -0
- package/schema/.snootobuf/deps/enum/ban_evasion_threshold.proto +13 -0
- package/schema/.snootobuf/deps/enum/ban_info_action.proto +12 -0
- package/schema/.snootobuf/deps/enum/block_relation_type.proto +11 -0
- package/schema/.snootobuf/deps/enum/comment_sort.proto +18 -0
- package/schema/.snootobuf/deps/enum/comment_type.proto +11 -0
- package/schema/.snootobuf/deps/enum/crowd_control_level.proto +12 -0
- package/schema/.snootobuf/deps/enum/discussion_type.proto +10 -0
- package/schema/.snootobuf/deps/enum/distinguish_type.proto +14 -0
- package/schema/.snootobuf/deps/enum/flair_position.proto +11 -0
- package/schema/.snootobuf/deps/enum/hateful_content_threshold.proto +12 -0
- package/schema/.snootobuf/deps/enum/link_content_type.proto +11 -0
- package/schema/.snootobuf/deps/enum/link_type.proto +11 -0
- package/schema/.snootobuf/deps/enum/link_visibility.proto +11 -0
- package/schema/.snootobuf/deps/enum/prediction_leaderboard_entry_type.proto +11 -0
- package/schema/.snootobuf/deps/enum/promo_layout.proto +11 -0
- package/schema/.snootobuf/deps/enum/removed_by_type.proto +18 -0
- package/schema/.snootobuf/deps/enum/spam_level.proto +11 -0
- package/schema/.snootobuf/deps/enum/subreddit_type.proto +16 -0
- package/schema/.snootobuf/deps/enum/verdict.proto +14 -0
- package/schema/.snootobuf/deps/enum/vote.proto +12 -0
- package/schema/.snootobuf/deps/enum/whitelist_status.proto +17 -0
- package/schema/.snootobuf/deps/enum/wiki_edit_mode.proto +12 -0
- package/schema/.snootobuf/deps/evaluator/evaluator.proto +203 -0
- package/schema/.snootobuf/deps/google/api/annotations.proto +31 -0
- package/schema/.snootobuf/deps/google/api/apikeys/v2/apikeys.proto +288 -0
- package/schema/.snootobuf/deps/google/api/apikeys/v2/resources.proto +175 -0
- package/schema/.snootobuf/deps/google/api/auth.proto +237 -0
- package/schema/.snootobuf/deps/google/api/backend.proto +185 -0
- package/schema/.snootobuf/deps/google/api/billing.proto +77 -0
- package/schema/.snootobuf/deps/google/api/client.proto +431 -0
- package/schema/.snootobuf/deps/google/api/cloudquotas/v1/cloudquotas.proto +322 -0
- package/schema/.snootobuf/deps/google/api/cloudquotas/v1/resources.proto +315 -0
- package/schema/.snootobuf/deps/google/api/config_change.proto +84 -0
- package/schema/.snootobuf/deps/google/api/consumer.proto +82 -0
- package/schema/.snootobuf/deps/google/api/context.proto +92 -0
- package/schema/.snootobuf/deps/google/api/control.proto +41 -0
- package/schema/.snootobuf/deps/google/api/distribution.proto +213 -0
- package/schema/.snootobuf/deps/google/api/documentation.proto +168 -0
- package/schema/.snootobuf/deps/google/api/endpoint.proto +69 -0
- package/schema/.snootobuf/deps/google/api/error_reason.proto +589 -0
- package/schema/.snootobuf/deps/google/api/expr/conformance/v1alpha1/conformance_service.proto +183 -0
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/checked.proto +343 -0
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/eval.proto +118 -0
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/explain.proto +53 -0
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/syntax.proto +438 -0
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/value.proto +115 -0
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/decl.proto +84 -0
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/eval.proto +125 -0
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/expr.proto +265 -0
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/source.proto +62 -0
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/value.proto +114 -0
- package/schema/.snootobuf/deps/google/api/field_behavior.proto +104 -0
- package/schema/.snootobuf/deps/google/api/field_info.proto +106 -0
- package/schema/.snootobuf/deps/google/api/http.proto +371 -0
- package/schema/.snootobuf/deps/google/api/httpbody.proto +81 -0
- package/schema/.snootobuf/deps/google/api/label.proto +48 -0
- package/schema/.snootobuf/deps/google/api/launch_stage.proto +72 -0
- package/schema/.snootobuf/deps/google/api/log.proto +54 -0
- package/schema/.snootobuf/deps/google/api/logging.proto +81 -0
- package/schema/.snootobuf/deps/google/api/metric.proto +268 -0
- package/schema/.snootobuf/deps/google/api/monitored_resource.proto +130 -0
- package/schema/.snootobuf/deps/google/api/monitoring.proto +107 -0
- package/schema/.snootobuf/deps/google/api/policy.proto +85 -0
- package/schema/.snootobuf/deps/google/api/quota.proto +184 -0
- package/schema/.snootobuf/deps/google/api/resource.proto +243 -0
- package/schema/.snootobuf/deps/google/api/routing.proto +461 -0
- package/schema/.snootobuf/deps/google/api/service.proto +191 -0
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/check_error.proto +124 -0
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/distribution.proto +166 -0
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/http_request.proto +93 -0
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/log_entry.proto +126 -0
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/metric_value.proto +81 -0
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/operation.proto +123 -0
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/quota_controller.proto +245 -0
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/service_controller.proto +260 -0
- package/schema/.snootobuf/deps/google/api/servicecontrol/v2/service_controller.proto +196 -0
- package/schema/.snootobuf/deps/google/api/servicemanagement/v1/resources.proto +295 -0
- package/schema/.snootobuf/deps/google/api/servicemanagement/v1/servicemanager.proto +508 -0
- package/schema/.snootobuf/deps/google/api/serviceusage/v1/resources.proto +130 -0
- package/schema/.snootobuf/deps/google/api/serviceusage/v1/serviceusage.proto +305 -0
- package/schema/.snootobuf/deps/google/api/serviceusage/v1beta1/resources.proto +458 -0
- package/schema/.snootobuf/deps/google/api/serviceusage/v1beta1/serviceusage.proto +793 -0
- package/schema/.snootobuf/deps/google/api/source_info.proto +31 -0
- package/schema/.snootobuf/deps/google/api/system_parameter.proto +96 -0
- package/schema/.snootobuf/deps/google/api/usage.proto +96 -0
- package/schema/.snootobuf/deps/google/api/visibility.proto +113 -0
- package/schema/.snootobuf/deps/google/cloud/extended_operations.proto +150 -0
- package/schema/.snootobuf/deps/google/iam/admin/v1/iam.proto +1087 -0
- package/schema/.snootobuf/deps/google/iam/v1/iam_policy.proto +145 -0
- package/schema/.snootobuf/deps/google/iam/v1/logging/audit_data.proto +34 -0
- package/schema/.snootobuf/deps/google/iam/v1/options.proto +41 -0
- package/schema/.snootobuf/deps/google/iam/v1/policy.proto +240 -0
- package/schema/.snootobuf/deps/google/logging/type/http_request.proto +92 -0
- package/schema/.snootobuf/deps/google/logging/type/log_severity.proto +72 -0
- package/schema/.snootobuf/deps/google/longrunning/operations.proto +247 -0
- package/schema/.snootobuf/deps/google/protobuf/any.proto +158 -0
- package/schema/.snootobuf/deps/google/protobuf/api.proto +208 -0
- package/schema/.snootobuf/deps/google/protobuf/compiler/plugin.proto +183 -0
- package/schema/.snootobuf/deps/google/protobuf/descriptor.proto +921 -0
- package/schema/.snootobuf/deps/google/protobuf/duration.proto +116 -0
- package/schema/.snootobuf/deps/google/protobuf/empty.proto +51 -0
- package/schema/.snootobuf/deps/google/protobuf/field_mask.proto +245 -0
- package/schema/.snootobuf/deps/google/protobuf/source_context.proto +48 -0
- package/schema/.snootobuf/deps/google/protobuf/struct.proto +95 -0
- package/schema/.snootobuf/deps/google/protobuf/timestamp.proto +147 -0
- package/schema/.snootobuf/deps/google/protobuf/type.proto +187 -0
- package/schema/.snootobuf/deps/google/protobuf/wrappers.proto +123 -0
- package/schema/.snootobuf/deps/google/rpc/code.proto +186 -0
- package/schema/.snootobuf/deps/google/rpc/context/attribute_context.proto +287 -0
- package/schema/.snootobuf/deps/google/rpc/error_details.proto +246 -0
- package/schema/.snootobuf/deps/google/rpc/status.proto +47 -0
- package/schema/.snootobuf/deps/google/type/calendar_period.proto +57 -0
- package/schema/.snootobuf/deps/google/type/color.proto +170 -0
- package/schema/.snootobuf/deps/google/type/date.proto +50 -0
- package/schema/.snootobuf/deps/google/type/datetime.proto +97 -0
- package/schema/.snootobuf/deps/google/type/dayofweek.proto +51 -0
- package/schema/.snootobuf/deps/google/type/expr.proto +51 -0
- package/schema/.snootobuf/deps/google/type/fraction.proto +34 -0
- package/schema/.snootobuf/deps/google/type/latlng.proto +37 -0
- package/schema/.snootobuf/deps/google/type/money.proto +43 -0
- package/schema/.snootobuf/deps/google/type/month.proto +66 -0
- package/schema/.snootobuf/deps/google/type/postal_address.proto +135 -0
- package/schema/.snootobuf/deps/google/type/quaternion.proto +95 -0
- package/schema/.snootobuf/deps/google/type/timeofday.proto +44 -0
- package/schema/.snootobuf/deps/openapi/helper.proto +20 -0
- package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +189 -0
- package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +118 -0
- package/schema/.snootobuf/deps/reddit/api/metadata/v1/metadata.proto +55 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account.proto +579 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account_relations.proto +43 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/api/metadata/v1/metadata.proto +82 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/blocking/v1/user_blocking_service.proto +221 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree.proto +78 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_service.proto +189 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_structure.proto +29 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments.proto +417 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments_service.proto +72 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/auth.proto +25 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/features.proto +52 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/lang.proto +16 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/legal.proto +20 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/media.proto +149 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/moderation.proto +197 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/safety.proto +116 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/time.proto +25 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/domains/v1/domains_metadata_service.proto +101 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/grpc_thrift/v1/grpc_thrift_options.proto +34 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links.proto +798 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links_service.proto +186 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/messages/v1/messages.proto +110 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/sensitive/v1/wrappers.proto +51 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit.proto +1202 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_member_relations.proto +85 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_moderator_service.proto +363 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_service.proto +301 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/thing/v0/thing.proto +2869 -0
- package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/custom_post.proto +15 -0
- package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/service.proto +11 -0
- package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/context_action.proto +48 -0
- package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/manifest.proto +70 -0
- package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/service.proto +11 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/acknowledge_order_delivery.proto +17 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/checkout.proto +89 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/common.proto +322 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/delete_products.proto +17 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/events.proto +14 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_batch_products.proto +15 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_gold_balances.proto +48 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_order.proto +31 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders.proto +26 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders_by_user.proto +15 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_payout_info_batch.proto +52 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_products.proto +23 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_user_profiles.proto +28 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/refund_order.proto +17 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service.proto +49 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service_data_compliance.proto +20 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/upsert_products.proto +17 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paygatewaypsps/v1/paygatewaypsps.proto +158 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payments_data_compliance.proto +18 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payorders.proto +195 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/admin.proto +44 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/ledger.proto +200 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/payments_data_compliance.proto +18 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/paypayments.proto +210 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +189 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +135 -0
- package/schema/.snootobuf/deps/snooron_sources/text_classification/text_classification.proto +29 -0
- package/schema/.snootobuf/deps/snooron_sources/v2_event/v2_event.proto +3292 -0
- package/schema/.snootobuf/deps/validate/validate.proto +862 -0
- package/schema/devvit/dev_portal/app/app.proto +3 -0
- package/schema/devvit/dev_portal/app/info/app_info.proto +13 -1
- package/schema/devvit/dev_portal/dev_portal.proto +9 -0
- package/schema/devvit/dev_portal/payments/payments_verification.proto +31 -0
- package/schema/devvit/ui/block_kit/v1beta/ui.proto +1 -1
- package/schema/devvit/ui/effects/web_view/v1alpha/fullscreen.proto +7 -1
- package/schema/snootobuf.devenv.lock +1227 -662
- package/schema/snootobuf.lock +1228 -662
- package/schema/snootobuf.redditapi.lock +1226 -662
- package/schema/snootobuf.ts.lock +1227 -662
- package/types/devvit/dev_portal/app/app.d.ts +2 -0
- package/types/devvit/dev_portal/app/app.d.ts.map +1 -1
- package/types/devvit/dev_portal/app/app.js +17 -0
- package/types/devvit/dev_portal/app/info/app_info.d.ts +13 -0
- package/types/devvit/dev_portal/app/info/app_info.d.ts.map +1 -1
- package/types/devvit/dev_portal/app/info/app_info.js +17 -0
- package/types/devvit/dev_portal/dev_portal.d.ts +113 -3
- package/types/devvit/dev_portal/dev_portal.d.ts.map +1 -1
- package/types/devvit/dev_portal/dev_portal.js +32 -0
- package/types/devvit/dev_portal/dev_portal.twirp-client.d.ts +17 -0
- package/types/devvit/dev_portal/dev_portal.twirp-client.d.ts.map +1 -1
- package/types/devvit/dev_portal/dev_portal.twirp-client.js +23 -0
- package/types/devvit/dev_portal/dev_portal.twirp.d.ts +9 -0
- package/types/devvit/dev_portal/dev_portal.twirp.d.ts.map +1 -1
- package/types/devvit/dev_portal/dev_portal.twirp.js +89 -0
- package/types/devvit/dev_portal/payments/payments_verification.d.ts +59 -0
- package/types/devvit/dev_portal/payments/payments_verification.d.ts.map +1 -0
- package/types/devvit/dev_portal/payments/payments_verification.js +163 -0
- package/types/devvit/reddit/custom_post/v1alpha/custom_post.d.ts +4 -0
- package/types/devvit/reddit/custom_post/v1alpha/custom_post.d.ts.map +1 -1
- package/types/devvit/ui/effects/web_view/v1alpha/fullscreen.d.ts +8 -1
- package/types/devvit/ui/effects/web_view/v1alpha/fullscreen.d.ts.map +1 -1
- package/types/devvit/ui/effects/web_view/v1alpha/fullscreen.js +15 -1
@@ -0,0 +1,431 @@
|
|
1
|
+
// Copyright 2024 Google LLC
|
2
|
+
//
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
// you may not use this file except in compliance with the License.
|
5
|
+
// You may obtain a copy of the License at
|
6
|
+
//
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
//
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
// See the License for the specific language governing permissions and
|
13
|
+
// limitations under the License.
|
14
|
+
|
15
|
+
syntax = "proto3";
|
16
|
+
|
17
|
+
package google.api;
|
18
|
+
|
19
|
+
import "google/api/launch_stage.proto";
|
20
|
+
import "google/protobuf/descriptor.proto";
|
21
|
+
import "google/protobuf/duration.proto";
|
22
|
+
|
23
|
+
option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations";
|
24
|
+
option java_multiple_files = true;
|
25
|
+
option java_outer_classname = "ClientProto";
|
26
|
+
option java_package = "com.google.api";
|
27
|
+
option objc_class_prefix = "GAPI";
|
28
|
+
|
29
|
+
extend google.protobuf.MethodOptions {
|
30
|
+
// A definition of a client library method signature.
|
31
|
+
//
|
32
|
+
// In client libraries, each proto RPC corresponds to one or more methods
|
33
|
+
// which the end user is able to call, and calls the underlying RPC.
|
34
|
+
// Normally, this method receives a single argument (a struct or instance
|
35
|
+
// corresponding to the RPC request object). Defining this field will
|
36
|
+
// add one or more overloads providing flattened or simpler method signatures
|
37
|
+
// in some languages.
|
38
|
+
//
|
39
|
+
// The fields on the method signature are provided as a comma-separated
|
40
|
+
// string.
|
41
|
+
//
|
42
|
+
// For example, the proto RPC and annotation:
|
43
|
+
//
|
44
|
+
// rpc CreateSubscription(CreateSubscriptionRequest)
|
45
|
+
// returns (Subscription) {
|
46
|
+
// option (google.api.method_signature) = "name,topic";
|
47
|
+
// }
|
48
|
+
//
|
49
|
+
// Would add the following Java overload (in addition to the method accepting
|
50
|
+
// the request object):
|
51
|
+
//
|
52
|
+
// public final Subscription createSubscription(String name, String topic)
|
53
|
+
//
|
54
|
+
// The following backwards-compatibility guidelines apply:
|
55
|
+
//
|
56
|
+
// * Adding this annotation to an unannotated method is backwards
|
57
|
+
// compatible.
|
58
|
+
// * Adding this annotation to a method which already has existing
|
59
|
+
// method signature annotations is backwards compatible if and only if
|
60
|
+
// the new method signature annotation is last in the sequence.
|
61
|
+
// * Modifying or removing an existing method signature annotation is
|
62
|
+
// a breaking change.
|
63
|
+
// * Re-ordering existing method signature annotations is a breaking
|
64
|
+
// change.
|
65
|
+
repeated string method_signature = 1051;
|
66
|
+
}
|
67
|
+
|
68
|
+
extend google.protobuf.ServiceOptions {
|
69
|
+
// The hostname for this service.
|
70
|
+
// This should be specified with no prefix or protocol.
|
71
|
+
//
|
72
|
+
// Example:
|
73
|
+
//
|
74
|
+
// service Foo {
|
75
|
+
// option (google.api.default_host) = "foo.googleapi.com";
|
76
|
+
// ...
|
77
|
+
// }
|
78
|
+
string default_host = 1049;
|
79
|
+
|
80
|
+
// OAuth scopes needed for the client.
|
81
|
+
//
|
82
|
+
// Example:
|
83
|
+
//
|
84
|
+
// service Foo {
|
85
|
+
// option (google.api.oauth_scopes) = \
|
86
|
+
// "https://www.googleapis.com/auth/cloud-platform";
|
87
|
+
// ...
|
88
|
+
// }
|
89
|
+
//
|
90
|
+
// If there is more than one scope, use a comma-separated string:
|
91
|
+
//
|
92
|
+
// Example:
|
93
|
+
//
|
94
|
+
// service Foo {
|
95
|
+
// option (google.api.oauth_scopes) = \
|
96
|
+
// "https://www.googleapis.com/auth/cloud-platform,"
|
97
|
+
// "https://www.googleapis.com/auth/monitoring";
|
98
|
+
// ...
|
99
|
+
// }
|
100
|
+
string oauth_scopes = 1050;
|
101
|
+
|
102
|
+
// The API version of this service, which should be sent by version-aware
|
103
|
+
// clients to the service. This allows services to abide by the schema and
|
104
|
+
// behavior of the service at the time this API version was deployed.
|
105
|
+
// The format of the API version must be treated as opaque by clients.
|
106
|
+
// Services may use a format with an apparent structure, but clients must
|
107
|
+
// not rely on this to determine components within an API version, or attempt
|
108
|
+
// to construct other valid API versions. Note that this is for upcoming
|
109
|
+
// functionality and may not be implemented for all services.
|
110
|
+
//
|
111
|
+
// Example:
|
112
|
+
//
|
113
|
+
// service Foo {
|
114
|
+
// option (google.api.api_version) = "v1_20230821_preview";
|
115
|
+
// }
|
116
|
+
string api_version = 525000001;
|
117
|
+
}
|
118
|
+
|
119
|
+
// Required information for every language.
|
120
|
+
message CommonLanguageSettings {
|
121
|
+
// Link to automatically generated reference documentation. Example:
|
122
|
+
// https://cloud.google.com/nodejs/docs/reference/asset/latest
|
123
|
+
string reference_docs_uri = 1 [deprecated = true];
|
124
|
+
|
125
|
+
// The destination where API teams want this client library to be published.
|
126
|
+
repeated ClientLibraryDestination destinations = 2;
|
127
|
+
}
|
128
|
+
|
129
|
+
// Details about how and where to publish client libraries.
|
130
|
+
message ClientLibrarySettings {
|
131
|
+
// Version of the API to apply these settings to. This is the full protobuf
|
132
|
+
// package for the API, ending in the version element.
|
133
|
+
// Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
|
134
|
+
string version = 1;
|
135
|
+
|
136
|
+
// Launch stage of this version of the API.
|
137
|
+
LaunchStage launch_stage = 2;
|
138
|
+
|
139
|
+
// When using transport=rest, the client request will encode enums as
|
140
|
+
// numbers rather than strings.
|
141
|
+
bool rest_numeric_enums = 3;
|
142
|
+
|
143
|
+
// Settings for legacy Java features, supported in the Service YAML.
|
144
|
+
JavaSettings java_settings = 21;
|
145
|
+
|
146
|
+
// Settings for C++ client libraries.
|
147
|
+
CppSettings cpp_settings = 22;
|
148
|
+
|
149
|
+
// Settings for PHP client libraries.
|
150
|
+
PhpSettings php_settings = 23;
|
151
|
+
|
152
|
+
// Settings for Python client libraries.
|
153
|
+
PythonSettings python_settings = 24;
|
154
|
+
|
155
|
+
// Settings for Node client libraries.
|
156
|
+
NodeSettings node_settings = 25;
|
157
|
+
|
158
|
+
// Settings for .NET client libraries.
|
159
|
+
DotnetSettings dotnet_settings = 26;
|
160
|
+
|
161
|
+
// Settings for Ruby client libraries.
|
162
|
+
RubySettings ruby_settings = 27;
|
163
|
+
|
164
|
+
// Settings for Go client libraries.
|
165
|
+
GoSettings go_settings = 28;
|
166
|
+
}
|
167
|
+
|
168
|
+
// This message configures the settings for publishing [Google Cloud Client
|
169
|
+
// libraries](https://cloud.google.com/apis/docs/cloud-client-libraries)
|
170
|
+
// generated from the service config.
|
171
|
+
message Publishing {
|
172
|
+
// A list of API method settings, e.g. the behavior for methods that use the
|
173
|
+
// long-running operation pattern.
|
174
|
+
repeated MethodSettings method_settings = 2;
|
175
|
+
|
176
|
+
// Link to a *public* URI where users can report issues. Example:
|
177
|
+
// https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
178
|
+
string new_issue_uri = 101;
|
179
|
+
|
180
|
+
// Link to product home page. Example:
|
181
|
+
// https://cloud.google.com/asset-inventory/docs/overview
|
182
|
+
string documentation_uri = 102;
|
183
|
+
|
184
|
+
// Used as a tracking tag when collecting data about the APIs developer
|
185
|
+
// relations artifacts like docs, packages delivered to package managers,
|
186
|
+
// etc. Example: "speech".
|
187
|
+
string api_short_name = 103;
|
188
|
+
|
189
|
+
// GitHub label to apply to issues and pull requests opened for this API.
|
190
|
+
string github_label = 104;
|
191
|
+
|
192
|
+
// GitHub teams to be added to CODEOWNERS in the directory in GitHub
|
193
|
+
// containing source code for the client libraries for this API.
|
194
|
+
repeated string codeowner_github_teams = 105;
|
195
|
+
|
196
|
+
// A prefix used in sample code when demarking regions to be included in
|
197
|
+
// documentation.
|
198
|
+
string doc_tag_prefix = 106;
|
199
|
+
|
200
|
+
// For whom the client library is being published.
|
201
|
+
ClientLibraryOrganization organization = 107;
|
202
|
+
|
203
|
+
// Client library settings. If the same version string appears multiple
|
204
|
+
// times in this list, then the last one wins. Settings from earlier
|
205
|
+
// settings with the same version string are discarded.
|
206
|
+
repeated ClientLibrarySettings library_settings = 109;
|
207
|
+
|
208
|
+
// Optional link to proto reference documentation. Example:
|
209
|
+
// https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
210
|
+
string proto_reference_documentation_uri = 110;
|
211
|
+
|
212
|
+
// Optional link to REST reference documentation. Example:
|
213
|
+
// https://cloud.google.com/pubsub/lite/docs/reference/rest
|
214
|
+
string rest_reference_documentation_uri = 111;
|
215
|
+
}
|
216
|
+
|
217
|
+
// Settings for Java client libraries.
|
218
|
+
message JavaSettings {
|
219
|
+
// The package name to use in Java. Clobbers the java_package option
|
220
|
+
// set in the protobuf. This should be used **only** by APIs
|
221
|
+
// who have already set the language_settings.java.package_name" field
|
222
|
+
// in gapic.yaml. API teams should use the protobuf java_package option
|
223
|
+
// where possible.
|
224
|
+
//
|
225
|
+
// Example of a YAML configuration::
|
226
|
+
//
|
227
|
+
// publishing:
|
228
|
+
// java_settings:
|
229
|
+
// library_package: com.google.cloud.pubsub.v1
|
230
|
+
string library_package = 1;
|
231
|
+
|
232
|
+
// Configure the Java class name to use instead of the service's for its
|
233
|
+
// corresponding generated GAPIC client. Keys are fully-qualified
|
234
|
+
// service names as they appear in the protobuf (including the full
|
235
|
+
// the language_settings.java.interface_names" field in gapic.yaml. API
|
236
|
+
// teams should otherwise use the service name as it appears in the
|
237
|
+
// protobuf.
|
238
|
+
//
|
239
|
+
// Example of a YAML configuration::
|
240
|
+
//
|
241
|
+
// publishing:
|
242
|
+
// java_settings:
|
243
|
+
// service_class_names:
|
244
|
+
// - google.pubsub.v1.Publisher: TopicAdmin
|
245
|
+
// - google.pubsub.v1.Subscriber: SubscriptionAdmin
|
246
|
+
map<string, string> service_class_names = 2;
|
247
|
+
|
248
|
+
// Some settings.
|
249
|
+
CommonLanguageSettings common = 3;
|
250
|
+
}
|
251
|
+
|
252
|
+
// Settings for C++ client libraries.
|
253
|
+
message CppSettings {
|
254
|
+
// Some settings.
|
255
|
+
CommonLanguageSettings common = 1;
|
256
|
+
}
|
257
|
+
|
258
|
+
// Settings for Php client libraries.
|
259
|
+
message PhpSettings {
|
260
|
+
// Some settings.
|
261
|
+
CommonLanguageSettings common = 1;
|
262
|
+
}
|
263
|
+
|
264
|
+
// Settings for Python client libraries.
|
265
|
+
message PythonSettings {
|
266
|
+
// Some settings.
|
267
|
+
CommonLanguageSettings common = 1;
|
268
|
+
}
|
269
|
+
|
270
|
+
// Settings for Node client libraries.
|
271
|
+
message NodeSettings {
|
272
|
+
// Some settings.
|
273
|
+
CommonLanguageSettings common = 1;
|
274
|
+
}
|
275
|
+
|
276
|
+
// Settings for Dotnet client libraries.
|
277
|
+
message DotnetSettings {
|
278
|
+
// Some settings.
|
279
|
+
CommonLanguageSettings common = 1;
|
280
|
+
|
281
|
+
// Map from original service names to renamed versions.
|
282
|
+
// This is used when the default generated types
|
283
|
+
// would cause a naming conflict. (Neither name is
|
284
|
+
// fully-qualified.)
|
285
|
+
// Example: Subscriber to SubscriberServiceApi.
|
286
|
+
map<string, string> renamed_services = 2;
|
287
|
+
|
288
|
+
// Map from full resource types to the effective short name
|
289
|
+
// for the resource. This is used when otherwise resource
|
290
|
+
// named from different services would cause naming collisions.
|
291
|
+
// Example entry:
|
292
|
+
// "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
293
|
+
map<string, string> renamed_resources = 3;
|
294
|
+
|
295
|
+
// List of full resource types to ignore during generation.
|
296
|
+
// This is typically used for API-specific Location resources,
|
297
|
+
// which should be handled by the generator as if they were actually
|
298
|
+
// the common Location resources.
|
299
|
+
// Example entry: "documentai.googleapis.com/Location"
|
300
|
+
repeated string ignored_resources = 4;
|
301
|
+
|
302
|
+
// Namespaces which must be aliased in snippets due to
|
303
|
+
// a known (but non-generator-predictable) naming collision
|
304
|
+
repeated string forced_namespace_aliases = 5;
|
305
|
+
|
306
|
+
// Method signatures (in the form "service.method(signature)")
|
307
|
+
// which are provided separately, so shouldn't be generated.
|
308
|
+
// Snippets *calling* these methods are still generated, however.
|
309
|
+
repeated string handwritten_signatures = 6;
|
310
|
+
}
|
311
|
+
|
312
|
+
// Settings for Ruby client libraries.
|
313
|
+
message RubySettings {
|
314
|
+
// Some settings.
|
315
|
+
CommonLanguageSettings common = 1;
|
316
|
+
}
|
317
|
+
|
318
|
+
// Settings for Go client libraries.
|
319
|
+
message GoSettings {
|
320
|
+
// Some settings.
|
321
|
+
CommonLanguageSettings common = 1;
|
322
|
+
}
|
323
|
+
|
324
|
+
// Describes the generator configuration for a method.
|
325
|
+
message MethodSettings {
|
326
|
+
// Describes settings to use when generating API methods that use the
|
327
|
+
// long-running operation pattern.
|
328
|
+
// All default values below are from those used in the client library
|
329
|
+
// generators (e.g.
|
330
|
+
// [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)).
|
331
|
+
message LongRunning {
|
332
|
+
// Initial delay after which the first poll request will be made.
|
333
|
+
// Default value: 5 seconds.
|
334
|
+
google.protobuf.Duration initial_poll_delay = 1;
|
335
|
+
|
336
|
+
// Multiplier to gradually increase delay between subsequent polls until it
|
337
|
+
// reaches max_poll_delay.
|
338
|
+
// Default value: 1.5.
|
339
|
+
float poll_delay_multiplier = 2;
|
340
|
+
|
341
|
+
// Maximum time between two subsequent poll requests.
|
342
|
+
// Default value: 45 seconds.
|
343
|
+
google.protobuf.Duration max_poll_delay = 3;
|
344
|
+
|
345
|
+
// Total polling timeout.
|
346
|
+
// Default value: 5 minutes.
|
347
|
+
google.protobuf.Duration total_poll_timeout = 4;
|
348
|
+
}
|
349
|
+
|
350
|
+
// The fully qualified name of the method, for which the options below apply.
|
351
|
+
// This is used to find the method to apply the options.
|
352
|
+
//
|
353
|
+
// Example:
|
354
|
+
//
|
355
|
+
// publishing:
|
356
|
+
// method_settings:
|
357
|
+
// - selector: google.storage.control.v2.StorageControl.CreateFolder
|
358
|
+
// # method settings for CreateFolder...
|
359
|
+
string selector = 1;
|
360
|
+
|
361
|
+
// Describes settings to use for long-running operations when generating
|
362
|
+
// API methods for RPCs. Complements RPCs that use the annotations in
|
363
|
+
// google/longrunning/operations.proto.
|
364
|
+
//
|
365
|
+
// Example of a YAML configuration::
|
366
|
+
//
|
367
|
+
// publishing:
|
368
|
+
// method_settings:
|
369
|
+
// - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
370
|
+
// long_running:
|
371
|
+
// initial_poll_delay: 60s # 1 minute
|
372
|
+
// poll_delay_multiplier: 1.5
|
373
|
+
// max_poll_delay: 360s # 6 minutes
|
374
|
+
// total_poll_timeout: 54000s # 90 minutes
|
375
|
+
LongRunning long_running = 2;
|
376
|
+
|
377
|
+
// List of top-level fields of the request message, that should be
|
378
|
+
// automatically populated by the client libraries based on their
|
379
|
+
// (google.api.field_info).format. Currently supported format: UUID4.
|
380
|
+
//
|
381
|
+
// Example of a YAML configuration:
|
382
|
+
//
|
383
|
+
// publishing:
|
384
|
+
// method_settings:
|
385
|
+
// - selector: google.example.v1.ExampleService.CreateExample
|
386
|
+
// auto_populated_fields:
|
387
|
+
// - request_id
|
388
|
+
repeated string auto_populated_fields = 3;
|
389
|
+
}
|
390
|
+
|
391
|
+
// The organization for which the client libraries are being published.
|
392
|
+
// Affects the url where generated docs are published, etc.
|
393
|
+
enum ClientLibraryOrganization {
|
394
|
+
// Not useful.
|
395
|
+
CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0;
|
396
|
+
|
397
|
+
// Google Cloud Platform Org.
|
398
|
+
CLOUD = 1;
|
399
|
+
|
400
|
+
// Ads (Advertising) Org.
|
401
|
+
ADS = 2;
|
402
|
+
|
403
|
+
// Photos Org.
|
404
|
+
PHOTOS = 3;
|
405
|
+
|
406
|
+
// Street View Org.
|
407
|
+
STREET_VIEW = 4;
|
408
|
+
|
409
|
+
// Shopping Org.
|
410
|
+
SHOPPING = 5;
|
411
|
+
|
412
|
+
// Geo Org.
|
413
|
+
GEO = 6;
|
414
|
+
|
415
|
+
// Generative AI - https://developers.generativeai.google
|
416
|
+
GENERATIVE_AI = 7;
|
417
|
+
}
|
418
|
+
|
419
|
+
// To where should client libraries be published?
|
420
|
+
enum ClientLibraryDestination {
|
421
|
+
// Client libraries will neither be generated nor published to package
|
422
|
+
// managers.
|
423
|
+
CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0;
|
424
|
+
|
425
|
+
// Generate the client library in a repo under github.com/googleapis,
|
426
|
+
// but don't publish it to package managers.
|
427
|
+
GITHUB = 10;
|
428
|
+
|
429
|
+
// Publish the library to package managers like nuget.org and npmjs.com.
|
430
|
+
PACKAGE_MANAGER = 20;
|
431
|
+
}
|