@devvit/protos 0.11.6 → 0.11.7-next-2025-01-28-641048aff.0
Sign up to get free protection for your applications and to get access to all the features.
- package/meta.min.json +7820 -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/plugin/buildpack/buildpack_common.proto +6 -1
- package/schema/snootobuf.devenv.lock +210 -102
- package/schema/snootobuf.lock +210 -102
- package/schema/snootobuf.redditapi.lock +210 -102
- package/schema/snootobuf.ts.lock +210 -102
- package/types/devvit/dev_portal/dev_portal.d.ts +2 -0
- package/types/devvit/dev_portal/dev_portal.d.ts.map +1 -1
- package/types/devvit/plugin/builder/builder.d.ts +4 -0
- package/types/devvit/plugin/builder/builder.d.ts.map +1 -1
- package/types/devvit/plugin/buildpack/buildpack.d.ts +8 -0
- package/types/devvit/plugin/buildpack/buildpack.d.ts.map +1 -1
- package/types/devvit/plugin/buildpack/buildpack_common.d.ts +3 -0
- package/types/devvit/plugin/buildpack/buildpack_common.d.ts.map +1 -1
- package/types/devvit/plugin/buildpack/buildpack_common.js +37 -1
- package/types/devvit/plugin/linker/linker.d.ts +2 -0
- package/types/devvit/plugin/linker/linker.d.ts.map +1 -1
- package/types/devvit/plugin/linker/resolver.d.ts +2 -0
- package/types/devvit/plugin/linker/resolver.d.ts.map +1 -1
@@ -0,0 +1,170 @@
|
|
1
|
+
// Copyright 2019 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
|
+
|
16
|
+
syntax = "proto3";
|
17
|
+
|
18
|
+
package google.type;
|
19
|
+
|
20
|
+
import "google/protobuf/wrappers.proto";
|
21
|
+
|
22
|
+
option cc_enable_arenas = true;
|
23
|
+
option go_package = "google.golang.org/genproto/googleapis/type/color;color";
|
24
|
+
option java_multiple_files = true;
|
25
|
+
option java_outer_classname = "ColorProto";
|
26
|
+
option java_package = "com.google.type";
|
27
|
+
option objc_class_prefix = "GTP";
|
28
|
+
|
29
|
+
// Represents a color in the RGBA color space. This representation is designed
|
30
|
+
// for simplicity of conversion to/from color representations in various
|
31
|
+
// languages over compactness; for example, the fields of this representation
|
32
|
+
// can be trivially provided to the constructor of "java.awt.Color" in Java; it
|
33
|
+
// can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
|
34
|
+
// method in iOS; and, with just a little work, it can be easily formatted into
|
35
|
+
// a CSS "rgba()" string in JavaScript, as well.
|
36
|
+
//
|
37
|
+
// Note: this proto does not carry information about the absolute color space
|
38
|
+
// that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
|
39
|
+
// DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
|
40
|
+
// space.
|
41
|
+
//
|
42
|
+
// Example (Java):
|
43
|
+
//
|
44
|
+
// import com.google.type.Color;
|
45
|
+
//
|
46
|
+
// // ...
|
47
|
+
// public static java.awt.Color fromProto(Color protocolor) {
|
48
|
+
// float alpha = protocolor.hasAlpha()
|
49
|
+
// ? protocolor.getAlpha().getValue()
|
50
|
+
// : 1.0;
|
51
|
+
//
|
52
|
+
// return new java.awt.Color(
|
53
|
+
// protocolor.getRed(),
|
54
|
+
// protocolor.getGreen(),
|
55
|
+
// protocolor.getBlue(),
|
56
|
+
// alpha);
|
57
|
+
// }
|
58
|
+
//
|
59
|
+
// public static Color toProto(java.awt.Color color) {
|
60
|
+
// float red = (float) color.getRed();
|
61
|
+
// float green = (float) color.getGreen();
|
62
|
+
// float blue = (float) color.getBlue();
|
63
|
+
// float denominator = 255.0;
|
64
|
+
// Color.Builder resultBuilder =
|
65
|
+
// Color
|
66
|
+
// .newBuilder()
|
67
|
+
// .setRed(red / denominator)
|
68
|
+
// .setGreen(green / denominator)
|
69
|
+
// .setBlue(blue / denominator);
|
70
|
+
// int alpha = color.getAlpha();
|
71
|
+
// if (alpha != 255) {
|
72
|
+
// result.setAlpha(
|
73
|
+
// FloatValue
|
74
|
+
// .newBuilder()
|
75
|
+
// .setValue(((float) alpha) / denominator)
|
76
|
+
// .build());
|
77
|
+
// }
|
78
|
+
// return resultBuilder.build();
|
79
|
+
// }
|
80
|
+
// // ...
|
81
|
+
//
|
82
|
+
// Example (iOS / Obj-C):
|
83
|
+
//
|
84
|
+
// // ...
|
85
|
+
// static UIColor* fromProto(Color* protocolor) {
|
86
|
+
// float red = [protocolor red];
|
87
|
+
// float green = [protocolor green];
|
88
|
+
// float blue = [protocolor blue];
|
89
|
+
// FloatValue* alpha_wrapper = [protocolor alpha];
|
90
|
+
// float alpha = 1.0;
|
91
|
+
// if (alpha_wrapper != nil) {
|
92
|
+
// alpha = [alpha_wrapper value];
|
93
|
+
// }
|
94
|
+
// return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
|
95
|
+
// }
|
96
|
+
//
|
97
|
+
// static Color* toProto(UIColor* color) {
|
98
|
+
// CGFloat red, green, blue, alpha;
|
99
|
+
// if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) {
|
100
|
+
// return nil;
|
101
|
+
// }
|
102
|
+
// Color* result = [[Color alloc] init];
|
103
|
+
// [result setRed:red];
|
104
|
+
// [result setGreen:green];
|
105
|
+
// [result setBlue:blue];
|
106
|
+
// if (alpha <= 0.9999) {
|
107
|
+
// [result setAlpha:floatWrapperWithValue(alpha)];
|
108
|
+
// }
|
109
|
+
// [result autorelease];
|
110
|
+
// return result;
|
111
|
+
// }
|
112
|
+
// // ...
|
113
|
+
//
|
114
|
+
// Example (JavaScript):
|
115
|
+
//
|
116
|
+
// // ...
|
117
|
+
//
|
118
|
+
// var protoToCssColor = function(rgb_color) {
|
119
|
+
// var redFrac = rgb_color.red || 0.0;
|
120
|
+
// var greenFrac = rgb_color.green || 0.0;
|
121
|
+
// var blueFrac = rgb_color.blue || 0.0;
|
122
|
+
// var red = Math.floor(redFrac * 255);
|
123
|
+
// var green = Math.floor(greenFrac * 255);
|
124
|
+
// var blue = Math.floor(blueFrac * 255);
|
125
|
+
//
|
126
|
+
// if (!('alpha' in rgb_color)) {
|
127
|
+
// return rgbToCssColor_(red, green, blue);
|
128
|
+
// }
|
129
|
+
//
|
130
|
+
// var alphaFrac = rgb_color.alpha.value || 0.0;
|
131
|
+
// var rgbParams = [red, green, blue].join(',');
|
132
|
+
// return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
|
133
|
+
// };
|
134
|
+
//
|
135
|
+
// var rgbToCssColor_ = function(red, green, blue) {
|
136
|
+
// var rgbNumber = new Number((red << 16) | (green << 8) | blue);
|
137
|
+
// var hexString = rgbNumber.toString(16);
|
138
|
+
// var missingZeros = 6 - hexString.length;
|
139
|
+
// var resultBuilder = ['#'];
|
140
|
+
// for (var i = 0; i < missingZeros; i++) {
|
141
|
+
// resultBuilder.push('0');
|
142
|
+
// }
|
143
|
+
// resultBuilder.push(hexString);
|
144
|
+
// return resultBuilder.join('');
|
145
|
+
// };
|
146
|
+
//
|
147
|
+
// // ...
|
148
|
+
message Color {
|
149
|
+
// The amount of red in the color as a value in the interval [0, 1].
|
150
|
+
float red = 1;
|
151
|
+
|
152
|
+
// The amount of green in the color as a value in the interval [0, 1].
|
153
|
+
float green = 2;
|
154
|
+
|
155
|
+
// The amount of blue in the color as a value in the interval [0, 1].
|
156
|
+
float blue = 3;
|
157
|
+
|
158
|
+
// The fraction of this color that should be applied to the pixel. That is,
|
159
|
+
// the final pixel color is defined by the equation:
|
160
|
+
//
|
161
|
+
// pixel color = alpha * (this color) + (1.0 - alpha) * (background color)
|
162
|
+
//
|
163
|
+
// This means that a value of 1.0 corresponds to a solid color, whereas
|
164
|
+
// a value of 0.0 corresponds to a completely transparent color. This
|
165
|
+
// uses a wrapper message rather than a simple float scalar so that it is
|
166
|
+
// possible to distinguish between a default value and the value being unset.
|
167
|
+
// If omitted, this color object is to be rendered as a solid color
|
168
|
+
// (as if the alpha value had been explicitly given with a value of 1.0).
|
169
|
+
google.protobuf.FloatValue alpha = 4;
|
170
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
// Copyright 2019 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
|
+
|
16
|
+
syntax = "proto3";
|
17
|
+
|
18
|
+
package google.type;
|
19
|
+
|
20
|
+
option cc_enable_arenas = true;
|
21
|
+
option go_package = "google.golang.org/genproto/googleapis/type/date;date";
|
22
|
+
option java_multiple_files = true;
|
23
|
+
option java_outer_classname = "DateProto";
|
24
|
+
option java_package = "com.google.type";
|
25
|
+
option objc_class_prefix = "GTP";
|
26
|
+
|
27
|
+
// Represents a whole or partial calendar date, e.g. a birthday. The time of day
|
28
|
+
// and time zone are either specified elsewhere or are not significant. The date
|
29
|
+
// is relative to the Proleptic Gregorian Calendar. This can represent:
|
30
|
+
//
|
31
|
+
// * A full date, with non-zero year, month and day values
|
32
|
+
// * A month and day value, with a zero year, e.g. an anniversary
|
33
|
+
// * A year on its own, with zero month and day values
|
34
|
+
// * A year and month value, with a zero day, e.g. a credit card expiration date
|
35
|
+
//
|
36
|
+
// Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and `google.protobuf.Timestamp`.
|
37
|
+
message Date {
|
38
|
+
// Year of date. Must be from 1 to 9999, or 0 if specifying a date without
|
39
|
+
// a year.
|
40
|
+
int32 year = 1;
|
41
|
+
|
42
|
+
// Month of year. Must be from 1 to 12, or 0 if specifying a year without a
|
43
|
+
// month and day.
|
44
|
+
int32 month = 2;
|
45
|
+
|
46
|
+
// Day of month. Must be from 1 to 31 and valid for the year and month, or 0
|
47
|
+
// if specifying a year by itself or a year and month where the day is not
|
48
|
+
// significant.
|
49
|
+
int32 day = 3;
|
50
|
+
}
|
@@ -0,0 +1,97 @@
|
|
1
|
+
// Copyright 2019 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
|
+
|
16
|
+
syntax = "proto3";
|
17
|
+
|
18
|
+
package google.type;
|
19
|
+
|
20
|
+
import "google/protobuf/duration.proto";
|
21
|
+
|
22
|
+
option cc_enable_arenas = true;
|
23
|
+
option go_package = "google.golang.org/genproto/googleapis/type/datetime;datetime";
|
24
|
+
option java_multiple_files = true;
|
25
|
+
option java_outer_classname = "DateTimeProto";
|
26
|
+
option java_package = "com.google.type";
|
27
|
+
option objc_class_prefix = "GTP";
|
28
|
+
|
29
|
+
// Represents civil time in one of a few possible ways:
|
30
|
+
//
|
31
|
+
// * When utc_offset is set and time_zone is unset: a civil time on a calendar
|
32
|
+
// day with a particular offset from UTC.
|
33
|
+
// * When time_zone is set and utc_offset is unset: a civil time on a calendar
|
34
|
+
// day in a particular time zone.
|
35
|
+
// * When neither time_zone nor utc_offset is set: a civil time on a calendar
|
36
|
+
// day in local time.
|
37
|
+
//
|
38
|
+
// The date is relative to the Proleptic Gregorian Calendar.
|
39
|
+
//
|
40
|
+
// If year is 0, the DateTime is considered not to have a specific year. month
|
41
|
+
// and day must have valid, non-zero values.
|
42
|
+
//
|
43
|
+
// This type is more flexible than some applications may want. Make sure to
|
44
|
+
// document and validate your application's limitations.
|
45
|
+
message DateTime {
|
46
|
+
// Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a
|
47
|
+
// datetime without a year.
|
48
|
+
int32 year = 1;
|
49
|
+
|
50
|
+
// Required. Month of year. Must be from 1 to 12.
|
51
|
+
int32 month = 2;
|
52
|
+
|
53
|
+
// Required. Day of month. Must be from 1 to 31 and valid for the year and
|
54
|
+
// month.
|
55
|
+
int32 day = 3;
|
56
|
+
|
57
|
+
// Required. Hours of day in 24 hour format. Should be from 0 to 23. An API
|
58
|
+
// may choose to allow the value "24:00:00" for scenarios like business
|
59
|
+
// closing time.
|
60
|
+
int32 hours = 4;
|
61
|
+
|
62
|
+
// Required. Minutes of hour of day. Must be from 0 to 59.
|
63
|
+
int32 minutes = 5;
|
64
|
+
|
65
|
+
// Required. Seconds of minutes of the time. Must normally be from 0 to 59. An
|
66
|
+
// API may allow the value 60 if it allows leap-seconds.
|
67
|
+
int32 seconds = 6;
|
68
|
+
|
69
|
+
// Required. Fractions of seconds in nanoseconds. Must be from 0 to
|
70
|
+
// 999,999,999.
|
71
|
+
int32 nanos = 7;
|
72
|
+
|
73
|
+
// Optional. Specifies either the UTC offset or the time zone of the DateTime.
|
74
|
+
// Choose carefully between them, considering that time zone data may change
|
75
|
+
// in the future (for example, a country modifies their DST start/end dates,
|
76
|
+
// and future DateTimes in the affected range had already been stored).
|
77
|
+
// If omitted, the DateTime is considered to be in local time.
|
78
|
+
oneof time_offset {
|
79
|
+
// UTC offset. Must be whole seconds, between -18 hours and +18 hours.
|
80
|
+
// For example, a UTC offset of -4:00 would be represented as
|
81
|
+
// { seconds: -14400 }.
|
82
|
+
google.protobuf.Duration utc_offset = 8;
|
83
|
+
|
84
|
+
// Time zone.
|
85
|
+
TimeZone time_zone = 9;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
// Represents a time zone from the
|
90
|
+
// [IANA Time Zone Database](https://www.iana.org/time-zones).
|
91
|
+
message TimeZone {
|
92
|
+
// IANA Time Zone Database time zone, e.g. "America/New_York".
|
93
|
+
string id = 1;
|
94
|
+
|
95
|
+
// Optional. IANA Time Zone Database version number, e.g. "2019a".
|
96
|
+
string version = 2;
|
97
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
// Copyright 2019 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
|
+
|
16
|
+
syntax = "proto3";
|
17
|
+
|
18
|
+
package google.type;
|
19
|
+
|
20
|
+
option go_package = "google.golang.org/genproto/googleapis/type/dayofweek;dayofweek";
|
21
|
+
option java_multiple_files = true;
|
22
|
+
option java_outer_classname = "DayOfWeekProto";
|
23
|
+
option java_package = "com.google.type";
|
24
|
+
option objc_class_prefix = "GTP";
|
25
|
+
|
26
|
+
// Represents a day of week.
|
27
|
+
enum DayOfWeek {
|
28
|
+
// The unspecified day-of-week.
|
29
|
+
DAY_OF_WEEK_UNSPECIFIED = 0;
|
30
|
+
|
31
|
+
// The day-of-week of Monday.
|
32
|
+
MONDAY = 1;
|
33
|
+
|
34
|
+
// The day-of-week of Tuesday.
|
35
|
+
TUESDAY = 2;
|
36
|
+
|
37
|
+
// The day-of-week of Wednesday.
|
38
|
+
WEDNESDAY = 3;
|
39
|
+
|
40
|
+
// The day-of-week of Thursday.
|
41
|
+
THURSDAY = 4;
|
42
|
+
|
43
|
+
// The day-of-week of Friday.
|
44
|
+
FRIDAY = 5;
|
45
|
+
|
46
|
+
// The day-of-week of Saturday.
|
47
|
+
SATURDAY = 6;
|
48
|
+
|
49
|
+
// The day-of-week of Sunday.
|
50
|
+
SUNDAY = 7;
|
51
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
// Copyright 2019 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
|
+
|
16
|
+
syntax = "proto3";
|
17
|
+
|
18
|
+
package google.type;
|
19
|
+
|
20
|
+
option go_package = "google.golang.org/genproto/googleapis/type/expr;expr";
|
21
|
+
option java_multiple_files = true;
|
22
|
+
option java_outer_classname = "ExprProto";
|
23
|
+
option java_package = "com.google.type";
|
24
|
+
option objc_class_prefix = "GTP";
|
25
|
+
|
26
|
+
// Represents an expression text. Example:
|
27
|
+
//
|
28
|
+
// title: "User account presence"
|
29
|
+
// description: "Determines whether the request has a user account"
|
30
|
+
// expression: "size(request.user) > 0"
|
31
|
+
message Expr {
|
32
|
+
// Textual representation of an expression in
|
33
|
+
// Common Expression Language syntax.
|
34
|
+
//
|
35
|
+
// The application context of the containing message determines which
|
36
|
+
// well-known feature set of CEL is supported.
|
37
|
+
string expression = 1;
|
38
|
+
|
39
|
+
// An optional title for the expression, i.e. a short string describing
|
40
|
+
// its purpose. This can be used e.g. in UIs which allow to enter the
|
41
|
+
// expression.
|
42
|
+
string title = 2;
|
43
|
+
|
44
|
+
// An optional description of the expression. This is a longer text which
|
45
|
+
// describes the expression, e.g. when hovered over it in a UI.
|
46
|
+
string description = 3;
|
47
|
+
|
48
|
+
// An optional string indicating the location of the expression for error
|
49
|
+
// reporting, e.g. a file name and a position in the file.
|
50
|
+
string location = 4;
|
51
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
// Copyright 2019 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
|
+
|
16
|
+
syntax = "proto3";
|
17
|
+
|
18
|
+
package google.type;
|
19
|
+
|
20
|
+
option go_package = "google.golang.org/genproto/googleapis/type/fraction;fraction";
|
21
|
+
option java_multiple_files = true;
|
22
|
+
option java_outer_classname = "FractionProto";
|
23
|
+
option java_package = "com.google.type";
|
24
|
+
option objc_class_prefix = "GTP";
|
25
|
+
|
26
|
+
// Represents a fraction in terms of a numerator divided by a denominator.
|
27
|
+
message Fraction {
|
28
|
+
// The portion of the denominator in the faction, e.g. 2 in 2/3.
|
29
|
+
int64 numerator = 1;
|
30
|
+
|
31
|
+
// The value by which the numerator is divided, e.g. 3 in 2/3. Must be
|
32
|
+
// positive.
|
33
|
+
int64 denominator = 2;
|
34
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
// Copyright 2020 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.type;
|
18
|
+
|
19
|
+
option cc_enable_arenas = true;
|
20
|
+
option go_package = "google.golang.org/genproto/googleapis/type/latlng;latlng";
|
21
|
+
option java_multiple_files = true;
|
22
|
+
option java_outer_classname = "LatLngProto";
|
23
|
+
option java_package = "com.google.type";
|
24
|
+
option objc_class_prefix = "GTP";
|
25
|
+
|
26
|
+
// An object that represents a latitude/longitude pair. This is expressed as a
|
27
|
+
// pair of doubles to represent degrees latitude and degrees longitude. Unless
|
28
|
+
// specified otherwise, this must conform to the
|
29
|
+
// <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
30
|
+
// standard</a>. Values must be within normalized ranges.
|
31
|
+
message LatLng {
|
32
|
+
// The latitude in degrees. It must be in the range [-90.0, +90.0].
|
33
|
+
double latitude = 1;
|
34
|
+
|
35
|
+
// The longitude in degrees. It must be in the range [-180.0, +180.0].
|
36
|
+
double longitude = 2;
|
37
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
// Copyright 2019 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
|
+
|
16
|
+
syntax = "proto3";
|
17
|
+
|
18
|
+
package google.type;
|
19
|
+
|
20
|
+
option cc_enable_arenas = true;
|
21
|
+
option go_package = "google.golang.org/genproto/googleapis/type/money;money";
|
22
|
+
option java_multiple_files = true;
|
23
|
+
option java_outer_classname = "MoneyProto";
|
24
|
+
option java_package = "com.google.type";
|
25
|
+
option objc_class_prefix = "GTP";
|
26
|
+
|
27
|
+
// Represents an amount of money with its currency type.
|
28
|
+
message Money {
|
29
|
+
// The 3-letter currency code defined in ISO 4217.
|
30
|
+
string currency_code = 1;
|
31
|
+
|
32
|
+
// The whole units of the amount.
|
33
|
+
// For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
|
34
|
+
int64 units = 2;
|
35
|
+
|
36
|
+
// Number of nano (10^-9) units of the amount.
|
37
|
+
// The value must be between -999,999,999 and +999,999,999 inclusive.
|
38
|
+
// If `units` is positive, `nanos` must be positive or zero.
|
39
|
+
// If `units` is zero, `nanos` can be positive, zero, or negative.
|
40
|
+
// If `units` is negative, `nanos` must be negative or zero.
|
41
|
+
// For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
|
42
|
+
int32 nanos = 3;
|
43
|
+
}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
// Copyright 2019 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
|
+
|
16
|
+
syntax = "proto3";
|
17
|
+
|
18
|
+
package google.type;
|
19
|
+
|
20
|
+
option go_package = "google.golang.org/genproto/googleapis/type/month;month";
|
21
|
+
option java_multiple_files = true;
|
22
|
+
option java_outer_classname = "MonthProto";
|
23
|
+
option java_package = "com.google.type";
|
24
|
+
option objc_class_prefix = "GTP";
|
25
|
+
|
26
|
+
// Represents a month in the Gregorian calendar.
|
27
|
+
enum Month {
|
28
|
+
// The unspecifed month.
|
29
|
+
MONTH_UNSPECIFIED = 0;
|
30
|
+
|
31
|
+
// The month of January.
|
32
|
+
JANUARY = 1;
|
33
|
+
|
34
|
+
// The month of February.
|
35
|
+
FEBRUARY = 2;
|
36
|
+
|
37
|
+
// The month of March.
|
38
|
+
MARCH = 3;
|
39
|
+
|
40
|
+
// The month of April.
|
41
|
+
APRIL = 4;
|
42
|
+
|
43
|
+
// The month of May.
|
44
|
+
MAY = 5;
|
45
|
+
|
46
|
+
// The month of June.
|
47
|
+
JUNE = 6;
|
48
|
+
|
49
|
+
// The month of July.
|
50
|
+
JULY = 7;
|
51
|
+
|
52
|
+
// The month of August.
|
53
|
+
AUGUST = 8;
|
54
|
+
|
55
|
+
// The month of September.
|
56
|
+
SEPTEMBER = 9;
|
57
|
+
|
58
|
+
// The month of October.
|
59
|
+
OCTOBER = 10;
|
60
|
+
|
61
|
+
// The month of November.
|
62
|
+
NOVEMBER = 11;
|
63
|
+
|
64
|
+
// The month of December.
|
65
|
+
DECEMBER = 12;
|
66
|
+
}
|