@devvit/protos 0.11.6-next-2025-01-28-ba7ef7fe2.0 → 0.11.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (241) hide show
  1. package/package.json +4 -4
  2. package/schema/devvit/plugin/buildpack/buildpack_common.proto +1 -6
  3. package/schema/snootobuf.devenv.lock +102 -210
  4. package/schema/snootobuf.lock +102 -210
  5. package/schema/snootobuf.redditapi.lock +102 -210
  6. package/schema/snootobuf.ts.lock +102 -210
  7. package/types/devvit/dev_portal/dev_portal.d.ts +0 -2
  8. package/types/devvit/dev_portal/dev_portal.d.ts.map +1 -1
  9. package/types/devvit/plugin/builder/builder.d.ts +0 -4
  10. package/types/devvit/plugin/builder/builder.d.ts.map +1 -1
  11. package/types/devvit/plugin/buildpack/buildpack.d.ts +0 -8
  12. package/types/devvit/plugin/buildpack/buildpack.d.ts.map +1 -1
  13. package/types/devvit/plugin/buildpack/buildpack_common.d.ts +0 -3
  14. package/types/devvit/plugin/buildpack/buildpack_common.d.ts.map +1 -1
  15. package/types/devvit/plugin/buildpack/buildpack_common.js +1 -37
  16. package/types/devvit/plugin/linker/linker.d.ts +0 -2
  17. package/types/devvit/plugin/linker/linker.d.ts.map +1 -1
  18. package/types/devvit/plugin/linker/resolver.d.ts +0 -2
  19. package/types/devvit/plugin/linker/resolver.d.ts.map +1 -1
  20. package/meta.min.json +0 -7820
  21. package/protos.min.js +0 -2
  22. package/protos.min.js.map +0 -7
  23. package/schema/.snootobuf/deps/buf/validate/expression.proto +0 -92
  24. package/schema/.snootobuf/deps/buf/validate/priv/private.proto +0 -41
  25. package/schema/.snootobuf/deps/buf/validate/validate.proto +0 -4130
  26. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/audit.proto +0 -72
  27. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/auth.proto +0 -49
  28. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/organization.proto +0 -54
  29. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/service.proto +0 -46
  30. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/subscription.proto +0 -72
  31. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/ui.proto +0 -20
  32. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/user.proto +0 -45
  33. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/admin.proto +0 -54
  34. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/delivery.proto +0 -773
  35. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/filter.proto +0 -66
  36. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/firehose.proto +0 -100
  37. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/intake.proto +0 -19
  38. package/schema/.snootobuf/deps/devvit/events/v1alpha/events.proto +0 -446
  39. package/schema/.snootobuf/deps/devvit/gateway/v1alpha/payments.proto +0 -24
  40. package/schema/.snootobuf/deps/devvit/options/options.proto +0 -98
  41. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/commentv2.proto +0 -29
  42. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/flair.proto +0 -25
  43. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/modaction.proto +0 -53
  44. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/modmail.proto +0 -56
  45. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/postv2.proto +0 -107
  46. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/subredditv2.proto +0 -41
  47. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/userv2.proto +0 -23
  48. package/schema/.snootobuf/deps/devvit/triggers/v1alpha/triggers.proto +0 -162
  49. package/schema/.snootobuf/deps/enum/account_gender_category.proto +0 -14
  50. package/schema/.snootobuf/deps/enum/approval_status.proto +0 -15
  51. package/schema/.snootobuf/deps/enum/automated_reporting_level.proto +0 -12
  52. package/schema/.snootobuf/deps/enum/ban_evasion_threshold.proto +0 -13
  53. package/schema/.snootobuf/deps/enum/ban_info_action.proto +0 -12
  54. package/schema/.snootobuf/deps/enum/block_relation_type.proto +0 -11
  55. package/schema/.snootobuf/deps/enum/comment_sort.proto +0 -18
  56. package/schema/.snootobuf/deps/enum/comment_type.proto +0 -11
  57. package/schema/.snootobuf/deps/enum/crowd_control_level.proto +0 -12
  58. package/schema/.snootobuf/deps/enum/discussion_type.proto +0 -10
  59. package/schema/.snootobuf/deps/enum/distinguish_type.proto +0 -14
  60. package/schema/.snootobuf/deps/enum/flair_position.proto +0 -11
  61. package/schema/.snootobuf/deps/enum/hateful_content_threshold.proto +0 -12
  62. package/schema/.snootobuf/deps/enum/link_content_type.proto +0 -11
  63. package/schema/.snootobuf/deps/enum/link_type.proto +0 -11
  64. package/schema/.snootobuf/deps/enum/link_visibility.proto +0 -11
  65. package/schema/.snootobuf/deps/enum/prediction_leaderboard_entry_type.proto +0 -11
  66. package/schema/.snootobuf/deps/enum/promo_layout.proto +0 -11
  67. package/schema/.snootobuf/deps/enum/removed_by_type.proto +0 -18
  68. package/schema/.snootobuf/deps/enum/spam_level.proto +0 -11
  69. package/schema/.snootobuf/deps/enum/subreddit_type.proto +0 -16
  70. package/schema/.snootobuf/deps/enum/verdict.proto +0 -14
  71. package/schema/.snootobuf/deps/enum/vote.proto +0 -12
  72. package/schema/.snootobuf/deps/enum/whitelist_status.proto +0 -17
  73. package/schema/.snootobuf/deps/enum/wiki_edit_mode.proto +0 -12
  74. package/schema/.snootobuf/deps/evaluator/evaluator.proto +0 -203
  75. package/schema/.snootobuf/deps/google/api/annotations.proto +0 -31
  76. package/schema/.snootobuf/deps/google/api/apikeys/v2/apikeys.proto +0 -288
  77. package/schema/.snootobuf/deps/google/api/apikeys/v2/resources.proto +0 -175
  78. package/schema/.snootobuf/deps/google/api/auth.proto +0 -237
  79. package/schema/.snootobuf/deps/google/api/backend.proto +0 -185
  80. package/schema/.snootobuf/deps/google/api/billing.proto +0 -77
  81. package/schema/.snootobuf/deps/google/api/client.proto +0 -431
  82. package/schema/.snootobuf/deps/google/api/cloudquotas/v1/cloudquotas.proto +0 -322
  83. package/schema/.snootobuf/deps/google/api/cloudquotas/v1/resources.proto +0 -315
  84. package/schema/.snootobuf/deps/google/api/config_change.proto +0 -84
  85. package/schema/.snootobuf/deps/google/api/consumer.proto +0 -82
  86. package/schema/.snootobuf/deps/google/api/context.proto +0 -92
  87. package/schema/.snootobuf/deps/google/api/control.proto +0 -41
  88. package/schema/.snootobuf/deps/google/api/distribution.proto +0 -213
  89. package/schema/.snootobuf/deps/google/api/documentation.proto +0 -168
  90. package/schema/.snootobuf/deps/google/api/endpoint.proto +0 -69
  91. package/schema/.snootobuf/deps/google/api/error_reason.proto +0 -589
  92. package/schema/.snootobuf/deps/google/api/expr/conformance/v1alpha1/conformance_service.proto +0 -183
  93. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/checked.proto +0 -343
  94. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/eval.proto +0 -118
  95. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/explain.proto +0 -53
  96. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/syntax.proto +0 -438
  97. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/value.proto +0 -115
  98. package/schema/.snootobuf/deps/google/api/expr/v1beta1/decl.proto +0 -84
  99. package/schema/.snootobuf/deps/google/api/expr/v1beta1/eval.proto +0 -125
  100. package/schema/.snootobuf/deps/google/api/expr/v1beta1/expr.proto +0 -265
  101. package/schema/.snootobuf/deps/google/api/expr/v1beta1/source.proto +0 -62
  102. package/schema/.snootobuf/deps/google/api/expr/v1beta1/value.proto +0 -114
  103. package/schema/.snootobuf/deps/google/api/field_behavior.proto +0 -104
  104. package/schema/.snootobuf/deps/google/api/field_info.proto +0 -106
  105. package/schema/.snootobuf/deps/google/api/http.proto +0 -371
  106. package/schema/.snootobuf/deps/google/api/httpbody.proto +0 -81
  107. package/schema/.snootobuf/deps/google/api/label.proto +0 -48
  108. package/schema/.snootobuf/deps/google/api/launch_stage.proto +0 -72
  109. package/schema/.snootobuf/deps/google/api/log.proto +0 -54
  110. package/schema/.snootobuf/deps/google/api/logging.proto +0 -81
  111. package/schema/.snootobuf/deps/google/api/metric.proto +0 -268
  112. package/schema/.snootobuf/deps/google/api/monitored_resource.proto +0 -130
  113. package/schema/.snootobuf/deps/google/api/monitoring.proto +0 -107
  114. package/schema/.snootobuf/deps/google/api/policy.proto +0 -85
  115. package/schema/.snootobuf/deps/google/api/quota.proto +0 -184
  116. package/schema/.snootobuf/deps/google/api/resource.proto +0 -243
  117. package/schema/.snootobuf/deps/google/api/routing.proto +0 -461
  118. package/schema/.snootobuf/deps/google/api/service.proto +0 -191
  119. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/check_error.proto +0 -124
  120. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/distribution.proto +0 -166
  121. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/http_request.proto +0 -93
  122. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/log_entry.proto +0 -126
  123. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/metric_value.proto +0 -81
  124. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/operation.proto +0 -123
  125. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/quota_controller.proto +0 -245
  126. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/service_controller.proto +0 -260
  127. package/schema/.snootobuf/deps/google/api/servicecontrol/v2/service_controller.proto +0 -196
  128. package/schema/.snootobuf/deps/google/api/servicemanagement/v1/resources.proto +0 -295
  129. package/schema/.snootobuf/deps/google/api/servicemanagement/v1/servicemanager.proto +0 -508
  130. package/schema/.snootobuf/deps/google/api/serviceusage/v1/resources.proto +0 -130
  131. package/schema/.snootobuf/deps/google/api/serviceusage/v1/serviceusage.proto +0 -305
  132. package/schema/.snootobuf/deps/google/api/serviceusage/v1beta1/resources.proto +0 -458
  133. package/schema/.snootobuf/deps/google/api/serviceusage/v1beta1/serviceusage.proto +0 -793
  134. package/schema/.snootobuf/deps/google/api/source_info.proto +0 -31
  135. package/schema/.snootobuf/deps/google/api/system_parameter.proto +0 -96
  136. package/schema/.snootobuf/deps/google/api/usage.proto +0 -96
  137. package/schema/.snootobuf/deps/google/api/visibility.proto +0 -113
  138. package/schema/.snootobuf/deps/google/cloud/extended_operations.proto +0 -150
  139. package/schema/.snootobuf/deps/google/iam/admin/v1/iam.proto +0 -1087
  140. package/schema/.snootobuf/deps/google/iam/v1/iam_policy.proto +0 -145
  141. package/schema/.snootobuf/deps/google/iam/v1/logging/audit_data.proto +0 -34
  142. package/schema/.snootobuf/deps/google/iam/v1/options.proto +0 -41
  143. package/schema/.snootobuf/deps/google/iam/v1/policy.proto +0 -240
  144. package/schema/.snootobuf/deps/google/logging/type/http_request.proto +0 -92
  145. package/schema/.snootobuf/deps/google/logging/type/log_severity.proto +0 -72
  146. package/schema/.snootobuf/deps/google/longrunning/operations.proto +0 -247
  147. package/schema/.snootobuf/deps/google/protobuf/any.proto +0 -158
  148. package/schema/.snootobuf/deps/google/protobuf/api.proto +0 -208
  149. package/schema/.snootobuf/deps/google/protobuf/compiler/plugin.proto +0 -183
  150. package/schema/.snootobuf/deps/google/protobuf/descriptor.proto +0 -921
  151. package/schema/.snootobuf/deps/google/protobuf/duration.proto +0 -116
  152. package/schema/.snootobuf/deps/google/protobuf/empty.proto +0 -51
  153. package/schema/.snootobuf/deps/google/protobuf/field_mask.proto +0 -245
  154. package/schema/.snootobuf/deps/google/protobuf/source_context.proto +0 -48
  155. package/schema/.snootobuf/deps/google/protobuf/struct.proto +0 -95
  156. package/schema/.snootobuf/deps/google/protobuf/timestamp.proto +0 -147
  157. package/schema/.snootobuf/deps/google/protobuf/type.proto +0 -187
  158. package/schema/.snootobuf/deps/google/protobuf/wrappers.proto +0 -123
  159. package/schema/.snootobuf/deps/google/rpc/code.proto +0 -186
  160. package/schema/.snootobuf/deps/google/rpc/context/attribute_context.proto +0 -287
  161. package/schema/.snootobuf/deps/google/rpc/error_details.proto +0 -246
  162. package/schema/.snootobuf/deps/google/rpc/status.proto +0 -47
  163. package/schema/.snootobuf/deps/google/type/calendar_period.proto +0 -57
  164. package/schema/.snootobuf/deps/google/type/color.proto +0 -170
  165. package/schema/.snootobuf/deps/google/type/date.proto +0 -50
  166. package/schema/.snootobuf/deps/google/type/datetime.proto +0 -97
  167. package/schema/.snootobuf/deps/google/type/dayofweek.proto +0 -51
  168. package/schema/.snootobuf/deps/google/type/expr.proto +0 -51
  169. package/schema/.snootobuf/deps/google/type/fraction.proto +0 -34
  170. package/schema/.snootobuf/deps/google/type/latlng.proto +0 -37
  171. package/schema/.snootobuf/deps/google/type/money.proto +0 -43
  172. package/schema/.snootobuf/deps/google/type/month.proto +0 -66
  173. package/schema/.snootobuf/deps/google/type/postal_address.proto +0 -135
  174. package/schema/.snootobuf/deps/google/type/quaternion.proto +0 -95
  175. package/schema/.snootobuf/deps/google/type/timeofday.proto +0 -44
  176. package/schema/.snootobuf/deps/openapi/helper.proto +0 -20
  177. package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +0 -189
  178. package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +0 -118
  179. package/schema/.snootobuf/deps/reddit/api/metadata/v1/metadata.proto +0 -55
  180. package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account.proto +0 -579
  181. package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account_relations.proto +0 -43
  182. package/schema/.snootobuf/deps/reddit/coreplatform/api/metadata/v1/metadata.proto +0 -82
  183. package/schema/.snootobuf/deps/reddit/coreplatform/blocking/v1/user_blocking_service.proto +0 -221
  184. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree.proto +0 -78
  185. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_service.proto +0 -189
  186. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_structure.proto +0 -29
  187. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments.proto +0 -417
  188. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments_service.proto +0 -72
  189. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/auth.proto +0 -25
  190. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/features.proto +0 -52
  191. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/lang.proto +0 -16
  192. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/legal.proto +0 -20
  193. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/media.proto +0 -149
  194. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/moderation.proto +0 -197
  195. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/safety.proto +0 -116
  196. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/time.proto +0 -25
  197. package/schema/.snootobuf/deps/reddit/coreplatform/domains/v1/domains_metadata_service.proto +0 -101
  198. package/schema/.snootobuf/deps/reddit/coreplatform/grpc_thrift/v1/grpc_thrift_options.proto +0 -34
  199. package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links.proto +0 -798
  200. package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links_service.proto +0 -186
  201. package/schema/.snootobuf/deps/reddit/coreplatform/messages/v1/messages.proto +0 -110
  202. package/schema/.snootobuf/deps/reddit/coreplatform/sensitive/v1/wrappers.proto +0 -51
  203. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit.proto +0 -1202
  204. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_member_relations.proto +0 -85
  205. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_moderator_service.proto +0 -363
  206. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_service.proto +0 -301
  207. package/schema/.snootobuf/deps/reddit/coreplatform/thing/v0/thing.proto +0 -2869
  208. package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/custom_post.proto +0 -15
  209. package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/service.proto +0 -11
  210. package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/context_action.proto +0 -48
  211. package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/manifest.proto +0 -70
  212. package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/service.proto +0 -11
  213. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/acknowledge_order_delivery.proto +0 -17
  214. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/checkout.proto +0 -89
  215. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/common.proto +0 -322
  216. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/delete_products.proto +0 -17
  217. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/events.proto +0 -14
  218. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_batch_products.proto +0 -15
  219. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_gold_balances.proto +0 -48
  220. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_order.proto +0 -31
  221. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders.proto +0 -26
  222. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders_by_user.proto +0 -15
  223. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_payout_info_batch.proto +0 -52
  224. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_products.proto +0 -23
  225. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_user_profiles.proto +0 -28
  226. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/refund_order.proto +0 -17
  227. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service.proto +0 -49
  228. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service_data_compliance.proto +0 -20
  229. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/upsert_products.proto +0 -17
  230. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paygatewaypsps/v1/paygatewaypsps.proto +0 -158
  231. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payments_data_compliance.proto +0 -18
  232. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payorders.proto +0 -195
  233. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/admin.proto +0 -44
  234. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/ledger.proto +0 -200
  235. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/payments_data_compliance.proto +0 -18
  236. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/paypayments.proto +0 -210
  237. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +0 -189
  238. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +0 -135
  239. package/schema/.snootobuf/deps/snooron_sources/text_classification/text_classification.proto +0 -29
  240. package/schema/.snootobuf/deps/snooron_sources/v2_event/v2_event.proto +0 -3292
  241. package/schema/.snootobuf/deps/validate/validate.proto +0 -862
@@ -1,170 +0,0 @@
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
- }
@@ -1,50 +0,0 @@
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
- }
@@ -1,97 +0,0 @@
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
- }
@@ -1,51 +0,0 @@
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
- }
@@ -1,51 +0,0 @@
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
- }
@@ -1,34 +0,0 @@
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
- }
@@ -1,37 +0,0 @@
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
- }
@@ -1,43 +0,0 @@
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
- }
@@ -1,66 +0,0 @@
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
- }