@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,200 @@
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/monitored_resource.proto (package google.api, syntax proto3)
17
+ /* eslint-disable */
18
+
19
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
20
+ import type { JsonObject, Message } from "@bufbuild/protobuf";
21
+ import type { LabelDescriptor } from "./label_pb.js";
22
+ import type { LaunchStage } from "./launch_stage_pb.js";
23
+
24
+ /**
25
+ * Describes the file google/api/monitored_resource.proto.
26
+ */
27
+ export declare const file_google_api_monitored_resource: GenFile;
28
+
29
+ /**
30
+ * An object that describes the schema of a
31
+ * [MonitoredResource][google.api.MonitoredResource] object using a type name
32
+ * and a set of labels. For example, the monitored resource descriptor for
33
+ * Google Compute Engine VM instances has a type of
34
+ * `"gce_instance"` and specifies the use of the labels `"instance_id"` and
35
+ * `"zone"` to identify particular VM instances.
36
+ *
37
+ * Different APIs can support different monitored resource types. APIs generally
38
+ * provide a `list` method that returns the monitored resource descriptors used
39
+ * by the API.
40
+ *
41
+ *
42
+ * @generated from message google.api.MonitoredResourceDescriptor
43
+ */
44
+ export declare type MonitoredResourceDescriptor = Message<"google.api.MonitoredResourceDescriptor"> & {
45
+ /**
46
+ * Optional. The resource name of the monitored resource descriptor:
47
+ * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where
48
+ * {type} is the value of the `type` field in this object and
49
+ * {project_id} is a project ID that provides API-specific context for
50
+ * accessing the type. APIs that do not use project information can use the
51
+ * resource name format `"monitoredResourceDescriptors/{type}"`.
52
+ *
53
+ * @generated from field: string name = 5;
54
+ */
55
+ name: string;
56
+
57
+ /**
58
+ * Required. The monitored resource type. For example, the type
59
+ * `"cloudsql_database"` represents databases in Google Cloud SQL.
60
+ * For a list of types, see [Monitored resource
61
+ * types](https://cloud.google.com/monitoring/api/resources)
62
+ * and [Logging resource
63
+ * types](https://cloud.google.com/logging/docs/api/v2/resource-list).
64
+ *
65
+ * @generated from field: string type = 1;
66
+ */
67
+ type: string;
68
+
69
+ /**
70
+ * Optional. A concise name for the monitored resource type that might be
71
+ * displayed in user interfaces. It should be a Title Cased Noun Phrase,
72
+ * without any article or other determiners. For example,
73
+ * `"Google Cloud SQL Database"`.
74
+ *
75
+ * @generated from field: string display_name = 2;
76
+ */
77
+ displayName: string;
78
+
79
+ /**
80
+ * Optional. A detailed description of the monitored resource type that might
81
+ * be used in documentation.
82
+ *
83
+ * @generated from field: string description = 3;
84
+ */
85
+ description: string;
86
+
87
+ /**
88
+ * Required. A set of labels used to describe instances of this monitored
89
+ * resource type. For example, an individual Google Cloud SQL database is
90
+ * identified by values for the labels `"database_id"` and `"zone"`.
91
+ *
92
+ * @generated from field: repeated google.api.LabelDescriptor labels = 4;
93
+ */
94
+ labels: LabelDescriptor[];
95
+
96
+ /**
97
+ * Optional. The launch stage of the monitored resource definition.
98
+ *
99
+ * @generated from field: google.api.LaunchStage launch_stage = 7;
100
+ */
101
+ launchStage: LaunchStage;
102
+ };
103
+
104
+ /**
105
+ * Describes the message google.api.MonitoredResourceDescriptor.
106
+ * Use `create(MonitoredResourceDescriptorSchema)` to create a new message.
107
+ */
108
+ export declare const MonitoredResourceDescriptorSchema: GenMessage<MonitoredResourceDescriptor>;
109
+
110
+ /**
111
+ * An object representing a resource that can be used for monitoring, logging,
112
+ * billing, or other purposes. Examples include virtual machine instances,
113
+ * databases, and storage devices such as disks. The `type` field identifies a
114
+ * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object
115
+ * that describes the resource's schema. Information in the `labels` field
116
+ * identifies the actual resource and its attributes according to the schema.
117
+ * For example, a particular Compute Engine VM instance could be represented by
118
+ * the following object, because the
119
+ * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] for
120
+ * `"gce_instance"` has labels
121
+ * `"project_id"`, `"instance_id"` and `"zone"`:
122
+ *
123
+ * { "type": "gce_instance",
124
+ * "labels": { "project_id": "my-project",
125
+ * "instance_id": "12345678901234",
126
+ * "zone": "us-central1-a" }}
127
+ *
128
+ * @generated from message google.api.MonitoredResource
129
+ */
130
+ export declare type MonitoredResource = Message<"google.api.MonitoredResource"> & {
131
+ /**
132
+ * Required. The monitored resource type. This field must match
133
+ * the `type` field of a
134
+ * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor]
135
+ * object. For example, the type of a Compute Engine VM instance is
136
+ * `gce_instance`. Some descriptors include the service name in the type; for
137
+ * example, the type of a Datastream stream is
138
+ * `datastream.googleapis.com/Stream`.
139
+ *
140
+ * @generated from field: string type = 1;
141
+ */
142
+ type: string;
143
+
144
+ /**
145
+ * Required. Values for all of the labels listed in the associated monitored
146
+ * resource descriptor. For example, Compute Engine VM instances use the
147
+ * labels `"project_id"`, `"instance_id"`, and `"zone"`.
148
+ *
149
+ * @generated from field: map<string, string> labels = 2;
150
+ */
151
+ labels: { [key: string]: string };
152
+ };
153
+
154
+ /**
155
+ * Describes the message google.api.MonitoredResource.
156
+ * Use `create(MonitoredResourceSchema)` to create a new message.
157
+ */
158
+ export declare const MonitoredResourceSchema: GenMessage<MonitoredResource>;
159
+
160
+ /**
161
+ * Auxiliary metadata for a [MonitoredResource][google.api.MonitoredResource]
162
+ * object. [MonitoredResource][google.api.MonitoredResource] objects contain the
163
+ * minimum set of information to uniquely identify a monitored resource
164
+ * instance. There is some other useful auxiliary metadata. Monitoring and
165
+ * Logging use an ingestion pipeline to extract metadata for cloud resources of
166
+ * all types, and store the metadata in this message.
167
+ *
168
+ * @generated from message google.api.MonitoredResourceMetadata
169
+ */
170
+ export declare type MonitoredResourceMetadata = Message<"google.api.MonitoredResourceMetadata"> & {
171
+ /**
172
+ * Output only. Values for predefined system metadata labels.
173
+ * System labels are a kind of metadata extracted by Google, including
174
+ * "machine_image", "vpc", "subnet_id",
175
+ * "security_group", "name", etc.
176
+ * System label values can be only strings, Boolean values, or a list of
177
+ * strings. For example:
178
+ *
179
+ * { "name": "my-test-instance",
180
+ * "security_group": ["a", "b", "c"],
181
+ * "spot_instance": false }
182
+ *
183
+ * @generated from field: google.protobuf.Struct system_labels = 1;
184
+ */
185
+ systemLabels?: JsonObject;
186
+
187
+ /**
188
+ * Output only. A map of user-defined metadata labels.
189
+ *
190
+ * @generated from field: map<string, string> user_labels = 2;
191
+ */
192
+ userLabels: { [key: string]: string };
193
+ };
194
+
195
+ /**
196
+ * Describes the message google.api.MonitoredResourceMetadata.
197
+ * Use `create(MonitoredResourceMetadataSchema)` to create a new message.
198
+ */
199
+ export declare const MonitoredResourceMetadataSchema: GenMessage<MonitoredResourceMetadata>;
200
+
@@ -0,0 +1,50 @@
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/monitored_resource.proto (package google.api, syntax proto3)
17
+ /* eslint-disable */
18
+
19
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
20
+ import { file_google_api_label } from "./label_pb.js";
21
+ import { file_google_api_launch_stage } from "./launch_stage_pb.js";
22
+ import { file_google_protobuf_struct } from "@bufbuild/protobuf/wkt";
23
+
24
+ /**
25
+ * Describes the file google/api/monitored_resource.proto.
26
+ */
27
+ export const file_google_api_monitored_resource = /*@__PURE__*/
28
+ fileDesc("CiNnb29nbGUvYXBpL21vbml0b3JlZF9yZXNvdXJjZS5wcm90bxIKZ29vZ2xlLmFwaSLAAQobTW9uaXRvcmVkUmVzb3VyY2VEZXNjcmlwdG9yEgwKBG5hbWUYBSABKAkSDAoEdHlwZRgBIAEoCRIUCgxkaXNwbGF5X25hbWUYAiABKAkSEwoLZGVzY3JpcHRpb24YAyABKAkSKwoGbGFiZWxzGAQgAygLMhsuZ29vZ2xlLmFwaS5MYWJlbERlc2NyaXB0b3ISLQoMbGF1bmNoX3N0YWdlGAcgASgOMhcuZ29vZ2xlLmFwaS5MYXVuY2hTdGFnZSKLAQoRTW9uaXRvcmVkUmVzb3VyY2USDAoEdHlwZRgBIAEoCRI5CgZsYWJlbHMYAiADKAsyKS5nb29nbGUuYXBpLk1vbml0b3JlZFJlc291cmNlLkxhYmVsc0VudHJ5Gi0KC0xhYmVsc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiygEKGU1vbml0b3JlZFJlc291cmNlTWV0YWRhdGESLgoNc3lzdGVtX2xhYmVscxgBIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3QSSgoLdXNlcl9sYWJlbHMYAiADKAsyNS5nb29nbGUuYXBpLk1vbml0b3JlZFJlc291cmNlTWV0YWRhdGEuVXNlckxhYmVsc0VudHJ5GjEKD1VzZXJMYWJlbHNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBQnkKDmNvbS5nb29nbGUuYXBpQhZNb25pdG9yZWRSZXNvdXJjZVByb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYXBpL21vbml0b3JlZHJlczttb25pdG9yZWRyZXP4AQGiAgRHQVBJYgZwcm90bzM", [file_google_api_label, file_google_api_launch_stage, file_google_protobuf_struct]);
29
+
30
+ /**
31
+ * Describes the message google.api.MonitoredResourceDescriptor.
32
+ * Use `create(MonitoredResourceDescriptorSchema)` to create a new message.
33
+ */
34
+ export const MonitoredResourceDescriptorSchema = /*@__PURE__*/
35
+ messageDesc(file_google_api_monitored_resource, 0);
36
+
37
+ /**
38
+ * Describes the message google.api.MonitoredResource.
39
+ * Use `create(MonitoredResourceSchema)` to create a new message.
40
+ */
41
+ export const MonitoredResourceSchema = /*@__PURE__*/
42
+ messageDesc(file_google_api_monitored_resource, 1);
43
+
44
+ /**
45
+ * Describes the message google.api.MonitoredResourceMetadata.
46
+ * Use `create(MonitoredResourceMetadataSchema)` to create a new message.
47
+ */
48
+ export const MonitoredResourceMetadataSchema = /*@__PURE__*/
49
+ messageDesc(file_google_api_monitored_resource, 2);
50
+
@@ -0,0 +1,146 @@
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/monitoring.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/monitoring.proto.
24
+ */
25
+ export declare const file_google_api_monitoring: GenFile;
26
+
27
+ /**
28
+ * Monitoring configuration of the service.
29
+ *
30
+ * The example below shows how to configure monitored resources and metrics
31
+ * for monitoring. In the example, a monitored resource and two metrics are
32
+ * defined. The `library.googleapis.com/book/returned_count` metric is sent
33
+ * to both producer and consumer projects, whereas the
34
+ * `library.googleapis.com/book/num_overdue` metric is only sent to the
35
+ * consumer project.
36
+ *
37
+ * monitored_resources:
38
+ * - type: library.googleapis.com/Branch
39
+ * display_name: "Library Branch"
40
+ * description: "A branch of a library."
41
+ * launch_stage: GA
42
+ * labels:
43
+ * - key: resource_container
44
+ * description: "The Cloud container (ie. project id) for the Branch."
45
+ * - key: location
46
+ * description: "The location of the library branch."
47
+ * - key: branch_id
48
+ * description: "The id of the branch."
49
+ * metrics:
50
+ * - name: library.googleapis.com/book/returned_count
51
+ * display_name: "Books Returned"
52
+ * description: "The count of books that have been returned."
53
+ * launch_stage: GA
54
+ * metric_kind: DELTA
55
+ * value_type: INT64
56
+ * unit: "1"
57
+ * labels:
58
+ * - key: customer_id
59
+ * description: "The id of the customer."
60
+ * - name: library.googleapis.com/book/num_overdue
61
+ * display_name: "Books Overdue"
62
+ * description: "The current number of overdue books."
63
+ * launch_stage: GA
64
+ * metric_kind: GAUGE
65
+ * value_type: INT64
66
+ * unit: "1"
67
+ * labels:
68
+ * - key: customer_id
69
+ * description: "The id of the customer."
70
+ * monitoring:
71
+ * producer_destinations:
72
+ * - monitored_resource: library.googleapis.com/Branch
73
+ * metrics:
74
+ * - library.googleapis.com/book/returned_count
75
+ * consumer_destinations:
76
+ * - monitored_resource: library.googleapis.com/Branch
77
+ * metrics:
78
+ * - library.googleapis.com/book/returned_count
79
+ * - library.googleapis.com/book/num_overdue
80
+ *
81
+ * @generated from message google.api.Monitoring
82
+ */
83
+ export declare type Monitoring = Message<"google.api.Monitoring"> & {
84
+ /**
85
+ * Monitoring configurations for sending metrics to the producer project.
86
+ * There can be multiple producer destinations. A monitored resource type may
87
+ * appear in multiple monitoring destinations if different aggregations are
88
+ * needed for different sets of metrics associated with that monitored
89
+ * resource type. A monitored resource and metric pair may only be used once
90
+ * in the Monitoring configuration.
91
+ *
92
+ * @generated from field: repeated google.api.Monitoring.MonitoringDestination producer_destinations = 1;
93
+ */
94
+ producerDestinations: Monitoring_MonitoringDestination[];
95
+
96
+ /**
97
+ * Monitoring configurations for sending metrics to the consumer project.
98
+ * There can be multiple consumer destinations. A monitored resource type may
99
+ * appear in multiple monitoring destinations if different aggregations are
100
+ * needed for different sets of metrics associated with that monitored
101
+ * resource type. A monitored resource and metric pair may only be used once
102
+ * in the Monitoring configuration.
103
+ *
104
+ * @generated from field: repeated google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
105
+ */
106
+ consumerDestinations: Monitoring_MonitoringDestination[];
107
+ };
108
+
109
+ /**
110
+ * Describes the message google.api.Monitoring.
111
+ * Use `create(MonitoringSchema)` to create a new message.
112
+ */
113
+ export declare const MonitoringSchema: GenMessage<Monitoring>;
114
+
115
+ /**
116
+ * Configuration of a specific monitoring destination (the producer project
117
+ * or the consumer project).
118
+ *
119
+ * @generated from message google.api.Monitoring.MonitoringDestination
120
+ */
121
+ export declare type Monitoring_MonitoringDestination = Message<"google.api.Monitoring.MonitoringDestination"> & {
122
+ /**
123
+ * The monitored resource type. The type must be defined in
124
+ * [Service.monitored_resources][google.api.Service.monitored_resources]
125
+ * section.
126
+ *
127
+ * @generated from field: string monitored_resource = 1;
128
+ */
129
+ monitoredResource: string;
130
+
131
+ /**
132
+ * Types of the metrics to report to this monitoring destination.
133
+ * Each type must be defined in
134
+ * [Service.metrics][google.api.Service.metrics] section.
135
+ *
136
+ * @generated from field: repeated string metrics = 2;
137
+ */
138
+ metrics: string[];
139
+ };
140
+
141
+ /**
142
+ * Describes the message google.api.Monitoring.MonitoringDestination.
143
+ * Use `create(Monitoring_MonitoringDestinationSchema)` to create a new message.
144
+ */
145
+ export declare const Monitoring_MonitoringDestinationSchema: GenMessage<Monitoring_MonitoringDestination>;
146
+
@@ -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/monitoring.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/monitoring.proto.
23
+ */
24
+ export const file_google_api_monitoring = /*@__PURE__*/
25
+ fileDesc("Chtnb29nbGUvYXBpL21vbml0b3JpbmcucHJvdG8SCmdvb2dsZS5hcGki7AEKCk1vbml0b3JpbmcSSwoVcHJvZHVjZXJfZGVzdGluYXRpb25zGAEgAygLMiwuZ29vZ2xlLmFwaS5Nb25pdG9yaW5nLk1vbml0b3JpbmdEZXN0aW5hdGlvbhJLChVjb25zdW1lcl9kZXN0aW5hdGlvbnMYAiADKAsyLC5nb29nbGUuYXBpLk1vbml0b3JpbmcuTW9uaXRvcmluZ0Rlc3RpbmF0aW9uGkQKFU1vbml0b3JpbmdEZXN0aW5hdGlvbhIaChJtb25pdG9yZWRfcmVzb3VyY2UYASABKAkSDwoHbWV0cmljcxgCIAMoCUJxCg5jb20uZ29vZ2xlLmFwaUIPTW9uaXRvcmluZ1Byb3RvUAFaRWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYXBpL3NlcnZpY2Vjb25maWc7c2VydmljZWNvbmZpZ6ICBEdBUEliBnByb3RvMw");
26
+
27
+ /**
28
+ * Describes the message google.api.Monitoring.
29
+ * Use `create(MonitoringSchema)` to create a new message.
30
+ */
31
+ export const MonitoringSchema = /*@__PURE__*/
32
+ messageDesc(file_google_api_monitoring, 0);
33
+
34
+ /**
35
+ * Describes the message google.api.Monitoring.MonitoringDestination.
36
+ * Use `create(Monitoring_MonitoringDestinationSchema)` to create a new message.
37
+ */
38
+ export const Monitoring_MonitoringDestinationSchema = /*@__PURE__*/
39
+ messageDesc(file_google_api_monitoring, 0, 0);
40
+
@@ -0,0 +1,128 @@
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/policy.proto (package google.api, syntax proto3)
17
+ /* eslint-disable */
18
+
19
+ import type { GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
20
+ import type { Message } from "@bufbuild/protobuf";
21
+ import type { FieldOptions, MethodOptions } from "@bufbuild/protobuf/wkt";
22
+
23
+ /**
24
+ * Describes the file google/api/policy.proto.
25
+ */
26
+ export declare const file_google_api_policy: GenFile;
27
+
28
+ /**
29
+ * Google API Policy Annotation
30
+ *
31
+ * This message defines a simple API policy annotation that can be used to
32
+ * annotate API request and response message fields with applicable policies.
33
+ * One field may have multiple applicable policies that must all be satisfied
34
+ * before a request can be processed. This policy annotation is used to
35
+ * generate the overall policy that will be used for automatic runtime
36
+ * policy enforcement and documentation generation.
37
+ *
38
+ * @generated from message google.api.FieldPolicy
39
+ */
40
+ export declare type FieldPolicy = Message<"google.api.FieldPolicy"> & {
41
+ /**
42
+ * Selects one or more request or response message fields to apply this
43
+ * `FieldPolicy`.
44
+ *
45
+ * When a `FieldPolicy` is used in proto annotation, the selector must
46
+ * be left as empty. The service config generator will automatically fill
47
+ * the correct value.
48
+ *
49
+ * When a `FieldPolicy` is used in service config, the selector must be a
50
+ * comma-separated string with valid request or response field paths,
51
+ * such as "foo.bar" or "foo.bar,foo.baz".
52
+ *
53
+ * @generated from field: string selector = 1;
54
+ */
55
+ selector: string;
56
+
57
+ /**
58
+ * Specifies the required permission(s) for the resource referred to by the
59
+ * field. It requires the field contains a valid resource reference, and
60
+ * the request must pass the permission checks to proceed. For example,
61
+ * "resourcemanager.projects.get".
62
+ *
63
+ * @generated from field: string resource_permission = 2;
64
+ */
65
+ resourcePermission: string;
66
+
67
+ /**
68
+ * Specifies the resource type for the resource referred to by the field.
69
+ *
70
+ * @generated from field: string resource_type = 3;
71
+ */
72
+ resourceType: string;
73
+ };
74
+
75
+ /**
76
+ * Describes the message google.api.FieldPolicy.
77
+ * Use `create(FieldPolicySchema)` to create a new message.
78
+ */
79
+ export declare const FieldPolicySchema: GenMessage<FieldPolicy>;
80
+
81
+ /**
82
+ * Defines policies applying to an RPC method.
83
+ *
84
+ * @generated from message google.api.MethodPolicy
85
+ */
86
+ export declare type MethodPolicy = Message<"google.api.MethodPolicy"> & {
87
+ /**
88
+ * Selects a method to which these policies should be enforced, for example,
89
+ * "google.pubsub.v1.Subscriber.CreateSubscription".
90
+ *
91
+ * Refer to [selector][google.api.DocumentationRule.selector] for syntax
92
+ * details.
93
+ *
94
+ * NOTE: This field must not be set in the proto annotation. It will be
95
+ * automatically filled by the service config compiler .
96
+ *
97
+ * @generated from field: string selector = 9;
98
+ */
99
+ selector: string;
100
+
101
+ /**
102
+ * Policies that are applicable to the request message.
103
+ *
104
+ * @generated from field: repeated google.api.FieldPolicy request_policies = 2;
105
+ */
106
+ requestPolicies: FieldPolicy[];
107
+ };
108
+
109
+ /**
110
+ * Describes the message google.api.MethodPolicy.
111
+ * Use `create(MethodPolicySchema)` to create a new message.
112
+ */
113
+ export declare const MethodPolicySchema: GenMessage<MethodPolicy>;
114
+
115
+ /**
116
+ * See [FieldPolicy][].
117
+ *
118
+ * @generated from extension: google.api.FieldPolicy field_policy = 158361448;
119
+ */
120
+ export declare const field_policy: GenExtension<FieldOptions, FieldPolicy>;
121
+
122
+ /**
123
+ * See [MethodPolicy][].
124
+ *
125
+ * @generated from extension: google.api.MethodPolicy method_policy = 161893301;
126
+ */
127
+ export declare const method_policy: GenExtension<MethodOptions, MethodPolicy>;
128
+
@@ -0,0 +1,57 @@
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/policy.proto (package google.api, syntax proto3)
17
+ /* eslint-disable */
18
+
19
+ import { extDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
20
+ import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt";
21
+
22
+ /**
23
+ * Describes the file google/api/policy.proto.
24
+ */
25
+ export const file_google_api_policy = /*@__PURE__*/
26
+ fileDesc("Chdnb29nbGUvYXBpL3BvbGljeS5wcm90bxIKZ29vZ2xlLmFwaSJTCgtGaWVsZFBvbGljeRIQCghzZWxlY3RvchgBIAEoCRIbChNyZXNvdXJjZV9wZXJtaXNzaW9uGAIgASgJEhUKDXJlc291cmNlX3R5cGUYAyABKAkiUwoMTWV0aG9kUG9saWN5EhAKCHNlbGVjdG9yGAkgASgJEjEKEHJlcXVlc3RfcG9saWNpZXMYAiADKAsyFy5nb29nbGUuYXBpLkZpZWxkUG9saWN5OlwKDGZpZWxkX3BvbGljeRIdLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlvbnMY6M7BSyABKAsyFy5nb29nbGUuYXBpLkZpZWxkUG9saWN5UgtmaWVsZFBvbGljeTpgCg1tZXRob2RfcG9saWN5Eh4uZ29vZ2xlLnByb3RvYnVmLk1ldGhvZE9wdGlvbnMYtZeZTSABKAsyGC5nb29nbGUuYXBpLk1ldGhvZFBvbGljeVIMbWV0aG9kUG9saWN5QnAKDmNvbS5nb29nbGUuYXBpQgtQb2xpY3lQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2FwaS9zZXJ2aWNlY29uZmlnO3NlcnZpY2Vjb25maWf4AQGiAgRHQVBJYgZwcm90bzM", [file_google_protobuf_descriptor]);
27
+
28
+ /**
29
+ * Describes the message google.api.FieldPolicy.
30
+ * Use `create(FieldPolicySchema)` to create a new message.
31
+ */
32
+ export const FieldPolicySchema = /*@__PURE__*/
33
+ messageDesc(file_google_api_policy, 0);
34
+
35
+ /**
36
+ * Describes the message google.api.MethodPolicy.
37
+ * Use `create(MethodPolicySchema)` to create a new message.
38
+ */
39
+ export const MethodPolicySchema = /*@__PURE__*/
40
+ messageDesc(file_google_api_policy, 1);
41
+
42
+ /**
43
+ * See [FieldPolicy][].
44
+ *
45
+ * @generated from extension: google.api.FieldPolicy field_policy = 158361448;
46
+ */
47
+ export const field_policy = /*@__PURE__*/
48
+ extDesc(file_google_api_policy, 0);
49
+
50
+ /**
51
+ * See [MethodPolicy][].
52
+ *
53
+ * @generated from extension: google.api.MethodPolicy method_policy = 161893301;
54
+ */
55
+ export const method_policy = /*@__PURE__*/
56
+ extDesc(file_google_api_policy, 1);
57
+