@devvit/protos 0.11.4 → 0.11.5-next-2024-12-09-1c29dd3cd.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/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 +459 -292
- package/schema/snootobuf.lock +459 -292
- package/schema/snootobuf.redditapi.lock +459 -292
- package/schema/snootobuf.ts.lock +459 -293
- 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 +42 -0
- package/types/devvit/dev_portal/dev_portal.d.ts.map +1 -1
- 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,124 @@
|
|
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.servicecontrol.v1;
|
18
|
+
|
19
|
+
import "google/rpc/status.proto";
|
20
|
+
|
21
|
+
option cc_enable_arenas = true;
|
22
|
+
option csharp_namespace = "Google.Cloud.ServiceControl.V1";
|
23
|
+
option go_package = "cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb";
|
24
|
+
option java_multiple_files = true;
|
25
|
+
option java_outer_classname = "CheckErrorProto";
|
26
|
+
option java_package = "com.google.api.servicecontrol.v1";
|
27
|
+
option php_namespace = "Google\\Cloud\\ServiceControl\\V1";
|
28
|
+
option ruby_package = "Google::Cloud::ServiceControl::V1";
|
29
|
+
|
30
|
+
// Defines the errors to be returned in
|
31
|
+
// [google.api.servicecontrol.v1.CheckResponse.check_errors][google.api.servicecontrol.v1.CheckResponse.check_errors].
|
32
|
+
message CheckError {
|
33
|
+
// Error codes for Check responses.
|
34
|
+
enum Code {
|
35
|
+
// This is never used in `CheckResponse`.
|
36
|
+
ERROR_CODE_UNSPECIFIED = 0;
|
37
|
+
|
38
|
+
// The consumer's project id, network container, or resource container was
|
39
|
+
// not found. Same as [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND].
|
40
|
+
NOT_FOUND = 5;
|
41
|
+
|
42
|
+
// The consumer doesn't have access to the specified resource.
|
43
|
+
// Same as [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
|
44
|
+
PERMISSION_DENIED = 7;
|
45
|
+
|
46
|
+
// Quota check failed. Same as [google.rpc.Code.RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED].
|
47
|
+
RESOURCE_EXHAUSTED = 8;
|
48
|
+
|
49
|
+
// The consumer hasn't activated the service.
|
50
|
+
SERVICE_NOT_ACTIVATED = 104;
|
51
|
+
|
52
|
+
// The consumer cannot access the service because billing is disabled.
|
53
|
+
BILLING_DISABLED = 107;
|
54
|
+
|
55
|
+
// The consumer's project has been marked as deleted (soft deletion).
|
56
|
+
PROJECT_DELETED = 108;
|
57
|
+
|
58
|
+
// The consumer's project number or id does not represent a valid project.
|
59
|
+
PROJECT_INVALID = 114;
|
60
|
+
|
61
|
+
// The input consumer info does not represent a valid consumer folder or
|
62
|
+
// organization.
|
63
|
+
CONSUMER_INVALID = 125;
|
64
|
+
|
65
|
+
// The IP address of the consumer is invalid for the specific consumer
|
66
|
+
// project.
|
67
|
+
IP_ADDRESS_BLOCKED = 109;
|
68
|
+
|
69
|
+
// The referer address of the consumer request is invalid for the specific
|
70
|
+
// consumer project.
|
71
|
+
REFERER_BLOCKED = 110;
|
72
|
+
|
73
|
+
// The client application of the consumer request is invalid for the
|
74
|
+
// specific consumer project.
|
75
|
+
CLIENT_APP_BLOCKED = 111;
|
76
|
+
|
77
|
+
// The API targeted by this request is invalid for the specified consumer
|
78
|
+
// project.
|
79
|
+
API_TARGET_BLOCKED = 122;
|
80
|
+
|
81
|
+
// The consumer's API key is invalid.
|
82
|
+
API_KEY_INVALID = 105;
|
83
|
+
|
84
|
+
// The consumer's API Key has expired.
|
85
|
+
API_KEY_EXPIRED = 112;
|
86
|
+
|
87
|
+
// The consumer's API Key was not found in config record.
|
88
|
+
API_KEY_NOT_FOUND = 113;
|
89
|
+
|
90
|
+
// The credential in the request can not be verified.
|
91
|
+
INVALID_CREDENTIAL = 123;
|
92
|
+
|
93
|
+
// The backend server for looking up project id/number is unavailable.
|
94
|
+
NAMESPACE_LOOKUP_UNAVAILABLE = 300;
|
95
|
+
|
96
|
+
// The backend server for checking service status is unavailable.
|
97
|
+
SERVICE_STATUS_UNAVAILABLE = 301;
|
98
|
+
|
99
|
+
// The backend server for checking billing status is unavailable.
|
100
|
+
BILLING_STATUS_UNAVAILABLE = 302;
|
101
|
+
|
102
|
+
// Cloud Resource Manager backend server is unavailable.
|
103
|
+
CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE = 305;
|
104
|
+
}
|
105
|
+
|
106
|
+
// The error code.
|
107
|
+
Code code = 1;
|
108
|
+
|
109
|
+
// Subject to whom this error applies. See the specific code enum for more
|
110
|
+
// details on this field. For example:
|
111
|
+
//
|
112
|
+
// - "project:<project-id or project-number>"
|
113
|
+
// - "folder:<folder-id>"
|
114
|
+
// - "organization:<organization-id>"
|
115
|
+
string subject = 4;
|
116
|
+
|
117
|
+
// Free-form text providing details on the error cause of the error.
|
118
|
+
string detail = 2;
|
119
|
+
|
120
|
+
// Contains public information about the check error. If available,
|
121
|
+
// `status.code` will be non zero and client can propagate it out as public
|
122
|
+
// error.
|
123
|
+
google.rpc.Status status = 3;
|
124
|
+
}
|
@@ -0,0 +1,166 @@
|
|
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.servicecontrol.v1;
|
18
|
+
|
19
|
+
import "google/api/distribution.proto";
|
20
|
+
|
21
|
+
option cc_enable_arenas = true;
|
22
|
+
option csharp_namespace = "Google.Cloud.ServiceControl.V1";
|
23
|
+
option go_package = "cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb";
|
24
|
+
option java_multiple_files = true;
|
25
|
+
option java_outer_classname = "DistributionProto";
|
26
|
+
option java_package = "com.google.api.servicecontrol.v1";
|
27
|
+
option php_namespace = "Google\\Cloud\\ServiceControl\\V1";
|
28
|
+
option ruby_package = "Google::Cloud::ServiceControl::V1";
|
29
|
+
|
30
|
+
// Distribution represents a frequency distribution of double-valued sample
|
31
|
+
// points. It contains the size of the population of sample points plus
|
32
|
+
// additional optional information:
|
33
|
+
//
|
34
|
+
// * the arithmetic mean of the samples
|
35
|
+
// * the minimum and maximum of the samples
|
36
|
+
// * the sum-squared-deviation of the samples, used to compute variance
|
37
|
+
// * a histogram of the values of the sample points
|
38
|
+
message Distribution {
|
39
|
+
// Describing buckets with constant width.
|
40
|
+
message LinearBuckets {
|
41
|
+
// The number of finite buckets. With the underflow and overflow buckets,
|
42
|
+
// the total number of buckets is `num_finite_buckets` + 2.
|
43
|
+
// See comments on `bucket_options` for details.
|
44
|
+
int32 num_finite_buckets = 1;
|
45
|
+
|
46
|
+
// The i'th linear bucket covers the interval
|
47
|
+
// [offset + (i-1) * width, offset + i * width)
|
48
|
+
// where i ranges from 1 to num_finite_buckets, inclusive.
|
49
|
+
// Must be strictly positive.
|
50
|
+
double width = 2;
|
51
|
+
|
52
|
+
// The i'th linear bucket covers the interval
|
53
|
+
// [offset + (i-1) * width, offset + i * width)
|
54
|
+
// where i ranges from 1 to num_finite_buckets, inclusive.
|
55
|
+
double offset = 3;
|
56
|
+
}
|
57
|
+
|
58
|
+
// Describing buckets with exponentially growing width.
|
59
|
+
message ExponentialBuckets {
|
60
|
+
// The number of finite buckets. With the underflow and overflow buckets,
|
61
|
+
// the total number of buckets is `num_finite_buckets` + 2.
|
62
|
+
// See comments on `bucket_options` for details.
|
63
|
+
int32 num_finite_buckets = 1;
|
64
|
+
|
65
|
+
// The i'th exponential bucket covers the interval
|
66
|
+
// [scale * growth_factor^(i-1), scale * growth_factor^i)
|
67
|
+
// where i ranges from 1 to num_finite_buckets inclusive.
|
68
|
+
// Must be larger than 1.0.
|
69
|
+
double growth_factor = 2;
|
70
|
+
|
71
|
+
// The i'th exponential bucket covers the interval
|
72
|
+
// [scale * growth_factor^(i-1), scale * growth_factor^i)
|
73
|
+
// where i ranges from 1 to num_finite_buckets inclusive.
|
74
|
+
// Must be > 0.
|
75
|
+
double scale = 3;
|
76
|
+
}
|
77
|
+
|
78
|
+
// Describing buckets with arbitrary user-provided width.
|
79
|
+
message ExplicitBuckets {
|
80
|
+
// 'bound' is a list of strictly increasing boundaries between
|
81
|
+
// buckets. Note that a list of length N-1 defines N buckets because
|
82
|
+
// of fenceposting. See comments on `bucket_options` for details.
|
83
|
+
//
|
84
|
+
// The i'th finite bucket covers the interval
|
85
|
+
// [bound[i-1], bound[i])
|
86
|
+
// where i ranges from 1 to bound_size() - 1. Note that there are no
|
87
|
+
// finite buckets at all if 'bound' only contains a single element; in
|
88
|
+
// that special case the single bound defines the boundary between the
|
89
|
+
// underflow and overflow buckets.
|
90
|
+
//
|
91
|
+
// bucket number lower bound upper bound
|
92
|
+
// i == 0 (underflow) -inf bound[i]
|
93
|
+
// 0 < i < bound_size() bound[i-1] bound[i]
|
94
|
+
// i == bound_size() (overflow) bound[i-1] +inf
|
95
|
+
repeated double bounds = 1;
|
96
|
+
}
|
97
|
+
|
98
|
+
// The total number of samples in the distribution. Must be >= 0.
|
99
|
+
int64 count = 1;
|
100
|
+
|
101
|
+
// The arithmetic mean of the samples in the distribution. If `count` is
|
102
|
+
// zero then this field must be zero.
|
103
|
+
double mean = 2;
|
104
|
+
|
105
|
+
// The minimum of the population of values. Ignored if `count` is zero.
|
106
|
+
double minimum = 3;
|
107
|
+
|
108
|
+
// The maximum of the population of values. Ignored if `count` is zero.
|
109
|
+
double maximum = 4;
|
110
|
+
|
111
|
+
// The sum of squared deviations from the mean:
|
112
|
+
// Sum[i=1..count]((x_i - mean)^2)
|
113
|
+
// where each x_i is a sample values. If `count` is zero then this field
|
114
|
+
// must be zero, otherwise validation of the request fails.
|
115
|
+
double sum_of_squared_deviation = 5;
|
116
|
+
|
117
|
+
// The number of samples in each histogram bucket. `bucket_counts` are
|
118
|
+
// optional. If present, they must sum to the `count` value.
|
119
|
+
//
|
120
|
+
// The buckets are defined below in `bucket_option`. There are N buckets.
|
121
|
+
// `bucket_counts[0]` is the number of samples in the underflow bucket.
|
122
|
+
// `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples
|
123
|
+
// in each of the finite buckets. And `bucket_counts[N] is the number
|
124
|
+
// of samples in the overflow bucket. See the comments of `bucket_option`
|
125
|
+
// below for more details.
|
126
|
+
//
|
127
|
+
// Any suffix of trailing zeros may be omitted.
|
128
|
+
repeated int64 bucket_counts = 6;
|
129
|
+
|
130
|
+
// Defines the buckets in the histogram. `bucket_option` and `bucket_counts`
|
131
|
+
// must be both set, or both unset.
|
132
|
+
//
|
133
|
+
// Buckets are numbered in the range of [0, N], with a total of N+1 buckets.
|
134
|
+
// There must be at least two buckets (a single-bucket histogram gives
|
135
|
+
// no information that isn't already provided by `count`).
|
136
|
+
//
|
137
|
+
// The first bucket is the underflow bucket which has a lower bound
|
138
|
+
// of -inf. The last bucket is the overflow bucket which has an
|
139
|
+
// upper bound of +inf. All other buckets (if any) are called "finite"
|
140
|
+
// buckets because they have finite lower and upper bounds. As described
|
141
|
+
// below, there are three ways to define the finite buckets.
|
142
|
+
//
|
143
|
+
// (1) Buckets with constant width.
|
144
|
+
// (2) Buckets with exponentially growing widths.
|
145
|
+
// (3) Buckets with arbitrary user-provided widths.
|
146
|
+
//
|
147
|
+
// In all cases, the buckets cover the entire real number line (-inf,
|
148
|
+
// +inf). Bucket upper bounds are exclusive and lower bounds are
|
149
|
+
// inclusive. The upper bound of the underflow bucket is equal to the
|
150
|
+
// lower bound of the smallest finite bucket; the lower bound of the
|
151
|
+
// overflow bucket is equal to the upper bound of the largest finite
|
152
|
+
// bucket.
|
153
|
+
oneof bucket_option {
|
154
|
+
// Buckets with constant width.
|
155
|
+
LinearBuckets linear_buckets = 7;
|
156
|
+
|
157
|
+
// Buckets with exponentially growing width.
|
158
|
+
ExponentialBuckets exponential_buckets = 8;
|
159
|
+
|
160
|
+
// Buckets with arbitrary user-provided width.
|
161
|
+
ExplicitBuckets explicit_buckets = 9;
|
162
|
+
}
|
163
|
+
|
164
|
+
// Example points. Must be in increasing order of `value` field.
|
165
|
+
repeated google.api.Distribution.Exemplar exemplars = 10;
|
166
|
+
}
|
@@ -0,0 +1,93 @@
|
|
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.servicecontrol.v1;
|
18
|
+
|
19
|
+
import "google/protobuf/duration.proto";
|
20
|
+
|
21
|
+
option csharp_namespace = "Google.Cloud.ServiceControl.V1";
|
22
|
+
option go_package = "cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb";
|
23
|
+
option java_multiple_files = true;
|
24
|
+
option java_outer_classname = "HttpRequestProto";
|
25
|
+
option java_package = "com.google.api.servicecontrol.v1";
|
26
|
+
option php_namespace = "Google\\Cloud\\ServiceControl\\V1";
|
27
|
+
option ruby_package = "Google::Cloud::ServiceControl::V1";
|
28
|
+
|
29
|
+
// A common proto for logging HTTP requests. Only contains semantics
|
30
|
+
// defined by the HTTP specification. Product-specific logging
|
31
|
+
// information MUST be defined in a separate message.
|
32
|
+
message HttpRequest {
|
33
|
+
// The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
|
34
|
+
string request_method = 1;
|
35
|
+
|
36
|
+
// The scheme (http, https), the host name, the path, and the query
|
37
|
+
// portion of the URL that was requested.
|
38
|
+
// Example: `"http://example.com/some/info?color=red"`.
|
39
|
+
string request_url = 2;
|
40
|
+
|
41
|
+
// The size of the HTTP request message in bytes, including the request
|
42
|
+
// headers and the request body.
|
43
|
+
int64 request_size = 3;
|
44
|
+
|
45
|
+
// The response code indicating the status of the response.
|
46
|
+
// Examples: 200, 404.
|
47
|
+
int32 status = 4;
|
48
|
+
|
49
|
+
// The size of the HTTP response message sent back to the client, in bytes,
|
50
|
+
// including the response headers and the response body.
|
51
|
+
int64 response_size = 5;
|
52
|
+
|
53
|
+
// The user agent sent by the client. Example:
|
54
|
+
// `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
|
55
|
+
// CLR 1.0.3705)"`.
|
56
|
+
string user_agent = 6;
|
57
|
+
|
58
|
+
// The IP address (IPv4 or IPv6) of the client that issued the HTTP
|
59
|
+
// request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
|
60
|
+
string remote_ip = 7;
|
61
|
+
|
62
|
+
// The IP address (IPv4 or IPv6) of the origin server that the request was
|
63
|
+
// sent to.
|
64
|
+
string server_ip = 13;
|
65
|
+
|
66
|
+
// The referer URL of the request, as defined in
|
67
|
+
// [HTTP/1.1 Header Field
|
68
|
+
// Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
|
69
|
+
string referer = 8;
|
70
|
+
|
71
|
+
// The request processing latency on the server, from the time the request was
|
72
|
+
// received until the response was sent.
|
73
|
+
google.protobuf.Duration latency = 14;
|
74
|
+
|
75
|
+
// Whether or not a cache lookup was attempted.
|
76
|
+
bool cache_lookup = 11;
|
77
|
+
|
78
|
+
// Whether or not an entity was served from cache
|
79
|
+
// (with or without validation).
|
80
|
+
bool cache_hit = 9;
|
81
|
+
|
82
|
+
// Whether or not the response was validated with the origin server before
|
83
|
+
// being served from cache. This field is only meaningful if `cache_hit` is
|
84
|
+
// True.
|
85
|
+
bool cache_validated_with_origin_server = 10;
|
86
|
+
|
87
|
+
// The number of HTTP response bytes inserted into cache. Set only when a
|
88
|
+
// cache fill was attempted.
|
89
|
+
int64 cache_fill_bytes = 12;
|
90
|
+
|
91
|
+
// Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
|
92
|
+
string protocol = 15;
|
93
|
+
}
|
@@ -0,0 +1,126 @@
|
|
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.servicecontrol.v1;
|
18
|
+
|
19
|
+
import "google/api/servicecontrol/v1/http_request.proto";
|
20
|
+
import "google/logging/type/log_severity.proto";
|
21
|
+
import "google/protobuf/any.proto";
|
22
|
+
import "google/protobuf/struct.proto";
|
23
|
+
import "google/protobuf/timestamp.proto";
|
24
|
+
|
25
|
+
option csharp_namespace = "Google.Cloud.ServiceControl.V1";
|
26
|
+
option go_package = "cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb";
|
27
|
+
option java_multiple_files = true;
|
28
|
+
option java_outer_classname = "LogEntryProto";
|
29
|
+
option java_package = "com.google.api.servicecontrol.v1";
|
30
|
+
option php_namespace = "Google\\Cloud\\ServiceControl\\V1";
|
31
|
+
option ruby_package = "Google::Cloud::ServiceControl::V1";
|
32
|
+
|
33
|
+
// An individual log entry.
|
34
|
+
message LogEntry {
|
35
|
+
// Required. The log to which this log entry belongs. Examples: `"syslog"`,
|
36
|
+
// `"book_log"`.
|
37
|
+
string name = 10;
|
38
|
+
|
39
|
+
// The time the event described by the log entry occurred. If
|
40
|
+
// omitted, defaults to operation start time.
|
41
|
+
google.protobuf.Timestamp timestamp = 11;
|
42
|
+
|
43
|
+
// The severity of the log entry. The default value is
|
44
|
+
// `LogSeverity.DEFAULT`.
|
45
|
+
google.logging.type.LogSeverity severity = 12;
|
46
|
+
|
47
|
+
// Optional. Information about the HTTP request associated with this
|
48
|
+
// log entry, if applicable.
|
49
|
+
HttpRequest http_request = 14;
|
50
|
+
|
51
|
+
// Optional. Resource name of the trace associated with the log entry, if any.
|
52
|
+
// If this field contains a relative resource name, you can assume the name is
|
53
|
+
// relative to `//tracing.googleapis.com`. Example:
|
54
|
+
// `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`
|
55
|
+
string trace = 15;
|
56
|
+
|
57
|
+
// A unique ID for the log entry used for deduplication. If omitted,
|
58
|
+
// the implementation will generate one based on operation_id.
|
59
|
+
string insert_id = 4;
|
60
|
+
|
61
|
+
// A set of user-defined (key, value) data that provides additional
|
62
|
+
// information about the log entry.
|
63
|
+
map<string, string> labels = 13;
|
64
|
+
|
65
|
+
// The log entry payload, which can be one of multiple types.
|
66
|
+
oneof payload {
|
67
|
+
// The log entry payload, represented as a protocol buffer that is
|
68
|
+
// expressed as a JSON object. The only accepted type currently is
|
69
|
+
// [AuditLog][google.cloud.audit.AuditLog].
|
70
|
+
google.protobuf.Any proto_payload = 2;
|
71
|
+
|
72
|
+
// The log entry payload, represented as a Unicode string (UTF-8).
|
73
|
+
string text_payload = 3;
|
74
|
+
|
75
|
+
// The log entry payload, represented as a structure that
|
76
|
+
// is expressed as a JSON object.
|
77
|
+
google.protobuf.Struct struct_payload = 6;
|
78
|
+
}
|
79
|
+
|
80
|
+
// Optional. Information about an operation associated with the log entry, if
|
81
|
+
// applicable.
|
82
|
+
LogEntryOperation operation = 16;
|
83
|
+
|
84
|
+
// Optional. Source code location information associated with the log entry,
|
85
|
+
// if any.
|
86
|
+
LogEntrySourceLocation source_location = 17;
|
87
|
+
}
|
88
|
+
|
89
|
+
// Additional information about a potentially long-running operation with which
|
90
|
+
// a log entry is associated.
|
91
|
+
message LogEntryOperation {
|
92
|
+
// Optional. An arbitrary operation identifier. Log entries with the
|
93
|
+
// same identifier are assumed to be part of the same operation.
|
94
|
+
string id = 1;
|
95
|
+
|
96
|
+
// Optional. An arbitrary producer identifier. The combination of
|
97
|
+
// `id` and `producer` must be globally unique. Examples for `producer`:
|
98
|
+
// `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`.
|
99
|
+
string producer = 2;
|
100
|
+
|
101
|
+
// Optional. Set this to True if this is the first log entry in the operation.
|
102
|
+
bool first = 3;
|
103
|
+
|
104
|
+
// Optional. Set this to True if this is the last log entry in the operation.
|
105
|
+
bool last = 4;
|
106
|
+
}
|
107
|
+
|
108
|
+
// Additional information about the source code location that produced the log
|
109
|
+
// entry.
|
110
|
+
message LogEntrySourceLocation {
|
111
|
+
// Optional. Source file name. Depending on the runtime environment, this
|
112
|
+
// might be a simple name or a fully-qualified name.
|
113
|
+
string file = 1;
|
114
|
+
|
115
|
+
// Optional. Line within the source file. 1-based; 0 indicates no line number
|
116
|
+
// available.
|
117
|
+
int64 line = 2;
|
118
|
+
|
119
|
+
// Optional. Human-readable name of the function or method being invoked, with
|
120
|
+
// optional context such as the class or package name. This information may be
|
121
|
+
// used in contexts such as the logs viewer, where a file and line number are
|
122
|
+
// less meaningful. The format can vary by language. For example:
|
123
|
+
// `qual.if.ied.Class.method` (Java), `dir/package.func` (Go), `function`
|
124
|
+
// (Python).
|
125
|
+
string function = 3;
|
126
|
+
}
|
@@ -0,0 +1,81 @@
|
|
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.servicecontrol.v1;
|
18
|
+
|
19
|
+
import "google/api/servicecontrol/v1/distribution.proto";
|
20
|
+
import "google/protobuf/timestamp.proto";
|
21
|
+
|
22
|
+
option cc_enable_arenas = true;
|
23
|
+
option csharp_namespace = "Google.Cloud.ServiceControl.V1";
|
24
|
+
option go_package = "cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb";
|
25
|
+
option java_multiple_files = true;
|
26
|
+
option java_outer_classname = "MetricValueSetProto";
|
27
|
+
option java_package = "com.google.api.servicecontrol.v1";
|
28
|
+
option php_namespace = "Google\\Cloud\\ServiceControl\\V1";
|
29
|
+
option ruby_package = "Google::Cloud::ServiceControl::V1";
|
30
|
+
|
31
|
+
// Represents a single metric value.
|
32
|
+
message MetricValue {
|
33
|
+
// The labels describing the metric value.
|
34
|
+
// See comments on [google.api.servicecontrol.v1.Operation.labels][google.api.servicecontrol.v1.Operation.labels] for
|
35
|
+
// the overriding relationship.
|
36
|
+
// Note that this map must not contain monitored resource labels.
|
37
|
+
map<string, string> labels = 1;
|
38
|
+
|
39
|
+
// The start of the time period over which this metric value's measurement
|
40
|
+
// applies. The time period has different semantics for different metric
|
41
|
+
// types (cumulative, delta, and gauge). See the metric definition
|
42
|
+
// documentation in the service configuration for details. If not specified,
|
43
|
+
// [google.api.servicecontrol.v1.Operation.start_time][google.api.servicecontrol.v1.Operation.start_time] will be used.
|
44
|
+
google.protobuf.Timestamp start_time = 2;
|
45
|
+
|
46
|
+
// The end of the time period over which this metric value's measurement
|
47
|
+
// applies. If not specified,
|
48
|
+
// [google.api.servicecontrol.v1.Operation.end_time][google.api.servicecontrol.v1.Operation.end_time] will be used.
|
49
|
+
google.protobuf.Timestamp end_time = 3;
|
50
|
+
|
51
|
+
// The value. The type of value used in the request must
|
52
|
+
// agree with the metric definition in the service configuration, otherwise
|
53
|
+
// the MetricValue is rejected.
|
54
|
+
oneof value {
|
55
|
+
// A boolean value.
|
56
|
+
bool bool_value = 4;
|
57
|
+
|
58
|
+
// A signed 64-bit integer value.
|
59
|
+
int64 int64_value = 5;
|
60
|
+
|
61
|
+
// A double precision floating point value.
|
62
|
+
double double_value = 6;
|
63
|
+
|
64
|
+
// A text string value.
|
65
|
+
string string_value = 7;
|
66
|
+
|
67
|
+
// A distribution value.
|
68
|
+
Distribution distribution_value = 8;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
// Represents a set of metric values in the same metric.
|
73
|
+
// Each metric value in the set should have a unique combination of start time,
|
74
|
+
// end time, and label values.
|
75
|
+
message MetricValueSet {
|
76
|
+
// The metric name defined in the service configuration.
|
77
|
+
string metric_name = 1;
|
78
|
+
|
79
|
+
// The values in this metric.
|
80
|
+
repeated MetricValue metric_values = 2;
|
81
|
+
}
|