| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis.monitoring.v3; | 3 library googleapis.monitoring.v3; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 /** | 70 /** |
| 71 * Stackdriver Monitoring Agent only: Creates a new time series.<aside | 71 * Stackdriver Monitoring Agent only: Creates a new time series.<aside |
| 72 * class="caution">This method is only for use by the Stackdriver Monitoring | 72 * class="caution">This method is only for use by the Stackdriver Monitoring |
| 73 * Agent. Use projects.timeSeries.create instead.</aside> | 73 * Agent. Use projects.timeSeries.create instead.</aside> |
| 74 * | 74 * |
| 75 * [request] - The metadata request object. | 75 * [request] - The metadata request object. |
| 76 * | 76 * |
| 77 * Request parameters: | 77 * Request parameters: |
| 78 * | 78 * |
| 79 * [name] - The project in which to create the time series. The format is | 79 * [name] - The project in which to create the time series. The format is |
| 80 * "projects/PROJECT_ID_OR_NUMBER". | 80 * "projects/PROJECT_ID_OR_NUMBER". |
| 81 * Value must have pattern "^projects/[^/]+$". | 81 * Value must have pattern "^projects/[^/]+$". |
| 82 * | 82 * |
| 83 * Completes with a [Empty]. | 83 * Completes with a [Empty]. |
| 84 * | 84 * |
| 85 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 85 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 86 * error. | 86 * error. |
| 87 * | 87 * |
| 88 * If the used [http.Client] completes with an error when making a REST call, | 88 * If the used [http.Client] completes with an error when making a REST call, |
| 89 * this method will complete with the same error. | 89 * this method will complete with the same error. |
| 90 */ | 90 */ |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 _requester = client; | 127 _requester = client; |
| 128 | 128 |
| 129 /** | 129 /** |
| 130 * Creates a new group. | 130 * Creates a new group. |
| 131 * | 131 * |
| 132 * [request] - The metadata request object. | 132 * [request] - The metadata request object. |
| 133 * | 133 * |
| 134 * Request parameters: | 134 * Request parameters: |
| 135 * | 135 * |
| 136 * [name] - The project in which to create the group. The format is | 136 * [name] - The project in which to create the group. The format is |
| 137 * "projects/{project_id_or_number}". | 137 * "projects/{project_id_or_number}". |
| 138 * Value must have pattern "^projects/[^/]+$". | 138 * Value must have pattern "^projects/[^/]+$". |
| 139 * | 139 * |
| 140 * [validateOnly] - If true, validate this request but do not create the | 140 * [validateOnly] - If true, validate this request but do not create the |
| 141 * group. | 141 * group. |
| 142 * | 142 * |
| 143 * Completes with a [Group]. | 143 * Completes with a [Group]. |
| 144 * | 144 * |
| 145 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 145 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 146 * error. | 146 * error. |
| 147 * | 147 * |
| (...skipping 29 matching lines...) Expand all Loading... |
| 177 downloadOptions: _downloadOptions); | 177 downloadOptions: _downloadOptions); |
| 178 return _response.then((data) => new Group.fromJson(data)); | 178 return _response.then((data) => new Group.fromJson(data)); |
| 179 } | 179 } |
| 180 | 180 |
| 181 /** | 181 /** |
| 182 * Deletes an existing group. | 182 * Deletes an existing group. |
| 183 * | 183 * |
| 184 * Request parameters: | 184 * Request parameters: |
| 185 * | 185 * |
| 186 * [name] - The group to delete. The format is | 186 * [name] - The group to delete. The format is |
| 187 * "projects/{project_id_or_number}/groups/{group_id}". | 187 * "projects/{project_id_or_number}/groups/{group_id}". |
| 188 * Value must have pattern "^projects/[^/]+/groups/[^/]+$". | 188 * Value must have pattern "^projects/[^/]+/groups/[^/]+$". |
| 189 * | 189 * |
| 190 * Completes with a [Empty]. | 190 * Completes with a [Empty]. |
| 191 * | 191 * |
| 192 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 192 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 193 * error. | 193 * error. |
| 194 * | 194 * |
| 195 * If the used [http.Client] completes with an error when making a REST call, | 195 * If the used [http.Client] completes with an error when making a REST call, |
| 196 * this method will complete with the same error. | 196 * this method will complete with the same error. |
| 197 */ | 197 */ |
| (...skipping 20 matching lines...) Expand all Loading... |
| 218 downloadOptions: _downloadOptions); | 218 downloadOptions: _downloadOptions); |
| 219 return _response.then((data) => new Empty.fromJson(data)); | 219 return _response.then((data) => new Empty.fromJson(data)); |
| 220 } | 220 } |
| 221 | 221 |
| 222 /** | 222 /** |
| 223 * Gets a single group. | 223 * Gets a single group. |
| 224 * | 224 * |
| 225 * Request parameters: | 225 * Request parameters: |
| 226 * | 226 * |
| 227 * [name] - The group to retrieve. The format is | 227 * [name] - The group to retrieve. The format is |
| 228 * "projects/{project_id_or_number}/groups/{group_id}". | 228 * "projects/{project_id_or_number}/groups/{group_id}". |
| 229 * Value must have pattern "^projects/[^/]+/groups/[^/]+$". | 229 * Value must have pattern "^projects/[^/]+/groups/[^/]+$". |
| 230 * | 230 * |
| 231 * Completes with a [Group]. | 231 * Completes with a [Group]. |
| 232 * | 232 * |
| 233 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 233 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 234 * error. | 234 * error. |
| 235 * | 235 * |
| 236 * If the used [http.Client] completes with an error when making a REST call, | 236 * If the used [http.Client] completes with an error when making a REST call, |
| 237 * this method will complete with the same error. | 237 * this method will complete with the same error. |
| 238 */ | 238 */ |
| (...skipping 20 matching lines...) Expand all Loading... |
| 259 downloadOptions: _downloadOptions); | 259 downloadOptions: _downloadOptions); |
| 260 return _response.then((data) => new Group.fromJson(data)); | 260 return _response.then((data) => new Group.fromJson(data)); |
| 261 } | 261 } |
| 262 | 262 |
| 263 /** | 263 /** |
| 264 * Lists the existing groups. | 264 * Lists the existing groups. |
| 265 * | 265 * |
| 266 * Request parameters: | 266 * Request parameters: |
| 267 * | 267 * |
| 268 * [name] - The project whose groups are to be listed. The format is | 268 * [name] - The project whose groups are to be listed. The format is |
| 269 * "projects/{project_id_or_number}". | 269 * "projects/{project_id_or_number}". |
| 270 * Value must have pattern "^projects/[^/]+$". | 270 * Value must have pattern "^projects/[^/]+$". |
| 271 * | 271 * |
| 272 * [descendantsOfGroup] - A group name: | 272 * [descendantsOfGroup] - A group name: |
| 273 * "projects/{project_id_or_number}/groups/{group_id}". Returns the | 273 * "projects/{project_id_or_number}/groups/{group_id}". Returns the |
| 274 * descendants of the specified group. This is a superset of the results | 274 * descendants of the specified group. This is a superset of the results |
| 275 * returned by the childrenOfGroup filter, and includes children-of-children, | 275 * returned by the childrenOfGroup filter, and includes children-of-children, |
| 276 * and so forth. | 276 * and so forth. |
| 277 * | 277 * |
| 278 * [pageSize] - A positive number that is the maximum number of results to | 278 * [pageSize] - A positive number that is the maximum number of results to |
| 279 * return. | 279 * return. |
| 280 * | 280 * |
| 281 * [childrenOfGroup] - A group name: | 281 * [childrenOfGroup] - A group name: |
| 282 * "projects/{project_id_or_number}/groups/{group_id}". Returns | 282 * "projects/{project_id_or_number}/groups/{group_id}". Returns groups whose |
| 283 * groups whose parentName field contains the group name. If no groups have | 283 * parentName field contains the group name. If no groups have this parent, |
| 284 * this parent, the results are empty. | 284 * the results are empty. |
| 285 * | 285 * |
| 286 * [ancestorsOfGroup] - A group name: | 286 * [ancestorsOfGroup] - A group name: |
| 287 * "projects/{project_id_or_number}/groups/{group_id}". Returns | 287 * "projects/{project_id_or_number}/groups/{group_id}". Returns groups that |
| 288 * groups that are ancestors of the specified group. The groups are returned | 288 * are ancestors of the specified group. The groups are returned in order, |
| 289 * in order, starting with the immediate parent and ending with the most | 289 * starting with the immediate parent and ending with the most distant |
| 290 * distant ancestor. If the specified group has no immediate parent, the | 290 * ancestor. If the specified group has no immediate parent, the results are |
| 291 * results are empty. | 291 * empty. |
| 292 * | 292 * |
| 293 * [pageToken] - If this field is not empty then it must contain the | 293 * [pageToken] - If this field is not empty then it must contain the |
| 294 * nextPageToken value returned by a previous call to this method. Using this | 294 * nextPageToken value returned by a previous call to this method. Using this |
| 295 * field causes the method to return additional results from the previous | 295 * field causes the method to return additional results from the previous |
| 296 * method call. | 296 * method call. |
| 297 * | 297 * |
| 298 * Completes with a [ListGroupsResponse]. | 298 * Completes with a [ListGroupsResponse]. |
| 299 * | 299 * |
| 300 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 300 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 301 * error. | 301 * error. |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 } | 343 } |
| 344 | 344 |
| 345 /** | 345 /** |
| 346 * Updates an existing group. You can change any group attributes except name. | 346 * Updates an existing group. You can change any group attributes except name. |
| 347 * | 347 * |
| 348 * [request] - The metadata request object. | 348 * [request] - The metadata request object. |
| 349 * | 349 * |
| 350 * Request parameters: | 350 * Request parameters: |
| 351 * | 351 * |
| 352 * [name] - Output only. The name of this group. The format is | 352 * [name] - Output only. The name of this group. The format is |
| 353 * "projects/{project_id_or_number}/groups/{group_id}". When | 353 * "projects/{project_id_or_number}/groups/{group_id}". When creating a group, |
| 354 * creating a group, this field is ignored and a new name is created | 354 * this field is ignored and a new name is created consisting of the project |
| 355 * consisting of the project specified in the call to CreateGroup and a unique | 355 * specified in the call to CreateGroup and a unique {group_id} that is |
| 356 * {group_id} that is generated automatically. | 356 * generated automatically. |
| 357 * Value must have pattern "^projects/[^/]+/groups/[^/]+$". | 357 * Value must have pattern "^projects/[^/]+/groups/[^/]+$". |
| 358 * | 358 * |
| 359 * [validateOnly] - If true, validate this request but do not update the | 359 * [validateOnly] - If true, validate this request but do not update the |
| 360 * existing group. | 360 * existing group. |
| 361 * | 361 * |
| 362 * Completes with a [Group]. | 362 * Completes with a [Group]. |
| 363 * | 363 * |
| 364 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 364 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 365 * error. | 365 * error. |
| 366 * | 366 * |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 | 405 |
| 406 ProjectsGroupsMembersResourceApi(commons.ApiRequester client) : | 406 ProjectsGroupsMembersResourceApi(commons.ApiRequester client) : |
| 407 _requester = client; | 407 _requester = client; |
| 408 | 408 |
| 409 /** | 409 /** |
| 410 * Lists the monitored resources that are members of a group. | 410 * Lists the monitored resources that are members of a group. |
| 411 * | 411 * |
| 412 * Request parameters: | 412 * Request parameters: |
| 413 * | 413 * |
| 414 * [name] - The group whose members are listed. The format is | 414 * [name] - The group whose members are listed. The format is |
| 415 * "projects/{project_id_or_number}/groups/{group_id}". | 415 * "projects/{project_id_or_number}/groups/{group_id}". |
| 416 * Value must have pattern "^projects/[^/]+/groups/[^/]+$". | 416 * Value must have pattern "^projects/[^/]+/groups/[^/]+$". |
| 417 * | 417 * |
| 418 * [filter] - An optional list filter (/monitoring/api/learn_more#filtering) | 418 * [filter] - An optional list filter describing the members to be returned. |
| 419 * describing the members to be returned. The filter may reference the type, | 419 * The filter may reference the type, labels, and metadata of monitored |
| 420 * labels, and metadata of monitored resources that comprise the group. For | 420 * resources that comprise the group. For example, to return only resources |
| 421 * example, to return only resources representing Compute Engine VM instances, | 421 * representing Compute Engine VM instances, use this filter: |
| 422 * use this filter: | 422 * resource.type = "gce_instance" |
| 423 * resource.type = "gce_instance" | |
| 424 * | 423 * |
| 425 * [interval_endTime] - Required. The end of the time interval. | 424 * [interval_endTime] - Required. The end of the time interval. |
| 426 * | 425 * |
| 427 * [interval_startTime] - Optional. The beginning of the time interval. The | 426 * [interval_startTime] - Optional. The beginning of the time interval. The |
| 428 * default value for the start time is the end time. The start time must not | 427 * default value for the start time is the end time. The start time must not |
| 429 * be later than the end time. | 428 * be later than the end time. |
| 430 * | 429 * |
| 431 * [pageSize] - A positive number that is the maximum number of results to | 430 * [pageSize] - A positive number that is the maximum number of results to |
| 432 * return. | 431 * return. |
| 433 * | 432 * |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 | 486 |
| 488 | 487 |
| 489 class ProjectsMetricDescriptorsResourceApi { | 488 class ProjectsMetricDescriptorsResourceApi { |
| 490 final commons.ApiRequester _requester; | 489 final commons.ApiRequester _requester; |
| 491 | 490 |
| 492 ProjectsMetricDescriptorsResourceApi(commons.ApiRequester client) : | 491 ProjectsMetricDescriptorsResourceApi(commons.ApiRequester client) : |
| 493 _requester = client; | 492 _requester = client; |
| 494 | 493 |
| 495 /** | 494 /** |
| 496 * Creates a new metric descriptor. User-created metric descriptors define | 495 * Creates a new metric descriptor. User-created metric descriptors define |
| 497 * custom metrics (/monitoring/custom-metrics). | 496 * custom metrics. |
| 498 * | 497 * |
| 499 * [request] - The metadata request object. | 498 * [request] - The metadata request object. |
| 500 * | 499 * |
| 501 * Request parameters: | 500 * Request parameters: |
| 502 * | 501 * |
| 503 * [name] - The project on which to execute the request. The format is | 502 * [name] - The project on which to execute the request. The format is |
| 504 * "projects/{project_id_or_number}". | 503 * "projects/{project_id_or_number}". |
| 505 * Value must have pattern "^projects/[^/]+$". | 504 * Value must have pattern "^projects/[^/]+$". |
| 506 * | 505 * |
| 507 * Completes with a [MetricDescriptor]. | 506 * Completes with a [MetricDescriptor]. |
| 508 * | 507 * |
| 509 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 508 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 510 * error. | 509 * error. |
| 511 * | 510 * |
| 512 * If the used [http.Client] completes with an error when making a REST call, | 511 * If the used [http.Client] completes with an error when making a REST call, |
| 513 * this method will complete with the same error. | 512 * this method will complete with the same error. |
| 514 */ | 513 */ |
| (...skipping 18 matching lines...) Expand all Loading... |
| 533 "POST", | 532 "POST", |
| 534 body: _body, | 533 body: _body, |
| 535 queryParams: _queryParams, | 534 queryParams: _queryParams, |
| 536 uploadOptions: _uploadOptions, | 535 uploadOptions: _uploadOptions, |
| 537 uploadMedia: _uploadMedia, | 536 uploadMedia: _uploadMedia, |
| 538 downloadOptions: _downloadOptions); | 537 downloadOptions: _downloadOptions); |
| 539 return _response.then((data) => new MetricDescriptor.fromJson(data)); | 538 return _response.then((data) => new MetricDescriptor.fromJson(data)); |
| 540 } | 539 } |
| 541 | 540 |
| 542 /** | 541 /** |
| 543 * Deletes a metric descriptor. Only user-created custom metrics | 542 * Deletes a metric descriptor. Only user-created custom metrics can be |
| 544 * (/monitoring/custom-metrics) can be deleted. | 543 * deleted. |
| 545 * | 544 * |
| 546 * Request parameters: | 545 * Request parameters: |
| 547 * | 546 * |
| 548 * [name] - The metric descriptor on which to execute the request. The format | 547 * [name] - The metric descriptor on which to execute the request. The format |
| 549 * is | 548 * is "projects/{project_id_or_number}/metricDescriptors/{metric_id}". An |
| 550 * "projects/{project_id_or_number}/metricDescriptors/{metric_id}". | 549 * example of {metric_id} is: "custom.googleapis.com/my_test_metric". |
| 551 * An example of {metric_id} is: | |
| 552 * "custom.googleapis.com/my_test_metric". | |
| 553 * Value must have pattern "^projects/[^/]+/metricDescriptors/.+$". | 550 * Value must have pattern "^projects/[^/]+/metricDescriptors/.+$". |
| 554 * | 551 * |
| 555 * Completes with a [Empty]. | 552 * Completes with a [Empty]. |
| 556 * | 553 * |
| 557 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 554 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 558 * error. | 555 * error. |
| 559 * | 556 * |
| 560 * If the used [http.Client] completes with an error when making a REST call, | 557 * If the used [http.Client] completes with an error when making a REST call, |
| 561 * this method will complete with the same error. | 558 * this method will complete with the same error. |
| 562 */ | 559 */ |
| (...skipping 21 matching lines...) Expand all Loading... |
| 584 return _response.then((data) => new Empty.fromJson(data)); | 581 return _response.then((data) => new Empty.fromJson(data)); |
| 585 } | 582 } |
| 586 | 583 |
| 587 /** | 584 /** |
| 588 * Gets a single metric descriptor. This method does not require a Stackdriver | 585 * Gets a single metric descriptor. This method does not require a Stackdriver |
| 589 * account. | 586 * account. |
| 590 * | 587 * |
| 591 * Request parameters: | 588 * Request parameters: |
| 592 * | 589 * |
| 593 * [name] - The metric descriptor on which to execute the request. The format | 590 * [name] - The metric descriptor on which to execute the request. The format |
| 594 * is | 591 * is "projects/{project_id_or_number}/metricDescriptors/{metric_id}". An |
| 595 * "projects/{project_id_or_number}/metricDescriptors/{metric_id}". | 592 * example value of {metric_id} is |
| 596 * An example value of {metric_id} is | 593 * "compute.googleapis.com/instance/disk/read_bytes_count". |
| 597 * "compute.googleapis.com/instance/disk/read_bytes_count". | |
| 598 * Value must have pattern "^projects/[^/]+/metricDescriptors/.+$". | 594 * Value must have pattern "^projects/[^/]+/metricDescriptors/.+$". |
| 599 * | 595 * |
| 600 * Completes with a [MetricDescriptor]. | 596 * Completes with a [MetricDescriptor]. |
| 601 * | 597 * |
| 602 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 598 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 603 * error. | 599 * error. |
| 604 * | 600 * |
| 605 * If the used [http.Client] completes with an error when making a REST call, | 601 * If the used [http.Client] completes with an error when making a REST call, |
| 606 * this method will complete with the same error. | 602 * this method will complete with the same error. |
| 607 */ | 603 */ |
| (...skipping 21 matching lines...) Expand all Loading... |
| 629 return _response.then((data) => new MetricDescriptor.fromJson(data)); | 625 return _response.then((data) => new MetricDescriptor.fromJson(data)); |
| 630 } | 626 } |
| 631 | 627 |
| 632 /** | 628 /** |
| 633 * Lists metric descriptors that match a filter. This method does not require | 629 * Lists metric descriptors that match a filter. This method does not require |
| 634 * a Stackdriver account. | 630 * a Stackdriver account. |
| 635 * | 631 * |
| 636 * Request parameters: | 632 * Request parameters: |
| 637 * | 633 * |
| 638 * [name] - The project on which to execute the request. The format is | 634 * [name] - The project on which to execute the request. The format is |
| 639 * "projects/{project_id_or_number}". | 635 * "projects/{project_id_or_number}". |
| 640 * Value must have pattern "^projects/[^/]+$". | 636 * Value must have pattern "^projects/[^/]+$". |
| 641 * | 637 * |
| 642 * [pageSize] - A positive number that is the maximum number of results to | 638 * [pageSize] - A positive number that is the maximum number of results to |
| 643 * return. | 639 * return. |
| 644 * | 640 * |
| 645 * [filter] - If this field is empty, all custom and system-defined metric | 641 * [filter] - If this field is empty, all custom and system-defined metric |
| 646 * descriptors are returned. Otherwise, the filter | 642 * descriptors are returned. Otherwise, the filter specifies which metric |
| 647 * (/monitoring/api/v3/filters) specifies which metric descriptors are to be | 643 * descriptors are to be returned. For example, the following filter matches |
| 648 * returned. For example, the following filter matches all custom metrics | 644 * all custom metrics: |
| 649 * (/monitoring/custom-metrics): | 645 * metric.type = starts_with("custom.googleapis.com/") |
| 650 * metric.type = starts_with("custom.googleapis.com/") | |
| 651 * | 646 * |
| 652 * [pageToken] - If this field is not empty then it must contain the | 647 * [pageToken] - If this field is not empty then it must contain the |
| 653 * nextPageToken value returned by a previous call to this method. Using this | 648 * nextPageToken value returned by a previous call to this method. Using this |
| 654 * field causes the method to return additional results from the previous | 649 * field causes the method to return additional results from the previous |
| 655 * method call. | 650 * method call. |
| 656 * | 651 * |
| 657 * Completes with a [ListMetricDescriptorsResponse]. | 652 * Completes with a [ListMetricDescriptorsResponse]. |
| 658 * | 653 * |
| 659 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 654 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 660 * error. | 655 * error. |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 ProjectsMonitoredResourceDescriptorsResourceApi(commons.ApiRequester client) :
| 699 ProjectsMonitoredResourceDescriptorsResourceApi(commons.ApiRequester client) :
|
| 705 _requester = client; | 700 _requester = client; |
| 706 | 701 |
| 707 /** | 702 /** |
| 708 * Gets a single monitored resource descriptor. This method does not require a | 703 * Gets a single monitored resource descriptor. This method does not require a |
| 709 * Stackdriver account. | 704 * Stackdriver account. |
| 710 * | 705 * |
| 711 * Request parameters: | 706 * Request parameters: |
| 712 * | 707 * |
| 713 * [name] - The monitored resource descriptor to get. The format is | 708 * [name] - The monitored resource descriptor to get. The format is |
| 714 * "projects/{project_id_or_number}/monitoredResourceDescriptors/{resourc
e_type}". | 709 * "projects/{project_id_or_number}/monitoredResourceDescriptors/{resource_typ
e}". |
| 715 * The {resource_type} is a predefined type, such as cloudsql_database. | 710 * The {resource_type} is a predefined type, such as cloudsql_database. |
| 716 * Value must have pattern | 711 * Value must have pattern |
| 717 * "^projects/[^/]+/monitoredResourceDescriptors/[^/]+$". | 712 * "^projects/[^/]+/monitoredResourceDescriptors/[^/]+$". |
| 718 * | 713 * |
| 719 * Completes with a [MonitoredResourceDescriptor]. | 714 * Completes with a [MonitoredResourceDescriptor]. |
| 720 * | 715 * |
| 721 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 716 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 722 * error. | 717 * error. |
| 723 * | 718 * |
| 724 * If the used [http.Client] completes with an error when making a REST call, | 719 * If the used [http.Client] completes with an error when making a REST call, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 748 return _response.then((data) => new MonitoredResourceDescriptor.fromJson(dat
a)); | 743 return _response.then((data) => new MonitoredResourceDescriptor.fromJson(dat
a)); |
| 749 } | 744 } |
| 750 | 745 |
| 751 /** | 746 /** |
| 752 * Lists monitored resource descriptors that match a filter. This method does | 747 * Lists monitored resource descriptors that match a filter. This method does |
| 753 * not require a Stackdriver account. | 748 * not require a Stackdriver account. |
| 754 * | 749 * |
| 755 * Request parameters: | 750 * Request parameters: |
| 756 * | 751 * |
| 757 * [name] - The project on which to execute the request. The format is | 752 * [name] - The project on which to execute the request. The format is |
| 758 * "projects/{project_id_or_number}". | 753 * "projects/{project_id_or_number}". |
| 759 * Value must have pattern "^projects/[^/]+$". | 754 * Value must have pattern "^projects/[^/]+$". |
| 760 * | 755 * |
| 761 * [pageSize] - A positive number that is the maximum number of results to | 756 * [pageSize] - A positive number that is the maximum number of results to |
| 762 * return. | 757 * return. |
| 763 * | 758 * |
| 764 * [filter] - An optional filter (/monitoring/api/v3/filters) describing the | 759 * [filter] - An optional filter describing the descriptors to be returned. |
| 765 * descriptors to be returned. The filter can reference the descriptor's type | 760 * The filter can reference the descriptor's type and labels. For example, the |
| 766 * and labels. For example, the following filter returns only Google Compute | 761 * following filter returns only Google Compute Engine descriptors that have |
| 767 * Engine descriptors that have an id label: | 762 * an id label: |
| 768 * resource.type = starts_with("gce_") AND resource.label:id | 763 * resource.type = starts_with("gce_") AND resource.label:id |
| 769 * | 764 * |
| 770 * [pageToken] - If this field is not empty then it must contain the | 765 * [pageToken] - If this field is not empty then it must contain the |
| 771 * nextPageToken value returned by a previous call to this method. Using this | 766 * nextPageToken value returned by a previous call to this method. Using this |
| 772 * field causes the method to return additional results from the previous | 767 * field causes the method to return additional results from the previous |
| 773 * method call. | 768 * method call. |
| 774 * | 769 * |
| 775 * Completes with a [ListMonitoredResourceDescriptorsResponse]. | 770 * Completes with a [ListMonitoredResourceDescriptorsResponse]. |
| 776 * | 771 * |
| 777 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 772 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 778 * error. | 773 * error. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 826 * Creates or adds data to one or more time series. The response is empty if | 821 * Creates or adds data to one or more time series. The response is empty if |
| 827 * all time series in the request were written. If any time series could not | 822 * all time series in the request were written. If any time series could not |
| 828 * be written, a corresponding failure message is included in the error | 823 * be written, a corresponding failure message is included in the error |
| 829 * response. | 824 * response. |
| 830 * | 825 * |
| 831 * [request] - The metadata request object. | 826 * [request] - The metadata request object. |
| 832 * | 827 * |
| 833 * Request parameters: | 828 * Request parameters: |
| 834 * | 829 * |
| 835 * [name] - The project on which to execute the request. The format is | 830 * [name] - The project on which to execute the request. The format is |
| 836 * "projects/{project_id_or_number}". | 831 * "projects/{project_id_or_number}". |
| 837 * Value must have pattern "^projects/[^/]+$". | 832 * Value must have pattern "^projects/[^/]+$". |
| 838 * | 833 * |
| 839 * Completes with a [Empty]. | 834 * Completes with a [Empty]. |
| 840 * | 835 * |
| 841 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 836 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 842 * error. | 837 * error. |
| 843 * | 838 * |
| 844 * If the used [http.Client] completes with an error when making a REST call, | 839 * If the used [http.Client] completes with an error when making a REST call, |
| 845 * this method will complete with the same error. | 840 * this method will complete with the same error. |
| 846 */ | 841 */ |
| (...skipping 27 matching lines...) Expand all Loading... |
| 874 /** | 869 /** |
| 875 * Lists time series that match a filter. This method does not require a | 870 * Lists time series that match a filter. This method does not require a |
| 876 * Stackdriver account. | 871 * Stackdriver account. |
| 877 * | 872 * |
| 878 * Request parameters: | 873 * Request parameters: |
| 879 * | 874 * |
| 880 * [name] - The project on which to execute the request. The format is | 875 * [name] - The project on which to execute the request. The format is |
| 881 * "projects/{project_id_or_number}". | 876 * "projects/{project_id_or_number}". |
| 882 * Value must have pattern "^projects/[^/]+$". | 877 * Value must have pattern "^projects/[^/]+$". |
| 883 * | 878 * |
| 884 * [filter] - A monitoring filter (/monitoring/api/v3/filters) that specifies | 879 * [filter] - A monitoring filter that specifies which time series should be |
| 885 * which time series should be returned. The filter must specify a single | 880 * returned. The filter must specify a single metric type, and can |
| 886 * metric type, and can additionally specify metric labels and other | 881 * additionally specify metric labels and other information. For example: |
| 887 * information. For example: | 882 * metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND |
| 888 * metric.type = "compute.googleapis.com/instance/cpu/usage_time" | 883 * metric.label.instance_name = "my-instance-name" |
| 889 * AND | |
| 890 * metric.label.instance_name = "my-instance-name" | |
| 891 * | 884 * |
| 892 * [aggregation_groupByFields] - The set of fields to preserve when | 885 * [aggregation_groupByFields] - The set of fields to preserve when |
| 893 * crossSeriesReducer is specified. The groupByFields determine how the time | 886 * crossSeriesReducer is specified. The groupByFields determine how the time |
| 894 * series are partitioned into subsets prior to applying the aggregation | 887 * series are partitioned into subsets prior to applying the aggregation |
| 895 * function. Each subset contains time series that have the same value for | 888 * function. Each subset contains time series that have the same value for |
| 896 * each of the grouping fields. Each individual time series is a member of | 889 * each of the grouping fields. Each individual time series is a member of |
| 897 * exactly one subset. The crossSeriesReducer is applied to each subset of | 890 * exactly one subset. The crossSeriesReducer is applied to each subset of |
| 898 * time series. Fields not specified in groupByFields are aggregated away. If | 891 * time series. It is not possible to reduce across different resource types, |
| 899 * groupByFields is not specified, the time series are aggregated into a | 892 * so this field implicitly contains resource.type. Fields not specified in |
| 900 * single output time series. If crossSeriesReducer is not defined, this field | 893 * groupByFields are aggregated away. If groupByFields is not specified and |
| 901 * is ignored. | 894 * all the time series have the same resource type, then the time series are |
| 895 * aggregated into a single output time series. If crossSeriesReducer is not |
| 896 * defined, this field is ignored. |
| 902 * | 897 * |
| 903 * [aggregation_crossSeriesReducer] - The approach to be used to combine time | 898 * [aggregation_crossSeriesReducer] - The approach to be used to combine time |
| 904 * series. Not all reducer functions may be applied to all time series, | 899 * series. Not all reducer functions may be applied to all time series, |
| 905 * depending on the metric type and the value type of the original time | 900 * depending on the metric type and the value type of the original time |
| 906 * series. Reduction may change the metric type of value type of the time | 901 * series. Reduction may change the metric type of value type of the time |
| 907 * series.Time series data must be aligned in order to perform cross-time | 902 * series.Time series data must be aligned in order to perform cross-time |
| 908 * series reduction. If crossSeriesReducer is specified, then perSeriesAligner | 903 * series reduction. If crossSeriesReducer is specified, then perSeriesAligner |
| 909 * must be specified and not equal ALIGN_NONE and alignmentPeriod must be | 904 * must be specified and not equal ALIGN_NONE and alignmentPeriod must be |
| 910 * specified; otherwise, an error is returned. | 905 * specified; otherwise, an error is returned. |
| 911 * Possible string values are: | 906 * Possible string values are: |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1055 /** | 1050 /** |
| 1056 * A Distribution may optionally contain a histogram of the values in the | 1051 * A Distribution may optionally contain a histogram of the values in the |
| 1057 * population. The histogram is given in bucket_counts as counts of values that | 1052 * population. The histogram is given in bucket_counts as counts of values that |
| 1058 * fall into one of a sequence of non-overlapping buckets. The sequence of | 1053 * fall into one of a sequence of non-overlapping buckets. The sequence of |
| 1059 * buckets is described by bucket_options.A bucket specifies an inclusive lower | 1054 * buckets is described by bucket_options.A bucket specifies an inclusive lower |
| 1060 * bound and exclusive upper bound for the values that are counted for that | 1055 * bound and exclusive upper bound for the values that are counted for that |
| 1061 * bucket. The upper bound of a bucket is strictly greater than the lower | 1056 * bucket. The upper bound of a bucket is strictly greater than the lower |
| 1062 * bound.The sequence of N buckets for a Distribution consists of an underflow | 1057 * bound.The sequence of N buckets for a Distribution consists of an underflow |
| 1063 * bucket (number 0), zero or more finite buckets (number 1 through N - 2) and | 1058 * bucket (number 0), zero or more finite buckets (number 1 through N - 2) and |
| 1064 * an overflow bucket (number N - 1). The buckets are contiguous: the lower | 1059 * an overflow bucket (number N - 1). The buckets are contiguous: the lower |
| 1065 * bound of bucket i (i > 0) is the same as the upper bound of bucket i - 1. | 1060 * bound of bucket i (i > 0) is the same as the upper bound of bucket i - 1. The |
| 1066 * The buckets span the whole range of finite values: lower bound of the | 1061 * buckets span the whole range of finite values: lower bound of the underflow |
| 1067 * underflow bucket is -infinity and the upper bound of the overflow bucket is | 1062 * bucket is -infinity and the upper bound of the overflow bucket is +infinity. |
| 1068 * +infinity. The finite buckets are so-called because both bounds are | 1063 * The finite buckets are so-called because both bounds are finite.BucketOptions |
| 1069 * finite.BucketOptions describes bucket boundaries in one of three ways. Two | 1064 * describes bucket boundaries in one of three ways. Two describe the boundaries |
| 1070 * describe the boundaries by giving parameters for a formula to generate | 1065 * by giving parameters for a formula to generate boundaries and one gives the |
| 1071 * boundaries and one gives the bucket boundaries explicitly.If bucket_options | 1066 * bucket boundaries explicitly.If bucket_options is not given, then no |
| 1072 * is not given, then no bucket_counts may be given. | 1067 * bucket_counts may be given. |
| 1073 */ | 1068 */ |
| 1074 class BucketOptions { | 1069 class BucketOptions { |
| 1075 /** The explicit buckets. */ | 1070 /** The explicit buckets. */ |
| 1076 Explicit explicitBuckets; | 1071 Explicit explicitBuckets; |
| 1077 /** The exponential buckets. */ | 1072 /** The exponential buckets. */ |
| 1078 Exponential exponentialBuckets; | 1073 Exponential exponentialBuckets; |
| 1079 /** The linear bucket. */ | 1074 /** The linear bucket. */ |
| 1080 Linear linearBuckets; | 1075 Linear linearBuckets; |
| 1081 | 1076 |
| 1082 BucketOptions(); | 1077 BucketOptions(); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1108 } | 1103 } |
| 1109 } | 1104 } |
| 1110 | 1105 |
| 1111 /** | 1106 /** |
| 1112 * A collection of data points sent from a collectd-based plugin. See the | 1107 * A collection of data points sent from a collectd-based plugin. See the |
| 1113 * collectd documentation for more information. | 1108 * collectd documentation for more information. |
| 1114 */ | 1109 */ |
| 1115 class CollectdPayload { | 1110 class CollectdPayload { |
| 1116 /** The end time of the interval. */ | 1111 /** The end time of the interval. */ |
| 1117 core.String endTime; | 1112 core.String endTime; |
| 1118 /** The measurement metadata. Example: "process_id" -> 12345 */ | 1113 /** The measurement metadata. Example: "process_id" -> 12345 */ |
| 1119 core.Map<core.String, TypedValue> metadata; | 1114 core.Map<core.String, TypedValue> metadata; |
| 1120 /** The name of the plugin. Example: "disk". */ | 1115 /** The name of the plugin. Example: "disk". */ |
| 1121 core.String plugin; | 1116 core.String plugin; |
| 1122 /** The instance name of the plugin Example: "hdcl". */ | 1117 /** The instance name of the plugin Example: "hdcl". */ |
| 1123 core.String pluginInstance; | 1118 core.String pluginInstance; |
| 1124 /** The start time of the interval. */ | 1119 /** The start time of the interval. */ |
| 1125 core.String startTime; | 1120 core.String startTime; |
| 1126 /** The measurement type. Example: "memory". */ | 1121 /** The measurement type. Example: "memory". */ |
| 1127 core.String type; | 1122 core.String type; |
| 1128 /** The measurement type instance. Example: "used". */ | 1123 /** The measurement type instance. Example: "used". */ |
| 1129 core.String typeInstance; | 1124 core.String typeInstance; |
| 1130 /** | 1125 /** |
| 1131 * The measured values during this time interval. Each value must have a | 1126 * The measured values during this time interval. Each value must have a |
| 1132 * different dataSourceName. | 1127 * different dataSourceName. |
| 1133 */ | 1128 */ |
| 1134 core.List<CollectdValue> values; | 1129 core.List<CollectdValue> values; |
| 1135 | 1130 |
| 1136 CollectdPayload(); | 1131 CollectdPayload(); |
| 1137 | 1132 |
| 1138 CollectdPayload.fromJson(core.Map _json) { | 1133 CollectdPayload.fromJson(core.Map _json) { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1189 _json["values"] = values.map((value) => (value).toJson()).toList(); | 1184 _json["values"] = values.map((value) => (value).toJson()).toList(); |
| 1190 } | 1185 } |
| 1191 return _json; | 1186 return _json; |
| 1192 } | 1187 } |
| 1193 } | 1188 } |
| 1194 | 1189 |
| 1195 /** A single data point from a collectd-based plugin. */ | 1190 /** A single data point from a collectd-based plugin. */ |
| 1196 class CollectdValue { | 1191 class CollectdValue { |
| 1197 /** | 1192 /** |
| 1198 * The data source for the collectd value. For example there are two data | 1193 * The data source for the collectd value. For example there are two data |
| 1199 * sources for network measurements: "rx" and "tx". | 1194 * sources for network measurements: "rx" and "tx". |
| 1200 */ | 1195 */ |
| 1201 core.String dataSourceName; | 1196 core.String dataSourceName; |
| 1202 /** | 1197 /** |
| 1203 * The type of measurement. | 1198 * The type of measurement. |
| 1204 * Possible string values are: | 1199 * Possible string values are: |
| 1205 * - "UNSPECIFIED_DATA_SOURCE_TYPE" : An unspecified data source type. This | 1200 * - "UNSPECIFIED_DATA_SOURCE_TYPE" : An unspecified data source type. This |
| 1206 * corresponds to | 1201 * corresponds to |
| 1207 * google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED. | 1202 * google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED. |
| 1208 * - "GAUGE" : An instantaneous measurement of a varying quantity. This | 1203 * - "GAUGE" : An instantaneous measurement of a varying quantity. This |
| 1209 * corresponds to google.api.MetricDescriptor.MetricKind.GAUGE. | 1204 * corresponds to google.api.MetricDescriptor.MetricKind.GAUGE. |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1249 /** The CreateCollectdTimeSeries request. */ | 1244 /** The CreateCollectdTimeSeries request. */ |
| 1250 class CreateCollectdTimeSeriesRequest { | 1245 class CreateCollectdTimeSeriesRequest { |
| 1251 /** | 1246 /** |
| 1252 * The collectd payloads representing the time series data. You must not | 1247 * The collectd payloads representing the time series data. You must not |
| 1253 * include more than a single point for each time series, so no two payloads | 1248 * include more than a single point for each time series, so no two payloads |
| 1254 * can have the same values for all of the fields plugin, plugin_instance, | 1249 * can have the same values for all of the fields plugin, plugin_instance, |
| 1255 * type, and type_instance. | 1250 * type, and type_instance. |
| 1256 */ | 1251 */ |
| 1257 core.List<CollectdPayload> collectdPayloads; | 1252 core.List<CollectdPayload> collectdPayloads; |
| 1258 /** | 1253 /** |
| 1259 * The version of collectd that collected the data. Example: | 1254 * The version of collectd that collected the data. Example: "5.3.0-192.el6". |
| 1260 * "5.3.0-192.el6". | |
| 1261 */ | 1255 */ |
| 1262 core.String collectdVersion; | 1256 core.String collectdVersion; |
| 1263 /** The monitored resource associated with the time series. */ | 1257 /** The monitored resource associated with the time series. */ |
| 1264 MonitoredResource resource; | 1258 MonitoredResource resource; |
| 1265 | 1259 |
| 1266 CreateCollectdTimeSeriesRequest(); | 1260 CreateCollectdTimeSeriesRequest(); |
| 1267 | 1261 |
| 1268 CreateCollectdTimeSeriesRequest.fromJson(core.Map _json) { | 1262 CreateCollectdTimeSeriesRequest.fromJson(core.Map _json) { |
| 1269 if (_json.containsKey("collectdPayloads")) { | 1263 if (_json.containsKey("collectdPayloads")) { |
| 1270 collectdPayloads = _json["collectdPayloads"].map((value) => new CollectdPa
yload.fromJson(value)).toList(); | 1264 collectdPayloads = _json["collectdPayloads"].map((value) => new CollectdPa
yload.fromJson(value)).toList(); |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1435 } | 1429 } |
| 1436 | 1430 |
| 1437 core.Map toJson() { | 1431 core.Map toJson() { |
| 1438 var _json = new core.Map(); | 1432 var _json = new core.Map(); |
| 1439 return _json; | 1433 return _json; |
| 1440 } | 1434 } |
| 1441 } | 1435 } |
| 1442 | 1436 |
| 1443 /** | 1437 /** |
| 1444 * A set of buckets with arbitrary widths.Defines size(bounds) + 1 (= N) buckets | 1438 * A set of buckets with arbitrary widths.Defines size(bounds) + 1 (= N) buckets |
| 1445 * with these boundaries for bucket i:Upper bound (0 <= i < N-1): boundsi | 1439 * with these boundaries for bucket i:Upper bound (0 <= i < N-1): boundsi Lower |
| 1446 * Lower bound (1 <= i < N); boundsi - 1There must be at least one element | 1440 * bound (1 <= i < N); boundsi - 1There must be at least one element in bounds. |
| 1447 * in bounds. If bounds has only one element, there are no finite buckets, and | 1441 * If bounds has only one element, there are no finite buckets, and that single |
| 1448 * that single element is the common boundary of the overflow and underflow | 1442 * element is the common boundary of the overflow and underflow buckets. |
| 1449 * buckets. | |
| 1450 */ | 1443 */ |
| 1451 class Explicit { | 1444 class Explicit { |
| 1452 /** The values must be monotonically increasing. */ | 1445 /** The values must be monotonically increasing. */ |
| 1453 core.List<core.double> bounds; | 1446 core.List<core.double> bounds; |
| 1454 | 1447 |
| 1455 Explicit(); | 1448 Explicit(); |
| 1456 | 1449 |
| 1457 Explicit.fromJson(core.Map _json) { | 1450 Explicit.fromJson(core.Map _json) { |
| 1458 if (_json.containsKey("bounds")) { | 1451 if (_json.containsKey("bounds")) { |
| 1459 bounds = _json["bounds"]; | 1452 bounds = _json["bounds"]; |
| 1460 } | 1453 } |
| 1461 } | 1454 } |
| 1462 | 1455 |
| 1463 core.Map toJson() { | 1456 core.Map toJson() { |
| 1464 var _json = new core.Map(); | 1457 var _json = new core.Map(); |
| 1465 if (bounds != null) { | 1458 if (bounds != null) { |
| 1466 _json["bounds"] = bounds; | 1459 _json["bounds"] = bounds; |
| 1467 } | 1460 } |
| 1468 return _json; | 1461 return _json; |
| 1469 } | 1462 } |
| 1470 } | 1463 } |
| 1471 | 1464 |
| 1472 /** | 1465 /** |
| 1473 * Specify a sequence of buckets that have a width that is proportional to the | 1466 * Specify a sequence of buckets that have a width that is proportional to the |
| 1474 * value of the lower bound. Each bucket represents a constant relative | 1467 * value of the lower bound. Each bucket represents a constant relative |
| 1475 * uncertainty on a specific value in the bucket.Defines num_finite_buckets + 2 | 1468 * uncertainty on a specific value in the bucket.Defines num_finite_buckets + 2 |
| 1476 * (= N) buckets with these boundaries for bucket i:Upper bound (0 <= i < | 1469 * (= N) buckets with these boundaries for bucket i:Upper bound (0 <= i < N-1): |
| 1477 * N-1): scale * (growth_factor ^ i). Lower bound (1 <= i < N): scale * | 1470 * scale * (growth_factor ^ i). Lower bound (1 <= i < N): scale * |
| 1478 * (growth_factor ^ (i - 1)). | 1471 * (growth_factor ^ (i - 1)). |
| 1479 */ | 1472 */ |
| 1480 class Exponential { | 1473 class Exponential { |
| 1481 /** Must be greater than 1. */ | 1474 /** Must be greater than 1. */ |
| 1482 core.double growthFactor; | 1475 core.double growthFactor; |
| 1483 /** Must be greater than 0. */ | 1476 /** Must be greater than 0. */ |
| 1484 core.int numFiniteBuckets; | 1477 core.int numFiniteBuckets; |
| 1485 /** Must be greater than 0. */ | 1478 /** Must be greater than 0. */ |
| 1486 core.double scale; | 1479 core.double scale; |
| 1487 | 1480 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1563 * The index of the field type in Type.oneofs, for message or enumeration | 1556 * The index of the field type in Type.oneofs, for message or enumeration |
| 1564 * types. The first type has index 1; zero means the type is not in the list. | 1557 * types. The first type has index 1; zero means the type is not in the list. |
| 1565 */ | 1558 */ |
| 1566 core.int oneofIndex; | 1559 core.int oneofIndex; |
| 1567 /** The protocol buffer options. */ | 1560 /** The protocol buffer options. */ |
| 1568 core.List<Option> options; | 1561 core.List<Option> options; |
| 1569 /** Whether to use alternative packed wire representation. */ | 1562 /** Whether to use alternative packed wire representation. */ |
| 1570 core.bool packed; | 1563 core.bool packed; |
| 1571 /** | 1564 /** |
| 1572 * The field type URL, without the scheme, for message or enumeration types. | 1565 * The field type URL, without the scheme, for message or enumeration types. |
| 1573 * Example: "type.googleapis.com/google.protobuf.Timestamp". | 1566 * Example: "type.googleapis.com/google.protobuf.Timestamp". |
| 1574 */ | 1567 */ |
| 1575 core.String typeUrl; | 1568 core.String typeUrl; |
| 1576 | 1569 |
| 1577 Field(); | 1570 Field(); |
| 1578 | 1571 |
| 1579 Field.fromJson(core.Map _json) { | 1572 Field.fromJson(core.Map _json) { |
| 1580 if (_json.containsKey("cardinality")) { | 1573 if (_json.containsKey("cardinality")) { |
| 1581 cardinality = _json["cardinality"]; | 1574 cardinality = _json["cardinality"]; |
| 1582 } | 1575 } |
| 1583 if (_json.containsKey("defaultValue")) { | 1576 if (_json.containsKey("defaultValue")) { |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1651 * metadata. If a group's filter matches an available monitored resource, then | 1644 * metadata. If a group's filter matches an available monitored resource, then |
| 1652 * that resource is a member of that group. Groups can contain any number of | 1645 * that resource is a member of that group. Groups can contain any number of |
| 1653 * monitored resources, and each monitored resource can be a member of any | 1646 * monitored resources, and each monitored resource can be a member of any |
| 1654 * number of groups.Groups can be nested in parent-child hierarchies. The | 1647 * number of groups.Groups can be nested in parent-child hierarchies. The |
| 1655 * parentName field identifies an optional parent for each group. If a group has | 1648 * parentName field identifies an optional parent for each group. If a group has |
| 1656 * a parent, then the only monitored resources available to be matched by the | 1649 * a parent, then the only monitored resources available to be matched by the |
| 1657 * group's filter are the resources contained in the parent group. In other | 1650 * group's filter are the resources contained in the parent group. In other |
| 1658 * words, a group contains the monitored resources that match its filter and the | 1651 * words, a group contains the monitored resources that match its filter and the |
| 1659 * filters of all the group's ancestors. A group without a parent can contain | 1652 * filters of all the group's ancestors. A group without a parent can contain |
| 1660 * any monitored resource.For example, consider an infrastructure running a set | 1653 * any monitored resource.For example, consider an infrastructure running a set |
| 1661 * of instances with two user-defined tags: "environment" and | 1654 * of instances with two user-defined tags: "environment" and "role". A parent |
| 1662 * "role". A parent group has a filter, | 1655 * group has a filter, environment="production". A child of that parent group |
| 1663 * environment="production". A child of that parent group has a | 1656 * has a filter, role="transcoder". The parent group contains all instances in |
| 1664 * filter, role="transcoder". The parent group contains all instances | 1657 * the production environment, regardless of their roles. The child group |
| 1665 * in the production environment, regardless of their roles. The child group | |
| 1666 * contains instances that have the transcoder role and are in the production | 1658 * contains instances that have the transcoder role and are in the production |
| 1667 * environment.The monitored resources contained in a group can change at any | 1659 * environment.The monitored resources contained in a group can change at any |
| 1668 * moment, depending on what resources exist and what filters are associated | 1660 * moment, depending on what resources exist and what filters are associated |
| 1669 * with the group and its ancestors. | 1661 * with the group and its ancestors. |
| 1670 */ | 1662 */ |
| 1671 class Group { | 1663 class Group { |
| 1672 /** A user-assigned name for this group, used only for display purposes. */ | 1664 /** A user-assigned name for this group, used only for display purposes. */ |
| 1673 core.String displayName; | 1665 core.String displayName; |
| 1674 /** | 1666 /** |
| 1675 * The filter used to determine which monitored resources belong to this | 1667 * The filter used to determine which monitored resources belong to this |
| 1676 * group. | 1668 * group. |
| 1677 */ | 1669 */ |
| 1678 core.String filter; | 1670 core.String filter; |
| 1679 /** | 1671 /** |
| 1680 * If true, the members of this group are considered to be a cluster. The | 1672 * If true, the members of this group are considered to be a cluster. The |
| 1681 * system can perform additional analysis on groups that are clusters. | 1673 * system can perform additional analysis on groups that are clusters. |
| 1682 */ | 1674 */ |
| 1683 core.bool isCluster; | 1675 core.bool isCluster; |
| 1684 /** | 1676 /** |
| 1685 * Output only. The name of this group. The format is | 1677 * Output only. The name of this group. The format is |
| 1686 * "projects/{project_id_or_number}/groups/{group_id}". When | 1678 * "projects/{project_id_or_number}/groups/{group_id}". When creating a group, |
| 1687 * creating a group, this field is ignored and a new name is created | 1679 * this field is ignored and a new name is created consisting of the project |
| 1688 * consisting of the project specified in the call to CreateGroup and a unique | 1680 * specified in the call to CreateGroup and a unique {group_id} that is |
| 1689 * {group_id} that is generated automatically. | 1681 * generated automatically. |
| 1690 */ | 1682 */ |
| 1691 core.String name; | 1683 core.String name; |
| 1692 /** | 1684 /** |
| 1693 * The name of the group's parent, if it has one. The format is | 1685 * The name of the group's parent, if it has one. The format is |
| 1694 * "projects/{project_id_or_number}/groups/{group_id}". For groups | 1686 * "projects/{project_id_or_number}/groups/{group_id}". For groups with no |
| 1695 * with no parent, parentName is the empty string, "". | 1687 * parent, parentName is the empty string, "". |
| 1696 */ | 1688 */ |
| 1697 core.String parentName; | 1689 core.String parentName; |
| 1698 | 1690 |
| 1699 Group(); | 1691 Group(); |
| 1700 | 1692 |
| 1701 Group.fromJson(core.Map _json) { | 1693 Group.fromJson(core.Map _json) { |
| 1702 if (_json.containsKey("displayName")) { | 1694 if (_json.containsKey("displayName")) { |
| 1703 displayName = _json["displayName"]; | 1695 displayName = _json["displayName"]; |
| 1704 } | 1696 } |
| 1705 if (_json.containsKey("filter")) { | 1697 if (_json.containsKey("filter")) { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1778 _json["valueType"] = valueType; | 1770 _json["valueType"] = valueType; |
| 1779 } | 1771 } |
| 1780 return _json; | 1772 return _json; |
| 1781 } | 1773 } |
| 1782 } | 1774 } |
| 1783 | 1775 |
| 1784 /** | 1776 /** |
| 1785 * Specify a sequence of buckets that all have the same width (except overflow | 1777 * Specify a sequence of buckets that all have the same width (except overflow |
| 1786 * and underflow). Each bucket represents a constant absolute uncertainty on the | 1778 * and underflow). Each bucket represents a constant absolute uncertainty on the |
| 1787 * specific value in the bucket.Defines num_finite_buckets + 2 (= N) buckets | 1779 * specific value in the bucket.Defines num_finite_buckets + 2 (= N) buckets |
| 1788 * with these boundaries for bucket i:Upper bound (0 <= i < N-1): offset + | 1780 * with these boundaries for bucket i:Upper bound (0 <= i < N-1): offset + |
| 1789 * (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)). | 1781 * (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)). |
| 1790 */ | 1782 */ |
| 1791 class Linear { | 1783 class Linear { |
| 1792 /** Must be greater than 0. */ | 1784 /** Must be greater than 0. */ |
| 1793 core.int numFiniteBuckets; | 1785 core.int numFiniteBuckets; |
| 1794 /** Lower bound of the first bucket. */ | 1786 /** Lower bound of the first bucket. */ |
| 1795 core.double offset; | 1787 core.double offset; |
| 1796 /** Must be greater than 0. */ | 1788 /** Must be greater than 0. */ |
| 1797 core.double width; | 1789 core.double width; |
| 1798 | 1790 |
| 1799 Linear(); | 1791 Linear(); |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2084 * and sets a new start time for the following points. | 2076 * and sets a new start time for the following points. |
| 2085 */ | 2077 */ |
| 2086 core.String metricKind; | 2078 core.String metricKind; |
| 2087 /** | 2079 /** |
| 2088 * The resource name of the metric descriptor. Depending on the | 2080 * The resource name of the metric descriptor. Depending on the |
| 2089 * implementation, the name typically includes: (1) the parent resource name | 2081 * implementation, the name typically includes: (1) the parent resource name |
| 2090 * that defines the scope of the metric type or of its data; and (2) the | 2082 * that defines the scope of the metric type or of its data; and (2) the |
| 2091 * metric's URL-encoded type, which also appears in the type field of this | 2083 * metric's URL-encoded type, which also appears in the type field of this |
| 2092 * descriptor. For example, following is the resource name of a custom metric | 2084 * descriptor. For example, following is the resource name of a custom metric |
| 2093 * within the GCP project 123456789: | 2085 * within the GCP project 123456789: |
| 2094 * "projects/123456789/metricDescriptors/custom.googleapis.com%2Finvoice%
2Fpaid%2Famount" | 2086 * "projects/123456789/metricDescriptors/custom.googleapis.com%2Finvoice%2Fpai
d%2Famount" |
| 2095 */ | 2087 */ |
| 2096 core.String name; | 2088 core.String name; |
| 2097 /** | 2089 /** |
| 2098 * The metric type, including its DNS name prefix. The type is not | 2090 * The metric type, including its DNS name prefix. The type is not |
| 2099 * URL-encoded. All user-defined metric types have the DNS name | 2091 * URL-encoded. All user-defined metric types have the DNS name |
| 2100 * custom.googleapis.com. Metric types should use a natural hierarchical | 2092 * custom.googleapis.com. Metric types should use a natural hierarchical |
| 2101 * grouping. For example: | 2093 * grouping. For example: |
| 2102 * "custom.googleapis.com/invoice/paid/amount" | 2094 * "custom.googleapis.com/invoice/paid/amount" |
| 2103 * "appengine.googleapis.com/http/server/response_latencies" | 2095 * "appengine.googleapis.com/http/server/response_latencies" |
| 2104 */ | 2096 */ |
| 2105 core.String type; | 2097 core.String type; |
| 2106 /** | 2098 /** |
| 2107 * The unit in which the metric value is reported. It is only applicable if | 2099 * The unit in which the metric value is reported. It is only applicable if |
| 2108 * the value_type is INT64, DOUBLE, or DISTRIBUTION. The supported units are a | 2100 * the value_type is INT64, DOUBLE, or DISTRIBUTION. The supported units are a |
| 2109 * subset of The Unified Code for Units of Measure | 2101 * subset of The Unified Code for Units of Measure |
| 2110 * (http://unitsofmeasure.org/ucum.html) standard:Basic units (UNIT) | 2102 * (http://unitsofmeasure.org/ucum.html) standard:Basic units (UNIT) |
| 2111 * bit bit | 2103 * bit bit |
| 2112 * By byte | 2104 * By byte |
| 2113 * s second | 2105 * s second |
| (...skipping 17 matching lines...) Expand all Loading... |
| 2131 * z zepto (10**-21) | 2123 * z zepto (10**-21) |
| 2132 * y yocto (10**-24) | 2124 * y yocto (10**-24) |
| 2133 * Ki kibi (2**10) | 2125 * Ki kibi (2**10) |
| 2134 * Mi mebi (2**20) | 2126 * Mi mebi (2**20) |
| 2135 * Gi gibi (2**30) | 2127 * Gi gibi (2**30) |
| 2136 * Ti tebi (2**40)GrammarThe grammar includes the dimensionless unit 1, such | 2128 * Ti tebi (2**40)GrammarThe grammar includes the dimensionless unit 1, such |
| 2137 * as 1/s.The grammar also includes these connectors: | 2129 * as 1/s.The grammar also includes these connectors: |
| 2138 * / division (as an infix operator, e.g. 1/s). | 2130 * / division (as an infix operator, e.g. 1/s). |
| 2139 * . multiplication (as an infix operator, e.g. GBy.d)The grammar for a unit | 2131 * . multiplication (as an infix operator, e.g. GBy.d)The grammar for a unit |
| 2140 * is as follows: | 2132 * is as follows: |
| 2141 * Expression = Component { "." Component } { "/" | 2133 * Expression = Component { "." Component } { "/" Component } ; |
| 2142 * Component } ; | |
| 2143 * | 2134 * |
| 2144 * Component = [ PREFIX ] UNIT [ Annotation ] | 2135 * Component = [ PREFIX ] UNIT [ Annotation ] |
| 2145 * | Annotation | 2136 * | Annotation |
| 2146 * | "1" | 2137 * | "1" |
| 2147 * ; | 2138 * ; |
| 2148 * | 2139 * |
| 2149 * Annotation = "{" NAME "}" ; | 2140 * Annotation = "{" NAME "}" ; |
| 2150 * Notes: | 2141 * Notes: |
| 2151 * Annotation is just a comment if it follows a UNIT and is equivalent to 1 | 2142 * Annotation is just a comment if it follows a UNIT and is equivalent to 1 |
| 2152 * if it is used alone. For examples, {requests}/s == 1/s, By{transmitted}/s | 2143 * if it is used alone. For examples, {requests}/s == 1/s, By{transmitted}/s |
| 2153 * == By/s. | 2144 * == By/s. |
| 2154 * NAME is a sequence of non-blank printable ASCII characters not containing | 2145 * NAME is a sequence of non-blank printable ASCII characters not containing |
| 2155 * '{' or '}'. | 2146 * '{' or '}'. |
| 2156 */ | 2147 */ |
| 2157 core.String unit; | 2148 core.String unit; |
| 2158 /** | 2149 /** |
| 2159 * Whether the measurement is an integer, a floating-point number, etc. Some | 2150 * Whether the measurement is an integer, a floating-point number, etc. Some |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2231 } | 2222 } |
| 2232 | 2223 |
| 2233 /** | 2224 /** |
| 2234 * An object representing a resource that can be used for monitoring, logging, | 2225 * An object representing a resource that can be used for monitoring, logging, |
| 2235 * billing, or other purposes. Examples include virtual machine instances, | 2226 * billing, or other purposes. Examples include virtual machine instances, |
| 2236 * databases, and storage devices such as disks. The type field identifies a | 2227 * databases, and storage devices such as disks. The type field identifies a |
| 2237 * MonitoredResourceDescriptor object that describes the resource's schema. | 2228 * MonitoredResourceDescriptor object that describes the resource's schema. |
| 2238 * Information in the labels field identifies the actual resource and its | 2229 * Information in the labels field identifies the actual resource and its |
| 2239 * attributes according to the schema. For example, a particular Compute Engine | 2230 * attributes according to the schema. For example, a particular Compute Engine |
| 2240 * VM instance could be represented by the following object, because the | 2231 * VM instance could be represented by the following object, because the |
| 2241 * MonitoredResourceDescriptor for "gce_instance" has labels | 2232 * MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and |
| 2242 * "instance_id" and "zone": | 2233 * "zone": |
| 2243 * { "type": "gce_instance", | 2234 * { "type": "gce_instance", |
| 2244 * "labels": { "instance_id": "12345678901234", | 2235 * "labels": { "instance_id": "12345678901234", |
| 2245 * "zone": "us-central1-a" }} | 2236 * "zone": "us-central1-a" }} |
| 2246 */ | 2237 */ |
| 2247 class MonitoredResource { | 2238 class MonitoredResource { |
| 2248 /** | 2239 /** |
| 2249 * Required. Values for all of the labels listed in the associated monitored | 2240 * Required. Values for all of the labels listed in the associated monitored |
| 2250 * resource descriptor. For example, Cloud SQL databases use the labels | 2241 * resource descriptor. For example, Cloud SQL databases use the labels |
| 2251 * "database_id" and "zone". | 2242 * "database_id" and "zone". |
| 2252 */ | 2243 */ |
| 2253 core.Map<core.String, core.String> labels; | 2244 core.Map<core.String, core.String> labels; |
| 2254 /** | 2245 /** |
| 2255 * Required. The monitored resource type. This field must match the type field | 2246 * Required. The monitored resource type. This field must match the type field |
| 2256 * of a MonitoredResourceDescriptor object. For example, the type of a Cloud | 2247 * of a MonitoredResourceDescriptor object. For example, the type of a Cloud |
| 2257 * SQL database is "cloudsql_database". | 2248 * SQL database is "cloudsql_database". |
| 2258 */ | 2249 */ |
| 2259 core.String type; | 2250 core.String type; |
| 2260 | 2251 |
| 2261 MonitoredResource(); | 2252 MonitoredResource(); |
| 2262 | 2253 |
| 2263 MonitoredResource.fromJson(core.Map _json) { | 2254 MonitoredResource.fromJson(core.Map _json) { |
| 2264 if (_json.containsKey("labels")) { | 2255 if (_json.containsKey("labels")) { |
| 2265 labels = _json["labels"]; | 2256 labels = _json["labels"]; |
| 2266 } | 2257 } |
| 2267 if (_json.containsKey("type")) { | 2258 if (_json.containsKey("type")) { |
| 2268 type = _json["type"]; | 2259 type = _json["type"]; |
| 2269 } | 2260 } |
| 2270 } | 2261 } |
| 2271 | 2262 |
| 2272 core.Map toJson() { | 2263 core.Map toJson() { |
| 2273 var _json = new core.Map(); | 2264 var _json = new core.Map(); |
| 2274 if (labels != null) { | 2265 if (labels != null) { |
| 2275 _json["labels"] = labels; | 2266 _json["labels"] = labels; |
| 2276 } | 2267 } |
| 2277 if (type != null) { | 2268 if (type != null) { |
| 2278 _json["type"] = type; | 2269 _json["type"] = type; |
| 2279 } | 2270 } |
| 2280 return _json; | 2271 return _json; |
| 2281 } | 2272 } |
| 2282 } | 2273 } |
| 2283 | 2274 |
| 2284 /** | 2275 /** |
| 2285 * An object that describes the schema of a MonitoredResource object using a | 2276 * An object that describes the schema of a MonitoredResource object using a |
| 2286 * type name and a set of labels. For example, the monitored resource descriptor | 2277 * type name and a set of labels. For example, the monitored resource descriptor |
| 2287 * for Google Compute Engine VM instances has a type of "gce_instance" | 2278 * for Google Compute Engine VM instances has a type of "gce_instance" and |
| 2288 * and specifies the use of the labels "instance_id" and | 2279 * specifies the use of the labels "instance_id" and "zone" to identify |
| 2289 * "zone" to identify particular VM instances.Different APIs can | 2280 * particular VM instances.Different APIs can support different monitored |
| 2290 * support different monitored resource types. APIs generally provide a list | 2281 * resource types. APIs generally provide a list method that returns the |
| 2291 * method that returns the monitored resource descriptors used by the API. | 2282 * monitored resource descriptors used by the API. |
| 2292 */ | 2283 */ |
| 2293 class MonitoredResourceDescriptor { | 2284 class MonitoredResourceDescriptor { |
| 2294 /** | 2285 /** |
| 2295 * Optional. A detailed description of the monitored resource type that might | 2286 * Optional. A detailed description of the monitored resource type that might |
| 2296 * be used in documentation. | 2287 * be used in documentation. |
| 2297 */ | 2288 */ |
| 2298 core.String description; | 2289 core.String description; |
| 2299 /** | 2290 /** |
| 2300 * Optional. A concise name for the monitored resource type that might be | 2291 * Optional. A concise name for the monitored resource type that might be |
| 2301 * displayed in user interfaces. It should be a Title Cased Noun Phrase, | 2292 * displayed in user interfaces. It should be a Title Cased Noun Phrase, |
| 2302 * without any article or other determiners. For example, "Google Cloud | 2293 * without any article or other determiners. For example, "Google Cloud SQL |
| 2303 * SQL Database". | 2294 * Database". |
| 2304 */ | 2295 */ |
| 2305 core.String displayName; | 2296 core.String displayName; |
| 2306 /** | 2297 /** |
| 2307 * Required. A set of labels used to describe instances of this monitored | 2298 * Required. A set of labels used to describe instances of this monitored |
| 2308 * resource type. For example, an individual Google Cloud SQL database is | 2299 * resource type. For example, an individual Google Cloud SQL database is |
| 2309 * identified by values for the labels "database_id" and | 2300 * identified by values for the labels "database_id" and "zone". |
| 2310 * "zone". | |
| 2311 */ | 2301 */ |
| 2312 core.List<LabelDescriptor> labels; | 2302 core.List<LabelDescriptor> labels; |
| 2313 /** | 2303 /** |
| 2314 * Optional. The resource name of the monitored resource descriptor: | 2304 * Optional. The resource name of the monitored resource descriptor: |
| 2315 * "projects/{project_id}/monitoredResourceDescriptors/{type}" where | 2305 * "projects/{project_id}/monitoredResourceDescriptors/{type}" where {type} is |
| 2316 * {type} is the value of the type field in this object and {project_id} is a | 2306 * the value of the type field in this object and {project_id} is a project ID |
| 2317 * project ID that provides API-specific context for accessing the type. APIs | 2307 * that provides API-specific context for accessing the type. APIs that do not |
| 2318 * that do not use project information can use the resource name format | 2308 * use project information can use the resource name format |
| 2319 * "monitoredResourceDescriptors/{type}". | 2309 * "monitoredResourceDescriptors/{type}". |
| 2320 */ | 2310 */ |
| 2321 core.String name; | 2311 core.String name; |
| 2322 /** | 2312 /** |
| 2323 * Required. The monitored resource type. For example, the type | 2313 * Required. The monitored resource type. For example, the type |
| 2324 * "cloudsql_database" represents databases in Google Cloud SQL. The | 2314 * "cloudsql_database" represents databases in Google Cloud SQL. The maximum |
| 2325 * maximum length of this value is 256 characters. | 2315 * length of this value is 256 characters. |
| 2326 */ | 2316 */ |
| 2327 core.String type; | 2317 core.String type; |
| 2328 | 2318 |
| 2329 MonitoredResourceDescriptor(); | 2319 MonitoredResourceDescriptor(); |
| 2330 | 2320 |
| 2331 MonitoredResourceDescriptor.fromJson(core.Map _json) { | 2321 MonitoredResourceDescriptor.fromJson(core.Map _json) { |
| 2332 if (_json.containsKey("description")) { | 2322 if (_json.containsKey("description")) { |
| 2333 description = _json["description"]; | 2323 description = _json["description"]; |
| 2334 } | 2324 } |
| 2335 if (_json.containsKey("displayName")) { | 2325 if (_json.containsKey("displayName")) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 2365 } | 2355 } |
| 2366 return _json; | 2356 return _json; |
| 2367 } | 2357 } |
| 2368 } | 2358 } |
| 2369 | 2359 |
| 2370 /** | 2360 /** |
| 2371 * A protocol buffer option, which can be attached to a message, field, | 2361 * A protocol buffer option, which can be attached to a message, field, |
| 2372 * enumeration, etc. | 2362 * enumeration, etc. |
| 2373 */ | 2363 */ |
| 2374 class Option { | 2364 class Option { |
| 2375 /** The option's name. For example, "java_package". */ | 2365 /** |
| 2366 * The option's name. For protobuf built-in options (options defined in |
| 2367 * descriptor.proto), this is the short name. For example, "map_entry". For |
| 2368 * custom options, it should be the fully-qualified name. For example, |
| 2369 * "google.api.http". |
| 2370 */ |
| 2376 core.String name; | 2371 core.String name; |
| 2377 /** | 2372 /** |
| 2378 * The option's value. For example, "com.google.protobuf". | 2373 * The option's value packed in an Any message. If the value is a primitive, |
| 2374 * the corresponding wrapper type defined in google/protobuf/wrappers.proto |
| 2375 * should be used. If the value is an enum, it should be stored as an int32 |
| 2376 * value using the google.protobuf.Int32Value type. |
| 2379 * | 2377 * |
| 2380 * The values for Object must be JSON objects. It can consist of `num`, | 2378 * The values for Object must be JSON objects. It can consist of `num`, |
| 2381 * `String`, `bool` and `null` as well as `Map` and `List` values. | 2379 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 2382 */ | 2380 */ |
| 2383 core.Map<core.String, core.Object> value; | 2381 core.Map<core.String, core.Object> value; |
| 2384 | 2382 |
| 2385 Option(); | 2383 Option(); |
| 2386 | 2384 |
| 2387 Option.fromJson(core.Map _json) { | 2385 Option.fromJson(core.Map _json) { |
| 2388 if (_json.containsKey("name")) { | 2386 if (_json.containsKey("name")) { |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2474 } | 2472 } |
| 2475 } | 2473 } |
| 2476 | 2474 |
| 2477 /** | 2475 /** |
| 2478 * SourceContext represents information about the source of a protobuf element, | 2476 * SourceContext represents information about the source of a protobuf element, |
| 2479 * like the file in which it is defined. | 2477 * like the file in which it is defined. |
| 2480 */ | 2478 */ |
| 2481 class SourceContext { | 2479 class SourceContext { |
| 2482 /** | 2480 /** |
| 2483 * The path-qualified name of the .proto file that contained the associated | 2481 * The path-qualified name of the .proto file that contained the associated |
| 2484 * protobuf element. For example: | 2482 * protobuf element. For example: "google/protobuf/source_context.proto". |
| 2485 * "google/protobuf/source_context.proto". | |
| 2486 */ | 2483 */ |
| 2487 core.String fileName; | 2484 core.String fileName; |
| 2488 | 2485 |
| 2489 SourceContext(); | 2486 SourceContext(); |
| 2490 | 2487 |
| 2491 SourceContext.fromJson(core.Map _json) { | 2488 SourceContext.fromJson(core.Map _json) { |
| 2492 if (_json.containsKey("fileName")) { | 2489 if (_json.containsKey("fileName")) { |
| 2493 fileName = _json["fileName"]; | 2490 fileName = _json["fileName"]; |
| 2494 } | 2491 } |
| 2495 } | 2492 } |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2766 } | 2763 } |
| 2767 if (int64Value != null) { | 2764 if (int64Value != null) { |
| 2768 _json["int64Value"] = int64Value; | 2765 _json["int64Value"] = int64Value; |
| 2769 } | 2766 } |
| 2770 if (stringValue != null) { | 2767 if (stringValue != null) { |
| 2771 _json["stringValue"] = stringValue; | 2768 _json["stringValue"] = stringValue; |
| 2772 } | 2769 } |
| 2773 return _json; | 2770 return _json; |
| 2774 } | 2771 } |
| 2775 } | 2772 } |
| OLD | NEW |