@finam/grpc-tradeapi 2.14.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.
Files changed (146) hide show
  1. package/README.md +41 -0
  2. package/google/api/annotations_pb.d.ts +34 -0
  3. package/google/api/annotations_pb.js +36 -0
  4. package/google/api/auth_pb.d.ts +382 -0
  5. package/google/api/auth_pb.js +68 -0
  6. package/google/api/backend_pb.d.ts +278 -0
  7. package/google/api/backend_pb.js +60 -0
  8. package/google/api/billing_pb.d.ts +112 -0
  9. package/google/api/billing_pb.js +40 -0
  10. package/google/api/client_pb.d.ts +906 -0
  11. package/google/api/client_pb.js +268 -0
  12. package/google/api/config_change_pb.d.ts +156 -0
  13. package/google/api/config_change_pb.js +55 -0
  14. package/google/api/consumer_pb.d.ts +151 -0
  15. package/google/api/consumer_pb.js +54 -0
  16. package/google/api/context_pb.d.ts +139 -0
  17. package/google/api/context_pb.js +40 -0
  18. package/google/api/control_pb.d.ts +61 -0
  19. package/google/api/control_pb.js +34 -0
  20. package/google/api/distribution_pb.d.ts +379 -0
  21. package/google/api/distribution_pb.js +76 -0
  22. package/google/api/documentation_pb.d.ts +249 -0
  23. package/google/api/documentation_pb.js +47 -0
  24. package/google/api/endpoint_pb.d.ts +98 -0
  25. package/google/api/endpoint_pb.js +33 -0
  26. package/google/api/error_reason_pb.d.ts +765 -0
  27. package/google/api/error_reason_pb.js +49 -0
  28. package/google/api/field_behavior_pb.d.ts +152 -0
  29. package/google/api/field_behavior_pb.js +65 -0
  30. package/google/api/field_info_pb.d.ts +171 -0
  31. package/google/api/field_info_pb.js +80 -0
  32. package/google/api/http_pb.d.ts +469 -0
  33. package/google/api/http_pb.js +47 -0
  34. package/google/api/httpbody_pb.d.ts +104 -0
  35. package/google/api/httpbody_pb.js +34 -0
  36. package/google/api/label_pb.d.ts +93 -0
  37. package/google/api/label_pb.js +47 -0
  38. package/google/api/launch_stage_pb.d.ts +115 -0
  39. package/google/api/launch_stage_pb.js +41 -0
  40. package/google/api/log_pb.d.ts +82 -0
  41. package/google/api/log_pb.js +34 -0
  42. package/google/api/logging_pb.d.ts +120 -0
  43. package/google/api/logging_pb.js +40 -0
  44. package/google/api/metric_pb.d.ts +474 -0
  45. package/google/api/metric_pb.js +94 -0
  46. package/google/api/monitored_resource_pb.d.ts +200 -0
  47. package/google/api/monitored_resource_pb.js +50 -0
  48. package/google/api/monitoring_pb.d.ts +146 -0
  49. package/google/api/monitoring_pb.js +40 -0
  50. package/google/api/policy_pb.d.ts +128 -0
  51. package/google/api/policy_pb.js +57 -0
  52. package/google/api/quota_pb.d.ts +273 -0
  53. package/google/api/quota_pb.js +47 -0
  54. package/google/api/resource_pb.d.ts +344 -0
  55. package/google/api/resource_pb.js +97 -0
  56. package/google/api/routing_pb.d.ts +497 -0
  57. package/google/api/routing_pb.js +49 -0
  58. package/google/api/service_pb.d.ts +305 -0
  59. package/google/api/service_pb.js +52 -0
  60. package/google/api/source_info_pb.d.ts +47 -0
  61. package/google/api/source_info_pb.js +34 -0
  62. package/google/api/system_parameter_pb.d.ts +153 -0
  63. package/google/api/system_parameter_pb.js +47 -0
  64. package/google/api/usage_pb.d.ts +143 -0
  65. package/google/api/usage_pb.js +40 -0
  66. package/google/api/visibility_pb.d.ts +158 -0
  67. package/google/api/visibility_pb.js +89 -0
  68. package/google/protobuf/any_pb.d.ts +182 -0
  69. package/google/protobuf/any_pb.js +49 -0
  70. package/google/protobuf/api_pb.d.ts +302 -0
  71. package/google/protobuf/api_pb.js +65 -0
  72. package/google/protobuf/descriptor_pb.d.ts +2511 -0
  73. package/google/protobuf/descriptor_pb.js +500 -0
  74. package/google/protobuf/duration_pb.d.ts +134 -0
  75. package/google/protobuf/duration_pb.js +49 -0
  76. package/google/protobuf/empty_pb.d.ts +63 -0
  77. package/google/protobuf/empty_pb.js +49 -0
  78. package/google/protobuf/field_mask_pb.d.ts +260 -0
  79. package/google/protobuf/field_mask_pb.js +49 -0
  80. package/google/protobuf/source_context_pb.d.ts +64 -0
  81. package/google/protobuf/source_context_pb.js +49 -0
  82. package/google/protobuf/struct_pb.d.ts +186 -0
  83. package/google/protobuf/struct_pb.js +80 -0
  84. package/google/protobuf/timestamp_pb.d.ts +163 -0
  85. package/google/protobuf/timestamp_pb.js +49 -0
  86. package/google/protobuf/type_pb.d.ts +532 -0
  87. package/google/protobuf/type_pb.js +121 -0
  88. package/google/protobuf/wrappers_pb.d.ts +250 -0
  89. package/google/protobuf/wrappers_pb.js +115 -0
  90. package/google/type/calendar_period_pb.d.ts +99 -0
  91. package/google/type/calendar_period_pb.js +42 -0
  92. package/google/type/color_pb.d.ts +200 -0
  93. package/google/type/color_pb.js +34 -0
  94. package/google/type/date_pb.d.ts +76 -0
  95. package/google/type/date_pb.js +33 -0
  96. package/google/type/datetime_pb.d.ts +175 -0
  97. package/google/type/datetime_pb.js +41 -0
  98. package/google/type/dayofweek_pb.d.ts +93 -0
  99. package/google/type/dayofweek_pb.js +40 -0
  100. package/google/type/decimal_pb.d.ts +111 -0
  101. package/google/type/decimal_pb.js +33 -0
  102. package/google/type/expr_pb.d.ts +102 -0
  103. package/google/type/expr_pb.js +33 -0
  104. package/google/type/fraction_pb.d.ts +54 -0
  105. package/google/type/fraction_pb.js +33 -0
  106. package/google/type/interval_pb.d.ts +65 -0
  107. package/google/type/interval_pb.js +34 -0
  108. package/google/type/latlng_pb.d.ts +57 -0
  109. package/google/type/latlng_pb.js +33 -0
  110. package/google/type/localized_text_pb.d.ts +56 -0
  111. package/google/type/localized_text_pb.js +33 -0
  112. package/google/type/money_pb.d.ts +66 -0
  113. package/google/type/money_pb.js +33 -0
  114. package/google/type/month_pb.d.ts +128 -0
  115. package/google/type/month_pb.js +40 -0
  116. package/google/type/phone_number_pb.d.ts +161 -0
  117. package/google/type/phone_number_pb.js +40 -0
  118. package/google/type/postal_address_pb.d.ts +190 -0
  119. package/google/type/postal_address_pb.js +33 -0
  120. package/google/type/quaternion_pb.d.ts +122 -0
  121. package/google/type/quaternion_pb.js +33 -0
  122. package/google/type/timeofday_pb.d.ts +72 -0
  123. package/google/type/timeofday_pb.js +33 -0
  124. package/grpc/gateway/protoc_gen_openapiv2/options/annotations_pb.d.ts +73 -0
  125. package/grpc/gateway/protoc_gen_openapiv2/options/annotations_pb.js +80 -0
  126. package/grpc/gateway/protoc_gen_openapiv2/options/openapiv2_pb.d.ts +1586 -0
  127. package/grpc/gateway/protoc_gen_openapiv2/options/openapiv2_pb.js +239 -0
  128. package/grpc/tradeapi/v1/accounts/accounts_service_pb.d.ts +671 -0
  129. package/grpc/tradeapi/v1/accounts/accounts_service_pb.js +126 -0
  130. package/grpc/tradeapi/v1/assets/assets_service_pb.d.ts +1318 -0
  131. package/grpc/tradeapi/v1/assets/assets_service_pb.js +279 -0
  132. package/grpc/tradeapi/v1/auth/auth_service_pb.d.ts +336 -0
  133. package/grpc/tradeapi/v1/auth/auth_service_pb.js +86 -0
  134. package/grpc/tradeapi/v1/marketdata/marketdata_service_pb.d.ts +1215 -0
  135. package/grpc/tradeapi/v1/marketdata/marketdata_service_pb.js +243 -0
  136. package/grpc/tradeapi/v1/metrics/usage_metrics_service_pb.d.ts +111 -0
  137. package/grpc/tradeapi/v1/metrics/usage_metrics_service_pb.js +46 -0
  138. package/grpc/tradeapi/v1/orders/orders_service_pb.d.ts +1256 -0
  139. package/grpc/tradeapi/v1/orders/orders_service_pb.js +242 -0
  140. package/grpc/tradeapi/v1/reports/reports_service_pb.d.ts +353 -0
  141. package/grpc/tradeapi/v1/reports/reports_service_pb.js +107 -0
  142. package/grpc/tradeapi/v1/side_pb.d.ts +44 -0
  143. package/grpc/tradeapi/v1/side_pb.js +26 -0
  144. package/grpc/tradeapi/v1/trade_pb.d.ts +91 -0
  145. package/grpc/tradeapi/v1/trade_pb.js +22 -0
  146. package/package.json +14 -0
@@ -0,0 +1,278 @@
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
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=js+dts,import_extension=js"
16
+ // @generated from file google/api/backend.proto (package google.api, syntax proto3)
17
+ /* eslint-disable */
18
+
19
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
20
+ import type { Message } from "@bufbuild/protobuf";
21
+
22
+ /**
23
+ * Describes the file google/api/backend.proto.
24
+ */
25
+ export declare const file_google_api_backend: GenFile;
26
+
27
+ /**
28
+ * `Backend` defines the backend configuration for a service.
29
+ *
30
+ * @generated from message google.api.Backend
31
+ */
32
+ export declare type Backend = Message<"google.api.Backend"> & {
33
+ /**
34
+ * A list of API backend rules that apply to individual API methods.
35
+ *
36
+ * **NOTE:** All service configuration rules follow "last one wins" order.
37
+ *
38
+ * @generated from field: repeated google.api.BackendRule rules = 1;
39
+ */
40
+ rules: BackendRule[];
41
+ };
42
+
43
+ /**
44
+ * Describes the message google.api.Backend.
45
+ * Use `create(BackendSchema)` to create a new message.
46
+ */
47
+ export declare const BackendSchema: GenMessage<Backend>;
48
+
49
+ /**
50
+ * A backend rule provides configuration for an individual API element.
51
+ *
52
+ * @generated from message google.api.BackendRule
53
+ */
54
+ export declare type BackendRule = Message<"google.api.BackendRule"> & {
55
+ /**
56
+ * Selects the methods to which this rule applies.
57
+ *
58
+ * Refer to [selector][google.api.DocumentationRule.selector] for syntax
59
+ * details.
60
+ *
61
+ * @generated from field: string selector = 1;
62
+ */
63
+ selector: string;
64
+
65
+ /**
66
+ * The address of the API backend.
67
+ *
68
+ * The scheme is used to determine the backend protocol and security.
69
+ * The following schemes are accepted:
70
+ *
71
+ * SCHEME PROTOCOL SECURITY
72
+ * http:// HTTP None
73
+ * https:// HTTP TLS
74
+ * grpc:// gRPC None
75
+ * grpcs:// gRPC TLS
76
+ *
77
+ * It is recommended to explicitly include a scheme. Leaving out the scheme
78
+ * may cause constrasting behaviors across platforms.
79
+ *
80
+ * If the port is unspecified, the default is:
81
+ * - 80 for schemes without TLS
82
+ * - 443 for schemes with TLS
83
+ *
84
+ * For HTTP backends, use [protocol][google.api.BackendRule.protocol]
85
+ * to specify the protocol version.
86
+ *
87
+ * @generated from field: string address = 2;
88
+ */
89
+ address: string;
90
+
91
+ /**
92
+ * The number of seconds to wait for a response from a request. The default
93
+ * varies based on the request protocol and deployment environment.
94
+ *
95
+ * @generated from field: double deadline = 3;
96
+ */
97
+ deadline: number;
98
+
99
+ /**
100
+ * Deprecated, do not use.
101
+ *
102
+ * @generated from field: double min_deadline = 4 [deprecated = true];
103
+ * @deprecated
104
+ */
105
+ minDeadline: number;
106
+
107
+ /**
108
+ * The number of seconds to wait for the completion of a long running
109
+ * operation. The default is no deadline.
110
+ *
111
+ * @generated from field: double operation_deadline = 5;
112
+ */
113
+ operationDeadline: number;
114
+
115
+ /**
116
+ * @generated from field: google.api.BackendRule.PathTranslation path_translation = 6;
117
+ */
118
+ pathTranslation: BackendRule_PathTranslation;
119
+
120
+ /**
121
+ * Authentication settings used by the backend.
122
+ *
123
+ * These are typically used to provide service management functionality to
124
+ * a backend served on a publicly-routable URL. The `authentication`
125
+ * details should match the authentication behavior used by the backend.
126
+ *
127
+ * For example, specifying `jwt_audience` implies that the backend expects
128
+ * authentication via a JWT.
129
+ *
130
+ * When authentication is unspecified, the resulting behavior is the same
131
+ * as `disable_auth` set to `true`.
132
+ *
133
+ * Refer to https://developers.google.com/identity/protocols/OpenIDConnect for
134
+ * JWT ID token.
135
+ *
136
+ * @generated from oneof google.api.BackendRule.authentication
137
+ */
138
+ authentication: {
139
+ /**
140
+ * The JWT audience is used when generating a JWT ID token for the backend.
141
+ * This ID token will be added in the HTTP "authorization" header, and sent
142
+ * to the backend.
143
+ *
144
+ * @generated from field: string jwt_audience = 7;
145
+ */
146
+ value: string;
147
+ case: "jwtAudience";
148
+ } | {
149
+ /**
150
+ * When disable_auth is true, a JWT ID token won't be generated and the
151
+ * original "Authorization" HTTP header will be preserved. If the header is
152
+ * used to carry the original token and is expected by the backend, this
153
+ * field must be set to true to preserve the header.
154
+ *
155
+ * @generated from field: bool disable_auth = 8;
156
+ */
157
+ value: boolean;
158
+ case: "disableAuth";
159
+ } | { case: undefined; value?: undefined };
160
+
161
+ /**
162
+ * The protocol used for sending a request to the backend.
163
+ * The supported values are "http/1.1" and "h2".
164
+ *
165
+ * The default value is inferred from the scheme in the
166
+ * [address][google.api.BackendRule.address] field:
167
+ *
168
+ * SCHEME PROTOCOL
169
+ * http:// http/1.1
170
+ * https:// http/1.1
171
+ * grpc:// h2
172
+ * grpcs:// h2
173
+ *
174
+ * For secure HTTP backends (https://) that support HTTP/2, set this field
175
+ * to "h2" for improved performance.
176
+ *
177
+ * Configuring this field to non-default values is only supported for secure
178
+ * HTTP backends. This field will be ignored for all other backends.
179
+ *
180
+ * See
181
+ * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
182
+ * for more details on the supported values.
183
+ *
184
+ * @generated from field: string protocol = 9;
185
+ */
186
+ protocol: string;
187
+
188
+ /**
189
+ * The map between request protocol and the backend address.
190
+ *
191
+ * @generated from field: map<string, google.api.BackendRule> overrides_by_request_protocol = 10;
192
+ */
193
+ overridesByRequestProtocol: { [key: string]: BackendRule };
194
+ };
195
+
196
+ /**
197
+ * Describes the message google.api.BackendRule.
198
+ * Use `create(BackendRuleSchema)` to create a new message.
199
+ */
200
+ export declare const BackendRuleSchema: GenMessage<BackendRule>;
201
+
202
+ /**
203
+ * Path Translation specifies how to combine the backend address with the
204
+ * request path in order to produce the appropriate forwarding URL for the
205
+ * request.
206
+ *
207
+ * Path Translation is applicable only to HTTP-based backends. Backends which
208
+ * do not accept requests over HTTP/HTTPS should leave `path_translation`
209
+ * unspecified.
210
+ *
211
+ * @generated from enum google.api.BackendRule.PathTranslation
212
+ */
213
+ export enum BackendRule_PathTranslation {
214
+ /**
215
+ * @generated from enum value: PATH_TRANSLATION_UNSPECIFIED = 0;
216
+ */
217
+ PATH_TRANSLATION_UNSPECIFIED = 0,
218
+
219
+ /**
220
+ * Use the backend address as-is, with no modification to the path. If the
221
+ * URL pattern contains variables, the variable names and values will be
222
+ * appended to the query string. If a query string parameter and a URL
223
+ * pattern variable have the same name, this may result in duplicate keys in
224
+ * the query string.
225
+ *
226
+ * # Examples
227
+ *
228
+ * Given the following operation config:
229
+ *
230
+ * Method path: /api/company/{cid}/user/{uid}
231
+ * Backend address: https://example.cloudfunctions.net/getUser
232
+ *
233
+ * Requests to the following request paths will call the backend at the
234
+ * translated path:
235
+ *
236
+ * Request path: /api/company/widgetworks/user/johndoe
237
+ * Translated:
238
+ * https://example.cloudfunctions.net/getUser?cid=widgetworks&uid=johndoe
239
+ *
240
+ * Request path: /api/company/widgetworks/user/johndoe?timezone=EST
241
+ * Translated:
242
+ * https://example.cloudfunctions.net/getUser?timezone=EST&cid=widgetworks&uid=johndoe
243
+ *
244
+ * @generated from enum value: CONSTANT_ADDRESS = 1;
245
+ */
246
+ CONSTANT_ADDRESS = 1,
247
+
248
+ /**
249
+ * The request path will be appended to the backend address.
250
+ *
251
+ * # Examples
252
+ *
253
+ * Given the following operation config:
254
+ *
255
+ * Method path: /api/company/{cid}/user/{uid}
256
+ * Backend address: https://example.appspot.com
257
+ *
258
+ * Requests to the following request paths will call the backend at the
259
+ * translated path:
260
+ *
261
+ * Request path: /api/company/widgetworks/user/johndoe
262
+ * Translated:
263
+ * https://example.appspot.com/api/company/widgetworks/user/johndoe
264
+ *
265
+ * Request path: /api/company/widgetworks/user/johndoe?timezone=EST
266
+ * Translated:
267
+ * https://example.appspot.com/api/company/widgetworks/user/johndoe?timezone=EST
268
+ *
269
+ * @generated from enum value: APPEND_PATH_TO_ADDRESS = 2;
270
+ */
271
+ APPEND_PATH_TO_ADDRESS = 2,
272
+ }
273
+
274
+ /**
275
+ * Describes the enum google.api.BackendRule.PathTranslation.
276
+ */
277
+ export declare const BackendRule_PathTranslationSchema: GenEnum<BackendRule_PathTranslation>;
278
+
@@ -0,0 +1,60 @@
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
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=js+dts,import_extension=js"
16
+ // @generated from file google/api/backend.proto (package google.api, syntax proto3)
17
+ /* eslint-disable */
18
+
19
+ import { enumDesc, fileDesc, messageDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
20
+
21
+ /**
22
+ * Describes the file google/api/backend.proto.
23
+ */
24
+ export const file_google_api_backend = /*@__PURE__*/
25
+ fileDesc("Chhnb29nbGUvYXBpL2JhY2tlbmQucHJvdG8SCmdvb2dsZS5hcGkiMQoHQmFja2VuZBImCgVydWxlcxgBIAMoCzIXLmdvb2dsZS5hcGkuQmFja2VuZFJ1bGUisgQKC0JhY2tlbmRSdWxlEhAKCHNlbGVjdG9yGAEgASgJEg8KB2FkZHJlc3MYAiABKAkSEAoIZGVhZGxpbmUYAyABKAESGAoMbWluX2RlYWRsaW5lGAQgASgBQgIYARIaChJvcGVyYXRpb25fZGVhZGxpbmUYBSABKAESQQoQcGF0aF90cmFuc2xhdGlvbhgGIAEoDjInLmdvb2dsZS5hcGkuQmFja2VuZFJ1bGUuUGF0aFRyYW5zbGF0aW9uEhYKDGp3dF9hdWRpZW5jZRgHIAEoCUgAEhYKDGRpc2FibGVfYXV0aBgIIAEoCEgAEhAKCHByb3RvY29sGAkgASgJEl4KHW92ZXJyaWRlc19ieV9yZXF1ZXN0X3Byb3RvY29sGAogAygLMjcuZ29vZ2xlLmFwaS5CYWNrZW5kUnVsZS5PdmVycmlkZXNCeVJlcXVlc3RQcm90b2NvbEVudHJ5GloKH092ZXJyaWRlc0J5UmVxdWVzdFByb3RvY29sRW50cnkSCwoDa2V5GAEgASgJEiYKBXZhbHVlGAIgASgLMhcuZ29vZ2xlLmFwaS5CYWNrZW5kUnVsZToCOAEiZQoPUGF0aFRyYW5zbGF0aW9uEiAKHFBBVEhfVFJBTlNMQVRJT05fVU5TUEVDSUZJRUQQABIUChBDT05TVEFOVF9BRERSRVNTEAESGgoWQVBQRU5EX1BBVEhfVE9fQUREUkVTUxACQhAKDmF1dGhlbnRpY2F0aW9uQm4KDmNvbS5nb29nbGUuYXBpQgxCYWNrZW5kUHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hcGkvc2VydmljZWNvbmZpZztzZXJ2aWNlY29uZmlnogIER0FQSWIGcHJvdG8z");
26
+
27
+ /**
28
+ * Describes the message google.api.Backend.
29
+ * Use `create(BackendSchema)` to create a new message.
30
+ */
31
+ export const BackendSchema = /*@__PURE__*/
32
+ messageDesc(file_google_api_backend, 0);
33
+
34
+ /**
35
+ * Describes the message google.api.BackendRule.
36
+ * Use `create(BackendRuleSchema)` to create a new message.
37
+ */
38
+ export const BackendRuleSchema = /*@__PURE__*/
39
+ messageDesc(file_google_api_backend, 1);
40
+
41
+ /**
42
+ * Describes the enum google.api.BackendRule.PathTranslation.
43
+ */
44
+ export const BackendRule_PathTranslationSchema = /*@__PURE__*/
45
+ enumDesc(file_google_api_backend, 1, 0);
46
+
47
+ /**
48
+ * Path Translation specifies how to combine the backend address with the
49
+ * request path in order to produce the appropriate forwarding URL for the
50
+ * request.
51
+ *
52
+ * Path Translation is applicable only to HTTP-based backends. Backends which
53
+ * do not accept requests over HTTP/HTTPS should leave `path_translation`
54
+ * unspecified.
55
+ *
56
+ * @generated from enum google.api.BackendRule.PathTranslation
57
+ */
58
+ export const BackendRule_PathTranslation = /*@__PURE__*/
59
+ tsEnum(BackendRule_PathTranslationSchema);
60
+
@@ -0,0 +1,112 @@
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
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=js+dts,import_extension=js"
16
+ // @generated from file google/api/billing.proto (package google.api, syntax proto3)
17
+ /* eslint-disable */
18
+
19
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
20
+ import type { Message } from "@bufbuild/protobuf";
21
+
22
+ /**
23
+ * Describes the file google/api/billing.proto.
24
+ */
25
+ export declare const file_google_api_billing: GenFile;
26
+
27
+ /**
28
+ * Billing related configuration of the service.
29
+ *
30
+ * The following example shows how to configure monitored resources and metrics
31
+ * for billing, `consumer_destinations` is the only supported destination and
32
+ * the monitored resources need at least one label key
33
+ * `cloud.googleapis.com/location` to indicate the location of the billing
34
+ * usage, using different monitored resources between monitoring and billing is
35
+ * recommended so they can be evolved independently:
36
+ *
37
+ *
38
+ * monitored_resources:
39
+ * - type: library.googleapis.com/billing_branch
40
+ * labels:
41
+ * - key: cloud.googleapis.com/location
42
+ * description: |
43
+ * Predefined label to support billing location restriction.
44
+ * - key: city
45
+ * description: |
46
+ * Custom label to define the city where the library branch is located
47
+ * in.
48
+ * - key: name
49
+ * description: Custom label to define the name of the library branch.
50
+ * metrics:
51
+ * - name: library.googleapis.com/book/borrowed_count
52
+ * metric_kind: DELTA
53
+ * value_type: INT64
54
+ * unit: "1"
55
+ * billing:
56
+ * consumer_destinations:
57
+ * - monitored_resource: library.googleapis.com/billing_branch
58
+ * metrics:
59
+ * - library.googleapis.com/book/borrowed_count
60
+ *
61
+ * @generated from message google.api.Billing
62
+ */
63
+ export declare type Billing = Message<"google.api.Billing"> & {
64
+ /**
65
+ * Billing configurations for sending metrics to the consumer project.
66
+ * There can be multiple consumer destinations per service, each one must have
67
+ * a different monitored resource type. A metric can be used in at most
68
+ * one consumer destination.
69
+ *
70
+ * @generated from field: repeated google.api.Billing.BillingDestination consumer_destinations = 8;
71
+ */
72
+ consumerDestinations: Billing_BillingDestination[];
73
+ };
74
+
75
+ /**
76
+ * Describes the message google.api.Billing.
77
+ * Use `create(BillingSchema)` to create a new message.
78
+ */
79
+ export declare const BillingSchema: GenMessage<Billing>;
80
+
81
+ /**
82
+ * Configuration of a specific billing destination (Currently only support
83
+ * bill against consumer project).
84
+ *
85
+ * @generated from message google.api.Billing.BillingDestination
86
+ */
87
+ export declare type Billing_BillingDestination = Message<"google.api.Billing.BillingDestination"> & {
88
+ /**
89
+ * The monitored resource type. The type must be defined in
90
+ * [Service.monitored_resources][google.api.Service.monitored_resources]
91
+ * section.
92
+ *
93
+ * @generated from field: string monitored_resource = 1;
94
+ */
95
+ monitoredResource: string;
96
+
97
+ /**
98
+ * Names of the metrics to report to this billing destination.
99
+ * Each name must be defined in
100
+ * [Service.metrics][google.api.Service.metrics] section.
101
+ *
102
+ * @generated from field: repeated string metrics = 2;
103
+ */
104
+ metrics: string[];
105
+ };
106
+
107
+ /**
108
+ * Describes the message google.api.Billing.BillingDestination.
109
+ * Use `create(Billing_BillingDestinationSchema)` to create a new message.
110
+ */
111
+ export declare const Billing_BillingDestinationSchema: GenMessage<Billing_BillingDestination>;
112
+
@@ -0,0 +1,40 @@
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
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=js+dts,import_extension=js"
16
+ // @generated from file google/api/billing.proto (package google.api, syntax proto3)
17
+ /* eslint-disable */
18
+
19
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
20
+
21
+ /**
22
+ * Describes the file google/api/billing.proto.
23
+ */
24
+ export const file_google_api_billing = /*@__PURE__*/
25
+ fileDesc("Chhnb29nbGUvYXBpL2JpbGxpbmcucHJvdG8SCmdvb2dsZS5hcGkikwEKB0JpbGxpbmcSRQoVY29uc3VtZXJfZGVzdGluYXRpb25zGAggAygLMiYuZ29vZ2xlLmFwaS5CaWxsaW5nLkJpbGxpbmdEZXN0aW5hdGlvbhpBChJCaWxsaW5nRGVzdGluYXRpb24SGgoSbW9uaXRvcmVkX3Jlc291cmNlGAEgASgJEg8KB21ldHJpY3MYAiADKAlCbgoOY29tLmdvb2dsZS5hcGlCDEJpbGxpbmdQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2FwaS9zZXJ2aWNlY29uZmlnO3NlcnZpY2Vjb25maWeiAgRHQVBJYgZwcm90bzM");
26
+
27
+ /**
28
+ * Describes the message google.api.Billing.
29
+ * Use `create(BillingSchema)` to create a new message.
30
+ */
31
+ export const BillingSchema = /*@__PURE__*/
32
+ messageDesc(file_google_api_billing, 0);
33
+
34
+ /**
35
+ * Describes the message google.api.Billing.BillingDestination.
36
+ * Use `create(Billing_BillingDestinationSchema)` to create a new message.
37
+ */
38
+ export const Billing_BillingDestinationSchema = /*@__PURE__*/
39
+ messageDesc(file_google_api_billing, 0, 0);
40
+